svamp-cli 0.2.319 → 0.2.321

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 (28) hide show
  1. package/dist/{adminCommands-DBADX_Uo.mjs → adminCommands-BRiz5afS.mjs} +1 -1
  2. package/dist/{agentCommands-BJeGwkeX.mjs → agentCommands-Cve_0_8K.mjs} +32 -6
  3. package/dist/{auth-0NUGwOc0.mjs → auth-DrLE8Yp-.mjs} +1 -1
  4. package/dist/{cli-CWElpiIq.mjs → cli-xMKB7O8k.mjs} +89 -85
  5. package/dist/cli.mjs +2 -2
  6. package/dist/{commands-BsaTwKnd.mjs → commands-BxHc_Exm.mjs} +3 -3
  7. package/dist/{commands-C0lwV0U3.mjs → commands-C-QNVo3l.mjs} +5 -3
  8. package/dist/{commands-DubEbPAY.mjs → commands-CXgDZgqh.mjs} +4 -2
  9. package/dist/{commands-AdVHZXK6.mjs → commands-D1d9snmv.mjs} +1 -1
  10. package/dist/{commands-CJWgDDl5.mjs → commands-D9-YqAI3.mjs} +5 -3
  11. package/dist/{commands-CLgdrTSU.mjs → commands-DfRahEsO.mjs} +5 -3
  12. package/dist/{commands-DMSkWb0h.mjs → commands-Fvgfzyo3.mjs} +34 -9
  13. package/dist/{commands-BY1lmXaM.mjs → commands-slA1eX13.mjs} +1 -1
  14. package/dist/{fleet-OKnU0cYK.mjs → fleet-umFHXPoE.mjs} +2 -2
  15. package/dist/{headlessCli-CCO0IFYl.mjs → headlessCli-DgJ15daM.mjs} +2 -2
  16. package/dist/index.mjs +1 -1
  17. package/dist/{notifyCommands-4GUy4Mcl.mjs → notifyCommands-Cip4lIYS.mjs} +1 -1
  18. package/dist/package-DJRwvqcx.mjs +64 -0
  19. package/dist/{pinnedClaudeCode-dbXgsGNK.mjs → pinnedClaudeCode-BkZfX5pW.mjs} +1 -1
  20. package/dist/{rpc-FGp88Yxp.mjs → rpc-Bz9w7JV9.mjs} +1 -1
  21. package/dist/{rpc-TXF-di9u.mjs → rpc-CLoO6Z5Z.mjs} +1 -1
  22. package/dist/{run-09AkgeGM.mjs → run-CKLatoxa.mjs} +268 -94
  23. package/dist/{run-7TVWXnOM.mjs → run-CxuKTe0N.mjs} +1 -1
  24. package/dist/{scheduler-b-ysyKIj.mjs → scheduler-Bs0nAlhs.mjs} +1 -1
  25. package/dist/{serveCommands-D3W7w0G6.mjs → serveCommands-Bi7DJs-3.mjs} +33 -8
  26. package/dist/{sideband-C1db5sMF.mjs → sideband-CFbMRvzr.mjs} +1 -1
  27. package/package.json +3 -3
  28. package/dist/package-BEEqsQhN.mjs +0 -64
@@ -1,4 +1,4 @@
1
- import { a1 as clearStopMarker, a2 as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-09AkgeGM.mjs';
1
+ import { ae as clearStopMarker, af as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CKLatoxa.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
 
4
4
  function flushAndExit(code) {
@@ -21,6 +21,10 @@ function flushAndExit(code) {
21
21
  });
22
22
  }
23
23
 
24
+ function wantsHelp(args) {
25
+ return args.some((a) => a === "--help" || a === "-h");
26
+ }
27
+
24
28
  const nodeMajor = parseInt(process.versions.node.split(".")[0], 10);
25
29
  if (nodeMajor < 22) {
26
30
  console.error(`Error: svamp requires Node.js >= 22 (you have ${process.version}).`);
@@ -33,7 +37,7 @@ const subcommand = args[0];
33
37
  let daemonSubcommand = args[1];
34
38
  async function main() {
35
39
  try {
36
- const { getLoadedConfig } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.an; });
40
+ const { getLoadedConfig } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.an; });
37
41
  getLoadedConfig();
38
42
  } catch {
39
43
  }
@@ -52,7 +56,7 @@ async function main() {
52
56
  }
53
57
  const whenIdle = args.includes("--when-idle");
54
58
  const force = args.includes("--force");
55
- const mod = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aC; });
59
+ const mod = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aC; });
56
60
  if (whenIdle && !force) {
57
61
  if (mod.isDaemonAlive()) {
58
62
  mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
@@ -359,7 +363,7 @@ async function main() {
359
363
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
360
364
  process.exit(1);
361
365
  }
362
- const { handleServiceCommand } = await import('./commands-DMSkWb0h.mjs');
366
+ const { handleServiceCommand } = await import('./commands-Fvgfzyo3.mjs');
363
367
  await handleServiceCommand();
364
368
  } else if (subcommand === "serve") {
365
369
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -367,7 +371,7 @@ async function main() {
367
371
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
368
372
  process.exit(1);
369
373
  }
370
- const { handleServeCommand } = await import('./serveCommands-D3W7w0G6.mjs');
374
+ const { handleServeCommand } = await import('./serveCommands-Bi7DJs-3.mjs');
371
375
  await handleServeCommand();
372
376
  process.exit(0);
373
377
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -376,7 +380,7 @@ async function main() {
376
380
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
377
381
  process.exit(1);
378
382
  }
379
- const { processCommand } = await import('./commands-CLgdrTSU.mjs');
383
+ const { processCommand } = await import('./commands-DfRahEsO.mjs');
380
384
  let machineId;
381
385
  const processArgs = args.slice(1);
382
386
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -390,26 +394,26 @@ async function main() {
390
394
  }), machineId);
391
395
  process.exit(0);
392
396
  } else if (subcommand === "outpost") {
393
- const { outpostCommand } = await import('./commands-CJWgDDl5.mjs');
397
+ const { outpostCommand } = await import('./commands-D9-YqAI3.mjs');
394
398
  await outpostCommand(args.slice(1));
395
399
  process.exit(0);
396
400
  } else if (subcommand === "issue" || subcommand === "issues") {
397
- const { issueCommand } = await import('./commands-BsaTwKnd.mjs');
401
+ const { issueCommand } = await import('./commands-BxHc_Exm.mjs');
398
402
  await issueCommand(args.slice(1));
399
403
  await flushAndExit(0);
400
404
  } else if (subcommand === "workflow" || subcommand === "workflows") {
401
- const { workflowCommand } = await import('./commands-DubEbPAY.mjs');
405
+ const { workflowCommand } = await import('./commands-CXgDZgqh.mjs');
402
406
  await workflowCommand(args.slice(1));
403
407
  await flushAndExit(0);
404
408
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
405
409
  await handleWiseAgentCommand(args.slice(1));
406
410
  process.exit(0);
407
411
  } else if (subcommand === "feature" || subcommand === "crew") {
408
- const { crewCommand } = await import('./commands-C0lwV0U3.mjs');
412
+ const { crewCommand } = await import('./commands-C-QNVo3l.mjs');
409
413
  await crewCommand(args.slice(1));
410
414
  process.exit(0);
411
415
  } else if (subcommand === "notify") {
412
- const { notifyUser } = await import('./notifyCommands-4GUy4Mcl.mjs');
416
+ const { notifyUser } = await import('./notifyCommands-Cip4lIYS.mjs');
413
417
  const rest = args.slice(1);
414
418
  let email;
415
419
  const o = {};
@@ -426,7 +430,7 @@ async function main() {
426
430
  } else if (subcommand === "admin") {
427
431
  const adminSub = args[1];
428
432
  if (adminSub === "set-collection-config") {
429
- const { setCollectionConfig } = await import('./adminCommands-DBADX_Uo.mjs');
433
+ const { setCollectionConfig } = await import('./adminCommands-BRiz5afS.mjs');
430
434
  const rest = args.slice(2);
431
435
  let alias;
432
436
  let configJson;
@@ -436,10 +440,10 @@ async function main() {
436
440
  }
437
441
  await setCollectionConfig(alias, configJson);
438
442
  } else if (adminSub === "create-system-collections") {
439
- const { createSystemCollections } = await import('./adminCommands-DBADX_Uo.mjs');
443
+ const { createSystemCollections } = await import('./adminCommands-BRiz5afS.mjs');
440
444
  await createSystemCollections();
441
445
  } else if (adminSub === "migrate-collection-children") {
442
- const { migrateCollectionChildren } = await import('./adminCommands-DBADX_Uo.mjs');
446
+ const { migrateCollectionChildren } = await import('./adminCommands-BRiz5afS.mjs');
443
447
  const rest = args.slice(2).filter((a) => !a.startsWith("-"));
444
448
  await migrateCollectionChildren(rest[0], rest[1]);
445
449
  } else {
@@ -447,7 +451,7 @@ async function main() {
447
451
  }
448
452
  process.exit(0);
449
453
  } else if (subcommand === "events") {
450
- const { listEvents, ackEvent } = await import('./notifyCommands-4GUy4Mcl.mjs');
454
+ const { listEvents, ackEvent } = await import('./notifyCommands-Cip4lIYS.mjs');
451
455
  const sub = args[1];
452
456
  const rest = args.slice(2);
453
457
  let email;
@@ -468,7 +472,7 @@ async function main() {
468
472
  } else if (!subcommand || subcommand === "start") {
469
473
  await handleInteractiveCommand();
470
474
  } else if (subcommand === "--version" || subcommand === "-v") {
471
- const pkg = await import('./package-BEEqsQhN.mjs').catch(() => ({ default: { version: "unknown" } }));
475
+ const pkg = await import('./package-DJRwvqcx.mjs').catch(() => ({ default: { version: "unknown" } }));
472
476
  console.log(`svamp version: ${pkg.default.version}`);
473
477
  } else {
474
478
  console.error(`Unknown command: ${subcommand}`);
@@ -477,7 +481,7 @@ async function main() {
477
481
  }
478
482
  }
479
483
  async function handleInteractiveCommand() {
480
- const { runInteractive } = await import('./run-7TVWXnOM.mjs');
484
+ const { runInteractive } = await import('./run-CxuKTe0N.mjs');
481
485
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
482
486
  let directory = process.cwd();
483
487
  let resumeSessionId;
@@ -522,7 +526,7 @@ async function handleAgentCommand() {
522
526
  return;
523
527
  }
524
528
  if (agentArgs[0] === "list") {
525
- const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.av; });
529
+ const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.av; });
526
530
  console.log("Known agents:");
527
531
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
528
532
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -534,7 +538,7 @@ async function handleAgentCommand() {
534
538
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
535
539
  return;
536
540
  }
537
- const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.av; });
541
+ const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.av; });
538
542
  let cwd = process.cwd();
539
543
  const filteredArgs = [];
540
544
  for (let i = 0; i < agentArgs.length; i++) {
@@ -558,18 +562,18 @@ async function handleAgentCommand() {
558
562
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
559
563
  let backend;
560
564
  if (KNOWN_CODEX_AGENTS[config.agentName]) {
561
- const { CodexAppServerBackend } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aw; });
565
+ const { CodexAppServerBackend } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aw; });
562
566
  backend = new CodexAppServerBackend({ cwd, log: logFn });
563
567
  } else {
564
- const { AcpBackend } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.au; });
565
- const { GeminiTransport } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.ax; });
566
- const { KimiTransport } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.ay; });
567
- const { DefaultTransport } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.at; });
568
+ const { AcpBackend } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.au; });
569
+ const { GeminiTransport } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ax; });
570
+ const { KimiTransport } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ay; });
571
+ const { DefaultTransport } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.at; });
568
572
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : config.agentName === "kimi" ? new KimiTransport() : new DefaultTransport(config.agentName);
569
573
  let acpEnv;
570
574
  if (config.agentName === "kimi") {
571
- const { ensureKimiProviderConfigured } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aA; });
572
- const { kimiSpawnEnv } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.az; });
575
+ const { ensureKimiProviderConfigured } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aA; });
576
+ const { kimiSpawnEnv } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.az; });
573
577
  await ensureKimiProviderConfigured(process.env, config.command, logFn);
574
578
  acpEnv = kimiSpawnEnv(process.env);
575
579
  }
@@ -686,7 +690,7 @@ async function handleSessionCommand() {
686
690
  }
687
691
  }
688
692
  const sessionSubcommand = sessionArgs[0];
689
- if (!sessionSubcommand || sessionSubcommand === "--help" || sessionSubcommand === "-h") {
693
+ if (!sessionSubcommand || wantsHelp(sessionArgs)) {
690
694
  printSessionHelp();
691
695
  return;
692
696
  }
@@ -699,7 +703,7 @@ async function handleSessionCommand() {
699
703
  process.exit(1);
700
704
  }
701
705
  }
702
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionLoopExtend, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-BY1lmXaM.mjs');
706
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionLoopExtend, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-slA1eX13.mjs');
703
707
  const parseFlagStr = (flag, shortFlag) => {
704
708
  for (let i = 1; i < sessionArgs.length; i++) {
705
709
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -773,7 +777,7 @@ async function handleSessionCommand() {
773
777
  console.warn(" --allow-write / a securityContext allowedDirectories, or keep the");
774
778
  console.warn(" sensitive path outside the workspace.");
775
779
  }
776
- const { parseShareArg } = await import('./commands-BY1lmXaM.mjs');
780
+ const { parseShareArg } = await import('./commands-slA1eX13.mjs');
777
781
  const shareEntries = share.map((s) => parseShareArg(s));
778
782
  await sessionSpawn(agent, dir, targetMachineId, {
779
783
  message,
@@ -864,7 +868,7 @@ async function handleSessionCommand() {
864
868
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
865
869
  process.exit(1);
866
870
  }
867
- const { sessionEditMessage } = await import('./commands-BY1lmXaM.mjs');
871
+ const { sessionEditMessage } = await import('./commands-slA1eX13.mjs');
868
872
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
869
873
  } else if (sessionSubcommand === "refine") {
870
874
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -872,7 +876,7 @@ async function handleSessionCommand() {
872
876
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
873
877
  process.exit(1);
874
878
  }
875
- const { sessionRefineLastReply } = await import('./commands-BY1lmXaM.mjs');
879
+ const { sessionRefineLastReply } = await import('./commands-slA1eX13.mjs');
876
880
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
877
881
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
878
882
  if (!sessionArgs[1]) {
@@ -880,7 +884,7 @@ async function handleSessionCommand() {
880
884
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
881
885
  process.exit(1);
882
886
  }
883
- const { sessionUndoEdit } = await import('./commands-BY1lmXaM.mjs');
887
+ const { sessionUndoEdit } = await import('./commands-slA1eX13.mjs');
884
888
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
885
889
  } else if (sessionSubcommand === "query") {
886
890
  const dir = sessionArgs[1];
@@ -890,7 +894,7 @@ async function handleSessionCommand() {
890
894
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
891
895
  process.exit(1);
892
896
  }
893
- const { sessionQuery } = await import('./commands-BY1lmXaM.mjs');
897
+ const { sessionQuery } = await import('./commands-slA1eX13.mjs');
894
898
  await sessionQuery(dir, prompt, targetMachineId, {
895
899
  timeout: parseFlagInt("--timeout"),
896
900
  json: hasFlag("--json"),
@@ -923,7 +927,7 @@ async function handleSessionCommand() {
923
927
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
924
928
  process.exit(1);
925
929
  }
926
- const { sessionApprove } = await import('./commands-BY1lmXaM.mjs');
930
+ const { sessionApprove } = await import('./commands-slA1eX13.mjs');
927
931
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
928
932
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
929
933
  json: hasFlag("--json")
@@ -933,7 +937,7 @@ async function handleSessionCommand() {
933
937
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
934
938
  process.exit(1);
935
939
  }
936
- const { sessionDeny } = await import('./commands-BY1lmXaM.mjs');
940
+ const { sessionDeny } = await import('./commands-slA1eX13.mjs');
937
941
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
938
942
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
939
943
  json: hasFlag("--json")
@@ -985,7 +989,7 @@ async function handleSessionCommand() {
985
989
  console.error("Usage: svamp session set-title <title>");
986
990
  process.exit(1);
987
991
  }
988
- const { sessionSetTitle } = await import('./agentCommands-BJeGwkeX.mjs');
992
+ const { sessionSetTitle } = await import('./agentCommands-Cve_0_8K.mjs');
989
993
  await sessionSetTitle(title);
990
994
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
991
995
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -993,7 +997,7 @@ async function handleSessionCommand() {
993
997
  console.error("Usage: svamp session set-project-description <text>");
994
998
  process.exit(1);
995
999
  }
996
- const { sessionSetProjectDescription } = await import('./agentCommands-BJeGwkeX.mjs');
1000
+ const { sessionSetProjectDescription } = await import('./agentCommands-Cve_0_8K.mjs');
997
1001
  await sessionSetProjectDescription(desc);
998
1002
  } else if (sessionSubcommand === "set-link") {
999
1003
  const url = sessionArgs[1];
@@ -1002,11 +1006,11 @@ async function handleSessionCommand() {
1002
1006
  process.exit(1);
1003
1007
  }
1004
1008
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
1005
- const { sessionSetLink } = await import('./agentCommands-BJeGwkeX.mjs');
1009
+ const { sessionSetLink } = await import('./agentCommands-Cve_0_8K.mjs');
1006
1010
  await sessionSetLink(url, label);
1007
1011
  } else if (sessionSubcommand === "link") {
1008
1012
  const op = sessionArgs[1];
1009
- const lm = await import('./agentCommands-BJeGwkeX.mjs');
1013
+ const lm = await import('./agentCommands-Cve_0_8K.mjs');
1010
1014
  if (op === "add") {
1011
1015
  const url = sessionArgs[2];
1012
1016
  if (!url || url.startsWith("--")) {
@@ -1041,7 +1045,7 @@ async function handleSessionCommand() {
1041
1045
  process.exit(1);
1042
1046
  }
1043
1047
  const level = parseFlagStr("--level") || "info";
1044
- const { sessionNotify } = await import('./agentCommands-BJeGwkeX.mjs');
1048
+ const { sessionNotify } = await import('./agentCommands-Cve_0_8K.mjs');
1045
1049
  await sessionNotify(message, level);
1046
1050
  } else if (sessionSubcommand === "broadcast") {
1047
1051
  const action = sessionArgs[1];
@@ -1049,7 +1053,7 @@ async function handleSessionCommand() {
1049
1053
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
1050
1054
  process.exit(1);
1051
1055
  }
1052
- const { sessionBroadcast } = await import('./agentCommands-BJeGwkeX.mjs');
1056
+ const { sessionBroadcast } = await import('./agentCommands-Cve_0_8K.mjs');
1053
1057
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
1054
1058
  } else if (sessionSubcommand === "inbox") {
1055
1059
  const inboxSubcmd = sessionArgs[1];
@@ -1060,7 +1064,7 @@ async function handleSessionCommand() {
1060
1064
  process.exit(1);
1061
1065
  }
1062
1066
  if (agentSessionId) {
1063
- const { inboxSend } = await import('./agentCommands-BJeGwkeX.mjs');
1067
+ const { inboxSend } = await import('./agentCommands-Cve_0_8K.mjs');
1064
1068
  await inboxSend(sessionArgs[2], {
1065
1069
  body: sessionArgs[3],
1066
1070
  subject: parseFlagStr("--subject"),
@@ -1077,7 +1081,7 @@ async function handleSessionCommand() {
1077
1081
  }
1078
1082
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
1079
1083
  if (agentSessionId && !sessionArgs[2]) {
1080
- const { inboxList } = await import('./agentCommands-BJeGwkeX.mjs');
1084
+ const { inboxList } = await import('./agentCommands-Cve_0_8K.mjs');
1081
1085
  await inboxList({
1082
1086
  unread: hasFlag("--unread"),
1083
1087
  limit: parseFlagInt("--limit"),
@@ -1099,7 +1103,7 @@ async function handleSessionCommand() {
1099
1103
  process.exit(1);
1100
1104
  }
1101
1105
  if (agentSessionId && !sessionArgs[3]) {
1102
- const { inboxList } = await import('./agentCommands-BJeGwkeX.mjs');
1106
+ const { inboxList } = await import('./agentCommands-Cve_0_8K.mjs');
1103
1107
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1104
1108
  } else if (sessionArgs[3]) {
1105
1109
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1109,7 +1113,7 @@ async function handleSessionCommand() {
1109
1113
  }
1110
1114
  } else if (inboxSubcmd === "reply") {
1111
1115
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1112
- const { inboxReply } = await import('./agentCommands-BJeGwkeX.mjs');
1116
+ const { inboxReply } = await import('./agentCommands-Cve_0_8K.mjs');
1113
1117
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1114
1118
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1115
1119
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1142,12 +1146,12 @@ async function handleSessionCommand() {
1142
1146
  async function handleMachineCommand() {
1143
1147
  const machineArgs = args.slice(1);
1144
1148
  const machineSubcommand = machineArgs[0];
1145
- if (!machineSubcommand || machineSubcommand === "--help" || machineSubcommand === "-h") {
1149
+ if (!machineSubcommand || wantsHelp(machineArgs)) {
1146
1150
  printMachineHelp();
1147
1151
  return;
1148
1152
  }
1149
1153
  if (machineSubcommand === "share") {
1150
- const { machineShare } = await import('./commands-BY1lmXaM.mjs');
1154
+ const { machineShare } = await import('./commands-slA1eX13.mjs');
1151
1155
  let machineId;
1152
1156
  const shareArgs = [];
1153
1157
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1198,14 +1202,14 @@ async function handleMachineCommand() {
1198
1202
  process.exit(1);
1199
1203
  }
1200
1204
  if (all) {
1201
- const { fleetExec } = await import('./fleet-OKnU0cYK.mjs');
1205
+ const { fleetExec } = await import('./fleet-umFHXPoE.mjs');
1202
1206
  await fleetExec(command, { cwd });
1203
1207
  } else {
1204
- const { machineExec } = await import('./commands-BY1lmXaM.mjs');
1208
+ const { machineExec } = await import('./commands-slA1eX13.mjs');
1205
1209
  await machineExec(machineId, command, cwd);
1206
1210
  }
1207
1211
  } else if (machineSubcommand === "info") {
1208
- const { machineInfo } = await import('./commands-BY1lmXaM.mjs');
1212
+ const { machineInfo } = await import('./commands-slA1eX13.mjs');
1209
1213
  let machineId;
1210
1214
  for (let i = 1; i < machineArgs.length; i++) {
1211
1215
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1234,10 +1238,10 @@ async function handleMachineCommand() {
1234
1238
  console.error("Usage: svamp machine notify <message> [--level info|warning|error]");
1235
1239
  process.exit(1);
1236
1240
  }
1237
- const { machineNotify } = await import('./agentCommands-BJeGwkeX.mjs');
1241
+ const { machineNotify } = await import('./agentCommands-Cve_0_8K.mjs');
1238
1242
  await machineNotify(message, level);
1239
1243
  } else if (machineSubcommand === "ls") {
1240
- const { machineLs } = await import('./commands-BY1lmXaM.mjs');
1244
+ const { machineLs } = await import('./commands-slA1eX13.mjs');
1241
1245
  let machineId;
1242
1246
  let showHidden = false;
1243
1247
  let path;
@@ -1261,7 +1265,7 @@ async function handleMachineCommand() {
1261
1265
  async function handleFleetCommand() {
1262
1266
  const fleetArgs = args.slice(1);
1263
1267
  const sub = fleetArgs[0];
1264
- if (!sub || sub === "--help" || sub === "-h") {
1268
+ if (!sub || wantsHelp(fleetArgs)) {
1265
1269
  console.log(`Usage: svamp fleet <subcommand>
1266
1270
 
1267
1271
  Subcommands (fan out across every machine in your workspace):
@@ -1303,26 +1307,26 @@ Examples:
1303
1307
  };
1304
1308
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1305
1309
  if (sub === "status") {
1306
- const { fleetStatus } = await import('./fleet-OKnU0cYK.mjs');
1310
+ const { fleetStatus } = await import('./fleet-umFHXPoE.mjs');
1307
1311
  await fleetStatus();
1308
1312
  } else if (sub === "upgrade-claude") {
1309
- const { fleetUpgradeClaude } = await import('./fleet-OKnU0cYK.mjs');
1313
+ const { fleetUpgradeClaude } = await import('./fleet-umFHXPoE.mjs');
1310
1314
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1311
1315
  } else if (sub === "upgrade-codex") {
1312
- const { fleetUpgradeCodex } = await import('./fleet-OKnU0cYK.mjs');
1316
+ const { fleetUpgradeCodex } = await import('./fleet-umFHXPoE.mjs');
1313
1317
  await fleetUpgradeCodex({ version: flag("version", "-v") });
1314
1318
  } else if (sub === "upgrade-kimi") {
1315
- const { fleetUpgradeKimi } = await import('./fleet-OKnU0cYK.mjs');
1319
+ const { fleetUpgradeKimi } = await import('./fleet-umFHXPoE.mjs');
1316
1320
  await fleetUpgradeKimi({ version: flag("version", "-v") });
1317
1321
  } else if (sub === "upgrade-svamp") {
1318
- const { fleetUpgradeSvamp } = await import('./fleet-OKnU0cYK.mjs');
1322
+ const { fleetUpgradeSvamp } = await import('./fleet-umFHXPoE.mjs');
1319
1323
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self"), force: hasFlag("force") });
1320
1324
  } else if (sub === "daemon-restart") {
1321
- const { fleetDaemonRestart } = await import('./fleet-OKnU0cYK.mjs');
1325
+ const { fleetDaemonRestart } = await import('./fleet-umFHXPoE.mjs');
1322
1326
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1323
1327
  } else if (sub === "push-skill") {
1324
1328
  const name = fleetArgs[1];
1325
- const { fleetPushSkill } = await import('./fleet-OKnU0cYK.mjs');
1329
+ const { fleetPushSkill } = await import('./fleet-umFHXPoE.mjs');
1326
1330
  await fleetPushSkill(name);
1327
1331
  } else {
1328
1332
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1334,11 +1338,11 @@ Examples:
1334
1338
  async function handleSkillsCommand() {
1335
1339
  const skillsArgs = args.slice(1);
1336
1340
  const skillsSubcommand = skillsArgs[0];
1337
- if (!skillsSubcommand || skillsSubcommand === "--help" || skillsSubcommand === "-h") {
1341
+ if (!skillsSubcommand || wantsHelp(skillsArgs)) {
1338
1342
  await printSkillsHelp();
1339
1343
  return;
1340
1344
  }
1341
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-AdVHZXK6.mjs');
1345
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-D1d9snmv.mjs');
1342
1346
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1343
1347
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1344
1348
  if (!query) {
@@ -1385,7 +1389,7 @@ async function loginToHypha() {
1385
1389
  process.exit(1);
1386
1390
  }
1387
1391
  const anchor = anchorArg.replace(/\/+$/, "");
1388
- const { loadInstanceConfig } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.an; });
1392
+ const { loadInstanceConfig } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.an; });
1389
1393
  let cfg = null;
1390
1394
  try {
1391
1395
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1500,7 +1504,7 @@ async function logoutFromHypha() {
1500
1504
  } catch {
1501
1505
  }
1502
1506
  try {
1503
- const { clearInstanceConfigCache } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.an; });
1507
+ const { clearInstanceConfigCache } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.an; });
1504
1508
  clearInstanceConfigCache();
1505
1509
  } catch {
1506
1510
  }
@@ -1853,7 +1857,7 @@ async function applyClaudeAuthFlags(argv) {
1853
1857
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1854
1858
  );
1855
1859
  }
1856
- const mod = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aq; });
1860
+ const mod = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
1857
1861
  if (hasHypha) {
1858
1862
  let url;
1859
1863
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1907,7 +1911,7 @@ async function applyDaemonShareFlag(argv) {
1907
1911
  }
1908
1912
  }
1909
1913
  if (collected.length === 0) return;
1910
- const { updateEnvFile } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aq; });
1914
+ const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
1911
1915
  const seen = /* @__PURE__ */ new Set();
1912
1916
  const deduped = collected.filter((e) => {
1913
1917
  const k = e.toLowerCase();
@@ -1919,7 +1923,7 @@ async function applyDaemonShareFlag(argv) {
1919
1923
  console.log(`Machine sharing seed updated: ${deduped.join(", ")} (will be added at next daemon start).`);
1920
1924
  }
1921
1925
  async function handleWiseAgentCommand(rest) {
1922
- const sub = rest[0];
1926
+ const sub = wantsHelp(rest) ? "--help" : rest[0];
1923
1927
  if (sub === "ask") {
1924
1928
  const valueOf = (flags) => {
1925
1929
  for (const f of flags) {
@@ -1940,7 +1944,7 @@ async function handleWiseAgentCommand(rest) {
1940
1944
  }
1941
1945
  });
1942
1946
  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(" ");
1943
- const { wiseAskCli } = await import('./commands-BY1lmXaM.mjs');
1947
+ const { wiseAskCli } = await import('./commands-slA1eX13.mjs');
1944
1948
  await wiseAskCli(machineId, message, sessionId, { json });
1945
1949
  return;
1946
1950
  }
@@ -1952,7 +1956,7 @@ async function handleWiseAgentCommand(rest) {
1952
1956
  }
1953
1957
  return void 0;
1954
1958
  };
1955
- const { runWiseVoiceCli } = await import('./headlessCli-CCO0IFYl.mjs');
1959
+ const { runWiseVoiceCli } = await import('./headlessCli-DgJ15daM.mjs');
1956
1960
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1957
1961
  return;
1958
1962
  }
@@ -1970,7 +1974,7 @@ async function handleWiseAgentCommand(rest) {
1970
1974
  const mode = valueOf(["--mode"]);
1971
1975
  const mission = valueOf(["--mission"]);
1972
1976
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1973
- const { wiseJoinMeetingCli } = await import('./commands-BY1lmXaM.mjs');
1977
+ const { wiseJoinMeetingCli } = await import('./commands-slA1eX13.mjs');
1974
1978
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1975
1979
  return;
1976
1980
  }
@@ -1982,7 +1986,7 @@ async function handleWiseAgentCommand(rest) {
1982
1986
  }
1983
1987
  return void 0;
1984
1988
  };
1985
- const { wiseLeaveMeetingCli } = await import('./commands-BY1lmXaM.mjs');
1989
+ const { wiseLeaveMeetingCli } = await import('./commands-slA1eX13.mjs');
1986
1990
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1987
1991
  return;
1988
1992
  }
@@ -2006,7 +2010,7 @@ async function handleWiseAgentCommand(rest) {
2006
2010
  }
2007
2011
  });
2008
2012
  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(" ");
2009
- const { wiseAnnounceCli } = await import('./commands-BY1lmXaM.mjs');
2013
+ const { wiseAnnounceCli } = await import('./commands-slA1eX13.mjs');
2010
2014
  await wiseAnnounceCli(machineId, text, sessionId, { json });
2011
2015
  return;
2012
2016
  }
@@ -2018,7 +2022,7 @@ async function handleWiseAgentCommand(rest) {
2018
2022
  }
2019
2023
  return void 0;
2020
2024
  };
2021
- const { wiseMeetingsCli } = await import('./commands-BY1lmXaM.mjs');
2025
+ const { wiseMeetingsCli } = await import('./commands-slA1eX13.mjs');
2022
2026
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
2023
2027
  return;
2024
2028
  }
@@ -2069,7 +2073,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2069
2073
  return;
2070
2074
  }
2071
2075
  const authArgs = rest.slice(1);
2072
- const mod = await import('./auth-0NUGwOc0.mjs');
2076
+ const mod = await import('./auth-DrLE8Yp-.mjs');
2073
2077
  let action;
2074
2078
  try {
2075
2079
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -2079,7 +2083,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2079
2083
  return;
2080
2084
  }
2081
2085
  if (action) {
2082
- const { updateEnvFile } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aq; });
2086
+ const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
2083
2087
  const updates = mod.buildWiseAgentEnvUpdates(action);
2084
2088
  updateEnvFile(updates);
2085
2089
  for (const [k, v] of Object.entries(updates)) {
@@ -2092,8 +2096,8 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2092
2096
  console.log(`WISE Agent: provider=${status.provider} model=${status.model} base=${status.baseUrl} key=${status.keyRedacted}`);
2093
2097
  }
2094
2098
  async function handleDaemonAuthCommand(argv) {
2095
- const sub = (argv[0] || "status").toLowerCase();
2096
- const mod = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aq; });
2099
+ const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
2100
+ const mod = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
2097
2101
  if (sub === "--help" || sub === "-h" || sub === "help") {
2098
2102
  console.log(`
2099
2103
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2166,9 +2170,9 @@ one step: --use-hypha-proxy / --use-claude-login / --anthropic-base-url URL --an
2166
2170
  process.exit(1);
2167
2171
  }
2168
2172
  async function handleDaemonCodexAuthCommand(argv) {
2169
- const sub = (argv[0] || "status").toLowerCase();
2170
- const { updateEnvFile } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aq; });
2171
- const { resolveCodexProvider } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.ar; });
2173
+ const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
2174
+ const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
2175
+ const { resolveCodexProvider } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ar; });
2172
2176
  const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
2173
2177
  if (sub === "--help" || sub === "-h" || sub === "help") {
2174
2178
  console.log(`
@@ -2253,9 +2257,9 @@ The generic LLM_API_BASE / LLM_API_KEY / LLM_MODEL env vars are also honored if
2253
2257
  process.exit(1);
2254
2258
  }
2255
2259
  async function handleDaemonKimiAuthCommand(argv) {
2256
- const sub = (argv[0] || "status").toLowerCase();
2257
- const { updateEnvFile } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aq; });
2258
- const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.az; });
2260
+ const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
2261
+ const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
2262
+ const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.az; });
2259
2263
  const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
2260
2264
  const PRESETS = {
2261
2265
  "use-moonshot": { provider: "moonshotai", base: "https://api.moonshot.ai/v1", label: "Moonshot AI (moonshotai)" },
@@ -2618,7 +2622,7 @@ Examples:
2618
2622
  async function printSkillsHelp() {
2619
2623
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2620
2624
  try {
2621
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-09AkgeGM.mjs').then(function (n) { return n.aB; });
2625
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aB; });
2622
2626
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2623
2627
  } catch {
2624
2628
  }
@@ -2697,4 +2701,4 @@ main().catch((err) => {
2697
2701
  process.exit(1);
2698
2702
  });
2699
2703
 
2700
- export { flushAndExit as f };
2704
+ export { flushAndExit as f, wantsHelp as w };
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import './run-09AkgeGM.mjs';
1
+ import './run-CKLatoxa.mjs';
2
2
  import './serviceManager-hlOVxkhW.mjs';
3
- import './cli-CWElpiIq.mjs';
3
+ import './cli-xMKB7O8k.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
6
6
  import 'fs';
@@ -1,8 +1,8 @@
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 { f as flushAndExit } from './cli-CWElpiIq.mjs';
5
- import { f as resolveProjectRoot, n as searchIssues, l as listIssues, m as isPendingIssue, i as resumeIssue, p as pauseIssue, j as addComment, u as updateIssue, h as getIssue, o as isVisibleTo, H as summarize, k as addIssue } from './run-09AkgeGM.mjs';
4
+ import { f as flushAndExit } from './cli-xMKB7O8k.mjs';
5
+ import { f as resolveProjectRoot, n as searchIssues, l as listIssues, m as isPendingIssue, i as resumeIssue, p as pauseIssue, j as addComment, u as updateIssue, h as getIssue, o as isVisibleTo, H as summarize, k as addIssue } from './run-CKLatoxa.mjs';
6
6
  import './serviceManager-hlOVxkhW.mjs';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -92,7 +92,7 @@ function buildVerify(args) {
92
92
  return null;
93
93
  }
94
94
  async function issueCommand(args) {
95
- const sub = args[0];
95
+ const sub = args.some((a) => a === "--help" || a === "-h") ? "help" : args[0];
96
96
  const rest = args.slice(1);
97
97
  const root = resolveProjectRoot();
98
98
  const json = has(args, "--json");