svamp-cli 0.2.135 → 0.2.137

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.
@@ -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 { m as shortId } from './run-gpXzhDA6.mjs';
5
+ import { m as shortId } from './run-CsxZYCHX.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-gpXzhDA6.mjs').then(function (n) { return n._; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a1; });
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-K2-vteB-.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.mjs');
184
184
  return connectAndGetMachine();
185
185
  }
186
186
  async function inboxSend(targetSessionId, opts) {
@@ -197,7 +197,7 @@ async function inboxSend(targetSessionId, opts) {
197
197
  }
198
198
  const { server, machine } = await connectToMachineService();
199
199
  try {
200
- const { resolveSessionId } = await import('./commands-K2-vteB-.mjs');
200
+ const { resolveSessionId } = await import('./commands-DsRfvxD-.mjs');
201
201
  const sessions = await machine.listSessions();
202
202
  const match = resolveSessionId(sessions, targetSessionId);
203
203
  const fullTargetId = match.sessionId;
@@ -1,4 +1,4 @@
1
- import { D as resolveModel } from './run-gpXzhDA6.mjs';
1
+ import { D as resolveModel } from './run-CsxZYCHX.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-gpXzhDA6.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CsxZYCHX.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-gpXzhDA6.mjs').then(function (n) { return n.a5; });
37
+ const { getLoadedConfig } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a8; });
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-gpXzhDA6.mjs').then(function (n) { return n.a7; });
54
+ const { restartDaemon } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.aa; });
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-372fH_Ye.mjs');
347
+ const { handleServiceCommand } = await import('./commands-CyDXCEep.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-C6U7M8nI.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-BkmZ3DGf.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-CqjHsfm4.mjs');
364
+ const { processCommand } = await import('./commands-C_X_NvsQ.mjs');
365
365
  let machineId;
366
366
  const processArgs = args.slice(1);
367
367
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -375,14 +375,14 @@ async function main() {
375
375
  }), machineId);
376
376
  process.exit(0);
377
377
  } else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
378
- const { routineCommand } = await import('./commands-g87ont38.mjs');
378
+ const { routineCommand } = await import('./commands-BYPp9pFP.mjs');
379
379
  await routineCommand(args.slice(1));
380
380
  process.exit(0);
381
381
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
382
382
  await handleWiseAgentCommand(args.slice(1));
383
383
  process.exit(0);
384
384
  } else if (subcommand === "feature" || subcommand === "crew") {
385
- const { crewCommand } = await import('./commands-Du2aT4iG.mjs');
385
+ const { crewCommand } = await import('./commands-chWB1dqI.mjs');
386
386
  await crewCommand(args.slice(1));
387
387
  process.exit(0);
388
388
  } else if (subcommand === "--help" || subcommand === "-h") {
@@ -390,7 +390,7 @@ async function main() {
390
390
  } else if (!subcommand || subcommand === "start") {
391
391
  await handleInteractiveCommand();
392
392
  } else if (subcommand === "--version" || subcommand === "-v") {
393
- const pkg = await import('./package-B_ObzpnN.mjs').catch(() => ({ default: { version: "unknown" } }));
393
+ const pkg = await import('./package-Bvc_HPUi.mjs').catch(() => ({ default: { version: "unknown" } }));
394
394
  console.log(`svamp version: ${pkg.default.version}`);
395
395
  } else {
396
396
  console.error(`Unknown command: ${subcommand}`);
@@ -399,7 +399,7 @@ async function main() {
399
399
  }
400
400
  }
401
401
  async function handleInteractiveCommand() {
402
- const { runInteractive } = await import('./run-EBzkqp4Y.mjs');
402
+ const { runInteractive } = await import('./run-vNXUrGj6.mjs');
403
403
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
404
404
  let directory = process.cwd();
405
405
  let resumeSessionId;
@@ -444,7 +444,7 @@ async function handleAgentCommand() {
444
444
  return;
445
445
  }
446
446
  if (agentArgs[0] === "list") {
447
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a1; });
447
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a4; });
448
448
  console.log("Known agents:");
449
449
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
450
450
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -456,7 +456,7 @@ async function handleAgentCommand() {
456
456
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
457
457
  return;
458
458
  }
459
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a1; });
459
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a4; });
460
460
  let cwd = process.cwd();
461
461
  const filteredArgs = [];
462
462
  for (let i = 0; i < agentArgs.length; i++) {
@@ -480,12 +480,12 @@ async function handleAgentCommand() {
480
480
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
481
481
  let backend;
482
482
  if (KNOWN_MCP_AGENTS[config.agentName]) {
483
- const { CodexMcpBackend } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a2; });
483
+ const { CodexMcpBackend } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a5; });
484
484
  backend = new CodexMcpBackend({ cwd, log: logFn });
485
485
  } else {
486
- const { AcpBackend } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a0; });
487
- const { GeminiTransport } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a3; });
488
- const { DefaultTransport } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.$; });
486
+ const { AcpBackend } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a3; });
487
+ const { GeminiTransport } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a6; });
488
+ const { DefaultTransport } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a2; });
489
489
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
490
490
  backend = new AcpBackend({
491
491
  agentName: config.agentName,
@@ -612,7 +612,7 @@ async function handleSessionCommand() {
612
612
  process.exit(1);
613
613
  }
614
614
  }
615
- 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-K2-vteB-.mjs');
615
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionChecklist, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-DsRfvxD-.mjs');
616
616
  const parseFlagStr = (flag, shortFlag) => {
617
617
  for (let i = 1; i < sessionArgs.length; i++) {
618
618
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -680,7 +680,7 @@ async function handleSessionCommand() {
680
680
  allowDomain.push(sessionArgs[++i]);
681
681
  }
682
682
  }
683
- const { parseShareArg } = await import('./commands-K2-vteB-.mjs');
683
+ const { parseShareArg } = await import('./commands-DsRfvxD-.mjs');
684
684
  const shareEntries = share.map((s) => parseShareArg(s));
685
685
  await sessionSpawn(agent, dir, targetMachineId, {
686
686
  message,
@@ -765,7 +765,7 @@ async function handleSessionCommand() {
765
765
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
766
766
  process.exit(1);
767
767
  }
768
- const { sessionEditMessage } = await import('./commands-K2-vteB-.mjs');
768
+ const { sessionEditMessage } = await import('./commands-DsRfvxD-.mjs');
769
769
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
770
770
  } else if (sessionSubcommand === "refine") {
771
771
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -773,7 +773,7 @@ async function handleSessionCommand() {
773
773
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
774
774
  process.exit(1);
775
775
  }
776
- const { sessionRefineLastReply } = await import('./commands-K2-vteB-.mjs');
776
+ const { sessionRefineLastReply } = await import('./commands-DsRfvxD-.mjs');
777
777
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
778
778
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
779
779
  if (!sessionArgs[1]) {
@@ -781,7 +781,7 @@ async function handleSessionCommand() {
781
781
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
782
782
  process.exit(1);
783
783
  }
784
- const { sessionUndoEdit } = await import('./commands-K2-vteB-.mjs');
784
+ const { sessionUndoEdit } = await import('./commands-DsRfvxD-.mjs');
785
785
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
786
786
  } else if (sessionSubcommand === "query") {
787
787
  const dir = sessionArgs[1];
@@ -791,7 +791,7 @@ async function handleSessionCommand() {
791
791
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
792
792
  process.exit(1);
793
793
  }
794
- const { sessionQuery } = await import('./commands-K2-vteB-.mjs');
794
+ const { sessionQuery } = await import('./commands-DsRfvxD-.mjs');
795
795
  await sessionQuery(dir, prompt, targetMachineId, {
796
796
  timeout: parseFlagInt("--timeout"),
797
797
  json: hasFlag("--json"),
@@ -824,7 +824,7 @@ async function handleSessionCommand() {
824
824
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
825
825
  process.exit(1);
826
826
  }
827
- const { sessionApprove } = await import('./commands-K2-vteB-.mjs');
827
+ const { sessionApprove } = await import('./commands-DsRfvxD-.mjs');
828
828
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
829
829
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
830
830
  json: hasFlag("--json")
@@ -834,7 +834,7 @@ async function handleSessionCommand() {
834
834
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
835
835
  process.exit(1);
836
836
  }
837
- const { sessionDeny } = await import('./commands-K2-vteB-.mjs');
837
+ const { sessionDeny } = await import('./commands-DsRfvxD-.mjs');
838
838
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
839
839
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
840
840
  json: hasFlag("--json")
@@ -870,13 +870,49 @@ async function handleSessionCommand() {
870
870
  process.exit(1);
871
871
  }
872
872
  await sessionLoopStatus(sessionArgs[1], targetMachineId);
873
+ } else if (sessionSubcommand === "checklist") {
874
+ const id = sessionArgs[1];
875
+ if (!id) {
876
+ console.error('Usage: svamp session checklist <session-id> [get|set|add|rm|done|clear] [args] [--oracle "cmd"]');
877
+ console.error(" get (default) show the checklist");
878
+ console.error(' set "<a>" "<b>" \u2026 replace the list with these inline items');
879
+ console.error(' add "<text>" append one item (--oracle "cmd" attaches a gate)');
880
+ console.error(" done <id|#> \u2026 mark item(s) done");
881
+ console.error(" rm <id|#> \u2026 remove item(s)");
882
+ console.error(" clear clear the checklist and stop the loop");
883
+ console.error(" limits: --max N (rounds) \xB7 --max-tokens N \xB7 --max-runtime SEC");
884
+ process.exit(1);
885
+ }
886
+ const CHECKLIST_ACTIONS = ["get", "set", "add", "rm", "done", "clear"];
887
+ let action = "get";
888
+ let restStart = 2;
889
+ if (sessionArgs[2] && CHECKLIST_ACTIONS.includes(sessionArgs[2])) {
890
+ action = sessionArgs[2];
891
+ restStart = 3;
892
+ }
893
+ const valueFlags = /* @__PURE__ */ new Set(["--oracle", "--max", "--max-tokens", "--max-runtime", "-m", "--machine"]);
894
+ const rest = [];
895
+ for (let i = restStart; i < sessionArgs.length; i++) {
896
+ const a = sessionArgs[i];
897
+ if (a.startsWith("-")) {
898
+ if (valueFlags.has(a)) i++;
899
+ continue;
900
+ }
901
+ rest.push(a);
902
+ }
903
+ await sessionChecklist(id, action, rest, targetMachineId, {
904
+ oracle: parseFlagStr("--oracle"),
905
+ maxIterations: parseFlagInt("--max") ?? parseFlagInt("--max-iterations"),
906
+ maxTokens: parseFlagInt("--max-tokens"),
907
+ maxRuntimeSec: parseFlagInt("--max-runtime")
908
+ });
873
909
  } else if (sessionSubcommand === "set-title") {
874
910
  const title = sessionArgs[1];
875
911
  if (!title) {
876
912
  console.error("Usage: svamp session set-title <title>");
877
913
  process.exit(1);
878
914
  }
879
- const { sessionSetTitle } = await import('./agentCommands-DUGnqRQj.mjs');
915
+ const { sessionSetTitle } = await import('./agentCommands-DTHW4R21.mjs');
880
916
  await sessionSetTitle(title);
881
917
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
882
918
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -884,7 +920,7 @@ async function handleSessionCommand() {
884
920
  console.error("Usage: svamp session set-project-description <text>");
885
921
  process.exit(1);
886
922
  }
887
- const { sessionSetProjectDescription } = await import('./agentCommands-DUGnqRQj.mjs');
923
+ const { sessionSetProjectDescription } = await import('./agentCommands-DTHW4R21.mjs');
888
924
  await sessionSetProjectDescription(desc);
889
925
  } else if (sessionSubcommand === "set-link") {
890
926
  const url = sessionArgs[1];
@@ -893,7 +929,7 @@ async function handleSessionCommand() {
893
929
  process.exit(1);
894
930
  }
895
931
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
896
- const { sessionSetLink } = await import('./agentCommands-DUGnqRQj.mjs');
932
+ const { sessionSetLink } = await import('./agentCommands-DTHW4R21.mjs');
897
933
  await sessionSetLink(url, label);
898
934
  } else if (sessionSubcommand === "notify") {
899
935
  const message = sessionArgs[1];
@@ -902,7 +938,7 @@ async function handleSessionCommand() {
902
938
  process.exit(1);
903
939
  }
904
940
  const level = parseFlagStr("--level") || "info";
905
- const { sessionNotify } = await import('./agentCommands-DUGnqRQj.mjs');
941
+ const { sessionNotify } = await import('./agentCommands-DTHW4R21.mjs');
906
942
  await sessionNotify(message, level);
907
943
  } else if (sessionSubcommand === "broadcast") {
908
944
  const action = sessionArgs[1];
@@ -910,7 +946,7 @@ async function handleSessionCommand() {
910
946
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
911
947
  process.exit(1);
912
948
  }
913
- const { sessionBroadcast } = await import('./agentCommands-DUGnqRQj.mjs');
949
+ const { sessionBroadcast } = await import('./agentCommands-DTHW4R21.mjs');
914
950
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
915
951
  } else if (sessionSubcommand === "inbox") {
916
952
  const inboxSubcmd = sessionArgs[1];
@@ -921,7 +957,7 @@ async function handleSessionCommand() {
921
957
  process.exit(1);
922
958
  }
923
959
  if (agentSessionId) {
924
- const { inboxSend } = await import('./agentCommands-DUGnqRQj.mjs');
960
+ const { inboxSend } = await import('./agentCommands-DTHW4R21.mjs');
925
961
  await inboxSend(sessionArgs[2], {
926
962
  body: sessionArgs[3],
927
963
  subject: parseFlagStr("--subject"),
@@ -936,7 +972,7 @@ async function handleSessionCommand() {
936
972
  }
937
973
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
938
974
  if (agentSessionId && !sessionArgs[2]) {
939
- const { inboxList } = await import('./agentCommands-DUGnqRQj.mjs');
975
+ const { inboxList } = await import('./agentCommands-DTHW4R21.mjs');
940
976
  await inboxList({
941
977
  unread: hasFlag("--unread"),
942
978
  limit: parseFlagInt("--limit"),
@@ -958,7 +994,7 @@ async function handleSessionCommand() {
958
994
  process.exit(1);
959
995
  }
960
996
  if (agentSessionId && !sessionArgs[3]) {
961
- const { inboxList } = await import('./agentCommands-DUGnqRQj.mjs');
997
+ const { inboxList } = await import('./agentCommands-DTHW4R21.mjs');
962
998
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
963
999
  } else if (sessionArgs[3]) {
964
1000
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -968,7 +1004,7 @@ async function handleSessionCommand() {
968
1004
  }
969
1005
  } else if (inboxSubcmd === "reply") {
970
1006
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
971
- const { inboxReply } = await import('./agentCommands-DUGnqRQj.mjs');
1007
+ const { inboxReply } = await import('./agentCommands-DTHW4R21.mjs');
972
1008
  await inboxReply(sessionArgs[2], sessionArgs[3]);
973
1009
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
974
1010
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1004,7 +1040,7 @@ async function handleMachineCommand() {
1004
1040
  return;
1005
1041
  }
1006
1042
  if (machineSubcommand === "share") {
1007
- const { machineShare } = await import('./commands-K2-vteB-.mjs');
1043
+ const { machineShare } = await import('./commands-DsRfvxD-.mjs');
1008
1044
  let machineId;
1009
1045
  const shareArgs = [];
1010
1046
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1055,14 +1091,14 @@ async function handleMachineCommand() {
1055
1091
  process.exit(1);
1056
1092
  }
1057
1093
  if (all) {
1058
- const { fleetExec } = await import('./fleet-BxQs8C8X.mjs');
1094
+ const { fleetExec } = await import('./fleet-yhBX5aRm.mjs');
1059
1095
  await fleetExec(command, { cwd });
1060
1096
  } else {
1061
- const { machineExec } = await import('./commands-K2-vteB-.mjs');
1097
+ const { machineExec } = await import('./commands-DsRfvxD-.mjs');
1062
1098
  await machineExec(machineId, command, cwd);
1063
1099
  }
1064
1100
  } else if (machineSubcommand === "info") {
1065
- const { machineInfo } = await import('./commands-K2-vteB-.mjs');
1101
+ const { machineInfo } = await import('./commands-DsRfvxD-.mjs');
1066
1102
  let machineId;
1067
1103
  for (let i = 1; i < machineArgs.length; i++) {
1068
1104
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1082,10 +1118,10 @@ async function handleMachineCommand() {
1082
1118
  level = machineArgs[++i];
1083
1119
  }
1084
1120
  }
1085
- const { machineNotify } = await import('./agentCommands-DUGnqRQj.mjs');
1121
+ const { machineNotify } = await import('./agentCommands-DTHW4R21.mjs');
1086
1122
  await machineNotify(message, level);
1087
1123
  } else if (machineSubcommand === "ls") {
1088
- const { machineLs } = await import('./commands-K2-vteB-.mjs');
1124
+ const { machineLs } = await import('./commands-DsRfvxD-.mjs');
1089
1125
  let machineId;
1090
1126
  let showHidden = false;
1091
1127
  let path;
@@ -1141,20 +1177,20 @@ Examples:
1141
1177
  };
1142
1178
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1143
1179
  if (sub === "status") {
1144
- const { fleetStatus } = await import('./fleet-BxQs8C8X.mjs');
1180
+ const { fleetStatus } = await import('./fleet-yhBX5aRm.mjs');
1145
1181
  await fleetStatus();
1146
1182
  } else if (sub === "upgrade-claude") {
1147
- const { fleetUpgradeClaude } = await import('./fleet-BxQs8C8X.mjs');
1183
+ const { fleetUpgradeClaude } = await import('./fleet-yhBX5aRm.mjs');
1148
1184
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1149
1185
  } else if (sub === "upgrade-svamp") {
1150
- const { fleetUpgradeSvamp } = await import('./fleet-BxQs8C8X.mjs');
1186
+ const { fleetUpgradeSvamp } = await import('./fleet-yhBX5aRm.mjs');
1151
1187
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1152
1188
  } else if (sub === "daemon-restart") {
1153
- const { fleetDaemonRestart } = await import('./fleet-BxQs8C8X.mjs');
1189
+ const { fleetDaemonRestart } = await import('./fleet-yhBX5aRm.mjs');
1154
1190
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1155
1191
  } else if (sub === "push-skill") {
1156
1192
  const name = fleetArgs[1];
1157
- const { fleetPushSkill } = await import('./fleet-BxQs8C8X.mjs');
1193
+ const { fleetPushSkill } = await import('./fleet-yhBX5aRm.mjs');
1158
1194
  await fleetPushSkill(name);
1159
1195
  } else {
1160
1196
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1170,7 +1206,7 @@ async function handleSkillsCommand() {
1170
1206
  await printSkillsHelp();
1171
1207
  return;
1172
1208
  }
1173
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-C9_gRWF1.mjs');
1209
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DJudKZ5J.mjs');
1174
1210
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1175
1211
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1176
1212
  if (!query) {
@@ -1217,7 +1253,7 @@ async function loginToHypha() {
1217
1253
  process.exit(1);
1218
1254
  }
1219
1255
  const anchor = anchorArg.replace(/\/+$/, "");
1220
- const { loadInstanceConfig } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a5; });
1256
+ const { loadInstanceConfig } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a8; });
1221
1257
  let cfg = null;
1222
1258
  try {
1223
1259
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1328,7 +1364,7 @@ async function logoutFromHypha() {
1328
1364
  } catch {
1329
1365
  }
1330
1366
  try {
1331
- const { clearInstanceConfigCache } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a5; });
1367
+ const { clearInstanceConfigCache } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a8; });
1332
1368
  clearInstanceConfigCache();
1333
1369
  } catch {
1334
1370
  }
@@ -1666,7 +1702,7 @@ async function applyClaudeAuthFlags(argv) {
1666
1702
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1667
1703
  );
1668
1704
  }
1669
- const mod = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a4; });
1705
+ const mod = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a7; });
1670
1706
  if (hasHypha) {
1671
1707
  let url;
1672
1708
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1720,7 +1756,7 @@ async function applyDaemonShareFlag(argv) {
1720
1756
  }
1721
1757
  }
1722
1758
  if (collected.length === 0) return;
1723
- const { updateEnvFile } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a4; });
1759
+ const { updateEnvFile } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a7; });
1724
1760
  const seen = /* @__PURE__ */ new Set();
1725
1761
  const deduped = collected.filter((e) => {
1726
1762
  const k = e.toLowerCase();
@@ -1753,7 +1789,7 @@ async function handleWiseAgentCommand(rest) {
1753
1789
  }
1754
1790
  });
1755
1791
  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(" ");
1756
- const { wiseAskCli } = await import('./commands-K2-vteB-.mjs');
1792
+ const { wiseAskCli } = await import('./commands-DsRfvxD-.mjs');
1757
1793
  await wiseAskCli(machineId, message, sessionId, { json });
1758
1794
  return;
1759
1795
  }
@@ -1765,7 +1801,7 @@ async function handleWiseAgentCommand(rest) {
1765
1801
  }
1766
1802
  return void 0;
1767
1803
  };
1768
- const { runWiseVoiceCli } = await import('./headlessCli-BZdzfGyK.mjs');
1804
+ const { runWiseVoiceCli } = await import('./headlessCli-DBN-VqGk.mjs');
1769
1805
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1770
1806
  return;
1771
1807
  }
@@ -1807,7 +1843,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1807
1843
  return;
1808
1844
  }
1809
1845
  const authArgs = rest.slice(1);
1810
- const mod = await import('./auth-BWxPTz8i.mjs');
1846
+ const mod = await import('./auth-C9Sf8V6q.mjs');
1811
1847
  let action;
1812
1848
  try {
1813
1849
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1817,7 +1853,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1817
1853
  return;
1818
1854
  }
1819
1855
  if (action) {
1820
- const { updateEnvFile } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a4; });
1856
+ const { updateEnvFile } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a7; });
1821
1857
  const updates = mod.buildWiseAgentEnvUpdates(action);
1822
1858
  updateEnvFile(updates);
1823
1859
  for (const [k, v] of Object.entries(updates)) {
@@ -1831,7 +1867,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1831
1867
  }
1832
1868
  async function handleDaemonAuthCommand(argv) {
1833
1869
  const sub = (argv[0] || "status").toLowerCase();
1834
- const mod = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a4; });
1870
+ const mod = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a7; });
1835
1871
  if (sub === "--help" || sub === "-h" || sub === "help") {
1836
1872
  console.log(`
1837
1873
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2144,7 +2180,7 @@ Examples:
2144
2180
  async function printSkillsHelp() {
2145
2181
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2146
2182
  try {
2147
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-gpXzhDA6.mjs').then(function (n) { return n.a6; });
2183
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CsxZYCHX.mjs').then(function (n) { return n.a9; });
2148
2184
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2149
2185
  } catch {
2150
2186
  }
@@ -1,7 +1,7 @@
1
1
  import { execSync, execFileSync } from 'node:child_process';
2
2
  import { randomUUID } from 'node:crypto';
3
3
  import { createServer } from 'node:http';
4
- import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-gpXzhDA6.mjs';
4
+ import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-CsxZYCHX.mjs';
5
5
  import 'os';
6
6
  import 'fs/promises';
7
7
  import 'fs';
@@ -104,7 +104,7 @@ Criteria: ${res.criteria || "(none)"}
104
104
  urgency: "normal",
105
105
  hopCount: 1
106
106
  };
107
- const { connectAndGetMachine } = await import('./commands-K2-vteB-.mjs');
107
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.mjs');
108
108
  const { server, machine } = await connectAndGetMachine();
109
109
  try {
110
110
  await machine.sessionRPC(reportTo, "sendInboxMessage", { message });
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-K2-vteB-.mjs';
3
+ import { connectAndGetMachine } from './commands-DsRfvxD-.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-gpXzhDA6.mjs';
8
+ import './run-CsxZYCHX.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -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-iVFYzz91.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-DD1dWpQ3.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-K2-vteB-.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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-iVFYzz91.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-DD1dWpQ3.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-K2-vteB-.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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-K2-vteB-.mjs');
175
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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 { p as parseFrontmatter, n as getSkillsServer, o as getSkillsWorkspaceName, q as getSkillsCollectionName, t as fetchWithTimeout, u as searchSkills, v as SKILLS_DIR, w as getSkillInfo, x as downloadSkillFile, y as listSkillFiles } from './run-gpXzhDA6.mjs';
4
+ import { p as parseFrontmatter, n as getSkillsServer, o as getSkillsWorkspaceName, q as getSkillsCollectionName, t as fetchWithTimeout, u as searchSkills, v as SKILLS_DIR, w as getSkillInfo, x as downloadSkillFile, y as listSkillFiles } from './run-CsxZYCHX.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 { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as computeOutboundHop, m as shortId, Q as buildMachineShareUrl, T as parseHandle, U as handleMatchesMetadata } from './run-gpXzhDA6.mjs';
5
+ import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as validateChecklist, Q as computeOutboundHop, m as shortId, T as buildMachineShareUrl, U as summarize, V as newItem, W as parseHandle, X as handleMatchesMetadata } from './run-CsxZYCHX.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -2460,6 +2460,123 @@ async function sessionLoopStatus(sessionIdPartial, machineId) {
2460
2460
  await server.disconnect();
2461
2461
  }
2462
2462
  }
2463
+ const CHECKLIST_MARK = {
2464
+ todo: " ",
2465
+ active: "~",
2466
+ verifying: "?",
2467
+ awaiting_review: "\u2026",
2468
+ rework: "\u21BB",
2469
+ blocked: "\u2717",
2470
+ done: "x"
2471
+ };
2472
+ function printChecklist(items) {
2473
+ if (!items.length) {
2474
+ console.log(" (empty checklist)");
2475
+ return;
2476
+ }
2477
+ items.forEach((it, i) => {
2478
+ const crew = it.disposition === "delegated" ? ` [crew${it.child?.sessionId ? ` ${it.child.sessionId.slice(0, 8)}` : ""}]` : "";
2479
+ const oracle = it.eval?.type === "oracle" ? ` (oracle: ${it.eval.cmd})` : "";
2480
+ console.log(` ${i + 1}. [${CHECKLIST_MARK[it.status] ?? " "}] ${it.text}${crew}${oracle}`);
2481
+ });
2482
+ const s = summarize(items);
2483
+ console.log(` \u2014 ${s.done}/${s.total} done${s.delegated ? `, ${s.delegated} delegated` : ""}${s.allDone ? " \u2713" : ""}`);
2484
+ }
2485
+ async function readChecklistItems(svc, fullId) {
2486
+ try {
2487
+ const raw = await svc.readFile(`.svamp/${fullId}/loop/checklist.json`);
2488
+ const content = typeof raw === "string" ? raw : raw?.content;
2489
+ if (content) {
2490
+ const parsed = JSON.parse(Buffer.from(content, "base64").toString("utf-8"));
2491
+ if (Array.isArray(parsed)) return parsed;
2492
+ if (Array.isArray(parsed?.items)) return parsed.items;
2493
+ }
2494
+ } catch {
2495
+ }
2496
+ return [];
2497
+ }
2498
+ function resolveItemIds(items, tokens) {
2499
+ const ids = [];
2500
+ for (const tok of tokens) {
2501
+ const byId = items.find((it) => it.id === tok);
2502
+ if (byId) {
2503
+ ids.push(byId.id);
2504
+ continue;
2505
+ }
2506
+ const idx = parseInt(tok, 10);
2507
+ if (!isNaN(idx) && idx >= 1 && idx <= items.length) ids.push(items[idx - 1].id);
2508
+ }
2509
+ return ids;
2510
+ }
2511
+ function mutateChecklistItems(items, action, args, opts, now = Date.now()) {
2512
+ const evalOpt = opts?.oracle ? { eval: { type: "oracle", cmd: opts.oracle } } : {};
2513
+ let next = items;
2514
+ if (action === "set") {
2515
+ next = args.map((text, i) => newItem(text, evalOpt, i, now));
2516
+ } else if (action === "add") {
2517
+ next = [...items, newItem(args.join(" ").trim(), evalOpt, items.length, now)];
2518
+ } else if (action === "done" || action === "rm") {
2519
+ const targetIds = new Set(resolveItemIds(items, args));
2520
+ next = action === "rm" ? items.filter((it) => !targetIds.has(it.id)) : items.map((it) => targetIds.has(it.id) ? { ...it, status: "done", doneAt: now } : it);
2521
+ }
2522
+ return next.map((it, i) => ({ ...it, order: i }));
2523
+ }
2524
+ function checklistConfigPatch(opts) {
2525
+ if (!opts) return void 0;
2526
+ const budget = {};
2527
+ if (opts.maxTokens && opts.maxTokens > 0) budget.max_tokens = opts.maxTokens;
2528
+ if (opts.maxRuntimeSec && opts.maxRuntimeSec > 0) budget.max_runtime_sec = opts.maxRuntimeSec;
2529
+ const hasBudget = Object.keys(budget).length > 0;
2530
+ if (!opts.maxIterations && !hasBudget) return void 0;
2531
+ return {
2532
+ ...opts.maxIterations ? { maxIterations: opts.maxIterations } : {},
2533
+ ...hasBudget ? { budget } : {}
2534
+ };
2535
+ }
2536
+ async function sessionChecklist(sessionIdPartial, action, args, machineId, opts) {
2537
+ const { server, machine, fullId } = await connectAndResolveSession(sessionIdPartial, machineId);
2538
+ try {
2539
+ const svc = getSessionProxy(machine, fullId);
2540
+ if (action === "get") {
2541
+ console.log(`Checklist on session ${fullId.slice(0, 8)}:`);
2542
+ printChecklist(await readChecklistItems(svc, fullId));
2543
+ return;
2544
+ }
2545
+ if (action === "clear") {
2546
+ await svc.updateConfig({ checklist: [] });
2547
+ console.log(`Checklist cleared on session ${fullId.slice(0, 8)} \u2014 loop stopped.`);
2548
+ return;
2549
+ }
2550
+ const current = await readChecklistItems(svc, fullId);
2551
+ if ((action === "set" || action === "add") && !args.join(" ").trim()) {
2552
+ console.error(`Usage: svamp session checklist <id> ${action} "<text>" [--oracle "cmd"]`);
2553
+ process.exit(1);
2554
+ }
2555
+ if (action === "done" || action === "rm") {
2556
+ if (!args.length) {
2557
+ console.error(`Usage: svamp session checklist <id> ${action} <id|#> [<id|#> \u2026]`);
2558
+ process.exit(1);
2559
+ }
2560
+ if (!resolveItemIds(current, args).length) {
2561
+ console.error("No matching items.");
2562
+ process.exit(1);
2563
+ }
2564
+ }
2565
+ const items = mutateChecklistItems(current, action, args, { oracle: opts?.oracle });
2566
+ const errs = validateChecklist(items);
2567
+ if (errs.length) {
2568
+ console.error(`Checklist invalid: ${errs.join("; ")}`);
2569
+ process.exit(1);
2570
+ }
2571
+ const ccfg = checklistConfigPatch(opts);
2572
+ await svc.updateConfig({ checklist: items, ...ccfg ? { checklistConfig: ccfg } : {} });
2573
+ console.log(`Checklist updated on session ${fullId.slice(0, 8)}:`);
2574
+ printChecklist(items);
2575
+ if (items.some((it) => it.status !== "done")) console.log(" \u{1F501} loop active \u2014 iterating until all done.");
2576
+ } finally {
2577
+ await server.disconnect();
2578
+ }
2579
+ }
2463
2580
  async function sessionInboxSend(sessionIdPartial, body, machineId, opts) {
2464
2581
  const { server, machine, fullId } = await connectAndResolveSession(sessionIdPartial, machineId);
2465
2582
  try {
@@ -2600,4 +2717,4 @@ async function sessionInboxClear(sessionIdPartial, machineId, opts) {
2600
2717
  }
2601
2718
  }
2602
2719
 
2603
- export { collectAssistantResponse, connectAndGetMachine, connectAndResolveSession, createWorktree, generateWorktreeName, machineExec, machineInfo, machineLs, machineShare, parseShareArg, queryCore, renderMessage, resolveSessionId, sendCore, sessionApprove, sessionArchive, sessionAttach, sessionDelete, sessionDeny, sessionEditMessage, sessionInboxClear, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxSend, sessionInfo, sessionList, sessionLoopCancel, sessionLoopStart, sessionLoopStatus, sessionMachines, sessionMessages, sessionQuery, sessionRefineLastReply, sessionResume, sessionSend, sessionShare, sessionSpawn, sessionUndoEdit, sessionWait, sessionWhoami, snapshotLatestSeq, validateSendOptions, wiseAskCli };
2720
+ export { checklistConfigPatch, collectAssistantResponse, connectAndGetMachine, connectAndResolveSession, createWorktree, generateWorktreeName, machineExec, machineInfo, machineLs, machineShare, mutateChecklistItems, parseShareArg, queryCore, renderMessage, resolveItemIds, resolveSessionId, sendCore, sessionApprove, sessionArchive, sessionAttach, sessionChecklist, sessionDelete, sessionDeny, sessionEditMessage, sessionInboxClear, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxSend, sessionInfo, sessionList, sessionLoopCancel, sessionLoopStart, sessionLoopStatus, sessionMachines, sessionMessages, sessionQuery, sessionRefineLastReply, sessionResume, sessionSend, sessionShare, sessionSpawn, sessionUndoEdit, sessionWait, sessionWhoami, snapshotLatestSeq, validateSendOptions, wiseAskCli };
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from 'node:fs';
2
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-K2-vteB-.mjs';
2
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-DsRfvxD-.mjs';
3
3
  import { execSync } from 'node:child_process';
4
- import { m as shortId } from './run-gpXzhDA6.mjs';
4
+ import { m as shortId } from './run-CsxZYCHX.mjs';
5
5
  import 'node:path';
6
6
  import 'node:os';
7
7
  import 'os';
@@ -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-gpXzhDA6.mjs';
4
+ import { c as connectToHypha } from './run-CsxZYCHX.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-gpXzhDA6.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-CsxZYCHX.mjs';
8
8
  import 'fs/promises';
9
9
  import 'url';
10
10
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { D as resolveModel, V as describeMisconfiguration, W as buildMachineDeps } from './run-gpXzhDA6.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-v4GqYhGB.mjs';
1
+ import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-CsxZYCHX.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-BMxeN8ks.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-gpXzhDA6.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-CsxZYCHX.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.135";
2
+ var version = "0.2.137";
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-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-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.mjs && npx tsx test/test-checklist.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-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.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-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.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",
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-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-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.mjs && npx tsx test/test-checklist.mjs && npx tsx test/test-checklist-cli.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-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.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-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.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",
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",
@@ -2677,7 +2677,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
2677
2677
  const tunnels = handlers.tunnels;
2678
2678
  if (!tunnels) throw new Error("Tunnel management not available");
2679
2679
  if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
2680
- const { FrpcTunnel } = await import('./frpc-iVFYzz91.mjs');
2680
+ const { FrpcTunnel } = await import('./frpc-DD1dWpQ3.mjs');
2681
2681
  const tunnel = new FrpcTunnel({
2682
2682
  name: params.name,
2683
2683
  ports: params.ports,
@@ -2975,7 +2975,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
2975
2975
  }
2976
2976
  const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
2977
2977
  const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
2978
- const { toolsForRole } = await import('./sideband-v4GqYhGB.mjs');
2978
+ const { toolsForRole } = await import('./sideband-BMxeN8ks.mjs');
2979
2979
  const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
2980
2980
  return fmt(r2);
2981
2981
  }
@@ -3074,7 +3074,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3074
3074
  if (r.error || !r.sender) return { error: r.error || "unauthorized" };
3075
3075
  const callId = "call_" + Math.random().toString(16).slice(2, 12);
3076
3076
  const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
3077
- const { queryCore } = await import('./commands-K2-vteB-.mjs');
3077
+ const { queryCore } = await import('./commands-DsRfvxD-.mjs');
3078
3078
  const timeout = c.reply?.timeout_sec || 120;
3079
3079
  let result;
3080
3080
  try {
@@ -9838,6 +9838,17 @@ function summarize(items) {
9838
9838
  allDone: items.length > 0 && done === items.length
9839
9839
  };
9840
9840
  }
9841
+ function newItem(text, opts = {}, order = 0, now = Date.now()) {
9842
+ return {
9843
+ id: shortId(),
9844
+ text: text.trim(),
9845
+ disposition: opts.disposition ?? "inline",
9846
+ ...opts.eval ? { eval: opts.eval } : {},
9847
+ status: "todo",
9848
+ order,
9849
+ createdAt: now
9850
+ };
9851
+ }
9841
9852
  function checklistPath(projectRoot, sessionId) {
9842
9853
  return join(projectRoot, ".svamp", sessionId, "loop", "checklist.json");
9843
9854
  }
@@ -10738,6 +10749,15 @@ function resolveLoopInit() {
10738
10749
  for (const c of candidates) if (existsSync$1(c)) return c;
10739
10750
  return null;
10740
10751
  }
10752
+ function parseLoopBudget(raw) {
10753
+ if (!raw || typeof raw !== "object") return void 0;
10754
+ const rt = Number(raw.max_runtime_sec);
10755
+ const tok = Number(raw.max_tokens);
10756
+ const out = {};
10757
+ if (Number.isFinite(rt) && rt > 0) out.max_runtime_sec = rt;
10758
+ if (Number.isFinite(tok) && tok > 0) out.max_tokens = tok;
10759
+ return out.max_runtime_sec || out.max_tokens ? out : void 0;
10760
+ }
10741
10761
  function initLoop(directory, cfg) {
10742
10762
  const initScript = resolveLoopInit();
10743
10763
  if (!initScript) return false;
@@ -10746,6 +10766,8 @@ function initLoop(directory, cfg) {
10746
10766
  if (cfg.oracle) args.push("--oracle", cfg.oracle);
10747
10767
  if (typeof cfg.maxIterations === "number") args.push("--max", String(cfg.maxIterations));
10748
10768
  args.push("--evaluator", cfg.evaluator === false ? "off" : "on");
10769
+ if (cfg.budget?.max_runtime_sec) args.push("--max-runtime", String(cfg.budget.max_runtime_sec));
10770
+ if (cfg.budget?.max_tokens) args.push("--max-tokens", String(cfg.budget.max_tokens));
10749
10771
  if (cfg.model) args.push("--model", cfg.model);
10750
10772
  if (cfg.sessionId) args.push("--session", cfg.sessionId);
10751
10773
  const res = spawnSync(process.execPath, args, { encoding: "utf-8", timeout: 3e4 });
@@ -10927,6 +10949,7 @@ function createSvampConfigChecker(directory, sessionId, getMetadata, setMetadata
10927
10949
  const oracle = typeof cfg.oracle === "string" && cfg.oracle.trim() ? cfg.oracle.trim() : void 0;
10928
10950
  const evaluator = cfg.evaluator !== false;
10929
10951
  const maxIterations = typeof cfg.max_iterations === "number" ? cfg.max_iterations : typeof cfg.max_rounds === "number" ? cfg.max_rounds : 20;
10952
+ const budget = parseLoopBudget(cfg.budget);
10930
10953
  const ok = initLoop(directory, {
10931
10954
  task: task || until,
10932
10955
  // LOOP.md goal = the task, or the until-criteria when hot-plugging
@@ -10934,6 +10957,7 @@ function createSvampConfigChecker(directory, sessionId, getMetadata, setMetadata
10934
10957
  oracle,
10935
10958
  maxIterations,
10936
10959
  evaluator,
10960
+ budget,
10937
10961
  sessionId
10938
10962
  });
10939
10963
  if (ok) {
@@ -10973,6 +10997,7 @@ Or verify and finish \u2014 an independent Stop gate re-checks before you can st
10973
10997
  if ("checklist" in patch) {
10974
10998
  const raw = patch.checklist;
10975
10999
  const items = Array.isArray(raw) ? raw : [];
11000
+ const ccfg = patch.checklistConfig && typeof patch.checklistConfig === "object" ? patch.checklistConfig : {};
10976
11001
  if (items.length) {
10977
11002
  const errs = validateChecklist(items);
10978
11003
  if (errs.length) {
@@ -10980,7 +11005,10 @@ Or verify and finish \u2014 an independent Stop gate re-checks before you can st
10980
11005
  } else {
10981
11006
  writeChecklist(directory, sessionId, items);
10982
11007
  const { criteria, oracle } = compileChecklist(items);
10983
- const ok = initLoop(directory, { task: criteria, criteria, oracle, maxIterations: 20, evaluator: true, sessionId });
11008
+ const maxIterations = typeof ccfg.maxIterations === "number" ? ccfg.maxIterations : typeof ccfg.max_iterations === "number" ? ccfg.max_iterations : 20;
11009
+ const evaluator = ccfg.evaluator !== false;
11010
+ const budget = parseLoopBudget(ccfg.budget);
11011
+ const ok = initLoop(directory, { task: criteria, criteria, oracle, maxIterations, evaluator, budget, sessionId });
10984
11012
  const s = summarize(items);
10985
11013
  if (ok) {
10986
11014
  const idle = getMetadata().lifecycleState === "idle";
@@ -10999,7 +11027,7 @@ Or verify and finish \u2014 an independent Stop gate re-checks before you can st
10999
11027
  deactivateLoop(directory, sessionId);
11000
11028
  sessionService.pushMessage({ type: "message", message: "Checklist cleared." }, "event");
11001
11029
  }
11002
- const { checklist: _c, ...restPatch } = patch;
11030
+ const { checklist: _c, checklistConfig: _cc, ...restPatch } = patch;
11003
11031
  patch = restPatch;
11004
11032
  }
11005
11033
  if (Object.keys(patch).length > 0) {
@@ -11430,7 +11458,7 @@ async function startDaemon(options) {
11430
11458
  saveExposedTunnels(list);
11431
11459
  }
11432
11460
  async function createExposedTunnel(spec) {
11433
- const { FrpcTunnel } = await import('./frpc-iVFYzz91.mjs');
11461
+ const { FrpcTunnel } = await import('./frpc-DD1dWpQ3.mjs');
11434
11462
  const tunnel = new FrpcTunnel({
11435
11463
  name: spec.name,
11436
11464
  ports: spec.ports,
@@ -11450,7 +11478,7 @@ async function startDaemon(options) {
11450
11478
  return tunnel;
11451
11479
  }
11452
11480
  const tunnelRecreateState = /* @__PURE__ */ new Map();
11453
- const { ServeManager } = await import('./serveManager-LSlxfyoD.mjs');
11481
+ const { ServeManager } = await import('./serveManager-Dn5lyf7v.mjs');
11454
11482
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
11455
11483
  ensureAutoInstalledSkills(logger).catch(() => {
11456
11484
  });
@@ -12112,6 +12140,9 @@ ${parts.join("\n")}`);
12112
12140
  "--permission-mode",
12113
12141
  permissionMode
12114
12142
  ];
12143
+ const disallowedToolSet = new Set(effectiveMeta.disallowed_tools || []);
12144
+ if (sessionMetadata.crew?.role === "feature") disallowedToolSet.add("AskUserQuestion");
12145
+ if (disallowedToolSet.size) args.push("--disallowedTools", ...disallowedToolSet);
12115
12146
  if (model) args.push("--model", model);
12116
12147
  if (appendSystemPrompt) args.push("--append-system-prompt", appendSystemPrompt);
12117
12148
  if (claudeResumeId) args.push("--resume", claudeResumeId);
@@ -15051,4 +15082,4 @@ var run = /*#__PURE__*/Object.freeze({
15051
15082
  writeStopMarker: writeStopMarker
15052
15083
  });
15053
15084
 
15054
- export { DefaultTransport$1 as $, buildMachineInstructions as A, machineToolsForRole as B, buildMachineTools as C, resolveModel as D, readChecklist as E, compileChecklist as F, RoutineStore as G, RoutineRunner as H, formatHandle as I, normalizeAllowedUser as J, loadSecurityContextConfig as K, resolveSecurityContext as L, buildSecurityContextFromFlags as M, mergeSecurityContexts as N, buildSessionShareUrl as O, computeOutboundHop as P, buildMachineShareUrl as Q, READ_ONLY_TOOLS as R, ServeAuth as S, parseHandle as T, handleMatchesMetadata as U, describeMisconfiguration as V, buildMachineDeps as W, composeSessionId as X, generateFriendlyName as Y, generateHookSettings as Z, projectInfo as _, createSessionStore as a, acpBackend as a0, acpAgentConfig as a1, codexMcpBackend as a2, GeminiTransport$1 as a3, claudeAuth as a4, instanceConfig as a5, api as a6, run as a7, 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, shortId as m, getSkillsServer as n, getSkillsWorkspaceName as o, parseFrontmatter as p, getSkillsCollectionName as q, registerMachineService as r, startDaemon as s, fetchWithTimeout as t, searchSkills as u, SKILLS_DIR as v, getSkillInfo as w, downloadSkillFile as x, listSkillFiles as y, loadMachineContext as z };
15085
+ export { generateFriendlyName as $, buildMachineInstructions as A, machineToolsForRole as B, buildMachineTools as C, resolveModel as D, readChecklist as E, compileChecklist as F, RoutineStore as G, RoutineRunner as H, formatHandle as I, normalizeAllowedUser as J, loadSecurityContextConfig as K, resolveSecurityContext as L, buildSecurityContextFromFlags as M, mergeSecurityContexts as N, buildSessionShareUrl as O, validateChecklist as P, computeOutboundHop as Q, READ_ONLY_TOOLS as R, ServeAuth as S, buildMachineShareUrl as T, summarize as U, newItem as V, parseHandle as W, handleMatchesMetadata as X, describeMisconfiguration as Y, buildMachineDeps as Z, composeSessionId as _, createSessionStore as a, generateHookSettings as a0, projectInfo as a1, DefaultTransport$1 as a2, acpBackend as a3, acpAgentConfig as a4, codexMcpBackend as a5, GeminiTransport$1 as a6, claudeAuth as a7, instanceConfig as a8, api as a9, run as aa, 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, shortId as m, getSkillsServer as n, getSkillsWorkspaceName as o, parseFrontmatter as p, getSkillsCollectionName as q, registerMachineService as r, startDaemon as s, fetchWithTimeout as t, searchSkills as u, SKILLS_DIR as v, getSkillInfo as w, downloadSkillFile as x, listSkillFiles as y, loadMachineContext as z };
@@ -1,4 +1,4 @@
1
- import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { X as composeSessionId, Y as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, Z as generateHookSettings } from './run-gpXzhDA6.mjs';
1
+ import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { _ as composeSessionId, $ as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a0 as generateHookSettings } from './run-CsxZYCHX.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';
@@ -54,7 +54,7 @@ async function handleServeCommand() {
54
54
  }
55
55
  }
56
56
  async function serveAdd(args, machineId) {
57
- const { connectAndGetMachine } = await import('./commands-K2-vteB-.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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-K2-vteB-.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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-K2-vteB-.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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-K2-vteB-.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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-K2-vteB-.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-DsRfvxD-.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-gpXzhDA6.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-CsxZYCHX.mjs';
8
8
  import 'os';
9
9
  import 'fs/promises';
10
10
  import 'url';
@@ -726,7 +726,7 @@ class ServeManager {
726
726
  const mount = this.mounts.get(mountName);
727
727
  const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, `static-${subdomainSafe}-${mount.linkToken}`]]) : void 0;
728
728
  try {
729
- const { FrpcTunnel } = await import('./frpc-iVFYzz91.mjs');
729
+ const { FrpcTunnel } = await import('./frpc-DD1dWpQ3.mjs');
730
730
  let tunnel;
731
731
  tunnel = new FrpcTunnel({
732
732
  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-gpXzhDA6.mjs';
1
+ import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-CsxZYCHX.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.135",
3
+ "version": "0.2.137",
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-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-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.mjs && npx tsx test/test-checklist.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-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.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-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.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",
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-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-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.mjs && npx tsx test/test-checklist.mjs && npx tsx test/test-checklist-cli.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-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.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-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.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",
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",