svamp-cli 0.2.145 → 0.2.147

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
2
2
  import { join, dirname } from 'node:path';
3
3
  import os from 'node:os';
4
4
  import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
5
- import { m as shortId } from './run-C_xwiN7C.mjs';
5
+ import { m as shortId } from './run-EWIn-Drp.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -96,7 +96,7 @@ async function sessionSetTitle(title) {
96
96
  }
97
97
  async function sessionSetProjectDescription(description) {
98
98
  const dir = process.cwd();
99
- const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a1; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a1; });
100
100
  const desc = sanitizeDescription(description, 240);
101
101
  if (!desc) {
102
102
  console.error("Project description is empty.");
@@ -180,7 +180,7 @@ async function sessionBroadcast(action, args) {
180
180
  console.log(`Broadcast sent: ${action}`);
181
181
  }
182
182
  async function connectToMachineService() {
183
- const { connectAndGetMachine } = await import('./commands-Ch1QWOw5.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.mjs');
184
184
  return connectAndGetMachine();
185
185
  }
186
186
  function buildInboxMessage(args) {
@@ -258,7 +258,7 @@ async function inboxSend(targetSessionId, opts) {
258
258
  console.error("Message body is required.");
259
259
  process.exit(1);
260
260
  }
261
- const { connectAndResolveSession } = await import('./commands-Ch1QWOw5.mjs');
261
+ const { connectAndResolveSession } = await import('./commands-C-g9lywx.mjs');
262
262
  let server;
263
263
  try {
264
264
  const { targetId, messageId } = await inboxSendCore(
@@ -312,7 +312,7 @@ async function inboxReply(messageId, body) {
312
312
  console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
313
313
  process.exit(1);
314
314
  }
315
- const { connectAndResolveSession } = await import('./commands-Ch1QWOw5.mjs');
315
+ const { connectAndResolveSession } = await import('./commands-C-g9lywx.mjs');
316
316
  const { server: localServer, machine: localMachine } = await connectToMachineService();
317
317
  let localDisconnected = false;
318
318
  const disconnectLocal = async () => {
@@ -1,4 +1,4 @@
1
- import { D as resolveModel } from './run-C_xwiN7C.mjs';
1
+ import { D as resolveModel } from './run-EWIn-Drp.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-C_xwiN7C.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-EWIn-Drp.mjs';
2
2
  import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
@@ -34,7 +34,7 @@ const subcommand = args[0];
34
34
  let daemonSubcommand = args[1];
35
35
  async function main() {
36
36
  try {
37
- const { getLoadedConfig } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a8; });
37
+ const { getLoadedConfig } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a8; });
38
38
  getLoadedConfig();
39
39
  } catch {
40
40
  }
@@ -51,7 +51,7 @@ async function main() {
51
51
  console.error(`svamp daemon restart: ${err.message || err}`);
52
52
  process.exit(1);
53
53
  }
54
- const { restartDaemon } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.aa; });
54
+ const { restartDaemon } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.aa; });
55
55
  await restartDaemon();
56
56
  process.exit(0);
57
57
  }
@@ -344,7 +344,7 @@ async function main() {
344
344
  console.error("svamp service: Service commands are not available in sandboxed sessions.");
345
345
  process.exit(1);
346
346
  }
347
- const { handleServiceCommand } = await import('./commands-CQq9IPHT.mjs');
347
+ const { handleServiceCommand } = await import('./commands-DAaj-lDd.mjs');
348
348
  await handleServiceCommand();
349
349
  } else if (subcommand === "serve") {
350
350
  const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
@@ -352,7 +352,7 @@ async function main() {
352
352
  console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
353
353
  process.exit(1);
354
354
  }
355
- const { handleServeCommand } = await import('./serveCommands-CT8FkNVX.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-BrctGwlB.mjs');
356
356
  await handleServeCommand();
357
357
  process.exit(0);
358
358
  } else if (subcommand === "process" || subcommand === "proc") {
@@ -361,7 +361,7 @@ async function main() {
361
361
  console.error("svamp process: Process commands are not available in sandboxed sessions.");
362
362
  process.exit(1);
363
363
  }
364
- const { processCommand } = await import('./commands-DEsTyvId.mjs');
364
+ const { processCommand } = await import('./commands-Dm4Jn8EO.mjs');
365
365
  let machineId;
366
366
  const processArgs = args.slice(1);
367
367
  const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
@@ -375,18 +375,18 @@ async function main() {
375
375
  }), machineId);
376
376
  process.exit(0);
377
377
  } else if (subcommand === "issue" || subcommand === "issues") {
378
- const { issueCommand } = await import('./commands-CnTCySqf.mjs');
378
+ const { issueCommand } = await import('./commands-BehT4StJ.mjs');
379
379
  await issueCommand(args.slice(1));
380
380
  process.exit(0);
381
381
  } else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
382
- const { routineCommand } = await import('./commands-C32pZOjP.mjs');
382
+ const { routineCommand } = await import('./commands-DGdTNagn.mjs');
383
383
  await routineCommand(args.slice(1));
384
384
  process.exit(0);
385
385
  } else if (subcommand === "wise-agent" || subcommand === "wise") {
386
386
  await handleWiseAgentCommand(args.slice(1));
387
387
  process.exit(0);
388
388
  } else if (subcommand === "feature" || subcommand === "crew") {
389
- const { crewCommand } = await import('./commands-DCnmdwyA.mjs');
389
+ const { crewCommand } = await import('./commands-BnfINAHT.mjs');
390
390
  await crewCommand(args.slice(1));
391
391
  process.exit(0);
392
392
  } else if (subcommand === "--help" || subcommand === "-h") {
@@ -394,7 +394,7 @@ async function main() {
394
394
  } else if (!subcommand || subcommand === "start") {
395
395
  await handleInteractiveCommand();
396
396
  } else if (subcommand === "--version" || subcommand === "-v") {
397
- const pkg = await import('./package-CVMv1Bcz.mjs').catch(() => ({ default: { version: "unknown" } }));
397
+ const pkg = await import('./package-B-olGbjq.mjs').catch(() => ({ default: { version: "unknown" } }));
398
398
  console.log(`svamp version: ${pkg.default.version}`);
399
399
  } else {
400
400
  console.error(`Unknown command: ${subcommand}`);
@@ -403,7 +403,7 @@ async function main() {
403
403
  }
404
404
  }
405
405
  async function handleInteractiveCommand() {
406
- const { runInteractive } = await import('./run-DeQmHou8.mjs');
406
+ const { runInteractive } = await import('./run-DePAEN5V.mjs');
407
407
  const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
408
408
  let directory = process.cwd();
409
409
  let resumeSessionId;
@@ -448,7 +448,7 @@ async function handleAgentCommand() {
448
448
  return;
449
449
  }
450
450
  if (agentArgs[0] === "list") {
451
- const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a4; });
451
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a4; });
452
452
  console.log("Known agents:");
453
453
  for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
454
454
  console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
@@ -460,7 +460,7 @@ async function handleAgentCommand() {
460
460
  console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
461
461
  return;
462
462
  }
463
- const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a4; });
463
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a4; });
464
464
  let cwd = process.cwd();
465
465
  const filteredArgs = [];
466
466
  for (let i = 0; i < agentArgs.length; i++) {
@@ -484,12 +484,12 @@ async function handleAgentCommand() {
484
484
  console.log(`Starting ${config.agentName} agent in ${cwd}...`);
485
485
  let backend;
486
486
  if (KNOWN_MCP_AGENTS[config.agentName]) {
487
- const { CodexMcpBackend } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a5; });
487
+ const { CodexMcpBackend } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a5; });
488
488
  backend = new CodexMcpBackend({ cwd, log: logFn });
489
489
  } else {
490
- const { AcpBackend } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a3; });
491
- const { GeminiTransport } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a6; });
492
- const { DefaultTransport } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a2; });
490
+ const { AcpBackend } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a3; });
491
+ const { GeminiTransport } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a6; });
492
+ const { DefaultTransport } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a2; });
493
493
  const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
494
494
  backend = new AcpBackend({
495
495
  agentName: config.agentName,
@@ -616,7 +616,7 @@ async function handleSessionCommand() {
616
616
  process.exit(1);
617
617
  }
618
618
  }
619
- const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionChecklist, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-Ch1QWOw5.mjs');
619
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionChecklist, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-C-g9lywx.mjs');
620
620
  const parseFlagStr = (flag, shortFlag) => {
621
621
  for (let i = 1; i < sessionArgs.length; i++) {
622
622
  if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
@@ -684,7 +684,7 @@ async function handleSessionCommand() {
684
684
  allowDomain.push(sessionArgs[++i]);
685
685
  }
686
686
  }
687
- const { parseShareArg } = await import('./commands-Ch1QWOw5.mjs');
687
+ const { parseShareArg } = await import('./commands-C-g9lywx.mjs');
688
688
  const shareEntries = share.map((s) => parseShareArg(s));
689
689
  await sessionSpawn(agent, dir, targetMachineId, {
690
690
  message,
@@ -769,7 +769,7 @@ async function handleSessionCommand() {
769
769
  console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
770
770
  process.exit(1);
771
771
  }
772
- const { sessionEditMessage } = await import('./commands-Ch1QWOw5.mjs');
772
+ const { sessionEditMessage } = await import('./commands-C-g9lywx.mjs');
773
773
  await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
774
774
  } else if (sessionSubcommand === "refine") {
775
775
  if (!sessionArgs[1] || !sessionArgs[2]) {
@@ -777,7 +777,7 @@ async function handleSessionCommand() {
777
777
  console.error(" Asks the agent to revise its latest reply in place (no extra round).");
778
778
  process.exit(1);
779
779
  }
780
- const { sessionRefineLastReply } = await import('./commands-Ch1QWOw5.mjs');
780
+ const { sessionRefineLastReply } = await import('./commands-C-g9lywx.mjs');
781
781
  await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
782
782
  } else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
783
783
  if (!sessionArgs[1]) {
@@ -785,7 +785,7 @@ async function handleSessionCommand() {
785
785
  console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
786
786
  process.exit(1);
787
787
  }
788
- const { sessionUndoEdit } = await import('./commands-Ch1QWOw5.mjs');
788
+ const { sessionUndoEdit } = await import('./commands-C-g9lywx.mjs');
789
789
  await sessionUndoEdit(sessionArgs[1], targetMachineId);
790
790
  } else if (sessionSubcommand === "query") {
791
791
  const dir = sessionArgs[1];
@@ -795,7 +795,7 @@ async function handleSessionCommand() {
795
795
  console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
796
796
  process.exit(1);
797
797
  }
798
- const { sessionQuery } = await import('./commands-Ch1QWOw5.mjs');
798
+ const { sessionQuery } = await import('./commands-C-g9lywx.mjs');
799
799
  await sessionQuery(dir, prompt, targetMachineId, {
800
800
  timeout: parseFlagInt("--timeout"),
801
801
  json: hasFlag("--json"),
@@ -828,7 +828,7 @@ async function handleSessionCommand() {
828
828
  console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
829
829
  process.exit(1);
830
830
  }
831
- const { sessionApprove } = await import('./commands-Ch1QWOw5.mjs');
831
+ const { sessionApprove } = await import('./commands-C-g9lywx.mjs');
832
832
  const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
833
833
  await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
834
834
  json: hasFlag("--json")
@@ -838,7 +838,7 @@ async function handleSessionCommand() {
838
838
  console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
839
839
  process.exit(1);
840
840
  }
841
- const { sessionDeny } = await import('./commands-Ch1QWOw5.mjs');
841
+ const { sessionDeny } = await import('./commands-C-g9lywx.mjs');
842
842
  const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
843
843
  await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
844
844
  json: hasFlag("--json")
@@ -916,7 +916,7 @@ async function handleSessionCommand() {
916
916
  console.error("Usage: svamp session set-title <title>");
917
917
  process.exit(1);
918
918
  }
919
- const { sessionSetTitle } = await import('./agentCommands-A88RBPcw.mjs');
919
+ const { sessionSetTitle } = await import('./agentCommands-OSscKEu_.mjs');
920
920
  await sessionSetTitle(title);
921
921
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
922
922
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -924,7 +924,7 @@ async function handleSessionCommand() {
924
924
  console.error("Usage: svamp session set-project-description <text>");
925
925
  process.exit(1);
926
926
  }
927
- const { sessionSetProjectDescription } = await import('./agentCommands-A88RBPcw.mjs');
927
+ const { sessionSetProjectDescription } = await import('./agentCommands-OSscKEu_.mjs');
928
928
  await sessionSetProjectDescription(desc);
929
929
  } else if (sessionSubcommand === "set-link") {
930
930
  const url = sessionArgs[1];
@@ -933,7 +933,7 @@ async function handleSessionCommand() {
933
933
  process.exit(1);
934
934
  }
935
935
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
936
- const { sessionSetLink } = await import('./agentCommands-A88RBPcw.mjs');
936
+ const { sessionSetLink } = await import('./agentCommands-OSscKEu_.mjs');
937
937
  await sessionSetLink(url, label);
938
938
  } else if (sessionSubcommand === "notify") {
939
939
  const message = sessionArgs[1];
@@ -942,7 +942,7 @@ async function handleSessionCommand() {
942
942
  process.exit(1);
943
943
  }
944
944
  const level = parseFlagStr("--level") || "info";
945
- const { sessionNotify } = await import('./agentCommands-A88RBPcw.mjs');
945
+ const { sessionNotify } = await import('./agentCommands-OSscKEu_.mjs');
946
946
  await sessionNotify(message, level);
947
947
  } else if (sessionSubcommand === "broadcast") {
948
948
  const action = sessionArgs[1];
@@ -950,7 +950,7 @@ async function handleSessionCommand() {
950
950
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
951
951
  process.exit(1);
952
952
  }
953
- const { sessionBroadcast } = await import('./agentCommands-A88RBPcw.mjs');
953
+ const { sessionBroadcast } = await import('./agentCommands-OSscKEu_.mjs');
954
954
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
955
955
  } else if (sessionSubcommand === "inbox") {
956
956
  const inboxSubcmd = sessionArgs[1];
@@ -961,7 +961,7 @@ async function handleSessionCommand() {
961
961
  process.exit(1);
962
962
  }
963
963
  if (agentSessionId) {
964
- const { inboxSend } = await import('./agentCommands-A88RBPcw.mjs');
964
+ const { inboxSend } = await import('./agentCommands-OSscKEu_.mjs');
965
965
  await inboxSend(sessionArgs[2], {
966
966
  body: sessionArgs[3],
967
967
  subject: parseFlagStr("--subject"),
@@ -976,7 +976,7 @@ async function handleSessionCommand() {
976
976
  }
977
977
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
978
978
  if (agentSessionId && !sessionArgs[2]) {
979
- const { inboxList } = await import('./agentCommands-A88RBPcw.mjs');
979
+ const { inboxList } = await import('./agentCommands-OSscKEu_.mjs');
980
980
  await inboxList({
981
981
  unread: hasFlag("--unread"),
982
982
  limit: parseFlagInt("--limit"),
@@ -998,7 +998,7 @@ async function handleSessionCommand() {
998
998
  process.exit(1);
999
999
  }
1000
1000
  if (agentSessionId && !sessionArgs[3]) {
1001
- const { inboxList } = await import('./agentCommands-A88RBPcw.mjs');
1001
+ const { inboxList } = await import('./agentCommands-OSscKEu_.mjs');
1002
1002
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
1003
1003
  } else if (sessionArgs[3]) {
1004
1004
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -1008,7 +1008,7 @@ async function handleSessionCommand() {
1008
1008
  }
1009
1009
  } else if (inboxSubcmd === "reply") {
1010
1010
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
1011
- const { inboxReply } = await import('./agentCommands-A88RBPcw.mjs');
1011
+ const { inboxReply } = await import('./agentCommands-OSscKEu_.mjs');
1012
1012
  await inboxReply(sessionArgs[2], sessionArgs[3]);
1013
1013
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
1014
1014
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1044,7 +1044,7 @@ async function handleMachineCommand() {
1044
1044
  return;
1045
1045
  }
1046
1046
  if (machineSubcommand === "share") {
1047
- const { machineShare } = await import('./commands-Ch1QWOw5.mjs');
1047
+ const { machineShare } = await import('./commands-C-g9lywx.mjs');
1048
1048
  let machineId;
1049
1049
  const shareArgs = [];
1050
1050
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1095,14 +1095,14 @@ async function handleMachineCommand() {
1095
1095
  process.exit(1);
1096
1096
  }
1097
1097
  if (all) {
1098
- const { fleetExec } = await import('./fleet-DcEzZjXK.mjs');
1098
+ const { fleetExec } = await import('./fleet-CCHM-ooo.mjs');
1099
1099
  await fleetExec(command, { cwd });
1100
1100
  } else {
1101
- const { machineExec } = await import('./commands-Ch1QWOw5.mjs');
1101
+ const { machineExec } = await import('./commands-C-g9lywx.mjs');
1102
1102
  await machineExec(machineId, command, cwd);
1103
1103
  }
1104
1104
  } else if (machineSubcommand === "info") {
1105
- const { machineInfo } = await import('./commands-Ch1QWOw5.mjs');
1105
+ const { machineInfo } = await import('./commands-C-g9lywx.mjs');
1106
1106
  let machineId;
1107
1107
  for (let i = 1; i < machineArgs.length; i++) {
1108
1108
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1122,10 +1122,10 @@ async function handleMachineCommand() {
1122
1122
  level = machineArgs[++i];
1123
1123
  }
1124
1124
  }
1125
- const { machineNotify } = await import('./agentCommands-A88RBPcw.mjs');
1125
+ const { machineNotify } = await import('./agentCommands-OSscKEu_.mjs');
1126
1126
  await machineNotify(message, level);
1127
1127
  } else if (machineSubcommand === "ls") {
1128
- const { machineLs } = await import('./commands-Ch1QWOw5.mjs');
1128
+ const { machineLs } = await import('./commands-C-g9lywx.mjs');
1129
1129
  let machineId;
1130
1130
  let showHidden = false;
1131
1131
  let path;
@@ -1181,20 +1181,20 @@ Examples:
1181
1181
  };
1182
1182
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1183
1183
  if (sub === "status") {
1184
- const { fleetStatus } = await import('./fleet-DcEzZjXK.mjs');
1184
+ const { fleetStatus } = await import('./fleet-CCHM-ooo.mjs');
1185
1185
  await fleetStatus();
1186
1186
  } else if (sub === "upgrade-claude") {
1187
- const { fleetUpgradeClaude } = await import('./fleet-DcEzZjXK.mjs');
1187
+ const { fleetUpgradeClaude } = await import('./fleet-CCHM-ooo.mjs');
1188
1188
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1189
1189
  } else if (sub === "upgrade-svamp") {
1190
- const { fleetUpgradeSvamp } = await import('./fleet-DcEzZjXK.mjs');
1190
+ const { fleetUpgradeSvamp } = await import('./fleet-CCHM-ooo.mjs');
1191
1191
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1192
1192
  } else if (sub === "daemon-restart") {
1193
- const { fleetDaemonRestart } = await import('./fleet-DcEzZjXK.mjs');
1193
+ const { fleetDaemonRestart } = await import('./fleet-CCHM-ooo.mjs');
1194
1194
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1195
1195
  } else if (sub === "push-skill") {
1196
1196
  const name = fleetArgs[1];
1197
- const { fleetPushSkill } = await import('./fleet-DcEzZjXK.mjs');
1197
+ const { fleetPushSkill } = await import('./fleet-CCHM-ooo.mjs');
1198
1198
  await fleetPushSkill(name);
1199
1199
  } else {
1200
1200
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1210,7 +1210,7 @@ async function handleSkillsCommand() {
1210
1210
  await printSkillsHelp();
1211
1211
  return;
1212
1212
  }
1213
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-vRj1CJJw.mjs');
1213
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-2-F0PDaF.mjs');
1214
1214
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1215
1215
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1216
1216
  if (!query) {
@@ -1257,7 +1257,7 @@ async function loginToHypha() {
1257
1257
  process.exit(1);
1258
1258
  }
1259
1259
  const anchor = anchorArg.replace(/\/+$/, "");
1260
- const { loadInstanceConfig } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a8; });
1260
+ const { loadInstanceConfig } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a8; });
1261
1261
  let cfg = null;
1262
1262
  try {
1263
1263
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1368,7 +1368,7 @@ async function logoutFromHypha() {
1368
1368
  } catch {
1369
1369
  }
1370
1370
  try {
1371
- const { clearInstanceConfigCache } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a8; });
1371
+ const { clearInstanceConfigCache } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a8; });
1372
1372
  clearInstanceConfigCache();
1373
1373
  } catch {
1374
1374
  }
@@ -1706,7 +1706,7 @@ async function applyClaudeAuthFlags(argv) {
1706
1706
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1707
1707
  );
1708
1708
  }
1709
- const mod = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a7; });
1709
+ const mod = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a7; });
1710
1710
  if (hasHypha) {
1711
1711
  let url;
1712
1712
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1760,7 +1760,7 @@ async function applyDaemonShareFlag(argv) {
1760
1760
  }
1761
1761
  }
1762
1762
  if (collected.length === 0) return;
1763
- const { updateEnvFile } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a7; });
1763
+ const { updateEnvFile } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a7; });
1764
1764
  const seen = /* @__PURE__ */ new Set();
1765
1765
  const deduped = collected.filter((e) => {
1766
1766
  const k = e.toLowerCase();
@@ -1793,7 +1793,7 @@ async function handleWiseAgentCommand(rest) {
1793
1793
  }
1794
1794
  });
1795
1795
  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(" ");
1796
- const { wiseAskCli } = await import('./commands-Ch1QWOw5.mjs');
1796
+ const { wiseAskCli } = await import('./commands-C-g9lywx.mjs');
1797
1797
  await wiseAskCli(machineId, message, sessionId, { json });
1798
1798
  return;
1799
1799
  }
@@ -1805,7 +1805,7 @@ async function handleWiseAgentCommand(rest) {
1805
1805
  }
1806
1806
  return void 0;
1807
1807
  };
1808
- const { runWiseVoiceCli } = await import('./headlessCli-C6LHBoWj.mjs');
1808
+ const { runWiseVoiceCli } = await import('./headlessCli-DBt1SifE.mjs');
1809
1809
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1810
1810
  return;
1811
1811
  }
@@ -1821,7 +1821,7 @@ async function handleWiseAgentCommand(rest) {
1821
1821
  const sessionId = rest.includes("--global") ? void 0 : valueOf(["--session", "-s"]);
1822
1822
  const json = rest.includes("--json");
1823
1823
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1824
- const { wiseJoinMeetingCli } = await import('./commands-Ch1QWOw5.mjs');
1824
+ const { wiseJoinMeetingCli } = await import('./commands-C-g9lywx.mjs');
1825
1825
  await wiseJoinMeetingCli(machineId, url, sessionId, { json });
1826
1826
  return;
1827
1827
  }
@@ -1833,7 +1833,7 @@ async function handleWiseAgentCommand(rest) {
1833
1833
  }
1834
1834
  return void 0;
1835
1835
  };
1836
- const { wiseLeaveMeetingCli } = await import('./commands-Ch1QWOw5.mjs');
1836
+ const { wiseLeaveMeetingCli } = await import('./commands-C-g9lywx.mjs');
1837
1837
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1838
1838
  return;
1839
1839
  }
@@ -1845,7 +1845,7 @@ async function handleWiseAgentCommand(rest) {
1845
1845
  }
1846
1846
  return void 0;
1847
1847
  };
1848
- const { wiseMeetingsCli } = await import('./commands-Ch1QWOw5.mjs');
1848
+ const { wiseMeetingsCli } = await import('./commands-C-g9lywx.mjs');
1849
1849
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1850
1850
  return;
1851
1851
  }
@@ -1890,7 +1890,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1890
1890
  return;
1891
1891
  }
1892
1892
  const authArgs = rest.slice(1);
1893
- const mod = await import('./auth-PeW_vYYq.mjs');
1893
+ const mod = await import('./auth-DXr8WGEh.mjs');
1894
1894
  let action;
1895
1895
  try {
1896
1896
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1900,7 +1900,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1900
1900
  return;
1901
1901
  }
1902
1902
  if (action) {
1903
- const { updateEnvFile } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a7; });
1903
+ const { updateEnvFile } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a7; });
1904
1904
  const updates = mod.buildWiseAgentEnvUpdates(action);
1905
1905
  updateEnvFile(updates);
1906
1906
  for (const [k, v] of Object.entries(updates)) {
@@ -1914,7 +1914,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1914
1914
  }
1915
1915
  async function handleDaemonAuthCommand(argv) {
1916
1916
  const sub = (argv[0] || "status").toLowerCase();
1917
- const mod = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a7; });
1917
+ const mod = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a7; });
1918
1918
  if (sub === "--help" || sub === "-h" || sub === "help") {
1919
1919
  console.log(`
1920
1920
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2227,7 +2227,7 @@ Examples:
2227
2227
  async function printSkillsHelp() {
2228
2228
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2229
2229
  try {
2230
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-C_xwiN7C.mjs').then(function (n) { return n.a9; });
2230
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-EWIn-Drp.mjs').then(function (n) { return n.a9; });
2231
2231
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2232
2232
  } catch {
2233
2233
  }
@@ -1,7 +1,7 @@
1
1
  import os from 'os';
2
2
  import fs__default from 'fs';
3
3
  import { resolve, join, relative } from 'path';
4
- import { p as parseFrontmatter, n as getSkillsServer, o as getSkillsWorkspaceName, q as getSkillsCollectionName, t as fetchWithTimeout, u as searchSkills, v as SKILLS_DIR, w as getSkillInfo, x as downloadSkillFile, y as listSkillFiles } from './run-C_xwiN7C.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-EWIn-Drp.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -1,4 +1,4 @@
1
- import { existsSync, readFileSync, unlinkSync, mkdirSync, writeFileSync, renameSync, readdirSync } from 'node:fs';
1
+ import { existsSync, readFileSync, unlinkSync, readdirSync, mkdirSync, writeFileSync, renameSync } from 'node:fs';
2
2
  import { join, dirname } from 'node:path';
3
3
  import { execFileSync } from 'node:child_process';
4
4
 
@@ -357,6 +357,13 @@ ${issue.body}`);
357
357
  ok(updated, `Commented on #${updated.id}`);
358
358
  break;
359
359
  }
360
+ case "pending": {
361
+ const pending = listIssues(root).filter((i) => i.status === "ready" || i.status === "in_progress");
362
+ if (json) console.log(JSON.stringify(pending));
363
+ else out(pending.length ? `${pending.length} pending: ${pending.map((i) => "#" + i.id).join(" ")}` : "No pending issues.");
364
+ process.exit(pending.length ? 1 : 0);
365
+ break;
366
+ }
360
367
  case "search": {
361
368
  const q = positional(rest)[0] || "";
362
369
  const items = searchIssues(root, q);
@@ -384,6 +391,7 @@ ${issue.body}`);
384
391
  " ready <id> | start <id> | close <id> | reopen <id> | backlog <id> | archive <id>",
385
392
  " edit <id> [--title \u2026] [--label x] [--verify-cmd \u2026] [--no-verify] [--status \u2026] [--body \u2026]",
386
393
  ' comment <id> "<text>" # append a follow-up to the issue',
394
+ " pending # exit 0 if no ready/in-progress issues (loop oracle)",
387
395
  ' search "<query>" [--json]'
388
396
  ].join("\n"));
389
397
  break;
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from 'node:fs';
2
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-Ch1QWOw5.mjs';
2
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-C-g9lywx.mjs';
3
3
  import { execSync } from 'node:child_process';
4
- import { m as shortId } from './run-C_xwiN7C.mjs';
4
+ import { m as shortId } from './run-EWIn-Drp.mjs';
5
5
  import 'node:path';
6
6
  import 'node:os';
7
7
  import 'os';
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
2
2
  import { execSync } from 'node:child_process';
3
3
  import { basename, resolve, join, isAbsolute } from 'node:path';
4
4
  import os from 'node:os';
5
- import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as validateChecklist, Q as computeOutboundHop, m as shortId, T as buildMachineShareUrl, U as summarize, V as newItem, W as parseHandle, X as handleMatchesMetadata } from './run-C_xwiN7C.mjs';
5
+ import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as validateChecklist, Q as computeOutboundHop, m as shortId, T as buildMachineShareUrl, U as summarize, V as newItem, W as parseHandle, X as handleMatchesMetadata } from './run-EWIn-Drp.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-MevmUvAf.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-Ckp8c1o5.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-Ch1QWOw5.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.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-MevmUvAf.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-Ckp8c1o5.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-Ch1QWOw5.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.mjs');
136
136
  const { server, machine } = await connectAndGetMachine();
137
137
  try {
138
138
  const tunnels = await machine.tunnelList({});
@@ -172,7 +172,7 @@ async function serviceDelete(args) {
172
172
  process.exit(1);
173
173
  }
174
174
  try {
175
- const { connectAndGetMachine } = await import('./commands-Ch1QWOw5.mjs');
175
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.mjs');
176
176
  const { server, machine } = await connectAndGetMachine();
177
177
  try {
178
178
  await machine.tunnelStop({ name });
@@ -1,7 +1,7 @@
1
1
  import { execSync, execFileSync } from 'node:child_process';
2
2
  import { randomUUID } from 'node:crypto';
3
3
  import { createServer } from 'node:http';
4
- import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-C_xwiN7C.mjs';
4
+ import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-EWIn-Drp.mjs';
5
5
  import 'os';
6
6
  import 'fs/promises';
7
7
  import 'fs';
@@ -104,7 +104,7 @@ Criteria: ${res.criteria || "(none)"}
104
104
  urgency: "normal",
105
105
  hopCount: 1
106
106
  };
107
- const { connectAndGetMachine } = await import('./commands-Ch1QWOw5.mjs');
107
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.mjs');
108
108
  const { server, machine } = await connectAndGetMachine();
109
109
  try {
110
110
  await machine.sessionRPC(reportTo, "sendInboxMessage", { message });
@@ -1,11 +1,11 @@
1
1
  import { writeFileSync, readFileSync } from 'fs';
2
2
  import { resolve } from 'path';
3
- import { connectAndGetMachine } from './commands-Ch1QWOw5.mjs';
3
+ import { connectAndGetMachine } from './commands-C-g9lywx.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-C_xwiN7C.mjs';
8
+ import './run-EWIn-Drp.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-C_xwiN7C.mjs';
4
+ import { c as connectToHypha } from './run-EWIn-Drp.mjs';
5
5
  import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-HydRNEt7.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
@@ -4,7 +4,7 @@ import { mkdirSync, writeFileSync, unlinkSync, existsSync, chmodSync, readFileSy
4
4
  import { join } from 'path';
5
5
  import { homedir, platform, arch } from 'os';
6
6
  import { randomUUID, createHash } from 'crypto';
7
- import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-C_xwiN7C.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-EWIn-Drp.mjs';
8
8
  import 'fs/promises';
9
9
  import 'url';
10
10
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-C_xwiN7C.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-xxUkkrOq.mjs';
1
+ import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-EWIn-Drp.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-COwBePyZ.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-C_xwiN7C.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-EWIn-Drp.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.145";
2
+ var version = "0.2.147";
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{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { _ as composeSessionId, $ as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a0 as generateHookSettings } from './run-C_xwiN7C.mjs';
1
+ import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { _ as composeSessionId, $ as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a0 as generateHookSettings } from './run-EWIn-Drp.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';
@@ -2771,7 +2771,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
2771
2771
  const tunnels = handlers.tunnels;
2772
2772
  if (!tunnels) throw new Error("Tunnel management not available");
2773
2773
  if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
2774
- const { FrpcTunnel } = await import('./frpc-MevmUvAf.mjs');
2774
+ const { FrpcTunnel } = await import('./frpc-Ckp8c1o5.mjs');
2775
2775
  const tunnel = new FrpcTunnel({
2776
2776
  name: params.name,
2777
2777
  ports: params.ports,
@@ -2977,19 +2977,34 @@ async function registerMachineService(server, machineId, metadata, daemonState,
2977
2977
  const base = (process.env.SVAMP_VEXA_API_URL || "").replace(/\/$/, "");
2978
2978
  const key = process.env.SVAMP_VEXA_API_KEY || "";
2979
2979
  if (!base || !key) return { success: false, error: "Meeting agent not configured: set SVAMP_VEXA_API_URL + SVAMP_VEXA_API_KEY in ~/.svamp/.env, then `svamp daemon restart`." };
2980
+ const WISE_URL = process.env.SVAMP_WISE_CHANNEL_URL || "";
2981
+ const WISE_KEY = process.env.SVAMP_WISE_CHANNEL_KEY || "";
2982
+ const sid = params.sessionId;
2983
+ const target = sid ? `session:${sid}` : "global";
2984
+ const rt = sid ? {
2985
+ target,
2986
+ instructions: `You are WISE, an AI participant in a live meeting, joined on behalf of the user's work session "${sid}". Speak naturally and concisely \u2014 1 to 3 sentences, since replies are heard aloud. For anything about that session's project, files, status, decisions, or tasks, call consult_wise (it reaches that session's WISE agent, which has its skills and can act via the deep agent). Only speak when addressed or asked a question; otherwise stay quiet.`
2987
+ } : {
2988
+ target,
2989
+ instructions: `You are WISE, a helpful AI assistant participating in this live meeting. Speak naturally and concisely \u2014 1 to 3 sentences, since replies are heard aloud. Help the participants and answer questions. Only speak when addressed or asked; otherwise stay quiet.`
2990
+ };
2991
+ if (WISE_URL) {
2992
+ rt.wiseUrl = WISE_URL;
2993
+ rt.wiseKey = WISE_KEY;
2994
+ }
2980
2995
  try {
2981
2996
  const res = await fetch(`${base}/bots`, {
2982
2997
  method: "POST",
2983
2998
  headers: { "X-API-Key": key, "Content-Type": "application/json" },
2984
- body: JSON.stringify({ platform: parsed.platform, native_meeting_id: parsed.nativeId, bot_name: "WISE Agent" })
2999
+ body: JSON.stringify({ platform: parsed.platform, native_meeting_id: parsed.nativeId, bot_name: "WISE Agent", rt })
2985
3000
  });
2986
3001
  const data = await res.json().catch(() => ({}));
2987
3002
  if (!res.ok) return { success: false, error: `meeting-api ${res.status}: ${data?.detail || data?.message || "launch failed"}` };
2988
- const rec = { meetingUrl: params.meetingUrl, platform: parsed.platform, nativeId: parsed.nativeId, target: params.sessionId ? `session:${params.sessionId}` : "global", sessionId: params.sessionId, botId: data?.bot_container_id, meetingId: data?.id, startedAt: Date.now() };
3003
+ const rec = { meetingUrl: params.meetingUrl, platform: parsed.platform, nativeId: parsed.nativeId, target, sessionId: params.sessionId, botId: data?.bot_container_id, meetingId: data?.id, startedAt: Date.now() };
2989
3004
  activeMeetingAgents.set(params.sessionId || `global:${parsed.nativeId}`, rec);
2990
3005
  return { success: true, ...rec, status: data?.status };
2991
3006
  } catch (e) {
2992
- return { success: false, error: e instanceof Error ? e.message : "join failed" };
3007
+ return { success: false, error: `meeting-api unreachable: ${e instanceof Error ? e.message : String(e)}` };
2993
3008
  }
2994
3009
  },
2995
3010
  wiseLeaveMeeting: async (params, context) => {
@@ -3121,7 +3136,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3121
3136
  }
3122
3137
  const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
3123
3138
  const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
3124
- const { toolsForRole } = await import('./sideband-xxUkkrOq.mjs');
3139
+ const { toolsForRole } = await import('./sideband-COwBePyZ.mjs');
3125
3140
  const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
3126
3141
  return fmt(r2);
3127
3142
  }
@@ -3220,7 +3235,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3220
3235
  if (r.error || !r.sender) return { error: r.error || "unauthorized" };
3221
3236
  const callId = "call_" + Math.random().toString(16).slice(2, 12);
3222
3237
  const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
3223
- const { queryCore } = await import('./commands-Ch1QWOw5.mjs');
3238
+ const { queryCore } = await import('./commands-C-g9lywx.mjs');
3224
3239
  const timeout = c.reply?.timeout_sec || 120;
3225
3240
  let result;
3226
3241
  try {
@@ -11681,7 +11696,7 @@ async function startDaemon(options) {
11681
11696
  saveExposedTunnels(list);
11682
11697
  }
11683
11698
  async function createExposedTunnel(spec) {
11684
- const { FrpcTunnel } = await import('./frpc-MevmUvAf.mjs');
11699
+ const { FrpcTunnel } = await import('./frpc-Ckp8c1o5.mjs');
11685
11700
  const tunnel = new FrpcTunnel({
11686
11701
  name: spec.name,
11687
11702
  ports: spec.ports,
@@ -11701,7 +11716,7 @@ async function startDaemon(options) {
11701
11716
  return tunnel;
11702
11717
  }
11703
11718
  const tunnelRecreateState = /* @__PURE__ */ new Map();
11704
- const { ServeManager } = await import('./serveManager-CK5APPYi.mjs');
11719
+ const { ServeManager } = await import('./serveManager-BUBFrei1.mjs');
11705
11720
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
11706
11721
  ensureAutoInstalledSkills(logger).catch(() => {
11707
11722
  });
@@ -54,7 +54,7 @@ async function handleServeCommand() {
54
54
  }
55
55
  }
56
56
  async function serveAdd(args, machineId) {
57
- const { connectAndGetMachine } = await import('./commands-Ch1QWOw5.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.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-Ch1QWOw5.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.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-Ch1QWOw5.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.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-Ch1QWOw5.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.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-Ch1QWOw5.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-C-g9lywx.mjs');
239
239
  const { machine, server } = await connectAndGetMachine(machineId);
240
240
  try {
241
241
  const info = await machine.serveInfo();
@@ -4,7 +4,7 @@ import * as fs from 'fs';
4
4
  import * as http from 'http';
5
5
  import * as net from 'net';
6
6
  import * as path from 'path';
7
- import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-C_xwiN7C.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-EWIn-Drp.mjs';
8
8
  import 'os';
9
9
  import 'fs/promises';
10
10
  import 'url';
@@ -733,7 +733,7 @@ class ServeManager {
733
733
  const mount = this.mounts.get(mountName);
734
734
  const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, buildLinkSubdomain(subdomainSafe, mount.linkToken)]]) : void 0;
735
735
  try {
736
- const { FrpcTunnel } = await import('./frpc-MevmUvAf.mjs');
736
+ const { FrpcTunnel } = await import('./frpc-Ckp8c1o5.mjs');
737
737
  let tunnel;
738
738
  tunnel = new FrpcTunnel({
739
739
  name: tunnelName,
@@ -1,4 +1,4 @@
1
- import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-C_xwiN7C.mjs';
1
+ import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-EWIn-Drp.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.145",
3
+ "version": "0.2.147",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",