svamp-cli 0.2.136 → 0.2.138
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/dist/{agentCommands-9ejFQKI5.mjs → agentCommands-CKDcRU5k.mjs} +4 -4
- package/dist/{auth-BkGxi5wL.mjs → auth-x_-JHZN2.mjs} +1 -1
- package/dist/cli.mjs +63 -57
- package/dist/{commands-BUGKTwfm.mjs → commands-C4UVIVHi.mjs} +2 -2
- package/dist/{commands-DDuOUdHk.mjs → commands-C7E38JVo.mjs} +16 -3
- package/dist/{commands-CUfOQ8fR.mjs → commands-CPCVy3vC.mjs} +1 -1
- package/dist/{commands-DuCKSlM9.mjs → commands-CVfV3xER.mjs} +2 -2
- package/dist/{commands-D-b6wQTU.mjs → commands-D6QSHeaP.mjs} +2 -2
- package/dist/{commands-DB6ImfRk.mjs → commands-DUHk8Wjv.mjs} +5 -5
- package/dist/{fleet-BPR4JVZG.mjs → fleet-bAqTzizk.mjs} +1 -1
- package/dist/{frpc-CsvBoxeE.mjs → frpc-BbQdGrl9.mjs} +1 -1
- package/dist/{headlessCli-D6T-ZCzn.mjs → headlessCli-DSfP5gY9.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-C3Bj2YhI.mjs → package-BZw7zp3h.mjs} +1 -1
- package/dist/{run-BussQNMw.mjs → run-B9GwVTIm.mjs} +54 -16
- package/dist/{run-CASP0C3x.mjs → run-CWPH2pqz.mjs} +1 -1
- package/dist/{serveCommands-DqYG57P9.mjs → serveCommands-BYtyl3eY.mjs} +5 -5
- package/dist/{serveManager-Bov4MZdR.mjs → serveManager-Dhpt4XA4.mjs} +2 -2
- package/dist/{sideband-D-o-HdAM.mjs → sideband-RBAbqGpi.mjs} +1 -1
- 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 { m as shortId } from './run-
|
|
5
|
+
import { m as shortId } from './run-B9GwVTIm.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-
|
|
99
|
+
const { projectName, writeProjectInfo, sanitizeDescription, projectInfoPath } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a1; });
|
|
100
100
|
const desc = sanitizeDescription(description, 240);
|
|
101
101
|
if (!desc) {
|
|
102
102
|
console.error("Project description is empty.");
|
|
@@ -180,7 +180,7 @@ async function sessionBroadcast(action, args) {
|
|
|
180
180
|
console.log(`Broadcast sent: ${action}`);
|
|
181
181
|
}
|
|
182
182
|
async function connectToMachineService() {
|
|
183
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
183
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.mjs');
|
|
184
184
|
return connectAndGetMachine();
|
|
185
185
|
}
|
|
186
186
|
async function inboxSend(targetSessionId, opts) {
|
|
@@ -197,7 +197,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
197
197
|
}
|
|
198
198
|
const { server, machine } = await connectToMachineService();
|
|
199
199
|
try {
|
|
200
|
-
const { resolveSessionId } = await import('./commands-
|
|
200
|
+
const { resolveSessionId } = await import('./commands-C7E38JVo.mjs');
|
|
201
201
|
const sessions = await machine.listSessions();
|
|
202
202
|
const match = resolveSessionId(sessions, targetSessionId);
|
|
203
203
|
const fullTargetId = match.sessionId;
|
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-B9GwVTIm.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-B9GwVTIm.mjs').then(function (n) { return n.a8; });
|
|
38
38
|
getLoadedConfig();
|
|
39
39
|
} catch {
|
|
40
40
|
}
|
|
@@ -51,7 +51,7 @@ async function main() {
|
|
|
51
51
|
console.error(`svamp daemon restart: ${err.message || err}`);
|
|
52
52
|
process.exit(1);
|
|
53
53
|
}
|
|
54
|
-
const { restartDaemon } = await import('./run-
|
|
54
|
+
const { restartDaemon } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.aa; });
|
|
55
55
|
await restartDaemon();
|
|
56
56
|
process.exit(0);
|
|
57
57
|
}
|
|
@@ -344,7 +344,7 @@ async function main() {
|
|
|
344
344
|
console.error("svamp service: Service commands are not available in sandboxed sessions.");
|
|
345
345
|
process.exit(1);
|
|
346
346
|
}
|
|
347
|
-
const { handleServiceCommand } = await import('./commands-
|
|
347
|
+
const { handleServiceCommand } = await import('./commands-DUHk8Wjv.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-BYtyl3eY.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-D6QSHeaP.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-C4UVIVHi.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-CVfV3xER.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-BZw7zp3h.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-CWPH2pqz.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-B9GwVTIm.mjs').then(function (n) { return n.a4; });
|
|
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-B9GwVTIm.mjs').then(function (n) { return n.a4; });
|
|
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-B9GwVTIm.mjs').then(function (n) { return n.a5; });
|
|
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-B9GwVTIm.mjs').then(function (n) { return n.a3; });
|
|
487
|
+
const { GeminiTransport } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a6; });
|
|
488
|
+
const { DefaultTransport } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a2; });
|
|
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, sessionChecklist, 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, sessionChecklist, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-C7E38JVo.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-C7E38JVo.mjs');
|
|
684
684
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
685
685
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
686
686
|
message,
|
|
@@ -765,7 +765,7 @@ async function handleSessionCommand() {
|
|
|
765
765
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
766
766
|
process.exit(1);
|
|
767
767
|
}
|
|
768
|
-
const { sessionEditMessage } = await import('./commands-
|
|
768
|
+
const { sessionEditMessage } = await import('./commands-C7E38JVo.mjs');
|
|
769
769
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
770
770
|
} else if (sessionSubcommand === "refine") {
|
|
771
771
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -773,7 +773,7 @@ async function handleSessionCommand() {
|
|
|
773
773
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
774
774
|
process.exit(1);
|
|
775
775
|
}
|
|
776
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
776
|
+
const { sessionRefineLastReply } = await import('./commands-C7E38JVo.mjs');
|
|
777
777
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
778
778
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
779
779
|
if (!sessionArgs[1]) {
|
|
@@ -781,7 +781,7 @@ async function handleSessionCommand() {
|
|
|
781
781
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
782
782
|
process.exit(1);
|
|
783
783
|
}
|
|
784
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
784
|
+
const { sessionUndoEdit } = await import('./commands-C7E38JVo.mjs');
|
|
785
785
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
786
786
|
} else if (sessionSubcommand === "query") {
|
|
787
787
|
const dir = sessionArgs[1];
|
|
@@ -791,7 +791,7 @@ async function handleSessionCommand() {
|
|
|
791
791
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
792
792
|
process.exit(1);
|
|
793
793
|
}
|
|
794
|
-
const { sessionQuery } = await import('./commands-
|
|
794
|
+
const { sessionQuery } = await import('./commands-C7E38JVo.mjs');
|
|
795
795
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
796
796
|
timeout: parseFlagInt("--timeout"),
|
|
797
797
|
json: hasFlag("--json"),
|
|
@@ -824,7 +824,7 @@ async function handleSessionCommand() {
|
|
|
824
824
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
825
825
|
process.exit(1);
|
|
826
826
|
}
|
|
827
|
-
const { sessionApprove } = await import('./commands-
|
|
827
|
+
const { sessionApprove } = await import('./commands-C7E38JVo.mjs');
|
|
828
828
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
829
829
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
830
830
|
json: hasFlag("--json")
|
|
@@ -834,7 +834,7 @@ async function handleSessionCommand() {
|
|
|
834
834
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
835
835
|
process.exit(1);
|
|
836
836
|
}
|
|
837
|
-
const { sessionDeny } = await import('./commands-
|
|
837
|
+
const { sessionDeny } = await import('./commands-C7E38JVo.mjs');
|
|
838
838
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
839
839
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
840
840
|
json: hasFlag("--json")
|
|
@@ -880,6 +880,7 @@ async function handleSessionCommand() {
|
|
|
880
880
|
console.error(" done <id|#> \u2026 mark item(s) done");
|
|
881
881
|
console.error(" rm <id|#> \u2026 remove item(s)");
|
|
882
882
|
console.error(" clear clear the checklist and stop the loop");
|
|
883
|
+
console.error(" limits: --max N (rounds) \xB7 --max-tokens N \xB7 --max-runtime SEC");
|
|
883
884
|
process.exit(1);
|
|
884
885
|
}
|
|
885
886
|
const CHECKLIST_ACTIONS = ["get", "set", "add", "rm", "done", "clear"];
|
|
@@ -889,7 +890,7 @@ async function handleSessionCommand() {
|
|
|
889
890
|
action = sessionArgs[2];
|
|
890
891
|
restStart = 3;
|
|
891
892
|
}
|
|
892
|
-
const valueFlags = /* @__PURE__ */ new Set(["--oracle", "-m", "--machine"]);
|
|
893
|
+
const valueFlags = /* @__PURE__ */ new Set(["--oracle", "--max", "--max-tokens", "--max-runtime", "-m", "--machine"]);
|
|
893
894
|
const rest = [];
|
|
894
895
|
for (let i = restStart; i < sessionArgs.length; i++) {
|
|
895
896
|
const a = sessionArgs[i];
|
|
@@ -899,14 +900,19 @@ async function handleSessionCommand() {
|
|
|
899
900
|
}
|
|
900
901
|
rest.push(a);
|
|
901
902
|
}
|
|
902
|
-
await sessionChecklist(id, action, rest, targetMachineId, {
|
|
903
|
+
await sessionChecklist(id, action, rest, targetMachineId, {
|
|
904
|
+
oracle: parseFlagStr("--oracle"),
|
|
905
|
+
maxIterations: parseFlagInt("--max") ?? parseFlagInt("--max-iterations"),
|
|
906
|
+
maxTokens: parseFlagInt("--max-tokens"),
|
|
907
|
+
maxRuntimeSec: parseFlagInt("--max-runtime")
|
|
908
|
+
});
|
|
903
909
|
} else if (sessionSubcommand === "set-title") {
|
|
904
910
|
const title = sessionArgs[1];
|
|
905
911
|
if (!title) {
|
|
906
912
|
console.error("Usage: svamp session set-title <title>");
|
|
907
913
|
process.exit(1);
|
|
908
914
|
}
|
|
909
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
915
|
+
const { sessionSetTitle } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
910
916
|
await sessionSetTitle(title);
|
|
911
917
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
912
918
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -914,7 +920,7 @@ async function handleSessionCommand() {
|
|
|
914
920
|
console.error("Usage: svamp session set-project-description <text>");
|
|
915
921
|
process.exit(1);
|
|
916
922
|
}
|
|
917
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
923
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
918
924
|
await sessionSetProjectDescription(desc);
|
|
919
925
|
} else if (sessionSubcommand === "set-link") {
|
|
920
926
|
const url = sessionArgs[1];
|
|
@@ -923,7 +929,7 @@ async function handleSessionCommand() {
|
|
|
923
929
|
process.exit(1);
|
|
924
930
|
}
|
|
925
931
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
926
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
932
|
+
const { sessionSetLink } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
927
933
|
await sessionSetLink(url, label);
|
|
928
934
|
} else if (sessionSubcommand === "notify") {
|
|
929
935
|
const message = sessionArgs[1];
|
|
@@ -932,7 +938,7 @@ async function handleSessionCommand() {
|
|
|
932
938
|
process.exit(1);
|
|
933
939
|
}
|
|
934
940
|
const level = parseFlagStr("--level") || "info";
|
|
935
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
941
|
+
const { sessionNotify } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
936
942
|
await sessionNotify(message, level);
|
|
937
943
|
} else if (sessionSubcommand === "broadcast") {
|
|
938
944
|
const action = sessionArgs[1];
|
|
@@ -940,7 +946,7 @@ async function handleSessionCommand() {
|
|
|
940
946
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
941
947
|
process.exit(1);
|
|
942
948
|
}
|
|
943
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
949
|
+
const { sessionBroadcast } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
944
950
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
945
951
|
} else if (sessionSubcommand === "inbox") {
|
|
946
952
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -951,7 +957,7 @@ async function handleSessionCommand() {
|
|
|
951
957
|
process.exit(1);
|
|
952
958
|
}
|
|
953
959
|
if (agentSessionId) {
|
|
954
|
-
const { inboxSend } = await import('./agentCommands-
|
|
960
|
+
const { inboxSend } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
955
961
|
await inboxSend(sessionArgs[2], {
|
|
956
962
|
body: sessionArgs[3],
|
|
957
963
|
subject: parseFlagStr("--subject"),
|
|
@@ -966,7 +972,7 @@ async function handleSessionCommand() {
|
|
|
966
972
|
}
|
|
967
973
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
968
974
|
if (agentSessionId && !sessionArgs[2]) {
|
|
969
|
-
const { inboxList } = await import('./agentCommands-
|
|
975
|
+
const { inboxList } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
970
976
|
await inboxList({
|
|
971
977
|
unread: hasFlag("--unread"),
|
|
972
978
|
limit: parseFlagInt("--limit"),
|
|
@@ -988,7 +994,7 @@ async function handleSessionCommand() {
|
|
|
988
994
|
process.exit(1);
|
|
989
995
|
}
|
|
990
996
|
if (agentSessionId && !sessionArgs[3]) {
|
|
991
|
-
const { inboxList } = await import('./agentCommands-
|
|
997
|
+
const { inboxList } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
992
998
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
993
999
|
} else if (sessionArgs[3]) {
|
|
994
1000
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -998,7 +1004,7 @@ async function handleSessionCommand() {
|
|
|
998
1004
|
}
|
|
999
1005
|
} else if (inboxSubcmd === "reply") {
|
|
1000
1006
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1001
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1007
|
+
const { inboxReply } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
1002
1008
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1003
1009
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1004
1010
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1034,7 +1040,7 @@ async function handleMachineCommand() {
|
|
|
1034
1040
|
return;
|
|
1035
1041
|
}
|
|
1036
1042
|
if (machineSubcommand === "share") {
|
|
1037
|
-
const { machineShare } = await import('./commands-
|
|
1043
|
+
const { machineShare } = await import('./commands-C7E38JVo.mjs');
|
|
1038
1044
|
let machineId;
|
|
1039
1045
|
const shareArgs = [];
|
|
1040
1046
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1085,14 +1091,14 @@ async function handleMachineCommand() {
|
|
|
1085
1091
|
process.exit(1);
|
|
1086
1092
|
}
|
|
1087
1093
|
if (all) {
|
|
1088
|
-
const { fleetExec } = await import('./fleet-
|
|
1094
|
+
const { fleetExec } = await import('./fleet-bAqTzizk.mjs');
|
|
1089
1095
|
await fleetExec(command, { cwd });
|
|
1090
1096
|
} else {
|
|
1091
|
-
const { machineExec } = await import('./commands-
|
|
1097
|
+
const { machineExec } = await import('./commands-C7E38JVo.mjs');
|
|
1092
1098
|
await machineExec(machineId, command, cwd);
|
|
1093
1099
|
}
|
|
1094
1100
|
} else if (machineSubcommand === "info") {
|
|
1095
|
-
const { machineInfo } = await import('./commands-
|
|
1101
|
+
const { machineInfo } = await import('./commands-C7E38JVo.mjs');
|
|
1096
1102
|
let machineId;
|
|
1097
1103
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1098
1104
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1112,10 +1118,10 @@ async function handleMachineCommand() {
|
|
|
1112
1118
|
level = machineArgs[++i];
|
|
1113
1119
|
}
|
|
1114
1120
|
}
|
|
1115
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1121
|
+
const { machineNotify } = await import('./agentCommands-CKDcRU5k.mjs');
|
|
1116
1122
|
await machineNotify(message, level);
|
|
1117
1123
|
} else if (machineSubcommand === "ls") {
|
|
1118
|
-
const { machineLs } = await import('./commands-
|
|
1124
|
+
const { machineLs } = await import('./commands-C7E38JVo.mjs');
|
|
1119
1125
|
let machineId;
|
|
1120
1126
|
let showHidden = false;
|
|
1121
1127
|
let path;
|
|
@@ -1171,20 +1177,20 @@ Examples:
|
|
|
1171
1177
|
};
|
|
1172
1178
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1173
1179
|
if (sub === "status") {
|
|
1174
|
-
const { fleetStatus } = await import('./fleet-
|
|
1180
|
+
const { fleetStatus } = await import('./fleet-bAqTzizk.mjs');
|
|
1175
1181
|
await fleetStatus();
|
|
1176
1182
|
} else if (sub === "upgrade-claude") {
|
|
1177
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1183
|
+
const { fleetUpgradeClaude } = await import('./fleet-bAqTzizk.mjs');
|
|
1178
1184
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1179
1185
|
} else if (sub === "upgrade-svamp") {
|
|
1180
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1186
|
+
const { fleetUpgradeSvamp } = await import('./fleet-bAqTzizk.mjs');
|
|
1181
1187
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1182
1188
|
} else if (sub === "daemon-restart") {
|
|
1183
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1189
|
+
const { fleetDaemonRestart } = await import('./fleet-bAqTzizk.mjs');
|
|
1184
1190
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1185
1191
|
} else if (sub === "push-skill") {
|
|
1186
1192
|
const name = fleetArgs[1];
|
|
1187
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1193
|
+
const { fleetPushSkill } = await import('./fleet-bAqTzizk.mjs');
|
|
1188
1194
|
await fleetPushSkill(name);
|
|
1189
1195
|
} else {
|
|
1190
1196
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1200,7 +1206,7 @@ async function handleSkillsCommand() {
|
|
|
1200
1206
|
await printSkillsHelp();
|
|
1201
1207
|
return;
|
|
1202
1208
|
}
|
|
1203
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1209
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-CPCVy3vC.mjs');
|
|
1204
1210
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1205
1211
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1206
1212
|
if (!query) {
|
|
@@ -1247,7 +1253,7 @@ async function loginToHypha() {
|
|
|
1247
1253
|
process.exit(1);
|
|
1248
1254
|
}
|
|
1249
1255
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1250
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1256
|
+
const { loadInstanceConfig } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a8; });
|
|
1251
1257
|
let cfg = null;
|
|
1252
1258
|
try {
|
|
1253
1259
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1358,7 +1364,7 @@ async function logoutFromHypha() {
|
|
|
1358
1364
|
} catch {
|
|
1359
1365
|
}
|
|
1360
1366
|
try {
|
|
1361
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1367
|
+
const { clearInstanceConfigCache } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a8; });
|
|
1362
1368
|
clearInstanceConfigCache();
|
|
1363
1369
|
} catch {
|
|
1364
1370
|
}
|
|
@@ -1696,7 +1702,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1696
1702
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1697
1703
|
);
|
|
1698
1704
|
}
|
|
1699
|
-
const mod = await import('./run-
|
|
1705
|
+
const mod = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a7; });
|
|
1700
1706
|
if (hasHypha) {
|
|
1701
1707
|
let url;
|
|
1702
1708
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1750,7 +1756,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1750
1756
|
}
|
|
1751
1757
|
}
|
|
1752
1758
|
if (collected.length === 0) return;
|
|
1753
|
-
const { updateEnvFile } = await import('./run-
|
|
1759
|
+
const { updateEnvFile } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a7; });
|
|
1754
1760
|
const seen = /* @__PURE__ */ new Set();
|
|
1755
1761
|
const deduped = collected.filter((e) => {
|
|
1756
1762
|
const k = e.toLowerCase();
|
|
@@ -1783,7 +1789,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1783
1789
|
}
|
|
1784
1790
|
});
|
|
1785
1791
|
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(" ");
|
|
1786
|
-
const { wiseAskCli } = await import('./commands-
|
|
1792
|
+
const { wiseAskCli } = await import('./commands-C7E38JVo.mjs');
|
|
1787
1793
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1788
1794
|
return;
|
|
1789
1795
|
}
|
|
@@ -1795,7 +1801,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1795
1801
|
}
|
|
1796
1802
|
return void 0;
|
|
1797
1803
|
};
|
|
1798
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1804
|
+
const { runWiseVoiceCli } = await import('./headlessCli-DSfP5gY9.mjs');
|
|
1799
1805
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1800
1806
|
return;
|
|
1801
1807
|
}
|
|
@@ -1837,7 +1843,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1837
1843
|
return;
|
|
1838
1844
|
}
|
|
1839
1845
|
const authArgs = rest.slice(1);
|
|
1840
|
-
const mod = await import('./auth-
|
|
1846
|
+
const mod = await import('./auth-x_-JHZN2.mjs');
|
|
1841
1847
|
let action;
|
|
1842
1848
|
try {
|
|
1843
1849
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1847,7 +1853,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1847
1853
|
return;
|
|
1848
1854
|
}
|
|
1849
1855
|
if (action) {
|
|
1850
|
-
const { updateEnvFile } = await import('./run-
|
|
1856
|
+
const { updateEnvFile } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a7; });
|
|
1851
1857
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1852
1858
|
updateEnvFile(updates);
|
|
1853
1859
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1861,7 +1867,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1861
1867
|
}
|
|
1862
1868
|
async function handleDaemonAuthCommand(argv) {
|
|
1863
1869
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1864
|
-
const mod = await import('./run-
|
|
1870
|
+
const mod = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a7; });
|
|
1865
1871
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1866
1872
|
console.log(`
|
|
1867
1873
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2174,7 +2180,7 @@ Examples:
|
|
|
2174
2180
|
async function printSkillsHelp() {
|
|
2175
2181
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2176
2182
|
try {
|
|
2177
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2183
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-B9GwVTIm.mjs').then(function (n) { return n.a9; });
|
|
2178
2184
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2179
2185
|
} catch {
|
|
2180
2186
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { execSync, execFileSync } from 'node:child_process';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
3
|
import { createServer } from 'node:http';
|
|
4
|
-
import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-
|
|
4
|
+
import { E as readChecklist, F as compileChecklist, G as RoutineStore, H as RoutineRunner } from './run-B9GwVTIm.mjs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'fs/promises';
|
|
7
7
|
import 'fs';
|
|
@@ -104,7 +104,7 @@ Criteria: ${res.criteria || "(none)"}
|
|
|
104
104
|
urgency: "normal",
|
|
105
105
|
hopCount: 1
|
|
106
106
|
};
|
|
107
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
107
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.mjs');
|
|
108
108
|
const { server, machine } = await connectAndGetMachine();
|
|
109
109
|
try {
|
|
110
110
|
await machine.sessionRPC(reportTo, "sendInboxMessage", { message });
|
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
3
|
import { basename, resolve, join, isAbsolute } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
5
|
-
import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as validateChecklist, Q as computeOutboundHop, m as shortId, T as buildMachineShareUrl, U as summarize, V as newItem, W as parseHandle, X as handleMatchesMetadata } from './run-
|
|
5
|
+
import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as validateChecklist, Q as computeOutboundHop, m as shortId, T as buildMachineShareUrl, U as summarize, V as newItem, W as parseHandle, X as handleMatchesMetadata } from './run-B9GwVTIm.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -2521,6 +2521,18 @@ function mutateChecklistItems(items, action, args, opts, now = Date.now()) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
return next.map((it, i) => ({ ...it, order: i }));
|
|
2523
2523
|
}
|
|
2524
|
+
function checklistConfigPatch(opts) {
|
|
2525
|
+
if (!opts) return void 0;
|
|
2526
|
+
const budget = {};
|
|
2527
|
+
if (opts.maxTokens && opts.maxTokens > 0) budget.max_tokens = opts.maxTokens;
|
|
2528
|
+
if (opts.maxRuntimeSec && opts.maxRuntimeSec > 0) budget.max_runtime_sec = opts.maxRuntimeSec;
|
|
2529
|
+
const hasBudget = Object.keys(budget).length > 0;
|
|
2530
|
+
if (!opts.maxIterations && !hasBudget) return void 0;
|
|
2531
|
+
return {
|
|
2532
|
+
...opts.maxIterations ? { maxIterations: opts.maxIterations } : {},
|
|
2533
|
+
...hasBudget ? { budget } : {}
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2524
2536
|
async function sessionChecklist(sessionIdPartial, action, args, machineId, opts) {
|
|
2525
2537
|
const { server, machine, fullId } = await connectAndResolveSession(sessionIdPartial, machineId);
|
|
2526
2538
|
try {
|
|
@@ -2556,7 +2568,8 @@ async function sessionChecklist(sessionIdPartial, action, args, machineId, opts)
|
|
|
2556
2568
|
console.error(`Checklist invalid: ${errs.join("; ")}`);
|
|
2557
2569
|
process.exit(1);
|
|
2558
2570
|
}
|
|
2559
|
-
|
|
2571
|
+
const ccfg = checklistConfigPatch(opts);
|
|
2572
|
+
await svc.updateConfig({ checklist: items, ...ccfg ? { checklistConfig: ccfg } : {} });
|
|
2560
2573
|
console.log(`Checklist updated on session ${fullId.slice(0, 8)}:`);
|
|
2561
2574
|
printChecklist(items);
|
|
2562
2575
|
if (items.some((it) => it.status !== "done")) console.log(" \u{1F501} loop active \u2014 iterating until all done.");
|
|
@@ -2704,4 +2717,4 @@ async function sessionInboxClear(sessionIdPartial, machineId, opts) {
|
|
|
2704
2717
|
}
|
|
2705
2718
|
}
|
|
2706
2719
|
|
|
2707
|
-
export { collectAssistantResponse, connectAndGetMachine, connectAndResolveSession, createWorktree, generateWorktreeName, machineExec, machineInfo, machineLs, machineShare, mutateChecklistItems, parseShareArg, queryCore, renderMessage, resolveItemIds, resolveSessionId, sendCore, sessionApprove, sessionArchive, sessionAttach, sessionChecklist, sessionDelete, sessionDeny, sessionEditMessage, sessionInboxClear, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxSend, sessionInfo, sessionList, sessionLoopCancel, sessionLoopStart, sessionLoopStatus, sessionMachines, sessionMessages, sessionQuery, sessionRefineLastReply, sessionResume, sessionSend, sessionShare, sessionSpawn, sessionUndoEdit, sessionWait, sessionWhoami, snapshotLatestSeq, validateSendOptions, wiseAskCli };
|
|
2720
|
+
export { checklistConfigPatch, collectAssistantResponse, connectAndGetMachine, connectAndResolveSession, createWorktree, generateWorktreeName, machineExec, machineInfo, machineLs, machineShare, mutateChecklistItems, parseShareArg, queryCore, renderMessage, resolveItemIds, resolveSessionId, sendCore, sessionApprove, sessionArchive, sessionAttach, sessionChecklist, sessionDelete, sessionDeny, sessionEditMessage, sessionInboxClear, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxSend, sessionInfo, sessionList, sessionLoopCancel, sessionLoopStart, sessionLoopStatus, sessionMachines, sessionMessages, sessionQuery, sessionRefineLastReply, sessionResume, sessionSend, sessionShare, sessionSpawn, sessionUndoEdit, sessionWait, sessionWhoami, snapshotLatestSeq, validateSendOptions, wiseAskCli };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os from 'os';
|
|
2
2
|
import fs__default from 'fs';
|
|
3
3
|
import { resolve, join, relative } from 'path';
|
|
4
|
-
import { p as parseFrontmatter, n as getSkillsServer, o as getSkillsWorkspaceName, q as getSkillsCollectionName, t as fetchWithTimeout, u as searchSkills, v as SKILLS_DIR, w as getSkillInfo, x as downloadSkillFile, y as listSkillFiles } from './run-
|
|
4
|
+
import { p as parseFrontmatter, n as getSkillsServer, o as getSkillsWorkspaceName, q as getSkillsCollectionName, t as fetchWithTimeout, u as searchSkills, v as SKILLS_DIR, w as getSkillInfo, x as downloadSkillFile, y as listSkillFiles } from './run-B9GwVTIm.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-
|
|
2
|
+
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-C7E38JVo.mjs';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
|
-
import { m as shortId } from './run-
|
|
4
|
+
import { m as shortId } from './run-B9GwVTIm.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-C7E38JVo.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-B9GwVTIm.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -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-
|
|
61
|
+
const { runFrpcTunnel } = await import('./frpc-BbQdGrl9.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-
|
|
71
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.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-
|
|
126
|
+
const { runFrpcTunnel } = await import('./frpc-BbQdGrl9.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-
|
|
135
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.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-
|
|
175
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.mjs');
|
|
176
176
|
const { server, machine } = await connectAndGetMachine();
|
|
177
177
|
try {
|
|
178
178
|
await machine.tunnelStop({ name });
|
|
@@ -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-
|
|
4
|
+
import { c as connectToHypha } from './run-B9GwVTIm.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-
|
|
7
|
+
import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-B9GwVTIm.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-B9GwVTIm.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-RBAbqGpi.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-
|
|
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-B9GwVTIm.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -2677,7 +2677,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
2677
2677
|
const tunnels = handlers.tunnels;
|
|
2678
2678
|
if (!tunnels) throw new Error("Tunnel management not available");
|
|
2679
2679
|
if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
|
|
2680
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
2680
|
+
const { FrpcTunnel } = await import('./frpc-BbQdGrl9.mjs');
|
|
2681
2681
|
const tunnel = new FrpcTunnel({
|
|
2682
2682
|
name: params.name,
|
|
2683
2683
|
ports: params.ports,
|
|
@@ -2975,7 +2975,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
2975
2975
|
}
|
|
2976
2976
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
2977
2977
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
2978
|
-
const { toolsForRole } = await import('./sideband-
|
|
2978
|
+
const { toolsForRole } = await import('./sideband-RBAbqGpi.mjs');
|
|
2979
2979
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
2980
2980
|
return fmt(r2);
|
|
2981
2981
|
}
|
|
@@ -3074,7 +3074,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3074
3074
|
if (r.error || !r.sender) return { error: r.error || "unauthorized" };
|
|
3075
3075
|
const callId = "call_" + Math.random().toString(16).slice(2, 12);
|
|
3076
3076
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
3077
|
-
const { queryCore } = await import('./commands-
|
|
3077
|
+
const { queryCore } = await import('./commands-C7E38JVo.mjs');
|
|
3078
3078
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3079
3079
|
let result;
|
|
3080
3080
|
try {
|
|
@@ -9781,7 +9781,16 @@ function renderCriteria(items) {
|
|
|
9781
9781
|
if (!items.length) return "";
|
|
9782
9782
|
const lines = items.map((it) => {
|
|
9783
9783
|
const tag = it.disposition === "delegated" ? " (delegated)" : "";
|
|
9784
|
-
|
|
9784
|
+
let how = "";
|
|
9785
|
+
if (it.disposition !== "delegated" && it.eval) {
|
|
9786
|
+
if (it.eval.type === "agent" && it.eval.prompt) how = `
|
|
9787
|
+
\u21B3 verify: ${it.eval.prompt}`;
|
|
9788
|
+
else if (it.eval.type === "oracle") how = `
|
|
9789
|
+
\u21B3 verify by command (must pass): ${it.eval.cmd}`;
|
|
9790
|
+
else if (it.eval.type === "manual") how = `
|
|
9791
|
+
\u21B3 verify: manual sign-off`;
|
|
9792
|
+
}
|
|
9793
|
+
return `- [${STATUS_TO_MARKER[it.status] ?? " "}] ${it.text}${tag}${how}`;
|
|
9785
9794
|
});
|
|
9786
9795
|
const { done, total } = summarize(items);
|
|
9787
9796
|
return `Success criteria \u2014 drive this checklist to all-done (${done}/${total}):
|
|
@@ -10749,6 +10758,15 @@ function resolveLoopInit() {
|
|
|
10749
10758
|
for (const c of candidates) if (existsSync$1(c)) return c;
|
|
10750
10759
|
return null;
|
|
10751
10760
|
}
|
|
10761
|
+
function parseLoopBudget(raw) {
|
|
10762
|
+
if (!raw || typeof raw !== "object") return void 0;
|
|
10763
|
+
const rt = Number(raw.max_runtime_sec);
|
|
10764
|
+
const tok = Number(raw.max_tokens);
|
|
10765
|
+
const out = {};
|
|
10766
|
+
if (Number.isFinite(rt) && rt > 0) out.max_runtime_sec = rt;
|
|
10767
|
+
if (Number.isFinite(tok) && tok > 0) out.max_tokens = tok;
|
|
10768
|
+
return out.max_runtime_sec || out.max_tokens ? out : void 0;
|
|
10769
|
+
}
|
|
10752
10770
|
function initLoop(directory, cfg) {
|
|
10753
10771
|
const initScript = resolveLoopInit();
|
|
10754
10772
|
if (!initScript) return false;
|
|
@@ -10757,6 +10775,8 @@ function initLoop(directory, cfg) {
|
|
|
10757
10775
|
if (cfg.oracle) args.push("--oracle", cfg.oracle);
|
|
10758
10776
|
if (typeof cfg.maxIterations === "number") args.push("--max", String(cfg.maxIterations));
|
|
10759
10777
|
args.push("--evaluator", cfg.evaluator === false ? "off" : "on");
|
|
10778
|
+
if (cfg.budget?.max_runtime_sec) args.push("--max-runtime", String(cfg.budget.max_runtime_sec));
|
|
10779
|
+
if (cfg.budget?.max_tokens) args.push("--max-tokens", String(cfg.budget.max_tokens));
|
|
10760
10780
|
if (cfg.model) args.push("--model", cfg.model);
|
|
10761
10781
|
if (cfg.sessionId) args.push("--session", cfg.sessionId);
|
|
10762
10782
|
const res = spawnSync(process.execPath, args, { encoding: "utf-8", timeout: 3e4 });
|
|
@@ -10938,6 +10958,7 @@ function createSvampConfigChecker(directory, sessionId, getMetadata, setMetadata
|
|
|
10938
10958
|
const oracle = typeof cfg.oracle === "string" && cfg.oracle.trim() ? cfg.oracle.trim() : void 0;
|
|
10939
10959
|
const evaluator = cfg.evaluator !== false;
|
|
10940
10960
|
const maxIterations = typeof cfg.max_iterations === "number" ? cfg.max_iterations : typeof cfg.max_rounds === "number" ? cfg.max_rounds : 20;
|
|
10961
|
+
const budget = parseLoopBudget(cfg.budget);
|
|
10941
10962
|
const ok = initLoop(directory, {
|
|
10942
10963
|
task: task || until,
|
|
10943
10964
|
// LOOP.md goal = the task, or the until-criteria when hot-plugging
|
|
@@ -10945,6 +10966,7 @@ function createSvampConfigChecker(directory, sessionId, getMetadata, setMetadata
|
|
|
10945
10966
|
oracle,
|
|
10946
10967
|
maxIterations,
|
|
10947
10968
|
evaluator,
|
|
10969
|
+
budget,
|
|
10948
10970
|
sessionId
|
|
10949
10971
|
});
|
|
10950
10972
|
if (ok) {
|
|
@@ -10984,25 +11006,41 @@ Or verify and finish \u2014 an independent Stop gate re-checks before you can st
|
|
|
10984
11006
|
if ("checklist" in patch) {
|
|
10985
11007
|
const raw = patch.checklist;
|
|
10986
11008
|
const items = Array.isArray(raw) ? raw : [];
|
|
10987
|
-
|
|
10988
|
-
|
|
11009
|
+
const ccfg = patch.checklistConfig && typeof patch.checklistConfig === "object" ? patch.checklistConfig : {};
|
|
11010
|
+
const generalPrompt = typeof ccfg.prompt === "string" ? ccfg.prompt.trim() : "";
|
|
11011
|
+
if (items.length || generalPrompt) {
|
|
11012
|
+
const errs = items.length ? validateChecklist(items) : [];
|
|
10989
11013
|
if (errs.length) {
|
|
10990
11014
|
sessionService.pushMessage({ type: "message", message: `Checklist rejected: ${errs.join("; ")}`, level: "error" }, "event");
|
|
10991
11015
|
} else {
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
11016
|
+
let checklistCriteria = "";
|
|
11017
|
+
let oracle;
|
|
11018
|
+
if (items.length) {
|
|
11019
|
+
writeChecklist(directory, sessionId, items);
|
|
11020
|
+
const compiled = compileChecklist(items);
|
|
11021
|
+
checklistCriteria = compiled.criteria;
|
|
11022
|
+
oracle = compiled.oracle;
|
|
11023
|
+
} else {
|
|
11024
|
+
clearChecklist(directory, sessionId);
|
|
11025
|
+
}
|
|
11026
|
+
const task = generalPrompt || checklistCriteria;
|
|
11027
|
+
const criteria = [generalPrompt, checklistCriteria].filter(Boolean).join("\n\n") || task;
|
|
11028
|
+
const maxIterations = typeof ccfg.maxIterations === "number" ? ccfg.maxIterations : typeof ccfg.max_iterations === "number" ? ccfg.max_iterations : 20;
|
|
11029
|
+
const evaluator = ccfg.evaluator !== false;
|
|
11030
|
+
const budget = parseLoopBudget(ccfg.budget);
|
|
11031
|
+
const ok = initLoop(directory, { task, criteria, oracle, maxIterations, evaluator, budget, sessionId });
|
|
10995
11032
|
const s = summarize(items);
|
|
10996
11033
|
if (ok) {
|
|
10997
11034
|
const idle = getMetadata().lifecycleState === "idle";
|
|
10998
11035
|
if (idle) {
|
|
10999
11036
|
const q = getMetadata().messageQueue || [];
|
|
11000
|
-
const nudge = `Your goal checklist was updated (${s.done}/${s.total} done). Work the open items in order; an independent Stop gate re-checks the criteria before you can stop.`;
|
|
11001
|
-
setMetadata((m) => ({ ...m, messageQueue: [...q, { id: randomUUID$1(), text: nudge, displayText: `\u{1F4CB} Checklist updated`, createdAt: Date.now() }] }));
|
|
11037
|
+
const nudge = items.length ? `Your goal checklist was updated (${s.done}/${s.total} done). Work the open items in order; an independent Stop gate re-checks the criteria before you can stop.` : `Your loop goal was set. Work toward it; an independent Stop gate re-checks the criteria before you can stop.`;
|
|
11038
|
+
setMetadata((m) => ({ ...m, messageQueue: [...q, { id: randomUUID$1(), text: nudge, displayText: items.length ? `\u{1F4CB} Checklist updated` : `\u{1F501} Loop goal set`, createdAt: Date.now() }] }));
|
|
11002
11039
|
onLoopActivated?.();
|
|
11003
11040
|
}
|
|
11004
|
-
|
|
11005
|
-
|
|
11041
|
+
const msg = items.length ? `\u{1F4CB} Checklist set \u2014 ${s.total} item${s.total === 1 ? "" : "s"} (${s.delegated} delegated), ${s.done} done.` : `\u{1F501} Loop goal set.`;
|
|
11042
|
+
sessionService.pushMessage({ type: "message", message: msg }, "event");
|
|
11043
|
+
logger.log(`[svampConfig] Checklist set (${s.total} items, ${s.delegated} delegated, prompt=${generalPrompt ? "yes" : "no"})`);
|
|
11006
11044
|
}
|
|
11007
11045
|
}
|
|
11008
11046
|
} else {
|
|
@@ -11010,7 +11048,7 @@ Or verify and finish \u2014 an independent Stop gate re-checks before you can st
|
|
|
11010
11048
|
deactivateLoop(directory, sessionId);
|
|
11011
11049
|
sessionService.pushMessage({ type: "message", message: "Checklist cleared." }, "event");
|
|
11012
11050
|
}
|
|
11013
|
-
const { checklist: _c, ...restPatch } = patch;
|
|
11051
|
+
const { checklist: _c, checklistConfig: _cc, ...restPatch } = patch;
|
|
11014
11052
|
patch = restPatch;
|
|
11015
11053
|
}
|
|
11016
11054
|
if (Object.keys(patch).length > 0) {
|
|
@@ -11441,7 +11479,7 @@ async function startDaemon(options) {
|
|
|
11441
11479
|
saveExposedTunnels(list);
|
|
11442
11480
|
}
|
|
11443
11481
|
async function createExposedTunnel(spec) {
|
|
11444
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
11482
|
+
const { FrpcTunnel } = await import('./frpc-BbQdGrl9.mjs');
|
|
11445
11483
|
const tunnel = new FrpcTunnel({
|
|
11446
11484
|
name: spec.name,
|
|
11447
11485
|
ports: spec.ports,
|
|
@@ -11461,7 +11499,7 @@ async function startDaemon(options) {
|
|
|
11461
11499
|
return tunnel;
|
|
11462
11500
|
}
|
|
11463
11501
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
11464
|
-
const { ServeManager } = await import('./serveManager-
|
|
11502
|
+
const { ServeManager } = await import('./serveManager-Dhpt4XA4.mjs');
|
|
11465
11503
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
11466
11504
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
11467
11505
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { _ as composeSessionId, $ as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a0 as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { _ as composeSessionId, $ as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a0 as generateHookSettings } from './run-B9GwVTIm.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';
|
|
@@ -54,7 +54,7 @@ async function handleServeCommand() {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
async function serveAdd(args, machineId) {
|
|
57
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
57
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.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-
|
|
96
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.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-
|
|
185
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.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-
|
|
205
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.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-
|
|
238
|
+
const { connectAndGetMachine } = await import('./commands-C7E38JVo.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-
|
|
7
|
+
import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-B9GwVTIm.mjs';
|
|
8
8
|
import 'os';
|
|
9
9
|
import 'fs/promises';
|
|
10
10
|
import 'url';
|
|
@@ -726,7 +726,7 @@ class ServeManager {
|
|
|
726
726
|
const mount = this.mounts.get(mountName);
|
|
727
727
|
const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, `static-${subdomainSafe}-${mount.linkToken}`]]) : void 0;
|
|
728
728
|
try {
|
|
729
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
729
|
+
const { FrpcTunnel } = await import('./frpc-BbQdGrl9.mjs');
|
|
730
730
|
let tunnel;
|
|
731
731
|
tunnel = new FrpcTunnel({
|
|
732
732
|
name: tunnelName,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-
|
|
1
|
+
import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-B9GwVTIm.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|