svamp-cli 0.2.166 → 0.2.168

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
2
2
  import { join, dirname } from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
5
- import { w as shortId } from './run-DEfioSLJ.mjs';
5
+ import { x as shortId } from './run-Ysr90GYa.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-DEfioSLJ.mjs').then(function (n) { return n.a9; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.a4; });
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-DbEd_EMK.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-C6I52suC.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-DbEd_EMK.mjs');
261
+ const { connectAndResolveSession } = await import('./commands-C6I52suC.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-DbEd_EMK.mjs');
315
+ const { connectAndResolveSession } = await import('./commands-C6I52suC.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 { L as resolveModel } from './run-DEfioSLJ.mjs';
1
+ import { N as resolveModel } from './run-Ysr90GYa.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-DEfioSLJ.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-Ysr90GYa.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-DEfioSLJ.mjs').then(function (n) { return n.ag; });
37
+ const { getLoadedConfig } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.ab; });
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-DEfioSLJ.mjs').then(function (n) { return n.ai; });
54
+ const { restartDaemon } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.ad; });
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-BQTA2fC4.mjs');
347
+ const { handleServiceCommand } = await import('./commands-C1-Av6gC.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-C_DNG6Z1.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-DIq3shgr.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-BLLkJy6f.mjs');
364
+ const { processCommand } = await import('./commands-BroyHnAl.mjs');
365
365
  let machineId;
366
366
  const processArgs = args.slice(1);
367
367
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -375,22 +375,22 @@ 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-D51uPoPK.mjs');
378
+ const { issueCommand } = await import('./commands-B7ZQ6zku.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-l8v1VLPp.mjs');
382
+ const { workflowCommand } = await import('./commands-CzpNw-pk.mjs');
383
383
  await workflowCommand(args.slice(1));
384
384
  process.exit(0);
385
385
  } else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
386
- const { routineCommand } = await import('./commands-DumGHsHS.mjs');
386
+ const { routineCommand } = await import('./commands-f1S2sp3J.mjs');
387
387
  await routineCommand(args.slice(1));
388
388
  process.exit(0);
389
389
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
390
390
  await handleWiseAgentCommand(args.slice(1));
391
391
  process.exit(0);
392
392
  } else if (subcommand === "feature" || subcommand === "crew") {
393
- const { crewCommand } = await import('./commands-Df6MbSt-.mjs');
393
+ const { crewCommand } = await import('./commands-T6DydJZv.mjs');
394
394
  await crewCommand(args.slice(1));
395
395
  process.exit(0);
396
396
  } else if (subcommand === "--help" || subcommand === "-h") {
@@ -398,7 +398,7 @@ async function main() {
398
398
  } else if (!subcommand || subcommand === "start") {
399
399
  await handleInteractiveCommand();
400
400
  } else if (subcommand === "--version" || subcommand === "-v") {
401
- const pkg = await import('./package-Cu7Ik_Mk.mjs').catch(() => ({ default: { version: "unknown" } }));
401
+ const pkg = await import('./package-BNhxGsFD.mjs').catch(() => ({ default: { version: "unknown" } }));
402
402
  console.log(`svamp version: ${pkg.default.version}`);
403
403
  } else {
404
404
  console.error(`Unknown command: ${subcommand}`);
@@ -407,7 +407,7 @@ async function main() {
407
407
  }
408
408
  }
409
409
  async function handleInteractiveCommand() {
410
- const { runInteractive } = await import('./run-D2AdmLLH.mjs');
410
+ const { runInteractive } = await import('./run-D6C1bvAw.mjs');
411
411
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
412
412
  let directory = process.cwd();
413
413
  let resumeSessionId;
@@ -452,7 +452,7 @@ async function handleAgentCommand() {
452
452
  return;
453
453
  }
454
454
  if (agentArgs[0] === "list") {
455
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ac; });
455
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.a7; });
456
456
  console.log("Known agents:");
457
457
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
458
458
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -464,7 +464,7 @@ async function handleAgentCommand() {
464
464
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
465
465
  return;
466
466
  }
467
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ac; });
467
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.a7; });
468
468
  let cwd = process.cwd();
469
469
  const filteredArgs = [];
470
470
  for (let i = 0; i < agentArgs.length; i++) {
@@ -488,12 +488,12 @@ async function handleAgentCommand() {
488
488
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
489
489
  let backend;
490
490
  if (KNOWN_MCP_AGENTS[config.agentName]) {
491
- const { CodexMcpBackend } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ad; });
491
+ const { CodexMcpBackend } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.a8; });
492
492
  backend = new CodexMcpBackend({ cwd, log: logFn });
493
493
  } else {
494
- const { AcpBackend } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ab; });
495
- const { GeminiTransport } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ae; });
496
- const { DefaultTransport } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.aa; });
494
+ const { AcpBackend } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.a6; });
495
+ const { GeminiTransport } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.a9; });
496
+ const { DefaultTransport } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.a5; });
497
497
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
498
498
  backend = new AcpBackend({
499
499
  agentName: config.agentName,
@@ -620,7 +620,7 @@ async function handleSessionCommand() {
620
620
  process.exit(1);
621
621
  }
622
622
  }
623
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionChecklist, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-DbEd_EMK.mjs');
623
+ 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-C6I52suC.mjs');
624
624
  const parseFlagStr = (flag, shortFlag) => {
625
625
  for (let i = 1; i < sessionArgs.length; i++) {
626
626
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -688,7 +688,7 @@ async function handleSessionCommand() {
688
688
  allowDomain.push(sessionArgs[++i]);
689
689
  }
690
690
  }
691
- const { parseShareArg } = await import('./commands-DbEd_EMK.mjs');
691
+ const { parseShareArg } = await import('./commands-C6I52suC.mjs');
692
692
  const shareEntries = share.map((s) => parseShareArg(s));
693
693
  await sessionSpawn(agent, dir, targetMachineId, {
694
694
  message,
@@ -773,7 +773,7 @@ async function handleSessionCommand() {
773
773
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
774
774
  process.exit(1);
775
775
  }
776
- const { sessionEditMessage } = await import('./commands-DbEd_EMK.mjs');
776
+ const { sessionEditMessage } = await import('./commands-C6I52suC.mjs');
777
777
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
778
778
  } else if (sessionSubcommand === "refine") {
779
779
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -781,7 +781,7 @@ async function handleSessionCommand() {
781
781
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
782
782
  process.exit(1);
783
783
  }
784
- const { sessionRefineLastReply } = await import('./commands-DbEd_EMK.mjs');
784
+ const { sessionRefineLastReply } = await import('./commands-C6I52suC.mjs');
785
785
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
786
786
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
787
787
  if (!sessionArgs[1]) {
@@ -789,7 +789,7 @@ async function handleSessionCommand() {
789
789
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
790
790
  process.exit(1);
791
791
  }
792
- const { sessionUndoEdit } = await import('./commands-DbEd_EMK.mjs');
792
+ const { sessionUndoEdit } = await import('./commands-C6I52suC.mjs');
793
793
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
794
794
  } else if (sessionSubcommand === "query") {
795
795
  const dir = sessionArgs[1];
@@ -799,7 +799,7 @@ async function handleSessionCommand() {
799
799
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
800
800
  process.exit(1);
801
801
  }
802
- const { sessionQuery } = await import('./commands-DbEd_EMK.mjs');
802
+ const { sessionQuery } = await import('./commands-C6I52suC.mjs');
803
803
  await sessionQuery(dir, prompt, targetMachineId, {
804
804
  timeout: parseFlagInt("--timeout"),
805
805
  json: hasFlag("--json"),
@@ -832,7 +832,7 @@ async function handleSessionCommand() {
832
832
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
833
833
  process.exit(1);
834
834
  }
835
- const { sessionApprove } = await import('./commands-DbEd_EMK.mjs');
835
+ const { sessionApprove } = await import('./commands-C6I52suC.mjs');
836
836
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
837
837
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
838
838
  json: hasFlag("--json")
@@ -842,7 +842,7 @@ async function handleSessionCommand() {
842
842
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
843
843
  process.exit(1);
844
844
  }
845
- const { sessionDeny } = await import('./commands-DbEd_EMK.mjs');
845
+ const { sessionDeny } = await import('./commands-C6I52suC.mjs');
846
846
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
847
847
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
848
848
  json: hasFlag("--json")
@@ -878,49 +878,13 @@ async function handleSessionCommand() {
878
878
  process.exit(1);
879
879
  }
880
880
  await sessionLoopStatus(sessionArgs[1], targetMachineId);
881
- } else if (sessionSubcommand === "checklist") {
882
- const id = sessionArgs[1];
883
- if (!id) {
884
- console.error('Usage: svamp session checklist <session-id> [get|set|add|rm|done|clear] [args] [--oracle "cmd"]');
885
- console.error(" get (default) show the checklist");
886
- console.error(' set "<a>" "<b>" \u2026 replace the list with these inline items');
887
- console.error(' add "<text>" append one item (--oracle "cmd" attaches a gate)');
888
- console.error(" done <id|#> \u2026 mark item(s) done");
889
- console.error(" rm <id|#> \u2026 remove item(s)");
890
- console.error(" clear clear the checklist and stop the loop");
891
- console.error(" limits: --max N (rounds) \xB7 --max-tokens N \xB7 --max-runtime SEC");
892
- process.exit(1);
893
- }
894
- const CHECKLIST_ACTIONS = ["get", "set", "add", "rm", "done", "clear"];
895
- let action = "get";
896
- let restStart = 2;
897
- if (sessionArgs[2] && CHECKLIST_ACTIONS.includes(sessionArgs[2])) {
898
- action = sessionArgs[2];
899
- restStart = 3;
900
- }
901
- const valueFlags = /* @__PURE__ */ new Set(["--oracle", "--max", "--max-tokens", "--max-runtime", "-m", "--machine"]);
902
- const rest = [];
903
- for (let i = restStart; i < sessionArgs.length; i++) {
904
- const a = sessionArgs[i];
905
- if (a.startsWith("-")) {
906
- if (valueFlags.has(a)) i++;
907
- continue;
908
- }
909
- rest.push(a);
910
- }
911
- await sessionChecklist(id, action, rest, targetMachineId, {
912
- oracle: parseFlagStr("--oracle"),
913
- maxIterations: parseFlagInt("--max") ?? parseFlagInt("--max-iterations"),
914
- maxTokens: parseFlagInt("--max-tokens"),
915
- maxRuntimeSec: parseFlagInt("--max-runtime")
916
- });
917
881
  } else if (sessionSubcommand === "set-title") {
918
882
  const title = sessionArgs[1];
919
883
  if (!title) {
920
884
  console.error("Usage: svamp session set-title <title>");
921
885
  process.exit(1);
922
886
  }
923
- const { sessionSetTitle } = await import('./agentCommands-0rtN3zaT.mjs');
887
+ const { sessionSetTitle } = await import('./agentCommands-g9PNs8mK.mjs');
924
888
  await sessionSetTitle(title);
925
889
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
926
890
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -928,7 +892,7 @@ async function handleSessionCommand() {
928
892
  console.error("Usage: svamp session set-project-description <text>");
929
893
  process.exit(1);
930
894
  }
931
- const { sessionSetProjectDescription } = await import('./agentCommands-0rtN3zaT.mjs');
895
+ const { sessionSetProjectDescription } = await import('./agentCommands-g9PNs8mK.mjs');
932
896
  await sessionSetProjectDescription(desc);
933
897
  } else if (sessionSubcommand === "set-link") {
934
898
  const url = sessionArgs[1];
@@ -937,7 +901,7 @@ async function handleSessionCommand() {
937
901
  process.exit(1);
938
902
  }
939
903
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
940
- const { sessionSetLink } = await import('./agentCommands-0rtN3zaT.mjs');
904
+ const { sessionSetLink } = await import('./agentCommands-g9PNs8mK.mjs');
941
905
  await sessionSetLink(url, label);
942
906
  } else if (sessionSubcommand === "notify") {
943
907
  const message = sessionArgs[1];
@@ -946,7 +910,7 @@ async function handleSessionCommand() {
946
910
  process.exit(1);
947
911
  }
948
912
  const level = parseFlagStr("--level") || "info";
949
- const { sessionNotify } = await import('./agentCommands-0rtN3zaT.mjs');
913
+ const { sessionNotify } = await import('./agentCommands-g9PNs8mK.mjs');
950
914
  await sessionNotify(message, level);
951
915
  } else if (sessionSubcommand === "broadcast") {
952
916
  const action = sessionArgs[1];
@@ -954,7 +918,7 @@ async function handleSessionCommand() {
954
918
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
955
919
  process.exit(1);
956
920
  }
957
- const { sessionBroadcast } = await import('./agentCommands-0rtN3zaT.mjs');
921
+ const { sessionBroadcast } = await import('./agentCommands-g9PNs8mK.mjs');
958
922
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
959
923
  } else if (sessionSubcommand === "inbox") {
960
924
  const inboxSubcmd = sessionArgs[1];
@@ -965,7 +929,7 @@ async function handleSessionCommand() {
965
929
  process.exit(1);
966
930
  }
967
931
  if (agentSessionId) {
968
- const { inboxSend } = await import('./agentCommands-0rtN3zaT.mjs');
932
+ const { inboxSend } = await import('./agentCommands-g9PNs8mK.mjs');
969
933
  await inboxSend(sessionArgs[2], {
970
934
  body: sessionArgs[3],
971
935
  subject: parseFlagStr("--subject"),
@@ -980,7 +944,7 @@ async function handleSessionCommand() {
980
944
  }
981
945
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
982
946
  if (agentSessionId && !sessionArgs[2]) {
983
- const { inboxList } = await import('./agentCommands-0rtN3zaT.mjs');
947
+ const { inboxList } = await import('./agentCommands-g9PNs8mK.mjs');
984
948
  await inboxList({
985
949
  unread: hasFlag("--unread"),
986
950
  limit: parseFlagInt("--limit"),
@@ -1002,7 +966,7 @@ async function handleSessionCommand() {
1002
966
  process.exit(1);
1003
967
  }
1004
968
  if (agentSessionId && !sessionArgs[3]) {
1005
- const { inboxList } = await import('./agentCommands-0rtN3zaT.mjs');
969
+ const { inboxList } = await import('./agentCommands-g9PNs8mK.mjs');
1006
970
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1007
971
  } else if (sessionArgs[3]) {
1008
972
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1012,7 +976,7 @@ async function handleSessionCommand() {
1012
976
  }
1013
977
  } else if (inboxSubcmd === "reply") {
1014
978
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1015
- const { inboxReply } = await import('./agentCommands-0rtN3zaT.mjs');
979
+ const { inboxReply } = await import('./agentCommands-g9PNs8mK.mjs');
1016
980
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1017
981
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1018
982
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1048,7 +1012,7 @@ async function handleMachineCommand() {
1048
1012
  return;
1049
1013
  }
1050
1014
  if (machineSubcommand === "share") {
1051
- const { machineShare } = await import('./commands-DbEd_EMK.mjs');
1015
+ const { machineShare } = await import('./commands-C6I52suC.mjs');
1052
1016
  let machineId;
1053
1017
  const shareArgs = [];
1054
1018
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1099,14 +1063,14 @@ async function handleMachineCommand() {
1099
1063
  process.exit(1);
1100
1064
  }
1101
1065
  if (all) {
1102
- const { fleetExec } = await import('./fleet-Dwk-C37I.mjs');
1066
+ const { fleetExec } = await import('./fleet-TBsV62yr.mjs');
1103
1067
  await fleetExec(command, { cwd });
1104
1068
  } else {
1105
- const { machineExec } = await import('./commands-DbEd_EMK.mjs');
1069
+ const { machineExec } = await import('./commands-C6I52suC.mjs');
1106
1070
  await machineExec(machineId, command, cwd);
1107
1071
  }
1108
1072
  } else if (machineSubcommand === "info") {
1109
- const { machineInfo } = await import('./commands-DbEd_EMK.mjs');
1073
+ const { machineInfo } = await import('./commands-C6I52suC.mjs');
1110
1074
  let machineId;
1111
1075
  for (let i = 1; i < machineArgs.length; i++) {
1112
1076
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1126,10 +1090,10 @@ async function handleMachineCommand() {
1126
1090
  level = machineArgs[++i];
1127
1091
  }
1128
1092
  }
1129
- const { machineNotify } = await import('./agentCommands-0rtN3zaT.mjs');
1093
+ const { machineNotify } = await import('./agentCommands-g9PNs8mK.mjs');
1130
1094
  await machineNotify(message, level);
1131
1095
  } else if (machineSubcommand === "ls") {
1132
- const { machineLs } = await import('./commands-DbEd_EMK.mjs');
1096
+ const { machineLs } = await import('./commands-C6I52suC.mjs');
1133
1097
  let machineId;
1134
1098
  let showHidden = false;
1135
1099
  let path;
@@ -1185,20 +1149,20 @@ Examples:
1185
1149
  };
1186
1150
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1187
1151
  if (sub === "status") {
1188
- const { fleetStatus } = await import('./fleet-Dwk-C37I.mjs');
1152
+ const { fleetStatus } = await import('./fleet-TBsV62yr.mjs');
1189
1153
  await fleetStatus();
1190
1154
  } else if (sub === "upgrade-claude") {
1191
- const { fleetUpgradeClaude } = await import('./fleet-Dwk-C37I.mjs');
1155
+ const { fleetUpgradeClaude } = await import('./fleet-TBsV62yr.mjs');
1192
1156
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1193
1157
  } else if (sub === "upgrade-svamp") {
1194
- const { fleetUpgradeSvamp } = await import('./fleet-Dwk-C37I.mjs');
1158
+ const { fleetUpgradeSvamp } = await import('./fleet-TBsV62yr.mjs');
1195
1159
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1196
1160
  } else if (sub === "daemon-restart") {
1197
- const { fleetDaemonRestart } = await import('./fleet-Dwk-C37I.mjs');
1161
+ const { fleetDaemonRestart } = await import('./fleet-TBsV62yr.mjs');
1198
1162
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1199
1163
  } else if (sub === "push-skill") {
1200
1164
  const name = fleetArgs[1];
1201
- const { fleetPushSkill } = await import('./fleet-Dwk-C37I.mjs');
1165
+ const { fleetPushSkill } = await import('./fleet-TBsV62yr.mjs');
1202
1166
  await fleetPushSkill(name);
1203
1167
  } else {
1204
1168
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1214,7 +1178,7 @@ async function handleSkillsCommand() {
1214
1178
  await printSkillsHelp();
1215
1179
  return;
1216
1180
  }
1217
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BaC0EoLm.mjs');
1181
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BTogAOJz.mjs');
1218
1182
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1219
1183
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1220
1184
  if (!query) {
@@ -1261,7 +1225,7 @@ async function loginToHypha() {
1261
1225
  process.exit(1);
1262
1226
  }
1263
1227
  const anchor = anchorArg.replace(/\/+$/, "");
1264
- const { loadInstanceConfig } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ag; });
1228
+ const { loadInstanceConfig } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.ab; });
1265
1229
  let cfg = null;
1266
1230
  try {
1267
1231
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1372,7 +1336,7 @@ async function logoutFromHypha() {
1372
1336
  } catch {
1373
1337
  }
1374
1338
  try {
1375
- const { clearInstanceConfigCache } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ag; });
1339
+ const { clearInstanceConfigCache } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.ab; });
1376
1340
  clearInstanceConfigCache();
1377
1341
  } catch {
1378
1342
  }
@@ -1710,7 +1674,7 @@ async function applyClaudeAuthFlags(argv) {
1710
1674
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1711
1675
  );
1712
1676
  }
1713
- const mod = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.af; });
1677
+ const mod = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.aa; });
1714
1678
  if (hasHypha) {
1715
1679
  let url;
1716
1680
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1764,7 +1728,7 @@ async function applyDaemonShareFlag(argv) {
1764
1728
  }
1765
1729
  }
1766
1730
  if (collected.length === 0) return;
1767
- const { updateEnvFile } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.af; });
1731
+ const { updateEnvFile } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.aa; });
1768
1732
  const seen = /* @__PURE__ */ new Set();
1769
1733
  const deduped = collected.filter((e) => {
1770
1734
  const k = e.toLowerCase();
@@ -1797,7 +1761,7 @@ async function handleWiseAgentCommand(rest) {
1797
1761
  }
1798
1762
  });
1799
1763
  const message = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
1800
- const { wiseAskCli } = await import('./commands-DbEd_EMK.mjs');
1764
+ const { wiseAskCli } = await import('./commands-C6I52suC.mjs');
1801
1765
  await wiseAskCli(machineId, message, sessionId, { json });
1802
1766
  return;
1803
1767
  }
@@ -1809,7 +1773,7 @@ async function handleWiseAgentCommand(rest) {
1809
1773
  }
1810
1774
  return void 0;
1811
1775
  };
1812
- const { runWiseVoiceCli } = await import('./headlessCli-B7MIr4r2.mjs');
1776
+ const { runWiseVoiceCli } = await import('./headlessCli-C2yyzV9M.mjs');
1813
1777
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1814
1778
  return;
1815
1779
  }
@@ -1827,7 +1791,7 @@ async function handleWiseAgentCommand(rest) {
1827
1791
  const mode = valueOf(["--mode"]);
1828
1792
  const mission = valueOf(["--mission"]);
1829
1793
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1830
- const { wiseJoinMeetingCli } = await import('./commands-DbEd_EMK.mjs');
1794
+ const { wiseJoinMeetingCli } = await import('./commands-C6I52suC.mjs');
1831
1795
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1832
1796
  return;
1833
1797
  }
@@ -1839,7 +1803,7 @@ async function handleWiseAgentCommand(rest) {
1839
1803
  }
1840
1804
  return void 0;
1841
1805
  };
1842
- const { wiseLeaveMeetingCli } = await import('./commands-DbEd_EMK.mjs');
1806
+ const { wiseLeaveMeetingCli } = await import('./commands-C6I52suC.mjs');
1843
1807
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1844
1808
  return;
1845
1809
  }
@@ -1863,7 +1827,7 @@ async function handleWiseAgentCommand(rest) {
1863
1827
  }
1864
1828
  });
1865
1829
  const text = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
1866
- const { wiseAnnounceCli } = await import('./commands-DbEd_EMK.mjs');
1830
+ const { wiseAnnounceCli } = await import('./commands-C6I52suC.mjs');
1867
1831
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1868
1832
  return;
1869
1833
  }
@@ -1875,7 +1839,7 @@ async function handleWiseAgentCommand(rest) {
1875
1839
  }
1876
1840
  return void 0;
1877
1841
  };
1878
- const { wiseMeetingsCli } = await import('./commands-DbEd_EMK.mjs');
1842
+ const { wiseMeetingsCli } = await import('./commands-C6I52suC.mjs');
1879
1843
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1880
1844
  return;
1881
1845
  }
@@ -1925,7 +1889,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1925
1889
  return;
1926
1890
  }
1927
1891
  const authArgs = rest.slice(1);
1928
- const mod = await import('./auth-tsCGoeiF.mjs');
1892
+ const mod = await import('./auth-CuBgQIYh.mjs');
1929
1893
  let action;
1930
1894
  try {
1931
1895
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1935,7 +1899,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1935
1899
  return;
1936
1900
  }
1937
1901
  if (action) {
1938
- const { updateEnvFile } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.af; });
1902
+ const { updateEnvFile } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.aa; });
1939
1903
  const updates = mod.buildWiseAgentEnvUpdates(action);
1940
1904
  updateEnvFile(updates);
1941
1905
  for (const [k, v] of Object.entries(updates)) {
@@ -1949,7 +1913,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1949
1913
  }
1950
1914
  async function handleDaemonAuthCommand(argv) {
1951
1915
  const sub = (argv[0] || "status").toLowerCase();
1952
- const mod = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.af; });
1916
+ const mod = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.aa; });
1953
1917
  if (sub === "--help" || sub === "-h" || sub === "help") {
1954
1918
  console.log(`
1955
1919
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2262,7 +2226,7 @@ Examples:
2262
2226
  async function printSkillsHelp() {
2263
2227
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2264
2228
  try {
2265
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-DEfioSLJ.mjs').then(function (n) { return n.ah; });
2229
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-Ysr90GYa.mjs').then(function (n) { return n.ac; });
2266
2230
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2267
2231
  } catch {
2268
2232
  }
@@ -1,5 +1,5 @@
1
1
  import { execSync } from 'node:child_process';
2
- import { m as resolveProjectRoot, n as searchIssues, o as listIssues, p as addComment, u as updateIssue, q as getIssue, t as summarize, v as addIssue } from './run-DEfioSLJ.mjs';
2
+ import { m as resolveProjectRoot, n as searchIssues, o as listIssues, p as addComment, u as updateIssue, q as getIssue, t as summarize, v as addIssue } from './run-Ysr90GYa.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
5
5
  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 { x as parseFrontmatter, y as getSkillsServer, z as getSkillsWorkspaceName, A as getSkillsCollectionName, B as fetchWithTimeout, C as searchSkills, D as SKILLS_DIR, E as getSkillInfo, F as downloadSkillFile, G as listSkillFiles } from './run-DEfioSLJ.mjs';
4
+ import { y as parseFrontmatter, z as getSkillsServer, A as getSkillsWorkspaceName, B as getSkillsCollectionName, C as fetchWithTimeout, D as searchSkills, E as SKILLS_DIR, F as getSkillInfo, G as downloadSkillFile, H as listSkillFiles } from './run-Ysr90GYa.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-DbEd_EMK.mjs';
3
+ import { connectAndGetMachine } from './commands-C6I52suC.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-DEfioSLJ.mjs';
8
+ import './run-Ysr90GYa.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -58,7 +58,7 @@ async function serviceExpose(args) {
58
58
  process.exit(1);
59
59
  }
60
60
  if (foreground) {
61
- const { runFrpcTunnel } = await import('./frpc-B6KtYbVe.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-bF6D2Qqh.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-DbEd_EMK.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-C6I52suC.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-B6KtYbVe.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-bF6D2Qqh.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-DbEd_EMK.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-C6I52suC.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-DbEd_EMK.mjs');
175
+ const { connectAndGetMachine } = await import('./commands-C6I52suC.mjs');
176
176
  const { server, machine } = await connectAndGetMachine();
177
177
  try {
178
178
  await machine.tunnelStop({ name });