svamp-cli 0.2.211 → 0.2.213

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 (26) hide show
  1. package/bin/skills/loop/bin/loop-init.mjs +33 -9
  2. package/bin/skills/loop/test/test-loop-gate.mjs +25 -0
  3. package/dist/{agentCommands-upYfzOb6.mjs → agentCommands-DWY77P7n.mjs} +5 -5
  4. package/dist/{auth-CtOmcMMs.mjs → auth-BzUrQLXO.mjs} +1 -1
  5. package/dist/cli.mjs +60 -60
  6. package/dist/{commands-BqLjnRMf.mjs → commands-BTLBqQpV.mjs} +2 -2
  7. package/dist/{commands-BD1TUefp.mjs → commands-BaU-yG8L.mjs} +5 -5
  8. package/dist/{commands-LKS3dFCk.mjs → commands-CTtRByuk.mjs} +1 -1
  9. package/dist/{commands-DfRiEuex.mjs → commands-CdAICPvH.mjs} +1 -1
  10. package/dist/{commands-3UemlDYe.mjs → commands-DG-K7J-j.mjs} +1 -1
  11. package/dist/{commands-B0wp_1rN.mjs → commands-DWdDujqw.mjs} +2 -2
  12. package/dist/{commands-CWZluWgl.mjs → commands-SahYgkRF.mjs} +1 -1
  13. package/dist/{fleet-Az7Mu_de.mjs → fleet-DIhAJ6vd.mjs} +1 -1
  14. package/dist/{frpc-YR5KBWFc.mjs → frpc-CHJuzFaL.mjs} +1 -1
  15. package/dist/{headlessCli-CqsDj7Sa.mjs → headlessCli-D2aOM1R_.mjs} +2 -2
  16. package/dist/index.mjs +1 -1
  17. package/dist/{package-DSWSBuUP.mjs → package-DsaCcGy1.mjs} +1 -1
  18. package/dist/{rpc-sBNotT-C.mjs → rpc-DxNBoWHe.mjs} +1 -1
  19. package/dist/{rpc-DyMxdA19.mjs → rpc-Sf9Y54_x.mjs} +1 -1
  20. package/dist/{run-Ddq-xyoz.mjs → run-B9ZXfWVP.mjs} +31 -21
  21. package/dist/{run-Dm2EHolk.mjs → run-Dd8R_0-B.mjs} +1 -1
  22. package/dist/{scheduler-DWuyd5pn.mjs → scheduler-Dpx1oMaH.mjs} +1 -1
  23. package/dist/{serveCommands-3MLQmRJv.mjs → serveCommands-d1Zk0hst.mjs} +5 -5
  24. package/dist/{serveManager-DkmcWfI3.mjs → serveManager-CxBFi93e.mjs} +2 -2
  25. package/dist/{sideband-5g_J4tvZ.mjs → sideband-BAsKn7to.mjs} +1 -1
  26. package/package.json +1 -1
@@ -43,6 +43,12 @@ const criteria = typeof args.criteria === 'string' ? args.criteria : null;
43
43
  const sessionId = typeof args.session === 'string' ? args.session
44
44
  : (typeof process.env.SVAMP_SESSION_ID === 'string' && process.env.SVAMP_SESSION_ID) ? process.env.SVAMP_SESSION_ID
45
45
  : null;
46
+ // #0166: hooks-only mode — install the gate scripts + MERGE the hooks into settings.json, but DON'T
47
+ // create a loop (no config/state/LOOP.md/evaluator). Run at SESSION SPAWN so the Stop-gate hook is
48
+ // loaded before any loop exists; the hooks no-op while no loop is active (stop-gate: `!cfg` → allow).
49
+ // This is what makes loop start/stop/config-update SEAMLESS — the daemon never restarts Claude to load
50
+ // the hook. Idempotent + safe to call on every spawn (it does NOT touch an existing loop's state).
51
+ const hooksOnly = args['hooks-only'] === true || args['hooks-only'] === 'true';
46
52
 
47
53
  // Session-scoped loop home so sessions sharing a working dir never collide:
48
54
  // <dir>/.svamp/<sessionId>/loop/ (falls back to <dir>/.svamp/loop/ with no session).
@@ -58,8 +64,11 @@ mkdirSync(join(dir, '.claude', 'agents'), { recursive: true });
58
64
  // the work tree (state-fp excludes LOOP.md + .svamp/). So a stale {verdict:done, state_fp}
59
65
  // left by a finished loop would FALSE-CLOSE a fresh loop at iteration 0 whenever the tree
60
66
  // is unchanged between loops. Always clear them so a new loop requires its own fresh verdict.
61
- rmSync(join(loopDir, 'evaluator-verdict.json'), { force: true });
62
- rmSync(join(loopDir, 'history.jsonl'), { force: true });
67
+ // #0166: hooks-only NEVER re-arms it must not disturb an existing loop's verdict/history/state.
68
+ if (!hooksOnly) {
69
+ rmSync(join(loopDir, 'evaluator-verdict.json'), { force: true });
70
+ rmSync(join(loopDir, 'history.jsonl'), { force: true });
71
+ }
63
72
 
64
73
  // 1. Copy hook scripts so the project is self-contained.
65
74
  for (const f of ['state-fp.mjs', 'stop-gate.mjs', 'inject-loop.mjs', 'loop-status.mjs', 'precompact.mjs']) {
@@ -68,6 +77,9 @@ for (const f of ['state-fp.mjs', 'stop-gate.mjs', 'inject-loop.mjs', 'loop-statu
68
77
  try { chmodSync(dest, 0o755); } catch {}
69
78
  }
70
79
 
80
+ // #0166: steps 2-4 CREATE/refresh the loop — skipped in hooks-only mode (the spawn pre-install only
81
+ // installs the dormant gate). The copy-scripts (1) + hooks (5) below always run.
82
+ if (!hooksOnly) {
71
83
  // 2. loop.config.json
72
84
  const config = {
73
85
  loop_file: loopFile,
@@ -123,22 +135,34 @@ ${oracle ? `- The oracle passes: \`${oracle}\`` : ''}
123
135
  - (the agent appends iteration notes here; this is durable memory)
124
136
  `);
125
137
  }
138
+ } // end if(!hooksOnly): loop creation (config/state/LOOP.md)
126
139
 
127
- // 5. .claude/settings.json hooks (merge if present)
140
+ // 5. .claude/settings.json hooks ALWAYS install/refresh the gate so it's loaded at the next Claude
141
+ // start (pre-installed at spawn via hooks-only, so loop start/stop/config never needs a restart).
142
+ // #0166: MERGE, don't clobber — preserve any user-defined hooks for these events; only replace OUR
143
+ // own prior entry (matched by the loop script name) so re-running can't duplicate it.
128
144
  const settingsPath = join(dir, '.claude', 'settings.json');
129
145
  let settings = {};
130
146
  if (existsSync(settingsPath)) { try { settings = JSON.parse(readFileSync(settingsPath, 'utf8')); } catch {} }
131
147
  const node = process.execPath;
132
148
  const cmd = (script) => `"${node}" "${join(binDir, script)}"`;
133
149
  settings.hooks = settings.hooks || {};
134
- settings.hooks.SessionStart = [{ hooks: [{ type: 'command', command: cmd('inject-loop.mjs') }] }];
135
- settings.hooks.UserPromptSubmit = [{ hooks: [{ type: 'command', command: cmd('inject-loop.mjs') }] }];
136
- settings.hooks.Stop = [{ hooks: [{ type: 'command', command: cmd('stop-gate.mjs') }] }];
137
- settings.hooks.PreCompact = [{ hooks: [{ type: 'command', command: cmd('precompact.mjs') }] }];
150
+ const mergeHook = (event, script) => {
151
+ const existing = Array.isArray(settings.hooks[event]) ? settings.hooks[event] : [];
152
+ // Drop any prior group that points at one of OUR loop scripts (so we refresh, never duplicate),
153
+ // keeping all user-defined groups for this event intact.
154
+ const others = existing.filter((g) => !(Array.isArray(g?.hooks) && g.hooks.some(
155
+ (h) => typeof h?.command === 'string' && /loop[\\/](bin[\\/])?(inject-loop|stop-gate|precompact)\.mjs/.test(h.command))));
156
+ settings.hooks[event] = [...others, { hooks: [{ type: 'command', command: cmd(script) }] }];
157
+ };
158
+ mergeHook('SessionStart', 'inject-loop.mjs');
159
+ mergeHook('UserPromptSubmit', 'inject-loop.mjs');
160
+ mergeHook('Stop', 'stop-gate.mjs');
161
+ mergeHook('PreCompact', 'precompact.mjs');
138
162
  writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
139
163
 
140
- // 6. Evaluator agent (materialized) — optional
141
- if (evaluatorOn) {
164
+ // 6. Evaluator agent (materialized) — optional (skipped in hooks-only: no loop yet)
165
+ if (!hooksOnly && evaluatorOn) {
142
166
  const fm = ['---', 'name: loop-evaluator',
143
167
  'description: Skeptical independent reviewer that decides if a loop task is genuinely complete.',
144
168
  'tools: Read, Bash, Grep, Glob', ...(model ? [`model: ${model}`] : []), '---', ''].join('\n');
@@ -457,6 +457,31 @@ try {
457
457
  ok(!r.blocked && readState(d).phase === 'done', 'no qualifying non-urgent unread message → loop completes (no noise)');
458
458
  }
459
459
 
460
+ // ---- Test 27: #0166 hooks-only pre-install — dormant gate, merges (doesn't clobber) user hooks ----
461
+ console.log('Test 27: --hooks-only installs a DORMANT gate + merges user hooks (seamless start/stop)');
462
+ { const d = mkdtempSync(join(tmpdir(), 'hooksonly-')); dirs.push(d);
463
+ // Pre-existing USER hooks that must survive.
464
+ const sp = join(d, '.claude', 'settings.json');
465
+ execFileSync('bash', ['-lc', `mkdir -p "${join(d, '.claude')}"`]);
466
+ writeFileSync(sp, JSON.stringify({ hooks: {
467
+ Stop: [{ hooks: [{ type: 'command', command: 'echo user-stop' }] }],
468
+ PreToolUse: [{ hooks: [{ type: 'command', command: 'echo user-pretool' }] }],
469
+ } }));
470
+ execFileSync(node, [INIT, d, '--session', SID, '--hooks-only'], { encoding: 'utf8' });
471
+ execFileSync(node, [INIT, d, '--session', SID, '--hooks-only'], { encoding: 'utf8' }); // 2x → no dup
472
+ const s = JSON.parse(readFileSync(sp, 'utf8'));
473
+ const cmds = (ev) => (s.hooks[ev] || []).flatMap((g) => (g.hooks || []).map((h) => h.command));
474
+ ok(cmds('PreToolUse').some((c) => c.includes('user-pretool')), 'user PreToolUse hook preserved');
475
+ ok(cmds('Stop').some((c) => c.includes('user-stop')), 'user Stop hook preserved (merge, not clobber)');
476
+ ok(cmds('Stop').filter((c) => c.includes('stop-gate.mjs')).length === 1, 'gate Stop hook present exactly once (no dup on re-run)');
477
+ ok(!existsSync(join(d, '.svamp', SID, 'loop', 'loop.config.json')), 'hooks-only does NOT create a loop (no config)');
478
+ ok(!existsSync(join(d, '.svamp', SID, 'loop', 'loop-state.json')), 'hooks-only does NOT create loop-state');
479
+ ok(existsSync(join(d, '.svamp', SID, 'loop', 'bin', 'stop-gate.mjs')), 'gate scripts copied');
480
+ // The dormant gate must ALLOW stop (no active loop) — else every session could never end a turn.
481
+ const r = runGate(d);
482
+ ok(!r.blocked, 'dormant gate (no loop) allows the turn to end');
483
+ }
484
+
460
485
  console.log(`\n${fail === 0 ? '✅' : '❌'} ${pass} passed, ${fail} failed`);
461
486
  process.exit(fail === 0 ? 0 : 1);
462
487
  } finally {
@@ -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-Ddq-xyoz.mjs';
5
+ import { A as shortId } from './run-B9ZXfWVP.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-Ddq-xyoz.mjs').then(function (n) { return n.a8; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-B9ZXfWVP.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-DfRiEuex.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
261
+ const { connectAndResolveSession } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
315
+ const { connectAndResolveSession } = await import('./commands-CdAICPvH.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-Ddq-xyoz.mjs';
1
+ import { P as resolveModel } from './run-B9ZXfWVP.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-Ddq-xyoz.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-B9ZXfWVP.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-Ddq-xyoz.mjs').then(function (n) { return n.ae; });
37
+ const { getLoadedConfig } = await import('./run-B9ZXfWVP.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-Ddq-xyoz.mjs').then(function (n) { return n.ag; });
54
+ const { restartDaemon } = await import('./run-B9ZXfWVP.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-BD1TUefp.mjs');
347
+ const { handleServiceCommand } = await import('./commands-BaU-yG8L.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-3MLQmRJv.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-d1Zk0hst.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-B0wp_1rN.mjs');
364
+ const { processCommand } = await import('./commands-DWdDujqw.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-CWZluWgl.mjs');
378
+ const { issueCommand } = await import('./commands-SahYgkRF.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-LKS3dFCk.mjs');
382
+ const { workflowCommand } = await import('./commands-CTtRByuk.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-BqLjnRMf.mjs');
389
+ const { crewCommand } = await import('./commands-BTLBqQpV.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-DSWSBuUP.mjs').catch(() => ({ default: { version: "unknown" } }));
397
+ const pkg = await import('./package-DsaCcGy1.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-Dm2EHolk.mjs');
406
+ const { runInteractive } = await import('./run-Dd8R_0-B.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-Ddq-xyoz.mjs').then(function (n) { return n.ab; });
451
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-B9ZXfWVP.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-Ddq-xyoz.mjs').then(function (n) { return n.ab; });
463
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-B9ZXfWVP.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-Ddq-xyoz.mjs').then(function (n) { return n.ac; });
487
+ const { CodexMcpBackend } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.ac; });
488
488
  backend = new CodexMcpBackend({ cwd, log: logFn });
489
489
  } else {
490
- const { AcpBackend } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.aa; });
491
- const { GeminiTransport } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.ad; });
492
- const { DefaultTransport } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.a9; });
490
+ const { AcpBackend } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.aa; });
491
+ const { GeminiTransport } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.ad; });
492
+ const { DefaultTransport } = await import('./run-B9ZXfWVP.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-DfRiEuex.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-CdAICPvH.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-DfRiEuex.mjs');
687
+ const { parseShareArg } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
774
+ const { sessionEditMessage } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
782
+ const { sessionRefineLastReply } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
790
+ const { sessionUndoEdit } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
800
+ const { sessionQuery } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
833
+ const { sessionApprove } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
843
+ const { sessionDeny } = await import('./commands-CdAICPvH.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")
@@ -884,7 +884,7 @@ async function handleSessionCommand() {
884
884
  console.error("Usage: svamp session set-title <title>");
885
885
  process.exit(1);
886
886
  }
887
- const { sessionSetTitle } = await import('./agentCommands-upYfzOb6.mjs');
887
+ const { sessionSetTitle } = await import('./agentCommands-DWY77P7n.mjs');
888
888
  await sessionSetTitle(title);
889
889
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
890
890
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -892,7 +892,7 @@ async function handleSessionCommand() {
892
892
  console.error("Usage: svamp session set-project-description <text>");
893
893
  process.exit(1);
894
894
  }
895
- const { sessionSetProjectDescription } = await import('./agentCommands-upYfzOb6.mjs');
895
+ const { sessionSetProjectDescription } = await import('./agentCommands-DWY77P7n.mjs');
896
896
  await sessionSetProjectDescription(desc);
897
897
  } else if (sessionSubcommand === "set-link") {
898
898
  const url = sessionArgs[1];
@@ -901,7 +901,7 @@ async function handleSessionCommand() {
901
901
  process.exit(1);
902
902
  }
903
903
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
904
- const { sessionSetLink } = await import('./agentCommands-upYfzOb6.mjs');
904
+ const { sessionSetLink } = await import('./agentCommands-DWY77P7n.mjs');
905
905
  await sessionSetLink(url, label);
906
906
  } else if (sessionSubcommand === "notify") {
907
907
  const message = sessionArgs[1];
@@ -910,7 +910,7 @@ async function handleSessionCommand() {
910
910
  process.exit(1);
911
911
  }
912
912
  const level = parseFlagStr("--level") || "info";
913
- const { sessionNotify } = await import('./agentCommands-upYfzOb6.mjs');
913
+ const { sessionNotify } = await import('./agentCommands-DWY77P7n.mjs');
914
914
  await sessionNotify(message, level);
915
915
  } else if (sessionSubcommand === "broadcast") {
916
916
  const action = sessionArgs[1];
@@ -918,7 +918,7 @@ async function handleSessionCommand() {
918
918
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
919
919
  process.exit(1);
920
920
  }
921
- const { sessionBroadcast } = await import('./agentCommands-upYfzOb6.mjs');
921
+ const { sessionBroadcast } = await import('./agentCommands-DWY77P7n.mjs');
922
922
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
923
923
  } else if (sessionSubcommand === "inbox") {
924
924
  const inboxSubcmd = sessionArgs[1];
@@ -929,7 +929,7 @@ async function handleSessionCommand() {
929
929
  process.exit(1);
930
930
  }
931
931
  if (agentSessionId) {
932
- const { inboxSend } = await import('./agentCommands-upYfzOb6.mjs');
932
+ const { inboxSend } = await import('./agentCommands-DWY77P7n.mjs');
933
933
  await inboxSend(sessionArgs[2], {
934
934
  body: sessionArgs[3],
935
935
  subject: parseFlagStr("--subject"),
@@ -944,7 +944,7 @@ async function handleSessionCommand() {
944
944
  }
945
945
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
946
946
  if (agentSessionId && !sessionArgs[2]) {
947
- const { inboxList } = await import('./agentCommands-upYfzOb6.mjs');
947
+ const { inboxList } = await import('./agentCommands-DWY77P7n.mjs');
948
948
  await inboxList({
949
949
  unread: hasFlag("--unread"),
950
950
  limit: parseFlagInt("--limit"),
@@ -966,7 +966,7 @@ async function handleSessionCommand() {
966
966
  process.exit(1);
967
967
  }
968
968
  if (agentSessionId && !sessionArgs[3]) {
969
- const { inboxList } = await import('./agentCommands-upYfzOb6.mjs');
969
+ const { inboxList } = await import('./agentCommands-DWY77P7n.mjs');
970
970
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
971
971
  } else if (sessionArgs[3]) {
972
972
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -976,7 +976,7 @@ async function handleSessionCommand() {
976
976
  }
977
977
  } else if (inboxSubcmd === "reply") {
978
978
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
979
- const { inboxReply } = await import('./agentCommands-upYfzOb6.mjs');
979
+ const { inboxReply } = await import('./agentCommands-DWY77P7n.mjs');
980
980
  await inboxReply(sessionArgs[2], sessionArgs[3]);
981
981
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
982
982
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1014,7 +1014,7 @@ async function handleMachineCommand() {
1014
1014
  return;
1015
1015
  }
1016
1016
  if (machineSubcommand === "share") {
1017
- const { machineShare } = await import('./commands-DfRiEuex.mjs');
1017
+ const { machineShare } = await import('./commands-CdAICPvH.mjs');
1018
1018
  let machineId;
1019
1019
  const shareArgs = [];
1020
1020
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1065,14 +1065,14 @@ async function handleMachineCommand() {
1065
1065
  process.exit(1);
1066
1066
  }
1067
1067
  if (all) {
1068
- const { fleetExec } = await import('./fleet-Az7Mu_de.mjs');
1068
+ const { fleetExec } = await import('./fleet-DIhAJ6vd.mjs');
1069
1069
  await fleetExec(command, { cwd });
1070
1070
  } else {
1071
- const { machineExec } = await import('./commands-DfRiEuex.mjs');
1071
+ const { machineExec } = await import('./commands-CdAICPvH.mjs');
1072
1072
  await machineExec(machineId, command, cwd);
1073
1073
  }
1074
1074
  } else if (machineSubcommand === "info") {
1075
- const { machineInfo } = await import('./commands-DfRiEuex.mjs');
1075
+ const { machineInfo } = await import('./commands-CdAICPvH.mjs');
1076
1076
  let machineId;
1077
1077
  for (let i = 1; i < machineArgs.length; i++) {
1078
1078
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1092,10 +1092,10 @@ async function handleMachineCommand() {
1092
1092
  level = machineArgs[++i];
1093
1093
  }
1094
1094
  }
1095
- const { machineNotify } = await import('./agentCommands-upYfzOb6.mjs');
1095
+ const { machineNotify } = await import('./agentCommands-DWY77P7n.mjs');
1096
1096
  await machineNotify(message, level);
1097
1097
  } else if (machineSubcommand === "ls") {
1098
- const { machineLs } = await import('./commands-DfRiEuex.mjs');
1098
+ const { machineLs } = await import('./commands-CdAICPvH.mjs');
1099
1099
  let machineId;
1100
1100
  let showHidden = false;
1101
1101
  let path;
@@ -1151,20 +1151,20 @@ Examples:
1151
1151
  };
1152
1152
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1153
1153
  if (sub === "status") {
1154
- const { fleetStatus } = await import('./fleet-Az7Mu_de.mjs');
1154
+ const { fleetStatus } = await import('./fleet-DIhAJ6vd.mjs');
1155
1155
  await fleetStatus();
1156
1156
  } else if (sub === "upgrade-claude") {
1157
- const { fleetUpgradeClaude } = await import('./fleet-Az7Mu_de.mjs');
1157
+ const { fleetUpgradeClaude } = await import('./fleet-DIhAJ6vd.mjs');
1158
1158
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1159
1159
  } else if (sub === "upgrade-svamp") {
1160
- const { fleetUpgradeSvamp } = await import('./fleet-Az7Mu_de.mjs');
1160
+ const { fleetUpgradeSvamp } = await import('./fleet-DIhAJ6vd.mjs');
1161
1161
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1162
1162
  } else if (sub === "daemon-restart") {
1163
- const { fleetDaemonRestart } = await import('./fleet-Az7Mu_de.mjs');
1163
+ const { fleetDaemonRestart } = await import('./fleet-DIhAJ6vd.mjs');
1164
1164
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1165
1165
  } else if (sub === "push-skill") {
1166
1166
  const name = fleetArgs[1];
1167
- const { fleetPushSkill } = await import('./fleet-Az7Mu_de.mjs');
1167
+ const { fleetPushSkill } = await import('./fleet-DIhAJ6vd.mjs');
1168
1168
  await fleetPushSkill(name);
1169
1169
  } else {
1170
1170
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1180,7 +1180,7 @@ async function handleSkillsCommand() {
1180
1180
  await printSkillsHelp();
1181
1181
  return;
1182
1182
  }
1183
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-3UemlDYe.mjs');
1183
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DG-K7J-j.mjs');
1184
1184
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1185
1185
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1186
1186
  if (!query) {
@@ -1227,7 +1227,7 @@ async function loginToHypha() {
1227
1227
  process.exit(1);
1228
1228
  }
1229
1229
  const anchor = anchorArg.replace(/\/+$/, "");
1230
- const { loadInstanceConfig } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.ae; });
1230
+ const { loadInstanceConfig } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.ae; });
1231
1231
  let cfg = null;
1232
1232
  try {
1233
1233
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1338,7 +1338,7 @@ async function logoutFromHypha() {
1338
1338
  } catch {
1339
1339
  }
1340
1340
  try {
1341
- const { clearInstanceConfigCache } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.ae; });
1341
+ const { clearInstanceConfigCache } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.ae; });
1342
1342
  clearInstanceConfigCache();
1343
1343
  } catch {
1344
1344
  }
@@ -1676,7 +1676,7 @@ async function applyClaudeAuthFlags(argv) {
1676
1676
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1677
1677
  );
1678
1678
  }
1679
- const mod = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.a7; });
1679
+ const mod = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.a7; });
1680
1680
  if (hasHypha) {
1681
1681
  let url;
1682
1682
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1730,7 +1730,7 @@ async function applyDaemonShareFlag(argv) {
1730
1730
  }
1731
1731
  }
1732
1732
  if (collected.length === 0) return;
1733
- const { updateEnvFile } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.a7; });
1733
+ const { updateEnvFile } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.a7; });
1734
1734
  const seen = /* @__PURE__ */ new Set();
1735
1735
  const deduped = collected.filter((e) => {
1736
1736
  const k = e.toLowerCase();
@@ -1763,7 +1763,7 @@ async function handleWiseAgentCommand(rest) {
1763
1763
  }
1764
1764
  });
1765
1765
  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(" ");
1766
- const { wiseAskCli } = await import('./commands-DfRiEuex.mjs');
1766
+ const { wiseAskCli } = await import('./commands-CdAICPvH.mjs');
1767
1767
  await wiseAskCli(machineId, message, sessionId, { json });
1768
1768
  return;
1769
1769
  }
@@ -1775,7 +1775,7 @@ async function handleWiseAgentCommand(rest) {
1775
1775
  }
1776
1776
  return void 0;
1777
1777
  };
1778
- const { runWiseVoiceCli } = await import('./headlessCli-CqsDj7Sa.mjs');
1778
+ const { runWiseVoiceCli } = await import('./headlessCli-D2aOM1R_.mjs');
1779
1779
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1780
1780
  return;
1781
1781
  }
@@ -1793,7 +1793,7 @@ async function handleWiseAgentCommand(rest) {
1793
1793
  const mode = valueOf(["--mode"]);
1794
1794
  const mission = valueOf(["--mission"]);
1795
1795
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1796
- const { wiseJoinMeetingCli } = await import('./commands-DfRiEuex.mjs');
1796
+ const { wiseJoinMeetingCli } = await import('./commands-CdAICPvH.mjs');
1797
1797
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1798
1798
  return;
1799
1799
  }
@@ -1805,7 +1805,7 @@ async function handleWiseAgentCommand(rest) {
1805
1805
  }
1806
1806
  return void 0;
1807
1807
  };
1808
- const { wiseLeaveMeetingCli } = await import('./commands-DfRiEuex.mjs');
1808
+ const { wiseLeaveMeetingCli } = await import('./commands-CdAICPvH.mjs');
1809
1809
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1810
1810
  return;
1811
1811
  }
@@ -1829,7 +1829,7 @@ async function handleWiseAgentCommand(rest) {
1829
1829
  }
1830
1830
  });
1831
1831
  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(" ");
1832
- const { wiseAnnounceCli } = await import('./commands-DfRiEuex.mjs');
1832
+ const { wiseAnnounceCli } = await import('./commands-CdAICPvH.mjs');
1833
1833
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1834
1834
  return;
1835
1835
  }
@@ -1841,7 +1841,7 @@ async function handleWiseAgentCommand(rest) {
1841
1841
  }
1842
1842
  return void 0;
1843
1843
  };
1844
- const { wiseMeetingsCli } = await import('./commands-DfRiEuex.mjs');
1844
+ const { wiseMeetingsCli } = await import('./commands-CdAICPvH.mjs');
1845
1845
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1846
1846
  return;
1847
1847
  }
@@ -1891,7 +1891,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1891
1891
  return;
1892
1892
  }
1893
1893
  const authArgs = rest.slice(1);
1894
- const mod = await import('./auth-CtOmcMMs.mjs');
1894
+ const mod = await import('./auth-BzUrQLXO.mjs');
1895
1895
  let action;
1896
1896
  try {
1897
1897
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1901,7 +1901,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1901
1901
  return;
1902
1902
  }
1903
1903
  if (action) {
1904
- const { updateEnvFile } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.a7; });
1904
+ const { updateEnvFile } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.a7; });
1905
1905
  const updates = mod.buildWiseAgentEnvUpdates(action);
1906
1906
  updateEnvFile(updates);
1907
1907
  for (const [k, v] of Object.entries(updates)) {
@@ -1915,7 +1915,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1915
1915
  }
1916
1916
  async function handleDaemonAuthCommand(argv) {
1917
1917
  const sub = (argv[0] || "status").toLowerCase();
1918
- const mod = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.a7; });
1918
+ const mod = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.a7; });
1919
1919
  if (sub === "--help" || sub === "-h" || sub === "help") {
1920
1920
  console.log(`
1921
1921
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2228,7 +2228,7 @@ Examples:
2228
2228
  async function printSkillsHelp() {
2229
2229
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2230
2230
  try {
2231
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-Ddq-xyoz.mjs').then(function (n) { return n.af; });
2231
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-B9ZXfWVP.mjs').then(function (n) { return n.af; });
2232
2232
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2233
2233
  } catch {
2234
2234
  }
@@ -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-DfRiEuex.mjs';
3
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-CdAICPvH.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-Ddq-xyoz.mjs';
5
+ import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-B9ZXfWVP.mjs';
6
6
  import 'node:os';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -58,7 +58,7 @@ async function serviceExpose(args) {
58
58
  process.exit(1);
59
59
  }
60
60
  if (foreground) {
61
- const { runFrpcTunnel } = await import('./frpc-YR5KBWFc.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-CHJuzFaL.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-DfRiEuex.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-YR5KBWFc.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-CHJuzFaL.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-DfRiEuex.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
175
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.mjs');
176
176
  const { server, machine } = await connectAndGetMachine();
177
177
  try {
178
178
  await machine.tunnelStop({ name });
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { m as resolveProjectRoot } from './run-Ddq-xyoz.mjs';
2
+ import { m as resolveProjectRoot } from './run-B9ZXfWVP.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';
@@ -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-Ddq-xyoz.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-B9ZXfWVP.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -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-Ddq-xyoz.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-B9ZXfWVP.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-DfRiEuex.mjs';
3
+ import { connectAndGetMachine } from './commands-CdAICPvH.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-Ddq-xyoz.mjs';
8
+ import './run-B9ZXfWVP.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -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-Ddq-xyoz.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-B9ZXfWVP.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-Ddq-xyoz.mjs';
4
+ import { c as connectToHypha } from './run-B9ZXfWVP.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-Ddq-xyoz.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-B9ZXfWVP.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-Ddq-xyoz.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-5g_J4tvZ.mjs';
1
+ import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-B9ZXfWVP.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-BAsKn7to.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-Ddq-xyoz.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-B9ZXfWVP.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.210";
2
+ var version = "0.2.212";
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 } from './run-Ddq-xyoz.mjs';
1
+ import { m as resolveProjectRoot } from './run-B9ZXfWVP.mjs';
2
2
  import { g as getWorkflow, s as setWorkflowEnabled, r as removeWorkflow, a as saveWorkflow, b as rawWorkflow, l as listWorkflows } from './store-BTs0H_y0.mjs';
3
3
  import { g as getRun, l as listRuns, r as runWorkflow } from './runStore-CtptN7US.mjs';
4
4
  import 'os';
@@ -1,4 +1,4 @@
1
- import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as resumeIssue, p as pauseIssue, q as addComment, t as addIssue, v as listIssues, w as searchIssues, x as isVisibleTo } from './run-Ddq-xyoz.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-B9ZXfWVP.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -2912,7 +2912,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
2912
2912
  const tunnels = handlers.tunnels;
2913
2913
  if (!tunnels) throw new Error("Tunnel management not available");
2914
2914
  if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
2915
- const { FrpcTunnel } = await import('./frpc-YR5KBWFc.mjs');
2915
+ const { FrpcTunnel } = await import('./frpc-CHJuzFaL.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-5g_J4tvZ.mjs');
3362
+ const { toolsForRole } = await import('./sideband-BAsKn7to.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-DfRiEuex.mjs');
3461
+ const { queryCore } = await import('./commands-CdAICPvH.mjs');
3462
3462
  const timeout = c.reply?.timeout_sec || 120;
3463
3463
  let result;
3464
3464
  try {
@@ -11489,6 +11489,23 @@ function initLoop(directory, cfg) {
11489
11489
  const res = spawnSync(process.execPath, args, { encoding: "utf-8", timeout: 3e4 });
11490
11490
  return res.status === 0;
11491
11491
  }
11492
+ function ensureLoopHooks(directory, sessionId) {
11493
+ try {
11494
+ const settingsPath = join$1(directory, ".claude", "settings.json");
11495
+ if (existsSync$1(settingsPath)) {
11496
+ try {
11497
+ if (readFileSync$1(settingsPath, "utf-8").includes("stop-gate.mjs")) return;
11498
+ } catch {
11499
+ }
11500
+ }
11501
+ const initScript = resolveLoopInit();
11502
+ if (!initScript) return;
11503
+ const args = [initScript, directory, "--hooks-only"];
11504
+ if (sessionId) args.push("--session", sessionId);
11505
+ spawnSync(process.execPath, args, { encoding: "utf-8", timeout: 3e4 });
11506
+ } catch {
11507
+ }
11508
+ }
11492
11509
  function deactivateLoop(directory, sessionId) {
11493
11510
  try {
11494
11511
  const p = join$1(getLoopDir(directory, sessionId), "loop-state.json");
@@ -11698,10 +11715,10 @@ function createSvampConfigChecker(directory, sessionId, getMetadata, setMetadata
11698
11715
  }
11699
11716
  const eq = getMetadata().messageQueue || [];
11700
11717
  setMetadata((m) => ({ ...m, messageQueue: [...eq, { id: randomUUID$1(), text: "Continue the loop. Read LOOP.md and keep working toward the exit conditions until the Stop gate confirms completion.", displayText: "\u{1F501} Resuming loop", createdAt: Date.now() }] }));
11718
+ onLoopActivated?.();
11701
11719
  }
11702
- onLoopActivated?.();
11703
11720
  sessionService.pushMessage({ type: "message", message: `\u{1F501} Loop limit updated${newMax != null ? ` \u2192 max ${newMax} iterations` : ""}${wasStopped ? " \u2014 resuming" : ""}.` }, "event");
11704
- logger.log(`[svampConfig] Loop limit modified (max=${newMax}, resumed=${wasStopped})`);
11721
+ logger.log(`[svampConfig] Loop limit modified (max=${newMax}, resumed=${wasStopped}, restarted=${wasStopped})`);
11705
11722
  }
11706
11723
  } else if (cfg && typeof cfg === "object" && (task || until)) {
11707
11724
  const oracle = typeof cfg.oracle === "string" && cfg.oracle.trim() ? cfg.oracle.trim() : void 0;
@@ -12184,7 +12201,7 @@ async function startDaemon(options) {
12184
12201
  saveExposedTunnels(list);
12185
12202
  }
12186
12203
  async function createExposedTunnel(spec) {
12187
- const { FrpcTunnel } = await import('./frpc-YR5KBWFc.mjs');
12204
+ const { FrpcTunnel } = await import('./frpc-CHJuzFaL.mjs');
12188
12205
  const tunnel = new FrpcTunnel({
12189
12206
  name: spec.name,
12190
12207
  ports: spec.ports,
@@ -12204,7 +12221,7 @@ async function startDaemon(options) {
12204
12221
  return tunnel;
12205
12222
  }
12206
12223
  const tunnelRecreateState = /* @__PURE__ */ new Map();
12207
- const { ServeManager } = await import('./serveManager-DkmcWfI3.mjs');
12224
+ const { ServeManager } = await import('./serveManager-CxBFi93e.mjs');
12208
12225
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
12209
12226
  ensureAutoInstalledSkills(logger).catch(() => {
12210
12227
  });
@@ -12976,6 +12993,7 @@ ${parts.join("\n")}`);
12976
12993
  } else {
12977
12994
  sessionMetadata = { ...sessionMetadata, isolationMethod: void 0 };
12978
12995
  }
12996
+ ensureLoopHooks(directory, sessionId);
12979
12997
  logger.log(`[Session ${sessionId}] Spawning Claude: ${spawnCommand} ${spawnArgs.join(" ")} (cwd: ${directory})`);
12980
12998
  let spawnEnv = { ...process.env, ...extraEnv };
12981
12999
  delete spawnEnv.CLAUDECODE;
@@ -14096,11 +14114,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14096
14114
  });
14097
14115
  },
14098
14116
  onIssue: async (params) => {
14099
- const { issueRpc } = await import('./rpc-DyMxdA19.mjs');
14117
+ const { issueRpc } = await import('./rpc-Sf9Y54_x.mjs');
14100
14118
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
14101
14119
  },
14102
14120
  onWorkflow: async (params) => {
14103
- const { workflowRpc } = await import('./rpc-sBNotT-C.mjs');
14121
+ const { workflowRpc } = await import('./rpc-DxNBoWHe.mjs');
14104
14122
  return workflowRpc(params?.cwd || directory, params || {});
14105
14123
  },
14106
14124
  onRipgrep: async (args, cwd) => {
@@ -14193,15 +14211,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14193
14211
  logger,
14194
14212
  () => {
14195
14213
  if (trackedSession?.stopped) return;
14196
- const dispatchKickoff = () => {
14197
- if (!trackedSession?.stopped) setTimeout(() => processMessageQueueRef?.(), 200);
14198
- };
14199
- if (claudeResumeId && claudeProcess && claudeProcess.exitCode === null) {
14200
- logger.log(`[svampConfig] Loop/supervisor attached \u2014 restarting Claude to load the Stop-gate hook`);
14201
- restartClaudeHandler().catch((e) => logger.log(`[svampConfig] loop-activation restart failed: ${e?.message || e}`)).finally(dispatchKickoff);
14202
- } else {
14203
- dispatchKickoff();
14204
- }
14214
+ if (!trackedSession?.stopped) setTimeout(() => processMessageQueueRef?.(), 200);
14205
14215
  },
14206
14216
  (v) => routeSupervisionVerdict(sessionMetadata.parentSessionId, v)
14207
14217
  );
@@ -14641,11 +14651,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14641
14651
  });
14642
14652
  },
14643
14653
  onIssue: async (params) => {
14644
- const { issueRpc } = await import('./rpc-DyMxdA19.mjs');
14654
+ const { issueRpc } = await import('./rpc-Sf9Y54_x.mjs');
14645
14655
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
14646
14656
  },
14647
14657
  onWorkflow: async (params) => {
14648
- const { workflowRpc } = await import('./rpc-sBNotT-C.mjs');
14658
+ const { workflowRpc } = await import('./rpc-DxNBoWHe.mjs');
14649
14659
  return workflowRpc(params?.cwd || directory, params || {});
14650
14660
  },
14651
14661
  onRipgrep: async (args, cwd) => {
@@ -15419,7 +15429,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
15419
15429
  const PING_TIMEOUT_MS = 15e3;
15420
15430
  const POST_RECONNECT_GRACE_MS = 2e4;
15421
15431
  const RECONNECT_JITTER_MS = 2500;
15422
- const { WorkflowScheduler } = await import('./scheduler-DWuyd5pn.mjs');
15432
+ const { WorkflowScheduler } = await import('./scheduler-Dpx1oMaH.mjs');
15423
15433
  const workflowScheduler = new WorkflowScheduler({
15424
15434
  projectRoots: () => {
15425
15435
  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-Ddq-xyoz.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-B9ZXfWVP.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-Ddq-xyoz.mjs';
1
+ import { m as resolveProjectRoot, y as cronMatches } from './run-B9ZXfWVP.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-DfRiEuex.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-DfRiEuex.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-CdAICPvH.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-Ddq-xyoz.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-B9ZXfWVP.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-YR5KBWFc.mjs');
736
+ const { FrpcTunnel } = await import('./frpc-CHJuzFaL.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-Ddq-xyoz.mjs';
1
+ import { R as READ_ONLY_TOOLS, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-B9ZXfWVP.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.211",
3
+ "version": "0.2.213",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",