@diegopetrucci/pi-extensions 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -24,12 +24,13 @@ This started from the original `notify.ts` example in [`badlogic/pi-mono`](https
|
|
|
24
24
|
- Linux sound playback via `canberra-gtk-play` or `paplay`
|
|
25
25
|
- Windows beep via `powershell.exe`
|
|
26
26
|
|
|
27
|
-
By default,
|
|
27
|
+
By default, these channels are enabled:
|
|
28
28
|
|
|
29
29
|
- terminal notification
|
|
30
30
|
- desktop notification
|
|
31
31
|
- bell
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
Sound remains available as an opt-in option via config.
|
|
33
34
|
|
|
34
35
|
The extension automatically picks the appropriate backend for the current environment.
|
|
35
36
|
|
|
@@ -80,7 +81,7 @@ Example:
|
|
|
80
81
|
"terminal": true,
|
|
81
82
|
"desktop": true,
|
|
82
83
|
"bell": true,
|
|
83
|
-
"sound":
|
|
84
|
+
"sound": false
|
|
84
85
|
},
|
|
85
86
|
"terminal": {
|
|
86
87
|
"backend": "auto"
|
|
@@ -99,6 +100,20 @@ Example:
|
|
|
99
100
|
}
|
|
100
101
|
```
|
|
101
102
|
|
|
103
|
+
### Enable sound
|
|
104
|
+
|
|
105
|
+
Minimal example:
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"channels": {
|
|
110
|
+
"sound": true
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
You can also customize the sound backend and options if needed.
|
|
116
|
+
|
|
102
117
|
### Config fields
|
|
103
118
|
|
|
104
119
|
- `enabled`: master on/off switch
|
|
@@ -123,3 +138,4 @@ Example:
|
|
|
123
138
|
- Hooks the `agent_end` event.
|
|
124
139
|
- Default message is `Pi` / `Ready for input`.
|
|
125
140
|
- Terminal, desktop, bell, and sound channels can be enabled independently.
|
|
141
|
+
- To opt into sound playback, set `channels.sound` to `true`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diegopetrucci/pi-extensions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "A collection of pi extensions, including a minimal custom footer, an Amp-style oracle, a permission gate for dangerous bash commands, confirm-before-destructive session actions, and terminal notifications when pi is ready for input.",
|
|
5
5
|
"keywords": ["pi-package", "pi", "terminal", "agent"],
|
|
6
6
|
"license": "MIT",
|