svamp-cli 0.2.177 → 0.2.178

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 (24) hide show
  1. package/dist/{agentCommands-DWvXxX8p.mjs → agentCommands-BIn9btot.mjs} +5 -5
  2. package/dist/{auth-Dxka4cE6.mjs → auth-DY_tcgLY.mjs} +1 -1
  3. package/dist/cli.mjs +60 -60
  4. package/dist/{commands--dKRqMv8.mjs → commands-BTyp-k7w.mjs} +5 -5
  5. package/dist/{commands-CwdYZQ-a.mjs → commands-BfdkS7Iy.mjs} +10 -10
  6. package/dist/{commands-Bf-TovMw.mjs → commands-CdMEMD_c.mjs} +1 -1
  7. package/dist/{commands-iXMwyExn.mjs → commands-J9WOCzDG.mjs} +2 -2
  8. package/dist/{commands-B4u6CUWH.mjs → commands-MjIkmrmC.mjs} +1 -1
  9. package/dist/{commands-BwBxmMxJ.mjs → commands-WgUO8QeK.mjs} +1 -1
  10. package/dist/{commands-DVKFo1pt.mjs → commands-kepmDOXD.mjs} +2 -2
  11. package/dist/{fleet-plROHfB8.mjs → fleet-CDllUpMj.mjs} +1 -1
  12. package/dist/{frpc-yc5-4EUe.mjs → frpc-D4x74mG6.mjs} +1 -1
  13. package/dist/{headlessCli-D7vLrl7K.mjs → headlessCli-CmBCGmNV.mjs} +2 -2
  14. package/dist/index.mjs +1 -1
  15. package/dist/{package-Do-iBoUv.mjs → package-B-yM7SvY.mjs} +1 -1
  16. package/dist/{rpc-DUZqKPK4.mjs → rpc-2TJ6ipXZ.mjs} +7 -7
  17. package/dist/{rpc-D1gr74eF.mjs → rpc-DBH2bo8s.mjs} +1 -1
  18. package/dist/{run-21-bMHCc.mjs → run-B-1WDymr.mjs} +22 -16
  19. package/dist/{run-C__yViCA.mjs → run-BVNBqt1C.mjs} +1 -1
  20. package/dist/{scheduler-DweevMw_.mjs → scheduler-C3j8Tghm.mjs} +1 -1
  21. package/dist/{serveCommands-BZmiAjxi.mjs → serveCommands-BFWBxK8L.mjs} +5 -5
  22. package/dist/{serveManager-AbWv-Akt.mjs → serveManager-DXm1bdoU.mjs} +2 -2
  23. package/dist/{sideband-CzzHtakf.mjs → sideband-Da1VG2iq.mjs} +1 -1
  24. 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 { x as shortId } from './run-21-bMHCc.mjs';
5
+ import { x as shortId } from './run-B-1WDymr.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-21-bMHCc.mjs').then(function (n) { return n.a3; });
99
+ const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a3; });
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-B4u6CUWH.mjs');
183
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
261
+ const { connectAndResolveSession } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
315
+ const { connectAndResolveSession } = await import('./commands-MjIkmrmC.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 { M as resolveModel } from './run-21-bMHCc.mjs';
1
+ import { M as resolveModel } from './run-B-1WDymr.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-21-bMHCc.mjs';
1
+ import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-B-1WDymr.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-21-bMHCc.mjs').then(function (n) { return n.aa; });
37
+ const { getLoadedConfig } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.aa; });
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-21-bMHCc.mjs').then(function (n) { return n.ac; });
54
+ const { restartDaemon } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.ac; });
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--dKRqMv8.mjs');
347
+ const { handleServiceCommand } = await import('./commands-BTyp-k7w.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-BZmiAjxi.mjs');
355
+ const { handleServeCommand } = await import('./serveCommands-BFWBxK8L.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-DVKFo1pt.mjs');
364
+ const { processCommand } = await import('./commands-kepmDOXD.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-CwdYZQ-a.mjs');
378
+ const { issueCommand } = await import('./commands-BfdkS7Iy.mjs');
379
379
  await issueCommand(args.slice(1));
380
380
  process.exit(0);
381
381
  } else if (subcommand === "workflow" || subcommand === "workflows") {
382
- const { workflowCommand } = await import('./commands-BwBxmMxJ.mjs');
382
+ const { workflowCommand } = await import('./commands-WgUO8QeK.mjs');
383
383
  await workflowCommand(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-iXMwyExn.mjs');
389
+ const { crewCommand } = await import('./commands-J9WOCzDG.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-Do-iBoUv.mjs').catch(() => ({ default: { version: "unknown" } }));
397
+ const pkg = await import('./package-B-yM7SvY.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-C__yViCA.mjs');
406
+ const { runInteractive } = await import('./run-BVNBqt1C.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-21-bMHCc.mjs').then(function (n) { return n.a6; });
451
+ const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a6; });
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-21-bMHCc.mjs').then(function (n) { return n.a6; });
463
+ const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a6; });
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-21-bMHCc.mjs').then(function (n) { return n.a7; });
487
+ const { CodexMcpBackend } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a7; });
488
488
  backend = new CodexMcpBackend({ cwd, log: logFn });
489
489
  } else {
490
- const { AcpBackend } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.a5; });
491
- const { GeminiTransport } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.a8; });
492
- const { DefaultTransport } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.a4; });
490
+ const { AcpBackend } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a5; });
491
+ const { GeminiTransport } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a8; });
492
+ const { DefaultTransport } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a4; });
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, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-B4u6CUWH.mjs');
619
+ const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
687
+ const { parseShareArg } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
772
+ const { sessionEditMessage } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
780
+ const { sessionRefineLastReply } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
788
+ const { sessionUndoEdit } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
798
+ const { sessionQuery } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
831
+ const { sessionApprove } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
841
+ const { sessionDeny } = await import('./commands-MjIkmrmC.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")
@@ -880,7 +880,7 @@ async function handleSessionCommand() {
880
880
  console.error("Usage: svamp session set-title <title>");
881
881
  process.exit(1);
882
882
  }
883
- const { sessionSetTitle } = await import('./agentCommands-DWvXxX8p.mjs');
883
+ const { sessionSetTitle } = await import('./agentCommands-BIn9btot.mjs');
884
884
  await sessionSetTitle(title);
885
885
  } else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
886
886
  const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
@@ -888,7 +888,7 @@ async function handleSessionCommand() {
888
888
  console.error("Usage: svamp session set-project-description <text>");
889
889
  process.exit(1);
890
890
  }
891
- const { sessionSetProjectDescription } = await import('./agentCommands-DWvXxX8p.mjs');
891
+ const { sessionSetProjectDescription } = await import('./agentCommands-BIn9btot.mjs');
892
892
  await sessionSetProjectDescription(desc);
893
893
  } else if (sessionSubcommand === "set-link") {
894
894
  const url = sessionArgs[1];
@@ -897,7 +897,7 @@ async function handleSessionCommand() {
897
897
  process.exit(1);
898
898
  }
899
899
  const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
900
- const { sessionSetLink } = await import('./agentCommands-DWvXxX8p.mjs');
900
+ const { sessionSetLink } = await import('./agentCommands-BIn9btot.mjs');
901
901
  await sessionSetLink(url, label);
902
902
  } else if (sessionSubcommand === "notify") {
903
903
  const message = sessionArgs[1];
@@ -906,7 +906,7 @@ async function handleSessionCommand() {
906
906
  process.exit(1);
907
907
  }
908
908
  const level = parseFlagStr("--level") || "info";
909
- const { sessionNotify } = await import('./agentCommands-DWvXxX8p.mjs');
909
+ const { sessionNotify } = await import('./agentCommands-BIn9btot.mjs');
910
910
  await sessionNotify(message, level);
911
911
  } else if (sessionSubcommand === "broadcast") {
912
912
  const action = sessionArgs[1];
@@ -914,7 +914,7 @@ async function handleSessionCommand() {
914
914
  console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
915
915
  process.exit(1);
916
916
  }
917
- const { sessionBroadcast } = await import('./agentCommands-DWvXxX8p.mjs');
917
+ const { sessionBroadcast } = await import('./agentCommands-BIn9btot.mjs');
918
918
  await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
919
919
  } else if (sessionSubcommand === "inbox") {
920
920
  const inboxSubcmd = sessionArgs[1];
@@ -925,7 +925,7 @@ async function handleSessionCommand() {
925
925
  process.exit(1);
926
926
  }
927
927
  if (agentSessionId) {
928
- const { inboxSend } = await import('./agentCommands-DWvXxX8p.mjs');
928
+ const { inboxSend } = await import('./agentCommands-BIn9btot.mjs');
929
929
  await inboxSend(sessionArgs[2], {
930
930
  body: sessionArgs[3],
931
931
  subject: parseFlagStr("--subject"),
@@ -940,7 +940,7 @@ async function handleSessionCommand() {
940
940
  }
941
941
  } else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
942
942
  if (agentSessionId && !sessionArgs[2]) {
943
- const { inboxList } = await import('./agentCommands-DWvXxX8p.mjs');
943
+ const { inboxList } = await import('./agentCommands-BIn9btot.mjs');
944
944
  await inboxList({
945
945
  unread: hasFlag("--unread"),
946
946
  limit: parseFlagInt("--limit"),
@@ -962,7 +962,7 @@ async function handleSessionCommand() {
962
962
  process.exit(1);
963
963
  }
964
964
  if (agentSessionId && !sessionArgs[3]) {
965
- const { inboxList } = await import('./agentCommands-DWvXxX8p.mjs');
965
+ const { inboxList } = await import('./agentCommands-BIn9btot.mjs');
966
966
  await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
967
967
  } else if (sessionArgs[3]) {
968
968
  await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
@@ -972,7 +972,7 @@ async function handleSessionCommand() {
972
972
  }
973
973
  } else if (inboxSubcmd === "reply") {
974
974
  if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
975
- const { inboxReply } = await import('./agentCommands-DWvXxX8p.mjs');
975
+ const { inboxReply } = await import('./agentCommands-BIn9btot.mjs');
976
976
  await inboxReply(sessionArgs[2], sessionArgs[3]);
977
977
  } else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
978
978
  await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
@@ -1008,7 +1008,7 @@ async function handleMachineCommand() {
1008
1008
  return;
1009
1009
  }
1010
1010
  if (machineSubcommand === "share") {
1011
- const { machineShare } = await import('./commands-B4u6CUWH.mjs');
1011
+ const { machineShare } = await import('./commands-MjIkmrmC.mjs');
1012
1012
  let machineId;
1013
1013
  const shareArgs = [];
1014
1014
  for (let i = 1; i < machineArgs.length; i++) {
@@ -1059,14 +1059,14 @@ async function handleMachineCommand() {
1059
1059
  process.exit(1);
1060
1060
  }
1061
1061
  if (all) {
1062
- const { fleetExec } = await import('./fleet-plROHfB8.mjs');
1062
+ const { fleetExec } = await import('./fleet-CDllUpMj.mjs');
1063
1063
  await fleetExec(command, { cwd });
1064
1064
  } else {
1065
- const { machineExec } = await import('./commands-B4u6CUWH.mjs');
1065
+ const { machineExec } = await import('./commands-MjIkmrmC.mjs');
1066
1066
  await machineExec(machineId, command, cwd);
1067
1067
  }
1068
1068
  } else if (machineSubcommand === "info") {
1069
- const { machineInfo } = await import('./commands-B4u6CUWH.mjs');
1069
+ const { machineInfo } = await import('./commands-MjIkmrmC.mjs');
1070
1070
  let machineId;
1071
1071
  for (let i = 1; i < machineArgs.length; i++) {
1072
1072
  if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
@@ -1086,10 +1086,10 @@ async function handleMachineCommand() {
1086
1086
  level = machineArgs[++i];
1087
1087
  }
1088
1088
  }
1089
- const { machineNotify } = await import('./agentCommands-DWvXxX8p.mjs');
1089
+ const { machineNotify } = await import('./agentCommands-BIn9btot.mjs');
1090
1090
  await machineNotify(message, level);
1091
1091
  } else if (machineSubcommand === "ls") {
1092
- const { machineLs } = await import('./commands-B4u6CUWH.mjs');
1092
+ const { machineLs } = await import('./commands-MjIkmrmC.mjs');
1093
1093
  let machineId;
1094
1094
  let showHidden = false;
1095
1095
  let path;
@@ -1145,20 +1145,20 @@ Examples:
1145
1145
  };
1146
1146
  const hasFlag = (name) => fleetArgs.includes(`--${name}`);
1147
1147
  if (sub === "status") {
1148
- const { fleetStatus } = await import('./fleet-plROHfB8.mjs');
1148
+ const { fleetStatus } = await import('./fleet-CDllUpMj.mjs');
1149
1149
  await fleetStatus();
1150
1150
  } else if (sub === "upgrade-claude") {
1151
- const { fleetUpgradeClaude } = await import('./fleet-plROHfB8.mjs');
1151
+ const { fleetUpgradeClaude } = await import('./fleet-CDllUpMj.mjs');
1152
1152
  await fleetUpgradeClaude({ version: flag("version", "-v") });
1153
1153
  } else if (sub === "upgrade-svamp") {
1154
- const { fleetUpgradeSvamp } = await import('./fleet-plROHfB8.mjs');
1154
+ const { fleetUpgradeSvamp } = await import('./fleet-CDllUpMj.mjs');
1155
1155
  await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
1156
1156
  } else if (sub === "daemon-restart") {
1157
- const { fleetDaemonRestart } = await import('./fleet-plROHfB8.mjs');
1157
+ const { fleetDaemonRestart } = await import('./fleet-CDllUpMj.mjs');
1158
1158
  await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
1159
1159
  } else if (sub === "push-skill") {
1160
1160
  const name = fleetArgs[1];
1161
- const { fleetPushSkill } = await import('./fleet-plROHfB8.mjs');
1161
+ const { fleetPushSkill } = await import('./fleet-CDllUpMj.mjs');
1162
1162
  await fleetPushSkill(name);
1163
1163
  } else {
1164
1164
  console.error(`Unknown fleet subcommand: ${sub}`);
@@ -1174,7 +1174,7 @@ async function handleSkillsCommand() {
1174
1174
  await printSkillsHelp();
1175
1175
  return;
1176
1176
  }
1177
- const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-Bf-TovMw.mjs');
1177
+ const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-CdMEMD_c.mjs');
1178
1178
  if (skillsSubcommand === "find" || skillsSubcommand === "search") {
1179
1179
  const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
1180
1180
  if (!query) {
@@ -1221,7 +1221,7 @@ async function loginToHypha() {
1221
1221
  process.exit(1);
1222
1222
  }
1223
1223
  const anchor = anchorArg.replace(/\/+$/, "");
1224
- const { loadInstanceConfig } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.aa; });
1224
+ const { loadInstanceConfig } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.aa; });
1225
1225
  let cfg = null;
1226
1226
  try {
1227
1227
  cfg = await loadInstanceConfig({ anchor, force: true });
@@ -1332,7 +1332,7 @@ async function logoutFromHypha() {
1332
1332
  } catch {
1333
1333
  }
1334
1334
  try {
1335
- const { clearInstanceConfigCache } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.aa; });
1335
+ const { clearInstanceConfigCache } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.aa; });
1336
1336
  clearInstanceConfigCache();
1337
1337
  } catch {
1338
1338
  }
@@ -1670,7 +1670,7 @@ async function applyClaudeAuthFlags(argv) {
1670
1670
  "--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
1671
1671
  );
1672
1672
  }
1673
- const mod = await import('./run-21-bMHCc.mjs').then(function (n) { return n.a9; });
1673
+ const mod = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a9; });
1674
1674
  if (hasHypha) {
1675
1675
  let url;
1676
1676
  const hyphaIdx = argv.indexOf("--use-hypha-proxy");
@@ -1724,7 +1724,7 @@ async function applyDaemonShareFlag(argv) {
1724
1724
  }
1725
1725
  }
1726
1726
  if (collected.length === 0) return;
1727
- const { updateEnvFile } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.a9; });
1727
+ const { updateEnvFile } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a9; });
1728
1728
  const seen = /* @__PURE__ */ new Set();
1729
1729
  const deduped = collected.filter((e) => {
1730
1730
  const k = e.toLowerCase();
@@ -1757,7 +1757,7 @@ async function handleWiseAgentCommand(rest) {
1757
1757
  }
1758
1758
  });
1759
1759
  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(" ");
1760
- const { wiseAskCli } = await import('./commands-B4u6CUWH.mjs');
1760
+ const { wiseAskCli } = await import('./commands-MjIkmrmC.mjs');
1761
1761
  await wiseAskCli(machineId, message, sessionId, { json });
1762
1762
  return;
1763
1763
  }
@@ -1769,7 +1769,7 @@ async function handleWiseAgentCommand(rest) {
1769
1769
  }
1770
1770
  return void 0;
1771
1771
  };
1772
- const { runWiseVoiceCli } = await import('./headlessCli-D7vLrl7K.mjs');
1772
+ const { runWiseVoiceCli } = await import('./headlessCli-CmBCGmNV.mjs');
1773
1773
  await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
1774
1774
  return;
1775
1775
  }
@@ -1787,7 +1787,7 @@ async function handleWiseAgentCommand(rest) {
1787
1787
  const mode = valueOf(["--mode"]);
1788
1788
  const mission = valueOf(["--mission"]);
1789
1789
  const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
1790
- const { wiseJoinMeetingCli } = await import('./commands-B4u6CUWH.mjs');
1790
+ const { wiseJoinMeetingCli } = await import('./commands-MjIkmrmC.mjs');
1791
1791
  await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
1792
1792
  return;
1793
1793
  }
@@ -1799,7 +1799,7 @@ async function handleWiseAgentCommand(rest) {
1799
1799
  }
1800
1800
  return void 0;
1801
1801
  };
1802
- const { wiseLeaveMeetingCli } = await import('./commands-B4u6CUWH.mjs');
1802
+ const { wiseLeaveMeetingCli } = await import('./commands-MjIkmrmC.mjs');
1803
1803
  await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
1804
1804
  return;
1805
1805
  }
@@ -1823,7 +1823,7 @@ async function handleWiseAgentCommand(rest) {
1823
1823
  }
1824
1824
  });
1825
1825
  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(" ");
1826
- const { wiseAnnounceCli } = await import('./commands-B4u6CUWH.mjs');
1826
+ const { wiseAnnounceCli } = await import('./commands-MjIkmrmC.mjs');
1827
1827
  await wiseAnnounceCli(machineId, text, sessionId, { json });
1828
1828
  return;
1829
1829
  }
@@ -1835,7 +1835,7 @@ async function handleWiseAgentCommand(rest) {
1835
1835
  }
1836
1836
  return void 0;
1837
1837
  };
1838
- const { wiseMeetingsCli } = await import('./commands-B4u6CUWH.mjs');
1838
+ const { wiseMeetingsCli } = await import('./commands-MjIkmrmC.mjs');
1839
1839
  await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
1840
1840
  return;
1841
1841
  }
@@ -1885,7 +1885,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1885
1885
  return;
1886
1886
  }
1887
1887
  const authArgs = rest.slice(1);
1888
- const mod = await import('./auth-Dxka4cE6.mjs');
1888
+ const mod = await import('./auth-DY_tcgLY.mjs');
1889
1889
  let action;
1890
1890
  try {
1891
1891
  action = mod.parseWiseAgentAuthArgs(authArgs);
@@ -1895,7 +1895,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1895
1895
  return;
1896
1896
  }
1897
1897
  if (action) {
1898
- const { updateEnvFile } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.a9; });
1898
+ const { updateEnvFile } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a9; });
1899
1899
  const updates = mod.buildWiseAgentEnvUpdates(action);
1900
1900
  updateEnvFile(updates);
1901
1901
  for (const [k, v] of Object.entries(updates)) {
@@ -1909,7 +1909,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
1909
1909
  }
1910
1910
  async function handleDaemonAuthCommand(argv) {
1911
1911
  const sub = (argv[0] || "status").toLowerCase();
1912
- const mod = await import('./run-21-bMHCc.mjs').then(function (n) { return n.a9; });
1912
+ const mod = await import('./run-B-1WDymr.mjs').then(function (n) { return n.a9; });
1913
1913
  if (sub === "--help" || sub === "-h" || sub === "help") {
1914
1914
  console.log(`
1915
1915
  svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
@@ -2222,7 +2222,7 @@ Examples:
2222
2222
  async function printSkillsHelp() {
2223
2223
  let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
2224
2224
  try {
2225
- const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-21-bMHCc.mjs').then(function (n) { return n.ab; });
2225
+ const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-B-1WDymr.mjs').then(function (n) { return n.ab; });
2226
2226
  browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
2227
2227
  } catch {
2228
2228
  }
@@ -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-yc5-4EUe.mjs');
61
+ const { runFrpcTunnel } = await import('./frpc-D4x74mG6.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-B4u6CUWH.mjs');
71
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-yc5-4EUe.mjs');
126
+ const { runFrpcTunnel } = await import('./frpc-D4x74mG6.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-B4u6CUWH.mjs');
135
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
175
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.mjs');
176
176
  const { server, machine } = await connectAndGetMachine();
177
177
  try {
178
178
  await machine.tunnelStop({ name });
@@ -1,5 +1,5 @@
1
1
  import { execSync } from 'node:child_process';
2
- import { m as resolveProjectRoot, t as searchIssues, q as listIssues, o as addComment, u as updateIssue, n as getIssue, w as summarize, p as addIssue } from './run-21-bMHCc.mjs';
2
+ import { m as resolveProjectRoot, t as searchIssues, q as listIssues, o as addComment, u as updateIssue, n as getIssue, w as summarize, p as addIssue } from './run-B-1WDymr.mjs';
3
3
  import 'os';
4
4
  import 'fs/promises';
5
5
  import 'fs';
@@ -22,10 +22,8 @@ import 'node:fs/promises';
22
22
  import 'node:util';
23
23
 
24
24
  const STATUS_GLYPH = {
25
- backlog: "\u25CB",
26
25
  ready: "\u25C9",
27
26
  in_progress: "\u25D0",
28
- done: "\u2713",
29
27
  archived: "\u25A3"
30
28
  };
31
29
  function flag(args, name) {
@@ -95,7 +93,9 @@ async function issueCommand(args) {
95
93
  const scope = flag(rest, "--scope") || (owner ? "session" : "project");
96
94
  const issue = addIssue(root, {
97
95
  title,
98
- status: has(rest, "--ready") ? "ready" : "backlog",
96
+ // New issues are actionable immediately (#0049) there is no backlog to promote from.
97
+ // `--ready` is accepted for back-compat but is now the only behavior.
98
+ status: "ready",
99
99
  scope,
100
100
  labels,
101
101
  verify: buildVerify(rest),
@@ -127,7 +127,7 @@ async function issueCommand(args) {
127
127
  for (const i of items) out(fmtIssue(i));
128
128
  const s = summarize(listIssues(root, { includeArchived: true }));
129
129
  out(`
130
- ${s.ready} ready \xB7 ${s.in_progress} in-progress \xB7 ${s.backlog} backlog \xB7 ${s.done} done \xB7 ${s.archived} archived`);
130
+ ${s.ready} ready \xB7 ${s.in_progress} in-progress \xB7 ${s.archived} archived`);
131
131
  break;
132
132
  }
133
133
  case "show": {
@@ -184,11 +184,11 @@ ${issue.body}`);
184
184
  const map = {
185
185
  ready: "ready",
186
186
  start: "in_progress",
187
- close: "done",
188
- done: "done",
187
+ close: "archived",
188
+ done: "archived",
189
189
  reopen: "ready",
190
190
  archive: "archived",
191
- backlog: "backlog"
191
+ backlog: "ready"
192
192
  };
193
193
  if (sub === "close" || sub === "done") {
194
194
  const current = getIssue(root, id);
@@ -261,7 +261,7 @@ ${tail}
261
261
  const tv = buildVerify(rest);
262
262
  if (tv) patch.verify = tv;
263
263
  if (flag(rest, "--body")) patch.body = flag(rest, "--body");
264
- patch.status = has(rest, "--backlog") ? "backlog" : "ready";
264
+ patch.status = "ready";
265
265
  const updated = updateIssue(root, id, patch);
266
266
  if (!updated) {
267
267
  console.error(`Issue not found: ${id}`);
@@ -288,7 +288,7 @@ ${tail}
288
288
  case "pending": {
289
289
  const mine = flag(rest, "--session") || (has(rest, "--mine") ? sessionId : null);
290
290
  const inScope = (i) => !mine || i.scope === "project" || i.session === mine;
291
- const pending = listIssues(root).filter(inScope).filter((i) => i.status === "ready" || i.status === "in_progress" || i.status === "backlog" && !i.triaged);
291
+ const pending = listIssues(root).filter(inScope).filter((i) => i.status === "ready" || i.status === "in_progress");
292
292
  if (json) console.log(JSON.stringify(pending));
293
293
  else out(pending.length ? `${pending.length} pending: ${pending.map((i) => "#" + i.id).join(" ")}` : "No pending issues.");
294
294
  process.exit(pending.length ? 1 : 0);
@@ -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 { C as parseFrontmatter, D as getSkillsServer, E as getSkillsWorkspaceName, F as getSkillsCollectionName, G as fetchWithTimeout, H as searchSkills, I as SKILLS_DIR, J as getSkillInfo, K as downloadSkillFile, L as listSkillFiles } from './run-21-bMHCc.mjs';
4
+ import { C as parseFrontmatter, D as getSkillsServer, E as getSkillsWorkspaceName, F as getSkillsCollectionName, G as fetchWithTimeout, H as searchSkills, I as SKILLS_DIR, J as getSkillInfo, K as downloadSkillFile, L as listSkillFiles } from './run-B-1WDymr.mjs';
5
5
  import 'fs/promises';
6
6
  import 'url';
7
7
  import 'child_process';
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from 'node:fs';
2
- import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-B4u6CUWH.mjs';
2
+ import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-MjIkmrmC.mjs';
3
3
  import { execSync } from 'node:child_process';
4
- import { u as updateIssue, o as addComment, p as addIssue, x as shortId } from './run-21-bMHCc.mjs';
4
+ import { u as updateIssue, o as addComment, p as addIssue, x as shortId } from './run-B-1WDymr.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 { N as formatHandle, O as normalizeAllowedUser, P as loadSecurityContextConfig, Q as resolveSecurityContext, T as buildSecurityContextFromFlags, U as mergeSecurityContexts, c as connectToHypha, V as buildSessionShareUrl, W as computeOutboundHop, x as shortId, X as buildMachineShareUrl, Y as parseHandle, Z as handleMatchesMetadata } from './run-21-bMHCc.mjs';
5
+ import { N as formatHandle, O as normalizeAllowedUser, P as loadSecurityContextConfig, Q as resolveSecurityContext, T as buildSecurityContextFromFlags, U as mergeSecurityContexts, c as connectToHypha, V as buildSessionShareUrl, W as computeOutboundHop, x as shortId, X as buildMachineShareUrl, Y as parseHandle, Z as handleMatchesMetadata } from './run-B-1WDymr.mjs';
6
6
  import 'os';
7
7
  import 'fs/promises';
8
8
  import 'fs';
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { m as resolveProjectRoot } from './run-21-bMHCc.mjs';
2
+ import { m as resolveProjectRoot } from './run-B-1WDymr.mjs';
3
3
  import { w as workflowSteps, r as removeWorkflow, g as getWorkflow, l as listWorkflows, s as saveWorkflow, a as rawWorkflow } from './store-BPL__e4D.mjs';
4
4
  import 'os';
5
5
  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-B4u6CUWH.mjs';
3
+ import { connectAndGetMachine } from './commands-MjIkmrmC.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-21-bMHCc.mjs';
8
+ import './run-B-1WDymr.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-21-bMHCc.mjs';
4
+ import { c as connectToHypha } from './run-B-1WDymr.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-21-bMHCc.mjs';
7
+ import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-B-1WDymr.mjs';
8
8
  import 'fs/promises';
9
9
  import 'url';
10
10
  import 'node:crypto';
@@ -1,5 +1,5 @@
1
- import { M as resolveModel, _ as describeMisconfiguration, $ as buildMachineDeps } from './run-21-bMHCc.mjs';
2
- import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-CzzHtakf.mjs';
1
+ import { M as resolveModel, _ as describeMisconfiguration, $ as buildMachineDeps } from './run-B-1WDymr.mjs';
2
+ import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-Da1VG2iq.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-21-bMHCc.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-B-1WDymr.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.177";
2
+ var version = "0.2.178";
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 { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues } from './run-21-bMHCc.mjs';
1
+ import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues } from './run-B-1WDymr.mjs';
2
2
  import 'os';
3
3
  import 'fs/promises';
4
4
  import 'fs';
@@ -39,11 +39,11 @@ function ownerScoped(items, session) {
39
39
  const STATUS_MAP = {
40
40
  ready: "ready",
41
41
  start: "in_progress",
42
- close: "done",
43
- done: "done",
42
+ close: "archived",
43
+ done: "archived",
44
44
  reopen: "ready",
45
45
  archive: "archived",
46
- backlog: "backlog"
46
+ backlog: "ready"
47
47
  };
48
48
  function issueRpc(cwd, params) {
49
49
  const root = resolveProjectRoot(cwd || process.cwd());
@@ -61,7 +61,7 @@ function issueRpc(cwd, params) {
61
61
  case "search":
62
62
  return ownerScoped(searchIssues(root, String(params.query || "")), params.session).map(compact);
63
63
  case "pending": {
64
- const items = ownerScoped(listIssues(root), params.session).filter((i) => i.status === "ready" || i.status === "in_progress" || i.status === "backlog" && !i.triaged);
64
+ const items = ownerScoped(listIssues(root), params.session).filter((i) => i.status === "ready" || i.status === "in_progress");
65
65
  return { pending: items.map((i) => i.id), count: items.length };
66
66
  }
67
67
  case "add": {
@@ -80,7 +80,7 @@ function issueRpc(cwd, params) {
80
80
  }
81
81
  return addIssue(root, {
82
82
  title,
83
- status: params.ready ? "ready" : "backlog",
83
+ status: "ready",
84
84
  scope,
85
85
  labels: Array.isArray(params.labels) ? params.labels.map(String) : [],
86
86
  verify: buildVerify(params) ?? null,
@@ -138,7 +138,7 @@ function issueRpc(cwd, params) {
138
138
  const v = buildVerify(params);
139
139
  if (v) patch.verify = v;
140
140
  if (params.body != null) patch.body = String(params.body);
141
- patch.status = params.backlog ? "backlog" : "ready";
141
+ patch.status = "ready";
142
142
  const updated = updateIssue(root, String(params.id), patch);
143
143
  if (!updated) throw new Error(`Issue not found: ${params.id}`);
144
144
  return updated;
@@ -1,5 +1,5 @@
1
1
  import { spawnSync } from 'node:child_process';
2
- import { m as resolveProjectRoot } from './run-21-bMHCc.mjs';
2
+ import { m as resolveProjectRoot } from './run-B-1WDymr.mjs';
3
3
  import { g as getWorkflow, w as workflowSteps, r as removeWorkflow, s as saveWorkflow, a as rawWorkflow, l as listWorkflows } from './store-BPL__e4D.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
@@ -2699,7 +2699,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
2699
2699
  const tunnels = handlers.tunnels;
2700
2700
  if (!tunnels) throw new Error("Tunnel management not available");
2701
2701
  if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
2702
- const { FrpcTunnel } = await import('./frpc-yc5-4EUe.mjs');
2702
+ const { FrpcTunnel } = await import('./frpc-D4x74mG6.mjs');
2703
2703
  const tunnel = new FrpcTunnel({
2704
2704
  name: params.name,
2705
2705
  ports: params.ports,
@@ -3146,7 +3146,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3146
3146
  }
3147
3147
  const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
3148
3148
  const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
3149
- const { toolsForRole } = await import('./sideband-CzzHtakf.mjs');
3149
+ const { toolsForRole } = await import('./sideband-Da1VG2iq.mjs');
3150
3150
  const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
3151
3151
  return fmt(r2);
3152
3152
  }
@@ -3245,7 +3245,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
3245
3245
  if (r.error || !r.sender) return { error: r.error || "unauthorized" };
3246
3246
  const callId = "call_" + Math.random().toString(16).slice(2, 12);
3247
3247
  const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
3248
- const { queryCore } = await import('./commands-B4u6CUWH.mjs');
3248
+ const { queryCore } = await import('./commands-MjIkmrmC.mjs');
3249
3249
  const timeout = c.reply?.timeout_sec || 120;
3250
3250
  let result;
3251
3251
  try {
@@ -9812,6 +9812,11 @@ class ProcessSupervisor {
9812
9812
  }
9813
9813
  }
9814
9814
 
9815
+ function normalizeStatus(s) {
9816
+ if (s === "backlog") return "ready";
9817
+ if (s === "done") return "archived";
9818
+ return s === "ready" || s === "in_progress" || s === "archived" ? s : "ready";
9819
+ }
9815
9820
  const FIELD_ORDER = ["id", "title", "status", "scope", "labels", "verify", "disposition", "triaged", "branch", "session", "original", "created", "closed"];
9816
9821
  function resolveProjectRoot(start = process.cwd()) {
9817
9822
  let dir = start;
@@ -9861,7 +9866,7 @@ function parseIssue(content) {
9861
9866
  return {
9862
9867
  id: String(fm.id),
9863
9868
  title: String(fm.title ?? ""),
9864
- status: fm.status ?? "backlog",
9869
+ status: normalizeStatus(fm.status),
9865
9870
  scope: fm.scope ?? "session",
9866
9871
  labels: Array.isArray(fm.labels) ? fm.labels.map(String) : [],
9867
9872
  verify: fm.verify ?? null,
@@ -9924,7 +9929,7 @@ function addIssue(projectRoot, fields) {
9924
9929
  const issue = {
9925
9930
  id: nextId(projectRoot),
9926
9931
  title: fields.title.trim(),
9927
- status: fields.status ?? "backlog",
9932
+ status: fields.status ?? "ready",
9928
9933
  scope: fields.scope ?? "session",
9929
9934
  labels: fields.labels ?? [],
9930
9935
  verify: fields.verify ?? null,
@@ -9945,9 +9950,10 @@ function updateIssue(projectRoot, id, patch) {
9945
9950
  if (!cur) return null;
9946
9951
  const wasArchived = cur.status === "archived";
9947
9952
  const next = { ...cur, ...patch, id: cur.id };
9953
+ if (patch.status) next.status = normalizeStatus(patch.status);
9948
9954
  const nowArchived = next.status === "archived";
9949
- if ((next.status === "done" || nowArchived) && !next.closed) next.closed = (/* @__PURE__ */ new Date()).toISOString();
9950
- if (next.status !== "done" && !nowArchived) next.closed = null;
9955
+ if (nowArchived && !next.closed) next.closed = (/* @__PURE__ */ new Date()).toISOString();
9956
+ if (!nowArchived) next.closed = null;
9951
9957
  atomicWrite(issuePath(projectRoot, next.id, nowArchived), serializeIssue(next));
9952
9958
  if (wasArchived !== nowArchived) {
9953
9959
  const oldPath = issuePath(projectRoot, cur.id, wasArchived);
@@ -9975,7 +9981,7 @@ function routeCrewVerdict(projectRoot, childSessionId, v) {
9975
9981
  if (!linked) return null;
9976
9982
  const meta = [v.round != null ? `round ${v.round}` : "", v.judge ? `judge:${v.judge}` : ""].filter(Boolean).join(", ");
9977
9983
  addComment(projectRoot, linked.id, `Crew child ${childSessionId.slice(0, 8)} \u2192 ${v.verdict}${meta ? ` (${meta})` : ""}.${v.guidance ? " " + v.guidance : ""}`);
9978
- return v.verdict === "approved" ? updateIssue(projectRoot, linked.id, { status: "done" }) ?? null : getIssue(projectRoot, linked.id);
9984
+ return v.verdict === "approved" ? updateIssue(projectRoot, linked.id, { status: "archived" }) ?? null : getIssue(projectRoot, linked.id);
9979
9985
  }
9980
9986
  function searchIssues(projectRoot, query) {
9981
9987
  const q = query.trim();
@@ -9999,7 +10005,7 @@ function searchIssues(projectRoot, query) {
9999
10005
  }
10000
10006
  function summarize(issues) {
10001
10007
  const by = (s) => issues.filter((i) => i.status === s).length;
10002
- return { total: issues.length, backlog: by("backlog"), ready: by("ready"), in_progress: by("in_progress"), done: by("done"), archived: by("archived") };
10008
+ return { total: issues.length, ready: by("ready"), in_progress: by("in_progress"), archived: by("archived") };
10003
10009
  }
10004
10010
 
10005
10011
  const OAUTH_TOKEN_ENDPOINT = "https://platform.claude.com/v1/oauth/token";
@@ -11541,7 +11547,7 @@ async function startDaemon(options) {
11541
11547
  saveExposedTunnels(list);
11542
11548
  }
11543
11549
  async function createExposedTunnel(spec) {
11544
- const { FrpcTunnel } = await import('./frpc-yc5-4EUe.mjs');
11550
+ const { FrpcTunnel } = await import('./frpc-D4x74mG6.mjs');
11545
11551
  const tunnel = new FrpcTunnel({
11546
11552
  name: spec.name,
11547
11553
  ports: spec.ports,
@@ -11561,7 +11567,7 @@ async function startDaemon(options) {
11561
11567
  return tunnel;
11562
11568
  }
11563
11569
  const tunnelRecreateState = /* @__PURE__ */ new Map();
11564
- const { ServeManager } = await import('./serveManager-AbWv-Akt.mjs');
11570
+ const { ServeManager } = await import('./serveManager-DXm1bdoU.mjs');
11565
11571
  const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
11566
11572
  ensureAutoInstalledSkills(logger).catch(() => {
11567
11573
  });
@@ -13352,11 +13358,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
13352
13358
  });
13353
13359
  },
13354
13360
  onIssue: async (params) => {
13355
- const { issueRpc } = await import('./rpc-DUZqKPK4.mjs');
13361
+ const { issueRpc } = await import('./rpc-2TJ6ipXZ.mjs');
13356
13362
  return issueRpc(params?.cwd || directory, params || {});
13357
13363
  },
13358
13364
  onWorkflow: async (params) => {
13359
- const { workflowRpc } = await import('./rpc-D1gr74eF.mjs');
13365
+ const { workflowRpc } = await import('./rpc-DBH2bo8s.mjs');
13360
13366
  return workflowRpc(params?.cwd || directory, params || {});
13361
13367
  },
13362
13368
  onRipgrep: async (args, cwd) => {
@@ -13862,11 +13868,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
13862
13868
  });
13863
13869
  },
13864
13870
  onIssue: async (params) => {
13865
- const { issueRpc } = await import('./rpc-DUZqKPK4.mjs');
13871
+ const { issueRpc } = await import('./rpc-2TJ6ipXZ.mjs');
13866
13872
  return issueRpc(params?.cwd || directory, params || {});
13867
13873
  },
13868
13874
  onWorkflow: async (params) => {
13869
- const { workflowRpc } = await import('./rpc-D1gr74eF.mjs');
13875
+ const { workflowRpc } = await import('./rpc-DBH2bo8s.mjs');
13870
13876
  return workflowRpc(params?.cwd || directory, params || {});
13871
13877
  },
13872
13878
  onRipgrep: async (args, cwd) => {
@@ -14619,7 +14625,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
14619
14625
  const PING_TIMEOUT_MS = 15e3;
14620
14626
  const POST_RECONNECT_GRACE_MS = 2e4;
14621
14627
  const RECONNECT_JITTER_MS = 2500;
14622
- const { WorkflowScheduler } = await import('./scheduler-DweevMw_.mjs');
14628
+ const { WorkflowScheduler } = await import('./scheduler-C3j8Tghm.mjs');
14623
14629
  const workflowScheduler = new WorkflowScheduler({
14624
14630
  projectRoots: () => {
14625
14631
  const dirs = /* @__PURE__ */ new Set();
@@ -1,4 +1,4 @@
1
- import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a0 as composeSessionId, a1 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a2 as generateHookSettings } from './run-21-bMHCc.mjs';
1
+ import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a0 as composeSessionId, a1 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a2 as generateHookSettings } from './run-B-1WDymr.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';
@@ -1,5 +1,5 @@
1
1
  import { spawn } from 'node:child_process';
2
- import { m as resolveProjectRoot, v as cronMatches } from './run-21-bMHCc.mjs';
2
+ import { m as resolveProjectRoot, v as cronMatches } from './run-B-1WDymr.mjs';
3
3
  import { l as listWorkflows, b as workflowCrons, w as workflowSteps } from './store-BPL__e4D.mjs';
4
4
  import 'os';
5
5
  import 'fs/promises';
@@ -54,7 +54,7 @@ async function handleServeCommand() {
54
54
  }
55
55
  }
56
56
  async function serveAdd(args, machineId) {
57
- const { connectAndGetMachine } = await import('./commands-B4u6CUWH.mjs');
57
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
96
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
185
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
205
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-B4u6CUWH.mjs');
238
+ const { connectAndGetMachine } = await import('./commands-MjIkmrmC.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-21-bMHCc.mjs';
7
+ import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-B-1WDymr.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-yc5-4EUe.mjs');
736
+ const { FrpcTunnel } = await import('./frpc-D4x74mG6.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, y as loadMachineContext, z as buildMachineInstructions, A as machineToolsForRole, B as buildMachineTools } from './run-21-bMHCc.mjs';
1
+ import { R as READ_ONLY_TOOLS, y as loadMachineContext, z as buildMachineInstructions, A as machineToolsForRole, B as buildMachineTools } from './run-B-1WDymr.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.177",
3
+ "version": "0.2.178",
4
4
  "description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
5
5
  "author": "Amun AI AB",
6
6
  "license": "SEE LICENSE IN LICENSE",