svamp-cli 0.2.289 → 0.2.291

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-C7-LgldE.mjs → adminCommands-DuA0IQ8B.mjs} +1 -1
  2. package/dist/{agentCommands-B7HQJo3X.mjs → agentCommands-CoPsnzwK.mjs} +5 -5
  3. package/dist/{auth-BB_4_6P7.mjs → auth-Dj_Pcii4.mjs} +1 -1
  4. package/dist/{cli-BH5LIMPI.mjs → cli-CuzIOUig.mjs} +72 -68
  5. package/dist/cli.mjs +2 -2
  6. package/dist/{commands-BaVcBOKA.mjs → commands-B-VYM4sA.mjs} +1 -1
  7. package/dist/commands-B9puiDBS.mjs +329 -0
  8. package/dist/{commands-Cf9KT-Ob.mjs → commands-Bfgme-kK.mjs} +2 -2
  9. package/dist/{commands-BNxsrqSl.mjs → commands-Cx8mEjjt.mjs} +2 -2
  10. package/dist/{commands-CZSPOqtd.mjs → commands-DSI9ZUTG.mjs} +1 -1
  11. package/dist/{commands-BsiQdwUs.mjs → commands-DwQIShcm.mjs} +2 -2
  12. package/dist/{commands-Bb-RzoKB.mjs → commands-eBqn9KgI.mjs} +1 -1
  13. package/dist/{commands-DFSD7jBH.mjs → commands-kahqMkYE.mjs} +8 -8
  14. package/dist/{fleet-2c-iNucb.mjs → fleet-CqbZhBG2.mjs} +1 -1
  15. package/dist/{frpc-CuvdlU0g.mjs → frpc-BeGCyERl.mjs} +45 -27
  16. package/dist/{headlessCli-CftEZbxm.mjs → headlessCli-CJiHG0gu.mjs} +2 -2
  17. package/dist/index.mjs +1 -1
  18. package/dist/{notifyCommands-1q8COUDd.mjs → notifyCommands-CXjWSZHe.mjs} +1 -1
  19. package/dist/package-C0aVCX6O.mjs +64 -0
  20. package/dist/{rpc-DMpJef5v.mjs → rpc-1Ic_yDzC.mjs} +1 -1
  21. package/dist/{rpc-C9U0Ho27.mjs → rpc-DiG_DaMK.mjs} +1 -1
  22. package/dist/{run-BNeZiySO.mjs → run-CKLU1B02.mjs} +119 -26
  23. package/dist/{run-CCENV09o.mjs → run-DZJuuuAu.mjs} +1 -1
  24. package/dist/{scheduler-CAUwniWA.mjs → scheduler-C5Gk_hYP.mjs} +1 -1
  25. package/dist/{serveCommands-XJVDS4zB.mjs → serveCommands-Dipn0QHs.mjs} +5 -5
  26. package/dist/{sideband-DB4Uipz9.mjs → sideband-BCMGW33d.mjs} +1 -1
  27. package/package.json +46 -46
  28. package/dist/package-DrTlgNWY.mjs +0 -64
@@ -1,4 +1,4 @@
1
- import { c as connectToHypha, K as computeCollectionConfigUpdate, L as SYSTEM_COLLECTION_CONFIG } from './run-BNeZiySO.mjs';
1
+ import { c as connectToHypha, K as computeCollectionConfigUpdate, L as SYSTEM_COLLECTION_CONFIG } from './run-CKLU1B02.mjs';
2
2
  import { existsSync, readFileSync } from 'node:fs';
3
3
  import { join } from 'node:path';
4
4
  import os from 'node:os';
@@ -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 { i as shortId } from './run-BNeZiySO.mjs';
5
+ import { i as shortId } from './run-CKLU1B02.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -96,7 +96,7 @@ async function sessionSetTitle(title) {
96
96
  }
97
97
  async function sessionSetProjectDescription(description) {
98
98
  const dir = process.cwd();
99
- const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.ap; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.at; });
100
100
  const desc = sanitizeDescription(description, 240);
101
101
  if (!desc) {
102
102
  console.error("Project description is empty.");
@@ -343,7 +343,7 @@ async function sessionBroadcast(action, args) {
343
343
  console.log(`Broadcast sent: ${action}`);
344
344
  }
345
345
  async function connectToMachineService() {
346
- const { connectAndGetMachine } = await import('./commands-BaVcBOKA.mjs');
346
+ const { connectAndGetMachine } = await import('./commands-B-VYM4sA.mjs');
347
347
  return connectAndGetMachine();
348
348
  }
349
349
  function buildInboxMessage(args) {
@@ -421,7 +421,7 @@ async function inboxSend(targetSessionId, opts) {
421
421
  console.error("Message body is required.");
422
422
  process.exit(1);
423
423
  }
424
- const { connectAndResolveSession } = await import('./commands-BaVcBOKA.mjs');
424
+ const { connectAndResolveSession } = await import('./commands-B-VYM4sA.mjs');
425
425
  let server;
426
426
  try {
427
427
  const { targetId, messageId } = await inboxSendCore(
@@ -475,7 +475,7 @@ async function inboxReply(messageId, body) {
475
475
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
476
476
  process.exit(1);
477
477
  }
478
- const { connectAndResolveSession } = await import('./commands-BaVcBOKA.mjs');
478
+ const { connectAndResolveSession } = await import('./commands-B-VYM4sA.mjs');
479
479
  const { server: localServer, machine: localMachine } = await connectToMachineService();
480
480
  let localDisconnected = false;
481
481
  const disconnectLocal = async () => {
@@ -1,4 +1,4 @@
1
- import { a0 as resolveModel } from './run-BNeZiySO.mjs';
1
+ import { a0 as resolveModel } from './run-CKLU1B02.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,4 +1,4 @@
1
- import { a1 as clearStopMarker, a2 as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-BNeZiySO.mjs';
1
+ import { a1 as clearStopMarker, a2 as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CKLU1B02.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
 
4
4
  function flushAndExit(code) {
@@ -33,7 +33,7 @@ const subcommand = args[0];
33
33
  let daemonSubcommand = args[1];
34
34
  async function main() {
35
35
  try {
36
- const { getLoadedConfig } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.am; });
36
+ const { getLoadedConfig } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.ap; });
37
37
  getLoadedConfig();
38
38
  } catch {
39
39
  }
@@ -52,7 +52,7 @@ async function main() {
52
52
  }
53
53
  const whenIdle = args.includes("--when-idle");
54
54
  const force = args.includes("--force");
55
- const mod = await import('./run-BNeZiySO.mjs').then(function (n) { return n.aw; });
55
+ const mod = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aA; });
56
56
  if (whenIdle && !force) {
57
57
  if (mod.isDaemonAlive()) {
58
58
  mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
@@ -356,7 +356,7 @@ async function main() {
356
356
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
357
357
  process.exit(1);
358
358
  }
359
- const { handleServiceCommand } = await import('./commands-DFSD7jBH.mjs');
359
+ const { handleServiceCommand } = await import('./commands-kahqMkYE.mjs');
360
360
  await handleServiceCommand();
361
361
  } else if (subcommand === "serve") {
362
362
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -364,7 +364,7 @@ async function main() {
364
364
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
365
365
  process.exit(1);
366
366
  }
367
- const { handleServeCommand } = await import('./serveCommands-XJVDS4zB.mjs');
367
+ const { handleServeCommand } = await import('./serveCommands-Dipn0QHs.mjs');
368
368
  await handleServeCommand();
369
369
  process.exit(0);
370
370
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -373,7 +373,7 @@ async function main() {
373
373
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
374
374
  process.exit(1);
375
375
  }
376
- const { processCommand } = await import('./commands-BsiQdwUs.mjs');
376
+ const { processCommand } = await import('./commands-DwQIShcm.mjs');
377
377
  let machineId;
378
378
  const processArgs = args.slice(1);
379
379
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -386,23 +386,27 @@ async function main() {
386
386
  return true;
387
387
  }), machineId);
388
388
  process.exit(0);
389
+ } else if (subcommand === "outpost") {
390
+ const { outpostCommand } = await import('./commands-B9puiDBS.mjs');
391
+ await outpostCommand(args.slice(1));
392
+ process.exit(0);
389
393
  } else if (subcommand === "issue" || subcommand === "issues") {
390
- const { issueCommand } = await import('./commands-Cf9KT-Ob.mjs');
394
+ const { issueCommand } = await import('./commands-Bfgme-kK.mjs');
391
395
  await issueCommand(args.slice(1));
392
396
  await flushAndExit(0);
393
397
  } else if (subcommand === "workflow" || subcommand === "workflows") {
394
- const { workflowCommand } = await import('./commands-Bb-RzoKB.mjs');
398
+ const { workflowCommand } = await import('./commands-eBqn9KgI.mjs');
395
399
  await workflowCommand(args.slice(1));
396
400
  await flushAndExit(0);
397
401
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
398
402
  await handleWiseAgentCommand(args.slice(1));
399
403
  process.exit(0);
400
404
  } else if (subcommand === "feature" || subcommand === "crew") {
401
- const { crewCommand } = await import('./commands-BNxsrqSl.mjs');
405
+ const { crewCommand } = await import('./commands-Cx8mEjjt.mjs');
402
406
  await crewCommand(args.slice(1));
403
407
  process.exit(0);
404
408
  } else if (subcommand === "notify") {
405
- const { notifyUser } = await import('./notifyCommands-1q8COUDd.mjs');
409
+ const { notifyUser } = await import('./notifyCommands-CXjWSZHe.mjs');
406
410
  const rest = args.slice(1);
407
411
  let email;
408
412
  const o = {};
@@ -419,7 +423,7 @@ async function main() {
419
423
  } else if (subcommand === "admin") {
420
424
  const adminSub = args[1];
421
425
  if (adminSub === "set-collection-config") {
422
- const { setCollectionConfig } = await import('./adminCommands-C7-LgldE.mjs');
426
+ const { setCollectionConfig } = await import('./adminCommands-DuA0IQ8B.mjs');
423
427
  const rest = args.slice(2);
424
428
  let alias;
425
429
  let configJson;
@@ -429,10 +433,10 @@ async function main() {
429
433
  }
430
434
  await setCollectionConfig(alias, configJson);
431
435
  } else if (adminSub === "create-system-collections") {
432
- const { createSystemCollections } = await import('./adminCommands-C7-LgldE.mjs');
436
+ const { createSystemCollections } = await import('./adminCommands-DuA0IQ8B.mjs');
433
437
  await createSystemCollections();
434
438
  } else if (adminSub === "migrate-collection-children") {
435
- const { migrateCollectionChildren } = await import('./adminCommands-C7-LgldE.mjs');
439
+ const { migrateCollectionChildren } = await import('./adminCommands-DuA0IQ8B.mjs');
436
440
  const rest = args.slice(2).filter((a) => !a.startsWith("-"));
437
441
  await migrateCollectionChildren(rest[0], rest[1]);
438
442
  } else {
@@ -440,7 +444,7 @@ async function main() {
440
444
  }
441
445
  process.exit(0);
442
446
  } else if (subcommand === "events") {
443
- const { listEvents, ackEvent } = await import('./notifyCommands-1q8COUDd.mjs');
447
+ const { listEvents, ackEvent } = await import('./notifyCommands-CXjWSZHe.mjs');
444
448
  const sub = args[1];
445
449
  const rest = args.slice(2);
446
450
  let email;
@@ -461,7 +465,7 @@ async function main() {
461
465
  } else if (!subcommand || subcommand === "start") {
462
466
  await handleInteractiveCommand();
463
467
  } else if (subcommand === "--version" || subcommand === "-v") {
464
- const pkg = await import('./package-DrTlgNWY.mjs').catch(() => ({ default: { version: "unknown" } }));
468
+ const pkg = await import('./package-C0aVCX6O.mjs').catch(() => ({ default: { version: "unknown" } }));
465
469
  console.log(`svamp version: ${pkg.default.version}`);
466
470
  } else {
467
471
  console.error(`Unknown command: ${subcommand}`);
@@ -470,7 +474,7 @@ async function main() {
470
474
  }
471
475
  }
472
476
  async function handleInteractiveCommand() {
473
- const { runInteractive } = await import('./run-CCENV09o.mjs');
477
+ const { runInteractive } = await import('./run-DZJuuuAu.mjs');
474
478
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
475
479
  let directory = process.cwd();
476
480
  let resumeSessionId;
@@ -515,7 +519,7 @@ async function handleAgentCommand() {
515
519
  return;
516
520
  }
517
521
  if (agentArgs[0] === "list") {
518
- const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.as; });
522
+ const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aw; });
519
523
  console.log("Known agents:");
520
524
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
521
525
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -527,7 +531,7 @@ async function handleAgentCommand() {
527
531
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
528
532
  return;
529
533
  }
530
- const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.as; });
534
+ const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aw; });
531
535
  let cwd = process.cwd();
532
536
  const filteredArgs = [];
533
537
  for (let i = 0; i < agentArgs.length; i++) {
@@ -551,12 +555,12 @@ async function handleAgentCommand() {
551
555
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
552
556
  let backend;
553
557
  if (KNOWN_CODEX_AGENTS[config.agentName]) {
554
- const { CodexAppServerBackend } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.at; });
558
+ const { CodexAppServerBackend } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.ax; });
555
559
  backend = new CodexAppServerBackend({ cwd, log: logFn });
556
560
  } else {
557
- const { AcpBackend } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.ar; });
558
- const { GeminiTransport } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.au; });
559
- const { DefaultTransport } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.aq; });
561
+ const { AcpBackend } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.av; });
562
+ const { GeminiTransport } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.ay; });
563
+ const { DefaultTransport } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.au; });
560
564
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
561
565
  backend = new AcpBackend({
562
566
  agentName: config.agentName,
@@ -683,7 +687,7 @@ async function handleSessionCommand() {
683
687
  process.exit(1);
684
688
  }
685
689
  }
686
- 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-BaVcBOKA.mjs');
690
+ 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-B-VYM4sA.mjs');
687
691
  const parseFlagStr = (flag, shortFlag) => {
688
692
  for (let i = 1; i < sessionArgs.length; i++) {
689
693
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -751,7 +755,7 @@ async function handleSessionCommand() {
751
755
  allowDomain.push(sessionArgs[++i]);
752
756
  }
753
757
  }
754
- const { parseShareArg } = await import('./commands-BaVcBOKA.mjs');
758
+ const { parseShareArg } = await import('./commands-B-VYM4sA.mjs');
755
759
  const shareEntries = share.map((s) => parseShareArg(s));
756
760
  await sessionSpawn(agent, dir, targetMachineId, {
757
761
  message,
@@ -841,7 +845,7 @@ async function handleSessionCommand() {
841
845
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
842
846
  process.exit(1);
843
847
  }
844
- const { sessionEditMessage } = await import('./commands-BaVcBOKA.mjs');
848
+ const { sessionEditMessage } = await import('./commands-B-VYM4sA.mjs');
845
849
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
846
850
  } else if (sessionSubcommand === "refine") {
847
851
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -849,7 +853,7 @@ async function handleSessionCommand() {
849
853
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
850
854
  process.exit(1);
851
855
  }
852
- const { sessionRefineLastReply } = await import('./commands-BaVcBOKA.mjs');
856
+ const { sessionRefineLastReply } = await import('./commands-B-VYM4sA.mjs');
853
857
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
854
858
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
855
859
  if (!sessionArgs[1]) {
@@ -857,7 +861,7 @@ async function handleSessionCommand() {
857
861
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
858
862
  process.exit(1);
859
863
  }
860
- const { sessionUndoEdit } = await import('./commands-BaVcBOKA.mjs');
864
+ const { sessionUndoEdit } = await import('./commands-B-VYM4sA.mjs');
861
865
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
862
866
  } else if (sessionSubcommand === "query") {
863
867
  const dir = sessionArgs[1];
@@ -867,7 +871,7 @@ async function handleSessionCommand() {
867
871
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
868
872
  process.exit(1);
869
873
  }
870
- const { sessionQuery } = await import('./commands-BaVcBOKA.mjs');
874
+ const { sessionQuery } = await import('./commands-B-VYM4sA.mjs');
871
875
  await sessionQuery(dir, prompt, targetMachineId, {
872
876
  timeout: parseFlagInt("--timeout"),
873
877
  json: hasFlag("--json"),
@@ -900,7 +904,7 @@ async function handleSessionCommand() {
900
904
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
901
905
  process.exit(1);
902
906
  }
903
- const { sessionApprove } = await import('./commands-BaVcBOKA.mjs');
907
+ const { sessionApprove } = await import('./commands-B-VYM4sA.mjs');
904
908
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
905
909
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
906
910
  json: hasFlag("--json")
@@ -910,7 +914,7 @@ async function handleSessionCommand() {
910
914
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
911
915
  process.exit(1);
912
916
  }
913
- const { sessionDeny } = await import('./commands-BaVcBOKA.mjs');
917
+ const { sessionDeny } = await import('./commands-B-VYM4sA.mjs');
914
918
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
915
919
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
916
920
  json: hasFlag("--json")
@@ -962,7 +966,7 @@ async function handleSessionCommand() {
962
966
  console.error("Usage: svamp session set-title <title>");
963
967
  process.exit(1);
964
968
  }
965
- const { sessionSetTitle } = await import('./agentCommands-B7HQJo3X.mjs');
969
+ const { sessionSetTitle } = await import('./agentCommands-CoPsnzwK.mjs');
966
970
  await sessionSetTitle(title);
967
971
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
968
972
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -970,7 +974,7 @@ async function handleSessionCommand() {
970
974
  console.error("Usage: svamp session set-project-description <text>");
971
975
  process.exit(1);
972
976
  }
973
- const { sessionSetProjectDescription } = await import('./agentCommands-B7HQJo3X.mjs');
977
+ const { sessionSetProjectDescription } = await import('./agentCommands-CoPsnzwK.mjs');
974
978
  await sessionSetProjectDescription(desc);
975
979
  } else if (sessionSubcommand === "set-link") {
976
980
  const url = sessionArgs[1];
@@ -979,11 +983,11 @@ async function handleSessionCommand() {
979
983
  process.exit(1);
980
984
  }
981
985
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
982
- const { sessionSetLink } = await import('./agentCommands-B7HQJo3X.mjs');
986
+ const { sessionSetLink } = await import('./agentCommands-CoPsnzwK.mjs');
983
987
  await sessionSetLink(url, label);
984
988
  } else if (sessionSubcommand === "link") {
985
989
  const op = sessionArgs[1];
986
- const lm = await import('./agentCommands-B7HQJo3X.mjs');
990
+ const lm = await import('./agentCommands-CoPsnzwK.mjs');
987
991
  if (op === "add") {
988
992
  const url = sessionArgs[2];
989
993
  if (!url || url.startsWith("--")) {
@@ -1018,7 +1022,7 @@ async function handleSessionCommand() {
1018
1022
  process.exit(1);
1019
1023
  }
1020
1024
  const level = parseFlagStr("--level") || "info";
1021
- const { sessionNotify } = await import('./agentCommands-B7HQJo3X.mjs');
1025
+ const { sessionNotify } = await import('./agentCommands-CoPsnzwK.mjs');
1022
1026
  await sessionNotify(message, level);
1023
1027
  } else if (sessionSubcommand === "broadcast") {
1024
1028
  const action = sessionArgs[1];
@@ -1026,7 +1030,7 @@ async function handleSessionCommand() {
1026
1030
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
1027
1031
  process.exit(1);
1028
1032
  }
1029
- const { sessionBroadcast } = await import('./agentCommands-B7HQJo3X.mjs');
1033
+ const { sessionBroadcast } = await import('./agentCommands-CoPsnzwK.mjs');
1030
1034
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
1031
1035
  } else if (sessionSubcommand === "inbox") {
1032
1036
  const inboxSubcmd = sessionArgs[1];
@@ -1037,7 +1041,7 @@ async function handleSessionCommand() {
1037
1041
  process.exit(1);
1038
1042
  }
1039
1043
  if (agentSessionId) {
1040
- const { inboxSend } = await import('./agentCommands-B7HQJo3X.mjs');
1044
+ const { inboxSend } = await import('./agentCommands-CoPsnzwK.mjs');
1041
1045
  await inboxSend(sessionArgs[2], {
1042
1046
  body: sessionArgs[3],
1043
1047
  subject: parseFlagStr("--subject"),
@@ -1052,7 +1056,7 @@ async function handleSessionCommand() {
1052
1056
  }
1053
1057
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
1054
1058
  if (agentSessionId && !sessionArgs[2]) {
1055
- const { inboxList } = await import('./agentCommands-B7HQJo3X.mjs');
1059
+ const { inboxList } = await import('./agentCommands-CoPsnzwK.mjs');
1056
1060
  await inboxList({
1057
1061
  unread: hasFlag("--unread"),
1058
1062
  limit: parseFlagInt("--limit"),
@@ -1074,7 +1078,7 @@ async function handleSessionCommand() {
1074
1078
  process.exit(1);
1075
1079
  }
1076
1080
  if (agentSessionId && !sessionArgs[3]) {
1077
- const { inboxList } = await import('./agentCommands-B7HQJo3X.mjs');
1081
+ const { inboxList } = await import('./agentCommands-CoPsnzwK.mjs');
1078
1082
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1079
1083
  } else if (sessionArgs[3]) {
1080
1084
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1084,7 +1088,7 @@ async function handleSessionCommand() {
1084
1088
  }
1085
1089
  } else if (inboxSubcmd === "reply") {
1086
1090
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1087
- const { inboxReply } = await import('./agentCommands-B7HQJo3X.mjs');
1091
+ const { inboxReply } = await import('./agentCommands-CoPsnzwK.mjs');
1088
1092
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1089
1093
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1090
1094
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1122,7 +1126,7 @@ async function handleMachineCommand() {
1122
1126
  return;
1123
1127
  }
1124
1128
  if (machineSubcommand === "share") {
1125
- const { machineShare } = await import('./commands-BaVcBOKA.mjs');
1129
+ const { machineShare } = await import('./commands-B-VYM4sA.mjs');
1126
1130
  let machineId;
1127
1131
  const shareArgs = [];
1128
1132
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1173,14 +1177,14 @@ async function handleMachineCommand() {
1173
1177
  process.exit(1);
1174
1178
  }
1175
1179
  if (all) {
1176
- const { fleetExec } = await import('./fleet-2c-iNucb.mjs');
1180
+ const { fleetExec } = await import('./fleet-CqbZhBG2.mjs');
1177
1181
  await fleetExec(command, { cwd });
1178
1182
  } else {
1179
- const { machineExec } = await import('./commands-BaVcBOKA.mjs');
1183
+ const { machineExec } = await import('./commands-B-VYM4sA.mjs');
1180
1184
  await machineExec(machineId, command, cwd);
1181
1185
  }
1182
1186
  } else if (machineSubcommand === "info") {
1183
- const { machineInfo } = await import('./commands-BaVcBOKA.mjs');
1187
+ const { machineInfo } = await import('./commands-B-VYM4sA.mjs');
1184
1188
  let machineId;
1185
1189
  for (let i = 1; i < machineArgs.length; i++) {
1186
1190
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1200,10 +1204,10 @@ async function handleMachineCommand() {
1200
1204
  level = machineArgs[++i];
1201
1205
  }
1202
1206
  }
1203
- const { machineNotify } = await import('./agentCommands-B7HQJo3X.mjs');
1207
+ const { machineNotify } = await import('./agentCommands-CoPsnzwK.mjs');
1204
1208
  await machineNotify(message, level);
1205
1209
  } else if (machineSubcommand === "ls") {
1206
- const { machineLs } = await import('./commands-BaVcBOKA.mjs');
1210
+ const { machineLs } = await import('./commands-B-VYM4sA.mjs');
1207
1211
  let machineId;
1208
1212
  let showHidden = false;
1209
1213
  let path;
@@ -1262,20 +1266,20 @@ Examples:
1262
1266
  };
1263
1267
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1264
1268
  if (sub === "status") {
1265
- const { fleetStatus } = await import('./fleet-2c-iNucb.mjs');
1269
+ const { fleetStatus } = await import('./fleet-CqbZhBG2.mjs');
1266
1270
  await fleetStatus();
1267
1271
  } else if (sub === "upgrade-claude") {
1268
- const { fleetUpgradeClaude } = await import('./fleet-2c-iNucb.mjs');
1272
+ const { fleetUpgradeClaude } = await import('./fleet-CqbZhBG2.mjs');
1269
1273
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1270
1274
  } else if (sub === "upgrade-svamp") {
1271
- const { fleetUpgradeSvamp } = await import('./fleet-2c-iNucb.mjs');
1275
+ const { fleetUpgradeSvamp } = await import('./fleet-CqbZhBG2.mjs');
1272
1276
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self"), force: hasFlag("force") });
1273
1277
  } else if (sub === "daemon-restart") {
1274
- const { fleetDaemonRestart } = await import('./fleet-2c-iNucb.mjs');
1278
+ const { fleetDaemonRestart } = await import('./fleet-CqbZhBG2.mjs');
1275
1279
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1276
1280
  } else if (sub === "push-skill") {
1277
1281
  const name = fleetArgs[1];
1278
- const { fleetPushSkill } = await import('./fleet-2c-iNucb.mjs');
1282
+ const { fleetPushSkill } = await import('./fleet-CqbZhBG2.mjs');
1279
1283
  await fleetPushSkill(name);
1280
1284
  } else {
1281
1285
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1291,7 +1295,7 @@ async function handleSkillsCommand() {
1291
1295
  await printSkillsHelp();
1292
1296
  return;
1293
1297
  }
1294
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-CZSPOqtd.mjs');
1298
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DSI9ZUTG.mjs');
1295
1299
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1296
1300
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1297
1301
  if (!query) {
@@ -1338,7 +1342,7 @@ async function loginToHypha() {
1338
1342
  process.exit(1);
1339
1343
  }
1340
1344
  const anchor = anchorArg.replace(/\/+$/, "");
1341
- const { loadInstanceConfig } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.am; });
1345
+ const { loadInstanceConfig } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.ap; });
1342
1346
  let cfg = null;
1343
1347
  try {
1344
1348
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1449,7 +1453,7 @@ async function logoutFromHypha() {
1449
1453
  } catch {
1450
1454
  }
1451
1455
  try {
1452
- const { clearInstanceConfigCache } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.am; });
1456
+ const { clearInstanceConfigCache } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.ap; });
1453
1457
  clearInstanceConfigCache();
1454
1458
  } catch {
1455
1459
  }
@@ -1791,7 +1795,7 @@ async function applyClaudeAuthFlags(argv) {
1791
1795
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1792
1796
  );
1793
1797
  }
1794
- const mod = await import('./run-BNeZiySO.mjs').then(function (n) { return n.an; });
1798
+ const mod = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aq; });
1795
1799
  if (hasHypha) {
1796
1800
  let url;
1797
1801
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1845,7 +1849,7 @@ async function applyDaemonShareFlag(argv) {
1845
1849
  }
1846
1850
  }
1847
1851
  if (collected.length === 0) return;
1848
- const { updateEnvFile } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.an; });
1852
+ const { updateEnvFile } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aq; });
1849
1853
  const seen = /* @__PURE__ */ new Set();
1850
1854
  const deduped = collected.filter((e) => {
1851
1855
  const k = e.toLowerCase();
@@ -1878,7 +1882,7 @@ async function handleWiseAgentCommand(rest) {
1878
1882
  }
1879
1883
  });
1880
1884
  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(" ");
1881
- const { wiseAskCli } = await import('./commands-BaVcBOKA.mjs');
1885
+ const { wiseAskCli } = await import('./commands-B-VYM4sA.mjs');
1882
1886
  await wiseAskCli(machineId, message, sessionId, { json });
1883
1887
  return;
1884
1888
  }
@@ -1890,7 +1894,7 @@ async function handleWiseAgentCommand(rest) {
1890
1894
  }
1891
1895
  return void 0;
1892
1896
  };
1893
- const { runWiseVoiceCli } = await import('./headlessCli-CftEZbxm.mjs');
1897
+ const { runWiseVoiceCli } = await import('./headlessCli-CJiHG0gu.mjs');
1894
1898
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1895
1899
  return;
1896
1900
  }
@@ -1908,7 +1912,7 @@ async function handleWiseAgentCommand(rest) {
1908
1912
  const mode = valueOf(["--mode"]);
1909
1913
  const mission = valueOf(["--mission"]);
1910
1914
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1911
- const { wiseJoinMeetingCli } = await import('./commands-BaVcBOKA.mjs');
1915
+ const { wiseJoinMeetingCli } = await import('./commands-B-VYM4sA.mjs');
1912
1916
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1913
1917
  return;
1914
1918
  }
@@ -1920,7 +1924,7 @@ async function handleWiseAgentCommand(rest) {
1920
1924
  }
1921
1925
  return void 0;
1922
1926
  };
1923
- const { wiseLeaveMeetingCli } = await import('./commands-BaVcBOKA.mjs');
1927
+ const { wiseLeaveMeetingCli } = await import('./commands-B-VYM4sA.mjs');
1924
1928
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1925
1929
  return;
1926
1930
  }
@@ -1944,7 +1948,7 @@ async function handleWiseAgentCommand(rest) {
1944
1948
  }
1945
1949
  });
1946
1950
  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(" ");
1947
- const { wiseAnnounceCli } = await import('./commands-BaVcBOKA.mjs');
1951
+ const { wiseAnnounceCli } = await import('./commands-B-VYM4sA.mjs');
1948
1952
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1949
1953
  return;
1950
1954
  }
@@ -1956,7 +1960,7 @@ async function handleWiseAgentCommand(rest) {
1956
1960
  }
1957
1961
  return void 0;
1958
1962
  };
1959
- const { wiseMeetingsCli } = await import('./commands-BaVcBOKA.mjs');
1963
+ const { wiseMeetingsCli } = await import('./commands-B-VYM4sA.mjs');
1960
1964
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1961
1965
  return;
1962
1966
  }
@@ -2006,7 +2010,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2006
2010
  return;
2007
2011
  }
2008
2012
  const authArgs = rest.slice(1);
2009
- const mod = await import('./auth-BB_4_6P7.mjs');
2013
+ const mod = await import('./auth-Dj_Pcii4.mjs');
2010
2014
  let action;
2011
2015
  try {
2012
2016
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -2016,7 +2020,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2016
2020
  return;
2017
2021
  }
2018
2022
  if (action) {
2019
- const { updateEnvFile } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.an; });
2023
+ const { updateEnvFile } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aq; });
2020
2024
  const updates = mod.buildWiseAgentEnvUpdates(action);
2021
2025
  updateEnvFile(updates);
2022
2026
  for (const [k, v] of Object.entries(updates)) {
@@ -2030,7 +2034,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2030
2034
  }
2031
2035
  async function handleDaemonAuthCommand(argv) {
2032
2036
  const sub = (argv[0] || "status").toLowerCase();
2033
- const mod = await import('./run-BNeZiySO.mjs').then(function (n) { return n.an; });
2037
+ const mod = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aq; });
2034
2038
  if (sub === "--help" || sub === "-h" || sub === "help") {
2035
2039
  console.log(`
2036
2040
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2104,8 +2108,8 @@ one step: --use-hypha-proxy / --use-claude-login / --anthropic-base-url URL --an
2104
2108
  }
2105
2109
  async function handleDaemonCodexAuthCommand(argv) {
2106
2110
  const sub = (argv[0] || "status").toLowerCase();
2107
- const { updateEnvFile } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.an; });
2108
- const { resolveCodexProvider } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.ao; });
2111
+ const { updateEnvFile } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.aq; });
2112
+ const { resolveCodexProvider } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.ar; });
2109
2113
  const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
2110
2114
  if (sub === "--help" || sub === "-h" || sub === "help") {
2111
2115
  console.log(`
@@ -2437,7 +2441,7 @@ Examples:
2437
2441
  async function printSkillsHelp() {
2438
2442
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2439
2443
  try {
2440
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BNeZiySO.mjs').then(function (n) { return n.av; });
2444
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CKLU1B02.mjs').then(function (n) { return n.az; });
2441
2445
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2442
2446
  } catch {
2443
2447
  }
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import './run-BNeZiySO.mjs';
1
+ import './run-CKLU1B02.mjs';
2
2
  import './serviceManager-hlOVxkhW.mjs';
3
- import './cli-BH5LIMPI.mjs';
3
+ import './cli-CuzIOUig.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
6
6
  import 'fs';
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { execSync, execFileSync } from 'node:child_process';
3
3
  import { basename, resolve, join, isAbsolute } from 'node:path';
4
4
  import os from 'node:os';
5
- import { a3 as formatHandle, a4 as normalizeAllowedUser, a5 as loadSecurityContextConfig, a6 as resolveSecurityContext, a7 as buildSecurityContextFromFlags, a8 as mergeSecurityContexts, c as connectToHypha, a9 as buildSessionShareUrl, aa as computeOutboundHop, i as shortId, ab as registerAwaitingReply, ac as buildMachineShareUrl, ad as parseHandle, ae as handleMatchesMetadata } from './run-BNeZiySO.mjs';
5
+ import { a6 as formatHandle, a7 as normalizeAllowedUser, a8 as loadSecurityContextConfig, a9 as resolveSecurityContext, aa as buildSecurityContextFromFlags, ab as mergeSecurityContexts, c as connectToHypha, ac as buildSessionShareUrl, ad as computeOutboundHop, i as shortId, ae as registerAwaitingReply, af as buildMachineShareUrl, ag as parseHandle, ah as handleMatchesMetadata } from './run-CKLU1B02.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';