svamp-cli 0.2.266 → 0.2.267

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/{agentCommands-aCeb0xu5.mjs → agentCommands-C-GPVVEh.mjs} +5 -5
  2. package/dist/{auth-BZ1HwSaj.mjs → auth-D95JIId0.mjs} +1 -1
  3. package/dist/{cli-DyIeeAe9.mjs → cli-Cf1ogBJ0.mjs} +63 -63
  4. package/dist/cli.mjs +2 -2
  5. package/dist/{commands-BX6_mFbE.mjs → commands-BpoCTRmH.mjs} +1 -1
  6. package/dist/{commands-CWZSjny_.mjs → commands-ByvuMAH7.mjs} +6 -6
  7. package/dist/{commands-Bp7U7HSm.mjs → commands-CI_YQANp.mjs} +1 -1
  8. package/dist/{commands-BqYexHaV.mjs → commands-CZUC9mKz.mjs} +1 -1
  9. package/dist/{commands-mmoabAhq.mjs → commands-Ddf4WJ7T.mjs} +2 -2
  10. package/dist/{commands-f4bL9Ar6.mjs → commands-DnZIJg2B.mjs} +2 -2
  11. package/dist/{commands-BgjoBiDv.mjs → commands-XaQfalRc.mjs} +2 -2
  12. package/dist/{fleet-CvycbTRs.mjs → fleet-D9WjmmSK.mjs} +1 -1
  13. package/dist/{frpc-CxqX4sQ7.mjs → frpc-Dch3Eq_f.mjs} +1 -1
  14. package/dist/{headlessCli-Bf9mDfRN.mjs → headlessCli-AfuoPfwV.mjs} +2 -2
  15. package/dist/index.mjs +1 -1
  16. package/dist/{package-CfLZkKfk.mjs → package-B-3yvmAt.mjs} +1 -1
  17. package/dist/{rpc-BB9tE2dR.mjs → rpc-BctBAWZg.mjs} +1 -1
  18. package/dist/{rpc-BXmmzMmw.mjs → rpc-iRm5bxwr.mjs} +1 -1
  19. package/dist/{run-Byjz649i.mjs → run-BblWx9WQ.mjs} +1 -1
  20. package/dist/{run-CetRvMab.mjs → run-Dn6ZqBs9.mjs} +21 -11
  21. package/dist/{scheduler-Xhs6PCCU.mjs → scheduler-D4CmcA1u.mjs} +1 -1
  22. package/dist/{serveCommands-DGOH5VP9.mjs → serveCommands-D6NMXj6M.mjs} +5 -5
  23. package/dist/{serveManager-Bk6Fkoha.mjs → serveManager-DFt3WQpJ.mjs} +2 -2
  24. package/dist/{sideband-CWu6yjFl.mjs → sideband-DAbvCvgz.mjs} +1 -1
  25. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
2
2
  import { join, dirname } from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
5
- import { i as shortId } from './run-CetRvMab.mjs';
5
+ import { i as shortId } from './run-Dn6ZqBs9.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -94,7 +94,7 @@ async function sessionSetTitle(title) {
94
94
  }
95
95
  async function sessionSetProjectDescription(description) {
96
96
  const dir = process.cwd();
97
- const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-CetRvMab.mjs').then(function (n) { return n.am; });
97
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.am; });
98
98
  const desc = sanitizeDescription(description, 240);
99
99
  if (!desc) {
100
100
  console.error("Project description is empty.");
@@ -341,7 +341,7 @@ async function sessionBroadcast(action, args) {
341
341
  console.log(`Broadcast sent: ${action}`);
342
342
  }
343
343
  async function connectToMachineService() {
344
- const { connectAndGetMachine } = await import('./commands-BX6_mFbE.mjs');
344
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.mjs');
345
345
  return connectAndGetMachine();
346
346
  }
347
347
  function buildInboxMessage(args) {
@@ -419,7 +419,7 @@ async function inboxSend(targetSessionId, opts) {
419
419
  console.error("Message body is required.");
420
420
  process.exit(1);
421
421
  }
422
- const { connectAndResolveSession } = await import('./commands-BX6_mFbE.mjs');
422
+ const { connectAndResolveSession } = await import('./commands-BpoCTRmH.mjs');
423
423
  let server;
424
424
  try {
425
425
  const { targetId, messageId } = await inboxSendCore(
@@ -473,7 +473,7 @@ async function inboxReply(messageId, body) {
473
473
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
474
474
  process.exit(1);
475
475
  }
476
- const { connectAndResolveSession } = await import('./commands-BX6_mFbE.mjs');
476
+ const { connectAndResolveSession } = await import('./commands-BpoCTRmH.mjs');
477
477
  const { server: localServer, machine: localMachine } = await connectToMachineService();
478
478
  let localDisconnected = false;
479
479
  const disconnectLocal = async () => {
@@ -1,4 +1,4 @@
1
- import { $ as resolveModel } from './run-CetRvMab.mjs';
1
+ import { $ as resolveModel } from './run-Dn6ZqBs9.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,4 +1,4 @@
1
- import { a0 as clearStopMarker, a1 as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CetRvMab.mjs';
1
+ import { a0 as clearStopMarker, a1 as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-Dn6ZqBs9.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
 
4
4
  function flushAndExit(code) {
@@ -33,7 +33,7 @@ const subcommand = args[0];
33
33
  let daemonSubcommand = args[1];
34
34
  async function main() {
35
35
  try {
36
- const { getLoadedConfig } = await import('./run-CetRvMab.mjs').then(function (n) { return n.as; });
36
+ const { getLoadedConfig } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.as; });
37
37
  getLoadedConfig();
38
38
  } catch {
39
39
  }
@@ -52,7 +52,7 @@ async function main() {
52
52
  }
53
53
  const whenIdle = args.includes("--when-idle");
54
54
  const force = args.includes("--force");
55
- const mod = await import('./run-CetRvMab.mjs').then(function (n) { return n.au; });
55
+ const mod = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.au; });
56
56
  if (whenIdle && !force) {
57
57
  if (mod.isDaemonAlive()) {
58
58
  mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
@@ -356,7 +356,7 @@ async function main() {
356
356
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
357
357
  process.exit(1);
358
358
  }
359
- const { handleServiceCommand } = await import('./commands-CWZSjny_.mjs');
359
+ const { handleServiceCommand } = await import('./commands-ByvuMAH7.mjs');
360
360
  await handleServiceCommand();
361
361
  } else if (subcommand === "serve") {
362
362
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -364,7 +364,7 @@ async function main() {
364
364
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
365
365
  process.exit(1);
366
366
  }
367
- const { handleServeCommand } = await import('./serveCommands-DGOH5VP9.mjs');
367
+ const { handleServeCommand } = await import('./serveCommands-D6NMXj6M.mjs');
368
368
  await handleServeCommand();
369
369
  process.exit(0);
370
370
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -373,7 +373,7 @@ async function main() {
373
373
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
374
374
  process.exit(1);
375
375
  }
376
- const { processCommand } = await import('./commands-BgjoBiDv.mjs');
376
+ const { processCommand } = await import('./commands-XaQfalRc.mjs');
377
377
  let machineId;
378
378
  const processArgs = args.slice(1);
379
379
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -387,18 +387,18 @@ async function main() {
387
387
  }), machineId);
388
388
  process.exit(0);
389
389
  } else if (subcommand === "issue" || subcommand === "issues") {
390
- const { issueCommand } = await import('./commands-mmoabAhq.mjs');
390
+ const { issueCommand } = await import('./commands-Ddf4WJ7T.mjs');
391
391
  await issueCommand(args.slice(1));
392
392
  await flushAndExit(0);
393
393
  } else if (subcommand === "workflow" || subcommand === "workflows") {
394
- const { workflowCommand } = await import('./commands-Bp7U7HSm.mjs');
394
+ const { workflowCommand } = await import('./commands-CI_YQANp.mjs');
395
395
  await workflowCommand(args.slice(1));
396
396
  await flushAndExit(0);
397
397
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
398
398
  await handleWiseAgentCommand(args.slice(1));
399
399
  process.exit(0);
400
400
  } else if (subcommand === "feature" || subcommand === "crew") {
401
- const { crewCommand } = await import('./commands-f4bL9Ar6.mjs');
401
+ const { crewCommand } = await import('./commands-DnZIJg2B.mjs');
402
402
  await crewCommand(args.slice(1));
403
403
  process.exit(0);
404
404
  } else if (subcommand === "--help" || subcommand === "-h") {
@@ -406,7 +406,7 @@ async function main() {
406
406
  } else if (!subcommand || subcommand === "start") {
407
407
  await handleInteractiveCommand();
408
408
  } else if (subcommand === "--version" || subcommand === "-v") {
409
- const pkg = await import('./package-CfLZkKfk.mjs').catch(() => ({ default: { version: "unknown" } }));
409
+ const pkg = await import('./package-B-3yvmAt.mjs').catch(() => ({ default: { version: "unknown" } }));
410
410
  console.log(`svamp version: ${pkg.default.version}`);
411
411
  } else {
412
412
  console.error(`Unknown command: ${subcommand}`);
@@ -415,7 +415,7 @@ async function main() {
415
415
  }
416
416
  }
417
417
  async function handleInteractiveCommand() {
418
- const { runInteractive } = await import('./run-Byjz649i.mjs');
418
+ const { runInteractive } = await import('./run-BblWx9WQ.mjs');
419
419
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
420
420
  let directory = process.cwd();
421
421
  let resumeSessionId;
@@ -460,7 +460,7 @@ async function handleAgentCommand() {
460
460
  return;
461
461
  }
462
462
  if (agentArgs[0] === "list") {
463
- const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-CetRvMab.mjs').then(function (n) { return n.ap; });
463
+ const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ap; });
464
464
  console.log("Known agents:");
465
465
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
466
466
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -472,7 +472,7 @@ async function handleAgentCommand() {
472
472
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
473
473
  return;
474
474
  }
475
- const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-CetRvMab.mjs').then(function (n) { return n.ap; });
475
+ const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ap; });
476
476
  let cwd = process.cwd();
477
477
  const filteredArgs = [];
478
478
  for (let i = 0; i < agentArgs.length; i++) {
@@ -496,12 +496,12 @@ async function handleAgentCommand() {
496
496
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
497
497
  let backend;
498
498
  if (KNOWN_CODEX_AGENTS[config.agentName]) {
499
- const { CodexAppServerBackend } = await import('./run-CetRvMab.mjs').then(function (n) { return n.aq; });
499
+ const { CodexAppServerBackend } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.aq; });
500
500
  backend = new CodexAppServerBackend({ cwd, log: logFn });
501
501
  } else {
502
- const { AcpBackend } = await import('./run-CetRvMab.mjs').then(function (n) { return n.ao; });
503
- const { GeminiTransport } = await import('./run-CetRvMab.mjs').then(function (n) { return n.ar; });
504
- const { DefaultTransport } = await import('./run-CetRvMab.mjs').then(function (n) { return n.an; });
502
+ const { AcpBackend } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ao; });
503
+ const { GeminiTransport } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ar; });
504
+ const { DefaultTransport } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.an; });
505
505
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
506
506
  backend = new AcpBackend({
507
507
  agentName: config.agentName,
@@ -628,7 +628,7 @@ async function handleSessionCommand() {
628
628
  process.exit(1);
629
629
  }
630
630
  }
631
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionLoopExtend, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-BX6_mFbE.mjs');
631
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionLoopExtend, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-BpoCTRmH.mjs');
632
632
  const parseFlagStr = (flag, shortFlag) => {
633
633
  for (let i = 1; i < sessionArgs.length; i++) {
634
634
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -696,7 +696,7 @@ async function handleSessionCommand() {
696
696
  allowDomain.push(sessionArgs[++i]);
697
697
  }
698
698
  }
699
- const { parseShareArg } = await import('./commands-BX6_mFbE.mjs');
699
+ const { parseShareArg } = await import('./commands-BpoCTRmH.mjs');
700
700
  const shareEntries = share.map((s) => parseShareArg(s));
701
701
  await sessionSpawn(agent, dir, targetMachineId, {
702
702
  message,
@@ -786,7 +786,7 @@ async function handleSessionCommand() {
786
786
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
787
787
  process.exit(1);
788
788
  }
789
- const { sessionEditMessage } = await import('./commands-BX6_mFbE.mjs');
789
+ const { sessionEditMessage } = await import('./commands-BpoCTRmH.mjs');
790
790
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
791
791
  } else if (sessionSubcommand === "refine") {
792
792
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -794,7 +794,7 @@ async function handleSessionCommand() {
794
794
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
795
795
  process.exit(1);
796
796
  }
797
- const { sessionRefineLastReply } = await import('./commands-BX6_mFbE.mjs');
797
+ const { sessionRefineLastReply } = await import('./commands-BpoCTRmH.mjs');
798
798
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
799
799
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
800
800
  if (!sessionArgs[1]) {
@@ -802,7 +802,7 @@ async function handleSessionCommand() {
802
802
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
803
803
  process.exit(1);
804
804
  }
805
- const { sessionUndoEdit } = await import('./commands-BX6_mFbE.mjs');
805
+ const { sessionUndoEdit } = await import('./commands-BpoCTRmH.mjs');
806
806
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
807
807
  } else if (sessionSubcommand === "query") {
808
808
  const dir = sessionArgs[1];
@@ -812,7 +812,7 @@ async function handleSessionCommand() {
812
812
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
813
813
  process.exit(1);
814
814
  }
815
- const { sessionQuery } = await import('./commands-BX6_mFbE.mjs');
815
+ const { sessionQuery } = await import('./commands-BpoCTRmH.mjs');
816
816
  await sessionQuery(dir, prompt, targetMachineId, {
817
817
  timeout: parseFlagInt("--timeout"),
818
818
  json: hasFlag("--json"),
@@ -845,7 +845,7 @@ async function handleSessionCommand() {
845
845
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
846
846
  process.exit(1);
847
847
  }
848
- const { sessionApprove } = await import('./commands-BX6_mFbE.mjs');
848
+ const { sessionApprove } = await import('./commands-BpoCTRmH.mjs');
849
849
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
850
850
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
851
851
  json: hasFlag("--json")
@@ -855,7 +855,7 @@ async function handleSessionCommand() {
855
855
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
856
856
  process.exit(1);
857
857
  }
858
- const { sessionDeny } = await import('./commands-BX6_mFbE.mjs');
858
+ const { sessionDeny } = await import('./commands-BpoCTRmH.mjs');
859
859
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
860
860
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
861
861
  json: hasFlag("--json")
@@ -907,7 +907,7 @@ async function handleSessionCommand() {
907
907
  console.error("Usage: svamp session set-title <title>");
908
908
  process.exit(1);
909
909
  }
910
- const { sessionSetTitle } = await import('./agentCommands-aCeb0xu5.mjs');
910
+ const { sessionSetTitle } = await import('./agentCommands-C-GPVVEh.mjs');
911
911
  await sessionSetTitle(title);
912
912
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
913
913
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -915,7 +915,7 @@ async function handleSessionCommand() {
915
915
  console.error("Usage: svamp session set-project-description <text>");
916
916
  process.exit(1);
917
917
  }
918
- const { sessionSetProjectDescription } = await import('./agentCommands-aCeb0xu5.mjs');
918
+ const { sessionSetProjectDescription } = await import('./agentCommands-C-GPVVEh.mjs');
919
919
  await sessionSetProjectDescription(desc);
920
920
  } else if (sessionSubcommand === "set-link") {
921
921
  const url = sessionArgs[1];
@@ -924,11 +924,11 @@ async function handleSessionCommand() {
924
924
  process.exit(1);
925
925
  }
926
926
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
927
- const { sessionSetLink } = await import('./agentCommands-aCeb0xu5.mjs');
927
+ const { sessionSetLink } = await import('./agentCommands-C-GPVVEh.mjs');
928
928
  await sessionSetLink(url, label);
929
929
  } else if (sessionSubcommand === "link") {
930
930
  const op = sessionArgs[1];
931
- const lm = await import('./agentCommands-aCeb0xu5.mjs');
931
+ const lm = await import('./agentCommands-C-GPVVEh.mjs');
932
932
  if (op === "add") {
933
933
  const url = sessionArgs[2];
934
934
  if (!url || url.startsWith("--")) {
@@ -963,7 +963,7 @@ async function handleSessionCommand() {
963
963
  process.exit(1);
964
964
  }
965
965
  const level = parseFlagStr("--level") || "info";
966
- const { sessionNotify } = await import('./agentCommands-aCeb0xu5.mjs');
966
+ const { sessionNotify } = await import('./agentCommands-C-GPVVEh.mjs');
967
967
  await sessionNotify(message, level);
968
968
  } else if (sessionSubcommand === "broadcast") {
969
969
  const action = sessionArgs[1];
@@ -971,7 +971,7 @@ async function handleSessionCommand() {
971
971
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
972
972
  process.exit(1);
973
973
  }
974
- const { sessionBroadcast } = await import('./agentCommands-aCeb0xu5.mjs');
974
+ const { sessionBroadcast } = await import('./agentCommands-C-GPVVEh.mjs');
975
975
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
976
976
  } else if (sessionSubcommand === "inbox") {
977
977
  const inboxSubcmd = sessionArgs[1];
@@ -982,7 +982,7 @@ async function handleSessionCommand() {
982
982
  process.exit(1);
983
983
  }
984
984
  if (agentSessionId) {
985
- const { inboxSend } = await import('./agentCommands-aCeb0xu5.mjs');
985
+ const { inboxSend } = await import('./agentCommands-C-GPVVEh.mjs');
986
986
  await inboxSend(sessionArgs[2], {
987
987
  body: sessionArgs[3],
988
988
  subject: parseFlagStr("--subject"),
@@ -997,7 +997,7 @@ async function handleSessionCommand() {
997
997
  }
998
998
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
999
999
  if (agentSessionId && !sessionArgs[2]) {
1000
- const { inboxList } = await import('./agentCommands-aCeb0xu5.mjs');
1000
+ const { inboxList } = await import('./agentCommands-C-GPVVEh.mjs');
1001
1001
  await inboxList({
1002
1002
  unread: hasFlag("--unread"),
1003
1003
  limit: parseFlagInt("--limit"),
@@ -1019,7 +1019,7 @@ async function handleSessionCommand() {
1019
1019
  process.exit(1);
1020
1020
  }
1021
1021
  if (agentSessionId && !sessionArgs[3]) {
1022
- const { inboxList } = await import('./agentCommands-aCeb0xu5.mjs');
1022
+ const { inboxList } = await import('./agentCommands-C-GPVVEh.mjs');
1023
1023
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1024
1024
  } else if (sessionArgs[3]) {
1025
1025
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1029,7 +1029,7 @@ async function handleSessionCommand() {
1029
1029
  }
1030
1030
  } else if (inboxSubcmd === "reply") {
1031
1031
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1032
- const { inboxReply } = await import('./agentCommands-aCeb0xu5.mjs');
1032
+ const { inboxReply } = await import('./agentCommands-C-GPVVEh.mjs');
1033
1033
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1034
1034
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1035
1035
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1067,7 +1067,7 @@ async function handleMachineCommand() {
1067
1067
  return;
1068
1068
  }
1069
1069
  if (machineSubcommand === "share") {
1070
- const { machineShare } = await import('./commands-BX6_mFbE.mjs');
1070
+ const { machineShare } = await import('./commands-BpoCTRmH.mjs');
1071
1071
  let machineId;
1072
1072
  const shareArgs = [];
1073
1073
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1118,14 +1118,14 @@ async function handleMachineCommand() {
1118
1118
  process.exit(1);
1119
1119
  }
1120
1120
  if (all) {
1121
- const { fleetExec } = await import('./fleet-CvycbTRs.mjs');
1121
+ const { fleetExec } = await import('./fleet-D9WjmmSK.mjs');
1122
1122
  await fleetExec(command, { cwd });
1123
1123
  } else {
1124
- const { machineExec } = await import('./commands-BX6_mFbE.mjs');
1124
+ const { machineExec } = await import('./commands-BpoCTRmH.mjs');
1125
1125
  await machineExec(machineId, command, cwd);
1126
1126
  }
1127
1127
  } else if (machineSubcommand === "info") {
1128
- const { machineInfo } = await import('./commands-BX6_mFbE.mjs');
1128
+ const { machineInfo } = await import('./commands-BpoCTRmH.mjs');
1129
1129
  let machineId;
1130
1130
  for (let i = 1; i < machineArgs.length; i++) {
1131
1131
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1145,10 +1145,10 @@ async function handleMachineCommand() {
1145
1145
  level = machineArgs[++i];
1146
1146
  }
1147
1147
  }
1148
- const { machineNotify } = await import('./agentCommands-aCeb0xu5.mjs');
1148
+ const { machineNotify } = await import('./agentCommands-C-GPVVEh.mjs');
1149
1149
  await machineNotify(message, level);
1150
1150
  } else if (machineSubcommand === "ls") {
1151
- const { machineLs } = await import('./commands-BX6_mFbE.mjs');
1151
+ const { machineLs } = await import('./commands-BpoCTRmH.mjs');
1152
1152
  let machineId;
1153
1153
  let showHidden = false;
1154
1154
  let path;
@@ -1207,20 +1207,20 @@ Examples:
1207
1207
  };
1208
1208
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1209
1209
  if (sub === "status") {
1210
- const { fleetStatus } = await import('./fleet-CvycbTRs.mjs');
1210
+ const { fleetStatus } = await import('./fleet-D9WjmmSK.mjs');
1211
1211
  await fleetStatus();
1212
1212
  } else if (sub === "upgrade-claude") {
1213
- const { fleetUpgradeClaude } = await import('./fleet-CvycbTRs.mjs');
1213
+ const { fleetUpgradeClaude } = await import('./fleet-D9WjmmSK.mjs');
1214
1214
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1215
1215
  } else if (sub === "upgrade-svamp") {
1216
- const { fleetUpgradeSvamp } = await import('./fleet-CvycbTRs.mjs');
1216
+ const { fleetUpgradeSvamp } = await import('./fleet-D9WjmmSK.mjs');
1217
1217
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self"), force: hasFlag("force") });
1218
1218
  } else if (sub === "daemon-restart") {
1219
- const { fleetDaemonRestart } = await import('./fleet-CvycbTRs.mjs');
1219
+ const { fleetDaemonRestart } = await import('./fleet-D9WjmmSK.mjs');
1220
1220
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1221
1221
  } else if (sub === "push-skill") {
1222
1222
  const name = fleetArgs[1];
1223
- const { fleetPushSkill } = await import('./fleet-CvycbTRs.mjs');
1223
+ const { fleetPushSkill } = await import('./fleet-D9WjmmSK.mjs');
1224
1224
  await fleetPushSkill(name);
1225
1225
  } else {
1226
1226
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1236,7 +1236,7 @@ async function handleSkillsCommand() {
1236
1236
  await printSkillsHelp();
1237
1237
  return;
1238
1238
  }
1239
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BqYexHaV.mjs');
1239
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-CZUC9mKz.mjs');
1240
1240
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1241
1241
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1242
1242
  if (!query) {
@@ -1283,7 +1283,7 @@ async function loginToHypha() {
1283
1283
  process.exit(1);
1284
1284
  }
1285
1285
  const anchor = anchorArg.replace(/\/+$/, "");
1286
- const { loadInstanceConfig } = await import('./run-CetRvMab.mjs').then(function (n) { return n.as; });
1286
+ const { loadInstanceConfig } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.as; });
1287
1287
  let cfg = null;
1288
1288
  try {
1289
1289
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1394,7 +1394,7 @@ async function logoutFromHypha() {
1394
1394
  } catch {
1395
1395
  }
1396
1396
  try {
1397
- const { clearInstanceConfigCache } = await import('./run-CetRvMab.mjs').then(function (n) { return n.as; });
1397
+ const { clearInstanceConfigCache } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.as; });
1398
1398
  clearInstanceConfigCache();
1399
1399
  } catch {
1400
1400
  }
@@ -1733,7 +1733,7 @@ async function applyClaudeAuthFlags(argv) {
1733
1733
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1734
1734
  );
1735
1735
  }
1736
- const mod = await import('./run-CetRvMab.mjs').then(function (n) { return n.ak; });
1736
+ const mod = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ak; });
1737
1737
  if (hasHypha) {
1738
1738
  let url;
1739
1739
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1787,7 +1787,7 @@ async function applyDaemonShareFlag(argv) {
1787
1787
  }
1788
1788
  }
1789
1789
  if (collected.length === 0) return;
1790
- const { updateEnvFile } = await import('./run-CetRvMab.mjs').then(function (n) { return n.ak; });
1790
+ const { updateEnvFile } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ak; });
1791
1791
  const seen = /* @__PURE__ */ new Set();
1792
1792
  const deduped = collected.filter((e) => {
1793
1793
  const k = e.toLowerCase();
@@ -1820,7 +1820,7 @@ async function handleWiseAgentCommand(rest) {
1820
1820
  }
1821
1821
  });
1822
1822
  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(" ");
1823
- const { wiseAskCli } = await import('./commands-BX6_mFbE.mjs');
1823
+ const { wiseAskCli } = await import('./commands-BpoCTRmH.mjs');
1824
1824
  await wiseAskCli(machineId, message, sessionId, { json });
1825
1825
  return;
1826
1826
  }
@@ -1832,7 +1832,7 @@ async function handleWiseAgentCommand(rest) {
1832
1832
  }
1833
1833
  return void 0;
1834
1834
  };
1835
- const { runWiseVoiceCli } = await import('./headlessCli-Bf9mDfRN.mjs');
1835
+ const { runWiseVoiceCli } = await import('./headlessCli-AfuoPfwV.mjs');
1836
1836
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1837
1837
  return;
1838
1838
  }
@@ -1850,7 +1850,7 @@ async function handleWiseAgentCommand(rest) {
1850
1850
  const mode = valueOf(["--mode"]);
1851
1851
  const mission = valueOf(["--mission"]);
1852
1852
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1853
- const { wiseJoinMeetingCli } = await import('./commands-BX6_mFbE.mjs');
1853
+ const { wiseJoinMeetingCli } = await import('./commands-BpoCTRmH.mjs');
1854
1854
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1855
1855
  return;
1856
1856
  }
@@ -1862,7 +1862,7 @@ async function handleWiseAgentCommand(rest) {
1862
1862
  }
1863
1863
  return void 0;
1864
1864
  };
1865
- const { wiseLeaveMeetingCli } = await import('./commands-BX6_mFbE.mjs');
1865
+ const { wiseLeaveMeetingCli } = await import('./commands-BpoCTRmH.mjs');
1866
1866
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1867
1867
  return;
1868
1868
  }
@@ -1886,7 +1886,7 @@ async function handleWiseAgentCommand(rest) {
1886
1886
  }
1887
1887
  });
1888
1888
  const text = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
1889
- const { wiseAnnounceCli } = await import('./commands-BX6_mFbE.mjs');
1889
+ const { wiseAnnounceCli } = await import('./commands-BpoCTRmH.mjs');
1890
1890
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1891
1891
  return;
1892
1892
  }
@@ -1898,7 +1898,7 @@ async function handleWiseAgentCommand(rest) {
1898
1898
  }
1899
1899
  return void 0;
1900
1900
  };
1901
- const { wiseMeetingsCli } = await import('./commands-BX6_mFbE.mjs');
1901
+ const { wiseMeetingsCli } = await import('./commands-BpoCTRmH.mjs');
1902
1902
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1903
1903
  return;
1904
1904
  }
@@ -1948,7 +1948,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1948
1948
  return;
1949
1949
  }
1950
1950
  const authArgs = rest.slice(1);
1951
- const mod = await import('./auth-BZ1HwSaj.mjs');
1951
+ const mod = await import('./auth-D95JIId0.mjs');
1952
1952
  let action;
1953
1953
  try {
1954
1954
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1958,7 +1958,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1958
1958
  return;
1959
1959
  }
1960
1960
  if (action) {
1961
- const { updateEnvFile } = await import('./run-CetRvMab.mjs').then(function (n) { return n.ak; });
1961
+ const { updateEnvFile } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ak; });
1962
1962
  const updates = mod.buildWiseAgentEnvUpdates(action);
1963
1963
  updateEnvFile(updates);
1964
1964
  for (const [k, v] of Object.entries(updates)) {
@@ -1972,7 +1972,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1972
1972
  }
1973
1973
  async function handleDaemonAuthCommand(argv) {
1974
1974
  const sub = (argv[0] || "status").toLowerCase();
1975
- const mod = await import('./run-CetRvMab.mjs').then(function (n) { return n.ak; });
1975
+ const mod = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ak; });
1976
1976
  if (sub === "--help" || sub === "-h" || sub === "help") {
1977
1977
  console.log(`
1978
1978
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2046,8 +2046,8 @@ one step: --use-hypha-proxy / --use-claude-login / --anthropic-base-url URL --an
2046
2046
  }
2047
2047
  async function handleDaemonCodexAuthCommand(argv) {
2048
2048
  const sub = (argv[0] || "status").toLowerCase();
2049
- const { updateEnvFile } = await import('./run-CetRvMab.mjs').then(function (n) { return n.ak; });
2050
- const { resolveCodexProvider } = await import('./run-CetRvMab.mjs').then(function (n) { return n.al; });
2049
+ const { updateEnvFile } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.ak; });
2050
+ const { resolveCodexProvider } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.al; });
2051
2051
  const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
2052
2052
  if (sub === "--help" || sub === "-h" || sub === "help") {
2053
2053
  console.log(`
@@ -2379,7 +2379,7 @@ Examples:
2379
2379
  async function printSkillsHelp() {
2380
2380
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2381
2381
  try {
2382
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CetRvMab.mjs').then(function (n) { return n.at; });
2382
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-Dn6ZqBs9.mjs').then(function (n) { return n.at; });
2383
2383
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2384
2384
  } catch {
2385
2385
  }
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import './run-CetRvMab.mjs';
1
+ import './run-Dn6ZqBs9.mjs';
2
2
  import './serviceManager-hlOVxkhW.mjs';
3
- import './cli-DyIeeAe9.mjs';
3
+ import './cli-Cf1ogBJ0.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
6
6
  import 'fs';
@@ -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 { a2 as formatHandle, a3 as normalizeAllowedUser, a4 as loadSecurityContextConfig, a5 as resolveSecurityContext, a6 as buildSecurityContextFromFlags, a7 as mergeSecurityContexts, c as connectToHypha, a8 as buildSessionShareUrl, a9 as computeOutboundHop, i as shortId, aa as registerAwaitingReply, ab as buildMachineShareUrl, ac as parseHandle, ad as handleMatchesMetadata } from './run-CetRvMab.mjs';
5
+ import { a2 as formatHandle, a3 as normalizeAllowedUser, a4 as loadSecurityContextConfig, a5 as resolveSecurityContext, a6 as buildSecurityContextFromFlags, a7 as mergeSecurityContexts, c as connectToHypha, a8 as buildSessionShareUrl, a9 as computeOutboundHop, i as shortId, aa as registerAwaitingReply, ab as buildMachineShareUrl, ac as parseHandle, ad as handleMatchesMetadata } from './run-Dn6ZqBs9.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -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-CxqX4sQ7.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-Dch3Eq_f.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-BX6_mFbE.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.mjs');
72
72
  const { server, machine } = await connectAndGetMachine();
73
73
  try {
74
74
  const status = await machine.tunnelStart({
@@ -90,7 +90,7 @@ async function serviceExpose(args) {
90
90
  console.log(` port ${port}: ${url}`);
91
91
  }
92
92
  if (process.env.SVAMP_SESSION_ID) {
93
- const { autoAddSessionLink } = await import('./agentCommands-aCeb0xu5.mjs');
93
+ const { autoAddSessionLink } = await import('./agentCommands-C-GPVVEh.mjs');
94
94
  let added = 0;
95
95
  for (const [port, url] of urlEntries) {
96
96
  const label = urlEntries.length > 1 ? `${name}:${port}` : name;
@@ -138,7 +138,7 @@ async function serviceServe(args) {
138
138
  server.once("error", reject);
139
139
  server.listen(servePort, "127.0.0.1", () => resolve());
140
140
  });
141
- const { runFrpcTunnel } = await import('./frpc-CxqX4sQ7.mjs');
141
+ const { runFrpcTunnel } = await import('./frpc-Dch3Eq_f.mjs');
142
142
  void server;
143
143
  await runFrpcTunnel(name, [servePort]);
144
144
  } catch (err) {
@@ -148,7 +148,7 @@ async function serviceServe(args) {
148
148
  }
149
149
  async function serviceList(_args) {
150
150
  try {
151
- const { connectAndGetMachine } = await import('./commands-BX6_mFbE.mjs');
151
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.mjs');
152
152
  const { server, machine } = await connectAndGetMachine();
153
153
  try {
154
154
  const tunnels = await machine.tunnelList({});
@@ -188,7 +188,7 @@ async function serviceDelete(args) {
188
188
  process.exit(1);
189
189
  }
190
190
  try {
191
- const { connectAndGetMachine } = await import('./commands-BX6_mFbE.mjs');
191
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.mjs');
192
192
  const { server, machine } = await connectAndGetMachine();
193
193
  try {
194
194
  await machine.tunnelStop({ name });
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { l as resolveProjectRoot, K as workflowSteps, B as setWorkflowEnabled, G as isWorkflowEnabled, C as removeWorkflow, z as getWorkflow, F as listWorkflows, D as saveWorkflow, E as rawWorkflow } from './run-CetRvMab.mjs';
2
+ import { l as resolveProjectRoot, K as workflowSteps, B as setWorkflowEnabled, G as isWorkflowEnabled, C as removeWorkflow, z as getWorkflow, F as listWorkflows, D as saveWorkflow, E as rawWorkflow } from './run-Dn6ZqBs9.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
5
5
  import 'fs';
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { P as parseFrontmatter, Q as getSkillsServer, T as getSkillsWorkspaceName, U as getSkillsCollectionName, V as fetchWithTimeout, W as searchSkills, X as SKILLS_DIR, Y as getSkillInfo, Z as downloadSkillFile, _ as listSkillFiles } from './run-CetRvMab.mjs';
4
+ import { P as parseFrontmatter, Q as getSkillsServer, T as getSkillsWorkspaceName, U as getSkillsCollectionName, V as fetchWithTimeout, W as searchSkills, X as SKILLS_DIR, Y as getSkillInfo, Z as downloadSkillFile, _ as listSkillFiles } from './run-Dn6ZqBs9.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -1,8 +1,8 @@
1
1
  import { execSync } from 'node:child_process';
2
2
  import { existsSync, readFileSync } from 'node:fs';
3
3
  import { join } from 'node:path';
4
- import { f as flushAndExit } from './cli-DyIeeAe9.mjs';
5
- import { l as resolveProjectRoot, v as searchIssues, t as listIssues, n as resumeIssue, p as pauseIssue, o as addComment, u as updateIssue, m as getIssue, w as isVisibleTo, J as summarize, q as addIssue } from './run-CetRvMab.mjs';
4
+ import { f as flushAndExit } from './cli-Cf1ogBJ0.mjs';
5
+ import { l as resolveProjectRoot, v as searchIssues, t as listIssues, n as resumeIssue, p as pauseIssue, o as addComment, u as updateIssue, m as getIssue, w as isVisibleTo, J as summarize, q as addIssue } from './run-Dn6ZqBs9.mjs';
6
6
  import './serviceManager-hlOVxkhW.mjs';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -1,8 +1,8 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { resolve } from 'node:path';
3
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-BX6_mFbE.mjs';
3
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-BpoCTRmH.mjs';
4
4
  import { execSync } from 'node:child_process';
5
- import { u as updateIssue, o as addComment, q as addIssue, i as shortId } from './run-CetRvMab.mjs';
5
+ import { u as updateIssue, o as addComment, q as addIssue, i as shortId } from './run-Dn6ZqBs9.mjs';
6
6
  import 'node:os';
7
7
  import 'os';
8
8
  import 'fs/promises';
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-BX6_mFbE.mjs';
3
+ import { connectAndGetMachine } from './commands-BpoCTRmH.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-CetRvMab.mjs';
8
+ import './run-Dn6ZqBs9.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -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-CetRvMab.mjs';
4
+ import { c as connectToHypha } from './run-Dn6ZqBs9.mjs';
5
5
  import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-B9O-hKxm.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
@@ -4,7 +4,7 @@ import { mkdirSync, chmodSync, writeFileSync, unlinkSync, existsSync, readFileSy
4
4
  import { join } from 'path';
5
5
  import { homedir, platform, arch } from 'os';
6
6
  import { randomUUID, createHash } from 'crypto';
7
- import { e as getFrpsSubdomainHost, f as getFrpsServerPort, h as getFrpsServerAddr } from './run-CetRvMab.mjs';
7
+ import { e as getFrpsSubdomainHost, f as getFrpsServerPort, h as getFrpsServerAddr } from './run-Dn6ZqBs9.mjs';
8
8
  import 'fs/promises';
9
9
  import 'url';
10
10
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { $ as resolveModel, ae as describeMisconfiguration, af as buildMachineDeps } from './run-CetRvMab.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-CWu6yjFl.mjs';
1
+ import { $ as resolveModel, ae as describeMisconfiguration, af as buildMachineDeps } from './run-Dn6ZqBs9.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-DAbvCvgz.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-CetRvMab.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-Dn6ZqBs9.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.266";
2
+ var version = "0.2.267";
3
3
  var description = "Svamp CLI — AI workspace daemon on Hypha Cloud";
4
4
  var author = "Amun AI AB";
5
5
  var license = "SEE LICENSE IN LICENSE";
@@ -1,4 +1,4 @@
1
- import { l as resolveProjectRoot, u as updateIssue, m as getIssue, n as resumeIssue, p as pauseIssue, o as addComment, q as addIssue, t as listIssues, v as searchIssues, w as isVisibleTo } from './run-CetRvMab.mjs';
1
+ import { l as resolveProjectRoot, u as updateIssue, m as getIssue, n as resumeIssue, p as pauseIssue, o as addComment, q as addIssue, t as listIssues, v as searchIssues, w as isVisibleTo } from './run-Dn6ZqBs9.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,4 +1,4 @@
1
- import { l as resolveProjectRoot, x as getRun, y as listRuns, z as getWorkflow, A as runWorkflow, B as setWorkflowEnabled, C as removeWorkflow, D as saveWorkflow, E as rawWorkflow, F as listWorkflows } from './run-CetRvMab.mjs';
1
+ import { l as resolveProjectRoot, x as getRun, y as listRuns, z as getWorkflow, A as runWorkflow, B as setWorkflowEnabled, C as removeWorkflow, D as saveWorkflow, E as rawWorkflow, F as listWorkflows } from './run-Dn6ZqBs9.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -1,4 +1,4 @@
1
- import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { ag as applyClaudeProxyEnv, ah as composeSessionId, ai as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, aj as generateHookSettings } from './run-CetRvMab.mjs';
1
+ import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { ag as applyClaudeProxyEnv, ah as composeSessionId, ai as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, aj as generateHookSettings } from './run-Dn6ZqBs9.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';
@@ -3955,7 +3955,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
3955
3955
  const tunnels = handlers.tunnels;
3956
3956
  if (!tunnels) throw new Error("Tunnel management not available");
3957
3957
  if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
3958
- const { FrpcTunnel } = await import('./frpc-CxqX4sQ7.mjs');
3958
+ const { FrpcTunnel } = await import('./frpc-Dch3Eq_f.mjs');
3959
3959
  const tunnel = new FrpcTunnel({
3960
3960
  name: params.name,
3961
3961
  ports: params.ports,
@@ -4422,7 +4422,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
4422
4422
  }
4423
4423
  const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
4424
4424
  const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
4425
- const { toolsForRole } = await import('./sideband-CWu6yjFl.mjs');
4425
+ const { toolsForRole } = await import('./sideband-DAbvCvgz.mjs');
4426
4426
  const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
4427
4427
  return fmt(r2);
4428
4428
  }
@@ -4521,7 +4521,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
4521
4521
  if (r.error || !r.sender) return { error: r.error || "unauthorized" };
4522
4522
  const callId = "call_" + Math.random().toString(16).slice(2, 12);
4523
4523
  const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
4524
- const { queryCore } = await import('./commands-BX6_mFbE.mjs');
4524
+ const { queryCore } = await import('./commands-BpoCTRmH.mjs');
4525
4525
  const timeout = c.reply?.timeout_sec || 120;
4526
4526
  let result;
4527
4527
  try {
@@ -14601,7 +14601,7 @@ async function startDaemon(options) {
14601
14601
  try {
14602
14602
  const dir = loadSessionIndex()[sessionId]?.directory;
14603
14603
  if (!dir) return;
14604
- const { reconcileServiceLinks } = await import('./agentCommands-aCeb0xu5.mjs');
14604
+ const { reconcileServiceLinks } = await import('./agentCommands-C-GPVVEh.mjs');
14605
14605
  const configPath = getSvampConfigPath(dir, sessionId);
14606
14606
  const config = readSvampConfig(configPath);
14607
14607
  const entries = Array.from(urls.entries());
@@ -14619,7 +14619,7 @@ async function startDaemon(options) {
14619
14619
  }
14620
14620
  }
14621
14621
  async function createExposedTunnel(spec) {
14622
- const { FrpcTunnel } = await import('./frpc-CxqX4sQ7.mjs');
14622
+ const { FrpcTunnel } = await import('./frpc-Dch3Eq_f.mjs');
14623
14623
  const tunnel = new FrpcTunnel({
14624
14624
  name: spec.name,
14625
14625
  ports: spec.ports,
@@ -14640,7 +14640,7 @@ async function startDaemon(options) {
14640
14640
  }
14641
14641
  const tunnelRecreateState = /* @__PURE__ */ new Map();
14642
14642
  const tunnelRecreateInFlight = /* @__PURE__ */ new Set();
14643
- const { ServeManager } = await import('./serveManager-Bk6Fkoha.mjs');
14643
+ const { ServeManager } = await import('./serveManager-DFt3WQpJ.mjs');
14644
14644
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
14645
14645
  ensureAutoInstalledSkills(logger).catch(() => {
14646
14646
  });
@@ -16787,11 +16787,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
16787
16787
  });
16788
16788
  },
16789
16789
  onIssue: async (params) => {
16790
- const { issueRpc } = await import('./rpc-BB9tE2dR.mjs');
16790
+ const { issueRpc } = await import('./rpc-BctBAWZg.mjs');
16791
16791
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
16792
16792
  },
16793
16793
  onWorkflow: async (params) => {
16794
- const { workflowRpc } = await import('./rpc-BXmmzMmw.mjs');
16794
+ const { workflowRpc } = await import('./rpc-iRm5bxwr.mjs');
16795
16795
  return workflowRpc(params?.cwd || directory, params || {});
16796
16796
  },
16797
16797
  onRipgrep: async (args, cwd) => {
@@ -17091,6 +17091,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
17091
17091
  const allowedBashLiterals = /* @__PURE__ */ new Set();
17092
17092
  const allowedBashPrefixes = /* @__PURE__ */ new Set();
17093
17093
  const EDIT_TOOLS = /* @__PURE__ */ new Set(["Edit", "MultiEdit", "Write", "NotebookEdit"]);
17094
+ let appliedAgentModel;
17094
17095
  const { store: sessionService, rpcHandlers: sessionRPCHandlersAcp } = createSessionStore(
17095
17096
  server,
17096
17097
  sessionId,
@@ -17119,6 +17120,15 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
17119
17120
  if (msgMeta?.permissionMode && msgMeta.permissionMode !== currentPermissionMode) {
17120
17121
  logger.log(`[${agentName} Session ${sessionId}] Ignoring meta.permissionMode='${msgMeta.permissionMode}' from sendMessage (current: ${currentPermissionMode}; use switchMode to change)`);
17121
17122
  }
17123
+ {
17124
+ const rawModel = typeof msgMeta?.model === "string" && msgMeta.model ? msgMeta.model : void 0;
17125
+ const desiredModel = rawModel || agentConfig?.default_model || void 0;
17126
+ if (desiredModel !== appliedAgentModel) {
17127
+ agentBackend?.setModel?.(desiredModel);
17128
+ appliedAgentModel = desiredModel;
17129
+ logger.log(`[${agentName} Session ${sessionId}] Model \u2192 ${desiredModel ?? "backend default"}`);
17130
+ }
17131
+ }
17122
17132
  if (!acpBackendReady) {
17123
17133
  logger.log(`[${agentName} Session ${sessionId}] Backend not ready \u2014 queuing message`);
17124
17134
  const existingQueue = sessionMetadata.messageQueue || [];
@@ -17351,11 +17361,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
17351
17361
  });
17352
17362
  },
17353
17363
  onIssue: async (params) => {
17354
- const { issueRpc } = await import('./rpc-BB9tE2dR.mjs');
17364
+ const { issueRpc } = await import('./rpc-BctBAWZg.mjs');
17355
17365
  return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
17356
17366
  },
17357
17367
  onWorkflow: async (params) => {
17358
- const { workflowRpc } = await import('./rpc-BXmmzMmw.mjs');
17368
+ const { workflowRpc } = await import('./rpc-iRm5bxwr.mjs');
17359
17369
  return workflowRpc(params?.cwd || directory, params || {});
17360
17370
  },
17361
17371
  onRipgrep: async (args, cwd) => {
@@ -18391,7 +18401,7 @@ ${oracle.output.trim().slice(0, 500)}`, "\u{1F501} Continuing loop");
18391
18401
  const PING_TIMEOUT_MS = 15e3;
18392
18402
  const POST_RECONNECT_GRACE_MS = 2e4;
18393
18403
  const RECONNECT_JITTER_MS = 2500;
18394
- const { WorkflowScheduler } = await import('./scheduler-Xhs6PCCU.mjs');
18404
+ const { WorkflowScheduler } = await import('./scheduler-D4CmcA1u.mjs');
18395
18405
  const workflowScheduler = new WorkflowScheduler({
18396
18406
  projectRoots: () => {
18397
18407
  const dirs = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- import { l as resolveProjectRoot, F as listWorkflows, G as isWorkflowEnabled, H as workflowCrons, A as runWorkflow, I as cronMatches } from './run-CetRvMab.mjs';
1
+ import { l as resolveProjectRoot, F as listWorkflows, G as isWorkflowEnabled, H as workflowCrons, A as runWorkflow, I as cronMatches } from './run-Dn6ZqBs9.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import '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-BX6_mFbE.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.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-BX6_mFbE.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.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-BX6_mFbE.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.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-BX6_mFbE.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.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-BX6_mFbE.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-BpoCTRmH.mjs');
239
239
  const { machine, server } = await connectAndGetMachine(machineId);
240
240
  try {
241
241
  const info = await machine.serveInfo();
@@ -5,7 +5,7 @@ import * as http from 'http';
5
5
  import * as net from 'net';
6
6
  import * as path from 'path';
7
7
  import { serveStaticMount } from './staticFileServer-CbYnj2bH.mjs';
8
- import { j as getHyphaServerUrl, S as ServeAuth, k as hasCookieToken } from './run-CetRvMab.mjs';
8
+ import { j as getHyphaServerUrl, S as ServeAuth, k as hasCookieToken } from './run-Dn6ZqBs9.mjs';
9
9
  import 'os';
10
10
  import 'fs/promises';
11
11
  import 'url';
@@ -854,7 +854,7 @@ Connection: close\r
854
854
  const mount = this.mounts.get(mountName);
855
855
  const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, buildLinkSubdomain(subdomainSafe, mount.linkToken)]]) : void 0;
856
856
  try {
857
- const { FrpcTunnel } = await import('./frpc-CxqX4sQ7.mjs');
857
+ const { FrpcTunnel } = await import('./frpc-Dch3Eq_f.mjs');
858
858
  let tunnel;
859
859
  tunnel = new FrpcTunnel({
860
860
  name: tunnelName,
@@ -1,4 +1,4 @@
1
- import { R as READ_ONLY_TOOLS, L as loadMachineContext, M as buildMachineInstructions, N as machineToolsForRole, O as buildMachineTools } from './run-CetRvMab.mjs';
1
+ import { R as READ_ONLY_TOOLS, L as loadMachineContext, M as buildMachineInstructions, N as machineToolsForRole, O as buildMachineTools } from './run-Dn6ZqBs9.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.266",
3
+ "version": "0.2.267",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",