svamp-cli 0.2.201 → 0.2.202

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 (24) hide show
  1. package/dist/{agentCommands-GTjs0-bd.mjs → agentCommands-BMbdp3lO.mjs} +5 -5
  2. package/dist/{auth-DlFLX4-6.mjs → auth-DFV_MjVU.mjs} +1 -1
  3. package/dist/cli.mjs +60 -60
  4. package/dist/{commands-Ck4CJKJj.mjs → commands-BA8pUB80.mjs} +2 -2
  5. package/dist/{commands-Dt_wH1nx.mjs → commands-CVMpx7Ws.mjs} +5 -5
  6. package/dist/{commands-Cd7ddE3M.mjs → commands-CW1VrEei.mjs} +2 -2
  7. package/dist/{commands-BTBheEhB.mjs → commands-Cbg4_aEA.mjs} +1 -1
  8. package/dist/{commands-C3MUJCfD.mjs → commands-Ccbl9q_M.mjs} +44 -2
  9. package/dist/{commands-DVYsYjGX.mjs → commands-DfD7ACo-.mjs} +1 -1
  10. package/dist/{commands-DgB5FL1z.mjs → commands-DnTtqcre.mjs} +1 -1
  11. package/dist/{fleet-C62Zp0lV.mjs → fleet-Caxg-9CC.mjs} +1 -1
  12. package/dist/{frpc-BU4D6CVm.mjs → frpc-Sq_r6a9i.mjs} +1 -1
  13. package/dist/{headlessCli-BvduwnX7.mjs → headlessCli-CqDPtg1x.mjs} +2 -2
  14. package/dist/index.mjs +1 -1
  15. package/dist/{package-DOruOKn8.mjs → package-Df28hcfX.mjs} +2 -2
  16. package/dist/{rpc-BseJgkdY.mjs → rpc-BJKoRzGK.mjs} +1 -1
  17. package/dist/{rpc-Cma4983D.mjs → rpc-DXp0vpxD.mjs} +13 -1
  18. package/dist/{run-QARmBvde.mjs → run-B5xwuwIO.mjs} +1 -1
  19. package/dist/{run-BDeU-Me-.mjs → run-CsqoYIvO.mjs} +34 -13
  20. package/dist/{scheduler-CGC0HpQU.mjs → scheduler-CSYBbqjZ.mjs} +1 -1
  21. package/dist/{serveCommands-T4izXL9D.mjs → serveCommands-CHWW6Mon.mjs} +5 -5
  22. package/dist/{serveManager-D0ntyQRX.mjs → serveManager-CkEjrt25.mjs} +2 -2
  23. package/dist/{sideband-9SjzSHvn.mjs → sideband-BXQYf8dr.mjs} +1 -1
  24. package/package.json +2 -2
@@ -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 { y as shortId } from './run-BDeU-Me-.mjs';
5
+ import { A as shortId } from './run-CsqoYIvO.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-BDeU-Me-.mjs').then(function (n) { return n.a6; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.a8; });
100
100
  const desc = sanitizeDescription(description, 240);
101
101
  if (!desc) {
102
102
  console.error("Project description is empty.");
@@ -180,7 +180,7 @@ async function sessionBroadcast(action, args) {
180
180
  console.log(`Broadcast sent: ${action}`);
181
181
  }
182
182
  async function connectToMachineService() {
183
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
184
184
  return connectAndGetMachine();
185
185
  }
186
186
  function buildInboxMessage(args) {
@@ -258,7 +258,7 @@ async function inboxSend(targetSessionId, opts) {
258
258
  console.error("Message body is required.");
259
259
  process.exit(1);
260
260
  }
261
- const { connectAndResolveSession } = await import('./commands-DgB5FL1z.mjs');
261
+ const { connectAndResolveSession } = await import('./commands-DnTtqcre.mjs');
262
262
  let server;
263
263
  try {
264
264
  const { targetId, messageId } = await inboxSendCore(
@@ -312,7 +312,7 @@ async function inboxReply(messageId, body) {
312
312
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
313
313
  process.exit(1);
314
314
  }
315
- const { connectAndResolveSession } = await import('./commands-DgB5FL1z.mjs');
315
+ const { connectAndResolveSession } = await import('./commands-DnTtqcre.mjs');
316
316
  const { server: localServer, machine: localMachine } = await connectToMachineService();
317
317
  let localDisconnected = false;
318
318
  const disconnectLocal = async () => {
@@ -1,4 +1,4 @@
1
- import { N as resolveModel } from './run-BDeU-Me-.mjs';
1
+ import { P as resolveModel } from './run-CsqoYIvO.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-BDeU-Me-.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CsqoYIvO.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
@@ -34,7 +34,7 @@ const subcommand = args[0];
34
34
  let daemonSubcommand = args[1];
35
35
  async function main() {
36
36
  try {
37
- const { getLoadedConfig } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ac; });
37
+ const { getLoadedConfig } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ae; });
38
38
  getLoadedConfig();
39
39
  } catch {
40
40
  }
@@ -51,7 +51,7 @@ async function main() {
51
51
  console.error(`svamp daemon restart: ${err.message || err}`);
52
52
  process.exit(1);
53
53
  }
54
- const { restartDaemon } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ae; });
54
+ const { restartDaemon } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ag; });
55
55
  await restartDaemon();
56
56
  process.exit(0);
57
57
  }
@@ -344,7 +344,7 @@ async function main() {
344
344
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
345
345
  process.exit(1);
346
346
  }
347
- const { handleServiceCommand } = await import('./commands-Dt_wH1nx.mjs');
347
+ const { handleServiceCommand } = await import('./commands-CVMpx7Ws.mjs');
348
348
  await handleServiceCommand();
349
349
  } else if (subcommand === "serve") {
350
350
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -352,7 +352,7 @@ async function main() {
352
352
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
353
353
  process.exit(1);
354
354
  }
355
- const { handleServeCommand } = await import('./serveCommands-T4izXL9D.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-CHWW6Mon.mjs');
356
356
  await handleServeCommand();
357
357
  process.exit(0);
358
358
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -361,7 +361,7 @@ async function main() {
361
361
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
362
362
  process.exit(1);
363
363
  }
364
- const { processCommand } = await import('./commands-Cd7ddE3M.mjs');
364
+ const { processCommand } = await import('./commands-CW1VrEei.mjs');
365
365
  let machineId;
366
366
  const processArgs = args.slice(1);
367
367
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -375,18 +375,18 @@ async function main() {
375
375
  }), machineId);
376
376
  process.exit(0);
377
377
  } else if (subcommand === "issue" || subcommand === "issues") {
378
- const { issueCommand } = await import('./commands-C3MUJCfD.mjs');
378
+ const { issueCommand } = await import('./commands-Ccbl9q_M.mjs');
379
379
  await issueCommand(args.slice(1));
380
380
  process.exit(0);
381
381
  } else if (subcommand === "workflow" || subcommand === "workflows") {
382
- const { workflowCommand } = await import('./commands-BTBheEhB.mjs');
382
+ const { workflowCommand } = await import('./commands-Cbg4_aEA.mjs');
383
383
  await workflowCommand(args.slice(1));
384
384
  process.exit(0);
385
385
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
386
386
  await handleWiseAgentCommand(args.slice(1));
387
387
  process.exit(0);
388
388
  } else if (subcommand === "feature" || subcommand === "crew") {
389
- const { crewCommand } = await import('./commands-Ck4CJKJj.mjs');
389
+ const { crewCommand } = await import('./commands-BA8pUB80.mjs');
390
390
  await crewCommand(args.slice(1));
391
391
  process.exit(0);
392
392
  } else if (subcommand === "--help" || subcommand === "-h") {
@@ -394,7 +394,7 @@ async function main() {
394
394
  } else if (!subcommand || subcommand === "start") {
395
395
  await handleInteractiveCommand();
396
396
  } else if (subcommand === "--version" || subcommand === "-v") {
397
- const pkg = await import('./package-DOruOKn8.mjs').catch(() => ({ default: { version: "unknown" } }));
397
+ const pkg = await import('./package-Df28hcfX.mjs').catch(() => ({ default: { version: "unknown" } }));
398
398
  console.log(`svamp version: ${pkg.default.version}`);
399
399
  } else {
400
400
  console.error(`Unknown command: ${subcommand}`);
@@ -403,7 +403,7 @@ async function main() {
403
403
  }
404
404
  }
405
405
  async function handleInteractiveCommand() {
406
- const { runInteractive } = await import('./run-QARmBvde.mjs');
406
+ const { runInteractive } = await import('./run-B5xwuwIO.mjs');
407
407
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
408
408
  let directory = process.cwd();
409
409
  let resumeSessionId;
@@ -448,7 +448,7 @@ async function handleAgentCommand() {
448
448
  return;
449
449
  }
450
450
  if (agentArgs[0] === "list") {
451
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a9; });
451
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ab; });
452
452
  console.log("Known agents:");
453
453
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
454
454
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -460,7 +460,7 @@ async function handleAgentCommand() {
460
460
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
461
461
  return;
462
462
  }
463
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a9; });
463
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ab; });
464
464
  let cwd = process.cwd();
465
465
  const filteredArgs = [];
466
466
  for (let i = 0; i < agentArgs.length; i++) {
@@ -484,12 +484,12 @@ async function handleAgentCommand() {
484
484
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
485
485
  let backend;
486
486
  if (KNOWN_MCP_AGENTS[config.agentName]) {
487
- const { CodexMcpBackend } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.aa; });
487
+ const { CodexMcpBackend } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ac; });
488
488
  backend = new CodexMcpBackend({ cwd, log: logFn });
489
489
  } else {
490
- const { AcpBackend } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a8; });
491
- const { GeminiTransport } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ab; });
492
- const { DefaultTransport } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a7; });
490
+ const { AcpBackend } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.aa; });
491
+ const { GeminiTransport } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ad; });
492
+ const { DefaultTransport } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.a9; });
493
493
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
494
494
  backend = new AcpBackend({
495
495
  agentName: config.agentName,
@@ -616,7 +616,7 @@ async function handleSessionCommand() {
616
616
  process.exit(1);
617
617
  }
618
618
  }
619
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-DgB5FL1z.mjs');
619
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-DnTtqcre.mjs');
620
620
  const parseFlagStr = (flag, shortFlag) => {
621
621
  for (let i = 1; i < sessionArgs.length; i++) {
622
622
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -684,7 +684,7 @@ async function handleSessionCommand() {
684
684
  allowDomain.push(sessionArgs[++i]);
685
685
  }
686
686
  }
687
- const { parseShareArg } = await import('./commands-DgB5FL1z.mjs');
687
+ const { parseShareArg } = await import('./commands-DnTtqcre.mjs');
688
688
  const shareEntries = share.map((s) => parseShareArg(s));
689
689
  await sessionSpawn(agent, dir, targetMachineId, {
690
690
  message,
@@ -769,7 +769,7 @@ async function handleSessionCommand() {
769
769
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
770
770
  process.exit(1);
771
771
  }
772
- const { sessionEditMessage } = await import('./commands-DgB5FL1z.mjs');
772
+ const { sessionEditMessage } = await import('./commands-DnTtqcre.mjs');
773
773
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
774
774
  } else if (sessionSubcommand === "refine") {
775
775
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -777,7 +777,7 @@ async function handleSessionCommand() {
777
777
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
778
778
  process.exit(1);
779
779
  }
780
- const { sessionRefineLastReply } = await import('./commands-DgB5FL1z.mjs');
780
+ const { sessionRefineLastReply } = await import('./commands-DnTtqcre.mjs');
781
781
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
782
782
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
783
783
  if (!sessionArgs[1]) {
@@ -785,7 +785,7 @@ async function handleSessionCommand() {
785
785
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
786
786
  process.exit(1);
787
787
  }
788
- const { sessionUndoEdit } = await import('./commands-DgB5FL1z.mjs');
788
+ const { sessionUndoEdit } = await import('./commands-DnTtqcre.mjs');
789
789
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
790
790
  } else if (sessionSubcommand === "query") {
791
791
  const dir = sessionArgs[1];
@@ -795,7 +795,7 @@ async function handleSessionCommand() {
795
795
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
796
796
  process.exit(1);
797
797
  }
798
- const { sessionQuery } = await import('./commands-DgB5FL1z.mjs');
798
+ const { sessionQuery } = await import('./commands-DnTtqcre.mjs');
799
799
  await sessionQuery(dir, prompt, targetMachineId, {
800
800
  timeout: parseFlagInt("--timeout"),
801
801
  json: hasFlag("--json"),
@@ -828,7 +828,7 @@ async function handleSessionCommand() {
828
828
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
829
829
  process.exit(1);
830
830
  }
831
- const { sessionApprove } = await import('./commands-DgB5FL1z.mjs');
831
+ const { sessionApprove } = await import('./commands-DnTtqcre.mjs');
832
832
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
833
833
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
834
834
  json: hasFlag("--json")
@@ -838,7 +838,7 @@ async function handleSessionCommand() {
838
838
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
839
839
  process.exit(1);
840
840
  }
841
- const { sessionDeny } = await import('./commands-DgB5FL1z.mjs');
841
+ const { sessionDeny } = await import('./commands-DnTtqcre.mjs');
842
842
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
843
843
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
844
844
  json: hasFlag("--json")
@@ -880,7 +880,7 @@ async function handleSessionCommand() {
880
880
  console.error("Usage: svamp session set-title <title>");
881
881
  process.exit(1);
882
882
  }
883
- const { sessionSetTitle } = await import('./agentCommands-GTjs0-bd.mjs');
883
+ const { sessionSetTitle } = await import('./agentCommands-BMbdp3lO.mjs');
884
884
  await sessionSetTitle(title);
885
885
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
886
886
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -888,7 +888,7 @@ async function handleSessionCommand() {
888
888
  console.error("Usage: svamp session set-project-description <text>");
889
889
  process.exit(1);
890
890
  }
891
- const { sessionSetProjectDescription } = await import('./agentCommands-GTjs0-bd.mjs');
891
+ const { sessionSetProjectDescription } = await import('./agentCommands-BMbdp3lO.mjs');
892
892
  await sessionSetProjectDescription(desc);
893
893
  } else if (sessionSubcommand === "set-link") {
894
894
  const url = sessionArgs[1];
@@ -897,7 +897,7 @@ async function handleSessionCommand() {
897
897
  process.exit(1);
898
898
  }
899
899
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
900
- const { sessionSetLink } = await import('./agentCommands-GTjs0-bd.mjs');
900
+ const { sessionSetLink } = await import('./agentCommands-BMbdp3lO.mjs');
901
901
  await sessionSetLink(url, label);
902
902
  } else if (sessionSubcommand === "notify") {
903
903
  const message = sessionArgs[1];
@@ -906,7 +906,7 @@ async function handleSessionCommand() {
906
906
  process.exit(1);
907
907
  }
908
908
  const level = parseFlagStr("--level") || "info";
909
- const { sessionNotify } = await import('./agentCommands-GTjs0-bd.mjs');
909
+ const { sessionNotify } = await import('./agentCommands-BMbdp3lO.mjs');
910
910
  await sessionNotify(message, level);
911
911
  } else if (sessionSubcommand === "broadcast") {
912
912
  const action = sessionArgs[1];
@@ -914,7 +914,7 @@ async function handleSessionCommand() {
914
914
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
915
915
  process.exit(1);
916
916
  }
917
- const { sessionBroadcast } = await import('./agentCommands-GTjs0-bd.mjs');
917
+ const { sessionBroadcast } = await import('./agentCommands-BMbdp3lO.mjs');
918
918
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
919
919
  } else if (sessionSubcommand === "inbox") {
920
920
  const inboxSubcmd = sessionArgs[1];
@@ -925,7 +925,7 @@ async function handleSessionCommand() {
925
925
  process.exit(1);
926
926
  }
927
927
  if (agentSessionId) {
928
- const { inboxSend } = await import('./agentCommands-GTjs0-bd.mjs');
928
+ const { inboxSend } = await import('./agentCommands-BMbdp3lO.mjs');
929
929
  await inboxSend(sessionArgs[2], {
930
930
  body: sessionArgs[3],
931
931
  subject: parseFlagStr("--subject"),
@@ -940,7 +940,7 @@ async function handleSessionCommand() {
940
940
  }
941
941
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
942
942
  if (agentSessionId && !sessionArgs[2]) {
943
- const { inboxList } = await import('./agentCommands-GTjs0-bd.mjs');
943
+ const { inboxList } = await import('./agentCommands-BMbdp3lO.mjs');
944
944
  await inboxList({
945
945
  unread: hasFlag("--unread"),
946
946
  limit: parseFlagInt("--limit"),
@@ -962,7 +962,7 @@ async function handleSessionCommand() {
962
962
  process.exit(1);
963
963
  }
964
964
  if (agentSessionId && !sessionArgs[3]) {
965
- const { inboxList } = await import('./agentCommands-GTjs0-bd.mjs');
965
+ const { inboxList } = await import('./agentCommands-BMbdp3lO.mjs');
966
966
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
967
967
  } else if (sessionArgs[3]) {
968
968
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -972,7 +972,7 @@ async function handleSessionCommand() {
972
972
  }
973
973
  } else if (inboxSubcmd === "reply") {
974
974
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
975
- const { inboxReply } = await import('./agentCommands-GTjs0-bd.mjs');
975
+ const { inboxReply } = await import('./agentCommands-BMbdp3lO.mjs');
976
976
  await inboxReply(sessionArgs[2], sessionArgs[3]);
977
977
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
978
978
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1010,7 +1010,7 @@ async function handleMachineCommand() {
1010
1010
  return;
1011
1011
  }
1012
1012
  if (machineSubcommand === "share") {
1013
- const { machineShare } = await import('./commands-DgB5FL1z.mjs');
1013
+ const { machineShare } = await import('./commands-DnTtqcre.mjs');
1014
1014
  let machineId;
1015
1015
  const shareArgs = [];
1016
1016
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1061,14 +1061,14 @@ async function handleMachineCommand() {
1061
1061
  process.exit(1);
1062
1062
  }
1063
1063
  if (all) {
1064
- const { fleetExec } = await import('./fleet-C62Zp0lV.mjs');
1064
+ const { fleetExec } = await import('./fleet-Caxg-9CC.mjs');
1065
1065
  await fleetExec(command, { cwd });
1066
1066
  } else {
1067
- const { machineExec } = await import('./commands-DgB5FL1z.mjs');
1067
+ const { machineExec } = await import('./commands-DnTtqcre.mjs');
1068
1068
  await machineExec(machineId, command, cwd);
1069
1069
  }
1070
1070
  } else if (machineSubcommand === "info") {
1071
- const { machineInfo } = await import('./commands-DgB5FL1z.mjs');
1071
+ const { machineInfo } = await import('./commands-DnTtqcre.mjs');
1072
1072
  let machineId;
1073
1073
  for (let i = 1; i < machineArgs.length; i++) {
1074
1074
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1088,10 +1088,10 @@ async function handleMachineCommand() {
1088
1088
  level = machineArgs[++i];
1089
1089
  }
1090
1090
  }
1091
- const { machineNotify } = await import('./agentCommands-GTjs0-bd.mjs');
1091
+ const { machineNotify } = await import('./agentCommands-BMbdp3lO.mjs');
1092
1092
  await machineNotify(message, level);
1093
1093
  } else if (machineSubcommand === "ls") {
1094
- const { machineLs } = await import('./commands-DgB5FL1z.mjs');
1094
+ const { machineLs } = await import('./commands-DnTtqcre.mjs');
1095
1095
  let machineId;
1096
1096
  let showHidden = false;
1097
1097
  let path;
@@ -1147,20 +1147,20 @@ Examples:
1147
1147
  };
1148
1148
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1149
1149
  if (sub === "status") {
1150
- const { fleetStatus } = await import('./fleet-C62Zp0lV.mjs');
1150
+ const { fleetStatus } = await import('./fleet-Caxg-9CC.mjs');
1151
1151
  await fleetStatus();
1152
1152
  } else if (sub === "upgrade-claude") {
1153
- const { fleetUpgradeClaude } = await import('./fleet-C62Zp0lV.mjs');
1153
+ const { fleetUpgradeClaude } = await import('./fleet-Caxg-9CC.mjs');
1154
1154
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1155
1155
  } else if (sub === "upgrade-svamp") {
1156
- const { fleetUpgradeSvamp } = await import('./fleet-C62Zp0lV.mjs');
1156
+ const { fleetUpgradeSvamp } = await import('./fleet-Caxg-9CC.mjs');
1157
1157
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1158
1158
  } else if (sub === "daemon-restart") {
1159
- const { fleetDaemonRestart } = await import('./fleet-C62Zp0lV.mjs');
1159
+ const { fleetDaemonRestart } = await import('./fleet-Caxg-9CC.mjs');
1160
1160
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1161
1161
  } else if (sub === "push-skill") {
1162
1162
  const name = fleetArgs[1];
1163
- const { fleetPushSkill } = await import('./fleet-C62Zp0lV.mjs');
1163
+ const { fleetPushSkill } = await import('./fleet-Caxg-9CC.mjs');
1164
1164
  await fleetPushSkill(name);
1165
1165
  } else {
1166
1166
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1176,7 +1176,7 @@ async function handleSkillsCommand() {
1176
1176
  await printSkillsHelp();
1177
1177
  return;
1178
1178
  }
1179
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DVYsYjGX.mjs');
1179
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DfD7ACo-.mjs');
1180
1180
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1181
1181
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1182
1182
  if (!query) {
@@ -1223,7 +1223,7 @@ async function loginToHypha() {
1223
1223
  process.exit(1);
1224
1224
  }
1225
1225
  const anchor = anchorArg.replace(/\/+$/, "");
1226
- const { loadInstanceConfig } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ac; });
1226
+ const { loadInstanceConfig } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ae; });
1227
1227
  let cfg = null;
1228
1228
  try {
1229
1229
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1334,7 +1334,7 @@ async function logoutFromHypha() {
1334
1334
  } catch {
1335
1335
  }
1336
1336
  try {
1337
- const { clearInstanceConfigCache } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ac; });
1337
+ const { clearInstanceConfigCache } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.ae; });
1338
1338
  clearInstanceConfigCache();
1339
1339
  } catch {
1340
1340
  }
@@ -1672,7 +1672,7 @@ async function applyClaudeAuthFlags(argv) {
1672
1672
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1673
1673
  );
1674
1674
  }
1675
- const mod = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
1675
+ const mod = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.a7; });
1676
1676
  if (hasHypha) {
1677
1677
  let url;
1678
1678
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1726,7 +1726,7 @@ async function applyDaemonShareFlag(argv) {
1726
1726
  }
1727
1727
  }
1728
1728
  if (collected.length === 0) return;
1729
- const { updateEnvFile } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
1729
+ const { updateEnvFile } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.a7; });
1730
1730
  const seen = /* @__PURE__ */ new Set();
1731
1731
  const deduped = collected.filter((e) => {
1732
1732
  const k = e.toLowerCase();
@@ -1759,7 +1759,7 @@ async function handleWiseAgentCommand(rest) {
1759
1759
  }
1760
1760
  });
1761
1761
  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(" ");
1762
- const { wiseAskCli } = await import('./commands-DgB5FL1z.mjs');
1762
+ const { wiseAskCli } = await import('./commands-DnTtqcre.mjs');
1763
1763
  await wiseAskCli(machineId, message, sessionId, { json });
1764
1764
  return;
1765
1765
  }
@@ -1771,7 +1771,7 @@ async function handleWiseAgentCommand(rest) {
1771
1771
  }
1772
1772
  return void 0;
1773
1773
  };
1774
- const { runWiseVoiceCli } = await import('./headlessCli-BvduwnX7.mjs');
1774
+ const { runWiseVoiceCli } = await import('./headlessCli-CqDPtg1x.mjs');
1775
1775
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1776
1776
  return;
1777
1777
  }
@@ -1789,7 +1789,7 @@ async function handleWiseAgentCommand(rest) {
1789
1789
  const mode = valueOf(["--mode"]);
1790
1790
  const mission = valueOf(["--mission"]);
1791
1791
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1792
- const { wiseJoinMeetingCli } = await import('./commands-DgB5FL1z.mjs');
1792
+ const { wiseJoinMeetingCli } = await import('./commands-DnTtqcre.mjs');
1793
1793
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1794
1794
  return;
1795
1795
  }
@@ -1801,7 +1801,7 @@ async function handleWiseAgentCommand(rest) {
1801
1801
  }
1802
1802
  return void 0;
1803
1803
  };
1804
- const { wiseLeaveMeetingCli } = await import('./commands-DgB5FL1z.mjs');
1804
+ const { wiseLeaveMeetingCli } = await import('./commands-DnTtqcre.mjs');
1805
1805
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1806
1806
  return;
1807
1807
  }
@@ -1825,7 +1825,7 @@ async function handleWiseAgentCommand(rest) {
1825
1825
  }
1826
1826
  });
1827
1827
  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(" ");
1828
- const { wiseAnnounceCli } = await import('./commands-DgB5FL1z.mjs');
1828
+ const { wiseAnnounceCli } = await import('./commands-DnTtqcre.mjs');
1829
1829
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1830
1830
  return;
1831
1831
  }
@@ -1837,7 +1837,7 @@ async function handleWiseAgentCommand(rest) {
1837
1837
  }
1838
1838
  return void 0;
1839
1839
  };
1840
- const { wiseMeetingsCli } = await import('./commands-DgB5FL1z.mjs');
1840
+ const { wiseMeetingsCli } = await import('./commands-DnTtqcre.mjs');
1841
1841
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1842
1842
  return;
1843
1843
  }
@@ -1887,7 +1887,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1887
1887
  return;
1888
1888
  }
1889
1889
  const authArgs = rest.slice(1);
1890
- const mod = await import('./auth-DlFLX4-6.mjs');
1890
+ const mod = await import('./auth-DFV_MjVU.mjs');
1891
1891
  let action;
1892
1892
  try {
1893
1893
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1897,7 +1897,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1897
1897
  return;
1898
1898
  }
1899
1899
  if (action) {
1900
- const { updateEnvFile } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
1900
+ const { updateEnvFile } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.a7; });
1901
1901
  const updates = mod.buildWiseAgentEnvUpdates(action);
1902
1902
  updateEnvFile(updates);
1903
1903
  for (const [k, v] of Object.entries(updates)) {
@@ -1911,7 +1911,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1911
1911
  }
1912
1912
  async function handleDaemonAuthCommand(argv) {
1913
1913
  const sub = (argv[0] || "status").toLowerCase();
1914
- const mod = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
1914
+ const mod = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.a7; });
1915
1915
  if (sub === "--help" || sub === "-h" || sub === "help") {
1916
1916
  console.log(`
1917
1917
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2224,7 +2224,7 @@ Examples:
2224
2224
  async function printSkillsHelp() {
2225
2225
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2226
2226
  try {
2227
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ad; });
2227
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CsqoYIvO.mjs').then(function (n) { return n.af; });
2228
2228
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2229
2229
  } catch {
2230
2230
  }
@@ -1,8 +1,8 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { resolve } from 'node:path';
3
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-DgB5FL1z.mjs';
3
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-DnTtqcre.mjs';
4
4
  import { execSync } from 'node:child_process';
5
- import { u as updateIssue, o as addComment, p as addIssue, y as shortId } from './run-BDeU-Me-.mjs';
5
+ import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-CsqoYIvO.mjs';
6
6
  import 'node:os';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -58,7 +58,7 @@ async function serviceExpose(args) {
58
58
  process.exit(1);
59
59
  }
60
60
  if (foreground) {
61
- const { runFrpcTunnel } = await import('./frpc-BU4D6CVm.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-Sq_r6a9i.mjs');
62
62
  await runFrpcTunnel(name, ports, void 0, {
63
63
  group,
64
64
  groupKey,
@@ -68,7 +68,7 @@ async function serviceExpose(args) {
68
68
  });
69
69
  return;
70
70
  }
71
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
72
72
  const { server, machine } = await connectAndGetMachine();
73
73
  try {
74
74
  const status = await machine.tunnelStart({
@@ -123,7 +123,7 @@ async function serviceServe(args) {
123
123
  };
124
124
  process.on("SIGINT", cleanup);
125
125
  process.on("SIGTERM", cleanup);
126
- const { runFrpcTunnel } = await import('./frpc-BU4D6CVm.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-Sq_r6a9i.mjs');
127
127
  await runFrpcTunnel(name, [caddyPort]);
128
128
  } catch (err) {
129
129
  console.error(`Error serving directory: ${err.message}`);
@@ -132,7 +132,7 @@ async function serviceServe(args) {
132
132
  }
133
133
  async function serviceList(_args) {
134
134
  try {
135
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
136
136
  const { server, machine } = await connectAndGetMachine();
137
137
  try {
138
138
  const tunnels = await machine.tunnelList({});
@@ -172,7 +172,7 @@ async function serviceDelete(args) {
172
172
  process.exit(1);
173
173
  }
174
174
  try {
175
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
175
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
176
176
  const { server, machine } = await connectAndGetMachine();
177
177
  try {
178
178
  await machine.tunnelStop({ name });
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-DgB5FL1z.mjs';
3
+ import { connectAndGetMachine } from './commands-DnTtqcre.mjs';
4
4
  import 'node:fs';
5
5
  import 'node:child_process';
6
6
  import 'node:path';
7
7
  import 'node:os';
8
- import './run-BDeU-Me-.mjs';
8
+ import './run-CsqoYIvO.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { m as resolveProjectRoot } from './run-BDeU-Me-.mjs';
2
+ import { m as resolveProjectRoot } from './run-CsqoYIvO.mjs';
3
3
  import { c as workflowSteps, s as setWorkflowEnabled, i as isWorkflowEnabled, r as removeWorkflow, g as getWorkflow, l as listWorkflows, a as saveWorkflow, b as rawWorkflow } from './store-BTs0H_y0.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
@@ -1,5 +1,5 @@
1
1
  import { execSync } from 'node:child_process';
2
- import { m as resolveProjectRoot, t as searchIssues, q as listIssues, o as addComment, u as updateIssue, n as getIssue, v as isVisibleTo, x as summarize, p as addIssue } from './run-BDeU-Me-.mjs';
2
+ import { m as resolveProjectRoot, w as searchIssues, v as listIssues, o as resumeIssue, p as pauseIssue, q as addComment, u as updateIssue, n as getIssue, x as isVisibleTo, z as summarize, t as addIssue } from './run-CsqoYIvO.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
5
5
  import 'fs';
@@ -24,8 +24,14 @@ import 'node:util';
24
24
  const STATUS_GLYPH = {
25
25
  ready: "\u25C9",
26
26
  in_progress: "\u25D0",
27
+ paused: "\u23F8",
27
28
  archived: "\u25A3"
28
29
  };
30
+ function allFlags(args, name) {
31
+ const out = [];
32
+ for (let i = 0; i < args.length; i++) if (args[i] === name && i + 1 < args.length) out.push(args[++i]);
33
+ return out;
34
+ }
29
35
  function flag(args, name) {
30
36
  const i = args.indexOf(name);
31
37
  return i !== -1 && i + 1 < args.length ? args[i + 1] : void 0;
@@ -293,6 +299,37 @@ ${tail}
293
299
  ok(updated, `Commented on #${updated.id}`);
294
300
  break;
295
301
  }
302
+ case "pause": {
303
+ const id = positional(rest)[0];
304
+ if (!id) {
305
+ console.error('usage: svamp issue pause <id> [--question "\u2026"] [--option "A" --option "B"]');
306
+ process.exit(1);
307
+ }
308
+ const question = flag(rest, "--question");
309
+ const options = allFlags(rest, "--option");
310
+ const updated = pauseIssue(root, id, question ? { text: question, options } : void 0);
311
+ if (!updated) {
312
+ console.error(`Issue not found: ${id}`);
313
+ process.exit(1);
314
+ }
315
+ ok(updated, `Paused #${updated.id}${question ? ` \u2014 asked: ${question}` : ""}`);
316
+ break;
317
+ }
318
+ case "resume": {
319
+ const id = positional(rest)[0];
320
+ if (!id) {
321
+ console.error('usage: svamp issue resume <id> [--answer "\u2026"]');
322
+ process.exit(1);
323
+ }
324
+ const answer = flag(rest, "--answer") || positional(rest)[1];
325
+ const updated = resumeIssue(root, id, answer);
326
+ if (!updated) {
327
+ console.error(`Issue not found: ${id}`);
328
+ process.exit(1);
329
+ }
330
+ ok(updated, `Resumed #${updated.id}`);
331
+ break;
332
+ }
296
333
  case "pending": {
297
334
  const mine = flag(rest, "--session") || (has(rest, "--mine") ? sessionId : null);
298
335
  const inScope = (i) => !mine || isVisibleTo(i, mine);
@@ -361,7 +398,12 @@ ${tail}
361
398
  " NEVER close an issue that isn't genuinely resolved.",
362
399
  " CONVERGE TO MAIN: if an issue used an isolated branch/worktree, merge it back to `main` (and remove",
363
400
  " the worktree) BEFORE closing \u2014 never leave unmerged branches.",
364
- " Keep going until `svamp issue pending --session <id>` is empty."
401
+ " BLOCKED ON THE USER? Do NOT churn. PAUSE the issue with the question (and options, if any):",
402
+ ' svamp issue pause <id> --question "\u2026" [--option "A" --option "B"]',
403
+ " A paused issue is EXCLUDED from `pending`, so the loop can STOP cleanly instead of re-running on",
404
+ " something only the user can unblock. The user answers (the app renders the options as buttons) \u2192",
405
+ ' the issue resumes (`svamp issue resume <id> [--answer "\u2026"]`) and you pick it up again.',
406
+ " Keep going until `svamp issue pending --session <id>` is empty (paused issues don't count)."
365
407
  ].join("\n"));
366
408
  } else {
367
409
  out("usage: svamp issue guide <triage|work>");
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { D as parseFrontmatter, E as getSkillsServer, F as getSkillsWorkspaceName, G as getSkillsCollectionName, H as fetchWithTimeout, I as searchSkills, J as SKILLS_DIR, K as getSkillInfo, L as downloadSkillFile, M as listSkillFiles } from './run-BDeU-Me-.mjs';
4
+ import { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-CsqoYIvO.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { execSync } from 'node:child_process';
3
3
  import { basename, resolve, join, isAbsolute } from 'node:path';
4
4
  import os from 'node:os';
5
- import { O as formatHandle, P as normalizeAllowedUser, Q as loadSecurityContextConfig, T as resolveSecurityContext, U as buildSecurityContextFromFlags, V as mergeSecurityContexts, c as connectToHypha, W as buildSessionShareUrl, X as computeOutboundHop, y as shortId, Y as buildMachineShareUrl, Z as parseHandle, _ as handleMatchesMetadata } from './run-BDeU-Me-.mjs';
5
+ import { Q as formatHandle, T as normalizeAllowedUser, U as loadSecurityContextConfig, V as resolveSecurityContext, W as buildSecurityContextFromFlags, X as mergeSecurityContexts, c as connectToHypha, Y as buildSessionShareUrl, Z as computeOutboundHop, A as shortId, _ as buildMachineShareUrl, $ as parseHandle, a0 as handleMatchesMetadata } from './run-CsqoYIvO.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
3
  import os from 'node:os';
4
- import { c as connectToHypha } from './run-BDeU-Me-.mjs';
4
+ import { c as connectToHypha } from './run-CsqoYIvO.mjs';
5
5
  import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-HydRNEt7.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
@@ -4,7 +4,7 @@ import { mkdirSync, writeFileSync, unlinkSync, existsSync, chmodSync, readFileSy
4
4
  import { join } from 'path';
5
5
  import { homedir, platform, arch } from 'os';
6
6
  import { randomUUID, createHash } from 'crypto';
7
- import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-BDeU-Me-.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-CsqoYIvO.mjs';
8
8
  import 'fs/promises';
9
9
  import 'url';
10
10
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { N as resolveModel, $ as describeMisconfiguration, a0 as buildMachineDeps } from './run-BDeU-Me-.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-9SjzSHvn.mjs';
1
+ import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-CsqoYIvO.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-BXQYf8dr.mjs';
3
3
  import { WebSocket } from 'ws';
4
4
  import { execSync, spawn } from 'child_process';
5
5
  import 'os';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as connectToHypha, a as createSessionStore, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, s as startDaemon, b as stopDaemon } from './run-BDeU-Me-.mjs';
1
+ export { c as connectToHypha, a as createSessionStore, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, s as startDaemon, b as stopDaemon } from './run-CsqoYIvO.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,5 +1,5 @@
1
1
  var name = "svamp-cli";
2
- var version = "0.2.201";
2
+ var version = "0.2.202";
3
3
  var description = "Svamp CLI — AI workspace daemon on Hypha Cloud";
4
4
  var author = "Amun AI AB";
5
5
  var license = "SEE LICENSE IN LICENSE";
@@ -19,7 +19,7 @@ var exports$1 = {
19
19
  var scripts = {
20
20
  build: "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
21
21
  typecheck: "tsc --noEmit",
22
- test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
22
+ test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-issue-pause.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
23
23
  "test:hypha": "node --no-warnings test/test-hypha-service.mjs",
24
24
  dev: "tsx src/cli.ts",
25
25
  "dev:daemon": "tsx src/cli.ts daemon start-sync",
@@ -1,4 +1,4 @@
1
- import { m as resolveProjectRoot } from './run-BDeU-Me-.mjs';
1
+ import { m as resolveProjectRoot } from './run-CsqoYIvO.mjs';
2
2
  import { g as getWorkflow, s as setWorkflowEnabled, r as removeWorkflow, a as saveWorkflow, b as rawWorkflow, l as listWorkflows } from './store-BTs0H_y0.mjs';
3
3
  import { g as getRun, l as listRuns, r as runWorkflow } from './runStore-CtptN7US.mjs';
4
4
  import 'os';
@@ -1,4 +1,4 @@
1
- import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues, v as isVisibleTo } from './run-BDeU-Me-.mjs';
1
+ import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as resumeIssue, p as pauseIssue, q as addComment, t as addIssue, v as listIssues, w as searchIssues, x as isVisibleTo } from './run-CsqoYIvO.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -115,6 +115,18 @@ function issueRpc(cwd, params, deps = {}) {
115
115
  notifyOwnerOnFollowUp(updated, text, params.session || null, deps);
116
116
  return updated;
117
117
  }
118
+ case "pause": {
119
+ const question = params.question ? { text: String(params.question), options: Array.isArray(params.options) ? params.options.map(String) : [] } : void 0;
120
+ const updated = pauseIssue(root, String(params.id), question);
121
+ if (!updated) throw new Error(`Issue not found: ${params.id}`);
122
+ if (question) notifyOwnerOnFollowUp(updated, `needs your input: ${question.text}`, params.session || null, deps);
123
+ return updated;
124
+ }
125
+ case "resume": {
126
+ const updated = resumeIssue(root, String(params.id), params.answer ? String(params.answer) : void 0);
127
+ if (!updated) throw new Error(`Issue not found: ${params.id}`);
128
+ return updated;
129
+ }
118
130
  case "status": {
119
131
  const status = STATUS_MAP[params.status];
120
132
  if (!status) throw new Error(`issue status: unknown status "${params.status}"`);
@@ -1,4 +1,4 @@
1
- import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a1 as applyClaudeProxyEnv, a2 as composeSessionId, a3 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a4 as generateHookSettings } from './run-BDeU-Me-.mjs';
1
+ import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a3 as applyClaudeProxyEnv, a4 as composeSessionId, a5 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a6 as generateHookSettings } from './run-CsqoYIvO.mjs';
2
2
  import os from 'node:os';
3
3
  import { resolve, join } from 'node:path';
4
4
  import { existsSync, readFileSync, watch } from 'node:fs';
@@ -2912,7 +2912,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
2912
2912
  const tunnels = handlers.tunnels;
2913
2913
  if (!tunnels) throw new Error("Tunnel management not available");
2914
2914
  if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
2915
- const { FrpcTunnel } = await import('./frpc-BU4D6CVm.mjs');
2915
+ const { FrpcTunnel } = await import('./frpc-Sq_r6a9i.mjs');
2916
2916
  const tunnel = new FrpcTunnel({
2917
2917
  name: params.name,
2918
2918
  ports: params.ports,
@@ -3359,7 +3359,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3359
3359
  }
3360
3360
  const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
3361
3361
  const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
3362
- const { toolsForRole } = await import('./sideband-9SjzSHvn.mjs');
3362
+ const { toolsForRole } = await import('./sideband-BXQYf8dr.mjs');
3363
3363
  const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
3364
3364
  return fmt(r2);
3365
3365
  }
@@ -3458,7 +3458,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3458
3458
  if (r.error || !r.sender) return { error: r.error || "unauthorized" };
3459
3459
  const callId = "call_" + Math.random().toString(16).slice(2, 12);
3460
3460
  const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
3461
- const { queryCore } = await import('./commands-DgB5FL1z.mjs');
3461
+ const { queryCore } = await import('./commands-DnTtqcre.mjs');
3462
3462
  const timeout = c.reply?.timeout_sec || 120;
3463
3463
  let result;
3464
3464
  try {
@@ -10389,9 +10389,9 @@ class ProcessSupervisor {
10389
10389
  function normalizeStatus(s) {
10390
10390
  if (s === "backlog") return "ready";
10391
10391
  if (s === "done") return "archived";
10392
- return s === "ready" || s === "in_progress" || s === "archived" ? s : "ready";
10392
+ return s === "ready" || s === "in_progress" || s === "paused" || s === "archived" ? s : "ready";
10393
10393
  }
10394
- const FIELD_ORDER = ["id", "title", "status", "scope", "labels", "verify", "disposition", "triaged", "branch", "session", "owner", "original", "created", "closed"];
10394
+ const FIELD_ORDER = ["id", "title", "status", "scope", "labels", "verify", "disposition", "triaged", "branch", "session", "owner", "original", "created", "closed", "question"];
10395
10395
  function resolveProjectRoot(start = process.cwd()) {
10396
10396
  let dir = start;
10397
10397
  for (let i = 0; i < 40; i++) {
@@ -10452,6 +10452,7 @@ function parseIssue(content) {
10452
10452
  original: fm.original ?? null,
10453
10453
  created: String(fm.created ?? (/* @__PURE__ */ new Date()).toISOString()),
10454
10454
  closed: fm.closed ?? null,
10455
+ question: fm.question && typeof fm.question === "object" ? fm.question : null,
10455
10456
  body: (m[2] || "").trim() || void 0
10456
10457
  };
10457
10458
  }
@@ -10559,6 +10560,26 @@ ${text.trim()}`;
10559
10560
  const body = (cur.body ? cur.body.replace(/\s+$/, "") : "") + entry;
10560
10561
  return updateIssue(projectRoot, id, { body });
10561
10562
  }
10563
+ function pauseIssue(projectRoot, id, question) {
10564
+ const cur = getIssue(projectRoot, id);
10565
+ if (!cur) return null;
10566
+ const q = question?.text ? { text: question.text.trim(), options: (question.options || []).map((o) => String(o).trim()).filter(Boolean), askedAt: (/* @__PURE__ */ new Date()).toISOString() } : null;
10567
+ if (q) {
10568
+ const optLine = q.options && q.options.length ? `
10569
+ Options: ${q.options.join(" \xB7 ")}` : "";
10570
+ addComment(projectRoot, id, `\u23F8 Paused \u2014 needs your input: ${q.text}${optLine}`);
10571
+ } else {
10572
+ addComment(projectRoot, id, "\u23F8 Paused \u2014 waiting on your input.");
10573
+ }
10574
+ return updateIssue(projectRoot, id, { status: "paused", question: q });
10575
+ }
10576
+ function resumeIssue(projectRoot, id, answer) {
10577
+ const cur = getIssue(projectRoot, id);
10578
+ if (!cur) return null;
10579
+ if (answer && answer.trim()) addComment(projectRoot, id, `\u25B6 Resumed \u2014 your answer: ${answer.trim()}`);
10580
+ else addComment(projectRoot, id, "\u25B6 Resumed.");
10581
+ return updateIssue(projectRoot, id, { status: "in_progress", question: null });
10582
+ }
10562
10583
  function routeCrewVerdict(projectRoot, childSessionId, v) {
10563
10584
  const linked = listIssues(projectRoot, { includeArchived: true }).find((i) => i.disposition === "crew" && i.session === childSessionId);
10564
10585
  if (!linked) return null;
@@ -12101,7 +12122,7 @@ async function startDaemon(options) {
12101
12122
  saveExposedTunnels(list);
12102
12123
  }
12103
12124
  async function createExposedTunnel(spec) {
12104
- const { FrpcTunnel } = await import('./frpc-BU4D6CVm.mjs');
12125
+ const { FrpcTunnel } = await import('./frpc-Sq_r6a9i.mjs');
12105
12126
  const tunnel = new FrpcTunnel({
12106
12127
  name: spec.name,
12107
12128
  ports: spec.ports,
@@ -12121,7 +12142,7 @@ async function startDaemon(options) {
12121
12142
  return tunnel;
12122
12143
  }
12123
12144
  const tunnelRecreateState = /* @__PURE__ */ new Map();
12124
- const { ServeManager } = await import('./serveManager-D0ntyQRX.mjs');
12145
+ const { ServeManager } = await import('./serveManager-CkEjrt25.mjs');
12125
12146
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
12126
12147
  ensureAutoInstalledSkills(logger).catch(() => {
12127
12148
  });
@@ -13985,11 +14006,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
13985
14006
  });
13986
14007
  },
13987
14008
  onIssue: async (params) => {
13988
- const { issueRpc } = await import('./rpc-Cma4983D.mjs');
14009
+ const { issueRpc } = await import('./rpc-DXp0vpxD.mjs');
13989
14010
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
13990
14011
  },
13991
14012
  onWorkflow: async (params) => {
13992
- const { workflowRpc } = await import('./rpc-BseJgkdY.mjs');
14013
+ const { workflowRpc } = await import('./rpc-BJKoRzGK.mjs');
13993
14014
  return workflowRpc(params?.cwd || directory, params || {});
13994
14015
  },
13995
14016
  onRipgrep: async (args, cwd) => {
@@ -14499,11 +14520,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14499
14520
  });
14500
14521
  },
14501
14522
  onIssue: async (params) => {
14502
- const { issueRpc } = await import('./rpc-Cma4983D.mjs');
14523
+ const { issueRpc } = await import('./rpc-DXp0vpxD.mjs');
14503
14524
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
14504
14525
  },
14505
14526
  onWorkflow: async (params) => {
14506
- const { workflowRpc } = await import('./rpc-BseJgkdY.mjs');
14527
+ const { workflowRpc } = await import('./rpc-BJKoRzGK.mjs');
14507
14528
  return workflowRpc(params?.cwd || directory, params || {});
14508
14529
  },
14509
14530
  onRipgrep: async (args, cwd) => {
@@ -15288,7 +15309,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
15288
15309
  const PING_TIMEOUT_MS = 15e3;
15289
15310
  const POST_RECONNECT_GRACE_MS = 2e4;
15290
15311
  const RECONNECT_JITTER_MS = 2500;
15291
- const { WorkflowScheduler } = await import('./scheduler-CGC0HpQU.mjs');
15312
+ const { WorkflowScheduler } = await import('./scheduler-CSYBbqjZ.mjs');
15292
15313
  const workflowScheduler = new WorkflowScheduler({
15293
15314
  projectRoots: () => {
15294
15315
  const dirs = /* @__PURE__ */ new Set();
@@ -15867,4 +15888,4 @@ var run = /*#__PURE__*/Object.freeze({
15867
15888
  writeStopMarker: writeStopMarker
15868
15889
  });
15869
15890
 
15870
- export { describeMisconfiguration as $, buildMachineInstructions as A, machineToolsForRole as B, buildMachineTools as C, parseFrontmatter as D, getSkillsServer as E, getSkillsWorkspaceName as F, getSkillsCollectionName as G, fetchWithTimeout as H, searchSkills as I, SKILLS_DIR as J, getSkillInfo as K, downloadSkillFile as L, listSkillFiles as M, resolveModel as N, formatHandle as O, normalizeAllowedUser as P, loadSecurityContextConfig as Q, READ_ONLY_TOOLS as R, ServeAuth as S, resolveSecurityContext as T, buildSecurityContextFromFlags as U, mergeSecurityContexts as V, buildSessionShareUrl as W, computeOutboundHop as X, buildMachineShareUrl as Y, parseHandle as Z, handleMatchesMetadata as _, createSessionStore as a, buildMachineDeps as a0, applyClaudeProxyEnv as a1, composeSessionId as a2, generateFriendlyName as a3, generateHookSettings as a4, claudeAuth as a5, projectInfo as a6, DefaultTransport$1 as a7, acpBackend as a8, acpAgentConfig as a9, codexMcpBackend as aa, GeminiTransport$1 as ab, instanceConfig as ac, api as ad, run as ae, stopDaemon as b, connectToHypha as c, daemonStatus as d, clearStopMarker as e, stopMarkerExists as f, getHyphaServerUrl$1 as g, getFrpsSubdomainHost as h, getFrpsServerPort as i, getFrpsServerAddr as j, getHyphaServerUrl as k, hasCookieToken as l, resolveProjectRoot as m, getIssue as n, addComment as o, addIssue as p, listIssues as q, registerMachineService as r, startDaemon as s, searchIssues as t, updateIssue as u, isVisibleTo as v, cronMatches as w, summarize as x, shortId as y, loadMachineContext as z };
15891
+ export { parseHandle as $, shortId as A, loadMachineContext as B, buildMachineInstructions as C, machineToolsForRole as D, buildMachineTools as E, parseFrontmatter as F, getSkillsServer as G, getSkillsWorkspaceName as H, getSkillsCollectionName as I, fetchWithTimeout as J, searchSkills as K, SKILLS_DIR as L, getSkillInfo as M, downloadSkillFile as N, listSkillFiles as O, resolveModel as P, formatHandle as Q, READ_ONLY_TOOLS as R, ServeAuth as S, normalizeAllowedUser as T, loadSecurityContextConfig as U, resolveSecurityContext as V, buildSecurityContextFromFlags as W, mergeSecurityContexts as X, buildSessionShareUrl as Y, computeOutboundHop as Z, buildMachineShareUrl as _, createSessionStore as a, handleMatchesMetadata as a0, describeMisconfiguration as a1, buildMachineDeps as a2, applyClaudeProxyEnv as a3, composeSessionId as a4, generateFriendlyName as a5, generateHookSettings as a6, claudeAuth as a7, projectInfo as a8, DefaultTransport$1 as a9, acpBackend as aa, acpAgentConfig as ab, codexMcpBackend as ac, GeminiTransport$1 as ad, instanceConfig as ae, api as af, run as ag, stopDaemon as b, connectToHypha as c, daemonStatus as d, clearStopMarker as e, stopMarkerExists as f, getHyphaServerUrl$1 as g, getFrpsSubdomainHost as h, getFrpsServerPort as i, getFrpsServerAddr as j, getHyphaServerUrl as k, hasCookieToken as l, resolveProjectRoot as m, getIssue as n, resumeIssue as o, pauseIssue as p, addComment as q, registerMachineService as r, startDaemon as s, addIssue as t, updateIssue as u, listIssues as v, searchIssues as w, isVisibleTo as x, cronMatches as y, summarize as z };
@@ -1,4 +1,4 @@
1
- import { m as resolveProjectRoot, w as cronMatches } from './run-BDeU-Me-.mjs';
1
+ import { m as resolveProjectRoot, y as cronMatches } from './run-CsqoYIvO.mjs';
2
2
  import { l as listWorkflows, i as isWorkflowEnabled, w as workflowCrons } from './store-BTs0H_y0.mjs';
3
3
  import { r as runWorkflow } from './runStore-CtptN7US.mjs';
4
4
  import 'os';
@@ -54,7 +54,7 @@ async function handleServeCommand() {
54
54
  }
55
55
  }
56
56
  async function serveAdd(args, machineId) {
57
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
58
58
  const pos = positionalArgs(args);
59
59
  const name = pos[0];
60
60
  if (!name) {
@@ -93,7 +93,7 @@ async function serveAdd(args, machineId) {
93
93
  }
94
94
  }
95
95
  async function serveApply(args, machineId) {
96
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
97
97
  const fs = await import('fs');
98
98
  const yaml = await import('yaml');
99
99
  const file = positionalArgs(args)[0];
@@ -182,7 +182,7 @@ async function serveApply(args, machineId) {
182
182
  }
183
183
  }
184
184
  async function serveRemove(args, machineId) {
185
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
186
186
  const pos = positionalArgs(args);
187
187
  const name = pos[0];
188
188
  if (!name) {
@@ -202,7 +202,7 @@ async function serveRemove(args, machineId) {
202
202
  }
203
203
  }
204
204
  async function serveList(args, machineId) {
205
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
206
206
  const all = hasFlag(args, "--all", "-a");
207
207
  const json = hasFlag(args, "--json");
208
208
  const sessionId = getFlag(args, "--session");
@@ -235,7 +235,7 @@ async function serveList(args, machineId) {
235
235
  }
236
236
  }
237
237
  async function serveInfo(machineId) {
238
- const { connectAndGetMachine } = await import('./commands-DgB5FL1z.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-DnTtqcre.mjs');
239
239
  const { machine, server } = await connectAndGetMachine(machineId);
240
240
  try {
241
241
  const info = await machine.serveInfo();
@@ -4,7 +4,7 @@ import * as fs from 'fs';
4
4
  import * as http from 'http';
5
5
  import * as net from 'net';
6
6
  import * as path from 'path';
7
- import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-BDeU-Me-.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-CsqoYIvO.mjs';
8
8
  import 'os';
9
9
  import 'fs/promises';
10
10
  import 'url';
@@ -733,7 +733,7 @@ class ServeManager {
733
733
  const mount = this.mounts.get(mountName);
734
734
  const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, buildLinkSubdomain(subdomainSafe, mount.linkToken)]]) : void 0;
735
735
  try {
736
- const { FrpcTunnel } = await import('./frpc-BU4D6CVm.mjs');
736
+ const { FrpcTunnel } = await import('./frpc-Sq_r6a9i.mjs');
737
737
  let tunnel;
738
738
  tunnel = new FrpcTunnel({
739
739
  name: tunnelName,
@@ -1,4 +1,4 @@
1
- import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-BDeU-Me-.mjs';
1
+ import { R as READ_ONLY_TOOLS, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-CsqoYIvO.mjs';
2
2
  import 'node:child_process';
3
3
  import 'os';
4
4
  import 'fs/promises';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svamp-cli",
3
- "version": "0.2.201",
3
+ "version": "0.2.202",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -20,7 +20,7 @@
20
20
  "scripts": {
21
21
  "build": "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
22
22
  "typecheck": "tsc --noEmit",
23
- "test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
23
+ "test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-issue-pause.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
24
24
  "test:hypha": "node --no-warnings test/test-hypha-service.mjs",
25
25
  "dev": "tsx src/cli.ts",
26
26
  "dev:daemon": "tsx src/cli.ts daemon start-sync",