svamp-cli 0.2.346 → 0.2.358

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.
Files changed (33) hide show
  1. package/bin/skills/artifact/SKILL.md +19 -5
  2. package/bin/skills/crew/SKILL.md +42 -11
  3. package/dist/{acpBackend-BZ1MJhQV.mjs → acpBackend-UaBD4zL3.mjs} +3 -0
  4. package/dist/{agentCommands-B2Nl7Fof.mjs → agentCommands-C_KvvYFp.mjs} +5 -5
  5. package/dist/{claudeAuth-iAerdaMr.mjs → claudeAuth-DMDvPNhO.mjs} +55 -6
  6. package/dist/cli.mjs +164 -86
  7. package/dist/{commands-D69mnkYu.mjs → commands-B19lVZjm.mjs} +10 -3
  8. package/dist/{commands-BB1Kcyt-.mjs → commands-Bmoy6Rlw.mjs} +34 -4
  9. package/dist/{commands-CiRCwjkJ.mjs → commands-CFBKkfX8.mjs} +9 -9
  10. package/dist/{commands-D1pZq3d4.mjs → commands-CcdoQIkb.mjs} +126 -25
  11. package/dist/{commands-BOpoVBOM.mjs → commands-DH_YQrAP.mjs} +5 -21
  12. package/dist/{commands-H4PsTGn8.mjs → commands-DRxANaS5.mjs} +65 -19
  13. package/dist/{commands-C2aODeVc.mjs → commands-nkvTnUJj.mjs} +29 -13
  14. package/dist/{detectIsolation-CzoDCEnh.mjs → detectIsolation-CrV8IFDv.mjs} +36 -16
  15. package/dist/{fleet-DM_Q7w69.mjs → fleet-Ca-UjJNL.mjs} +40 -15
  16. package/dist/friendlyName-B-OEwt0t.mjs +341 -0
  17. package/dist/{headlessCli-C8HzQvis.mjs → headlessCli-BpTXz6FD.mjs} +24 -16
  18. package/dist/{hookSettings-DYMTUgVA.mjs → hookSettings-CvvUhwCK.mjs} +294 -55
  19. package/dist/{friendlyName-1UZcyDhu.mjs → inboxGuard-CDqmIypF.mjs} +32 -347
  20. package/dist/index.mjs +10 -9
  21. package/dist/{loopVerify-B47sSjxe.mjs → loopVerify-CxAKJB5a.mjs} +1 -1
  22. package/dist/{notifyCommands-D-IKIxiq.mjs → notifyCommands-CCUE18Q-.mjs} +1 -1
  23. package/dist/package-DTTWvJbp.mjs +64 -0
  24. package/dist/{rpc-Cf0grcru.mjs → rpc-CAlAHQAy.mjs} +8 -3
  25. package/dist/{rpc-BB6RF4-F.mjs → rpc-CacreLQ8.mjs} +13 -9
  26. package/dist/{run-ChdsgaSD.mjs → run-Bc81iurl.mjs} +27 -8
  27. package/dist/{run-DkjwF-zA.mjs → run-DKOND4dO.mjs} +222 -73
  28. package/dist/{scheduler-BY30ZrB9.mjs → scheduler-IyLWBF8T.mjs} +28 -10
  29. package/dist/{serveAuth-DbVLRCRR.mjs → serveAuth-4M0vwMyj.mjs} +53 -11
  30. package/dist/{serveCommands-CUHUiYnZ.mjs → serveCommands-B-Ym_QXc.mjs} +8 -8
  31. package/dist/{store-Bn0ByYev.mjs → store-D8dok6_d.mjs} +62 -14
  32. package/package.json +3 -3
  33. package/dist/package-DtuINqf5.mjs +0 -64
@@ -261,6 +261,10 @@ async function createPorcupineWakeWord(opts) {
261
261
  };
262
262
  }
263
263
 
264
+ const DEFAULT_REALTIME_MODEL = "gpt-realtime-mini";
265
+ function resolveRealtimeModel(explicit, env) {
266
+ return explicit || env.WISE_VOICE_MODEL || DEFAULT_REALTIME_MODEL;
267
+ }
264
268
  async function runWiseVoiceCli(opts = {}) {
265
269
  const resolved = resolveModel({ provider: "openai" }, process.env);
266
270
  const mis = describeMisconfiguration(resolved);
@@ -286,30 +290,34 @@ async function runWiseVoiceCli(opts = {}) {
286
290
  }
287
291
  }
288
292
  const audio = createSoxAudioAdapter();
289
- console.log(`\u25CF WISE headless voice \u2014 ${tools.length} tools | model ${opts.model || resolved.model || "gpt-realtime-mini"} | ${wakeWord ? `wake: "${opts.wakeKeywordPath}"` : "always-listening (Ctrl-C to stop)"}`);
293
+ const realtimeModel = resolveRealtimeModel(opts.model, process.env);
294
+ console.log(`\u25CF WISE headless voice \u2014 ${tools.length} tools | model ${realtimeModel} | ${wakeWord ? `wake: "${opts.wakeKeywordPath}"` : "always-listening (Ctrl-C to stop)"}`);
290
295
  const loop = runHeadlessVoice({
291
296
  apiKey: resolved.apiKey,
292
297
  baseUrl: resolved.baseUrl,
293
- config: { instructions, tools, voice: opts.voice, model: opts.model || resolved.model },
298
+ config: { instructions, tools, voice: opts.voice, model: realtimeModel },
299
+ // #1710
294
300
  audio,
295
301
  wakeWord,
296
302
  onTool: (t) => console.log(` \u21B3 ${t.name}: ${t.output.slice(0, 120).replace(/\n/g, " ")}`),
297
303
  onError: (e) => console.error(` ! ${e.message}`)
298
304
  });
299
- const shutdown = () => {
300
- console.log("\nstopping\u2026");
301
- try {
302
- loop.stop();
303
- } catch {
304
- }
305
- try {
306
- audio.close();
307
- } catch {
308
- }
309
- process.exit(0);
310
- };
311
- process.on("SIGINT", shutdown);
312
- process.on("SIGTERM", shutdown);
305
+ await new Promise((resolve) => {
306
+ const shutdown = () => {
307
+ console.log("\nstopping\u2026");
308
+ try {
309
+ loop.stop();
310
+ } catch {
311
+ }
312
+ try {
313
+ audio.close();
314
+ } catch {
315
+ }
316
+ resolve();
317
+ };
318
+ process.on("SIGINT", shutdown);
319
+ process.on("SIGTERM", shutdown);
320
+ });
313
321
  }
314
322
 
315
323
  export { runWiseVoiceCli };