@codexstar/pi-listen 1.0.9 → 1.0.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/extensions/voice.ts +16 -0
- package/package.json +1 -1
package/extensions/voice.ts
CHANGED
|
@@ -990,6 +990,22 @@ export default function (pi: ExtensionAPI) {
|
|
|
990
990
|
},
|
|
991
991
|
});
|
|
992
992
|
|
|
993
|
+
// ─── Dedicated setup command (discoverable in /command list) ──────────────
|
|
994
|
+
|
|
995
|
+
pi.registerCommand("voice-setup", {
|
|
996
|
+
description: "Configure voice input — select backend, model, and language",
|
|
997
|
+
handler: async (_args, cmdCtx) => {
|
|
998
|
+
ctx = cmdCtx;
|
|
999
|
+
const diagnostics = scanEnvironment(TRANSCRIBE_SCRIPT);
|
|
1000
|
+
const result = await runVoiceOnboarding(cmdCtx, config, diagnostics);
|
|
1001
|
+
if (!result) {
|
|
1002
|
+
cmdCtx.ui.notify("Voice setup cancelled.", "warning");
|
|
1003
|
+
return;
|
|
1004
|
+
}
|
|
1005
|
+
await finalizeAndSaveSetup(cmdCtx, result.config, result.selectedScope, result.summaryLines, "setup-command");
|
|
1006
|
+
},
|
|
1007
|
+
});
|
|
1008
|
+
|
|
993
1009
|
pi.registerCommand("btw:new", {
|
|
994
1010
|
description: "Start a fresh BTW thread",
|
|
995
1011
|
handler: async (args, cmdCtx) => {
|