svamp-cli 0.2.118 → 0.2.120
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/SKILL.md +1 -1
- package/bin/skills/loop/bin/checklist.mjs +94 -0
- package/bin/skills/loop/bin/loop-init.mjs +4 -1
- package/bin/skills/loop/bin/stop-gate.mjs +24 -3
- package/bin/skills/loop/test/test-checklist.mjs +65 -0
- package/dist/{agentCommands-BTkU0PQb.mjs → agentCommands-DIfofhT-.mjs} +4 -4
- package/dist/{auth-DimbhOMP.mjs → auth-zcVYRjJ8.mjs} +1 -1
- package/dist/cli.mjs +78 -54
- package/dist/{commands-Bw2V_awn.mjs → commands-BFpGoTq8.mjs} +1 -1
- package/dist/{commands-BJfRk4KT.mjs → commands-BOCpNFZX.mjs} +2 -2
- package/dist/{commands-3FsdWpJO.mjs → commands-BYsoZ6Fn.mjs} +2 -2
- package/dist/{commands-BEjlVtvS.mjs → commands-CPsUPDnI.mjs} +1 -1
- package/dist/{commands-B5rek8XG.mjs → commands-CuY9G_88.mjs} +94 -14
- package/dist/{commands-fbQs3jLx.mjs → commands-DOtJfJG7.mjs} +5 -5
- package/dist/{fleet-D5dNVJIp.mjs → fleet-CEAB4PS0.mjs} +1 -1
- package/dist/{frpc-CdcXdQde.mjs → frpc-DlsBjcRf.mjs} +1 -1
- package/dist/{headlessCli-Lk2OU1Gh.mjs → headlessCli-DuY4WQVa.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-CxWiFy_P.mjs → package-DS33M8qt.mjs} +1 -1
- package/dist/{run-DIoR81Ev.mjs → run-6Pp8yTPw.mjs} +1 -1
- package/dist/{run-9C2ogsuu.mjs → run-C4BsPJ_p.mjs} +832 -66
- package/dist/{serveCommands-BqApmjmR.mjs → serveCommands-UDH0noeg.mjs} +5 -5
- package/dist/{serveManager-XsXnI804.mjs → serveManager-QZooKtI4.mjs} +2 -2
- package/dist/{sideband-BHWq1P8E.mjs → sideband-Wfli3n7U.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-C4BsPJ_p.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-C4BsPJ_p.mjs').then(function (n) { return n.a1; });
|
|
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-C4BsPJ_p.mjs').then(function (n) { return n.a3; });
|
|
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-DOtJfJG7.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-UDH0noeg.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-BYsoZ6Fn.mjs');
|
|
365
365
|
let machineId;
|
|
366
366
|
const processArgs = args.slice(1);
|
|
367
367
|
const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
|
|
@@ -375,14 +375,14 @@ async function main() {
|
|
|
375
375
|
}), machineId);
|
|
376
376
|
process.exit(0);
|
|
377
377
|
} else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
|
|
378
|
-
const { routineCommand } = await import('./commands-
|
|
378
|
+
const { routineCommand } = await import('./commands-BFpGoTq8.mjs');
|
|
379
379
|
await routineCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
382
382
|
await handleWiseAgentCommand(args.slice(1));
|
|
383
383
|
process.exit(0);
|
|
384
384
|
} else if (subcommand === "feature" || subcommand === "crew") {
|
|
385
|
-
const { crewCommand } = await import('./commands-
|
|
385
|
+
const { crewCommand } = await import('./commands-BOCpNFZX.mjs');
|
|
386
386
|
await crewCommand(args.slice(1));
|
|
387
387
|
process.exit(0);
|
|
388
388
|
} else if (subcommand === "--help" || subcommand === "-h") {
|
|
@@ -390,7 +390,7 @@ async function main() {
|
|
|
390
390
|
} else if (!subcommand || subcommand === "start") {
|
|
391
391
|
await handleInteractiveCommand();
|
|
392
392
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
393
|
-
const pkg = await import('./package-
|
|
393
|
+
const pkg = await import('./package-DS33M8qt.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
394
394
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
395
395
|
} else {
|
|
396
396
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -399,7 +399,7 @@ async function main() {
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
async function handleInteractiveCommand() {
|
|
402
|
-
const { runInteractive } = await import('./run-
|
|
402
|
+
const { runInteractive } = await import('./run-6Pp8yTPw.mjs');
|
|
403
403
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
404
404
|
let directory = process.cwd();
|
|
405
405
|
let resumeSessionId;
|
|
@@ -444,7 +444,7 @@ async function handleAgentCommand() {
|
|
|
444
444
|
return;
|
|
445
445
|
}
|
|
446
446
|
if (agentArgs[0] === "list") {
|
|
447
|
-
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-
|
|
447
|
+
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.Z; });
|
|
448
448
|
console.log("Known agents:");
|
|
449
449
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
450
450
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -456,7 +456,7 @@ async function handleAgentCommand() {
|
|
|
456
456
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
457
457
|
return;
|
|
458
458
|
}
|
|
459
|
-
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-
|
|
459
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.Z; });
|
|
460
460
|
let cwd = process.cwd();
|
|
461
461
|
const filteredArgs = [];
|
|
462
462
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -480,12 +480,12 @@ async function handleAgentCommand() {
|
|
|
480
480
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
481
481
|
let backend;
|
|
482
482
|
if (KNOWN_MCP_AGENTS[config.agentName]) {
|
|
483
|
-
const { CodexMcpBackend } = await import('./run-
|
|
483
|
+
const { CodexMcpBackend } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n._; });
|
|
484
484
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
485
485
|
} else {
|
|
486
|
-
const { AcpBackend } = await import('./run-
|
|
487
|
-
const { GeminiTransport } = await import('./run-
|
|
488
|
-
const { DefaultTransport } = await import('./run-
|
|
486
|
+
const { AcpBackend } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.Y; });
|
|
487
|
+
const { GeminiTransport } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.$; });
|
|
488
|
+
const { DefaultTransport } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.X; });
|
|
489
489
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
|
|
490
490
|
backend = new AcpBackend({
|
|
491
491
|
agentName: config.agentName,
|
|
@@ -612,7 +612,7 @@ async function handleSessionCommand() {
|
|
|
612
612
|
process.exit(1);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
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-
|
|
615
|
+
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-CuY9G_88.mjs');
|
|
616
616
|
const parseFlagStr = (flag, shortFlag) => {
|
|
617
617
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
618
618
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -680,7 +680,7 @@ async function handleSessionCommand() {
|
|
|
680
680
|
allowDomain.push(sessionArgs[++i]);
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
const { parseShareArg } = await import('./commands-
|
|
683
|
+
const { parseShareArg } = await import('./commands-CuY9G_88.mjs');
|
|
684
684
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
685
685
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
686
686
|
message,
|
|
@@ -759,6 +759,30 @@ async function handleSessionCommand() {
|
|
|
759
759
|
model: parseFlagStr("--model"),
|
|
760
760
|
plain: hasFlag("--plain")
|
|
761
761
|
});
|
|
762
|
+
} else if (sessionSubcommand === "edit-message" || sessionSubcommand === "edit") {
|
|
763
|
+
if (!sessionArgs[1] || !sessionArgs[2] || sessionArgs[3] === void 0) {
|
|
764
|
+
console.error("Usage: svamp session edit-message <session-id> <message-id> <new-text>");
|
|
765
|
+
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
766
|
+
process.exit(1);
|
|
767
|
+
}
|
|
768
|
+
const { sessionEditMessage } = await import('./commands-CuY9G_88.mjs');
|
|
769
|
+
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
770
|
+
} else if (sessionSubcommand === "refine") {
|
|
771
|
+
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
772
|
+
console.error("Usage: svamp session refine <session-id> <instruction>");
|
|
773
|
+
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
774
|
+
process.exit(1);
|
|
775
|
+
}
|
|
776
|
+
const { sessionRefineLastReply } = await import('./commands-CuY9G_88.mjs');
|
|
777
|
+
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
778
|
+
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
779
|
+
if (!sessionArgs[1]) {
|
|
780
|
+
console.error("Usage: svamp session undo-edit <session-id>");
|
|
781
|
+
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
782
|
+
process.exit(1);
|
|
783
|
+
}
|
|
784
|
+
const { sessionUndoEdit } = await import('./commands-CuY9G_88.mjs');
|
|
785
|
+
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
762
786
|
} else if (sessionSubcommand === "query") {
|
|
763
787
|
const dir = sessionArgs[1];
|
|
764
788
|
const prompt = sessionArgs[2];
|
|
@@ -767,7 +791,7 @@ async function handleSessionCommand() {
|
|
|
767
791
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
768
792
|
process.exit(1);
|
|
769
793
|
}
|
|
770
|
-
const { sessionQuery } = await import('./commands-
|
|
794
|
+
const { sessionQuery } = await import('./commands-CuY9G_88.mjs');
|
|
771
795
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
772
796
|
timeout: parseFlagInt("--timeout"),
|
|
773
797
|
json: hasFlag("--json"),
|
|
@@ -800,7 +824,7 @@ async function handleSessionCommand() {
|
|
|
800
824
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
801
825
|
process.exit(1);
|
|
802
826
|
}
|
|
803
|
-
const { sessionApprove } = await import('./commands-
|
|
827
|
+
const { sessionApprove } = await import('./commands-CuY9G_88.mjs');
|
|
804
828
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
805
829
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
806
830
|
json: hasFlag("--json")
|
|
@@ -810,7 +834,7 @@ async function handleSessionCommand() {
|
|
|
810
834
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
811
835
|
process.exit(1);
|
|
812
836
|
}
|
|
813
|
-
const { sessionDeny } = await import('./commands-
|
|
837
|
+
const { sessionDeny } = await import('./commands-CuY9G_88.mjs');
|
|
814
838
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
815
839
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
816
840
|
json: hasFlag("--json")
|
|
@@ -844,7 +868,7 @@ async function handleSessionCommand() {
|
|
|
844
868
|
console.error('Usage: svamp session supervise <session-id> "<criteria>" [--oracle "cmd"] [--agent] [--parent <id>] [--action nudge|block] [--max N]');
|
|
845
869
|
process.exit(1);
|
|
846
870
|
}
|
|
847
|
-
const { sessionSupervise } = await import('./commands-
|
|
871
|
+
const { sessionSupervise } = await import('./commands-CuY9G_88.mjs');
|
|
848
872
|
const actionStr = parseFlagStr("--action");
|
|
849
873
|
await sessionSupervise(sessionArgs[1], sessionArgs[2], targetMachineId, {
|
|
850
874
|
oracle: parseFlagStr("--oracle"),
|
|
@@ -858,7 +882,7 @@ async function handleSessionCommand() {
|
|
|
858
882
|
console.error("Usage: svamp session unsupervise <session-id>");
|
|
859
883
|
process.exit(1);
|
|
860
884
|
}
|
|
861
|
-
const { sessionUnsupervise } = await import('./commands-
|
|
885
|
+
const { sessionUnsupervise } = await import('./commands-CuY9G_88.mjs');
|
|
862
886
|
await sessionUnsupervise(sessionArgs[1], targetMachineId);
|
|
863
887
|
} else if (sessionSubcommand === "set-title") {
|
|
864
888
|
const title = sessionArgs[1];
|
|
@@ -866,7 +890,7 @@ async function handleSessionCommand() {
|
|
|
866
890
|
console.error("Usage: svamp session set-title <title>");
|
|
867
891
|
process.exit(1);
|
|
868
892
|
}
|
|
869
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
893
|
+
const { sessionSetTitle } = await import('./agentCommands-DIfofhT-.mjs');
|
|
870
894
|
await sessionSetTitle(title);
|
|
871
895
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
872
896
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -874,7 +898,7 @@ async function handleSessionCommand() {
|
|
|
874
898
|
console.error("Usage: svamp session set-project-description <text>");
|
|
875
899
|
process.exit(1);
|
|
876
900
|
}
|
|
877
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
901
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-DIfofhT-.mjs');
|
|
878
902
|
await sessionSetProjectDescription(desc);
|
|
879
903
|
} else if (sessionSubcommand === "set-link") {
|
|
880
904
|
const url = sessionArgs[1];
|
|
@@ -883,7 +907,7 @@ async function handleSessionCommand() {
|
|
|
883
907
|
process.exit(1);
|
|
884
908
|
}
|
|
885
909
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
886
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
910
|
+
const { sessionSetLink } = await import('./agentCommands-DIfofhT-.mjs');
|
|
887
911
|
await sessionSetLink(url, label);
|
|
888
912
|
} else if (sessionSubcommand === "notify") {
|
|
889
913
|
const message = sessionArgs[1];
|
|
@@ -892,7 +916,7 @@ async function handleSessionCommand() {
|
|
|
892
916
|
process.exit(1);
|
|
893
917
|
}
|
|
894
918
|
const level = parseFlagStr("--level") || "info";
|
|
895
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
919
|
+
const { sessionNotify } = await import('./agentCommands-DIfofhT-.mjs');
|
|
896
920
|
await sessionNotify(message, level);
|
|
897
921
|
} else if (sessionSubcommand === "broadcast") {
|
|
898
922
|
const action = sessionArgs[1];
|
|
@@ -900,7 +924,7 @@ async function handleSessionCommand() {
|
|
|
900
924
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
901
925
|
process.exit(1);
|
|
902
926
|
}
|
|
903
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
927
|
+
const { sessionBroadcast } = await import('./agentCommands-DIfofhT-.mjs');
|
|
904
928
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
905
929
|
} else if (sessionSubcommand === "inbox") {
|
|
906
930
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -911,7 +935,7 @@ async function handleSessionCommand() {
|
|
|
911
935
|
process.exit(1);
|
|
912
936
|
}
|
|
913
937
|
if (agentSessionId) {
|
|
914
|
-
const { inboxSend } = await import('./agentCommands-
|
|
938
|
+
const { inboxSend } = await import('./agentCommands-DIfofhT-.mjs');
|
|
915
939
|
await inboxSend(sessionArgs[2], {
|
|
916
940
|
body: sessionArgs[3],
|
|
917
941
|
subject: parseFlagStr("--subject"),
|
|
@@ -926,7 +950,7 @@ async function handleSessionCommand() {
|
|
|
926
950
|
}
|
|
927
951
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
928
952
|
if (agentSessionId && !sessionArgs[2]) {
|
|
929
|
-
const { inboxList } = await import('./agentCommands-
|
|
953
|
+
const { inboxList } = await import('./agentCommands-DIfofhT-.mjs');
|
|
930
954
|
await inboxList({
|
|
931
955
|
unread: hasFlag("--unread"),
|
|
932
956
|
limit: parseFlagInt("--limit"),
|
|
@@ -948,7 +972,7 @@ async function handleSessionCommand() {
|
|
|
948
972
|
process.exit(1);
|
|
949
973
|
}
|
|
950
974
|
if (agentSessionId && !sessionArgs[3]) {
|
|
951
|
-
const { inboxList } = await import('./agentCommands-
|
|
975
|
+
const { inboxList } = await import('./agentCommands-DIfofhT-.mjs');
|
|
952
976
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
953
977
|
} else if (sessionArgs[3]) {
|
|
954
978
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -958,7 +982,7 @@ async function handleSessionCommand() {
|
|
|
958
982
|
}
|
|
959
983
|
} else if (inboxSubcmd === "reply") {
|
|
960
984
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
961
|
-
const { inboxReply } = await import('./agentCommands-
|
|
985
|
+
const { inboxReply } = await import('./agentCommands-DIfofhT-.mjs');
|
|
962
986
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
963
987
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
964
988
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -994,7 +1018,7 @@ async function handleMachineCommand() {
|
|
|
994
1018
|
return;
|
|
995
1019
|
}
|
|
996
1020
|
if (machineSubcommand === "share") {
|
|
997
|
-
const { machineShare } = await import('./commands-
|
|
1021
|
+
const { machineShare } = await import('./commands-CuY9G_88.mjs');
|
|
998
1022
|
let machineId;
|
|
999
1023
|
const shareArgs = [];
|
|
1000
1024
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1024,7 +1048,7 @@ async function handleMachineCommand() {
|
|
|
1024
1048
|
}
|
|
1025
1049
|
await machineShare(machineId, { add, remove, list, configPath, showConfig });
|
|
1026
1050
|
} else if (machineSubcommand === "exec") {
|
|
1027
|
-
const { machineExec } = await import('./commands-
|
|
1051
|
+
const { machineExec } = await import('./commands-CuY9G_88.mjs');
|
|
1028
1052
|
let machineId;
|
|
1029
1053
|
let cwd;
|
|
1030
1054
|
const cmdParts = [];
|
|
@@ -1044,7 +1068,7 @@ async function handleMachineCommand() {
|
|
|
1044
1068
|
}
|
|
1045
1069
|
await machineExec(machineId, command, cwd);
|
|
1046
1070
|
} else if (machineSubcommand === "info") {
|
|
1047
|
-
const { machineInfo } = await import('./commands-
|
|
1071
|
+
const { machineInfo } = await import('./commands-CuY9G_88.mjs');
|
|
1048
1072
|
let machineId;
|
|
1049
1073
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1050
1074
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1064,10 +1088,10 @@ async function handleMachineCommand() {
|
|
|
1064
1088
|
level = machineArgs[++i];
|
|
1065
1089
|
}
|
|
1066
1090
|
}
|
|
1067
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1091
|
+
const { machineNotify } = await import('./agentCommands-DIfofhT-.mjs');
|
|
1068
1092
|
await machineNotify(message, level);
|
|
1069
1093
|
} else if (machineSubcommand === "ls") {
|
|
1070
|
-
const { machineLs } = await import('./commands-
|
|
1094
|
+
const { machineLs } = await import('./commands-CuY9G_88.mjs');
|
|
1071
1095
|
let machineId;
|
|
1072
1096
|
let showHidden = false;
|
|
1073
1097
|
let path;
|
|
@@ -1125,24 +1149,24 @@ Examples:
|
|
|
1125
1149
|
};
|
|
1126
1150
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1127
1151
|
if (sub === "status") {
|
|
1128
|
-
const { fleetStatus } = await import('./fleet-
|
|
1152
|
+
const { fleetStatus } = await import('./fleet-CEAB4PS0.mjs');
|
|
1129
1153
|
await fleetStatus();
|
|
1130
1154
|
} else if (sub === "exec") {
|
|
1131
1155
|
const command = fleetArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1132
|
-
const { fleetExec } = await import('./fleet-
|
|
1156
|
+
const { fleetExec } = await import('./fleet-CEAB4PS0.mjs');
|
|
1133
1157
|
await fleetExec(command, { cwd: flag("cwd") });
|
|
1134
1158
|
} else if (sub === "upgrade-claude") {
|
|
1135
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1159
|
+
const { fleetUpgradeClaude } = await import('./fleet-CEAB4PS0.mjs');
|
|
1136
1160
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1137
1161
|
} else if (sub === "upgrade-svamp") {
|
|
1138
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1162
|
+
const { fleetUpgradeSvamp } = await import('./fleet-CEAB4PS0.mjs');
|
|
1139
1163
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1140
1164
|
} else if (sub === "daemon-restart") {
|
|
1141
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1165
|
+
const { fleetDaemonRestart } = await import('./fleet-CEAB4PS0.mjs');
|
|
1142
1166
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1143
1167
|
} else if (sub === "push-skill") {
|
|
1144
1168
|
const name = fleetArgs[1];
|
|
1145
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1169
|
+
const { fleetPushSkill } = await import('./fleet-CEAB4PS0.mjs');
|
|
1146
1170
|
await fleetPushSkill(name);
|
|
1147
1171
|
} else {
|
|
1148
1172
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1158,7 +1182,7 @@ async function handleSkillsCommand() {
|
|
|
1158
1182
|
await printSkillsHelp();
|
|
1159
1183
|
return;
|
|
1160
1184
|
}
|
|
1161
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1185
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-CPsUPDnI.mjs');
|
|
1162
1186
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1163
1187
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1164
1188
|
if (!query) {
|
|
@@ -1205,7 +1229,7 @@ async function loginToHypha() {
|
|
|
1205
1229
|
process.exit(1);
|
|
1206
1230
|
}
|
|
1207
1231
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1208
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1232
|
+
const { loadInstanceConfig } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.a1; });
|
|
1209
1233
|
let cfg = null;
|
|
1210
1234
|
try {
|
|
1211
1235
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1316,7 +1340,7 @@ async function logoutFromHypha() {
|
|
|
1316
1340
|
} catch {
|
|
1317
1341
|
}
|
|
1318
1342
|
try {
|
|
1319
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1343
|
+
const { clearInstanceConfigCache } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.a1; });
|
|
1320
1344
|
clearInstanceConfigCache();
|
|
1321
1345
|
} catch {
|
|
1322
1346
|
}
|
|
@@ -1654,7 +1678,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1654
1678
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1655
1679
|
);
|
|
1656
1680
|
}
|
|
1657
|
-
const mod = await import('./run-
|
|
1681
|
+
const mod = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.a0; });
|
|
1658
1682
|
if (hasHypha) {
|
|
1659
1683
|
let url;
|
|
1660
1684
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1708,7 +1732,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1708
1732
|
}
|
|
1709
1733
|
}
|
|
1710
1734
|
if (collected.length === 0) return;
|
|
1711
|
-
const { updateEnvFile } = await import('./run-
|
|
1735
|
+
const { updateEnvFile } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.a0; });
|
|
1712
1736
|
const seen = /* @__PURE__ */ new Set();
|
|
1713
1737
|
const deduped = collected.filter((e) => {
|
|
1714
1738
|
const k = e.toLowerCase();
|
|
@@ -1741,7 +1765,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1741
1765
|
}
|
|
1742
1766
|
});
|
|
1743
1767
|
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(" ");
|
|
1744
|
-
const { wiseAskCli } = await import('./commands-
|
|
1768
|
+
const { wiseAskCli } = await import('./commands-CuY9G_88.mjs');
|
|
1745
1769
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1746
1770
|
return;
|
|
1747
1771
|
}
|
|
@@ -1753,7 +1777,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1753
1777
|
}
|
|
1754
1778
|
return void 0;
|
|
1755
1779
|
};
|
|
1756
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1780
|
+
const { runWiseVoiceCli } = await import('./headlessCli-DuY4WQVa.mjs');
|
|
1757
1781
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1758
1782
|
return;
|
|
1759
1783
|
}
|
|
@@ -1795,7 +1819,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1795
1819
|
return;
|
|
1796
1820
|
}
|
|
1797
1821
|
const authArgs = rest.slice(1);
|
|
1798
|
-
const mod = await import('./auth-
|
|
1822
|
+
const mod = await import('./auth-zcVYRjJ8.mjs');
|
|
1799
1823
|
let action;
|
|
1800
1824
|
try {
|
|
1801
1825
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1805,7 +1829,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1805
1829
|
return;
|
|
1806
1830
|
}
|
|
1807
1831
|
if (action) {
|
|
1808
|
-
const { updateEnvFile } = await import('./run-
|
|
1832
|
+
const { updateEnvFile } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.a0; });
|
|
1809
1833
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1810
1834
|
updateEnvFile(updates);
|
|
1811
1835
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1819,7 +1843,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1819
1843
|
}
|
|
1820
1844
|
async function handleDaemonAuthCommand(argv) {
|
|
1821
1845
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1822
|
-
const mod = await import('./run-
|
|
1846
|
+
const mod = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.a0; });
|
|
1823
1847
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1824
1848
|
console.log(`
|
|
1825
1849
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2126,7 +2150,7 @@ Examples:
|
|
|
2126
2150
|
async function printSkillsHelp() {
|
|
2127
2151
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2128
2152
|
try {
|
|
2129
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2153
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-C4BsPJ_p.mjs').then(function (n) { return n.a2; });
|
|
2130
2154
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2131
2155
|
} catch {
|
|
2132
2156
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
2
|
import { createServer } from 'node:http';
|
|
3
|
-
import { R as RoutineStore, m as RoutineRunner } from './run-
|
|
3
|
+
import { R as RoutineStore, m as RoutineRunner } from './run-C4BsPJ_p.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
|
-
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-
|
|
2
|
+
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-CuY9G_88.mjs';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
|
-
import { n as shortId } from './run-
|
|
4
|
+
import { n as shortId } from './run-C4BsPJ_p.mjs';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
@@ -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-CuY9G_88.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-C4BsPJ_p.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os from 'os';
|
|
2
2
|
import fs__default from 'fs';
|
|
3
3
|
import { resolve, join, relative } from 'path';
|
|
4
|
-
import { p as parseFrontmatter, o as getSkillsServer, q as getSkillsWorkspaceName, t as getSkillsCollectionName, u as fetchWithTimeout, v as searchSkills, w as SKILLS_DIR, x as getSkillInfo, y as downloadSkillFile, z as listSkillFiles } from './run-
|
|
4
|
+
import { p as parseFrontmatter, o as getSkillsServer, q as getSkillsWorkspaceName, t as getSkillsCollectionName, u as fetchWithTimeout, v as searchSkills, w as SKILLS_DIR, x as getSkillInfo, y as downloadSkillFile, z as listSkillFiles } from './run-C4BsPJ_p.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|