svamp-cli 0.2.221-canary.1 → 0.2.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/{agentCommands-OmAUQEmr.mjs → agentCommands-DSuseMnA.mjs} +15 -15
  2. package/dist/{auth-CsF_lTax.mjs → auth-BJnvX133.mjs} +1 -1
  3. package/dist/cli.mjs +62 -63
  4. package/dist/{commands-CuOuU2jC.mjs → commands-BNIGQu4F.mjs} +6 -6
  5. package/dist/{commands-Bnga6vGN.mjs → commands-BXU_kWD5.mjs} +1 -1
  6. package/dist/{commands-0PBW1VfU.mjs → commands-BZlezQUp.mjs} +1 -2
  7. package/dist/{commands-DW_I3xwH.mjs → commands-BuAH1hbT.mjs} +1 -1
  8. package/dist/{commands-Bx3SI-2H.mjs → commands-DkIXEVmH.mjs} +1 -1
  9. package/dist/{commands-CQ7uA1v3.mjs → commands-XNibogq2.mjs} +2 -2
  10. package/dist/{commands-DqgNR6BU.mjs → commands-c_AyeFhu.mjs} +2 -2
  11. package/dist/{fleet-CtQoW6vh.mjs → fleet-3DWzy3Ug.mjs} +1 -1
  12. package/dist/{frpc-BmLtGcxT.mjs → frpc-BBuB68o-.mjs} +1 -1
  13. package/dist/{headlessCli-yE__qyd0.mjs → headlessCli-DC84Bk-k.mjs} +2 -2
  14. package/dist/index.mjs +1 -1
  15. package/dist/{package-DebcE2Vk.mjs → package-DHiC7MHi.mjs} +1 -1
  16. package/dist/{rpc-DHs2NeQx.mjs → rpc-B-o36NVg.mjs} +1 -1
  17. package/dist/{rpc-BsXr2DHR.mjs → rpc-DYFbcVha.mjs} +1 -1
  18. package/dist/{run-B67n-NAA.mjs → run-BLG1uhad.mjs} +11 -32
  19. package/dist/{run-LnUaGxTH.mjs → run-w7dUHUAg.mjs} +1 -1
  20. package/dist/{scheduler-DIdb5J1i.mjs → scheduler-BnCIxKPW.mjs} +1 -1
  21. package/dist/{serveCommands-ByzdGWby.mjs → serveCommands-BxDTJem9.mjs} +5 -5
  22. package/dist/{serveManager-DdQde3Od.mjs → serveManager-MR7XJuvS.mjs} +2 -2
  23. package/dist/{sideband-JrQ_I8T4.mjs → sideband-D4EHhsI3.mjs} +1 -1
  24. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
2
2
  import { join, dirname } from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
5
- import { A as shortId } from './run-B67n-NAA.mjs';
5
+ import { A as shortId } from './run-BLG1uhad.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-B67n-NAA.mjs').then(function (n) { return n.a8; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-BLG1uhad.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.");
@@ -113,18 +113,18 @@ async function sessionSetLink(url, label) {
113
113
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
114
114
  process.exit(1);
115
115
  }
116
- const resolvedLabel = label?.trim() || (() => {
117
- try {
118
- return new URL(url).hostname;
119
- } catch {
120
- return "View";
121
- }
122
- })();
116
+ if (!url || !url.trim()) {
117
+ console.error("Usage: svamp session set-link <url> [label]");
118
+ process.exit(1);
119
+ }
123
120
  const configPath = getConfigPath(sessionId);
124
121
  const config = readConfig(configPath);
125
- config.session_link = { url: url.trim(), label: resolvedLabel };
126
- writeConfig(configPath, config);
127
- console.log(`Session link set: "${resolvedLabel}" \u2192 ${url.trim()}`);
122
+ const before = readSessionLinks(config);
123
+ const next = upsertSessionLink(before, { url, label });
124
+ writeSessionLinks(configPath, config, next);
125
+ const link = next.find((l) => linkDedupKey(l.url) === linkDedupKey(url));
126
+ const verb = next.length === before.length ? "updated" : "added";
127
+ console.log(`Launch Pad: ${verb} "${link.label}" \u2192 ${link.url} [${link.id}]`);
128
128
  }
129
129
  function shortLinkId() {
130
130
  let s = "";
@@ -327,7 +327,7 @@ async function sessionBroadcast(action, args) {
327
327
  console.log(`Broadcast sent: ${action}`);
328
328
  }
329
329
  async function connectToMachineService() {
330
- const { connectAndGetMachine } = await import('./commands-0PBW1VfU.mjs');
330
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.mjs');
331
331
  return connectAndGetMachine();
332
332
  }
333
333
  function buildInboxMessage(args) {
@@ -405,7 +405,7 @@ async function inboxSend(targetSessionId, opts) {
405
405
  console.error("Message body is required.");
406
406
  process.exit(1);
407
407
  }
408
- const { connectAndResolveSession } = await import('./commands-0PBW1VfU.mjs');
408
+ const { connectAndResolveSession } = await import('./commands-BZlezQUp.mjs');
409
409
  let server;
410
410
  try {
411
411
  const { targetId, messageId } = await inboxSendCore(
@@ -459,7 +459,7 @@ async function inboxReply(messageId, body) {
459
459
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
460
460
  process.exit(1);
461
461
  }
462
- const { connectAndResolveSession } = await import('./commands-0PBW1VfU.mjs');
462
+ const { connectAndResolveSession } = await import('./commands-BZlezQUp.mjs');
463
463
  const { server: localServer, machine: localMachine } = await connectToMachineService();
464
464
  let localDisconnected = false;
465
465
  const disconnectLocal = async () => {
@@ -1,4 +1,4 @@
1
- import { P as resolveModel } from './run-B67n-NAA.mjs';
1
+ import { P as resolveModel } from './run-BLG1uhad.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-B67n-NAA.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-BLG1uhad.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-B67n-NAA.mjs').then(function (n) { return n.ae; });
37
+ const { getLoadedConfig } = await import('./run-BLG1uhad.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-B67n-NAA.mjs').then(function (n) { return n.ag; });
54
+ const { restartDaemon } = await import('./run-BLG1uhad.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-CuOuU2jC.mjs');
347
+ const { handleServiceCommand } = await import('./commands-BNIGQu4F.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-ByzdGWby.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-BxDTJem9.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-CQ7uA1v3.mjs');
364
+ const { processCommand } = await import('./commands-XNibogq2.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-Bx3SI-2H.mjs');
378
+ const { issueCommand } = await import('./commands-DkIXEVmH.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-DW_I3xwH.mjs');
382
+ const { workflowCommand } = await import('./commands-BuAH1hbT.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-DqgNR6BU.mjs');
389
+ const { crewCommand } = await import('./commands-c_AyeFhu.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-DebcE2Vk.mjs').catch(() => ({ default: { version: "unknown" } }));
397
+ const pkg = await import('./package-DHiC7MHi.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-LnUaGxTH.mjs');
406
+ const { runInteractive } = await import('./run-w7dUHUAg.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-B67n-NAA.mjs').then(function (n) { return n.ab; });
451
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-BLG1uhad.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-B67n-NAA.mjs').then(function (n) { return n.ab; });
463
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-BLG1uhad.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-B67n-NAA.mjs').then(function (n) { return n.ac; });
487
+ const { CodexMcpBackend } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.ac; });
488
488
  backend = new CodexMcpBackend({ cwd, log: logFn });
489
489
  } else {
490
- const { AcpBackend } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.aa; });
491
- const { GeminiTransport } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.ad; });
492
- const { DefaultTransport } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.a9; });
490
+ const { AcpBackend } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.aa; });
491
+ const { GeminiTransport } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.ad; });
492
+ const { DefaultTransport } = await import('./run-BLG1uhad.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-0PBW1VfU.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-BZlezQUp.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-0PBW1VfU.mjs');
687
+ const { parseShareArg } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
774
+ const { sessionEditMessage } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
782
+ const { sessionRefineLastReply } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
790
+ const { sessionUndoEdit } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
800
+ const { sessionQuery } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
833
+ const { sessionApprove } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
843
+ const { sessionDeny } = await import('./commands-BZlezQUp.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")
@@ -864,8 +864,7 @@ async function handleSessionCommand() {
864
864
  maxIterations: parseFlagInt("--max") ?? parseFlagInt("--max-iterations") ?? parseFlagInt("--max-rounds"),
865
865
  maxTokensPerHour: parseFlagInt("--max-tokens-per-hour"),
866
866
  maxRuntimeSec: parseFlagInt("--max-runtime") ?? parseFlagInt("--max-runtime-sec"),
867
- evaluator: evalStr ? evalStr !== "off" : void 0,
868
- engine: parseFlagStr("--engine")
867
+ evaluator: evalStr ? evalStr !== "off" : void 0
869
868
  });
870
869
  } else if (sessionSubcommand === "loop-cancel") {
871
870
  if (!sessionArgs[1]) {
@@ -885,7 +884,7 @@ async function handleSessionCommand() {
885
884
  console.error("Usage: svamp session set-title <title>");
886
885
  process.exit(1);
887
886
  }
888
- const { sessionSetTitle } = await import('./agentCommands-OmAUQEmr.mjs');
887
+ const { sessionSetTitle } = await import('./agentCommands-DSuseMnA.mjs');
889
888
  await sessionSetTitle(title);
890
889
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
891
890
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -893,7 +892,7 @@ async function handleSessionCommand() {
893
892
  console.error("Usage: svamp session set-project-description <text>");
894
893
  process.exit(1);
895
894
  }
896
- const { sessionSetProjectDescription } = await import('./agentCommands-OmAUQEmr.mjs');
895
+ const { sessionSetProjectDescription } = await import('./agentCommands-DSuseMnA.mjs');
897
896
  await sessionSetProjectDescription(desc);
898
897
  } else if (sessionSubcommand === "set-link") {
899
898
  const url = sessionArgs[1];
@@ -902,11 +901,11 @@ async function handleSessionCommand() {
902
901
  process.exit(1);
903
902
  }
904
903
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
905
- const { sessionSetLink } = await import('./agentCommands-OmAUQEmr.mjs');
904
+ const { sessionSetLink } = await import('./agentCommands-DSuseMnA.mjs');
906
905
  await sessionSetLink(url, label);
907
906
  } else if (sessionSubcommand === "link") {
908
907
  const op = sessionArgs[1];
909
- const lm = await import('./agentCommands-OmAUQEmr.mjs');
908
+ const lm = await import('./agentCommands-DSuseMnA.mjs');
910
909
  if (op === "add") {
911
910
  const url = sessionArgs[2];
912
911
  if (!url || url.startsWith("--")) {
@@ -941,7 +940,7 @@ async function handleSessionCommand() {
941
940
  process.exit(1);
942
941
  }
943
942
  const level = parseFlagStr("--level") || "info";
944
- const { sessionNotify } = await import('./agentCommands-OmAUQEmr.mjs');
943
+ const { sessionNotify } = await import('./agentCommands-DSuseMnA.mjs');
945
944
  await sessionNotify(message, level);
946
945
  } else if (sessionSubcommand === "broadcast") {
947
946
  const action = sessionArgs[1];
@@ -949,7 +948,7 @@ async function handleSessionCommand() {
949
948
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
950
949
  process.exit(1);
951
950
  }
952
- const { sessionBroadcast } = await import('./agentCommands-OmAUQEmr.mjs');
951
+ const { sessionBroadcast } = await import('./agentCommands-DSuseMnA.mjs');
953
952
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
954
953
  } else if (sessionSubcommand === "inbox") {
955
954
  const inboxSubcmd = sessionArgs[1];
@@ -960,7 +959,7 @@ async function handleSessionCommand() {
960
959
  process.exit(1);
961
960
  }
962
961
  if (agentSessionId) {
963
- const { inboxSend } = await import('./agentCommands-OmAUQEmr.mjs');
962
+ const { inboxSend } = await import('./agentCommands-DSuseMnA.mjs');
964
963
  await inboxSend(sessionArgs[2], {
965
964
  body: sessionArgs[3],
966
965
  subject: parseFlagStr("--subject"),
@@ -975,7 +974,7 @@ async function handleSessionCommand() {
975
974
  }
976
975
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
977
976
  if (agentSessionId && !sessionArgs[2]) {
978
- const { inboxList } = await import('./agentCommands-OmAUQEmr.mjs');
977
+ const { inboxList } = await import('./agentCommands-DSuseMnA.mjs');
979
978
  await inboxList({
980
979
  unread: hasFlag("--unread"),
981
980
  limit: parseFlagInt("--limit"),
@@ -997,7 +996,7 @@ async function handleSessionCommand() {
997
996
  process.exit(1);
998
997
  }
999
998
  if (agentSessionId && !sessionArgs[3]) {
1000
- const { inboxList } = await import('./agentCommands-OmAUQEmr.mjs');
999
+ const { inboxList } = await import('./agentCommands-DSuseMnA.mjs');
1001
1000
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1002
1001
  } else if (sessionArgs[3]) {
1003
1002
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1007,7 +1006,7 @@ async function handleSessionCommand() {
1007
1006
  }
1008
1007
  } else if (inboxSubcmd === "reply") {
1009
1008
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1010
- const { inboxReply } = await import('./agentCommands-OmAUQEmr.mjs');
1009
+ const { inboxReply } = await import('./agentCommands-DSuseMnA.mjs');
1011
1010
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1012
1011
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1013
1012
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1045,7 +1044,7 @@ async function handleMachineCommand() {
1045
1044
  return;
1046
1045
  }
1047
1046
  if (machineSubcommand === "share") {
1048
- const { machineShare } = await import('./commands-0PBW1VfU.mjs');
1047
+ const { machineShare } = await import('./commands-BZlezQUp.mjs');
1049
1048
  let machineId;
1050
1049
  const shareArgs = [];
1051
1050
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1096,14 +1095,14 @@ async function handleMachineCommand() {
1096
1095
  process.exit(1);
1097
1096
  }
1098
1097
  if (all) {
1099
- const { fleetExec } = await import('./fleet-CtQoW6vh.mjs');
1098
+ const { fleetExec } = await import('./fleet-3DWzy3Ug.mjs');
1100
1099
  await fleetExec(command, { cwd });
1101
1100
  } else {
1102
- const { machineExec } = await import('./commands-0PBW1VfU.mjs');
1101
+ const { machineExec } = await import('./commands-BZlezQUp.mjs');
1103
1102
  await machineExec(machineId, command, cwd);
1104
1103
  }
1105
1104
  } else if (machineSubcommand === "info") {
1106
- const { machineInfo } = await import('./commands-0PBW1VfU.mjs');
1105
+ const { machineInfo } = await import('./commands-BZlezQUp.mjs');
1107
1106
  let machineId;
1108
1107
  for (let i = 1; i < machineArgs.length; i++) {
1109
1108
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1123,10 +1122,10 @@ async function handleMachineCommand() {
1123
1122
  level = machineArgs[++i];
1124
1123
  }
1125
1124
  }
1126
- const { machineNotify } = await import('./agentCommands-OmAUQEmr.mjs');
1125
+ const { machineNotify } = await import('./agentCommands-DSuseMnA.mjs');
1127
1126
  await machineNotify(message, level);
1128
1127
  } else if (machineSubcommand === "ls") {
1129
- const { machineLs } = await import('./commands-0PBW1VfU.mjs');
1128
+ const { machineLs } = await import('./commands-BZlezQUp.mjs');
1130
1129
  let machineId;
1131
1130
  let showHidden = false;
1132
1131
  let path;
@@ -1182,20 +1181,20 @@ Examples:
1182
1181
  };
1183
1182
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1184
1183
  if (sub === "status") {
1185
- const { fleetStatus } = await import('./fleet-CtQoW6vh.mjs');
1184
+ const { fleetStatus } = await import('./fleet-3DWzy3Ug.mjs');
1186
1185
  await fleetStatus();
1187
1186
  } else if (sub === "upgrade-claude") {
1188
- const { fleetUpgradeClaude } = await import('./fleet-CtQoW6vh.mjs');
1187
+ const { fleetUpgradeClaude } = await import('./fleet-3DWzy3Ug.mjs');
1189
1188
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1190
1189
  } else if (sub === "upgrade-svamp") {
1191
- const { fleetUpgradeSvamp } = await import('./fleet-CtQoW6vh.mjs');
1190
+ const { fleetUpgradeSvamp } = await import('./fleet-3DWzy3Ug.mjs');
1192
1191
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1193
1192
  } else if (sub === "daemon-restart") {
1194
- const { fleetDaemonRestart } = await import('./fleet-CtQoW6vh.mjs');
1193
+ const { fleetDaemonRestart } = await import('./fleet-3DWzy3Ug.mjs');
1195
1194
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1196
1195
  } else if (sub === "push-skill") {
1197
1196
  const name = fleetArgs[1];
1198
- const { fleetPushSkill } = await import('./fleet-CtQoW6vh.mjs');
1197
+ const { fleetPushSkill } = await import('./fleet-3DWzy3Ug.mjs');
1199
1198
  await fleetPushSkill(name);
1200
1199
  } else {
1201
1200
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1211,7 +1210,7 @@ async function handleSkillsCommand() {
1211
1210
  await printSkillsHelp();
1212
1211
  return;
1213
1212
  }
1214
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-Bnga6vGN.mjs');
1213
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BXU_kWD5.mjs');
1215
1214
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1216
1215
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1217
1216
  if (!query) {
@@ -1258,7 +1257,7 @@ async function loginToHypha() {
1258
1257
  process.exit(1);
1259
1258
  }
1260
1259
  const anchor = anchorArg.replace(/\/+$/, "");
1261
- const { loadInstanceConfig } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.ae; });
1260
+ const { loadInstanceConfig } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.ae; });
1262
1261
  let cfg = null;
1263
1262
  try {
1264
1263
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1369,7 +1368,7 @@ async function logoutFromHypha() {
1369
1368
  } catch {
1370
1369
  }
1371
1370
  try {
1372
- const { clearInstanceConfigCache } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.ae; });
1371
+ const { clearInstanceConfigCache } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.ae; });
1373
1372
  clearInstanceConfigCache();
1374
1373
  } catch {
1375
1374
  }
@@ -1707,7 +1706,7 @@ async function applyClaudeAuthFlags(argv) {
1707
1706
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1708
1707
  );
1709
1708
  }
1710
- const mod = await import('./run-B67n-NAA.mjs').then(function (n) { return n.a7; });
1709
+ const mod = await import('./run-BLG1uhad.mjs').then(function (n) { return n.a7; });
1711
1710
  if (hasHypha) {
1712
1711
  let url;
1713
1712
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1761,7 +1760,7 @@ async function applyDaemonShareFlag(argv) {
1761
1760
  }
1762
1761
  }
1763
1762
  if (collected.length === 0) return;
1764
- const { updateEnvFile } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.a7; });
1763
+ const { updateEnvFile } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.a7; });
1765
1764
  const seen = /* @__PURE__ */ new Set();
1766
1765
  const deduped = collected.filter((e) => {
1767
1766
  const k = e.toLowerCase();
@@ -1794,7 +1793,7 @@ async function handleWiseAgentCommand(rest) {
1794
1793
  }
1795
1794
  });
1796
1795
  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(" ");
1797
- const { wiseAskCli } = await import('./commands-0PBW1VfU.mjs');
1796
+ const { wiseAskCli } = await import('./commands-BZlezQUp.mjs');
1798
1797
  await wiseAskCli(machineId, message, sessionId, { json });
1799
1798
  return;
1800
1799
  }
@@ -1806,7 +1805,7 @@ async function handleWiseAgentCommand(rest) {
1806
1805
  }
1807
1806
  return void 0;
1808
1807
  };
1809
- const { runWiseVoiceCli } = await import('./headlessCli-yE__qyd0.mjs');
1808
+ const { runWiseVoiceCli } = await import('./headlessCli-DC84Bk-k.mjs');
1810
1809
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1811
1810
  return;
1812
1811
  }
@@ -1824,7 +1823,7 @@ async function handleWiseAgentCommand(rest) {
1824
1823
  const mode = valueOf(["--mode"]);
1825
1824
  const mission = valueOf(["--mission"]);
1826
1825
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1827
- const { wiseJoinMeetingCli } = await import('./commands-0PBW1VfU.mjs');
1826
+ const { wiseJoinMeetingCli } = await import('./commands-BZlezQUp.mjs');
1828
1827
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1829
1828
  return;
1830
1829
  }
@@ -1836,7 +1835,7 @@ async function handleWiseAgentCommand(rest) {
1836
1835
  }
1837
1836
  return void 0;
1838
1837
  };
1839
- const { wiseLeaveMeetingCli } = await import('./commands-0PBW1VfU.mjs');
1838
+ const { wiseLeaveMeetingCli } = await import('./commands-BZlezQUp.mjs');
1840
1839
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1841
1840
  return;
1842
1841
  }
@@ -1860,7 +1859,7 @@ async function handleWiseAgentCommand(rest) {
1860
1859
  }
1861
1860
  });
1862
1861
  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(" ");
1863
- const { wiseAnnounceCli } = await import('./commands-0PBW1VfU.mjs');
1862
+ const { wiseAnnounceCli } = await import('./commands-BZlezQUp.mjs');
1864
1863
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1865
1864
  return;
1866
1865
  }
@@ -1872,7 +1871,7 @@ async function handleWiseAgentCommand(rest) {
1872
1871
  }
1873
1872
  return void 0;
1874
1873
  };
1875
- const { wiseMeetingsCli } = await import('./commands-0PBW1VfU.mjs');
1874
+ const { wiseMeetingsCli } = await import('./commands-BZlezQUp.mjs');
1876
1875
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1877
1876
  return;
1878
1877
  }
@@ -1922,7 +1921,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1922
1921
  return;
1923
1922
  }
1924
1923
  const authArgs = rest.slice(1);
1925
- const mod = await import('./auth-CsF_lTax.mjs');
1924
+ const mod = await import('./auth-BJnvX133.mjs');
1926
1925
  let action;
1927
1926
  try {
1928
1927
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1932,7 +1931,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1932
1931
  return;
1933
1932
  }
1934
1933
  if (action) {
1935
- const { updateEnvFile } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.a7; });
1934
+ const { updateEnvFile } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.a7; });
1936
1935
  const updates = mod.buildWiseAgentEnvUpdates(action);
1937
1936
  updateEnvFile(updates);
1938
1937
  for (const [k, v] of Object.entries(updates)) {
@@ -1946,7 +1945,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1946
1945
  }
1947
1946
  async function handleDaemonAuthCommand(argv) {
1948
1947
  const sub = (argv[0] || "status").toLowerCase();
1949
- const mod = await import('./run-B67n-NAA.mjs').then(function (n) { return n.a7; });
1948
+ const mod = await import('./run-BLG1uhad.mjs').then(function (n) { return n.a7; });
1950
1949
  if (sub === "--help" || sub === "-h" || sub === "help") {
1951
1950
  console.log(`
1952
1951
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2259,7 +2258,7 @@ Examples:
2259
2258
  async function printSkillsHelp() {
2260
2259
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2261
2260
  try {
2262
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-B67n-NAA.mjs').then(function (n) { return n.af; });
2261
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BLG1uhad.mjs').then(function (n) { return n.af; });
2263
2262
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2264
2263
  } catch {
2265
2264
  }
@@ -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-BmLtGcxT.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-BBuB68o-.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-0PBW1VfU.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.mjs');
72
72
  const { server, machine } = await connectAndGetMachine();
73
73
  try {
74
74
  const status = await machine.tunnelStart({
@@ -87,7 +87,7 @@ async function serviceExpose(args) {
87
87
  console.log(` port ${port}: ${url}`);
88
88
  }
89
89
  if (process.env.SVAMP_SESSION_ID) {
90
- const { autoAddSessionLink } = await import('./agentCommands-OmAUQEmr.mjs');
90
+ const { autoAddSessionLink } = await import('./agentCommands-DSuseMnA.mjs');
91
91
  let added = 0;
92
92
  for (const [port, url] of urlEntries) {
93
93
  const label = urlEntries.length > 1 ? `${name}:${port}` : name;
@@ -133,7 +133,7 @@ async function serviceServe(args) {
133
133
  };
134
134
  process.on("SIGINT", cleanup);
135
135
  process.on("SIGTERM", cleanup);
136
- const { runFrpcTunnel } = await import('./frpc-BmLtGcxT.mjs');
136
+ const { runFrpcTunnel } = await import('./frpc-BBuB68o-.mjs');
137
137
  await runFrpcTunnel(name, [caddyPort]);
138
138
  } catch (err) {
139
139
  console.error(`Error serving directory: ${err.message}`);
@@ -142,7 +142,7 @@ async function serviceServe(args) {
142
142
  }
143
143
  async function serviceList(_args) {
144
144
  try {
145
- const { connectAndGetMachine } = await import('./commands-0PBW1VfU.mjs');
145
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.mjs');
146
146
  const { server, machine } = await connectAndGetMachine();
147
147
  try {
148
148
  const tunnels = await machine.tunnelList({});
@@ -182,7 +182,7 @@ async function serviceDelete(args) {
182
182
  process.exit(1);
183
183
  }
184
184
  try {
185
- const { connectAndGetMachine } = await import('./commands-0PBW1VfU.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.mjs');
186
186
  const { server, machine } = await connectAndGetMachine();
187
187
  try {
188
188
  await machine.tunnelStop({ name });
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-B67n-NAA.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-BLG1uhad.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 { 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-B67n-NAA.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-BLG1uhad.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -2521,7 +2521,6 @@ async function sessionLoopStart(sessionIdPartial, task, machineId, opts) {
2521
2521
  ...opts?.parent ? { parent: opts.parent } : {},
2522
2522
  ...maxIterations != null ? { max_iterations: maxIterations } : {},
2523
2523
  ...budget ? { budget } : {},
2524
- ...opts?.engine ? { engine: opts.engine } : {},
2525
2524
  evaluator
2526
2525
  }
2527
2526
  });
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { m as resolveProjectRoot } from './run-B67n-NAA.mjs';
2
+ import { m as resolveProjectRoot } from './run-BLG1uhad.mjs';
3
3
  import { c as workflowSteps, s as setWorkflowEnabled, i as isWorkflowEnabled, r as removeWorkflow, g as getWorkflow, l as listWorkflows, a as saveWorkflow, b as rawWorkflow } from './store-BTs0H_y0.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
@@ -1,7 +1,7 @@
1
1
  import { execSync } from 'node:child_process';
2
2
  import { existsSync, readFileSync } from 'node:fs';
3
3
  import { join } from 'node:path';
4
- 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-B67n-NAA.mjs';
4
+ 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-BLG1uhad.mjs';
5
5
  import 'os';
6
6
  import 'fs/promises';
7
7
  import 'fs';
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-0PBW1VfU.mjs';
3
+ import { connectAndGetMachine } from './commands-BZlezQUp.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-B67n-NAA.mjs';
8
+ import './run-BLG1uhad.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -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-0PBW1VfU.mjs';
3
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-BZlezQUp.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-B67n-NAA.mjs';
5
+ import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-BLG1uhad.mjs';
6
6
  import 'node:os';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -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-B67n-NAA.mjs';
4
+ import { c as connectToHypha } from './run-BLG1uhad.mjs';
5
5
  import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-VIupR1NK.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-B67n-NAA.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-BLG1uhad.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-B67n-NAA.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-JrQ_I8T4.mjs';
1
+ import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-BLG1uhad.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-D4EHhsI3.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-B67n-NAA.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-BLG1uhad.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.221-canary.1";
2
+ var version = "0.2.221";
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-B67n-NAA.mjs';
1
+ import { m as resolveProjectRoot } from './run-BLG1uhad.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-B67n-NAA.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-BLG1uhad.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-BmLtGcxT.mjs');
2915
+ const { FrpcTunnel } = await import('./frpc-BBuB68o-.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-JrQ_I8T4.mjs');
3362
+ const { toolsForRole } = await import('./sideband-D4EHhsI3.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-0PBW1VfU.mjs');
3461
+ const { queryCore } = await import('./commands-BZlezQUp.mjs');
3462
3462
  const timeout = c.reply?.timeout_sec || 120;
3463
3463
  let result;
3464
3464
  try {
@@ -10721,7 +10721,7 @@ You are running inside a Svamp session (id: ${sessionId}${handle ? `, handle: ${
10721
10721
 
10722
10722
  **Session state:**
10723
10723
  - \`svamp session set-title "<topic>"\` \u2014 your session topic: a short sentence describing what you're working on. It's the index the user and other agents see when listing sessions, so set it after your first reply and update it as focus shifts (else it's auto-summarized for you).
10724
- - \`svamp session link add "<url>" --label "<label>" [--icon "\u{1F517}"]\` \u2014 surface viewable artifacts (dashboards, reports, apps) as buttons in the composer "Launch Pad". Manage many: \`link list\` \xB7 \`link update <id> [--url|--label|--icon]\` \xB7 \`link remove <id>\`. Adding the same URL again UPDATES that entry (URL is the dedup key \u2014 no duplicates). Tunnel/exposed URLs from \`svamp service expose\` are added to the Launch Pad AUTOMATICALLY, so do NOT \`session link add\` a URL you just exposed. (\`session set-link "<url>" "<label>"\` still sets a single link \u2014 back-compat.)
10724
+ - \`svamp session link add "<url>" --label "<label>" [--icon "\u{1F517}"]\` \u2014 surface viewable artifacts (dashboards, reports, apps) as buttons in the composer "Launch Pad". Manage many: \`link list\` \xB7 \`link update <id> [--url|--label|--icon]\` \xB7 \`link remove <id>\`. Adding the same URL again UPDATES that entry (URL is the dedup key \u2014 no duplicates). Tunnel/exposed URLs from \`svamp service expose\` are added to the Launch Pad AUTOMATICALLY, so do NOT \`session link add\` a URL you just exposed. A session can have MANY links (the Launch Pad); \`session set-link "<url>" "<label>"\` also appends + dedupes by URL (alias of \`link add\`).
10725
10725
  - \`svamp session notify "<msg>" [--level info|warning|error]\` \u2014 send a user notification
10726
10726
 
10727
10727
  **Artifacts (rich inline output):** Write HTML to a file (\`.svamp/<sessionId>/outputs/\` for disposable, \`./outputs/\` for persistent) and emit \`<artifact src="./outputs/viz.html" title="..." />\` \u2014 the Svamp client renders it inline as a sandboxed iframe with theme CSS vars, auto-resize, file inlining, and a header with Reload/Fullscreen/\u22EE menu. Modes: \`default\`, \`bare\` (controls on hover), \`immersive\` (no chrome), \`card\` (click-to-open preview with \`description\`+\`poster\`). Use \`<artifact src="https://..." height="540" />\` to embed a live server. Run \`svamp serve <name> <dir>\` to share. Use a real backend server (\`svamp service expose\`) when you need persistence/auth. See the \`artifact\` skill.
@@ -11520,18 +11520,6 @@ function initLoop(directory, cfg) {
11520
11520
  const res = spawnSync(process.execPath, args, { encoding: "utf-8", timeout: 3e4 });
11521
11521
  return res.status === 0;
11522
11522
  }
11523
- function buildGoalCondition(o) {
11524
- const parts = [];
11525
- if (o.task) parts.push(o.task.trim());
11526
- if (o.until) parts.push(`Done when: ${o.until.trim()}.`);
11527
- if (o.oracle) parts.push(`Verify by running \`${o.oracle.trim()}\` at the end of every turn and pasting its output; it must succeed (exit 0 / no pending work).`);
11528
- if (!o.until && !o.oracle && o.task) parts.push("Done when the task is fully complete and you have shown the evidence that proves it.");
11529
- parts.push(`Or stop after ${o.maxIterations && o.maxIterations > 0 ? o.maxIterations : 20} turns.`);
11530
- return parts.join(" ");
11531
- }
11532
- function useGoalEngine(cfg) {
11533
- return cfg && cfg.engine === "goal" || process.env.SVAMP_LOOP_ENGINE === "goal";
11534
- }
11535
11523
  function ensureLoopHooks(directory, sessionId) {
11536
11524
  try {
11537
11525
  const settingsPath = join$1(directory, ".claude", "settings.json");
@@ -11771,15 +11759,6 @@ function createSvampConfigChecker(directory, sessionId, getMetadata, setMetadata
11771
11759
  sessionService.pushMessage({ type: "message", message: `\u{1F501} Loop limit updated${newMax != null ? ` \u2192 max ${newMax} iterations` : ""}${wasStopped ? " \u2014 resuming" : ""}.` }, "event");
11772
11760
  logger.log(`[svampConfig] Loop limit modified (max=${newMax}, resumed=${wasStopped}, restarted=${wasStopped})`);
11773
11761
  }
11774
- } else if (cfg && typeof cfg === "object" && (task || until) && useGoalEngine(cfg)) {
11775
- const oracle = typeof cfg.oracle === "string" && cfg.oracle.trim() ? cfg.oracle.trim() : void 0;
11776
- const maxIterations = typeof cfg.max_iterations === "number" ? cfg.max_iterations : typeof cfg.max_rounds === "number" ? cfg.max_rounds : 20;
11777
- const condition = buildGoalCondition({ task, until, oracle, maxIterations });
11778
- const existingQueue = getMetadata().messageQueue || [];
11779
- setMetadata((m) => ({ ...m, messageQueue: [...existingQueue, { id: randomUUID$1(), text: `/goal ${condition}`, displayText: `\u{1F3AF} Goal: ${(task || until || "").slice(0, 100)}`, createdAt: Date.now() }] }));
11780
- onLoopActivated?.();
11781
- sessionService.pushMessage({ type: "message", message: `\u{1F3AF} Goal set (native /goal): ${condition.slice(0, 160)}${condition.length > 160 ? "\u2026" : ""}` }, "event");
11782
- logger.log(`[svampConfig] Goal engine (native /goal): "${condition.slice(0, 80)}"`);
11783
11762
  } else if (cfg && typeof cfg === "object" && (task || until)) {
11784
11763
  const oracle = typeof cfg.oracle === "string" && cfg.oracle.trim() ? cfg.oracle.trim() : void 0;
11785
11764
  const evaluator = cfg.evaluator !== false;
@@ -12261,7 +12240,7 @@ async function startDaemon(options) {
12261
12240
  saveExposedTunnels(list);
12262
12241
  }
12263
12242
  async function createExposedTunnel(spec) {
12264
- const { FrpcTunnel } = await import('./frpc-BmLtGcxT.mjs');
12243
+ const { FrpcTunnel } = await import('./frpc-BBuB68o-.mjs');
12265
12244
  const tunnel = new FrpcTunnel({
12266
12245
  name: spec.name,
12267
12246
  ports: spec.ports,
@@ -12281,7 +12260,7 @@ async function startDaemon(options) {
12281
12260
  return tunnel;
12282
12261
  }
12283
12262
  const tunnelRecreateState = /* @__PURE__ */ new Map();
12284
- const { ServeManager } = await import('./serveManager-DdQde3Od.mjs');
12263
+ const { ServeManager } = await import('./serveManager-MR7XJuvS.mjs');
12285
12264
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
12286
12265
  ensureAutoInstalledSkills(logger).catch(() => {
12287
12266
  });
@@ -14176,11 +14155,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14176
14155
  });
14177
14156
  },
14178
14157
  onIssue: async (params) => {
14179
- const { issueRpc } = await import('./rpc-BsXr2DHR.mjs');
14158
+ const { issueRpc } = await import('./rpc-DYFbcVha.mjs');
14180
14159
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
14181
14160
  },
14182
14161
  onWorkflow: async (params) => {
14183
- const { workflowRpc } = await import('./rpc-DHs2NeQx.mjs');
14162
+ const { workflowRpc } = await import('./rpc-B-o36NVg.mjs');
14184
14163
  return workflowRpc(params?.cwd || directory, params || {});
14185
14164
  },
14186
14165
  onRipgrep: async (args, cwd) => {
@@ -14713,11 +14692,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14713
14692
  });
14714
14693
  },
14715
14694
  onIssue: async (params) => {
14716
- const { issueRpc } = await import('./rpc-BsXr2DHR.mjs');
14695
+ const { issueRpc } = await import('./rpc-DYFbcVha.mjs');
14717
14696
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
14718
14697
  },
14719
14698
  onWorkflow: async (params) => {
14720
- const { workflowRpc } = await import('./rpc-DHs2NeQx.mjs');
14699
+ const { workflowRpc } = await import('./rpc-B-o36NVg.mjs');
14721
14700
  return workflowRpc(params?.cwd || directory, params || {});
14722
14701
  },
14723
14702
  onRipgrep: async (args, cwd) => {
@@ -15491,7 +15470,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
15491
15470
  const PING_TIMEOUT_MS = 15e3;
15492
15471
  const POST_RECONNECT_GRACE_MS = 2e4;
15493
15472
  const RECONNECT_JITTER_MS = 2500;
15494
- const { WorkflowScheduler } = await import('./scheduler-DIdb5J1i.mjs');
15473
+ const { WorkflowScheduler } = await import('./scheduler-BnCIxKPW.mjs');
15495
15474
  const workflowScheduler = new WorkflowScheduler({
15496
15475
  projectRoots: () => {
15497
15476
  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-B67n-NAA.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-BLG1uhad.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-B67n-NAA.mjs';
1
+ import { m as resolveProjectRoot, y as cronMatches } from './run-BLG1uhad.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-0PBW1VfU.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.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-0PBW1VfU.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-BZlezQUp.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-B67n-NAA.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-BLG1uhad.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-BmLtGcxT.mjs');
736
+ const { FrpcTunnel } = await import('./frpc-BBuB68o-.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-B67n-NAA.mjs';
1
+ import { R as READ_ONLY_TOOLS, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-BLG1uhad.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.221-canary.1",
3
+ "version": "0.2.221",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",