svamp-cli 0.2.92 → 0.2.94

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.
@@ -148,7 +148,7 @@ async function sessionBroadcast(action, args) {
148
148
  console.log(`Broadcast sent: ${action}`);
149
149
  }
150
150
  async function connectToMachineService() {
151
- const { connectAndGetMachine } = await import('./commands-BR_lAgZ0.mjs');
151
+ const { connectAndGetMachine } = await import('./commands-fEd97uFk.mjs');
152
152
  return connectAndGetMachine();
153
153
  }
154
154
  async function inboxSend(targetSessionId, opts) {
@@ -165,7 +165,7 @@ async function inboxSend(targetSessionId, opts) {
165
165
  }
166
166
  const { server, machine } = await connectToMachineService();
167
167
  try {
168
- const { resolveSessionId } = await import('./commands-BR_lAgZ0.mjs');
168
+ const { resolveSessionId } = await import('./commands-fEd97uFk.mjs');
169
169
  const sessions = await machine.listSessions();
170
170
  const match = resolveSessionId(sessions, targetSessionId);
171
171
  const fullTargetId = match.sessionId;
@@ -1,4 +1,4 @@
1
- import { z as resolveModel } from './run-BF4AmFz8.mjs';
1
+ import { E as resolveModel } from './run-NLlVMcrd.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -8,7 +8,6 @@ import 'child_process';
8
8
  import 'crypto';
9
9
  import 'node:fs';
10
10
  import 'node:child_process';
11
- import 'ws';
12
11
  import 'util';
13
12
  import 'node:crypto';
14
13
  import 'node:path';
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-BF4AmFz8.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-NLlVMcrd.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
@@ -9,7 +9,6 @@ import 'child_process';
9
9
  import 'crypto';
10
10
  import 'node:fs';
11
11
  import 'node:child_process';
12
- import 'ws';
13
12
  import 'util';
14
13
  import 'node:crypto';
15
14
  import 'node:path';
@@ -34,7 +33,7 @@ const subcommand = args[0];
34
33
  let daemonSubcommand = args[1];
35
34
  async function main() {
36
35
  try {
37
- const { getLoadedConfig } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.V; });
36
+ const { getLoadedConfig } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.Y; });
38
37
  getLoadedConfig();
39
38
  } catch {
40
39
  }
@@ -51,7 +50,7 @@ async function main() {
51
50
  console.error(`svamp daemon restart: ${err.message || err}`);
52
51
  process.exit(1);
53
52
  }
54
- const { restartDaemon } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.X; });
53
+ const { restartDaemon } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n._; });
55
54
  await restartDaemon();
56
55
  process.exit(0);
57
56
  }
@@ -344,7 +343,7 @@ async function main() {
344
343
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
345
344
  process.exit(1);
346
345
  }
347
- const { handleServiceCommand } = await import('./commands-Dfyuenmi.mjs');
346
+ const { handleServiceCommand } = await import('./commands-Crvn1XhO.mjs');
348
347
  await handleServiceCommand();
349
348
  } else if (subcommand === "serve") {
350
349
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -352,7 +351,7 @@ async function main() {
352
351
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
353
352
  process.exit(1);
354
353
  }
355
- const { handleServeCommand } = await import('./serveCommands-CvhlM4Iz.mjs');
354
+ const { handleServeCommand } = await import('./serveCommands-BNE_5gzO.mjs');
356
355
  await handleServeCommand();
357
356
  process.exit(0);
358
357
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -361,7 +360,7 @@ async function main() {
361
360
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
362
361
  process.exit(1);
363
362
  }
364
- const { processCommand } = await import('./commands-pVw3CcRo.mjs');
363
+ const { processCommand } = await import('./commands-q6eSqgGo.mjs');
365
364
  let machineId;
366
365
  const processArgs = args.slice(1);
367
366
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -375,7 +374,7 @@ async function main() {
375
374
  }), machineId);
376
375
  process.exit(0);
377
376
  } else if (subcommand === "routine" || subcommand === "routines") {
378
- const { routineCommand } = await import('./commands-BxluPors.mjs');
377
+ const { routineCommand } = await import('./commands-N1FOTq1Y.mjs');
379
378
  await routineCommand(args.slice(1));
380
379
  process.exit(0);
381
380
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
@@ -386,7 +385,7 @@ async function main() {
386
385
  } else if (!subcommand || subcommand === "start") {
387
386
  await handleInteractiveCommand();
388
387
  } else if (subcommand === "--version" || subcommand === "-v") {
389
- const pkg = await import('./package-_Qk8lnvq.mjs').catch(() => ({ default: { version: "unknown" } }));
388
+ const pkg = await import('./package-DXh7VIhg.mjs').catch(() => ({ default: { version: "unknown" } }));
390
389
  console.log(`svamp version: ${pkg.default.version}`);
391
390
  } else {
392
391
  console.error(`Unknown command: ${subcommand}`);
@@ -395,7 +394,7 @@ async function main() {
395
394
  }
396
395
  }
397
396
  async function handleInteractiveCommand() {
398
- const { runInteractive } = await import('./run-l1OtW948.mjs');
397
+ const { runInteractive } = await import('./run-BERXqjjm.mjs');
399
398
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
400
399
  let directory = process.cwd();
401
400
  let resumeSessionId;
@@ -440,7 +439,7 @@ async function handleAgentCommand() {
440
439
  return;
441
440
  }
442
441
  if (agentArgs[0] === "list") {
443
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.P; });
442
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.U; });
444
443
  console.log("Known agents:");
445
444
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
446
445
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -452,7 +451,7 @@ async function handleAgentCommand() {
452
451
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
453
452
  return;
454
453
  }
455
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.P; });
454
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.U; });
456
455
  let cwd = process.cwd();
457
456
  const filteredArgs = [];
458
457
  for (let i = 0; i < agentArgs.length; i++) {
@@ -476,12 +475,12 @@ async function handleAgentCommand() {
476
475
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
477
476
  let backend;
478
477
  if (KNOWN_MCP_AGENTS[config.agentName]) {
479
- const { CodexMcpBackend } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.Q; });
478
+ const { CodexMcpBackend } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.V; });
480
479
  backend = new CodexMcpBackend({ cwd, log: logFn });
481
480
  } else {
482
- const { AcpBackend } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.O; });
483
- const { GeminiTransport } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.T; });
484
- const { DefaultTransport } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.N; });
481
+ const { AcpBackend } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.T; });
482
+ const { GeminiTransport } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.W; });
483
+ const { DefaultTransport } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.Q; });
485
484
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
486
485
  backend = new AcpBackend({
487
486
  agentName: config.agentName,
@@ -608,7 +607,7 @@ async function handleSessionCommand() {
608
607
  process.exit(1);
609
608
  }
610
609
  }
611
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionRalphStart, sessionRalphCancel, sessionRalphStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-BR_lAgZ0.mjs');
610
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionRalphStart, sessionRalphCancel, sessionRalphStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-fEd97uFk.mjs');
612
611
  const parseFlagStr = (flag, shortFlag) => {
613
612
  for (let i = 1; i < sessionArgs.length; i++) {
614
613
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -676,7 +675,7 @@ async function handleSessionCommand() {
676
675
  allowDomain.push(sessionArgs[++i]);
677
676
  }
678
677
  }
679
- const { parseShareArg } = await import('./commands-BR_lAgZ0.mjs');
678
+ const { parseShareArg } = await import('./commands-fEd97uFk.mjs');
680
679
  const shareEntries = share.map((s) => parseShareArg(s));
681
680
  await sessionSpawn(agent, dir, targetMachineId, {
682
681
  message,
@@ -763,7 +762,7 @@ async function handleSessionCommand() {
763
762
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
764
763
  process.exit(1);
765
764
  }
766
- const { sessionQuery } = await import('./commands-BR_lAgZ0.mjs');
765
+ const { sessionQuery } = await import('./commands-fEd97uFk.mjs');
767
766
  await sessionQuery(dir, prompt, targetMachineId, {
768
767
  timeout: parseFlagInt("--timeout"),
769
768
  json: hasFlag("--json"),
@@ -796,7 +795,7 @@ async function handleSessionCommand() {
796
795
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
797
796
  process.exit(1);
798
797
  }
799
- const { sessionApprove } = await import('./commands-BR_lAgZ0.mjs');
798
+ const { sessionApprove } = await import('./commands-fEd97uFk.mjs');
800
799
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
801
800
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
802
801
  json: hasFlag("--json")
@@ -806,7 +805,7 @@ async function handleSessionCommand() {
806
805
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
807
806
  process.exit(1);
808
807
  }
809
- const { sessionDeny } = await import('./commands-BR_lAgZ0.mjs');
808
+ const { sessionDeny } = await import('./commands-fEd97uFk.mjs');
810
809
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
811
810
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
812
811
  json: hasFlag("--json")
@@ -842,7 +841,7 @@ async function handleSessionCommand() {
842
841
  console.error("Usage: svamp session set-title <title>");
843
842
  process.exit(1);
844
843
  }
845
- const { sessionSetTitle } = await import('./agentCommands-t6HbehoC.mjs');
844
+ const { sessionSetTitle } = await import('./agentCommands-BxnLztnU.mjs');
846
845
  await sessionSetTitle(title);
847
846
  } else if (sessionSubcommand === "set-link") {
848
847
  const url = sessionArgs[1];
@@ -851,7 +850,7 @@ async function handleSessionCommand() {
851
850
  process.exit(1);
852
851
  }
853
852
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
854
- const { sessionSetLink } = await import('./agentCommands-t6HbehoC.mjs');
853
+ const { sessionSetLink } = await import('./agentCommands-BxnLztnU.mjs');
855
854
  await sessionSetLink(url, label);
856
855
  } else if (sessionSubcommand === "notify") {
857
856
  const message = sessionArgs[1];
@@ -860,7 +859,7 @@ async function handleSessionCommand() {
860
859
  process.exit(1);
861
860
  }
862
861
  const level = parseFlagStr("--level") || "info";
863
- const { sessionNotify } = await import('./agentCommands-t6HbehoC.mjs');
862
+ const { sessionNotify } = await import('./agentCommands-BxnLztnU.mjs');
864
863
  await sessionNotify(message, level);
865
864
  } else if (sessionSubcommand === "broadcast") {
866
865
  const action = sessionArgs[1];
@@ -868,7 +867,7 @@ async function handleSessionCommand() {
868
867
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
869
868
  process.exit(1);
870
869
  }
871
- const { sessionBroadcast } = await import('./agentCommands-t6HbehoC.mjs');
870
+ const { sessionBroadcast } = await import('./agentCommands-BxnLztnU.mjs');
872
871
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
873
872
  } else if (sessionSubcommand === "inbox") {
874
873
  const inboxSubcmd = sessionArgs[1];
@@ -879,7 +878,7 @@ async function handleSessionCommand() {
879
878
  process.exit(1);
880
879
  }
881
880
  if (agentSessionId) {
882
- const { inboxSend } = await import('./agentCommands-t6HbehoC.mjs');
881
+ const { inboxSend } = await import('./agentCommands-BxnLztnU.mjs');
883
882
  await inboxSend(sessionArgs[2], {
884
883
  body: sessionArgs[3],
885
884
  subject: parseFlagStr("--subject"),
@@ -894,7 +893,7 @@ async function handleSessionCommand() {
894
893
  }
895
894
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
896
895
  if (agentSessionId && !sessionArgs[2]) {
897
- const { inboxList } = await import('./agentCommands-t6HbehoC.mjs');
896
+ const { inboxList } = await import('./agentCommands-BxnLztnU.mjs');
898
897
  await inboxList({
899
898
  unread: hasFlag("--unread"),
900
899
  limit: parseFlagInt("--limit"),
@@ -916,7 +915,7 @@ async function handleSessionCommand() {
916
915
  process.exit(1);
917
916
  }
918
917
  if (agentSessionId && !sessionArgs[3]) {
919
- const { inboxList } = await import('./agentCommands-t6HbehoC.mjs');
918
+ const { inboxList } = await import('./agentCommands-BxnLztnU.mjs');
920
919
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
921
920
  } else if (sessionArgs[3]) {
922
921
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -926,7 +925,7 @@ async function handleSessionCommand() {
926
925
  }
927
926
  } else if (inboxSubcmd === "reply") {
928
927
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
929
- const { inboxReply } = await import('./agentCommands-t6HbehoC.mjs');
928
+ const { inboxReply } = await import('./agentCommands-BxnLztnU.mjs');
930
929
  await inboxReply(sessionArgs[2], sessionArgs[3]);
931
930
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
932
931
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -962,7 +961,7 @@ async function handleMachineCommand() {
962
961
  return;
963
962
  }
964
963
  if (machineSubcommand === "share") {
965
- const { machineShare } = await import('./commands-BR_lAgZ0.mjs');
964
+ const { machineShare } = await import('./commands-fEd97uFk.mjs');
966
965
  let machineId;
967
966
  const shareArgs = [];
968
967
  for (let i = 1; i < machineArgs.length; i++) {
@@ -992,7 +991,7 @@ async function handleMachineCommand() {
992
991
  }
993
992
  await machineShare(machineId, { add, remove, list, configPath, showConfig });
994
993
  } else if (machineSubcommand === "exec") {
995
- const { machineExec } = await import('./commands-BR_lAgZ0.mjs');
994
+ const { machineExec } = await import('./commands-fEd97uFk.mjs');
996
995
  let machineId;
997
996
  let cwd;
998
997
  const cmdParts = [];
@@ -1012,7 +1011,7 @@ async function handleMachineCommand() {
1012
1011
  }
1013
1012
  await machineExec(machineId, command, cwd);
1014
1013
  } else if (machineSubcommand === "info") {
1015
- const { machineInfo } = await import('./commands-BR_lAgZ0.mjs');
1014
+ const { machineInfo } = await import('./commands-fEd97uFk.mjs');
1016
1015
  let machineId;
1017
1016
  for (let i = 1; i < machineArgs.length; i++) {
1018
1017
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1032,10 +1031,10 @@ async function handleMachineCommand() {
1032
1031
  level = machineArgs[++i];
1033
1032
  }
1034
1033
  }
1035
- const { machineNotify } = await import('./agentCommands-t6HbehoC.mjs');
1034
+ const { machineNotify } = await import('./agentCommands-BxnLztnU.mjs');
1036
1035
  await machineNotify(message, level);
1037
1036
  } else if (machineSubcommand === "ls") {
1038
- const { machineLs } = await import('./commands-BR_lAgZ0.mjs');
1037
+ const { machineLs } = await import('./commands-fEd97uFk.mjs');
1039
1038
  let machineId;
1040
1039
  let showHidden = false;
1041
1040
  let path;
@@ -1093,24 +1092,24 @@ Examples:
1093
1092
  };
1094
1093
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1095
1094
  if (sub === "status") {
1096
- const { fleetStatus } = await import('./fleet-C3KLMFeD.mjs');
1095
+ const { fleetStatus } = await import('./fleet-D4Au0GFM.mjs');
1097
1096
  await fleetStatus();
1098
1097
  } else if (sub === "exec") {
1099
1098
  const command = fleetArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1100
- const { fleetExec } = await import('./fleet-C3KLMFeD.mjs');
1099
+ const { fleetExec } = await import('./fleet-D4Au0GFM.mjs');
1101
1100
  await fleetExec(command, { cwd: flag("cwd") });
1102
1101
  } else if (sub === "upgrade-claude") {
1103
- const { fleetUpgradeClaude } = await import('./fleet-C3KLMFeD.mjs');
1102
+ const { fleetUpgradeClaude } = await import('./fleet-D4Au0GFM.mjs');
1104
1103
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1105
1104
  } else if (sub === "upgrade-svamp") {
1106
- const { fleetUpgradeSvamp } = await import('./fleet-C3KLMFeD.mjs');
1105
+ const { fleetUpgradeSvamp } = await import('./fleet-D4Au0GFM.mjs');
1107
1106
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1108
1107
  } else if (sub === "daemon-restart") {
1109
- const { fleetDaemonRestart } = await import('./fleet-C3KLMFeD.mjs');
1108
+ const { fleetDaemonRestart } = await import('./fleet-D4Au0GFM.mjs');
1110
1109
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1111
1110
  } else if (sub === "push-skill") {
1112
1111
  const name = fleetArgs[1];
1113
- const { fleetPushSkill } = await import('./fleet-C3KLMFeD.mjs');
1112
+ const { fleetPushSkill } = await import('./fleet-D4Au0GFM.mjs');
1114
1113
  await fleetPushSkill(name);
1115
1114
  } else {
1116
1115
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1126,7 +1125,7 @@ async function handleSkillsCommand() {
1126
1125
  await printSkillsHelp();
1127
1126
  return;
1128
1127
  }
1129
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BHSvizSp.mjs');
1128
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BRg9BTrv.mjs');
1130
1129
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1131
1130
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1132
1131
  if (!query) {
@@ -1173,7 +1172,7 @@ async function loginToHypha() {
1173
1172
  process.exit(1);
1174
1173
  }
1175
1174
  const anchor = anchorArg.replace(/\/+$/, "");
1176
- const { loadInstanceConfig } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.V; });
1175
+ const { loadInstanceConfig } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.Y; });
1177
1176
  let cfg = null;
1178
1177
  try {
1179
1178
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1284,7 +1283,7 @@ async function logoutFromHypha() {
1284
1283
  } catch {
1285
1284
  }
1286
1285
  try {
1287
- const { clearInstanceConfigCache } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.V; });
1286
+ const { clearInstanceConfigCache } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.Y; });
1288
1287
  clearInstanceConfigCache();
1289
1288
  } catch {
1290
1289
  }
@@ -1615,7 +1614,7 @@ async function applyClaudeAuthFlags(argv) {
1615
1614
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1616
1615
  );
1617
1616
  }
1618
- const mod = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.U; });
1617
+ const mod = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.X; });
1619
1618
  if (hasHypha) {
1620
1619
  let url;
1621
1620
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1669,7 +1668,7 @@ async function applyDaemonShareFlag(argv) {
1669
1668
  }
1670
1669
  }
1671
1670
  if (collected.length === 0) return;
1672
- const { updateEnvFile } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.U; });
1671
+ const { updateEnvFile } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.X; });
1673
1672
  const seen = /* @__PURE__ */ new Set();
1674
1673
  const deduped = collected.filter((e) => {
1675
1674
  const k = e.toLowerCase();
@@ -1702,7 +1701,7 @@ async function handleWiseAgentCommand(rest) {
1702
1701
  }
1703
1702
  });
1704
1703
  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(" ");
1705
- const { wiseAskCli } = await import('./commands-BR_lAgZ0.mjs');
1704
+ const { wiseAskCli } = await import('./commands-fEd97uFk.mjs');
1706
1705
  await wiseAskCli(machineId, message, sessionId, { json });
1707
1706
  return;
1708
1707
  }
@@ -1714,7 +1713,7 @@ async function handleWiseAgentCommand(rest) {
1714
1713
  }
1715
1714
  return void 0;
1716
1715
  };
1717
- const { runWiseVoiceCli } = await import('./headlessCli-D-unuCQt.mjs');
1716
+ const { runWiseVoiceCli } = await import('./headlessCli-fjO9JxJW.mjs');
1718
1717
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1719
1718
  return;
1720
1719
  }
@@ -1756,7 +1755,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1756
1755
  return;
1757
1756
  }
1758
1757
  const authArgs = rest.slice(1);
1759
- const mod = await import('./auth-Dx09pKt3.mjs');
1758
+ const mod = await import('./auth-BicjH8vK.mjs');
1760
1759
  let action;
1761
1760
  try {
1762
1761
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1766,7 +1765,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1766
1765
  return;
1767
1766
  }
1768
1767
  if (action) {
1769
- const { updateEnvFile } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.U; });
1768
+ const { updateEnvFile } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.X; });
1770
1769
  const updates = mod.buildWiseAgentEnvUpdates(action);
1771
1770
  updateEnvFile(updates);
1772
1771
  for (const [k, v] of Object.entries(updates)) {
@@ -1780,7 +1779,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1780
1779
  }
1781
1780
  async function handleDaemonAuthCommand(argv) {
1782
1781
  const sub = (argv[0] || "status").toLowerCase();
1783
- const mod = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.U; });
1782
+ const mod = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.X; });
1784
1783
  if (sub === "--help" || sub === "-h" || sub === "help") {
1785
1784
  console.log(`
1786
1785
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2083,7 +2082,7 @@ Examples:
2083
2082
  async function printSkillsHelp() {
2084
2083
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2085
2084
  try {
2086
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BF4AmFz8.mjs').then(function (n) { return n.W; });
2085
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-NLlVMcrd.mjs').then(function (n) { return n.Z; });
2087
2086
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2088
2087
  } catch {
2089
2088
  }
@@ -1,14 +1,13 @@
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-BF4AmFz8.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-NLlVMcrd.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
8
8
  import 'crypto';
9
9
  import 'node:fs';
10
10
  import 'node:child_process';
11
- import 'ws';
12
11
  import 'util';
13
12
  import 'node:crypto';
14
13
  import 'node:path';
@@ -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-D_1pEpUY.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-ki1LtiZY.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-BR_lAgZ0.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-fEd97uFk.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-D_1pEpUY.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-ki1LtiZY.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-BR_lAgZ0.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-fEd97uFk.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-BR_lAgZ0.mjs');
164
+ const { connectAndGetMachine } = await import('./commands-fEd97uFk.mjs');
165
165
  const { server, machine } = await connectAndGetMachine();
166
166
  try {
167
167
  await machine.tunnelStop({ name });
@@ -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-BF4AmFz8.mjs';
3
+ import { R as RoutineStore, m as RoutineRunner } from './run-NLlVMcrd.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
6
6
  import 'fs';
@@ -9,7 +9,6 @@ import 'url';
9
9
  import 'child_process';
10
10
  import 'crypto';
11
11
  import 'node:fs';
12
- import 'ws';
13
12
  import 'util';
14
13
  import 'node:crypto';
15
14
  import 'node:path';
@@ -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 { A as normalizeAllowedUser, B as loadSecurityContextConfig, C as resolveSecurityContext, D as buildSecurityContextFromFlags, E as mergeSecurityContexts, c as connectToHypha, F as buildSessionShareUrl, G as computeOutboundHop, H as buildMachineShareUrl } from './run-BF4AmFz8.mjs';
5
+ import { F as normalizeAllowedUser, G as loadSecurityContextConfig, H as resolveSecurityContext, I as buildSecurityContextFromFlags, J as mergeSecurityContexts, c as connectToHypha, K as buildSessionShareUrl, L as computeOutboundHop, M as buildMachineShareUrl } from './run-NLlVMcrd.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -10,7 +10,6 @@ import 'path';
10
10
  import 'url';
11
11
  import 'child_process';
12
12
  import 'crypto';
13
- import 'ws';
14
13
  import 'util';
15
14
  import 'node:crypto';
16
15
  import '@agentclientprotocol/sdk';
@@ -1,17 +1,16 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-BR_lAgZ0.mjs';
3
+ import { connectAndGetMachine } from './commands-fEd97uFk.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-BF4AmFz8.mjs';
8
+ import './run-NLlVMcrd.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
12
12
  import 'child_process';
13
13
  import 'crypto';
14
- import 'ws';
15
14
  import 'util';
16
15
  import 'node:crypto';
17
16
  import '@agentclientprotocol/sdk';
@@ -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-BF4AmFz8.mjs';
4
+ import { c as connectToHypha } from './run-NLlVMcrd.mjs';
5
5
  import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-HydRNEt7.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
@@ -11,7 +11,6 @@ import 'url';
11
11
  import 'child_process';
12
12
  import 'crypto';
13
13
  import 'node:child_process';
14
- import 'ws';
15
14
  import 'util';
16
15
  import 'node:crypto';
17
16
  import '@agentclientprotocol/sdk';
@@ -3,12 +3,11 @@ 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-BF4AmFz8.mjs';
6
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-NLlVMcrd.mjs';
7
7
  import 'fs/promises';
8
8
  import 'url';
9
9
  import 'node:fs';
10
10
  import 'node:child_process';
11
- import 'ws';
12
11
  import 'util';
13
12
  import 'node:crypto';
14
13
  import 'node:path';
@@ -1,4 +1,5 @@
1
- import { I as handleRealtimeEvent, z as resolveModel, J as describeMisconfiguration, K as buildMachineDeps, L as initMachineVoiceSession } from './run-BF4AmFz8.mjs';
1
+ import { E as resolveModel, N as describeMisconfiguration, O as buildMachineDeps } from './run-NLlVMcrd.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-BFBWJWur.mjs';
2
3
  import { WebSocket } from 'ws';
3
4
  import { execSync, spawn } from 'child_process';
4
5
  import 'os';
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as connectToHypha, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, a as registerSessionService, s as startDaemon, b as stopDaemon } from './run-BF4AmFz8.mjs';
1
+ export { c as connectToHypha, d as daemonStatus, g as getHyphaServerUrl, r as registerMachineService, a as registerSessionService, s as startDaemon, b as stopDaemon } from './run-NLlVMcrd.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -8,7 +8,6 @@ import 'child_process';
8
8
  import 'crypto';
9
9
  import 'node:fs';
10
10
  import 'node:child_process';
11
- import 'ws';
12
11
  import 'util';
13
12
  import 'node:crypto';
14
13
  import 'node:path';
@@ -1,5 +1,5 @@
1
1
  var name = "svamp-cli";
2
- var version = "0.2.92";
2
+ var version = "0.2.94";
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";
@@ -19,7 +19,7 @@ var exports$1 = {
19
19
  var scripts = {
20
20
  build: "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && tsc --noEmit && pkgroll",
21
21
  typecheck: "tsc --noEmit",
22
- test: "npx tsx test/test-context-window.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-ralph-loop.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-ralph-loop-integration.mjs && npx tsx test/test-ralph-loop-modes.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-voice-attach.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs",
22
+ test: "npx tsx test/test-context-window.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-ralph-loop.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-ralph-loop-integration.mjs && npx tsx test/test-ralph-loop-modes.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs",
23
23
  "test:hypha": "node --no-warnings test/test-hypha-service.mjs",
24
24
  dev: "tsx src/cli.ts",
25
25
  "dev:daemon": "tsx src/cli.ts daemon start-sync",