svamp-cli 0.2.326 → 0.2.328

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-D1NzA4Hb.mjs → adminCommands-DotiO7jx.mjs} +1 -1
  2. package/dist/{agentCommands-DUHUBzrj.mjs → agentCommands-DefL1pIo.mjs} +5 -5
  3. package/dist/{auth-DogM3PPm.mjs → auth-DLK3tc_f.mjs} +1 -1
  4. package/dist/{cli-PWoHWBkF.mjs → cli-BCN1uAze.mjs} +77 -77
  5. package/dist/cli.mjs +2 -2
  6. package/dist/{commands-D-4ry2I6.mjs → commands-BD6Qfv3u.mjs} +11 -11
  7. package/dist/{commands-CqqQYRzg.mjs → commands-BEnXz1U_.mjs} +2 -2
  8. package/dist/{commands-Dt_MecCB.mjs → commands-BFlfbiey.mjs} +1 -1
  9. package/dist/{commands-CxfUr2Qr.mjs → commands-DEZLlXJ3.mjs} +1 -1
  10. package/dist/{commands-B5bC9eXz.mjs → commands-DH2WCdPH.mjs} +3 -3
  11. package/dist/{commands-Dm9KNB-p.mjs → commands-gO42Ijz3.mjs} +3 -3
  12. package/dist/{commands-CBk4dLUP.mjs → commands-uN_gulw0.mjs} +3 -3
  13. package/dist/{commands-Ck4pP86Q.mjs → commands-xhA5FWM8.mjs} +2 -2
  14. package/dist/{fleet-Bzg3YxM4.mjs → fleet-CbKnESdR.mjs} +2 -2
  15. package/dist/{headlessCli-DvJI9DRh.mjs → headlessCli-2wTVI-Kj.mjs} +2 -2
  16. package/dist/{httpServer-1XjB2h3K.mjs → httpServer-Be1Hcddr.mjs} +59 -38
  17. package/dist/index.mjs +1 -1
  18. package/dist/{notifyCommands-BpMErHcv.mjs → notifyCommands--tpDRdrL.mjs} +1 -1
  19. package/dist/package-BORyBEey.mjs +64 -0
  20. package/dist/{rpc-27xBajCe.mjs → rpc-BCLZpI5H.mjs} +1 -1
  21. package/dist/{rpc-Qcj4M_LQ.mjs → rpc-CZqCc9Pr.mjs} +1 -1
  22. package/dist/{run-CocRShOR.mjs → run-BAYXQ4-N.mjs} +1 -1
  23. package/dist/{run-BBBr4jkI.mjs → run-CSV6OgQ8.mjs} +274 -56
  24. package/dist/{scheduler-DjAVEyn3.mjs → scheduler-s_j089nA.mjs} +1 -1
  25. package/dist/{serveCommands-BK-wWc_i.mjs → serveCommands-C4779W5n.mjs} +19 -11
  26. package/dist/{sideband-5ck3CDWM.mjs → sideband-B7sDP61Z.mjs} +1 -1
  27. package/package.json +3 -3
  28. package/dist/package-D_BgajkI.mjs +0 -64
@@ -1,4 +1,4 @@
1
- import { c as connectToHypha, K as computeCollectionConfigUpdate, L as SYSTEM_COLLECTION_CONFIG } from './run-BBBr4jkI.mjs';
1
+ import { c as connectToHypha, K as computeCollectionConfigUpdate, L as SYSTEM_COLLECTION_CONFIG } from './run-CSV6OgQ8.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 { e as shortId } from './run-BBBr4jkI.mjs';
5
+ import { e as shortId } from './run-CSV6OgQ8.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-BBBr4jkI.mjs').then(function (n) { return n.as; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.as; });
100
100
  const desc = sanitizeDescription(description, 240);
101
101
  if (!desc) {
102
102
  console.error("Project description is empty.");
@@ -369,7 +369,7 @@ async function sessionBroadcast(action, args) {
369
369
  console.log(`Broadcast sent: ${action}`);
370
370
  }
371
371
  async function connectToMachineService() {
372
- const { connectAndGetMachine } = await import('./commands-CxfUr2Qr.mjs');
372
+ const { connectAndGetMachine } = await import('./commands-DEZLlXJ3.mjs');
373
373
  return connectAndGetMachine();
374
374
  }
375
375
  function buildInboxMessage(args) {
@@ -452,7 +452,7 @@ async function inboxSend(targetSessionId, opts) {
452
452
  console.error("Message body is required.");
453
453
  process.exit(1);
454
454
  }
455
- const { connectAndResolveSession } = await import('./commands-CxfUr2Qr.mjs');
455
+ const { connectAndResolveSession } = await import('./commands-DEZLlXJ3.mjs');
456
456
  let server;
457
457
  try {
458
458
  const { targetId, messageId } = await inboxSendCore(
@@ -507,7 +507,7 @@ async function inboxReply(messageId, body, opts) {
507
507
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
508
508
  process.exit(1);
509
509
  }
510
- const { connectAndResolveSession } = await import('./commands-CxfUr2Qr.mjs');
510
+ const { connectAndResolveSession } = await import('./commands-DEZLlXJ3.mjs');
511
511
  const { server: localServer, machine: localMachine } = await connectToMachineService();
512
512
  let localDisconnected = false;
513
513
  const disconnectLocal = async () => {
@@ -1,4 +1,4 @@
1
- import { a0 as resolveModel } from './run-BBBr4jkI.mjs';
1
+ import { a0 as resolveModel } from './run-CSV6OgQ8.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,4 +1,4 @@
1
- import { ae as clearStopMarker, af as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-BBBr4jkI.mjs';
1
+ import { ae as clearStopMarker, af as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CSV6OgQ8.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
 
4
4
  function flushAndExit(code) {
@@ -37,7 +37,7 @@ const subcommand = args[0];
37
37
  let daemonSubcommand = args[1];
38
38
  async function main() {
39
39
  try {
40
- const { getLoadedConfig } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.an; });
40
+ const { getLoadedConfig } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.an; });
41
41
  getLoadedConfig();
42
42
  } catch {
43
43
  }
@@ -56,7 +56,7 @@ async function main() {
56
56
  }
57
57
  const whenIdle = args.includes("--when-idle");
58
58
  const force = args.includes("--force");
59
- const mod = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aD; });
59
+ const mod = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aD; });
60
60
  if (whenIdle && !force) {
61
61
  if (mod.isDaemonAlive()) {
62
62
  mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
@@ -183,7 +183,7 @@ async function main() {
183
183
  releaseSupervisorLock,
184
184
  findOrphanedSyncPids,
185
185
  killOrphanedSyncs
186
- } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aC; });
186
+ } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aC; });
187
187
  const supervisorPidFile = pathJoin(svampHome, "supervisor.pid");
188
188
  const lock = acquireSupervisorLockWithRetry(supervisorPidFile, process.pid);
189
189
  if (!lock.acquired) {
@@ -363,7 +363,7 @@ async function main() {
363
363
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
364
364
  process.exit(1);
365
365
  }
366
- const { handleServiceCommand } = await import('./commands-D-4ry2I6.mjs');
366
+ const { handleServiceCommand } = await import('./commands-BD6Qfv3u.mjs');
367
367
  await handleServiceCommand();
368
368
  } else if (subcommand === "serve") {
369
369
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -371,7 +371,7 @@ async function main() {
371
371
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
372
372
  process.exit(1);
373
373
  }
374
- const { handleServeCommand } = await import('./serveCommands-BK-wWc_i.mjs');
374
+ const { handleServeCommand } = await import('./serveCommands-C4779W5n.mjs');
375
375
  await handleServeCommand();
376
376
  process.exit(0);
377
377
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -380,7 +380,7 @@ async function main() {
380
380
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
381
381
  process.exit(1);
382
382
  }
383
- const { processCommand } = await import('./commands-B5bC9eXz.mjs');
383
+ const { processCommand } = await import('./commands-DH2WCdPH.mjs');
384
384
  let machineId;
385
385
  const processArgs = args.slice(1);
386
386
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -394,26 +394,26 @@ async function main() {
394
394
  }), machineId);
395
395
  process.exit(0);
396
396
  } else if (subcommand === "outpost") {
397
- const { outpostCommand } = await import('./commands-Dm9KNB-p.mjs');
397
+ const { outpostCommand } = await import('./commands-gO42Ijz3.mjs');
398
398
  await outpostCommand(args.slice(1));
399
399
  process.exit(0);
400
400
  } else if (subcommand === "issue" || subcommand === "issues") {
401
- const { issueCommand } = await import('./commands-CqqQYRzg.mjs');
401
+ const { issueCommand } = await import('./commands-BEnXz1U_.mjs');
402
402
  await issueCommand(args.slice(1));
403
403
  await flushAndExit(0);
404
404
  } else if (subcommand === "workflow" || subcommand === "workflows") {
405
- const { workflowCommand } = await import('./commands-Ck4pP86Q.mjs');
405
+ const { workflowCommand } = await import('./commands-xhA5FWM8.mjs');
406
406
  await workflowCommand(args.slice(1));
407
407
  await flushAndExit(0);
408
408
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
409
409
  await handleWiseAgentCommand(args.slice(1));
410
410
  process.exit(0);
411
411
  } else if (subcommand === "feature" || subcommand === "crew") {
412
- const { crewCommand } = await import('./commands-CBk4dLUP.mjs');
412
+ const { crewCommand } = await import('./commands-uN_gulw0.mjs');
413
413
  await crewCommand(args.slice(1));
414
414
  process.exit(0);
415
415
  } else if (subcommand === "notify") {
416
- const { notifyUser } = await import('./notifyCommands-BpMErHcv.mjs');
416
+ const { notifyUser } = await import('./notifyCommands--tpDRdrL.mjs');
417
417
  const rest = args.slice(1);
418
418
  let email;
419
419
  const o = {};
@@ -430,7 +430,7 @@ async function main() {
430
430
  } else if (subcommand === "admin") {
431
431
  const adminSub = args[1];
432
432
  if (adminSub === "set-collection-config") {
433
- const { setCollectionConfig } = await import('./adminCommands-D1NzA4Hb.mjs');
433
+ const { setCollectionConfig } = await import('./adminCommands-DotiO7jx.mjs');
434
434
  const rest = args.slice(2);
435
435
  let alias;
436
436
  let configJson;
@@ -440,10 +440,10 @@ async function main() {
440
440
  }
441
441
  await setCollectionConfig(alias, configJson);
442
442
  } else if (adminSub === "create-system-collections") {
443
- const { createSystemCollections } = await import('./adminCommands-D1NzA4Hb.mjs');
443
+ const { createSystemCollections } = await import('./adminCommands-DotiO7jx.mjs');
444
444
  await createSystemCollections();
445
445
  } else if (adminSub === "migrate-collection-children") {
446
- const { migrateCollectionChildren } = await import('./adminCommands-D1NzA4Hb.mjs');
446
+ const { migrateCollectionChildren } = await import('./adminCommands-DotiO7jx.mjs');
447
447
  const rest = args.slice(2).filter((a) => !a.startsWith("-"));
448
448
  await migrateCollectionChildren(rest[0], rest[1]);
449
449
  } else {
@@ -451,7 +451,7 @@ async function main() {
451
451
  }
452
452
  process.exit(0);
453
453
  } else if (subcommand === "events") {
454
- const { listEvents, ackEvent } = await import('./notifyCommands-BpMErHcv.mjs');
454
+ const { listEvents, ackEvent } = await import('./notifyCommands--tpDRdrL.mjs');
455
455
  const sub = args[1];
456
456
  const rest = args.slice(2);
457
457
  let email;
@@ -472,7 +472,7 @@ async function main() {
472
472
  } else if (!subcommand || subcommand === "start") {
473
473
  await handleInteractiveCommand();
474
474
  } else if (subcommand === "--version" || subcommand === "-v") {
475
- const pkg = await import('./package-D_BgajkI.mjs').catch(() => ({ default: { version: "unknown" } }));
475
+ const pkg = await import('./package-BORyBEey.mjs').catch(() => ({ default: { version: "unknown" } }));
476
476
  console.log(`svamp version: ${pkg.default.version}`);
477
477
  } else {
478
478
  console.error(`Unknown command: ${subcommand}`);
@@ -481,7 +481,7 @@ async function main() {
481
481
  }
482
482
  }
483
483
  async function handleInteractiveCommand() {
484
- const { runInteractive } = await import('./run-CocRShOR.mjs');
484
+ const { runInteractive } = await import('./run-BAYXQ4-N.mjs');
485
485
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
486
486
  let directory = process.cwd();
487
487
  let resumeSessionId;
@@ -526,7 +526,7 @@ async function handleAgentCommand() {
526
526
  return;
527
527
  }
528
528
  if (agentArgs[0] === "list") {
529
- const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.av; });
529
+ const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.av; });
530
530
  console.log("Known agents:");
531
531
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
532
532
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -538,7 +538,7 @@ async function handleAgentCommand() {
538
538
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
539
539
  return;
540
540
  }
541
- const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.av; });
541
+ const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.av; });
542
542
  let cwd = process.cwd();
543
543
  const filteredArgs = [];
544
544
  for (let i = 0; i < agentArgs.length; i++) {
@@ -562,18 +562,18 @@ async function handleAgentCommand() {
562
562
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
563
563
  let backend;
564
564
  if (KNOWN_CODEX_AGENTS[config.agentName]) {
565
- const { CodexAppServerBackend } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aw; });
565
+ const { CodexAppServerBackend } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aw; });
566
566
  backend = new CodexAppServerBackend({ cwd, log: logFn });
567
567
  } else {
568
- const { AcpBackend } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.au; });
569
- const { GeminiTransport } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.ax; });
570
- const { KimiTransport } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.ay; });
571
- const { DefaultTransport } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.at; });
568
+ const { AcpBackend } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.au; });
569
+ const { GeminiTransport } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.ax; });
570
+ const { KimiTransport } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.ay; });
571
+ const { DefaultTransport } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.at; });
572
572
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : config.agentName === "kimi" ? new KimiTransport() : new DefaultTransport(config.agentName);
573
573
  let acpEnv;
574
574
  if (config.agentName === "kimi") {
575
- const { ensureKimiProviderConfigured } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aA; });
576
- const { kimiSpawnEnv } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.az; });
575
+ const { ensureKimiProviderConfigured } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aA; });
576
+ const { kimiSpawnEnv } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.az; });
577
577
  await ensureKimiProviderConfigured(process.env, config.command, logFn);
578
578
  acpEnv = kimiSpawnEnv(process.env);
579
579
  }
@@ -703,7 +703,7 @@ async function handleSessionCommand() {
703
703
  process.exit(1);
704
704
  }
705
705
  }
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-CxfUr2Qr.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-DEZLlXJ3.mjs');
707
707
  const parseFlagStr = (flag, shortFlag) => {
708
708
  for (let i = 1; i < sessionArgs.length; i++) {
709
709
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -777,7 +777,7 @@ async function handleSessionCommand() {
777
777
  console.warn(" --allow-write / a securityContext allowedDirectories, or keep the");
778
778
  console.warn(" sensitive path outside the workspace.");
779
779
  }
780
- const { parseShareArg } = await import('./commands-CxfUr2Qr.mjs');
780
+ const { parseShareArg } = await import('./commands-DEZLlXJ3.mjs');
781
781
  const shareEntries = share.map((s) => parseShareArg(s));
782
782
  await sessionSpawn(agent, dir, targetMachineId, {
783
783
  message,
@@ -868,7 +868,7 @@ async function handleSessionCommand() {
868
868
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
869
869
  process.exit(1);
870
870
  }
871
- const { sessionEditMessage } = await import('./commands-CxfUr2Qr.mjs');
871
+ const { sessionEditMessage } = await import('./commands-DEZLlXJ3.mjs');
872
872
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
873
873
  } else if (sessionSubcommand === "refine") {
874
874
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -876,7 +876,7 @@ async function handleSessionCommand() {
876
876
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
877
877
  process.exit(1);
878
878
  }
879
- const { sessionRefineLastReply } = await import('./commands-CxfUr2Qr.mjs');
879
+ const { sessionRefineLastReply } = await import('./commands-DEZLlXJ3.mjs');
880
880
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
881
881
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
882
882
  if (!sessionArgs[1]) {
@@ -884,7 +884,7 @@ async function handleSessionCommand() {
884
884
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
885
885
  process.exit(1);
886
886
  }
887
- const { sessionUndoEdit } = await import('./commands-CxfUr2Qr.mjs');
887
+ const { sessionUndoEdit } = await import('./commands-DEZLlXJ3.mjs');
888
888
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
889
889
  } else if (sessionSubcommand === "query") {
890
890
  const dir = sessionArgs[1];
@@ -894,7 +894,7 @@ async function handleSessionCommand() {
894
894
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
895
895
  process.exit(1);
896
896
  }
897
- const { sessionQuery } = await import('./commands-CxfUr2Qr.mjs');
897
+ const { sessionQuery } = await import('./commands-DEZLlXJ3.mjs');
898
898
  await sessionQuery(dir, prompt, targetMachineId, {
899
899
  timeout: parseFlagInt("--timeout"),
900
900
  json: hasFlag("--json"),
@@ -927,7 +927,7 @@ async function handleSessionCommand() {
927
927
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
928
928
  process.exit(1);
929
929
  }
930
- const { sessionApprove } = await import('./commands-CxfUr2Qr.mjs');
930
+ const { sessionApprove } = await import('./commands-DEZLlXJ3.mjs');
931
931
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
932
932
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
933
933
  json: hasFlag("--json")
@@ -937,7 +937,7 @@ async function handleSessionCommand() {
937
937
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
938
938
  process.exit(1);
939
939
  }
940
- const { sessionDeny } = await import('./commands-CxfUr2Qr.mjs');
940
+ const { sessionDeny } = await import('./commands-DEZLlXJ3.mjs');
941
941
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
942
942
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
943
943
  json: hasFlag("--json")
@@ -989,7 +989,7 @@ async function handleSessionCommand() {
989
989
  console.error("Usage: svamp session set-title <title>");
990
990
  process.exit(1);
991
991
  }
992
- const { sessionSetTitle } = await import('./agentCommands-DUHUBzrj.mjs');
992
+ const { sessionSetTitle } = await import('./agentCommands-DefL1pIo.mjs');
993
993
  await sessionSetTitle(title);
994
994
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
995
995
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -997,7 +997,7 @@ async function handleSessionCommand() {
997
997
  console.error("Usage: svamp session set-project-description <text>");
998
998
  process.exit(1);
999
999
  }
1000
- const { sessionSetProjectDescription } = await import('./agentCommands-DUHUBzrj.mjs');
1000
+ const { sessionSetProjectDescription } = await import('./agentCommands-DefL1pIo.mjs');
1001
1001
  await sessionSetProjectDescription(desc);
1002
1002
  } else if (sessionSubcommand === "set-link") {
1003
1003
  const url = sessionArgs[1];
@@ -1006,11 +1006,11 @@ async function handleSessionCommand() {
1006
1006
  process.exit(1);
1007
1007
  }
1008
1008
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
1009
- const { sessionSetLink } = await import('./agentCommands-DUHUBzrj.mjs');
1009
+ const { sessionSetLink } = await import('./agentCommands-DefL1pIo.mjs');
1010
1010
  await sessionSetLink(url, label);
1011
1011
  } else if (sessionSubcommand === "link") {
1012
1012
  const op = sessionArgs[1];
1013
- const lm = await import('./agentCommands-DUHUBzrj.mjs');
1013
+ const lm = await import('./agentCommands-DefL1pIo.mjs');
1014
1014
  if (op === "add") {
1015
1015
  const url = sessionArgs[2];
1016
1016
  if (!url || url.startsWith("--")) {
@@ -1045,7 +1045,7 @@ async function handleSessionCommand() {
1045
1045
  process.exit(1);
1046
1046
  }
1047
1047
  const level = parseFlagStr("--level") || "info";
1048
- const { sessionNotify } = await import('./agentCommands-DUHUBzrj.mjs');
1048
+ const { sessionNotify } = await import('./agentCommands-DefL1pIo.mjs');
1049
1049
  await sessionNotify(message, level);
1050
1050
  } else if (sessionSubcommand === "broadcast") {
1051
1051
  const action = sessionArgs[1];
@@ -1053,7 +1053,7 @@ async function handleSessionCommand() {
1053
1053
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
1054
1054
  process.exit(1);
1055
1055
  }
1056
- const { sessionBroadcast } = await import('./agentCommands-DUHUBzrj.mjs');
1056
+ const { sessionBroadcast } = await import('./agentCommands-DefL1pIo.mjs');
1057
1057
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
1058
1058
  } else if (sessionSubcommand === "inbox") {
1059
1059
  const inboxSubcmd = sessionArgs[1];
@@ -1064,7 +1064,7 @@ async function handleSessionCommand() {
1064
1064
  process.exit(1);
1065
1065
  }
1066
1066
  if (agentSessionId) {
1067
- const { inboxSend } = await import('./agentCommands-DUHUBzrj.mjs');
1067
+ const { inboxSend } = await import('./agentCommands-DefL1pIo.mjs');
1068
1068
  await inboxSend(sessionArgs[2], {
1069
1069
  body: sessionArgs[3],
1070
1070
  subject: parseFlagStr("--subject"),
@@ -1081,7 +1081,7 @@ async function handleSessionCommand() {
1081
1081
  }
1082
1082
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
1083
1083
  if (agentSessionId && !sessionArgs[2]) {
1084
- const { inboxList } = await import('./agentCommands-DUHUBzrj.mjs');
1084
+ const { inboxList } = await import('./agentCommands-DefL1pIo.mjs');
1085
1085
  await inboxList({
1086
1086
  unread: hasFlag("--unread"),
1087
1087
  limit: parseFlagInt("--limit"),
@@ -1103,7 +1103,7 @@ async function handleSessionCommand() {
1103
1103
  process.exit(1);
1104
1104
  }
1105
1105
  if (agentSessionId && !sessionArgs[3]) {
1106
- const { inboxList } = await import('./agentCommands-DUHUBzrj.mjs');
1106
+ const { inboxList } = await import('./agentCommands-DefL1pIo.mjs');
1107
1107
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1108
1108
  } else if (sessionArgs[3]) {
1109
1109
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1113,7 +1113,7 @@ async function handleSessionCommand() {
1113
1113
  }
1114
1114
  } else if (inboxSubcmd === "reply") {
1115
1115
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1116
- const { inboxReply } = await import('./agentCommands-DUHUBzrj.mjs');
1116
+ const { inboxReply } = await import('./agentCommands-DefL1pIo.mjs');
1117
1117
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1118
1118
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1119
1119
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1151,7 +1151,7 @@ async function handleMachineCommand() {
1151
1151
  return;
1152
1152
  }
1153
1153
  if (machineSubcommand === "share") {
1154
- const { machineShare } = await import('./commands-CxfUr2Qr.mjs');
1154
+ const { machineShare } = await import('./commands-DEZLlXJ3.mjs');
1155
1155
  let machineId;
1156
1156
  const shareArgs = [];
1157
1157
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1202,14 +1202,14 @@ async function handleMachineCommand() {
1202
1202
  process.exit(1);
1203
1203
  }
1204
1204
  if (all) {
1205
- const { fleetExec } = await import('./fleet-Bzg3YxM4.mjs');
1205
+ const { fleetExec } = await import('./fleet-CbKnESdR.mjs');
1206
1206
  await fleetExec(command, { cwd });
1207
1207
  } else {
1208
- const { machineExec } = await import('./commands-CxfUr2Qr.mjs');
1208
+ const { machineExec } = await import('./commands-DEZLlXJ3.mjs');
1209
1209
  await machineExec(machineId, command, cwd);
1210
1210
  }
1211
1211
  } else if (machineSubcommand === "info") {
1212
- const { machineInfo } = await import('./commands-CxfUr2Qr.mjs');
1212
+ const { machineInfo } = await import('./commands-DEZLlXJ3.mjs');
1213
1213
  let machineId;
1214
1214
  for (let i = 1; i < machineArgs.length; i++) {
1215
1215
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1238,10 +1238,10 @@ async function handleMachineCommand() {
1238
1238
  console.error("Usage: svamp machine notify <message> [--level info|warning|error]");
1239
1239
  process.exit(1);
1240
1240
  }
1241
- const { machineNotify } = await import('./agentCommands-DUHUBzrj.mjs');
1241
+ const { machineNotify } = await import('./agentCommands-DefL1pIo.mjs');
1242
1242
  await machineNotify(message, level);
1243
1243
  } else if (machineSubcommand === "ls") {
1244
- const { machineLs } = await import('./commands-CxfUr2Qr.mjs');
1244
+ const { machineLs } = await import('./commands-DEZLlXJ3.mjs');
1245
1245
  let machineId;
1246
1246
  let showHidden = false;
1247
1247
  let path;
@@ -1307,26 +1307,26 @@ Examples:
1307
1307
  };
1308
1308
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1309
1309
  if (sub === "status") {
1310
- const { fleetStatus } = await import('./fleet-Bzg3YxM4.mjs');
1310
+ const { fleetStatus } = await import('./fleet-CbKnESdR.mjs');
1311
1311
  await fleetStatus();
1312
1312
  } else if (sub === "upgrade-claude") {
1313
- const { fleetUpgradeClaude } = await import('./fleet-Bzg3YxM4.mjs');
1313
+ const { fleetUpgradeClaude } = await import('./fleet-CbKnESdR.mjs');
1314
1314
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1315
1315
  } else if (sub === "upgrade-codex") {
1316
- const { fleetUpgradeCodex } = await import('./fleet-Bzg3YxM4.mjs');
1316
+ const { fleetUpgradeCodex } = await import('./fleet-CbKnESdR.mjs');
1317
1317
  await fleetUpgradeCodex({ version: flag("version", "-v") });
1318
1318
  } else if (sub === "upgrade-kimi") {
1319
- const { fleetUpgradeKimi } = await import('./fleet-Bzg3YxM4.mjs');
1319
+ const { fleetUpgradeKimi } = await import('./fleet-CbKnESdR.mjs');
1320
1320
  await fleetUpgradeKimi({ version: flag("version", "-v") });
1321
1321
  } else if (sub === "upgrade-svamp") {
1322
- const { fleetUpgradeSvamp } = await import('./fleet-Bzg3YxM4.mjs');
1322
+ const { fleetUpgradeSvamp } = await import('./fleet-CbKnESdR.mjs');
1323
1323
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self"), force: hasFlag("force") });
1324
1324
  } else if (sub === "daemon-restart") {
1325
- const { fleetDaemonRestart } = await import('./fleet-Bzg3YxM4.mjs');
1325
+ const { fleetDaemonRestart } = await import('./fleet-CbKnESdR.mjs');
1326
1326
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1327
1327
  } else if (sub === "push-skill") {
1328
1328
  const name = fleetArgs[1];
1329
- const { fleetPushSkill } = await import('./fleet-Bzg3YxM4.mjs');
1329
+ const { fleetPushSkill } = await import('./fleet-CbKnESdR.mjs');
1330
1330
  await fleetPushSkill(name);
1331
1331
  } else {
1332
1332
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1342,7 +1342,7 @@ async function handleSkillsCommand() {
1342
1342
  await printSkillsHelp();
1343
1343
  return;
1344
1344
  }
1345
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-Dt_MecCB.mjs');
1345
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BFlfbiey.mjs');
1346
1346
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1347
1347
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1348
1348
  if (!query) {
@@ -1389,7 +1389,7 @@ async function loginToHypha() {
1389
1389
  process.exit(1);
1390
1390
  }
1391
1391
  const anchor = anchorArg.replace(/\/+$/, "");
1392
- const { loadInstanceConfig } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.an; });
1392
+ const { loadInstanceConfig } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.an; });
1393
1393
  let cfg = null;
1394
1394
  try {
1395
1395
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1504,7 +1504,7 @@ async function logoutFromHypha() {
1504
1504
  } catch {
1505
1505
  }
1506
1506
  try {
1507
- const { clearInstanceConfigCache } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.an; });
1507
+ const { clearInstanceConfigCache } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.an; });
1508
1508
  clearInstanceConfigCache();
1509
1509
  } catch {
1510
1510
  }
@@ -1857,7 +1857,7 @@ async function applyClaudeAuthFlags(argv) {
1857
1857
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1858
1858
  );
1859
1859
  }
1860
- const mod = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aq; });
1860
+ const mod = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aq; });
1861
1861
  if (hasHypha) {
1862
1862
  let url;
1863
1863
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1911,7 +1911,7 @@ async function applyDaemonShareFlag(argv) {
1911
1911
  }
1912
1912
  }
1913
1913
  if (collected.length === 0) return;
1914
- const { updateEnvFile } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aq; });
1914
+ const { updateEnvFile } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aq; });
1915
1915
  const seen = /* @__PURE__ */ new Set();
1916
1916
  const deduped = collected.filter((e) => {
1917
1917
  const k = e.toLowerCase();
@@ -1944,7 +1944,7 @@ async function handleWiseAgentCommand(rest) {
1944
1944
  }
1945
1945
  });
1946
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(" ");
1947
- const { wiseAskCli } = await import('./commands-CxfUr2Qr.mjs');
1947
+ const { wiseAskCli } = await import('./commands-DEZLlXJ3.mjs');
1948
1948
  await wiseAskCli(machineId, message, sessionId, { json });
1949
1949
  return;
1950
1950
  }
@@ -1956,7 +1956,7 @@ async function handleWiseAgentCommand(rest) {
1956
1956
  }
1957
1957
  return void 0;
1958
1958
  };
1959
- const { runWiseVoiceCli } = await import('./headlessCli-DvJI9DRh.mjs');
1959
+ const { runWiseVoiceCli } = await import('./headlessCli-2wTVI-Kj.mjs');
1960
1960
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1961
1961
  return;
1962
1962
  }
@@ -1974,7 +1974,7 @@ async function handleWiseAgentCommand(rest) {
1974
1974
  const mode = valueOf(["--mode"]);
1975
1975
  const mission = valueOf(["--mission"]);
1976
1976
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1977
- const { wiseJoinMeetingCli } = await import('./commands-CxfUr2Qr.mjs');
1977
+ const { wiseJoinMeetingCli } = await import('./commands-DEZLlXJ3.mjs');
1978
1978
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1979
1979
  return;
1980
1980
  }
@@ -1986,7 +1986,7 @@ async function handleWiseAgentCommand(rest) {
1986
1986
  }
1987
1987
  return void 0;
1988
1988
  };
1989
- const { wiseLeaveMeetingCli } = await import('./commands-CxfUr2Qr.mjs');
1989
+ const { wiseLeaveMeetingCli } = await import('./commands-DEZLlXJ3.mjs');
1990
1990
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1991
1991
  return;
1992
1992
  }
@@ -2010,7 +2010,7 @@ async function handleWiseAgentCommand(rest) {
2010
2010
  }
2011
2011
  });
2012
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(" ");
2013
- const { wiseAnnounceCli } = await import('./commands-CxfUr2Qr.mjs');
2013
+ const { wiseAnnounceCli } = await import('./commands-DEZLlXJ3.mjs');
2014
2014
  await wiseAnnounceCli(machineId, text, sessionId, { json });
2015
2015
  return;
2016
2016
  }
@@ -2022,7 +2022,7 @@ async function handleWiseAgentCommand(rest) {
2022
2022
  }
2023
2023
  return void 0;
2024
2024
  };
2025
- const { wiseMeetingsCli } = await import('./commands-CxfUr2Qr.mjs');
2025
+ const { wiseMeetingsCli } = await import('./commands-DEZLlXJ3.mjs');
2026
2026
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
2027
2027
  return;
2028
2028
  }
@@ -2073,7 +2073,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2073
2073
  return;
2074
2074
  }
2075
2075
  const authArgs = rest.slice(1);
2076
- const mod = await import('./auth-DogM3PPm.mjs');
2076
+ const mod = await import('./auth-DLK3tc_f.mjs');
2077
2077
  let action;
2078
2078
  try {
2079
2079
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -2083,7 +2083,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2083
2083
  return;
2084
2084
  }
2085
2085
  if (action) {
2086
- const { updateEnvFile } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aq; });
2086
+ const { updateEnvFile } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aq; });
2087
2087
  const updates = mod.buildWiseAgentEnvUpdates(action);
2088
2088
  updateEnvFile(updates);
2089
2089
  for (const [k, v] of Object.entries(updates)) {
@@ -2097,7 +2097,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
2097
2097
  }
2098
2098
  async function handleDaemonAuthCommand(argv) {
2099
2099
  const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
2100
- const mod = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aq; });
2100
+ const mod = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aq; });
2101
2101
  if (sub === "--help" || sub === "-h" || sub === "help") {
2102
2102
  console.log(`
2103
2103
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2171,8 +2171,8 @@ one step: --use-hypha-proxy / --use-claude-login / --anthropic-base-url URL --an
2171
2171
  }
2172
2172
  async function handleDaemonCodexAuthCommand(argv) {
2173
2173
  const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
2174
- const { updateEnvFile } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aq; });
2175
- const { resolveCodexProvider } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.ar; });
2174
+ const { updateEnvFile } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aq; });
2175
+ const { resolveCodexProvider } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.ar; });
2176
2176
  const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
2177
2177
  if (sub === "--help" || sub === "-h" || sub === "help") {
2178
2178
  console.log(`
@@ -2258,8 +2258,8 @@ The generic LLM_API_BASE / LLM_API_KEY / LLM_MODEL env vars are also honored if
2258
2258
  }
2259
2259
  async function handleDaemonKimiAuthCommand(argv) {
2260
2260
  const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
2261
- const { updateEnvFile } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aq; });
2262
- const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.az; });
2261
+ const { updateEnvFile } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aq; });
2262
+ const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.az; });
2263
2263
  const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
2264
2264
  const PRESETS = {
2265
2265
  "use-moonshot": { provider: "moonshotai", base: "https://api.moonshot.ai/v1", label: "Moonshot AI (moonshotai)" },
@@ -2627,7 +2627,7 @@ Examples:
2627
2627
  async function printSkillsHelp() {
2628
2628
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2629
2629
  try {
2630
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BBBr4jkI.mjs').then(function (n) { return n.aB; });
2630
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CSV6OgQ8.mjs').then(function (n) { return n.aB; });
2631
2631
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2632
2632
  } catch {
2633
2633
  }
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import './run-BBBr4jkI.mjs';
1
+ import './run-CSV6OgQ8.mjs';
2
2
  import './serviceManager-hlOVxkhW.mjs';
3
- import './cli-PWoHWBkF.mjs';
3
+ import './cli-BCN1uAze.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
6
6
  import 'fs';