svamp-cli 0.2.251 → 0.2.253

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 (25) hide show
  1. package/dist/{agentCommands-Bcqo8iMs.mjs → agentCommands-DYoNzX4K.mjs} +5 -5
  2. package/dist/{auth-aefPotnn.mjs → auth-D0nW0Gyj.mjs} +1 -1
  3. package/dist/cli.mjs +77 -70
  4. package/dist/{commands-Cy6dc7Ey.mjs → commands-B9wShol7.mjs} +1 -1
  5. package/dist/{commands-BwvIihFY.mjs → commands-C3YGnWyy.mjs} +1 -1
  6. package/dist/{commands-BF-wFyla.mjs → commands-CfDWN8Ej.mjs} +2 -2
  7. package/dist/{commands-DV7Somb0.mjs → commands-CvWkQB_c.mjs} +1 -1
  8. package/dist/{commands-CBOY46Ig.mjs → commands-EhQiKpwu.mjs} +6 -6
  9. package/dist/{commands-hPm8AYNG.mjs → commands-YPQSZ4Qx.mjs} +9 -2
  10. package/dist/{commands-D7Sifr5h.mjs → commands-_Tr8pO3_.mjs} +2 -2
  11. package/dist/{fleet-CBIJW3k7.mjs → fleet-Ndfbo8Ni.mjs} +2 -2
  12. package/dist/{frpc-DshAO_N4.mjs → frpc-CLQB-GM1.mjs} +1 -1
  13. package/dist/{headlessCli-l72fsaU0.mjs → headlessCli-CbCWVR81.mjs} +2 -2
  14. package/dist/index.mjs +1 -1
  15. package/dist/{package-ayXBWSo-.mjs → package-BTW_-LFn.mjs} +1 -1
  16. package/dist/{pinnedClaudeCode-ivV7xAp3.mjs → pinnedClaudeCode-DuLXaoGP.mjs} +1 -1
  17. package/dist/{rpc-B2BhUPgt.mjs → rpc-0HSLhpCb.mjs} +1 -1
  18. package/dist/{rpc-CtfcD14b.mjs → rpc-BB-AxQa_.mjs} +1 -1
  19. package/dist/{run-BCU137ie.mjs → run-BtWV7xhR.mjs} +1 -1
  20. package/dist/{run-CRe59VaY.mjs → run-hYUl-Fln.mjs} +146 -71
  21. package/dist/{scheduler-CW_l0_B6.mjs → scheduler-DaFydJPf.mjs} +1 -1
  22. package/dist/{serveCommands-JgPmRokC.mjs → serveCommands-BgtRllaY.mjs} +5 -5
  23. package/dist/{serveManager-CL0QrW7Z.mjs → serveManager-BK5OjhXU.mjs} +2 -2
  24. package/dist/{sideband-CiE3Nqih.mjs → sideband-C0qzprWp.mjs} +1 -1
  25. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
2
2
  import { join, dirname } from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
5
- import { k as shortId } from './run-CRe59VaY.mjs';
5
+ import { k as shortId } from './run-hYUl-Fln.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -97,7 +97,7 @@ async function sessionSetTitle(title) {
97
97
  }
98
98
  async function sessionSetProjectDescription(description) {
99
99
  const dir = process.cwd();
100
- const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.al; });
100
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.al; });
101
101
  const desc = sanitizeDescription(description, 240);
102
102
  if (!desc) {
103
103
  console.error("Project description is empty.");
@@ -344,7 +344,7 @@ async function sessionBroadcast(action, args) {
344
344
  console.log(`Broadcast sent: ${action}`);
345
345
  }
346
346
  async function connectToMachineService() {
347
- const { connectAndGetMachine } = await import('./commands-hPm8AYNG.mjs');
347
+ const { connectAndGetMachine } = await import('./commands-YPQSZ4Qx.mjs');
348
348
  return connectAndGetMachine();
349
349
  }
350
350
  function buildInboxMessage(args) {
@@ -422,7 +422,7 @@ async function inboxSend(targetSessionId, opts) {
422
422
  console.error("Message body is required.");
423
423
  process.exit(1);
424
424
  }
425
- const { connectAndResolveSession } = await import('./commands-hPm8AYNG.mjs');
425
+ const { connectAndResolveSession } = await import('./commands-YPQSZ4Qx.mjs');
426
426
  let server;
427
427
  try {
428
428
  const { targetId, messageId } = await inboxSendCore(
@@ -476,7 +476,7 @@ async function inboxReply(messageId, body) {
476
476
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
477
477
  process.exit(1);
478
478
  }
479
- const { connectAndResolveSession } = await import('./commands-hPm8AYNG.mjs');
479
+ const { connectAndResolveSession } = await import('./commands-YPQSZ4Qx.mjs');
480
480
  const { server: localServer, machine: localMachine } = await connectToMachineService();
481
481
  let localDisconnected = false;
482
482
  const disconnectLocal = async () => {
@@ -1,4 +1,4 @@
1
- import { a1 as resolveModel } from './run-CRe59VaY.mjs';
1
+ import { a1 as resolveModel } from './run-hYUl-Fln.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CRe59VaY.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-hYUl-Fln.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
@@ -35,7 +35,7 @@ const subcommand = args[0];
35
35
  let daemonSubcommand = args[1];
36
36
  async function main() {
37
37
  try {
38
- const { getLoadedConfig } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ar; });
38
+ const { getLoadedConfig } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ar; });
39
39
  getLoadedConfig();
40
40
  } catch {
41
41
  }
@@ -54,7 +54,7 @@ async function main() {
54
54
  }
55
55
  const whenIdle = args.includes("--when-idle");
56
56
  const force = args.includes("--force");
57
- const mod = await import('./run-CRe59VaY.mjs').then(function (n) { return n.at; });
57
+ const mod = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.at; });
58
58
  if (whenIdle && !force) {
59
59
  if (mod.isDaemonAlive()) {
60
60
  mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
@@ -355,7 +355,7 @@ async function main() {
355
355
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
356
356
  process.exit(1);
357
357
  }
358
- const { handleServiceCommand } = await import('./commands-CBOY46Ig.mjs');
358
+ const { handleServiceCommand } = await import('./commands-EhQiKpwu.mjs');
359
359
  await handleServiceCommand();
360
360
  } else if (subcommand === "serve") {
361
361
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -363,7 +363,7 @@ async function main() {
363
363
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
364
364
  process.exit(1);
365
365
  }
366
- const { handleServeCommand } = await import('./serveCommands-JgPmRokC.mjs');
366
+ const { handleServeCommand } = await import('./serveCommands-BgtRllaY.mjs');
367
367
  await handleServeCommand();
368
368
  process.exit(0);
369
369
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -372,7 +372,7 @@ async function main() {
372
372
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
373
373
  process.exit(1);
374
374
  }
375
- const { processCommand } = await import('./commands-D7Sifr5h.mjs');
375
+ const { processCommand } = await import('./commands-_Tr8pO3_.mjs');
376
376
  let machineId;
377
377
  const processArgs = args.slice(1);
378
378
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -386,18 +386,18 @@ async function main() {
386
386
  }), machineId);
387
387
  process.exit(0);
388
388
  } else if (subcommand === "issue" || subcommand === "issues") {
389
- const { issueCommand } = await import('./commands-BwvIihFY.mjs');
389
+ const { issueCommand } = await import('./commands-C3YGnWyy.mjs');
390
390
  await issueCommand(args.slice(1));
391
391
  process.exit(0);
392
392
  } else if (subcommand === "workflow" || subcommand === "workflows") {
393
- const { workflowCommand } = await import('./commands-Cy6dc7Ey.mjs');
393
+ const { workflowCommand } = await import('./commands-B9wShol7.mjs');
394
394
  await workflowCommand(args.slice(1));
395
395
  process.exit(0);
396
396
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
397
397
  await handleWiseAgentCommand(args.slice(1));
398
398
  process.exit(0);
399
399
  } else if (subcommand === "feature" || subcommand === "crew") {
400
- const { crewCommand } = await import('./commands-BF-wFyla.mjs');
400
+ const { crewCommand } = await import('./commands-CfDWN8Ej.mjs');
401
401
  await crewCommand(args.slice(1));
402
402
  process.exit(0);
403
403
  } else if (subcommand === "--help" || subcommand === "-h") {
@@ -405,7 +405,7 @@ async function main() {
405
405
  } else if (!subcommand || subcommand === "start") {
406
406
  await handleInteractiveCommand();
407
407
  } else if (subcommand === "--version" || subcommand === "-v") {
408
- const pkg = await import('./package-ayXBWSo-.mjs').catch(() => ({ default: { version: "unknown" } }));
408
+ const pkg = await import('./package-BTW_-LFn.mjs').catch(() => ({ default: { version: "unknown" } }));
409
409
  console.log(`svamp version: ${pkg.default.version}`);
410
410
  } else {
411
411
  console.error(`Unknown command: ${subcommand}`);
@@ -414,7 +414,7 @@ async function main() {
414
414
  }
415
415
  }
416
416
  async function handleInteractiveCommand() {
417
- const { runInteractive } = await import('./run-BCU137ie.mjs');
417
+ const { runInteractive } = await import('./run-BtWV7xhR.mjs');
418
418
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
419
419
  let directory = process.cwd();
420
420
  let resumeSessionId;
@@ -459,7 +459,7 @@ async function handleAgentCommand() {
459
459
  return;
460
460
  }
461
461
  if (agentArgs[0] === "list") {
462
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ao; });
462
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ao; });
463
463
  console.log("Known agents:");
464
464
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
465
465
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -471,7 +471,7 @@ async function handleAgentCommand() {
471
471
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
472
472
  return;
473
473
  }
474
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ao; });
474
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ao; });
475
475
  let cwd = process.cwd();
476
476
  const filteredArgs = [];
477
477
  for (let i = 0; i < agentArgs.length; i++) {
@@ -495,12 +495,12 @@ async function handleAgentCommand() {
495
495
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
496
496
  let backend;
497
497
  if (KNOWN_MCP_AGENTS[config.agentName]) {
498
- const { CodexMcpBackend } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ap; });
498
+ const { CodexMcpBackend } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ap; });
499
499
  backend = new CodexMcpBackend({ cwd, log: logFn });
500
500
  } else {
501
- const { AcpBackend } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.an; });
502
- const { GeminiTransport } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.aq; });
503
- const { DefaultTransport } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.am; });
501
+ const { AcpBackend } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.an; });
502
+ const { GeminiTransport } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.aq; });
503
+ const { DefaultTransport } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.am; });
504
504
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
505
505
  backend = new AcpBackend({
506
506
  agentName: config.agentName,
@@ -627,7 +627,7 @@ async function handleSessionCommand() {
627
627
  process.exit(1);
628
628
  }
629
629
  }
630
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-hPm8AYNG.mjs');
630
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-YPQSZ4Qx.mjs');
631
631
  const parseFlagStr = (flag, shortFlag) => {
632
632
  for (let i = 1; i < sessionArgs.length; i++) {
633
633
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -695,7 +695,7 @@ async function handleSessionCommand() {
695
695
  allowDomain.push(sessionArgs[++i]);
696
696
  }
697
697
  }
698
- const { parseShareArg } = await import('./commands-hPm8AYNG.mjs');
698
+ const { parseShareArg } = await import('./commands-YPQSZ4Qx.mjs');
699
699
  const shareEntries = share.map((s) => parseShareArg(s));
700
700
  await sessionSpawn(agent, dir, targetMachineId, {
701
701
  message,
@@ -759,7 +759,8 @@ async function handleSessionCommand() {
759
759
  await sessionAttach(sessionArgs[1], targetMachineId);
760
760
  } else if (sessionSubcommand === "send") {
761
761
  if (!sessionArgs[1] || !sessionArgs[2]) {
762
- console.error('Usage: svamp session send <session-id> <message> [--model <id>] [--plain] [--subject "..."] [--urgency urgent|normal] [--wait] [--response] [--btw] [--require-approval] [--timeout N] [--json]');
762
+ console.error('Usage: svamp session send <session-id> <message> [--model <id>] [--plain] [--subject "..."] [--when-idle] [--urgency urgent|normal] [--wait] [--response] [--btw] [--require-approval] [--timeout N] [--json]');
763
+ console.error(" --when-idle Deferred delivery: park the message and let the recipient handle it on its next idle turn (default is urgent \u2014 wakes immediately).");
763
764
  console.error(" --model <id> Switch the session model (e.g. claude-opus-4-7, claude-sonnet-4-6) before delivering the message \u2014 forces a respawn.");
764
765
  process.exit(1);
765
766
  }
@@ -771,6 +772,7 @@ async function handleSessionCommand() {
771
772
  timeout: parseFlagInt("--timeout"),
772
773
  json: hasFlag("--json"),
773
774
  subject: parseFlagStr("--subject"),
775
+ whenIdle: hasFlag("--when-idle"),
774
776
  urgency: parseFlagStr("--urgency"),
775
777
  model: parseFlagStr("--model"),
776
778
  plain: hasFlag("--plain"),
@@ -783,7 +785,7 @@ async function handleSessionCommand() {
783
785
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
784
786
  process.exit(1);
785
787
  }
786
- const { sessionEditMessage } = await import('./commands-hPm8AYNG.mjs');
788
+ const { sessionEditMessage } = await import('./commands-YPQSZ4Qx.mjs');
787
789
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
788
790
  } else if (sessionSubcommand === "refine") {
789
791
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -791,7 +793,7 @@ async function handleSessionCommand() {
791
793
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
792
794
  process.exit(1);
793
795
  }
794
- const { sessionRefineLastReply } = await import('./commands-hPm8AYNG.mjs');
796
+ const { sessionRefineLastReply } = await import('./commands-YPQSZ4Qx.mjs');
795
797
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
796
798
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
797
799
  if (!sessionArgs[1]) {
@@ -799,7 +801,7 @@ async function handleSessionCommand() {
799
801
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
800
802
  process.exit(1);
801
803
  }
802
- const { sessionUndoEdit } = await import('./commands-hPm8AYNG.mjs');
804
+ const { sessionUndoEdit } = await import('./commands-YPQSZ4Qx.mjs');
803
805
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
804
806
  } else if (sessionSubcommand === "query") {
805
807
  const dir = sessionArgs[1];
@@ -809,7 +811,7 @@ async function handleSessionCommand() {
809
811
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
810
812
  process.exit(1);
811
813
  }
812
- const { sessionQuery } = await import('./commands-hPm8AYNG.mjs');
814
+ const { sessionQuery } = await import('./commands-YPQSZ4Qx.mjs');
813
815
  await sessionQuery(dir, prompt, targetMachineId, {
814
816
  timeout: parseFlagInt("--timeout"),
815
817
  json: hasFlag("--json"),
@@ -842,7 +844,7 @@ async function handleSessionCommand() {
842
844
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
843
845
  process.exit(1);
844
846
  }
845
- const { sessionApprove } = await import('./commands-hPm8AYNG.mjs');
847
+ const { sessionApprove } = await import('./commands-YPQSZ4Qx.mjs');
846
848
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
847
849
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
848
850
  json: hasFlag("--json")
@@ -852,7 +854,7 @@ async function handleSessionCommand() {
852
854
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
853
855
  process.exit(1);
854
856
  }
855
- const { sessionDeny } = await import('./commands-hPm8AYNG.mjs');
857
+ const { sessionDeny } = await import('./commands-YPQSZ4Qx.mjs');
856
858
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
857
859
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
858
860
  json: hasFlag("--json")
@@ -897,7 +899,7 @@ async function handleSessionCommand() {
897
899
  console.error("Usage: svamp session set-title <title>");
898
900
  process.exit(1);
899
901
  }
900
- const { sessionSetTitle } = await import('./agentCommands-Bcqo8iMs.mjs');
902
+ const { sessionSetTitle } = await import('./agentCommands-DYoNzX4K.mjs');
901
903
  await sessionSetTitle(title);
902
904
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
903
905
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -905,7 +907,7 @@ async function handleSessionCommand() {
905
907
  console.error("Usage: svamp session set-project-description <text>");
906
908
  process.exit(1);
907
909
  }
908
- const { sessionSetProjectDescription } = await import('./agentCommands-Bcqo8iMs.mjs');
910
+ const { sessionSetProjectDescription } = await import('./agentCommands-DYoNzX4K.mjs');
909
911
  await sessionSetProjectDescription(desc);
910
912
  } else if (sessionSubcommand === "set-link") {
911
913
  const url = sessionArgs[1];
@@ -914,11 +916,11 @@ async function handleSessionCommand() {
914
916
  process.exit(1);
915
917
  }
916
918
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
917
- const { sessionSetLink } = await import('./agentCommands-Bcqo8iMs.mjs');
919
+ const { sessionSetLink } = await import('./agentCommands-DYoNzX4K.mjs');
918
920
  await sessionSetLink(url, label);
919
921
  } else if (sessionSubcommand === "link") {
920
922
  const op = sessionArgs[1];
921
- const lm = await import('./agentCommands-Bcqo8iMs.mjs');
923
+ const lm = await import('./agentCommands-DYoNzX4K.mjs');
922
924
  if (op === "add") {
923
925
  const url = sessionArgs[2];
924
926
  if (!url || url.startsWith("--")) {
@@ -953,7 +955,7 @@ async function handleSessionCommand() {
953
955
  process.exit(1);
954
956
  }
955
957
  const level = parseFlagStr("--level") || "info";
956
- const { sessionNotify } = await import('./agentCommands-Bcqo8iMs.mjs');
958
+ const { sessionNotify } = await import('./agentCommands-DYoNzX4K.mjs');
957
959
  await sessionNotify(message, level);
958
960
  } else if (sessionSubcommand === "broadcast") {
959
961
  const action = sessionArgs[1];
@@ -961,7 +963,7 @@ async function handleSessionCommand() {
961
963
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
962
964
  process.exit(1);
963
965
  }
964
- const { sessionBroadcast } = await import('./agentCommands-Bcqo8iMs.mjs');
966
+ const { sessionBroadcast } = await import('./agentCommands-DYoNzX4K.mjs');
965
967
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
966
968
  } else if (sessionSubcommand === "inbox") {
967
969
  const inboxSubcmd = sessionArgs[1];
@@ -972,7 +974,7 @@ async function handleSessionCommand() {
972
974
  process.exit(1);
973
975
  }
974
976
  if (agentSessionId) {
975
- const { inboxSend } = await import('./agentCommands-Bcqo8iMs.mjs');
977
+ const { inboxSend } = await import('./agentCommands-DYoNzX4K.mjs');
976
978
  await inboxSend(sessionArgs[2], {
977
979
  body: sessionArgs[3],
978
980
  subject: parseFlagStr("--subject"),
@@ -987,7 +989,7 @@ async function handleSessionCommand() {
987
989
  }
988
990
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
989
991
  if (agentSessionId && !sessionArgs[2]) {
990
- const { inboxList } = await import('./agentCommands-Bcqo8iMs.mjs');
992
+ const { inboxList } = await import('./agentCommands-DYoNzX4K.mjs');
991
993
  await inboxList({
992
994
  unread: hasFlag("--unread"),
993
995
  limit: parseFlagInt("--limit"),
@@ -1009,7 +1011,7 @@ async function handleSessionCommand() {
1009
1011
  process.exit(1);
1010
1012
  }
1011
1013
  if (agentSessionId && !sessionArgs[3]) {
1012
- const { inboxList } = await import('./agentCommands-Bcqo8iMs.mjs');
1014
+ const { inboxList } = await import('./agentCommands-DYoNzX4K.mjs');
1013
1015
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1014
1016
  } else if (sessionArgs[3]) {
1015
1017
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1019,7 +1021,7 @@ async function handleSessionCommand() {
1019
1021
  }
1020
1022
  } else if (inboxSubcmd === "reply") {
1021
1023
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1022
- const { inboxReply } = await import('./agentCommands-Bcqo8iMs.mjs');
1024
+ const { inboxReply } = await import('./agentCommands-DYoNzX4K.mjs');
1023
1025
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1024
1026
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1025
1027
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1057,7 +1059,7 @@ async function handleMachineCommand() {
1057
1059
  return;
1058
1060
  }
1059
1061
  if (machineSubcommand === "share") {
1060
- const { machineShare } = await import('./commands-hPm8AYNG.mjs');
1062
+ const { machineShare } = await import('./commands-YPQSZ4Qx.mjs');
1061
1063
  let machineId;
1062
1064
  const shareArgs = [];
1063
1065
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1108,14 +1110,14 @@ async function handleMachineCommand() {
1108
1110
  process.exit(1);
1109
1111
  }
1110
1112
  if (all) {
1111
- const { fleetExec } = await import('./fleet-CBIJW3k7.mjs');
1113
+ const { fleetExec } = await import('./fleet-Ndfbo8Ni.mjs');
1112
1114
  await fleetExec(command, { cwd });
1113
1115
  } else {
1114
- const { machineExec } = await import('./commands-hPm8AYNG.mjs');
1116
+ const { machineExec } = await import('./commands-YPQSZ4Qx.mjs');
1115
1117
  await machineExec(machineId, command, cwd);
1116
1118
  }
1117
1119
  } else if (machineSubcommand === "info") {
1118
- const { machineInfo } = await import('./commands-hPm8AYNG.mjs');
1120
+ const { machineInfo } = await import('./commands-YPQSZ4Qx.mjs');
1119
1121
  let machineId;
1120
1122
  for (let i = 1; i < machineArgs.length; i++) {
1121
1123
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1135,10 +1137,10 @@ async function handleMachineCommand() {
1135
1137
  level = machineArgs[++i];
1136
1138
  }
1137
1139
  }
1138
- const { machineNotify } = await import('./agentCommands-Bcqo8iMs.mjs');
1140
+ const { machineNotify } = await import('./agentCommands-DYoNzX4K.mjs');
1139
1141
  await machineNotify(message, level);
1140
1142
  } else if (machineSubcommand === "ls") {
1141
- const { machineLs } = await import('./commands-hPm8AYNG.mjs');
1143
+ const { machineLs } = await import('./commands-YPQSZ4Qx.mjs');
1142
1144
  let machineId;
1143
1145
  let showHidden = false;
1144
1146
  let path;
@@ -1197,20 +1199,20 @@ Examples:
1197
1199
  };
1198
1200
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1199
1201
  if (sub === "status") {
1200
- const { fleetStatus } = await import('./fleet-CBIJW3k7.mjs');
1202
+ const { fleetStatus } = await import('./fleet-Ndfbo8Ni.mjs');
1201
1203
  await fleetStatus();
1202
1204
  } else if (sub === "upgrade-claude") {
1203
- const { fleetUpgradeClaude } = await import('./fleet-CBIJW3k7.mjs');
1205
+ const { fleetUpgradeClaude } = await import('./fleet-Ndfbo8Ni.mjs');
1204
1206
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1205
1207
  } else if (sub === "upgrade-svamp") {
1206
- const { fleetUpgradeSvamp } = await import('./fleet-CBIJW3k7.mjs');
1208
+ const { fleetUpgradeSvamp } = await import('./fleet-Ndfbo8Ni.mjs');
1207
1209
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self"), force: hasFlag("force") });
1208
1210
  } else if (sub === "daemon-restart") {
1209
- const { fleetDaemonRestart } = await import('./fleet-CBIJW3k7.mjs');
1211
+ const { fleetDaemonRestart } = await import('./fleet-Ndfbo8Ni.mjs');
1210
1212
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1211
1213
  } else if (sub === "push-skill") {
1212
1214
  const name = fleetArgs[1];
1213
- const { fleetPushSkill } = await import('./fleet-CBIJW3k7.mjs');
1215
+ const { fleetPushSkill } = await import('./fleet-Ndfbo8Ni.mjs');
1214
1216
  await fleetPushSkill(name);
1215
1217
  } else {
1216
1218
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1226,7 +1228,7 @@ async function handleSkillsCommand() {
1226
1228
  await printSkillsHelp();
1227
1229
  return;
1228
1230
  }
1229
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DV7Somb0.mjs');
1231
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-CvWkQB_c.mjs');
1230
1232
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1231
1233
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1232
1234
  if (!query) {
@@ -1273,7 +1275,7 @@ async function loginToHypha() {
1273
1275
  process.exit(1);
1274
1276
  }
1275
1277
  const anchor = anchorArg.replace(/\/+$/, "");
1276
- const { loadInstanceConfig } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ar; });
1278
+ const { loadInstanceConfig } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ar; });
1277
1279
  let cfg = null;
1278
1280
  try {
1279
1281
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1384,7 +1386,7 @@ async function logoutFromHypha() {
1384
1386
  } catch {
1385
1387
  }
1386
1388
  try {
1387
- const { clearInstanceConfigCache } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ar; });
1389
+ const { clearInstanceConfigCache } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ar; });
1388
1390
  clearInstanceConfigCache();
1389
1391
  } catch {
1390
1392
  }
@@ -1630,7 +1632,7 @@ Commands:
1630
1632
 
1631
1633
  Session management (requires daemon running):
1632
1634
  svamp session spawn <agent> [opts] Spawn a new agent session (agents: claude, gemini, codex)
1633
- svamp session send <id> <message> Send message to a session (non-urgent by default; --wait/--response/--urgency urgent to wake)
1635
+ svamp session send <id> <message> Send message to a session (urgent by default \u2014 wakes the recipient; --when-idle to defer to their next idle turn)
1634
1636
  svamp session query <dir> <prompt> Stateless one-shot: spawn \u2192 ask \u2192 answer \u2192 delete
1635
1637
  svamp session wait <id> Wait for agent to become idle
1636
1638
  svamp session messages <id> Show message history (--last N, --json, --raw)
@@ -1723,7 +1725,7 @@ async function applyClaudeAuthFlags(argv) {
1723
1725
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1724
1726
  );
1725
1727
  }
1726
- const mod = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ak; });
1728
+ const mod = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ak; });
1727
1729
  if (hasHypha) {
1728
1730
  let url;
1729
1731
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1777,7 +1779,7 @@ async function applyDaemonShareFlag(argv) {
1777
1779
  }
1778
1780
  }
1779
1781
  if (collected.length === 0) return;
1780
- const { updateEnvFile } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ak; });
1782
+ const { updateEnvFile } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ak; });
1781
1783
  const seen = /* @__PURE__ */ new Set();
1782
1784
  const deduped = collected.filter((e) => {
1783
1785
  const k = e.toLowerCase();
@@ -1810,7 +1812,7 @@ async function handleWiseAgentCommand(rest) {
1810
1812
  }
1811
1813
  });
1812
1814
  const message = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
1813
- const { wiseAskCli } = await import('./commands-hPm8AYNG.mjs');
1815
+ const { wiseAskCli } = await import('./commands-YPQSZ4Qx.mjs');
1814
1816
  await wiseAskCli(machineId, message, sessionId, { json });
1815
1817
  return;
1816
1818
  }
@@ -1822,7 +1824,7 @@ async function handleWiseAgentCommand(rest) {
1822
1824
  }
1823
1825
  return void 0;
1824
1826
  };
1825
- const { runWiseVoiceCli } = await import('./headlessCli-l72fsaU0.mjs');
1827
+ const { runWiseVoiceCli } = await import('./headlessCli-CbCWVR81.mjs');
1826
1828
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1827
1829
  return;
1828
1830
  }
@@ -1840,7 +1842,7 @@ async function handleWiseAgentCommand(rest) {
1840
1842
  const mode = valueOf(["--mode"]);
1841
1843
  const mission = valueOf(["--mission"]);
1842
1844
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1843
- const { wiseJoinMeetingCli } = await import('./commands-hPm8AYNG.mjs');
1845
+ const { wiseJoinMeetingCli } = await import('./commands-YPQSZ4Qx.mjs');
1844
1846
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1845
1847
  return;
1846
1848
  }
@@ -1852,7 +1854,7 @@ async function handleWiseAgentCommand(rest) {
1852
1854
  }
1853
1855
  return void 0;
1854
1856
  };
1855
- const { wiseLeaveMeetingCli } = await import('./commands-hPm8AYNG.mjs');
1857
+ const { wiseLeaveMeetingCli } = await import('./commands-YPQSZ4Qx.mjs');
1856
1858
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1857
1859
  return;
1858
1860
  }
@@ -1876,7 +1878,7 @@ async function handleWiseAgentCommand(rest) {
1876
1878
  }
1877
1879
  });
1878
1880
  const text = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
1879
- const { wiseAnnounceCli } = await import('./commands-hPm8AYNG.mjs');
1881
+ const { wiseAnnounceCli } = await import('./commands-YPQSZ4Qx.mjs');
1880
1882
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1881
1883
  return;
1882
1884
  }
@@ -1888,7 +1890,7 @@ async function handleWiseAgentCommand(rest) {
1888
1890
  }
1889
1891
  return void 0;
1890
1892
  };
1891
- const { wiseMeetingsCli } = await import('./commands-hPm8AYNG.mjs');
1893
+ const { wiseMeetingsCli } = await import('./commands-YPQSZ4Qx.mjs');
1892
1894
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1893
1895
  return;
1894
1896
  }
@@ -1938,7 +1940,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1938
1940
  return;
1939
1941
  }
1940
1942
  const authArgs = rest.slice(1);
1941
- const mod = await import('./auth-aefPotnn.mjs');
1943
+ const mod = await import('./auth-D0nW0Gyj.mjs');
1942
1944
  let action;
1943
1945
  try {
1944
1946
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1948,7 +1950,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1948
1950
  return;
1949
1951
  }
1950
1952
  if (action) {
1951
- const { updateEnvFile } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ak; });
1953
+ const { updateEnvFile } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ak; });
1952
1954
  const updates = mod.buildWiseAgentEnvUpdates(action);
1953
1955
  updateEnvFile(updates);
1954
1956
  for (const [k, v] of Object.entries(updates)) {
@@ -1962,7 +1964,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1962
1964
  }
1963
1965
  async function handleDaemonAuthCommand(argv) {
1964
1966
  const sub = (argv[0] || "status").toLowerCase();
1965
- const mod = await import('./run-CRe59VaY.mjs').then(function (n) { return n.ak; });
1967
+ const mod = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.ak; });
1966
1968
  if (sub === "--help" || sub === "-h" || sub === "help") {
1967
1969
  console.log(`
1968
1970
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2077,14 +2079,19 @@ COMMANDS:
2077
2079
  same-user sessions on other machines, and how to reach them (alias: env)
2078
2080
 
2079
2081
  Communicate:
2080
- send <id> <message> [--wait] [--response] [--btw] [--require-approval] [--timeout N] [--json] [--urgency urgent|normal]
2082
+ send <id> <message> [--when-idle] [--wait] [--response] [--btw] [--require-approval] [--timeout N] [--json] [--urgency urgent|normal]
2081
2083
  Send a message to a running session.
2082
- By default this is NON-URGENT: it lands in the peer's
2083
- inbox and is processed on their next idle turn (it does
2084
- NOT interrupt them). Use --wait/--response (synchronous)
2085
- or --urgency urgent to wake the agent immediately. Loop
2086
- safeguard: a send issued from a turn that was itself
2087
- triggered by an inbox message is always non-urgent.
2084
+ By default this is URGENT: it wakes the recipient so they
2085
+ handle it promptly. Pass --when-idle to defer instead \u2014
2086
+ the message lands in the peer's inbox and is processed on
2087
+ their next idle turn (no interrupt). Loop safeguard: a send
2088
+ issued from a turn that was itself triggered by an inbox
2089
+ message is always forced non-urgent (no recursive wake
2090
+ cascades); the daemon's per-sender rate limit + circuit
2091
+ breaker further bound any storm.
2092
+ --when-idle defer: handle on the recipient's
2093
+ next idle turn (opposite of the
2094
+ urgent default)
2088
2095
  --wait block until the agent goes idle
2089
2096
  --response block AND print the agent's
2090
2097
  text answer (implies --wait)
@@ -2276,7 +2283,7 @@ Examples:
2276
2283
  async function printSkillsHelp() {
2277
2284
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2278
2285
  try {
2279
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CRe59VaY.mjs').then(function (n) { return n.as; });
2286
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-hYUl-Fln.mjs').then(function (n) { return n.as; });
2280
2287
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2281
2288
  } catch {
2282
2289
  }
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { n as resolveProjectRoot, M as workflowSteps, D as setWorkflowEnabled, I as isWorkflowEnabled, E as removeWorkflow, B as getWorkflow, H as listWorkflows, F as saveWorkflow, G as rawWorkflow } from './run-CRe59VaY.mjs';
2
+ import { n as resolveProjectRoot, M as workflowSteps, D as setWorkflowEnabled, I as isWorkflowEnabled, E as removeWorkflow, B as getWorkflow, H as listWorkflows, F as saveWorkflow, G as rawWorkflow } from './run-hYUl-Fln.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
5
5
  import 'fs';
@@ -1,7 +1,7 @@
1
1
  import { execSync } from 'node:child_process';
2
2
  import { existsSync, readFileSync } from 'node:fs';
3
3
  import { join } from 'node:path';
4
- import { n as resolveProjectRoot, x as searchIssues, w as listIssues, p as resumeIssue, q as pauseIssue, t as addComment, u as updateIssue, o as getIssue, y as isVisibleTo, L as summarize, v as addIssue } from './run-CRe59VaY.mjs';
4
+ import { n as resolveProjectRoot, x as searchIssues, w as listIssues, p as resumeIssue, q as pauseIssue, t as addComment, u as updateIssue, o as getIssue, y as isVisibleTo, L as summarize, v as addIssue } from './run-hYUl-Fln.mjs';
5
5
  import 'os';
6
6
  import 'fs/promises';
7
7
  import 'fs';
@@ -1,8 +1,8 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { resolve } from 'node:path';
3
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-hPm8AYNG.mjs';
3
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-YPQSZ4Qx.mjs';
4
4
  import { execSync } from 'node:child_process';
5
- import { u as updateIssue, t as addComment, v as addIssue, k as shortId } from './run-CRe59VaY.mjs';
5
+ import { u as updateIssue, t as addComment, v as addIssue, k as shortId } from './run-hYUl-Fln.mjs';
6
6
  import 'node:os';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { T as parseFrontmatter, U as getSkillsServer, V as getSkillsWorkspaceName, W as getSkillsCollectionName, X as fetchWithTimeout, Y as searchSkills, Z as SKILLS_DIR, _ as getSkillInfo, $ as downloadSkillFile, a0 as listSkillFiles } from './run-CRe59VaY.mjs';
4
+ import { T as parseFrontmatter, U as getSkillsServer, V as getSkillsWorkspaceName, W as getSkillsCollectionName, X as fetchWithTimeout, Y as searchSkills, Z as SKILLS_DIR, _ as getSkillInfo, $ as downloadSkillFile, a0 as listSkillFiles } from './run-hYUl-Fln.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';