svamp-cli 0.2.206 → 0.2.207

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-akIoZemu.mjs → agentCommands-BSaoLPO_.mjs} +5 -5
  2. package/dist/{auth-Dzf0cndq.mjs → auth-Behk8m8n.mjs} +1 -1
  3. package/dist/cli.mjs +60 -60
  4. package/dist/{commands-BRmWVCNf.mjs → commands-CI9WGg34.mjs} +1 -1
  5. package/dist/{commands-BfakuMvA.mjs → commands-CXrlYmu9.mjs} +2 -2
  6. package/dist/{commands-BPhgtKi2.mjs → commands-CaT6IgiY.mjs} +2 -2
  7. package/dist/{commands-8Rd6p4B4.mjs → commands-CqHcpDYQ.mjs} +1 -1
  8. package/dist/{commands-V6wL2BtU.mjs → commands-DvuFTSEF.mjs} +5 -5
  9. package/dist/{commands-Dp7BFqYl.mjs → commands-VFstSv8U.mjs} +1 -1
  10. package/dist/{commands-OMKB5-oS.mjs → commands-yMEYWNDW.mjs} +1 -1
  11. package/dist/{fleet-Ci190s0w.mjs → fleet-Evgqqw66.mjs} +1 -1
  12. package/dist/{frpc-H52IJYcb.mjs → frpc-_v1in_1L.mjs} +1 -1
  13. package/dist/{headlessCli-tLrOER4U.mjs → headlessCli-C3tETysU.mjs} +2 -2
  14. package/dist/index.mjs +1 -1
  15. package/dist/{package-MNPXOWOP.mjs → package-8HPAx9Ry.mjs} +1 -1
  16. package/dist/{rpc-BHUHF_Mv.mjs → rpc-BkpMe22P.mjs} +1 -1
  17. package/dist/{rpc-CFrVMETs.mjs → rpc-Ci-Ge4tu.mjs} +1 -1
  18. package/dist/{run-C9ZeF2iG.mjs → run-9H6Of0HT.mjs} +17 -14
  19. package/dist/{run-C4OsABqC.mjs → run-DBd-1Pll.mjs} +1 -1
  20. package/dist/{scheduler-ErjEISCv.mjs → scheduler-C7_ILALz.mjs} +1 -1
  21. package/dist/{serveCommands-feGogIWC.mjs → serveCommands-CBBsb9Ct.mjs} +5 -5
  22. package/dist/{serveManager-Be-R7R8_.mjs → serveManager-DLgPs76r.mjs} +2 -2
  23. package/dist/{sideband-cU4KDceu.mjs → sideband-_ZCZ7bLW.mjs} +1 -1
  24. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
2
2
  import { join, dirname } from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
5
- import { A as shortId } from './run-C9ZeF2iG.mjs';
5
+ import { A as shortId } from './run-9H6Of0HT.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-C9ZeF2iG.mjs').then(function (n) { return n.a8; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-9H6Of0HT.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-BRmWVCNf.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-BRmWVCNf.mjs');
261
+ const { connectAndResolveSession } = await import('./commands-CI9WGg34.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-BRmWVCNf.mjs');
315
+ const { connectAndResolveSession } = await import('./commands-CI9WGg34.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 { P as resolveModel } from './run-C9ZeF2iG.mjs';
1
+ import { P as resolveModel } from './run-9H6Of0HT.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-C9ZeF2iG.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-9H6Of0HT.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-C9ZeF2iG.mjs').then(function (n) { return n.ae; });
37
+ const { getLoadedConfig } = await import('./run-9H6Of0HT.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-C9ZeF2iG.mjs').then(function (n) { return n.ag; });
54
+ const { restartDaemon } = await import('./run-9H6Of0HT.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-V6wL2BtU.mjs');
347
+ const { handleServiceCommand } = await import('./commands-DvuFTSEF.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-feGogIWC.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-CBBsb9Ct.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-BPhgtKi2.mjs');
364
+ const { processCommand } = await import('./commands-CaT6IgiY.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-OMKB5-oS.mjs');
378
+ const { issueCommand } = await import('./commands-yMEYWNDW.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-8Rd6p4B4.mjs');
382
+ const { workflowCommand } = await import('./commands-CqHcpDYQ.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-BfakuMvA.mjs');
389
+ const { crewCommand } = await import('./commands-CXrlYmu9.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-MNPXOWOP.mjs').catch(() => ({ default: { version: "unknown" } }));
397
+ const pkg = await import('./package-8HPAx9Ry.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-C4OsABqC.mjs');
406
+ const { runInteractive } = await import('./run-DBd-1Pll.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-C9ZeF2iG.mjs').then(function (n) { return n.ab; });
451
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-9H6Of0HT.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-C9ZeF2iG.mjs').then(function (n) { return n.ab; });
463
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-9H6Of0HT.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-C9ZeF2iG.mjs').then(function (n) { return n.ac; });
487
+ const { CodexMcpBackend } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.ac; });
488
488
  backend = new CodexMcpBackend({ cwd, log: logFn });
489
489
  } else {
490
- const { AcpBackend } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.aa; });
491
- const { GeminiTransport } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ad; });
492
- const { DefaultTransport } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a9; });
490
+ const { AcpBackend } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.aa; });
491
+ const { GeminiTransport } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.ad; });
492
+ const { DefaultTransport } = await import('./run-9H6Of0HT.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-BRmWVCNf.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-CI9WGg34.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-BRmWVCNf.mjs');
687
+ const { parseShareArg } = await import('./commands-CI9WGg34.mjs');
688
688
  const shareEntries = share.map((s) => parseShareArg(s));
689
689
  await sessionSpawn(agent, dir, targetMachineId, {
690
690
  message,
@@ -771,7 +771,7 @@ async function handleSessionCommand() {
771
771
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
772
772
  process.exit(1);
773
773
  }
774
- const { sessionEditMessage } = await import('./commands-BRmWVCNf.mjs');
774
+ const { sessionEditMessage } = await import('./commands-CI9WGg34.mjs');
775
775
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
776
776
  } else if (sessionSubcommand === "refine") {
777
777
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -779,7 +779,7 @@ async function handleSessionCommand() {
779
779
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
780
780
  process.exit(1);
781
781
  }
782
- const { sessionRefineLastReply } = await import('./commands-BRmWVCNf.mjs');
782
+ const { sessionRefineLastReply } = await import('./commands-CI9WGg34.mjs');
783
783
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
784
784
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
785
785
  if (!sessionArgs[1]) {
@@ -787,7 +787,7 @@ async function handleSessionCommand() {
787
787
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
788
788
  process.exit(1);
789
789
  }
790
- const { sessionUndoEdit } = await import('./commands-BRmWVCNf.mjs');
790
+ const { sessionUndoEdit } = await import('./commands-CI9WGg34.mjs');
791
791
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
792
792
  } else if (sessionSubcommand === "query") {
793
793
  const dir = sessionArgs[1];
@@ -797,7 +797,7 @@ async function handleSessionCommand() {
797
797
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
798
798
  process.exit(1);
799
799
  }
800
- const { sessionQuery } = await import('./commands-BRmWVCNf.mjs');
800
+ const { sessionQuery } = await import('./commands-CI9WGg34.mjs');
801
801
  await sessionQuery(dir, prompt, targetMachineId, {
802
802
  timeout: parseFlagInt("--timeout"),
803
803
  json: hasFlag("--json"),
@@ -830,7 +830,7 @@ async function handleSessionCommand() {
830
830
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
831
831
  process.exit(1);
832
832
  }
833
- const { sessionApprove } = await import('./commands-BRmWVCNf.mjs');
833
+ const { sessionApprove } = await import('./commands-CI9WGg34.mjs');
834
834
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
835
835
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
836
836
  json: hasFlag("--json")
@@ -840,7 +840,7 @@ async function handleSessionCommand() {
840
840
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
841
841
  process.exit(1);
842
842
  }
843
- const { sessionDeny } = await import('./commands-BRmWVCNf.mjs');
843
+ const { sessionDeny } = await import('./commands-CI9WGg34.mjs');
844
844
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
845
845
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
846
846
  json: hasFlag("--json")
@@ -882,7 +882,7 @@ async function handleSessionCommand() {
882
882
  console.error("Usage: svamp session set-title <title>");
883
883
  process.exit(1);
884
884
  }
885
- const { sessionSetTitle } = await import('./agentCommands-akIoZemu.mjs');
885
+ const { sessionSetTitle } = await import('./agentCommands-BSaoLPO_.mjs');
886
886
  await sessionSetTitle(title);
887
887
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
888
888
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -890,7 +890,7 @@ async function handleSessionCommand() {
890
890
  console.error("Usage: svamp session set-project-description <text>");
891
891
  process.exit(1);
892
892
  }
893
- const { sessionSetProjectDescription } = await import('./agentCommands-akIoZemu.mjs');
893
+ const { sessionSetProjectDescription } = await import('./agentCommands-BSaoLPO_.mjs');
894
894
  await sessionSetProjectDescription(desc);
895
895
  } else if (sessionSubcommand === "set-link") {
896
896
  const url = sessionArgs[1];
@@ -899,7 +899,7 @@ async function handleSessionCommand() {
899
899
  process.exit(1);
900
900
  }
901
901
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
902
- const { sessionSetLink } = await import('./agentCommands-akIoZemu.mjs');
902
+ const { sessionSetLink } = await import('./agentCommands-BSaoLPO_.mjs');
903
903
  await sessionSetLink(url, label);
904
904
  } else if (sessionSubcommand === "notify") {
905
905
  const message = sessionArgs[1];
@@ -908,7 +908,7 @@ async function handleSessionCommand() {
908
908
  process.exit(1);
909
909
  }
910
910
  const level = parseFlagStr("--level") || "info";
911
- const { sessionNotify } = await import('./agentCommands-akIoZemu.mjs');
911
+ const { sessionNotify } = await import('./agentCommands-BSaoLPO_.mjs');
912
912
  await sessionNotify(message, level);
913
913
  } else if (sessionSubcommand === "broadcast") {
914
914
  const action = sessionArgs[1];
@@ -916,7 +916,7 @@ async function handleSessionCommand() {
916
916
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
917
917
  process.exit(1);
918
918
  }
919
- const { sessionBroadcast } = await import('./agentCommands-akIoZemu.mjs');
919
+ const { sessionBroadcast } = await import('./agentCommands-BSaoLPO_.mjs');
920
920
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
921
921
  } else if (sessionSubcommand === "inbox") {
922
922
  const inboxSubcmd = sessionArgs[1];
@@ -927,7 +927,7 @@ async function handleSessionCommand() {
927
927
  process.exit(1);
928
928
  }
929
929
  if (agentSessionId) {
930
- const { inboxSend } = await import('./agentCommands-akIoZemu.mjs');
930
+ const { inboxSend } = await import('./agentCommands-BSaoLPO_.mjs');
931
931
  await inboxSend(sessionArgs[2], {
932
932
  body: sessionArgs[3],
933
933
  subject: parseFlagStr("--subject"),
@@ -942,7 +942,7 @@ async function handleSessionCommand() {
942
942
  }
943
943
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
944
944
  if (agentSessionId && !sessionArgs[2]) {
945
- const { inboxList } = await import('./agentCommands-akIoZemu.mjs');
945
+ const { inboxList } = await import('./agentCommands-BSaoLPO_.mjs');
946
946
  await inboxList({
947
947
  unread: hasFlag("--unread"),
948
948
  limit: parseFlagInt("--limit"),
@@ -964,7 +964,7 @@ async function handleSessionCommand() {
964
964
  process.exit(1);
965
965
  }
966
966
  if (agentSessionId && !sessionArgs[3]) {
967
- const { inboxList } = await import('./agentCommands-akIoZemu.mjs');
967
+ const { inboxList } = await import('./agentCommands-BSaoLPO_.mjs');
968
968
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
969
969
  } else if (sessionArgs[3]) {
970
970
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -974,7 +974,7 @@ async function handleSessionCommand() {
974
974
  }
975
975
  } else if (inboxSubcmd === "reply") {
976
976
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
977
- const { inboxReply } = await import('./agentCommands-akIoZemu.mjs');
977
+ const { inboxReply } = await import('./agentCommands-BSaoLPO_.mjs');
978
978
  await inboxReply(sessionArgs[2], sessionArgs[3]);
979
979
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
980
980
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1012,7 +1012,7 @@ async function handleMachineCommand() {
1012
1012
  return;
1013
1013
  }
1014
1014
  if (machineSubcommand === "share") {
1015
- const { machineShare } = await import('./commands-BRmWVCNf.mjs');
1015
+ const { machineShare } = await import('./commands-CI9WGg34.mjs');
1016
1016
  let machineId;
1017
1017
  const shareArgs = [];
1018
1018
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1063,14 +1063,14 @@ async function handleMachineCommand() {
1063
1063
  process.exit(1);
1064
1064
  }
1065
1065
  if (all) {
1066
- const { fleetExec } = await import('./fleet-Ci190s0w.mjs');
1066
+ const { fleetExec } = await import('./fleet-Evgqqw66.mjs');
1067
1067
  await fleetExec(command, { cwd });
1068
1068
  } else {
1069
- const { machineExec } = await import('./commands-BRmWVCNf.mjs');
1069
+ const { machineExec } = await import('./commands-CI9WGg34.mjs');
1070
1070
  await machineExec(machineId, command, cwd);
1071
1071
  }
1072
1072
  } else if (machineSubcommand === "info") {
1073
- const { machineInfo } = await import('./commands-BRmWVCNf.mjs');
1073
+ const { machineInfo } = await import('./commands-CI9WGg34.mjs');
1074
1074
  let machineId;
1075
1075
  for (let i = 1; i < machineArgs.length; i++) {
1076
1076
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1090,10 +1090,10 @@ async function handleMachineCommand() {
1090
1090
  level = machineArgs[++i];
1091
1091
  }
1092
1092
  }
1093
- const { machineNotify } = await import('./agentCommands-akIoZemu.mjs');
1093
+ const { machineNotify } = await import('./agentCommands-BSaoLPO_.mjs');
1094
1094
  await machineNotify(message, level);
1095
1095
  } else if (machineSubcommand === "ls") {
1096
- const { machineLs } = await import('./commands-BRmWVCNf.mjs');
1096
+ const { machineLs } = await import('./commands-CI9WGg34.mjs');
1097
1097
  let machineId;
1098
1098
  let showHidden = false;
1099
1099
  let path;
@@ -1149,20 +1149,20 @@ Examples:
1149
1149
  };
1150
1150
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1151
1151
  if (sub === "status") {
1152
- const { fleetStatus } = await import('./fleet-Ci190s0w.mjs');
1152
+ const { fleetStatus } = await import('./fleet-Evgqqw66.mjs');
1153
1153
  await fleetStatus();
1154
1154
  } else if (sub === "upgrade-claude") {
1155
- const { fleetUpgradeClaude } = await import('./fleet-Ci190s0w.mjs');
1155
+ const { fleetUpgradeClaude } = await import('./fleet-Evgqqw66.mjs');
1156
1156
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1157
1157
  } else if (sub === "upgrade-svamp") {
1158
- const { fleetUpgradeSvamp } = await import('./fleet-Ci190s0w.mjs');
1158
+ const { fleetUpgradeSvamp } = await import('./fleet-Evgqqw66.mjs');
1159
1159
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1160
1160
  } else if (sub === "daemon-restart") {
1161
- const { fleetDaemonRestart } = await import('./fleet-Ci190s0w.mjs');
1161
+ const { fleetDaemonRestart } = await import('./fleet-Evgqqw66.mjs');
1162
1162
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1163
1163
  } else if (sub === "push-skill") {
1164
1164
  const name = fleetArgs[1];
1165
- const { fleetPushSkill } = await import('./fleet-Ci190s0w.mjs');
1165
+ const { fleetPushSkill } = await import('./fleet-Evgqqw66.mjs');
1166
1166
  await fleetPushSkill(name);
1167
1167
  } else {
1168
1168
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1178,7 +1178,7 @@ async function handleSkillsCommand() {
1178
1178
  await printSkillsHelp();
1179
1179
  return;
1180
1180
  }
1181
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-Dp7BFqYl.mjs');
1181
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-VFstSv8U.mjs');
1182
1182
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1183
1183
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1184
1184
  if (!query) {
@@ -1225,7 +1225,7 @@ async function loginToHypha() {
1225
1225
  process.exit(1);
1226
1226
  }
1227
1227
  const anchor = anchorArg.replace(/\/+$/, "");
1228
- const { loadInstanceConfig } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ae; });
1228
+ const { loadInstanceConfig } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.ae; });
1229
1229
  let cfg = null;
1230
1230
  try {
1231
1231
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1336,7 +1336,7 @@ async function logoutFromHypha() {
1336
1336
  } catch {
1337
1337
  }
1338
1338
  try {
1339
- const { clearInstanceConfigCache } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ae; });
1339
+ const { clearInstanceConfigCache } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.ae; });
1340
1340
  clearInstanceConfigCache();
1341
1341
  } catch {
1342
1342
  }
@@ -1674,7 +1674,7 @@ async function applyClaudeAuthFlags(argv) {
1674
1674
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1675
1675
  );
1676
1676
  }
1677
- const mod = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
1677
+ const mod = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.a7; });
1678
1678
  if (hasHypha) {
1679
1679
  let url;
1680
1680
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1728,7 +1728,7 @@ async function applyDaemonShareFlag(argv) {
1728
1728
  }
1729
1729
  }
1730
1730
  if (collected.length === 0) return;
1731
- const { updateEnvFile } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
1731
+ const { updateEnvFile } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.a7; });
1732
1732
  const seen = /* @__PURE__ */ new Set();
1733
1733
  const deduped = collected.filter((e) => {
1734
1734
  const k = e.toLowerCase();
@@ -1761,7 +1761,7 @@ async function handleWiseAgentCommand(rest) {
1761
1761
  }
1762
1762
  });
1763
1763
  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(" ");
1764
- const { wiseAskCli } = await import('./commands-BRmWVCNf.mjs');
1764
+ const { wiseAskCli } = await import('./commands-CI9WGg34.mjs');
1765
1765
  await wiseAskCli(machineId, message, sessionId, { json });
1766
1766
  return;
1767
1767
  }
@@ -1773,7 +1773,7 @@ async function handleWiseAgentCommand(rest) {
1773
1773
  }
1774
1774
  return void 0;
1775
1775
  };
1776
- const { runWiseVoiceCli } = await import('./headlessCli-tLrOER4U.mjs');
1776
+ const { runWiseVoiceCli } = await import('./headlessCli-C3tETysU.mjs');
1777
1777
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1778
1778
  return;
1779
1779
  }
@@ -1791,7 +1791,7 @@ async function handleWiseAgentCommand(rest) {
1791
1791
  const mode = valueOf(["--mode"]);
1792
1792
  const mission = valueOf(["--mission"]);
1793
1793
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1794
- const { wiseJoinMeetingCli } = await import('./commands-BRmWVCNf.mjs');
1794
+ const { wiseJoinMeetingCli } = await import('./commands-CI9WGg34.mjs');
1795
1795
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1796
1796
  return;
1797
1797
  }
@@ -1803,7 +1803,7 @@ async function handleWiseAgentCommand(rest) {
1803
1803
  }
1804
1804
  return void 0;
1805
1805
  };
1806
- const { wiseLeaveMeetingCli } = await import('./commands-BRmWVCNf.mjs');
1806
+ const { wiseLeaveMeetingCli } = await import('./commands-CI9WGg34.mjs');
1807
1807
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1808
1808
  return;
1809
1809
  }
@@ -1827,7 +1827,7 @@ async function handleWiseAgentCommand(rest) {
1827
1827
  }
1828
1828
  });
1829
1829
  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(" ");
1830
- const { wiseAnnounceCli } = await import('./commands-BRmWVCNf.mjs');
1830
+ const { wiseAnnounceCli } = await import('./commands-CI9WGg34.mjs');
1831
1831
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1832
1832
  return;
1833
1833
  }
@@ -1839,7 +1839,7 @@ async function handleWiseAgentCommand(rest) {
1839
1839
  }
1840
1840
  return void 0;
1841
1841
  };
1842
- const { wiseMeetingsCli } = await import('./commands-BRmWVCNf.mjs');
1842
+ const { wiseMeetingsCli } = await import('./commands-CI9WGg34.mjs');
1843
1843
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1844
1844
  return;
1845
1845
  }
@@ -1889,7 +1889,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1889
1889
  return;
1890
1890
  }
1891
1891
  const authArgs = rest.slice(1);
1892
- const mod = await import('./auth-Dzf0cndq.mjs');
1892
+ const mod = await import('./auth-Behk8m8n.mjs');
1893
1893
  let action;
1894
1894
  try {
1895
1895
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1899,7 +1899,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1899
1899
  return;
1900
1900
  }
1901
1901
  if (action) {
1902
- const { updateEnvFile } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
1902
+ const { updateEnvFile } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.a7; });
1903
1903
  const updates = mod.buildWiseAgentEnvUpdates(action);
1904
1904
  updateEnvFile(updates);
1905
1905
  for (const [k, v] of Object.entries(updates)) {
@@ -1913,7 +1913,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1913
1913
  }
1914
1914
  async function handleDaemonAuthCommand(argv) {
1915
1915
  const sub = (argv[0] || "status").toLowerCase();
1916
- const mod = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
1916
+ const mod = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.a7; });
1917
1917
  if (sub === "--help" || sub === "-h" || sub === "help") {
1918
1918
  console.log(`
1919
1919
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2226,7 +2226,7 @@ Examples:
2226
2226
  async function printSkillsHelp() {
2227
2227
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2228
2228
  try {
2229
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.af; });
2229
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-9H6Of0HT.mjs').then(function (n) { return n.af; });
2230
2230
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2231
2231
  } catch {
2232
2232
  }
@@ -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 { 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-C9ZeF2iG.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-9H6Of0HT.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -1,8 +1,8 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { resolve } from 'node:path';
3
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-BRmWVCNf.mjs';
3
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-CI9WGg34.mjs';
4
4
  import { execSync } from 'node:child_process';
5
- import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-C9ZeF2iG.mjs';
5
+ import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-9H6Of0HT.mjs';
6
6
  import 'node:os';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-BRmWVCNf.mjs';
3
+ import { connectAndGetMachine } from './commands-CI9WGg34.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-C9ZeF2iG.mjs';
8
+ import './run-9H6Of0HT.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-C9ZeF2iG.mjs';
2
+ import { m as resolveProjectRoot } from './run-9H6Of0HT.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';
@@ -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-H52IJYcb.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-_v1in_1L.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-BRmWVCNf.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-H52IJYcb.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-_v1in_1L.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-BRmWVCNf.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-BRmWVCNf.mjs');
175
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.mjs');
176
176
  const { server, machine } = await connectAndGetMachine();
177
177
  try {
178
178
  await machine.tunnelStop({ name });
@@ -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 { 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-C9ZeF2iG.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-9H6Of0HT.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -1,5 +1,5 @@
1
1
  import { execSync } from 'node:child_process';
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-C9ZeF2iG.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-9H6Of0HT.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
5
5
  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-C9ZeF2iG.mjs';
4
+ import { c as connectToHypha } from './run-9H6Of0HT.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-C9ZeF2iG.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-9H6Of0HT.mjs';
8
8
  import 'fs/promises';
9
9
  import 'url';
10
10
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-C9ZeF2iG.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-cU4KDceu.mjs';
1
+ import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-9H6Of0HT.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-_ZCZ7bLW.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-C9ZeF2iG.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-9H6Of0HT.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.206";
2
+ var version = "0.2.207";
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";
@@ -1,4 +1,4 @@
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-C9ZeF2iG.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-9H6Of0HT.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,4 +1,4 @@
1
- import { m as resolveProjectRoot } from './run-C9ZeF2iG.mjs';
1
+ import { m as resolveProjectRoot } from './run-9H6Of0HT.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';
@@ -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-H52IJYcb.mjs');
2915
+ const { FrpcTunnel } = await import('./frpc-_v1in_1L.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-cU4KDceu.mjs');
3362
+ const { toolsForRole } = await import('./sideband-_ZCZ7bLW.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-BRmWVCNf.mjs');
3461
+ const { queryCore } = await import('./commands-CI9WGg34.mjs');
3462
3462
  const timeout = c.reply?.timeout_sec || 120;
3463
3463
  let result;
3464
3464
  try {
@@ -12181,7 +12181,7 @@ async function startDaemon(options) {
12181
12181
  saveExposedTunnels(list);
12182
12182
  }
12183
12183
  async function createExposedTunnel(spec) {
12184
- const { FrpcTunnel } = await import('./frpc-H52IJYcb.mjs');
12184
+ const { FrpcTunnel } = await import('./frpc-_v1in_1L.mjs');
12185
12185
  const tunnel = new FrpcTunnel({
12186
12186
  name: spec.name,
12187
12187
  ports: spec.ports,
@@ -12201,7 +12201,7 @@ async function startDaemon(options) {
12201
12201
  return tunnel;
12202
12202
  }
12203
12203
  const tunnelRecreateState = /* @__PURE__ */ new Map();
12204
- const { ServeManager } = await import('./serveManager-Be-R7R8_.mjs');
12204
+ const { ServeManager } = await import('./serveManager-DLgPs76r.mjs');
12205
12205
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
12206
12206
  ensureAutoInstalledSkills(logger).catch(() => {
12207
12207
  });
@@ -14093,11 +14093,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14093
14093
  });
14094
14094
  },
14095
14095
  onIssue: async (params) => {
14096
- const { issueRpc } = await import('./rpc-BHUHF_Mv.mjs');
14096
+ const { issueRpc } = await import('./rpc-BkpMe22P.mjs');
14097
14097
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
14098
14098
  },
14099
14099
  onWorkflow: async (params) => {
14100
- const { workflowRpc } = await import('./rpc-CFrVMETs.mjs');
14100
+ const { workflowRpc } = await import('./rpc-Ci-Ge4tu.mjs');
14101
14101
  return workflowRpc(params?.cwd || directory, params || {});
14102
14102
  },
14103
14103
  onRipgrep: async (args, cwd) => {
@@ -14271,14 +14271,17 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14271
14271
  return claudeProcess || void 0;
14272
14272
  }
14273
14273
  };
14274
- trackedSession.rekickLoop = (opts) => {
14274
+ trackedSession.rekickLoop = () => {
14275
14275
  if (trackedSession.stopped) return;
14276
14276
  const s = readLoopState(directory, sessionId);
14277
14277
  if (!s) return;
14278
14278
  if (s.phase === "cancelled") return;
14279
- if (opts?.skipStalled && s.phase === "gave_up") return;
14280
14279
  if (typeof s.session_id === "string" && s.session_id !== sessionId) return;
14281
- if (s.active === false || s.phase === "done" || s.phase === "gave_up") {
14280
+ if (s.phase === "gave_up") {
14281
+ logger.log(`[Session ${sessionId}] re-kick skipped \u2014 loop is resource-limit-stalled; human must run \`loop --max N\``);
14282
+ return;
14283
+ }
14284
+ if (s.active === false || s.phase === "done") {
14282
14285
  try {
14283
14286
  const lp = join$1(getLoopDir(directory, sessionId), "loop-state.json");
14284
14287
  writeFileSync$1(lp, JSON.stringify({
@@ -14295,7 +14298,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14295
14298
  } catch {
14296
14299
  }
14297
14300
  }
14298
- logger.log(`[Session ${sessionId}] resumed issue \u2192 reactivating + re-kicking loop`);
14301
+ logger.log(`[Session ${sessionId}] issue change \u2192 re-kicking loop (budget remaining)`);
14299
14302
  enqueueLoopContinue();
14300
14303
  processMessageQueueRef?.();
14301
14304
  };
@@ -14635,11 +14638,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14635
14638
  });
14636
14639
  },
14637
14640
  onIssue: async (params) => {
14638
- const { issueRpc } = await import('./rpc-BHUHF_Mv.mjs');
14641
+ const { issueRpc } = await import('./rpc-BkpMe22P.mjs');
14639
14642
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
14640
14643
  },
14641
14644
  onWorkflow: async (params) => {
14642
- const { workflowRpc } = await import('./rpc-CFrVMETs.mjs');
14645
+ const { workflowRpc } = await import('./rpc-Ci-Ge4tu.mjs');
14643
14646
  return workflowRpc(params?.cwd || directory, params || {});
14644
14647
  },
14645
14648
  onRipgrep: async (args, cwd) => {
@@ -15413,7 +15416,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
15413
15416
  const PING_TIMEOUT_MS = 15e3;
15414
15417
  const POST_RECONNECT_GRACE_MS = 2e4;
15415
15418
  const RECONNECT_JITTER_MS = 2500;
15416
- const { WorkflowScheduler } = await import('./scheduler-ErjEISCv.mjs');
15419
+ const { WorkflowScheduler } = await import('./scheduler-C7_ILALz.mjs');
15417
15420
  const workflowScheduler = new WorkflowScheduler({
15418
15421
  projectRoots: () => {
15419
15422
  const dirs = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
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-C9ZeF2iG.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-9H6Of0HT.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';
@@ -1,4 +1,4 @@
1
- import { m as resolveProjectRoot, y as cronMatches } from './run-C9ZeF2iG.mjs';
1
+ import { m as resolveProjectRoot, y as cronMatches } from './run-9H6Of0HT.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-BRmWVCNf.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-BRmWVCNf.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-BRmWVCNf.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-BRmWVCNf.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-BRmWVCNf.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-CI9WGg34.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-C9ZeF2iG.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-9H6Of0HT.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-H52IJYcb.mjs');
736
+ const { FrpcTunnel } = await import('./frpc-_v1in_1L.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, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-C9ZeF2iG.mjs';
1
+ import { R as READ_ONLY_TOOLS, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-9H6Of0HT.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.206",
3
+ "version": "0.2.207",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",