Observed since 21 Oct, 09:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@0xkobold/pi-alerts
Customizable chimes and notifications for pi
A pi extension that plays customizable chimes and notifications when tasks are complete.
C4:200,E4:200,G4:400# Create symlink to load the extension
ln -s /path/to/pi-alerts/index.ts ~/.pi/agent/extensions/pi-alerts.ts
Then restart pi or run /reload.
# Symlink extension
ln -s /path/to/pi-alerts/index.ts ~/.pi/agent/extensions/pi-alerts.ts
# Symlink skill
ln -s /path/to/pi-alerts/skills/keep-me-posted ~/.pi/agent/skills/
task_done_chimeUse in your prompts when you want to be notified when a task finishes:
// Basic beep alert with default settings
Use the task_done_chime tool when you're done.
// Custom chime
Use task_done_chime with mode="tone" and customSong="C5:200,E5:200,G5:400"
// System notification
Use task_done_chime with mode="notification" and title="Build Complete"
// Text-to-speech
Use task_done_chime with mode="speech" and customText="Task finished, ready for next!"
/alert - Show current settings/alert status - Display detailed settings in widget/alert test - Test current alert/alert test tone - Test specific mode| Command | Description |
|---|---|
/alert mode [beep|tone|speech|notification|silent] | Set default mode |
/alert sound [Glass|Tink|Pop|...] | Choose beep sound (macOS) |
/alert beeps [1-10] | Number of beeps |
/alert delay [50-2000] | Delay between beeps (ms) |
/alert song [C4:200,...] | Set custom melody |
/alert text [message] | Set speech text |
/alert title [title] | Set notification title |
/alert volume [0-100] | Set volume level |
/alert sound list | List available macOS sounds |
Ctrl+Shift+. - Test the current alert
The default mode is beep with Glass sound on macOS or a generated glass-like tone on other platforms.
| Platform | Sound |
|---|---|
| macOS | System sound (Glass by default) |
| Linux | Generated 1318Hz tone with harmonics |
| Windows | Generated 1318Hz tone with harmonics |
Notes are formatted as NoteOctave:DurationMs:
| Note | Frequency | Example |
|---|---|---|
| C4 | 261.63 Hz | Middle C |
| E4 | 329.63 Hz | |
| G4 | 392.00 Hz | |
| C5 | 523.25 Hz | High C |
| E5 | 659.25 Hz | |
| G5 | 783.99 Hz | |
| A4 | 440.00 Hz | Concert A |
Examples:
C4:200 - Middle C for 200msC4:200,E4:200,G4:200,C5:400 - C major arpeggioC5:150,C5:150,C5:150,G5:600 - Imperial March first phraseWhen the user asks to be kept updated, use the notification:
Trigger phrases:
What it does:
Settings are stored in ~/.pi/pi-alerts-settings.json:
{
"defaultMode": "beep",
"beepCount": 1,
"beepDelayMs": 200,
"beepSound": "Glass",
"toneSequence": [
{ "frequency": 523.25, "duration": 150 },
{ "frequency": 659.25, "duration": 150 },
{ "frequency": 783.99, "duration": 300 }
],
"speechText": "Task complete!",
"notificationTitle": "pi Alert",
"volume": 80
}
afplay for sound playback/System/Library/Sounds/osascript for notifications and say for speechaplay, paplay, or play for soundnotify-send for notificationsespeak or espeak-ng for speechDownload counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"integrity": "sha512-uJB/wv8t5YqnwvGoE1hYt/nHEwPsva+CmJINmumVqDX2CXUh33cxZwk38msHFjNEXBLz8XgcWAcDfAnpkxD8/w==",
"shasum": "e7d161d41055298d03b2354045b62b95b47fb00f",
"tarball": "https://registry.npmjs.org/@0xkobold/pi-alerts/-/pi-alerts-0.1.0.tgz",
"fileCount": 5,
"unpackedSize": 40011,
"signatures": [
{
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
"sig": "MEYCIQD4jzAbEvCU5pSJPViBOugGsEm3gyG6xRZAVoq9QjQB3wIhAKJO9F9RGJARC7zPoh9TjYh4w3cqhz1fAjrh5q430WdQ"
}
]
}Observed since 21 Oct, 09:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:8eba7030d6fec063b4add53c6ca0a7afb47c1d3264e2c82f3ee2d67d7a849c2e