svamp-cli 0.2.204 → 0.2.206
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.
- package/bin/skills/loop/bin/stop-gate.mjs +84 -3
- package/bin/skills/loop/test/test-loop-gate.mjs +65 -12
- package/dist/{agentCommands-D92DfTGP.mjs → agentCommands-akIoZemu.mjs} +5 -5
- package/dist/{auth-BvO7QtaP.mjs → auth-Dzf0cndq.mjs} +1 -1
- package/dist/cli.mjs +63 -61
- package/dist/{commands-CHqMRENk.mjs → commands-8Rd6p4B4.mjs} +1 -1
- package/dist/{commands-wtMi-xJY.mjs → commands-BPhgtKi2.mjs} +2 -2
- package/dist/{commands-u68ODpBt.mjs → commands-BRmWVCNf.mjs} +34 -11
- package/dist/{commands-BduSUevP.mjs → commands-BfakuMvA.mjs} +2 -2
- package/dist/{commands-5AerKSMm.mjs → commands-Dp7BFqYl.mjs} +1 -1
- package/dist/{commands-DwWuWW99.mjs → commands-OMKB5-oS.mjs} +29 -11
- package/dist/{commands-Dyy_1c0I.mjs → commands-V6wL2BtU.mjs} +5 -5
- package/dist/{fleet-CFe5Kt6k.mjs → fleet-Ci190s0w.mjs} +1 -1
- package/dist/{frpc-DMV0fZBM.mjs → frpc-H52IJYcb.mjs} +1 -1
- package/dist/{headlessCli-COLHIWk8.mjs → headlessCli-tLrOER4U.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-CqGr9_jQ.mjs → package-MNPXOWOP.mjs} +1 -1
- package/dist/{rpc-CoNLjY5x.mjs → rpc-BHUHF_Mv.mjs} +10 -3
- package/dist/{rpc-DBpyHJUs.mjs → rpc-CFrVMETs.mjs} +1 -1
- package/dist/{run-CR8y6yQ7.mjs → run-C4OsABqC.mjs} +1 -1
- package/dist/{run-BfgkuBEg.mjs → run-C9ZeF2iG.mjs} +101 -18
- package/dist/{scheduler-C1_HeBdn.mjs → scheduler-ErjEISCv.mjs} +1 -1
- package/dist/{serveCommands-d3t4RkrF.mjs → serveCommands-feGogIWC.mjs} +5 -5
- package/dist/{serveManager-DA9elK4m.mjs → serveManager-Be-R7R8_.mjs} +2 -2
- package/dist/{sideband-DNLuglX3.mjs → sideband-cU4KDceu.mjs} +1 -1
- package/package.json +1 -1
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-
|
|
1
|
+
import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-C9ZeF2iG.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-
|
|
37
|
+
const { getLoadedConfig } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ae; });
|
|
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-
|
|
54
|
+
const { restartDaemon } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ag; });
|
|
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-
|
|
347
|
+
const { handleServiceCommand } = await import('./commands-V6wL2BtU.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-
|
|
355
|
+
const { handleServeCommand } = await import('./serveCommands-feGogIWC.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-
|
|
364
|
+
const { processCommand } = await import('./commands-BPhgtKi2.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-
|
|
378
|
+
const { issueCommand } = await import('./commands-OMKB5-oS.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-
|
|
382
|
+
const { workflowCommand } = await import('./commands-8Rd6p4B4.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-
|
|
389
|
+
const { crewCommand } = await import('./commands-BfakuMvA.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-
|
|
397
|
+
const pkg = await import('./package-MNPXOWOP.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-
|
|
406
|
+
const { runInteractive } = await import('./run-C4OsABqC.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-
|
|
451
|
+
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ab; });
|
|
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-
|
|
463
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ab; });
|
|
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-
|
|
487
|
+
const { CodexMcpBackend } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ac; });
|
|
488
488
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
489
489
|
} else {
|
|
490
|
-
const { AcpBackend } = await import('./run-
|
|
491
|
-
const { GeminiTransport } = await import('./run-
|
|
492
|
-
const { DefaultTransport } = await import('./run-
|
|
490
|
+
const { AcpBackend } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.aa; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ad; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a9; });
|
|
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-
|
|
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-BRmWVCNf.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-
|
|
687
|
+
const { parseShareArg } = await import('./commands-BRmWVCNf.mjs');
|
|
688
688
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
689
689
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
690
690
|
message,
|
|
@@ -761,7 +761,9 @@ async function handleSessionCommand() {
|
|
|
761
761
|
subject: parseFlagStr("--subject"),
|
|
762
762
|
urgency: parseFlagStr("--urgency"),
|
|
763
763
|
model: parseFlagStr("--model"),
|
|
764
|
-
plain: hasFlag("--plain")
|
|
764
|
+
plain: hasFlag("--plain"),
|
|
765
|
+
asIssue: hasFlag("--as-issue"),
|
|
766
|
+
issueTitle: parseFlagStr("--issue-title")
|
|
765
767
|
});
|
|
766
768
|
} else if (sessionSubcommand === "edit-message" || sessionSubcommand === "edit") {
|
|
767
769
|
if (!sessionArgs[1] || !sessionArgs[2] || sessionArgs[3] === void 0) {
|
|
@@ -769,7 +771,7 @@ async function handleSessionCommand() {
|
|
|
769
771
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
770
772
|
process.exit(1);
|
|
771
773
|
}
|
|
772
|
-
const { sessionEditMessage } = await import('./commands-
|
|
774
|
+
const { sessionEditMessage } = await import('./commands-BRmWVCNf.mjs');
|
|
773
775
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
774
776
|
} else if (sessionSubcommand === "refine") {
|
|
775
777
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -777,7 +779,7 @@ async function handleSessionCommand() {
|
|
|
777
779
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
778
780
|
process.exit(1);
|
|
779
781
|
}
|
|
780
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
782
|
+
const { sessionRefineLastReply } = await import('./commands-BRmWVCNf.mjs');
|
|
781
783
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
782
784
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
783
785
|
if (!sessionArgs[1]) {
|
|
@@ -785,7 +787,7 @@ async function handleSessionCommand() {
|
|
|
785
787
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
786
788
|
process.exit(1);
|
|
787
789
|
}
|
|
788
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
790
|
+
const { sessionUndoEdit } = await import('./commands-BRmWVCNf.mjs');
|
|
789
791
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
790
792
|
} else if (sessionSubcommand === "query") {
|
|
791
793
|
const dir = sessionArgs[1];
|
|
@@ -795,7 +797,7 @@ async function handleSessionCommand() {
|
|
|
795
797
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
796
798
|
process.exit(1);
|
|
797
799
|
}
|
|
798
|
-
const { sessionQuery } = await import('./commands-
|
|
800
|
+
const { sessionQuery } = await import('./commands-BRmWVCNf.mjs');
|
|
799
801
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
800
802
|
timeout: parseFlagInt("--timeout"),
|
|
801
803
|
json: hasFlag("--json"),
|
|
@@ -828,7 +830,7 @@ async function handleSessionCommand() {
|
|
|
828
830
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
829
831
|
process.exit(1);
|
|
830
832
|
}
|
|
831
|
-
const { sessionApprove } = await import('./commands-
|
|
833
|
+
const { sessionApprove } = await import('./commands-BRmWVCNf.mjs');
|
|
832
834
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
833
835
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
834
836
|
json: hasFlag("--json")
|
|
@@ -838,7 +840,7 @@ async function handleSessionCommand() {
|
|
|
838
840
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
839
841
|
process.exit(1);
|
|
840
842
|
}
|
|
841
|
-
const { sessionDeny } = await import('./commands-
|
|
843
|
+
const { sessionDeny } = await import('./commands-BRmWVCNf.mjs');
|
|
842
844
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
843
845
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
844
846
|
json: hasFlag("--json")
|
|
@@ -880,7 +882,7 @@ async function handleSessionCommand() {
|
|
|
880
882
|
console.error("Usage: svamp session set-title <title>");
|
|
881
883
|
process.exit(1);
|
|
882
884
|
}
|
|
883
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
885
|
+
const { sessionSetTitle } = await import('./agentCommands-akIoZemu.mjs');
|
|
884
886
|
await sessionSetTitle(title);
|
|
885
887
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
886
888
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -888,7 +890,7 @@ async function handleSessionCommand() {
|
|
|
888
890
|
console.error("Usage: svamp session set-project-description <text>");
|
|
889
891
|
process.exit(1);
|
|
890
892
|
}
|
|
891
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
893
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-akIoZemu.mjs');
|
|
892
894
|
await sessionSetProjectDescription(desc);
|
|
893
895
|
} else if (sessionSubcommand === "set-link") {
|
|
894
896
|
const url = sessionArgs[1];
|
|
@@ -897,7 +899,7 @@ async function handleSessionCommand() {
|
|
|
897
899
|
process.exit(1);
|
|
898
900
|
}
|
|
899
901
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
900
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
902
|
+
const { sessionSetLink } = await import('./agentCommands-akIoZemu.mjs');
|
|
901
903
|
await sessionSetLink(url, label);
|
|
902
904
|
} else if (sessionSubcommand === "notify") {
|
|
903
905
|
const message = sessionArgs[1];
|
|
@@ -906,7 +908,7 @@ async function handleSessionCommand() {
|
|
|
906
908
|
process.exit(1);
|
|
907
909
|
}
|
|
908
910
|
const level = parseFlagStr("--level") || "info";
|
|
909
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
911
|
+
const { sessionNotify } = await import('./agentCommands-akIoZemu.mjs');
|
|
910
912
|
await sessionNotify(message, level);
|
|
911
913
|
} else if (sessionSubcommand === "broadcast") {
|
|
912
914
|
const action = sessionArgs[1];
|
|
@@ -914,7 +916,7 @@ async function handleSessionCommand() {
|
|
|
914
916
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
915
917
|
process.exit(1);
|
|
916
918
|
}
|
|
917
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
919
|
+
const { sessionBroadcast } = await import('./agentCommands-akIoZemu.mjs');
|
|
918
920
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
919
921
|
} else if (sessionSubcommand === "inbox") {
|
|
920
922
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -925,7 +927,7 @@ async function handleSessionCommand() {
|
|
|
925
927
|
process.exit(1);
|
|
926
928
|
}
|
|
927
929
|
if (agentSessionId) {
|
|
928
|
-
const { inboxSend } = await import('./agentCommands-
|
|
930
|
+
const { inboxSend } = await import('./agentCommands-akIoZemu.mjs');
|
|
929
931
|
await inboxSend(sessionArgs[2], {
|
|
930
932
|
body: sessionArgs[3],
|
|
931
933
|
subject: parseFlagStr("--subject"),
|
|
@@ -940,7 +942,7 @@ async function handleSessionCommand() {
|
|
|
940
942
|
}
|
|
941
943
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
942
944
|
if (agentSessionId && !sessionArgs[2]) {
|
|
943
|
-
const { inboxList } = await import('./agentCommands-
|
|
945
|
+
const { inboxList } = await import('./agentCommands-akIoZemu.mjs');
|
|
944
946
|
await inboxList({
|
|
945
947
|
unread: hasFlag("--unread"),
|
|
946
948
|
limit: parseFlagInt("--limit"),
|
|
@@ -962,7 +964,7 @@ async function handleSessionCommand() {
|
|
|
962
964
|
process.exit(1);
|
|
963
965
|
}
|
|
964
966
|
if (agentSessionId && !sessionArgs[3]) {
|
|
965
|
-
const { inboxList } = await import('./agentCommands-
|
|
967
|
+
const { inboxList } = await import('./agentCommands-akIoZemu.mjs');
|
|
966
968
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
967
969
|
} else if (sessionArgs[3]) {
|
|
968
970
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -972,7 +974,7 @@ async function handleSessionCommand() {
|
|
|
972
974
|
}
|
|
973
975
|
} else if (inboxSubcmd === "reply") {
|
|
974
976
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
975
|
-
const { inboxReply } = await import('./agentCommands-
|
|
977
|
+
const { inboxReply } = await import('./agentCommands-akIoZemu.mjs');
|
|
976
978
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
977
979
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
978
980
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1010,7 +1012,7 @@ async function handleMachineCommand() {
|
|
|
1010
1012
|
return;
|
|
1011
1013
|
}
|
|
1012
1014
|
if (machineSubcommand === "share") {
|
|
1013
|
-
const { machineShare } = await import('./commands-
|
|
1015
|
+
const { machineShare } = await import('./commands-BRmWVCNf.mjs');
|
|
1014
1016
|
let machineId;
|
|
1015
1017
|
const shareArgs = [];
|
|
1016
1018
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1061,14 +1063,14 @@ async function handleMachineCommand() {
|
|
|
1061
1063
|
process.exit(1);
|
|
1062
1064
|
}
|
|
1063
1065
|
if (all) {
|
|
1064
|
-
const { fleetExec } = await import('./fleet-
|
|
1066
|
+
const { fleetExec } = await import('./fleet-Ci190s0w.mjs');
|
|
1065
1067
|
await fleetExec(command, { cwd });
|
|
1066
1068
|
} else {
|
|
1067
|
-
const { machineExec } = await import('./commands-
|
|
1069
|
+
const { machineExec } = await import('./commands-BRmWVCNf.mjs');
|
|
1068
1070
|
await machineExec(machineId, command, cwd);
|
|
1069
1071
|
}
|
|
1070
1072
|
} else if (machineSubcommand === "info") {
|
|
1071
|
-
const { machineInfo } = await import('./commands-
|
|
1073
|
+
const { machineInfo } = await import('./commands-BRmWVCNf.mjs');
|
|
1072
1074
|
let machineId;
|
|
1073
1075
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1074
1076
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1088,10 +1090,10 @@ async function handleMachineCommand() {
|
|
|
1088
1090
|
level = machineArgs[++i];
|
|
1089
1091
|
}
|
|
1090
1092
|
}
|
|
1091
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1093
|
+
const { machineNotify } = await import('./agentCommands-akIoZemu.mjs');
|
|
1092
1094
|
await machineNotify(message, level);
|
|
1093
1095
|
} else if (machineSubcommand === "ls") {
|
|
1094
|
-
const { machineLs } = await import('./commands-
|
|
1096
|
+
const { machineLs } = await import('./commands-BRmWVCNf.mjs');
|
|
1095
1097
|
let machineId;
|
|
1096
1098
|
let showHidden = false;
|
|
1097
1099
|
let path;
|
|
@@ -1147,20 +1149,20 @@ Examples:
|
|
|
1147
1149
|
};
|
|
1148
1150
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1149
1151
|
if (sub === "status") {
|
|
1150
|
-
const { fleetStatus } = await import('./fleet-
|
|
1152
|
+
const { fleetStatus } = await import('./fleet-Ci190s0w.mjs');
|
|
1151
1153
|
await fleetStatus();
|
|
1152
1154
|
} else if (sub === "upgrade-claude") {
|
|
1153
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1155
|
+
const { fleetUpgradeClaude } = await import('./fleet-Ci190s0w.mjs');
|
|
1154
1156
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1155
1157
|
} else if (sub === "upgrade-svamp") {
|
|
1156
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1158
|
+
const { fleetUpgradeSvamp } = await import('./fleet-Ci190s0w.mjs');
|
|
1157
1159
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1158
1160
|
} else if (sub === "daemon-restart") {
|
|
1159
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1161
|
+
const { fleetDaemonRestart } = await import('./fleet-Ci190s0w.mjs');
|
|
1160
1162
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1161
1163
|
} else if (sub === "push-skill") {
|
|
1162
1164
|
const name = fleetArgs[1];
|
|
1163
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1165
|
+
const { fleetPushSkill } = await import('./fleet-Ci190s0w.mjs');
|
|
1164
1166
|
await fleetPushSkill(name);
|
|
1165
1167
|
} else {
|
|
1166
1168
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1176,7 +1178,7 @@ async function handleSkillsCommand() {
|
|
|
1176
1178
|
await printSkillsHelp();
|
|
1177
1179
|
return;
|
|
1178
1180
|
}
|
|
1179
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1181
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-Dp7BFqYl.mjs');
|
|
1180
1182
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1181
1183
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1182
1184
|
if (!query) {
|
|
@@ -1223,7 +1225,7 @@ async function loginToHypha() {
|
|
|
1223
1225
|
process.exit(1);
|
|
1224
1226
|
}
|
|
1225
1227
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1226
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1228
|
+
const { loadInstanceConfig } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ae; });
|
|
1227
1229
|
let cfg = null;
|
|
1228
1230
|
try {
|
|
1229
1231
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1334,7 +1336,7 @@ async function logoutFromHypha() {
|
|
|
1334
1336
|
} catch {
|
|
1335
1337
|
}
|
|
1336
1338
|
try {
|
|
1337
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1339
|
+
const { clearInstanceConfigCache } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.ae; });
|
|
1338
1340
|
clearInstanceConfigCache();
|
|
1339
1341
|
} catch {
|
|
1340
1342
|
}
|
|
@@ -1672,7 +1674,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1672
1674
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1673
1675
|
);
|
|
1674
1676
|
}
|
|
1675
|
-
const mod = await import('./run-
|
|
1677
|
+
const mod = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
|
|
1676
1678
|
if (hasHypha) {
|
|
1677
1679
|
let url;
|
|
1678
1680
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1726,7 +1728,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1726
1728
|
}
|
|
1727
1729
|
}
|
|
1728
1730
|
if (collected.length === 0) return;
|
|
1729
|
-
const { updateEnvFile } = await import('./run-
|
|
1731
|
+
const { updateEnvFile } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
|
|
1730
1732
|
const seen = /* @__PURE__ */ new Set();
|
|
1731
1733
|
const deduped = collected.filter((e) => {
|
|
1732
1734
|
const k = e.toLowerCase();
|
|
@@ -1759,7 +1761,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1759
1761
|
}
|
|
1760
1762
|
});
|
|
1761
1763
|
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(" ");
|
|
1762
|
-
const { wiseAskCli } = await import('./commands-
|
|
1764
|
+
const { wiseAskCli } = await import('./commands-BRmWVCNf.mjs');
|
|
1763
1765
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1764
1766
|
return;
|
|
1765
1767
|
}
|
|
@@ -1771,7 +1773,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1771
1773
|
}
|
|
1772
1774
|
return void 0;
|
|
1773
1775
|
};
|
|
1774
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1776
|
+
const { runWiseVoiceCli } = await import('./headlessCli-tLrOER4U.mjs');
|
|
1775
1777
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1776
1778
|
return;
|
|
1777
1779
|
}
|
|
@@ -1789,7 +1791,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1789
1791
|
const mode = valueOf(["--mode"]);
|
|
1790
1792
|
const mission = valueOf(["--mission"]);
|
|
1791
1793
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1792
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1794
|
+
const { wiseJoinMeetingCli } = await import('./commands-BRmWVCNf.mjs');
|
|
1793
1795
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1794
1796
|
return;
|
|
1795
1797
|
}
|
|
@@ -1801,7 +1803,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1801
1803
|
}
|
|
1802
1804
|
return void 0;
|
|
1803
1805
|
};
|
|
1804
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1806
|
+
const { wiseLeaveMeetingCli } = await import('./commands-BRmWVCNf.mjs');
|
|
1805
1807
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1806
1808
|
return;
|
|
1807
1809
|
}
|
|
@@ -1825,7 +1827,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1825
1827
|
}
|
|
1826
1828
|
});
|
|
1827
1829
|
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(" ");
|
|
1828
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
1830
|
+
const { wiseAnnounceCli } = await import('./commands-BRmWVCNf.mjs');
|
|
1829
1831
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1830
1832
|
return;
|
|
1831
1833
|
}
|
|
@@ -1837,7 +1839,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1837
1839
|
}
|
|
1838
1840
|
return void 0;
|
|
1839
1841
|
};
|
|
1840
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1842
|
+
const { wiseMeetingsCli } = await import('./commands-BRmWVCNf.mjs');
|
|
1841
1843
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1842
1844
|
return;
|
|
1843
1845
|
}
|
|
@@ -1887,7 +1889,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1887
1889
|
return;
|
|
1888
1890
|
}
|
|
1889
1891
|
const authArgs = rest.slice(1);
|
|
1890
|
-
const mod = await import('./auth-
|
|
1892
|
+
const mod = await import('./auth-Dzf0cndq.mjs');
|
|
1891
1893
|
let action;
|
|
1892
1894
|
try {
|
|
1893
1895
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1897,7 +1899,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1897
1899
|
return;
|
|
1898
1900
|
}
|
|
1899
1901
|
if (action) {
|
|
1900
|
-
const { updateEnvFile } = await import('./run-
|
|
1902
|
+
const { updateEnvFile } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
|
|
1901
1903
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1902
1904
|
updateEnvFile(updates);
|
|
1903
1905
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1911,7 +1913,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1911
1913
|
}
|
|
1912
1914
|
async function handleDaemonAuthCommand(argv) {
|
|
1913
1915
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1914
|
-
const mod = await import('./run-
|
|
1916
|
+
const mod = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.a7; });
|
|
1915
1917
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1916
1918
|
console.log(`
|
|
1917
1919
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2224,7 +2226,7 @@ Examples:
|
|
|
2224
2226
|
async function printSkillsHelp() {
|
|
2225
2227
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2226
2228
|
try {
|
|
2227
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2229
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-C9ZeF2iG.mjs').then(function (n) { return n.af; });
|
|
2228
2230
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2229
2231
|
} catch {
|
|
2230
2232
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot } from './run-
|
|
2
|
+
import { m as resolveProjectRoot } from './run-C9ZeF2iG.mjs';
|
|
3
3
|
import { c as workflowSteps, s as setWorkflowEnabled, i as isWorkflowEnabled, r as removeWorkflow, g as getWorkflow, l as listWorkflows, a as saveWorkflow, b as rawWorkflow } from './store-BTs0H_y0.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-
|
|
3
|
+
import { connectAndGetMachine } from './commands-BRmWVCNf.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-
|
|
8
|
+
import './run-C9ZeF2iG.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -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 { Q as formatHandle, T as normalizeAllowedUser, U as loadSecurityContextConfig, V as resolveSecurityContext, W as buildSecurityContextFromFlags, X as mergeSecurityContexts, c as connectToHypha, Y as buildSessionShareUrl, Z as computeOutboundHop, A as shortId, _ as buildMachineShareUrl, $ as parseHandle, a0 as handleMatchesMetadata } from './run-
|
|
5
|
+
import { Q as formatHandle, T as normalizeAllowedUser, U as loadSecurityContextConfig, V as resolveSecurityContext, W as buildSecurityContextFromFlags, X as mergeSecurityContexts, c as connectToHypha, Y as buildSessionShareUrl, Z as computeOutboundHop, A as shortId, _ as buildMachineShareUrl, $ as parseHandle, a0 as handleMatchesMetadata } from './run-C9ZeF2iG.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -1706,6 +1706,24 @@ async function sendCore(machine, fullId, message, opts) {
|
|
|
1706
1706
|
response: String(btwResult.answer || "")
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
+
if (opts?.asIssue) {
|
|
1710
|
+
const issue = await machine.sessionRPC(fullId, "issue", {
|
|
1711
|
+
op: "add",
|
|
1712
|
+
body: message,
|
|
1713
|
+
session: fullId,
|
|
1714
|
+
rekick: true,
|
|
1715
|
+
...opts.issueTitle ? { title: opts.issueTitle } : {}
|
|
1716
|
+
});
|
|
1717
|
+
return {
|
|
1718
|
+
sessionId: fullId,
|
|
1719
|
+
mode: "send",
|
|
1720
|
+
sent: true,
|
|
1721
|
+
waited: false,
|
|
1722
|
+
status: "sent",
|
|
1723
|
+
messageId: issue?.id,
|
|
1724
|
+
response: `Created issue #${issue?.id}: ${issue?.title || ""}`.trim()
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1709
1727
|
const wantResponse = !!opts?.response;
|
|
1710
1728
|
const shouldWait = !!opts?.wait || wantResponse;
|
|
1711
1729
|
if (opts?.plain) {
|
|
@@ -2488,7 +2506,8 @@ async function sessionLoopStart(sessionIdPartial, task, machineId, opts) {
|
|
|
2488
2506
|
try {
|
|
2489
2507
|
const svc = getSessionProxy(machine, fullId);
|
|
2490
2508
|
const until = opts?.until || opts?.criteria;
|
|
2491
|
-
const
|
|
2509
|
+
const isStart = !!(task || until);
|
|
2510
|
+
const maxIterations = opts?.maxIterations ?? (isStart ? 20 : void 0);
|
|
2492
2511
|
const evaluator = opts?.agent ? true : opts?.evaluator !== false;
|
|
2493
2512
|
await svc.updateConfig({
|
|
2494
2513
|
loop: {
|
|
@@ -2496,18 +2515,22 @@ async function sessionLoopStart(sessionIdPartial, task, machineId, opts) {
|
|
|
2496
2515
|
...until ? { until } : {},
|
|
2497
2516
|
...opts?.oracle ? { oracle: opts.oracle } : {},
|
|
2498
2517
|
...opts?.parent ? { parent: opts.parent } : {},
|
|
2499
|
-
max_iterations: maxIterations,
|
|
2518
|
+
...maxIterations != null ? { max_iterations: maxIterations } : {},
|
|
2500
2519
|
evaluator
|
|
2501
2520
|
}
|
|
2502
2521
|
});
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2522
|
+
if (!isStart) {
|
|
2523
|
+
console.log(`\u{1F501} Loop limit updated on session ${fullId.slice(0, 8)}${maxIterations != null ? ` \u2192 max ${maxIterations} iterations` : ""} (resumes the loop if it had stopped).`);
|
|
2524
|
+
} else {
|
|
2525
|
+
console.log(`\u{1F501} Loop ${task ? "started" : "attached"} on session ${fullId.slice(0, 8)}`);
|
|
2526
|
+
if (task) console.log(` Task: ${task.slice(0, 100)}${task.length > 100 ? "..." : ""}`);
|
|
2527
|
+
if (until) console.log(` Until: ${until.slice(0, 100)}${until.length > 100 ? "..." : ""}`);
|
|
2528
|
+
console.log(` Oracle: ${opts?.oracle || "(none)"}`);
|
|
2529
|
+
console.log(` Evaluator: ${evaluator ? "on" : "off"}`);
|
|
2530
|
+
if (opts?.parent) console.log(` Parent review: ${opts.parent.slice(0, 8)}`);
|
|
2531
|
+
if (maxIterations != null) console.log(` Max iterations: ${maxIterations}`);
|
|
2532
|
+
if (!task) console.log(` (hot-plug \u2014 gating the session's current work)`);
|
|
2533
|
+
}
|
|
2511
2534
|
} finally {
|
|
2512
2535
|
await server.disconnect();
|
|
2513
2536
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
|
-
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-
|
|
3
|
+
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-BRmWVCNf.mjs';
|
|
4
4
|
import { execSync } from 'node:child_process';
|
|
5
|
-
import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-
|
|
5
|
+
import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-C9ZeF2iG.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -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 { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-
|
|
4
|
+
import { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-C9ZeF2iG.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|