svamp-cli 0.2.126 → 0.2.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
2
2
  import { join, dirname } from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
5
- import { m as shortId } from './run-BBEOoZQB.mjs';
5
+ import { m as shortId } from './run-BlfxwBzW.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-BBEOoZQB.mjs').then(function (n) { return n.Z; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.Z; });
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-B7dBbVtO.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-B7dBbVtO.mjs');
200
+ const { resolveSessionId } = await import('./commands-jr6pFEEu.mjs');
201
201
  const sessions = await machine.listSessions();
202
202
  const match = resolveSessionId(sessions, targetSessionId);
203
203
  const fullTargetId = match.sessionId;
@@ -1,4 +1,4 @@
1
- import { D as resolveModel } from './run-BBEOoZQB.mjs';
1
+ import { D as resolveModel } from './run-BlfxwBzW.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-BBEOoZQB.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-BlfxwBzW.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-BBEOoZQB.mjs').then(function (n) { return n.a4; });
37
+ const { getLoadedConfig } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a4; });
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-BBEOoZQB.mjs').then(function (n) { return n.a6; });
54
+ const { restartDaemon } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a6; });
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-Bku1CX1z.mjs');
347
+ const { handleServiceCommand } = await import('./commands-B_IUeDKc.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-CLajyyDh.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-BwB_v3Iu.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-BYEBc0mj.mjs');
364
+ const { processCommand } = await import('./commands-DI8JKWN3.mjs');
365
365
  let machineId;
366
366
  const processArgs = args.slice(1);
367
367
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -375,14 +375,14 @@ async function main() {
375
375
  }), machineId);
376
376
  process.exit(0);
377
377
  } else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
378
- const { routineCommand } = await import('./commands-BFHlloUM.mjs');
378
+ const { routineCommand } = await import('./commands-DjU6F9YV.mjs');
379
379
  await routineCommand(args.slice(1));
380
380
  process.exit(0);
381
381
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
382
382
  await handleWiseAgentCommand(args.slice(1));
383
383
  process.exit(0);
384
384
  } else if (subcommand === "feature" || subcommand === "crew") {
385
- const { crewCommand } = await import('./commands-Behmq2ba.mjs');
385
+ const { crewCommand } = await import('./commands-O5RnRXX9.mjs');
386
386
  await crewCommand(args.slice(1));
387
387
  process.exit(0);
388
388
  } else if (subcommand === "--help" || subcommand === "-h") {
@@ -390,7 +390,7 @@ async function main() {
390
390
  } else if (!subcommand || subcommand === "start") {
391
391
  await handleInteractiveCommand();
392
392
  } else if (subcommand === "--version" || subcommand === "-v") {
393
- const pkg = await import('./package-pJ-YtyZJ.mjs').catch(() => ({ default: { version: "unknown" } }));
393
+ const pkg = await import('./package-BmYLgVrq.mjs').catch(() => ({ default: { version: "unknown" } }));
394
394
  console.log(`svamp version: ${pkg.default.version}`);
395
395
  } else {
396
396
  console.error(`Unknown command: ${subcommand}`);
@@ -399,7 +399,7 @@ async function main() {
399
399
  }
400
400
  }
401
401
  async function handleInteractiveCommand() {
402
- const { runInteractive } = await import('./run-DQjJjmYH.mjs');
402
+ const { runInteractive } = await import('./run-ukcTnjA4.mjs');
403
403
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
404
404
  let directory = process.cwd();
405
405
  let resumeSessionId;
@@ -444,7 +444,7 @@ async function handleAgentCommand() {
444
444
  return;
445
445
  }
446
446
  if (agentArgs[0] === "list") {
447
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a0; });
447
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a0; });
448
448
  console.log("Known agents:");
449
449
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
450
450
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -456,7 +456,7 @@ async function handleAgentCommand() {
456
456
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
457
457
  return;
458
458
  }
459
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a0; });
459
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a0; });
460
460
  let cwd = process.cwd();
461
461
  const filteredArgs = [];
462
462
  for (let i = 0; i < agentArgs.length; i++) {
@@ -480,12 +480,12 @@ async function handleAgentCommand() {
480
480
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
481
481
  let backend;
482
482
  if (KNOWN_MCP_AGENTS[config.agentName]) {
483
- const { CodexMcpBackend } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a1; });
483
+ const { CodexMcpBackend } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a1; });
484
484
  backend = new CodexMcpBackend({ cwd, log: logFn });
485
485
  } else {
486
- const { AcpBackend } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.$; });
487
- const { GeminiTransport } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a2; });
488
- const { DefaultTransport } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n._; });
486
+ const { AcpBackend } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.$; });
487
+ const { GeminiTransport } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a2; });
488
+ const { DefaultTransport } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n._; });
489
489
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
490
490
  backend = new AcpBackend({
491
491
  agentName: config.agentName,
@@ -612,7 +612,7 @@ async function handleSessionCommand() {
612
612
  process.exit(1);
613
613
  }
614
614
  }
615
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-B7dBbVtO.mjs');
615
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-jr6pFEEu.mjs');
616
616
  const parseFlagStr = (flag, shortFlag) => {
617
617
  for (let i = 1; i < sessionArgs.length; i++) {
618
618
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -680,7 +680,7 @@ async function handleSessionCommand() {
680
680
  allowDomain.push(sessionArgs[++i]);
681
681
  }
682
682
  }
683
- const { parseShareArg } = await import('./commands-B7dBbVtO.mjs');
683
+ const { parseShareArg } = await import('./commands-jr6pFEEu.mjs');
684
684
  const shareEntries = share.map((s) => parseShareArg(s));
685
685
  await sessionSpawn(agent, dir, targetMachineId, {
686
686
  message,
@@ -765,7 +765,7 @@ async function handleSessionCommand() {
765
765
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
766
766
  process.exit(1);
767
767
  }
768
- const { sessionEditMessage } = await import('./commands-B7dBbVtO.mjs');
768
+ const { sessionEditMessage } = await import('./commands-jr6pFEEu.mjs');
769
769
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
770
770
  } else if (sessionSubcommand === "refine") {
771
771
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -773,7 +773,7 @@ async function handleSessionCommand() {
773
773
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
774
774
  process.exit(1);
775
775
  }
776
- const { sessionRefineLastReply } = await import('./commands-B7dBbVtO.mjs');
776
+ const { sessionRefineLastReply } = await import('./commands-jr6pFEEu.mjs');
777
777
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
778
778
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
779
779
  if (!sessionArgs[1]) {
@@ -781,7 +781,7 @@ async function handleSessionCommand() {
781
781
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
782
782
  process.exit(1);
783
783
  }
784
- const { sessionUndoEdit } = await import('./commands-B7dBbVtO.mjs');
784
+ const { sessionUndoEdit } = await import('./commands-jr6pFEEu.mjs');
785
785
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
786
786
  } else if (sessionSubcommand === "query") {
787
787
  const dir = sessionArgs[1];
@@ -791,7 +791,7 @@ async function handleSessionCommand() {
791
791
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
792
792
  process.exit(1);
793
793
  }
794
- const { sessionQuery } = await import('./commands-B7dBbVtO.mjs');
794
+ const { sessionQuery } = await import('./commands-jr6pFEEu.mjs');
795
795
  await sessionQuery(dir, prompt, targetMachineId, {
796
796
  timeout: parseFlagInt("--timeout"),
797
797
  json: hasFlag("--json"),
@@ -824,7 +824,7 @@ async function handleSessionCommand() {
824
824
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
825
825
  process.exit(1);
826
826
  }
827
- const { sessionApprove } = await import('./commands-B7dBbVtO.mjs');
827
+ const { sessionApprove } = await import('./commands-jr6pFEEu.mjs');
828
828
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
829
829
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
830
830
  json: hasFlag("--json")
@@ -834,7 +834,7 @@ async function handleSessionCommand() {
834
834
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
835
835
  process.exit(1);
836
836
  }
837
- const { sessionDeny } = await import('./commands-B7dBbVtO.mjs');
837
+ const { sessionDeny } = await import('./commands-jr6pFEEu.mjs');
838
838
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
839
839
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
840
840
  json: hasFlag("--json")
@@ -868,7 +868,7 @@ async function handleSessionCommand() {
868
868
  console.error('Usage: svamp session supervise <session-id> "<criteria>" [--oracle "cmd"] [--agent] [--parent <id>] [--action nudge|block] [--max N]');
869
869
  process.exit(1);
870
870
  }
871
- const { sessionSupervise } = await import('./commands-B7dBbVtO.mjs');
871
+ const { sessionSupervise } = await import('./commands-jr6pFEEu.mjs');
872
872
  const actionStr = parseFlagStr("--action");
873
873
  await sessionSupervise(sessionArgs[1], sessionArgs[2], targetMachineId, {
874
874
  oracle: parseFlagStr("--oracle"),
@@ -882,7 +882,7 @@ async function handleSessionCommand() {
882
882
  console.error("Usage: svamp session unsupervise <session-id>");
883
883
  process.exit(1);
884
884
  }
885
- const { sessionUnsupervise } = await import('./commands-B7dBbVtO.mjs');
885
+ const { sessionUnsupervise } = await import('./commands-jr6pFEEu.mjs');
886
886
  await sessionUnsupervise(sessionArgs[1], targetMachineId);
887
887
  } else if (sessionSubcommand === "set-title") {
888
888
  const title = sessionArgs[1];
@@ -890,7 +890,7 @@ async function handleSessionCommand() {
890
890
  console.error("Usage: svamp session set-title <title>");
891
891
  process.exit(1);
892
892
  }
893
- const { sessionSetTitle } = await import('./agentCommands-B-lOdNsM.mjs');
893
+ const { sessionSetTitle } = await import('./agentCommands-DLINLmYm.mjs');
894
894
  await sessionSetTitle(title);
895
895
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
896
896
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -898,7 +898,7 @@ async function handleSessionCommand() {
898
898
  console.error("Usage: svamp session set-project-description <text>");
899
899
  process.exit(1);
900
900
  }
901
- const { sessionSetProjectDescription } = await import('./agentCommands-B-lOdNsM.mjs');
901
+ const { sessionSetProjectDescription } = await import('./agentCommands-DLINLmYm.mjs');
902
902
  await sessionSetProjectDescription(desc);
903
903
  } else if (sessionSubcommand === "set-link") {
904
904
  const url = sessionArgs[1];
@@ -907,7 +907,7 @@ async function handleSessionCommand() {
907
907
  process.exit(1);
908
908
  }
909
909
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
910
- const { sessionSetLink } = await import('./agentCommands-B-lOdNsM.mjs');
910
+ const { sessionSetLink } = await import('./agentCommands-DLINLmYm.mjs');
911
911
  await sessionSetLink(url, label);
912
912
  } else if (sessionSubcommand === "notify") {
913
913
  const message = sessionArgs[1];
@@ -916,7 +916,7 @@ async function handleSessionCommand() {
916
916
  process.exit(1);
917
917
  }
918
918
  const level = parseFlagStr("--level") || "info";
919
- const { sessionNotify } = await import('./agentCommands-B-lOdNsM.mjs');
919
+ const { sessionNotify } = await import('./agentCommands-DLINLmYm.mjs');
920
920
  await sessionNotify(message, level);
921
921
  } else if (sessionSubcommand === "broadcast") {
922
922
  const action = sessionArgs[1];
@@ -924,7 +924,7 @@ async function handleSessionCommand() {
924
924
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
925
925
  process.exit(1);
926
926
  }
927
- const { sessionBroadcast } = await import('./agentCommands-B-lOdNsM.mjs');
927
+ const { sessionBroadcast } = await import('./agentCommands-DLINLmYm.mjs');
928
928
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
929
929
  } else if (sessionSubcommand === "inbox") {
930
930
  const inboxSubcmd = sessionArgs[1];
@@ -935,7 +935,7 @@ async function handleSessionCommand() {
935
935
  process.exit(1);
936
936
  }
937
937
  if (agentSessionId) {
938
- const { inboxSend } = await import('./agentCommands-B-lOdNsM.mjs');
938
+ const { inboxSend } = await import('./agentCommands-DLINLmYm.mjs');
939
939
  await inboxSend(sessionArgs[2], {
940
940
  body: sessionArgs[3],
941
941
  subject: parseFlagStr("--subject"),
@@ -950,7 +950,7 @@ async function handleSessionCommand() {
950
950
  }
951
951
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
952
952
  if (agentSessionId && !sessionArgs[2]) {
953
- const { inboxList } = await import('./agentCommands-B-lOdNsM.mjs');
953
+ const { inboxList } = await import('./agentCommands-DLINLmYm.mjs');
954
954
  await inboxList({
955
955
  unread: hasFlag("--unread"),
956
956
  limit: parseFlagInt("--limit"),
@@ -972,7 +972,7 @@ async function handleSessionCommand() {
972
972
  process.exit(1);
973
973
  }
974
974
  if (agentSessionId && !sessionArgs[3]) {
975
- const { inboxList } = await import('./agentCommands-B-lOdNsM.mjs');
975
+ const { inboxList } = await import('./agentCommands-DLINLmYm.mjs');
976
976
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
977
977
  } else if (sessionArgs[3]) {
978
978
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -982,7 +982,7 @@ async function handleSessionCommand() {
982
982
  }
983
983
  } else if (inboxSubcmd === "reply") {
984
984
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
985
- const { inboxReply } = await import('./agentCommands-B-lOdNsM.mjs');
985
+ const { inboxReply } = await import('./agentCommands-DLINLmYm.mjs');
986
986
  await inboxReply(sessionArgs[2], sessionArgs[3]);
987
987
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
988
988
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1018,7 +1018,7 @@ async function handleMachineCommand() {
1018
1018
  return;
1019
1019
  }
1020
1020
  if (machineSubcommand === "share") {
1021
- const { machineShare } = await import('./commands-B7dBbVtO.mjs');
1021
+ const { machineShare } = await import('./commands-jr6pFEEu.mjs');
1022
1022
  let machineId;
1023
1023
  const shareArgs = [];
1024
1024
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1069,14 +1069,14 @@ async function handleMachineCommand() {
1069
1069
  process.exit(1);
1070
1070
  }
1071
1071
  if (all) {
1072
- const { fleetExec } = await import('./fleet-C3joI4cZ.mjs');
1072
+ const { fleetExec } = await import('./fleet-Bxh0SB1L.mjs');
1073
1073
  await fleetExec(command, { cwd });
1074
1074
  } else {
1075
- const { machineExec } = await import('./commands-B7dBbVtO.mjs');
1075
+ const { machineExec } = await import('./commands-jr6pFEEu.mjs');
1076
1076
  await machineExec(machineId, command, cwd);
1077
1077
  }
1078
1078
  } else if (machineSubcommand === "info") {
1079
- const { machineInfo } = await import('./commands-B7dBbVtO.mjs');
1079
+ const { machineInfo } = await import('./commands-jr6pFEEu.mjs');
1080
1080
  let machineId;
1081
1081
  for (let i = 1; i < machineArgs.length; i++) {
1082
1082
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1096,10 +1096,10 @@ async function handleMachineCommand() {
1096
1096
  level = machineArgs[++i];
1097
1097
  }
1098
1098
  }
1099
- const { machineNotify } = await import('./agentCommands-B-lOdNsM.mjs');
1099
+ const { machineNotify } = await import('./agentCommands-DLINLmYm.mjs');
1100
1100
  await machineNotify(message, level);
1101
1101
  } else if (machineSubcommand === "ls") {
1102
- const { machineLs } = await import('./commands-B7dBbVtO.mjs');
1102
+ const { machineLs } = await import('./commands-jr6pFEEu.mjs');
1103
1103
  let machineId;
1104
1104
  let showHidden = false;
1105
1105
  let path;
@@ -1155,20 +1155,20 @@ Examples:
1155
1155
  };
1156
1156
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1157
1157
  if (sub === "status") {
1158
- const { fleetStatus } = await import('./fleet-C3joI4cZ.mjs');
1158
+ const { fleetStatus } = await import('./fleet-Bxh0SB1L.mjs');
1159
1159
  await fleetStatus();
1160
1160
  } else if (sub === "upgrade-claude") {
1161
- const { fleetUpgradeClaude } = await import('./fleet-C3joI4cZ.mjs');
1161
+ const { fleetUpgradeClaude } = await import('./fleet-Bxh0SB1L.mjs');
1162
1162
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1163
1163
  } else if (sub === "upgrade-svamp") {
1164
- const { fleetUpgradeSvamp } = await import('./fleet-C3joI4cZ.mjs');
1164
+ const { fleetUpgradeSvamp } = await import('./fleet-Bxh0SB1L.mjs');
1165
1165
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1166
1166
  } else if (sub === "daemon-restart") {
1167
- const { fleetDaemonRestart } = await import('./fleet-C3joI4cZ.mjs');
1167
+ const { fleetDaemonRestart } = await import('./fleet-Bxh0SB1L.mjs');
1168
1168
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1169
1169
  } else if (sub === "push-skill") {
1170
1170
  const name = fleetArgs[1];
1171
- const { fleetPushSkill } = await import('./fleet-C3joI4cZ.mjs');
1171
+ const { fleetPushSkill } = await import('./fleet-Bxh0SB1L.mjs');
1172
1172
  await fleetPushSkill(name);
1173
1173
  } else {
1174
1174
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1184,7 +1184,7 @@ async function handleSkillsCommand() {
1184
1184
  await printSkillsHelp();
1185
1185
  return;
1186
1186
  }
1187
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-C1e9JecO.mjs');
1187
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-Dc6u_1MJ.mjs');
1188
1188
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1189
1189
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1190
1190
  if (!query) {
@@ -1231,7 +1231,7 @@ async function loginToHypha() {
1231
1231
  process.exit(1);
1232
1232
  }
1233
1233
  const anchor = anchorArg.replace(/\/+$/, "");
1234
- const { loadInstanceConfig } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a4; });
1234
+ const { loadInstanceConfig } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a4; });
1235
1235
  let cfg = null;
1236
1236
  try {
1237
1237
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1342,7 +1342,7 @@ async function logoutFromHypha() {
1342
1342
  } catch {
1343
1343
  }
1344
1344
  try {
1345
- const { clearInstanceConfigCache } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a4; });
1345
+ const { clearInstanceConfigCache } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a4; });
1346
1346
  clearInstanceConfigCache();
1347
1347
  } catch {
1348
1348
  }
@@ -1680,7 +1680,7 @@ async function applyClaudeAuthFlags(argv) {
1680
1680
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1681
1681
  );
1682
1682
  }
1683
- const mod = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a3; });
1683
+ const mod = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a3; });
1684
1684
  if (hasHypha) {
1685
1685
  let url;
1686
1686
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1734,7 +1734,7 @@ async function applyDaemonShareFlag(argv) {
1734
1734
  }
1735
1735
  }
1736
1736
  if (collected.length === 0) return;
1737
- const { updateEnvFile } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a3; });
1737
+ const { updateEnvFile } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a3; });
1738
1738
  const seen = /* @__PURE__ */ new Set();
1739
1739
  const deduped = collected.filter((e) => {
1740
1740
  const k = e.toLowerCase();
@@ -1767,7 +1767,7 @@ async function handleWiseAgentCommand(rest) {
1767
1767
  }
1768
1768
  });
1769
1769
  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(" ");
1770
- const { wiseAskCli } = await import('./commands-B7dBbVtO.mjs');
1770
+ const { wiseAskCli } = await import('./commands-jr6pFEEu.mjs');
1771
1771
  await wiseAskCli(machineId, message, sessionId, { json });
1772
1772
  return;
1773
1773
  }
@@ -1779,7 +1779,7 @@ async function handleWiseAgentCommand(rest) {
1779
1779
  }
1780
1780
  return void 0;
1781
1781
  };
1782
- const { runWiseVoiceCli } = await import('./headlessCli-DanqL1tp.mjs');
1782
+ const { runWiseVoiceCli } = await import('./headlessCli-Cr9zjoij.mjs');
1783
1783
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1784
1784
  return;
1785
1785
  }
@@ -1821,7 +1821,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1821
1821
  return;
1822
1822
  }
1823
1823
  const authArgs = rest.slice(1);
1824
- const mod = await import('./auth-D6IhPxWv.mjs');
1824
+ const mod = await import('./auth-Z14RrrKb.mjs');
1825
1825
  let action;
1826
1826
  try {
1827
1827
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1831,7 +1831,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1831
1831
  return;
1832
1832
  }
1833
1833
  if (action) {
1834
- const { updateEnvFile } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a3; });
1834
+ const { updateEnvFile } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a3; });
1835
1835
  const updates = mod.buildWiseAgentEnvUpdates(action);
1836
1836
  updateEnvFile(updates);
1837
1837
  for (const [k, v] of Object.entries(updates)) {
@@ -1845,7 +1845,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1845
1845
  }
1846
1846
  async function handleDaemonAuthCommand(argv) {
1847
1847
  const sub = (argv[0] || "status").toLowerCase();
1848
- const mod = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a3; });
1848
+ const mod = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a3; });
1849
1849
  if (sub === "--help" || sub === "-h" || sub === "help") {
1850
1850
  console.log(`
1851
1851
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2154,7 +2154,7 @@ Examples:
2154
2154
  async function printSkillsHelp() {
2155
2155
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2156
2156
  try {
2157
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BBEOoZQB.mjs').then(function (n) { return n.a5; });
2157
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BlfxwBzW.mjs').then(function (n) { return n.a5; });
2158
2158
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2159
2159
  } catch {
2160
2160
  }
@@ -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-CS8y_pQV.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-BElGm4ku.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-B7dBbVtO.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-CS8y_pQV.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-BElGm4ku.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-B7dBbVtO.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-B7dBbVtO.mjs');
164
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.mjs');
165
165
  const { server, machine } = await connectAndGetMachine();
166
166
  try {
167
167
  await machine.tunnelStop({ name });
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-B7dBbVtO.mjs';
3
+ import { connectAndGetMachine } from './commands-jr6pFEEu.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-BBEOoZQB.mjs';
8
+ import './run-BlfxwBzW.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { p as parseFrontmatter, n as getSkillsServer, o as getSkillsWorkspaceName, q as getSkillsCollectionName, t as fetchWithTimeout, u as searchSkills, v as SKILLS_DIR, w as getSkillInfo, x as downloadSkillFile, y as listSkillFiles } from './run-BBEOoZQB.mjs';
4
+ import { p as parseFrontmatter, n as getSkillsServer, o as getSkillsWorkspaceName, q as getSkillsCollectionName, t as fetchWithTimeout, u as searchSkills, v as SKILLS_DIR, w as getSkillInfo, x as downloadSkillFile, y as listSkillFiles } from './run-BlfxwBzW.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -1,7 +1,7 @@
1
1
  import { execSync, execFileSync } from 'node:child_process';
2
2
  import { randomUUID } from 'node:crypto';
3
3
  import { createServer } from 'node:http';
4
- import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-BBEOoZQB.mjs';
4
+ import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-BlfxwBzW.mjs';
5
5
  import 'os';
6
6
  import 'fs/promises';
7
7
  import 'fs';
@@ -104,7 +104,7 @@ Criteria: ${res.criteria || "(none)"}
104
104
  urgency: "normal",
105
105
  hopCount: 1
106
106
  };
107
- const { connectAndGetMachine } = await import('./commands-B7dBbVtO.mjs');
107
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.mjs');
108
108
  const { server, machine } = await connectAndGetMachine();
109
109
  try {
110
110
  await machine.sessionRPC(reportTo, "sendInboxMessage", { message });
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from 'node:fs';
2
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-B7dBbVtO.mjs';
2
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-jr6pFEEu.mjs';
3
3
  import { execSync } from 'node:child_process';
4
- import { m as shortId } from './run-BBEOoZQB.mjs';
4
+ import { m as shortId } from './run-BlfxwBzW.mjs';
5
5
  import 'node:path';
6
6
  import 'node:os';
7
7
  import 'os';
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { execSync } from 'node:child_process';
3
3
  import { basename, resolve, join, isAbsolute } from 'node:path';
4
4
  import os from 'node:os';
5
- import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as computeOutboundHop, m as shortId, Q as buildMachineShareUrl, T as parseHandle, U as handleMatchesMetadata } from './run-BBEOoZQB.mjs';
5
+ import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as computeOutboundHop, m as shortId, Q as buildMachineShareUrl, T as parseHandle, U as handleMatchesMetadata } from './run-BlfxwBzW.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -979,18 +979,17 @@ async function listSessionsFromMachines(_server, machines, opts) {
979
979
  directory: s.directory
980
980
  }))));
981
981
  } else {
982
- const header = `${"ID".padEnd(10)} ${"HANDLE".padEnd(24)} ${"AGENT".padEnd(8)} ${"STATUS".padEnd(9)} ${"TITLE".padEnd(22)} ${"MACHINE".padEnd(16)} ${"DIRECTORY".padEnd(30)}`;
982
+ const header = `${"SESSION".padEnd(30)} ${"AGENT".padEnd(8)} ${"STATUS".padEnd(9)} ${"TITLE".padEnd(22)} ${"MACHINE".padEnd(16)} ${"DIRECTORY".padEnd(30)}`;
983
983
  console.log(header);
984
984
  console.log("-".repeat(header.length));
985
985
  for (const s of enriched) {
986
- const id = s.sessionId.slice(0, 8);
987
- const handle = truncate(s.handle || "-", 24).padEnd(24);
986
+ const ref = truncate(s.handle || s.sessionId, 30).padEnd(30);
988
987
  const agent = (s.flavor || "claude").padEnd(8);
989
988
  const status = s.active ? "\x1B[32mactive\x1B[0m " : "\x1B[90minactive\x1B[0m";
990
989
  const name = truncate(s.name || "-", 22).padEnd(22);
991
990
  const machine = truncate(s.host || "-", 14).padEnd(16);
992
991
  const dir = truncate(s.directory || "-", 28).padEnd(30);
993
- console.log(`${id.padEnd(10)} ${handle} ${agent} ${status} ${name} ${machine} ${dir}`);
992
+ console.log(`${ref} ${agent} ${status} ${name} ${machine} ${dir}`);
994
993
  }
995
994
  }
996
995
  }
@@ -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-BBEOoZQB.mjs';
4
+ import { c as connectToHypha } from './run-BlfxwBzW.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-BBEOoZQB.mjs';
6
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-BlfxwBzW.mjs';
7
7
  import 'fs/promises';
8
8
  import 'url';
9
9
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { D as resolveModel, V as describeMisconfiguration, W as buildMachineDeps } from './run-BBEOoZQB.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-Dag80BLV.mjs';
1
+ import { D as resolveModel, V as describeMisconfiguration, W as buildMachineDeps } from './run-BlfxwBzW.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-DDuv8hTP.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-BBEOoZQB.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-BlfxwBzW.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.126";
2
+ var version = "0.2.127";
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";
@@ -2677,7 +2677,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
2677
2677
  const tunnels = handlers.tunnels;
2678
2678
  if (!tunnels) throw new Error("Tunnel management not available");
2679
2679
  if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
2680
- const { FrpcTunnel } = await import('./frpc-CS8y_pQV.mjs');
2680
+ const { FrpcTunnel } = await import('./frpc-BElGm4ku.mjs');
2681
2681
  const tunnel = new FrpcTunnel({
2682
2682
  name: params.name,
2683
2683
  ports: params.ports,
@@ -2938,7 +2938,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
2938
2938
  }
2939
2939
  const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
2940
2940
  const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
2941
- const { toolsForRole } = await import('./sideband-Dag80BLV.mjs');
2941
+ const { toolsForRole } = await import('./sideband-DDuv8hTP.mjs');
2942
2942
  const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
2943
2943
  return fmt(r2);
2944
2944
  }
@@ -3037,7 +3037,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3037
3037
  if (r.error || !r.sender) return { error: r.error || "unauthorized" };
3038
3038
  const callId = "call_" + Math.random().toString(16).slice(2, 12);
3039
3039
  const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
3040
- const { queryCore } = await import('./commands-B7dBbVtO.mjs');
3040
+ const { queryCore } = await import('./commands-jr6pFEEu.mjs');
3041
3041
  const timeout = c.reply?.timeout_sec || 120;
3042
3042
  let result;
3043
3043
  try {
@@ -11359,7 +11359,7 @@ async function startDaemon(options) {
11359
11359
  const list = loadExposedTunnels().filter((t) => t.name !== name);
11360
11360
  saveExposedTunnels(list);
11361
11361
  }
11362
- const { ServeManager } = await import('./serveManager-D-5SgG-_.mjs');
11362
+ const { ServeManager } = await import('./serveManager-CUcXJklY.mjs');
11363
11363
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
11364
11364
  ensureAutoInstalledSkills(logger).catch(() => {
11365
11365
  });
@@ -14047,7 +14047,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14047
14047
  const specs = loadExposedTunnels();
14048
14048
  if (specs.length === 0) return;
14049
14049
  logger.log(`[exposed-tunnels] Restoring ${specs.length} tunnel(s) from ${EXPOSED_TUNNELS_FILE}`);
14050
- const { FrpcTunnel } = await import('./frpc-CS8y_pQV.mjs');
14050
+ const { FrpcTunnel } = await import('./frpc-BElGm4ku.mjs');
14051
14051
  for (const spec of specs) {
14052
14052
  if (tunnels.has(spec.name)) continue;
14053
14053
  try {
@@ -1,4 +1,4 @@
1
- import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { X as generateFriendlyName, m as shortId, c as connectToHypha, a as createSessionStore, r as registerMachineService, Y as generateHookSettings } from './run-BBEOoZQB.mjs';
1
+ import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { X as generateFriendlyName, m as shortId, c as connectToHypha, a as createSessionStore, r as registerMachineService, Y as generateHookSettings } from './run-BlfxwBzW.mjs';
2
2
  import os from 'node:os';
3
3
  import { resolve, join } from 'node:path';
4
4
  import { existsSync, readFileSync, watch } from 'node:fs';
@@ -54,7 +54,7 @@ async function handleServeCommand() {
54
54
  }
55
55
  }
56
56
  async function serveAdd(args, machineId) {
57
- const { connectAndGetMachine } = await import('./commands-B7dBbVtO.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-B7dBbVtO.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-B7dBbVtO.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-B7dBbVtO.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-B7dBbVtO.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-jr6pFEEu.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-BBEOoZQB.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-BlfxwBzW.mjs';
8
8
  import 'os';
9
9
  import 'fs/promises';
10
10
  import 'url';
@@ -713,7 +713,7 @@ class ServeManager {
713
713
  const mount = this.mounts.get(mountName);
714
714
  const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, `static-${subdomainSafe}-${mount.linkToken}`]]) : void 0;
715
715
  try {
716
- const { FrpcTunnel } = await import('./frpc-CS8y_pQV.mjs');
716
+ const { FrpcTunnel } = await import('./frpc-BElGm4ku.mjs');
717
717
  let tunnel;
718
718
  tunnel = new FrpcTunnel({
719
719
  name: tunnelName,
@@ -1,4 +1,4 @@
1
- import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-BBEOoZQB.mjs';
1
+ import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-BlfxwBzW.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.126",
3
+ "version": "0.2.127",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",