@p8n.ai/pi-listens 0.2.1 → 0.2.2
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/CHANGELOG.md +5 -2
- package/README.md +3 -3
- package/package.json +1 -1
- package/skills/pi-listens/SKILL.md +1 -1
- package/src/commands.ts +2 -2
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,8 @@ This project follows [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.2.2] - 2026-05-09
|
|
10
|
+
|
|
9
11
|
## [0.2.1] - 2026-05-09
|
|
10
12
|
|
|
11
13
|
### Changed
|
|
@@ -25,7 +27,7 @@ This project follows [Semantic Versioning](https://semver.org/).
|
|
|
25
27
|
|
|
26
28
|
### Added
|
|
27
29
|
|
|
28
|
-
- `/init` command to create a global settings file (`~/.pi/pi-listens.json`) with sensible defaults.
|
|
30
|
+
- `/voice-init` command to create a global settings file (`~/.pi/pi-listens.json`) with sensible defaults.
|
|
29
31
|
- `/voice-check` command (replaces `/voice-status`) with improved diagnostic output.
|
|
30
32
|
|
|
31
33
|
### Changed
|
|
@@ -69,9 +71,10 @@ This project follows [Semantic Versioning](https://semver.org/).
|
|
|
69
71
|
- Stop active audio capture/playback subprocesses when voice mode is closed or the Pi session shuts down.
|
|
70
72
|
- Clean up generated audio files when spoken playback is interrupted.
|
|
71
73
|
|
|
72
|
-
[Unreleased]: https://github.com/p8n-ai/pi-listens/compare/v0.2.
|
|
74
|
+
[Unreleased]: https://github.com/p8n-ai/pi-listens/compare/v0.2.2...HEAD
|
|
73
75
|
[0.1.0]: https://github.com/p8n-ai/pi-listens/releases/tag/v0.1.0
|
|
74
76
|
[0.1.1]: https://github.com/p8n-ai/pi-listens/releases/tag/v0.1.1
|
|
75
77
|
[0.1.2]: https://github.com/p8n-ai/pi-listens/releases/tag/v0.1.2
|
|
76
78
|
[0.2.0]: https://github.com/p8n-ai/pi-listens/releases/tag/v0.2.0
|
|
77
79
|
[0.2.1]: https://github.com/p8n-ai/pi-listens/releases/tag/v0.2.1
|
|
80
|
+
[0.2.2]: https://github.com/p8n-ai/pi-listens/releases/tag/v0.2.2
|
package/README.md
CHANGED
|
@@ -14,10 +14,10 @@ pi install npm:@p8n.ai/pi-listens
|
|
|
14
14
|
pi
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Inside Pi, run `/init` to create a global settings file with sensible defaults:
|
|
17
|
+
Inside Pi, run `/voice-init` to create a global settings file with sensible defaults:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
/init
|
|
20
|
+
/voice-init
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
Then open `~/.pi/pi-listens.json` and replace the `apiKey` placeholder with your [Sarvam AI API key](https://dashboard.sarvam.ai).
|
|
@@ -101,7 +101,7 @@ The extension also injects voice guidance into the system prompt:
|
|
|
101
101
|
|
|
102
102
|
| Command | Purpose |
|
|
103
103
|
| --- | --- |
|
|
104
|
-
| `/init` | Create a global settings file at `~/.pi/pi-listens.json` with sensible defaults. Use `--overwrite` to replace an existing file. |
|
|
104
|
+
| `/voice-init` | Create a global settings file at `~/.pi/pi-listens.json` with sensible defaults. Use `--overwrite` to replace an existing file. |
|
|
105
105
|
| `/speak <text>` | Speak text with Sarvam TTS. |
|
|
106
106
|
| `/voice-on [--manual] [--no-listen] [seconds]` | Start the hands-free voice loop. Auto-listens for the next instruction after each agent turn. `--manual` disables auto-listen (press Space to listen). |
|
|
107
107
|
| `/voice-check` | Show setup diagnostics and voice-mode status. |
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ This Pi package provides voice tools backed by Sarvam AI.
|
|
|
17
17
|
|
|
18
18
|
## Commands
|
|
19
19
|
|
|
20
|
-
- `/init`: create a global settings file with defaults. User only needs to set their Sarvam API key.
|
|
20
|
+
- `/voice-init`: create a global settings file with defaults. User only needs to set their Sarvam API key.
|
|
21
21
|
- `/speak <text>`: speak text with Sarvam TTS.
|
|
22
22
|
- `/voice-on`: start hands-free voice loop (auto-listens after each agent turn by default).
|
|
23
23
|
- `/voice-check`: show setup diagnostics and voice-mode status.
|
package/src/commands.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface VoiceModeState {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export function registerVoiceCommands(pi: ExtensionAPI, services: VoiceToolServices, state: VoiceModeState) {
|
|
29
|
-
pi.registerCommand("init", {
|
|
29
|
+
pi.registerCommand("voice-init", {
|
|
30
30
|
description: "Create a global pi-listens settings file at ~/.pi/pi-listens.json with sensible defaults",
|
|
31
31
|
handler: async (args, ctx) => {
|
|
32
32
|
await initSettings(services, ctx, args.includes("--overwrite"));
|
|
@@ -119,7 +119,7 @@ async function initSettings(services: VoiceToolServices, ctx: ExtensionCommandCo
|
|
|
119
119
|
`Settings file already exists: ${filePath}`,
|
|
120
120
|
hasKey ? "Sarvam API key: set" : "Sarvam API key: not yet configured",
|
|
121
121
|
"",
|
|
122
|
-
"Use /init --overwrite to replace it with fresh defaults.",
|
|
122
|
+
"Use /voice-init --overwrite to replace it with fresh defaults.",
|
|
123
123
|
].join("\n"),
|
|
124
124
|
"info",
|
|
125
125
|
);
|
package/src/index.ts
CHANGED
|
@@ -50,7 +50,7 @@ export default function piListensExtension(pi: ExtensionAPI) {
|
|
|
50
50
|
`Sarvam API key: ${maskSecret(config.apiKey)}`,
|
|
51
51
|
`Recorder: ${audioInfo.recorder}`,
|
|
52
52
|
`Player: ${audioInfo.player}`,
|
|
53
|
-
"Run /init to create a settings file, or /voice-check for details.",
|
|
53
|
+
"Run /voice-init to create a settings file, or /voice-check for details.",
|
|
54
54
|
].join("\n"),
|
|
55
55
|
"warning",
|
|
56
56
|
);
|