svamp-cli 0.2.113 → 0.2.114

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 { n as shortId } from './run-g8QqDNJ1.mjs';
5
+ import { n as shortId } from './run-aNUfTpRW.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-g8QqDNJ1.mjs').then(function (n) { return n.T; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.T; });
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-OvJA3HMg.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-C29ciVUe.mjs');
184
184
  return connectAndGetMachine();
185
185
  }
186
186
  async function inboxSend(targetSessionId, opts) {
@@ -197,7 +197,7 @@ async function inboxSend(targetSessionId, opts) {
197
197
  }
198
198
  const { server, machine } = await connectToMachineService();
199
199
  try {
200
- const { resolveSessionId } = await import('./commands-OvJA3HMg.mjs');
200
+ const { resolveSessionId } = await import('./commands-C29ciVUe.mjs');
201
201
  const sessions = await machine.listSessions();
202
202
  const match = resolveSessionId(sessions, targetSessionId);
203
203
  const fullTargetId = match.sessionId;
@@ -1,4 +1,4 @@
1
- import { F as resolveModel } from './run-g8QqDNJ1.mjs';
1
+ import { F as resolveModel } from './run-aNUfTpRW.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -11,8 +11,8 @@ import 'node:fs';
11
11
  import 'node:child_process';
12
12
  import 'util';
13
13
  import 'node:path';
14
- import 'node:os';
15
14
  import 'node:events';
15
+ import 'node:os';
16
16
  import '@agentclientprotocol/sdk';
17
17
  import '@modelcontextprotocol/sdk/client/index.js';
18
18
  import '@modelcontextprotocol/sdk/client/stdio.js';
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-g8QqDNJ1.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-aNUfTpRW.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
@@ -12,8 +12,8 @@ import 'node:fs';
12
12
  import 'node:child_process';
13
13
  import 'util';
14
14
  import 'node:path';
15
- import 'node:os';
16
15
  import 'node:events';
16
+ import 'node:os';
17
17
  import '@agentclientprotocol/sdk';
18
18
  import '@modelcontextprotocol/sdk/client/index.js';
19
19
  import '@modelcontextprotocol/sdk/client/stdio.js';
@@ -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-g8QqDNJ1.mjs').then(function (n) { return n._; });
37
+ const { getLoadedConfig } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n._; });
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-g8QqDNJ1.mjs').then(function (n) { return n.a0; });
54
+ const { restartDaemon } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.a0; });
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-DNEyZ3Vj.mjs');
347
+ const { handleServiceCommand } = await import('./commands-BYBzqLJZ.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-BRx6Jc8n.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-BoFSdzkv.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-KZSTNdxq.mjs');
364
+ const { processCommand } = await import('./commands-BBQI_6EM.mjs');
365
365
  let machineId;
366
366
  const processArgs = args.slice(1);
367
367
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -375,7 +375,7 @@ async function main() {
375
375
  }), machineId);
376
376
  process.exit(0);
377
377
  } else if (subcommand === "routine" || subcommand === "routines") {
378
- const { routineCommand } = await import('./commands--7ZWIjpI.mjs');
378
+ const { routineCommand } = await import('./commands-1DLUHWZ5.mjs');
379
379
  await routineCommand(args.slice(1));
380
380
  process.exit(0);
381
381
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
@@ -386,7 +386,7 @@ async function main() {
386
386
  } else if (!subcommand || subcommand === "start") {
387
387
  await handleInteractiveCommand();
388
388
  } else if (subcommand === "--version" || subcommand === "-v") {
389
- const pkg = await import('./package-CFN2KBIk.mjs').catch(() => ({ default: { version: "unknown" } }));
389
+ const pkg = await import('./package-PUmSILNZ.mjs').catch(() => ({ default: { version: "unknown" } }));
390
390
  console.log(`svamp version: ${pkg.default.version}`);
391
391
  } else {
392
392
  console.error(`Unknown command: ${subcommand}`);
@@ -395,7 +395,7 @@ async function main() {
395
395
  }
396
396
  }
397
397
  async function handleInteractiveCommand() {
398
- const { runInteractive } = await import('./run-CZ8x2LxA.mjs');
398
+ const { runInteractive } = await import('./run-CiiUhPNf.mjs');
399
399
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
400
400
  let directory = process.cwd();
401
401
  let resumeSessionId;
@@ -440,7 +440,7 @@ async function handleAgentCommand() {
440
440
  return;
441
441
  }
442
442
  if (agentArgs[0] === "list") {
443
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.W; });
443
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.W; });
444
444
  console.log("Known agents:");
445
445
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
446
446
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -452,7 +452,7 @@ async function handleAgentCommand() {
452
452
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
453
453
  return;
454
454
  }
455
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.W; });
455
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.W; });
456
456
  let cwd = process.cwd();
457
457
  const filteredArgs = [];
458
458
  for (let i = 0; i < agentArgs.length; i++) {
@@ -476,12 +476,12 @@ async function handleAgentCommand() {
476
476
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
477
477
  let backend;
478
478
  if (KNOWN_MCP_AGENTS[config.agentName]) {
479
- const { CodexMcpBackend } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.X; });
479
+ const { CodexMcpBackend } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.X; });
480
480
  backend = new CodexMcpBackend({ cwd, log: logFn });
481
481
  } else {
482
- const { AcpBackend } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.V; });
483
- const { GeminiTransport } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.Y; });
484
- const { DefaultTransport } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.U; });
482
+ const { AcpBackend } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.V; });
483
+ const { GeminiTransport } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.Y; });
484
+ const { DefaultTransport } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.U; });
485
485
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
486
486
  backend = new AcpBackend({
487
487
  agentName: config.agentName,
@@ -608,7 +608,7 @@ async function handleSessionCommand() {
608
608
  process.exit(1);
609
609
  }
610
610
  }
611
- 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-OvJA3HMg.mjs');
611
+ 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-C29ciVUe.mjs');
612
612
  const parseFlagStr = (flag, shortFlag) => {
613
613
  for (let i = 1; i < sessionArgs.length; i++) {
614
614
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -676,7 +676,7 @@ async function handleSessionCommand() {
676
676
  allowDomain.push(sessionArgs[++i]);
677
677
  }
678
678
  }
679
- const { parseShareArg } = await import('./commands-OvJA3HMg.mjs');
679
+ const { parseShareArg } = await import('./commands-C29ciVUe.mjs');
680
680
  const shareEntries = share.map((s) => parseShareArg(s));
681
681
  await sessionSpawn(agent, dir, targetMachineId, {
682
682
  message,
@@ -763,7 +763,7 @@ async function handleSessionCommand() {
763
763
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
764
764
  process.exit(1);
765
765
  }
766
- const { sessionQuery } = await import('./commands-OvJA3HMg.mjs');
766
+ const { sessionQuery } = await import('./commands-C29ciVUe.mjs');
767
767
  await sessionQuery(dir, prompt, targetMachineId, {
768
768
  timeout: parseFlagInt("--timeout"),
769
769
  json: hasFlag("--json"),
@@ -796,7 +796,7 @@ async function handleSessionCommand() {
796
796
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
797
797
  process.exit(1);
798
798
  }
799
- const { sessionApprove } = await import('./commands-OvJA3HMg.mjs');
799
+ const { sessionApprove } = await import('./commands-C29ciVUe.mjs');
800
800
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
801
801
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
802
802
  json: hasFlag("--json")
@@ -806,7 +806,7 @@ async function handleSessionCommand() {
806
806
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
807
807
  process.exit(1);
808
808
  }
809
- const { sessionDeny } = await import('./commands-OvJA3HMg.mjs');
809
+ const { sessionDeny } = await import('./commands-C29ciVUe.mjs');
810
810
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
811
811
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
812
812
  json: hasFlag("--json")
@@ -841,7 +841,7 @@ async function handleSessionCommand() {
841
841
  console.error("Usage: svamp session set-title <title>");
842
842
  process.exit(1);
843
843
  }
844
- const { sessionSetTitle } = await import('./agentCommands-zkS91i_Q.mjs');
844
+ const { sessionSetTitle } = await import('./agentCommands-D53qtjbo.mjs');
845
845
  await sessionSetTitle(title);
846
846
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
847
847
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -849,7 +849,7 @@ async function handleSessionCommand() {
849
849
  console.error("Usage: svamp session set-project-description <text>");
850
850
  process.exit(1);
851
851
  }
852
- const { sessionSetProjectDescription } = await import('./agentCommands-zkS91i_Q.mjs');
852
+ const { sessionSetProjectDescription } = await import('./agentCommands-D53qtjbo.mjs');
853
853
  await sessionSetProjectDescription(desc);
854
854
  } else if (sessionSubcommand === "set-link") {
855
855
  const url = sessionArgs[1];
@@ -858,7 +858,7 @@ async function handleSessionCommand() {
858
858
  process.exit(1);
859
859
  }
860
860
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
861
- const { sessionSetLink } = await import('./agentCommands-zkS91i_Q.mjs');
861
+ const { sessionSetLink } = await import('./agentCommands-D53qtjbo.mjs');
862
862
  await sessionSetLink(url, label);
863
863
  } else if (sessionSubcommand === "notify") {
864
864
  const message = sessionArgs[1];
@@ -867,7 +867,7 @@ async function handleSessionCommand() {
867
867
  process.exit(1);
868
868
  }
869
869
  const level = parseFlagStr("--level") || "info";
870
- const { sessionNotify } = await import('./agentCommands-zkS91i_Q.mjs');
870
+ const { sessionNotify } = await import('./agentCommands-D53qtjbo.mjs');
871
871
  await sessionNotify(message, level);
872
872
  } else if (sessionSubcommand === "broadcast") {
873
873
  const action = sessionArgs[1];
@@ -875,7 +875,7 @@ async function handleSessionCommand() {
875
875
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
876
876
  process.exit(1);
877
877
  }
878
- const { sessionBroadcast } = await import('./agentCommands-zkS91i_Q.mjs');
878
+ const { sessionBroadcast } = await import('./agentCommands-D53qtjbo.mjs');
879
879
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
880
880
  } else if (sessionSubcommand === "inbox") {
881
881
  const inboxSubcmd = sessionArgs[1];
@@ -886,7 +886,7 @@ async function handleSessionCommand() {
886
886
  process.exit(1);
887
887
  }
888
888
  if (agentSessionId) {
889
- const { inboxSend } = await import('./agentCommands-zkS91i_Q.mjs');
889
+ const { inboxSend } = await import('./agentCommands-D53qtjbo.mjs');
890
890
  await inboxSend(sessionArgs[2], {
891
891
  body: sessionArgs[3],
892
892
  subject: parseFlagStr("--subject"),
@@ -901,7 +901,7 @@ async function handleSessionCommand() {
901
901
  }
902
902
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
903
903
  if (agentSessionId && !sessionArgs[2]) {
904
- const { inboxList } = await import('./agentCommands-zkS91i_Q.mjs');
904
+ const { inboxList } = await import('./agentCommands-D53qtjbo.mjs');
905
905
  await inboxList({
906
906
  unread: hasFlag("--unread"),
907
907
  limit: parseFlagInt("--limit"),
@@ -923,7 +923,7 @@ async function handleSessionCommand() {
923
923
  process.exit(1);
924
924
  }
925
925
  if (agentSessionId && !sessionArgs[3]) {
926
- const { inboxList } = await import('./agentCommands-zkS91i_Q.mjs');
926
+ const { inboxList } = await import('./agentCommands-D53qtjbo.mjs');
927
927
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
928
928
  } else if (sessionArgs[3]) {
929
929
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -933,7 +933,7 @@ async function handleSessionCommand() {
933
933
  }
934
934
  } else if (inboxSubcmd === "reply") {
935
935
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
936
- const { inboxReply } = await import('./agentCommands-zkS91i_Q.mjs');
936
+ const { inboxReply } = await import('./agentCommands-D53qtjbo.mjs');
937
937
  await inboxReply(sessionArgs[2], sessionArgs[3]);
938
938
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
939
939
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -969,7 +969,7 @@ async function handleMachineCommand() {
969
969
  return;
970
970
  }
971
971
  if (machineSubcommand === "share") {
972
- const { machineShare } = await import('./commands-OvJA3HMg.mjs');
972
+ const { machineShare } = await import('./commands-C29ciVUe.mjs');
973
973
  let machineId;
974
974
  const shareArgs = [];
975
975
  for (let i = 1; i < machineArgs.length; i++) {
@@ -999,7 +999,7 @@ async function handleMachineCommand() {
999
999
  }
1000
1000
  await machineShare(machineId, { add, remove, list, configPath, showConfig });
1001
1001
  } else if (machineSubcommand === "exec") {
1002
- const { machineExec } = await import('./commands-OvJA3HMg.mjs');
1002
+ const { machineExec } = await import('./commands-C29ciVUe.mjs');
1003
1003
  let machineId;
1004
1004
  let cwd;
1005
1005
  const cmdParts = [];
@@ -1019,7 +1019,7 @@ async function handleMachineCommand() {
1019
1019
  }
1020
1020
  await machineExec(machineId, command, cwd);
1021
1021
  } else if (machineSubcommand === "info") {
1022
- const { machineInfo } = await import('./commands-OvJA3HMg.mjs');
1022
+ const { machineInfo } = await import('./commands-C29ciVUe.mjs');
1023
1023
  let machineId;
1024
1024
  for (let i = 1; i < machineArgs.length; i++) {
1025
1025
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1039,10 +1039,10 @@ async function handleMachineCommand() {
1039
1039
  level = machineArgs[++i];
1040
1040
  }
1041
1041
  }
1042
- const { machineNotify } = await import('./agentCommands-zkS91i_Q.mjs');
1042
+ const { machineNotify } = await import('./agentCommands-D53qtjbo.mjs');
1043
1043
  await machineNotify(message, level);
1044
1044
  } else if (machineSubcommand === "ls") {
1045
- const { machineLs } = await import('./commands-OvJA3HMg.mjs');
1045
+ const { machineLs } = await import('./commands-C29ciVUe.mjs');
1046
1046
  let machineId;
1047
1047
  let showHidden = false;
1048
1048
  let path;
@@ -1100,24 +1100,24 @@ Examples:
1100
1100
  };
1101
1101
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1102
1102
  if (sub === "status") {
1103
- const { fleetStatus } = await import('./fleet-BGK4vxm9.mjs');
1103
+ const { fleetStatus } = await import('./fleet--CAdje9C.mjs');
1104
1104
  await fleetStatus();
1105
1105
  } else if (sub === "exec") {
1106
1106
  const command = fleetArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1107
- const { fleetExec } = await import('./fleet-BGK4vxm9.mjs');
1107
+ const { fleetExec } = await import('./fleet--CAdje9C.mjs');
1108
1108
  await fleetExec(command, { cwd: flag("cwd") });
1109
1109
  } else if (sub === "upgrade-claude") {
1110
- const { fleetUpgradeClaude } = await import('./fleet-BGK4vxm9.mjs');
1110
+ const { fleetUpgradeClaude } = await import('./fleet--CAdje9C.mjs');
1111
1111
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1112
1112
  } else if (sub === "upgrade-svamp") {
1113
- const { fleetUpgradeSvamp } = await import('./fleet-BGK4vxm9.mjs');
1113
+ const { fleetUpgradeSvamp } = await import('./fleet--CAdje9C.mjs');
1114
1114
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1115
1115
  } else if (sub === "daemon-restart") {
1116
- const { fleetDaemonRestart } = await import('./fleet-BGK4vxm9.mjs');
1116
+ const { fleetDaemonRestart } = await import('./fleet--CAdje9C.mjs');
1117
1117
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1118
1118
  } else if (sub === "push-skill") {
1119
1119
  const name = fleetArgs[1];
1120
- const { fleetPushSkill } = await import('./fleet-BGK4vxm9.mjs');
1120
+ const { fleetPushSkill } = await import('./fleet--CAdje9C.mjs');
1121
1121
  await fleetPushSkill(name);
1122
1122
  } else {
1123
1123
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1133,7 +1133,7 @@ async function handleSkillsCommand() {
1133
1133
  await printSkillsHelp();
1134
1134
  return;
1135
1135
  }
1136
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DqFpATSJ.mjs');
1136
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BcIz9gl2.mjs');
1137
1137
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1138
1138
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1139
1139
  if (!query) {
@@ -1180,7 +1180,7 @@ async function loginToHypha() {
1180
1180
  process.exit(1);
1181
1181
  }
1182
1182
  const anchor = anchorArg.replace(/\/+$/, "");
1183
- const { loadInstanceConfig } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n._; });
1183
+ const { loadInstanceConfig } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n._; });
1184
1184
  let cfg = null;
1185
1185
  try {
1186
1186
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1291,7 +1291,7 @@ async function logoutFromHypha() {
1291
1291
  } catch {
1292
1292
  }
1293
1293
  try {
1294
- const { clearInstanceConfigCache } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n._; });
1294
+ const { clearInstanceConfigCache } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n._; });
1295
1295
  clearInstanceConfigCache();
1296
1296
  } catch {
1297
1297
  }
@@ -1622,7 +1622,7 @@ async function applyClaudeAuthFlags(argv) {
1622
1622
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1623
1623
  );
1624
1624
  }
1625
- const mod = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.Z; });
1625
+ const mod = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.Z; });
1626
1626
  if (hasHypha) {
1627
1627
  let url;
1628
1628
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1676,7 +1676,7 @@ async function applyDaemonShareFlag(argv) {
1676
1676
  }
1677
1677
  }
1678
1678
  if (collected.length === 0) return;
1679
- const { updateEnvFile } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.Z; });
1679
+ const { updateEnvFile } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.Z; });
1680
1680
  const seen = /* @__PURE__ */ new Set();
1681
1681
  const deduped = collected.filter((e) => {
1682
1682
  const k = e.toLowerCase();
@@ -1709,7 +1709,7 @@ async function handleWiseAgentCommand(rest) {
1709
1709
  }
1710
1710
  });
1711
1711
  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(" ");
1712
- const { wiseAskCli } = await import('./commands-OvJA3HMg.mjs');
1712
+ const { wiseAskCli } = await import('./commands-C29ciVUe.mjs');
1713
1713
  await wiseAskCli(machineId, message, sessionId, { json });
1714
1714
  return;
1715
1715
  }
@@ -1721,7 +1721,7 @@ async function handleWiseAgentCommand(rest) {
1721
1721
  }
1722
1722
  return void 0;
1723
1723
  };
1724
- const { runWiseVoiceCli } = await import('./headlessCli-B7ZcrWiW.mjs');
1724
+ const { runWiseVoiceCli } = await import('./headlessCli-C6MzdWRW.mjs');
1725
1725
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1726
1726
  return;
1727
1727
  }
@@ -1763,7 +1763,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1763
1763
  return;
1764
1764
  }
1765
1765
  const authArgs = rest.slice(1);
1766
- const mod = await import('./auth-DR24t5Ld.mjs');
1766
+ const mod = await import('./auth-Ykv_kVPM.mjs');
1767
1767
  let action;
1768
1768
  try {
1769
1769
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1773,7 +1773,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1773
1773
  return;
1774
1774
  }
1775
1775
  if (action) {
1776
- const { updateEnvFile } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.Z; });
1776
+ const { updateEnvFile } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.Z; });
1777
1777
  const updates = mod.buildWiseAgentEnvUpdates(action);
1778
1778
  updateEnvFile(updates);
1779
1779
  for (const [k, v] of Object.entries(updates)) {
@@ -1787,7 +1787,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1787
1787
  }
1788
1788
  async function handleDaemonAuthCommand(argv) {
1789
1789
  const sub = (argv[0] || "status").toLowerCase();
1790
- const mod = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.Z; });
1790
+ const mod = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.Z; });
1791
1791
  if (sub === "--help" || sub === "-h" || sub === "help") {
1792
1792
  console.log(`
1793
1793
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2090,7 +2090,7 @@ Examples:
2090
2090
  async function printSkillsHelp() {
2091
2091
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2092
2092
  try {
2093
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-g8QqDNJ1.mjs').then(function (n) { return n.$; });
2093
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-aNUfTpRW.mjs').then(function (n) { return n.$; });
2094
2094
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2095
2095
  } catch {
2096
2096
  }
@@ -1,6 +1,6 @@
1
1
  import { execFileSync } from 'node:child_process';
2
2
  import { createServer } from 'node:http';
3
- import { R as RoutineStore, m as RoutineRunner } from './run-g8QqDNJ1.mjs';
3
+ import { R as RoutineStore, m as RoutineRunner } from './run-aNUfTpRW.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
6
6
  import 'fs';
@@ -12,8 +12,8 @@ import 'node:crypto';
12
12
  import 'node:fs';
13
13
  import 'util';
14
14
  import 'node:path';
15
- import 'node:os';
16
15
  import 'node:events';
16
+ import 'node:os';
17
17
  import '@agentclientprotocol/sdk';
18
18
  import '@modelcontextprotocol/sdk/client/index.js';
19
19
  import '@modelcontextprotocol/sdk/client/stdio.js';
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-OvJA3HMg.mjs';
3
+ import { connectAndGetMachine } from './commands-C29ciVUe.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-g8QqDNJ1.mjs';
8
+ import './run-aNUfTpRW.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-fsq8Ua7l.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-BjWZ129L.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-OvJA3HMg.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-C29ciVUe.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-fsq8Ua7l.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-BjWZ129L.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-OvJA3HMg.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-C29ciVUe.mjs');
136
136
  const { server, machine } = await connectAndGetMachine();
137
137
  try {
138
138
  const tunnels = await machine.tunnelList({});
@@ -161,7 +161,7 @@ async function serviceDelete(args) {
161
161
  process.exit(1);
162
162
  }
163
163
  try {
164
- const { connectAndGetMachine } = await import('./commands-OvJA3HMg.mjs');
164
+ const { connectAndGetMachine } = await import('./commands-C29ciVUe.mjs');
165
165
  const { server, machine } = await connectAndGetMachine();
166
166
  try {
167
167
  await machine.tunnelStop({ name });
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { p as parseFrontmatter, o as getSkillsServer, q as getSkillsWorkspaceName, t as getSkillsCollectionName, u as fetchWithTimeout, v as searchSkills, w as SKILLS_DIR, x as getSkillInfo, y as downloadSkillFile, z as listSkillFiles } from './run-g8QqDNJ1.mjs';
4
+ import { p as parseFrontmatter, o as getSkillsServer, q as getSkillsWorkspaceName, t as getSkillsCollectionName, u as fetchWithTimeout, v as searchSkills, w as SKILLS_DIR, x as getSkillInfo, y as downloadSkillFile, z as listSkillFiles } from './run-aNUfTpRW.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -11,8 +11,8 @@ import 'node:fs';
11
11
  import 'node:child_process';
12
12
  import 'util';
13
13
  import 'node:path';
14
- import 'node:os';
15
14
  import 'node:events';
15
+ import 'node:os';
16
16
  import '@agentclientprotocol/sdk';
17
17
  import '@modelcontextprotocol/sdk/client/index.js';
18
18
  import '@modelcontextprotocol/sdk/client/stdio.js';
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from 'node:fs';
2
2
  import { execSync } from 'node:child_process';
3
3
  import { basename, resolve, join } from 'node:path';
4
4
  import os from 'node:os';
5
- import { G as normalizeAllowedUser, H as loadSecurityContextConfig, I as resolveSecurityContext, J as buildSecurityContextFromFlags, K as mergeSecurityContexts, c as connectToHypha, L as buildSessionShareUrl, M as computeOutboundHop, n as shortId, N as buildMachineShareUrl } from './run-g8QqDNJ1.mjs';
5
+ import { G as normalizeAllowedUser, H as loadSecurityContextConfig, I as resolveSecurityContext, J as buildSecurityContextFromFlags, K as mergeSecurityContexts, c as connectToHypha, L as buildSessionShareUrl, M as computeOutboundHop, n as shortId, N as buildMachineShareUrl } from './run-aNUfTpRW.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -1518,6 +1518,8 @@ async function collectAssistantResponse(machine, fullId, afterSeq) {
1518
1518
  let cursor = afterSeq;
1519
1519
  const collected = [];
1520
1520
  const seqs = [];
1521
+ const resultText = [];
1522
+ const resultSeqs = [];
1521
1523
  for (let i = 0; i < 20; i++) {
1522
1524
  const { messages, hasMore } = await machine.sessionRPC(
1523
1525
  fullId,
@@ -1546,18 +1548,19 @@ async function collectAssistantResponse(machine, fullId, afterSeq) {
1546
1548
  }
1547
1549
  }
1548
1550
  } else if (data.type === "result" && typeof data.result === "string" && data.result) {
1549
- collected.push(data.result);
1550
- if (!seqs.includes(msg.seq)) seqs.push(msg.seq);
1551
+ resultText.push(data.result);
1552
+ if (!resultSeqs.includes(msg.seq)) resultSeqs.push(msg.seq);
1551
1553
  } else if (data.type === "output" && data.data?.type === "result" && typeof data.data.result === "string" && data.data.result) {
1552
- collected.push(data.data.result);
1553
- if (!seqs.includes(msg.seq)) seqs.push(msg.seq);
1554
+ resultText.push(data.data.result);
1555
+ if (!resultSeqs.includes(msg.seq)) resultSeqs.push(msg.seq);
1554
1556
  }
1555
1557
  }
1556
1558
  cursor = Math.max(cursor, Number(msg.seq || 0));
1557
1559
  }
1558
1560
  if (!hasMore) break;
1559
1561
  }
1560
- return { text: collected.join("\n").trim(), messageSeqs: seqs };
1562
+ if (collected.length) return { text: collected.join("\n").trim(), messageSeqs: seqs };
1563
+ return { text: resultText.join("\n").trim(), messageSeqs: resultSeqs };
1561
1564
  }
1562
1565
  function validateSendOptions(opts) {
1563
1566
  if (opts?.plain) {
@@ -2298,7 +2301,7 @@ async function sessionLoopStart(sessionIdPartial, task, machineId, opts) {
2298
2301
  });
2299
2302
  console.log(`Loop started on session ${fullId.slice(0, 8)}`);
2300
2303
  console.log(` Task: ${task.slice(0, 100)}${task.length > 100 ? "..." : ""}`);
2301
- if (opts?.criteria) console.log(` Success criteria: ${opts.criteria.slice(0, 100)}`);
2304
+ if (opts?.criteria) console.log(` Success criteria: ${opts.criteria.slice(0, 100)}${opts.criteria.length > 100 ? "..." : ""}`);
2302
2305
  console.log(` Oracle: ${opts?.oracle || "(none)"}`);
2303
2306
  console.log(` Evaluator: ${evaluator ? "on" : "off"}`);
2304
2307
  console.log(` Max iterations: ${maxIterations}`);
@@ -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-g8QqDNJ1.mjs';
4
+ import { c as connectToHypha } from './run-aNUfTpRW.mjs';
5
5
  import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-HydRNEt7.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
@@ -3,7 +3,7 @@ import { mkdirSync, writeFileSync, unlinkSync, existsSync, chmodSync, readFileSy
3
3
  import { join } from 'path';
4
4
  import { homedir, platform, arch } from 'os';
5
5
  import { createHash, randomUUID } from 'crypto';
6
- import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-g8QqDNJ1.mjs';
6
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-aNUfTpRW.mjs';
7
7
  import 'fs/promises';
8
8
  import 'url';
9
9
  import 'node:crypto';
@@ -11,8 +11,8 @@ import 'node:fs';
11
11
  import 'node:child_process';
12
12
  import 'util';
13
13
  import 'node:path';
14
- import 'node:os';
15
14
  import 'node:events';
15
+ import 'node:os';
16
16
  import '@agentclientprotocol/sdk';
17
17
  import '@modelcontextprotocol/sdk/client/index.js';
18
18
  import '@modelcontextprotocol/sdk/client/stdio.js';