svamp-cli 0.2.135 → 0.2.136
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-DUGnqRQj.mjs → agentCommands-9ejFQKI5.mjs} +4 -4
- package/dist/{auth-BWxPTz8i.mjs → auth-BkGxi5wL.mjs} +1 -1
- package/dist/cli.mjs +85 -55
- package/dist/{commands-g87ont38.mjs → commands-BUGKTwfm.mjs} +2 -2
- package/dist/{commands-C9_gRWF1.mjs → commands-CUfOQ8fR.mjs} +1 -1
- package/dist/{commands-CqjHsfm4.mjs → commands-D-b6wQTU.mjs} +2 -2
- package/dist/{commands-372fH_Ye.mjs → commands-DB6ImfRk.mjs} +5 -5
- package/dist/{commands-K2-vteB-.mjs → commands-DDuOUdHk.mjs} +106 -2
- package/dist/{commands-Du2aT4iG.mjs → commands-DuCKSlM9.mjs} +2 -2
- package/dist/{fleet-BxQs8C8X.mjs → fleet-BPR4JVZG.mjs} +1 -1
- package/dist/{frpc-iVFYzz91.mjs → frpc-CsvBoxeE.mjs} +1 -1
- package/dist/{headlessCli-BZdzfGyK.mjs → headlessCli-D6T-ZCzn.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-B_ObzpnN.mjs → package-C3Bj2YhI.mjs} +2 -2
- package/dist/{run-gpXzhDA6.mjs → run-BussQNMw.mjs} +20 -6
- package/dist/{run-EBzkqp4Y.mjs → run-CASP0C3x.mjs} +1 -1
- package/dist/{serveCommands-C6U7M8nI.mjs → serveCommands-DqYG57P9.mjs} +5 -5
- package/dist/{serveManager-LSlxfyoD.mjs → serveManager-Bov4MZdR.mjs} +2 -2
- package/dist/{sideband-v4GqYhGB.mjs → sideband-D-o-HdAM.mjs} +1 -1
- package/package.json +2 -2
|
@@ -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-BussQNMw.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-BussQNMw.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-DDuOUdHk.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-DDuOUdHk.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-BussQNMw.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-BussQNMw.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-BussQNMw.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-DB6ImfRk.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-DqYG57P9.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-D-b6wQTU.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-BUGKTwfm.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-DuCKSlM9.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-C3Bj2YhI.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-CASP0C3x.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-BussQNMw.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-BussQNMw.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-BussQNMw.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-BussQNMw.mjs').then(function (n) { return n.a3; });
|
|
487
|
+
const { GeminiTransport } = await import('./run-BussQNMw.mjs').then(function (n) { return n.a6; });
|
|
488
|
+
const { DefaultTransport } = await import('./run-BussQNMw.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, 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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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")
|
|
@@ -870,13 +870,43 @@ async function handleSessionCommand() {
|
|
|
870
870
|
process.exit(1);
|
|
871
871
|
}
|
|
872
872
|
await sessionLoopStatus(sessionArgs[1], targetMachineId);
|
|
873
|
+
} else if (sessionSubcommand === "checklist") {
|
|
874
|
+
const id = sessionArgs[1];
|
|
875
|
+
if (!id) {
|
|
876
|
+
console.error('Usage: svamp session checklist <session-id> [get|set|add|rm|done|clear] [args] [--oracle "cmd"]');
|
|
877
|
+
console.error(" get (default) show the checklist");
|
|
878
|
+
console.error(' set "<a>" "<b>" \u2026 replace the list with these inline items');
|
|
879
|
+
console.error(' add "<text>" append one item (--oracle "cmd" attaches a gate)');
|
|
880
|
+
console.error(" done <id|#> \u2026 mark item(s) done");
|
|
881
|
+
console.error(" rm <id|#> \u2026 remove item(s)");
|
|
882
|
+
console.error(" clear clear the checklist and stop the loop");
|
|
883
|
+
process.exit(1);
|
|
884
|
+
}
|
|
885
|
+
const CHECKLIST_ACTIONS = ["get", "set", "add", "rm", "done", "clear"];
|
|
886
|
+
let action = "get";
|
|
887
|
+
let restStart = 2;
|
|
888
|
+
if (sessionArgs[2] && CHECKLIST_ACTIONS.includes(sessionArgs[2])) {
|
|
889
|
+
action = sessionArgs[2];
|
|
890
|
+
restStart = 3;
|
|
891
|
+
}
|
|
892
|
+
const valueFlags = /* @__PURE__ */ new Set(["--oracle", "-m", "--machine"]);
|
|
893
|
+
const rest = [];
|
|
894
|
+
for (let i = restStart; i < sessionArgs.length; i++) {
|
|
895
|
+
const a = sessionArgs[i];
|
|
896
|
+
if (a.startsWith("-")) {
|
|
897
|
+
if (valueFlags.has(a)) i++;
|
|
898
|
+
continue;
|
|
899
|
+
}
|
|
900
|
+
rest.push(a);
|
|
901
|
+
}
|
|
902
|
+
await sessionChecklist(id, action, rest, targetMachineId, { oracle: parseFlagStr("--oracle") });
|
|
873
903
|
} else if (sessionSubcommand === "set-title") {
|
|
874
904
|
const title = sessionArgs[1];
|
|
875
905
|
if (!title) {
|
|
876
906
|
console.error("Usage: svamp session set-title <title>");
|
|
877
907
|
process.exit(1);
|
|
878
908
|
}
|
|
879
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
909
|
+
const { sessionSetTitle } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
880
910
|
await sessionSetTitle(title);
|
|
881
911
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
882
912
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -884,7 +914,7 @@ async function handleSessionCommand() {
|
|
|
884
914
|
console.error("Usage: svamp session set-project-description <text>");
|
|
885
915
|
process.exit(1);
|
|
886
916
|
}
|
|
887
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
917
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
888
918
|
await sessionSetProjectDescription(desc);
|
|
889
919
|
} else if (sessionSubcommand === "set-link") {
|
|
890
920
|
const url = sessionArgs[1];
|
|
@@ -893,7 +923,7 @@ async function handleSessionCommand() {
|
|
|
893
923
|
process.exit(1);
|
|
894
924
|
}
|
|
895
925
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
896
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
926
|
+
const { sessionSetLink } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
897
927
|
await sessionSetLink(url, label);
|
|
898
928
|
} else if (sessionSubcommand === "notify") {
|
|
899
929
|
const message = sessionArgs[1];
|
|
@@ -902,7 +932,7 @@ async function handleSessionCommand() {
|
|
|
902
932
|
process.exit(1);
|
|
903
933
|
}
|
|
904
934
|
const level = parseFlagStr("--level") || "info";
|
|
905
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
935
|
+
const { sessionNotify } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
906
936
|
await sessionNotify(message, level);
|
|
907
937
|
} else if (sessionSubcommand === "broadcast") {
|
|
908
938
|
const action = sessionArgs[1];
|
|
@@ -910,7 +940,7 @@ async function handleSessionCommand() {
|
|
|
910
940
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
911
941
|
process.exit(1);
|
|
912
942
|
}
|
|
913
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
943
|
+
const { sessionBroadcast } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
914
944
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
915
945
|
} else if (sessionSubcommand === "inbox") {
|
|
916
946
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -921,7 +951,7 @@ async function handleSessionCommand() {
|
|
|
921
951
|
process.exit(1);
|
|
922
952
|
}
|
|
923
953
|
if (agentSessionId) {
|
|
924
|
-
const { inboxSend } = await import('./agentCommands-
|
|
954
|
+
const { inboxSend } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
925
955
|
await inboxSend(sessionArgs[2], {
|
|
926
956
|
body: sessionArgs[3],
|
|
927
957
|
subject: parseFlagStr("--subject"),
|
|
@@ -936,7 +966,7 @@ async function handleSessionCommand() {
|
|
|
936
966
|
}
|
|
937
967
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
938
968
|
if (agentSessionId && !sessionArgs[2]) {
|
|
939
|
-
const { inboxList } = await import('./agentCommands-
|
|
969
|
+
const { inboxList } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
940
970
|
await inboxList({
|
|
941
971
|
unread: hasFlag("--unread"),
|
|
942
972
|
limit: parseFlagInt("--limit"),
|
|
@@ -958,7 +988,7 @@ async function handleSessionCommand() {
|
|
|
958
988
|
process.exit(1);
|
|
959
989
|
}
|
|
960
990
|
if (agentSessionId && !sessionArgs[3]) {
|
|
961
|
-
const { inboxList } = await import('./agentCommands-
|
|
991
|
+
const { inboxList } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
962
992
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
963
993
|
} else if (sessionArgs[3]) {
|
|
964
994
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -968,7 +998,7 @@ async function handleSessionCommand() {
|
|
|
968
998
|
}
|
|
969
999
|
} else if (inboxSubcmd === "reply") {
|
|
970
1000
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
971
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1001
|
+
const { inboxReply } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
972
1002
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
973
1003
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
974
1004
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1004,7 +1034,7 @@ async function handleMachineCommand() {
|
|
|
1004
1034
|
return;
|
|
1005
1035
|
}
|
|
1006
1036
|
if (machineSubcommand === "share") {
|
|
1007
|
-
const { machineShare } = await import('./commands-
|
|
1037
|
+
const { machineShare } = await import('./commands-DDuOUdHk.mjs');
|
|
1008
1038
|
let machineId;
|
|
1009
1039
|
const shareArgs = [];
|
|
1010
1040
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1055,14 +1085,14 @@ async function handleMachineCommand() {
|
|
|
1055
1085
|
process.exit(1);
|
|
1056
1086
|
}
|
|
1057
1087
|
if (all) {
|
|
1058
|
-
const { fleetExec } = await import('./fleet-
|
|
1088
|
+
const { fleetExec } = await import('./fleet-BPR4JVZG.mjs');
|
|
1059
1089
|
await fleetExec(command, { cwd });
|
|
1060
1090
|
} else {
|
|
1061
|
-
const { machineExec } = await import('./commands-
|
|
1091
|
+
const { machineExec } = await import('./commands-DDuOUdHk.mjs');
|
|
1062
1092
|
await machineExec(machineId, command, cwd);
|
|
1063
1093
|
}
|
|
1064
1094
|
} else if (machineSubcommand === "info") {
|
|
1065
|
-
const { machineInfo } = await import('./commands-
|
|
1095
|
+
const { machineInfo } = await import('./commands-DDuOUdHk.mjs');
|
|
1066
1096
|
let machineId;
|
|
1067
1097
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1068
1098
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1082,10 +1112,10 @@ async function handleMachineCommand() {
|
|
|
1082
1112
|
level = machineArgs[++i];
|
|
1083
1113
|
}
|
|
1084
1114
|
}
|
|
1085
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1115
|
+
const { machineNotify } = await import('./agentCommands-9ejFQKI5.mjs');
|
|
1086
1116
|
await machineNotify(message, level);
|
|
1087
1117
|
} else if (machineSubcommand === "ls") {
|
|
1088
|
-
const { machineLs } = await import('./commands-
|
|
1118
|
+
const { machineLs } = await import('./commands-DDuOUdHk.mjs');
|
|
1089
1119
|
let machineId;
|
|
1090
1120
|
let showHidden = false;
|
|
1091
1121
|
let path;
|
|
@@ -1141,20 +1171,20 @@ Examples:
|
|
|
1141
1171
|
};
|
|
1142
1172
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1143
1173
|
if (sub === "status") {
|
|
1144
|
-
const { fleetStatus } = await import('./fleet-
|
|
1174
|
+
const { fleetStatus } = await import('./fleet-BPR4JVZG.mjs');
|
|
1145
1175
|
await fleetStatus();
|
|
1146
1176
|
} else if (sub === "upgrade-claude") {
|
|
1147
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1177
|
+
const { fleetUpgradeClaude } = await import('./fleet-BPR4JVZG.mjs');
|
|
1148
1178
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1149
1179
|
} else if (sub === "upgrade-svamp") {
|
|
1150
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1180
|
+
const { fleetUpgradeSvamp } = await import('./fleet-BPR4JVZG.mjs');
|
|
1151
1181
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1152
1182
|
} else if (sub === "daemon-restart") {
|
|
1153
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1183
|
+
const { fleetDaemonRestart } = await import('./fleet-BPR4JVZG.mjs');
|
|
1154
1184
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1155
1185
|
} else if (sub === "push-skill") {
|
|
1156
1186
|
const name = fleetArgs[1];
|
|
1157
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1187
|
+
const { fleetPushSkill } = await import('./fleet-BPR4JVZG.mjs');
|
|
1158
1188
|
await fleetPushSkill(name);
|
|
1159
1189
|
} else {
|
|
1160
1190
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1170,7 +1200,7 @@ async function handleSkillsCommand() {
|
|
|
1170
1200
|
await printSkillsHelp();
|
|
1171
1201
|
return;
|
|
1172
1202
|
}
|
|
1173
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1203
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-CUfOQ8fR.mjs');
|
|
1174
1204
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1175
1205
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1176
1206
|
if (!query) {
|
|
@@ -1217,7 +1247,7 @@ async function loginToHypha() {
|
|
|
1217
1247
|
process.exit(1);
|
|
1218
1248
|
}
|
|
1219
1249
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1220
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1250
|
+
const { loadInstanceConfig } = await import('./run-BussQNMw.mjs').then(function (n) { return n.a8; });
|
|
1221
1251
|
let cfg = null;
|
|
1222
1252
|
try {
|
|
1223
1253
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1328,7 +1358,7 @@ async function logoutFromHypha() {
|
|
|
1328
1358
|
} catch {
|
|
1329
1359
|
}
|
|
1330
1360
|
try {
|
|
1331
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1361
|
+
const { clearInstanceConfigCache } = await import('./run-BussQNMw.mjs').then(function (n) { return n.a8; });
|
|
1332
1362
|
clearInstanceConfigCache();
|
|
1333
1363
|
} catch {
|
|
1334
1364
|
}
|
|
@@ -1666,7 +1696,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1666
1696
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1667
1697
|
);
|
|
1668
1698
|
}
|
|
1669
|
-
const mod = await import('./run-
|
|
1699
|
+
const mod = await import('./run-BussQNMw.mjs').then(function (n) { return n.a7; });
|
|
1670
1700
|
if (hasHypha) {
|
|
1671
1701
|
let url;
|
|
1672
1702
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1720,7 +1750,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1720
1750
|
}
|
|
1721
1751
|
}
|
|
1722
1752
|
if (collected.length === 0) return;
|
|
1723
|
-
const { updateEnvFile } = await import('./run-
|
|
1753
|
+
const { updateEnvFile } = await import('./run-BussQNMw.mjs').then(function (n) { return n.a7; });
|
|
1724
1754
|
const seen = /* @__PURE__ */ new Set();
|
|
1725
1755
|
const deduped = collected.filter((e) => {
|
|
1726
1756
|
const k = e.toLowerCase();
|
|
@@ -1753,7 +1783,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1753
1783
|
}
|
|
1754
1784
|
});
|
|
1755
1785
|
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(" ");
|
|
1756
|
-
const { wiseAskCli } = await import('./commands-
|
|
1786
|
+
const { wiseAskCli } = await import('./commands-DDuOUdHk.mjs');
|
|
1757
1787
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1758
1788
|
return;
|
|
1759
1789
|
}
|
|
@@ -1765,7 +1795,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1765
1795
|
}
|
|
1766
1796
|
return void 0;
|
|
1767
1797
|
};
|
|
1768
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1798
|
+
const { runWiseVoiceCli } = await import('./headlessCli-D6T-ZCzn.mjs');
|
|
1769
1799
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1770
1800
|
return;
|
|
1771
1801
|
}
|
|
@@ -1807,7 +1837,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1807
1837
|
return;
|
|
1808
1838
|
}
|
|
1809
1839
|
const authArgs = rest.slice(1);
|
|
1810
|
-
const mod = await import('./auth-
|
|
1840
|
+
const mod = await import('./auth-BkGxi5wL.mjs');
|
|
1811
1841
|
let action;
|
|
1812
1842
|
try {
|
|
1813
1843
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1817,7 +1847,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1817
1847
|
return;
|
|
1818
1848
|
}
|
|
1819
1849
|
if (action) {
|
|
1820
|
-
const { updateEnvFile } = await import('./run-
|
|
1850
|
+
const { updateEnvFile } = await import('./run-BussQNMw.mjs').then(function (n) { return n.a7; });
|
|
1821
1851
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1822
1852
|
updateEnvFile(updates);
|
|
1823
1853
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1831,7 +1861,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1831
1861
|
}
|
|
1832
1862
|
async function handleDaemonAuthCommand(argv) {
|
|
1833
1863
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1834
|
-
const mod = await import('./run-
|
|
1864
|
+
const mod = await import('./run-BussQNMw.mjs').then(function (n) { return n.a7; });
|
|
1835
1865
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1836
1866
|
console.log(`
|
|
1837
1867
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2144,7 +2174,7 @@ Examples:
|
|
|
2144
2174
|
async function printSkillsHelp() {
|
|
2145
2175
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2146
2176
|
try {
|
|
2147
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2177
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BussQNMw.mjs').then(function (n) { return n.a9; });
|
|
2148
2178
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2149
2179
|
} catch {
|
|
2150
2180
|
}
|
|
@@ -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-BussQNMw.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-DDuOUdHk.mjs');
|
|
108
108
|
const { server, machine } = await connectAndGetMachine();
|
|
109
109
|
try {
|
|
110
110
|
await machine.sessionRPC(reportTo, "sendInboxMessage", { message });
|
|
@@ -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-BussQNMw.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -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-DDuOUdHk.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-BussQNMw.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-CsvBoxeE.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-DDuOUdHk.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-CsvBoxeE.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-DDuOUdHk.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-DDuOUdHk.mjs');
|
|
176
176
|
const { server, machine } = await connectAndGetMachine();
|
|
177
177
|
try {
|
|
178
178
|
await machine.tunnelStop({ name });
|
|
@@ -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 computeOutboundHop, m as shortId,
|
|
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-BussQNMw.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -2460,6 +2460,110 @@ async function sessionLoopStatus(sessionIdPartial, machineId) {
|
|
|
2460
2460
|
await server.disconnect();
|
|
2461
2461
|
}
|
|
2462
2462
|
}
|
|
2463
|
+
const CHECKLIST_MARK = {
|
|
2464
|
+
todo: " ",
|
|
2465
|
+
active: "~",
|
|
2466
|
+
verifying: "?",
|
|
2467
|
+
awaiting_review: "\u2026",
|
|
2468
|
+
rework: "\u21BB",
|
|
2469
|
+
blocked: "\u2717",
|
|
2470
|
+
done: "x"
|
|
2471
|
+
};
|
|
2472
|
+
function printChecklist(items) {
|
|
2473
|
+
if (!items.length) {
|
|
2474
|
+
console.log(" (empty checklist)");
|
|
2475
|
+
return;
|
|
2476
|
+
}
|
|
2477
|
+
items.forEach((it, i) => {
|
|
2478
|
+
const crew = it.disposition === "delegated" ? ` [crew${it.child?.sessionId ? ` ${it.child.sessionId.slice(0, 8)}` : ""}]` : "";
|
|
2479
|
+
const oracle = it.eval?.type === "oracle" ? ` (oracle: ${it.eval.cmd})` : "";
|
|
2480
|
+
console.log(` ${i + 1}. [${CHECKLIST_MARK[it.status] ?? " "}] ${it.text}${crew}${oracle}`);
|
|
2481
|
+
});
|
|
2482
|
+
const s = summarize(items);
|
|
2483
|
+
console.log(` \u2014 ${s.done}/${s.total} done${s.delegated ? `, ${s.delegated} delegated` : ""}${s.allDone ? " \u2713" : ""}`);
|
|
2484
|
+
}
|
|
2485
|
+
async function readChecklistItems(svc, fullId) {
|
|
2486
|
+
try {
|
|
2487
|
+
const raw = await svc.readFile(`.svamp/${fullId}/loop/checklist.json`);
|
|
2488
|
+
const content = typeof raw === "string" ? raw : raw?.content;
|
|
2489
|
+
if (content) {
|
|
2490
|
+
const parsed = JSON.parse(Buffer.from(content, "base64").toString("utf-8"));
|
|
2491
|
+
if (Array.isArray(parsed)) return parsed;
|
|
2492
|
+
if (Array.isArray(parsed?.items)) return parsed.items;
|
|
2493
|
+
}
|
|
2494
|
+
} catch {
|
|
2495
|
+
}
|
|
2496
|
+
return [];
|
|
2497
|
+
}
|
|
2498
|
+
function resolveItemIds(items, tokens) {
|
|
2499
|
+
const ids = [];
|
|
2500
|
+
for (const tok of tokens) {
|
|
2501
|
+
const byId = items.find((it) => it.id === tok);
|
|
2502
|
+
if (byId) {
|
|
2503
|
+
ids.push(byId.id);
|
|
2504
|
+
continue;
|
|
2505
|
+
}
|
|
2506
|
+
const idx = parseInt(tok, 10);
|
|
2507
|
+
if (!isNaN(idx) && idx >= 1 && idx <= items.length) ids.push(items[idx - 1].id);
|
|
2508
|
+
}
|
|
2509
|
+
return ids;
|
|
2510
|
+
}
|
|
2511
|
+
function mutateChecklistItems(items, action, args, opts, now = Date.now()) {
|
|
2512
|
+
const evalOpt = opts?.oracle ? { eval: { type: "oracle", cmd: opts.oracle } } : {};
|
|
2513
|
+
let next = items;
|
|
2514
|
+
if (action === "set") {
|
|
2515
|
+
next = args.map((text, i) => newItem(text, evalOpt, i, now));
|
|
2516
|
+
} else if (action === "add") {
|
|
2517
|
+
next = [...items, newItem(args.join(" ").trim(), evalOpt, items.length, now)];
|
|
2518
|
+
} else if (action === "done" || action === "rm") {
|
|
2519
|
+
const targetIds = new Set(resolveItemIds(items, args));
|
|
2520
|
+
next = action === "rm" ? items.filter((it) => !targetIds.has(it.id)) : items.map((it) => targetIds.has(it.id) ? { ...it, status: "done", doneAt: now } : it);
|
|
2521
|
+
}
|
|
2522
|
+
return next.map((it, i) => ({ ...it, order: i }));
|
|
2523
|
+
}
|
|
2524
|
+
async function sessionChecklist(sessionIdPartial, action, args, machineId, opts) {
|
|
2525
|
+
const { server, machine, fullId } = await connectAndResolveSession(sessionIdPartial, machineId);
|
|
2526
|
+
try {
|
|
2527
|
+
const svc = getSessionProxy(machine, fullId);
|
|
2528
|
+
if (action === "get") {
|
|
2529
|
+
console.log(`Checklist on session ${fullId.slice(0, 8)}:`);
|
|
2530
|
+
printChecklist(await readChecklistItems(svc, fullId));
|
|
2531
|
+
return;
|
|
2532
|
+
}
|
|
2533
|
+
if (action === "clear") {
|
|
2534
|
+
await svc.updateConfig({ checklist: [] });
|
|
2535
|
+
console.log(`Checklist cleared on session ${fullId.slice(0, 8)} \u2014 loop stopped.`);
|
|
2536
|
+
return;
|
|
2537
|
+
}
|
|
2538
|
+
const current = await readChecklistItems(svc, fullId);
|
|
2539
|
+
if ((action === "set" || action === "add") && !args.join(" ").trim()) {
|
|
2540
|
+
console.error(`Usage: svamp session checklist <id> ${action} "<text>" [--oracle "cmd"]`);
|
|
2541
|
+
process.exit(1);
|
|
2542
|
+
}
|
|
2543
|
+
if (action === "done" || action === "rm") {
|
|
2544
|
+
if (!args.length) {
|
|
2545
|
+
console.error(`Usage: svamp session checklist <id> ${action} <id|#> [<id|#> \u2026]`);
|
|
2546
|
+
process.exit(1);
|
|
2547
|
+
}
|
|
2548
|
+
if (!resolveItemIds(current, args).length) {
|
|
2549
|
+
console.error("No matching items.");
|
|
2550
|
+
process.exit(1);
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
const items = mutateChecklistItems(current, action, args, { oracle: opts?.oracle });
|
|
2554
|
+
const errs = validateChecklist(items);
|
|
2555
|
+
if (errs.length) {
|
|
2556
|
+
console.error(`Checklist invalid: ${errs.join("; ")}`);
|
|
2557
|
+
process.exit(1);
|
|
2558
|
+
}
|
|
2559
|
+
await svc.updateConfig({ checklist: items });
|
|
2560
|
+
console.log(`Checklist updated on session ${fullId.slice(0, 8)}:`);
|
|
2561
|
+
printChecklist(items);
|
|
2562
|
+
if (items.some((it) => it.status !== "done")) console.log(" \u{1F501} loop active \u2014 iterating until all done.");
|
|
2563
|
+
} finally {
|
|
2564
|
+
await server.disconnect();
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2463
2567
|
async function sessionInboxSend(sessionIdPartial, body, machineId, opts) {
|
|
2464
2568
|
const { server, machine, fullId } = await connectAndResolveSession(sessionIdPartial, machineId);
|
|
2465
2569
|
try {
|
|
@@ -2600,4 +2704,4 @@ async function sessionInboxClear(sessionIdPartial, machineId, opts) {
|
|
|
2600
2704
|
}
|
|
2601
2705
|
}
|
|
2602
2706
|
|
|
2603
|
-
export { collectAssistantResponse, connectAndGetMachine, connectAndResolveSession, createWorktree, generateWorktreeName, machineExec, machineInfo, machineLs, machineShare, parseShareArg, queryCore, renderMessage, resolveSessionId, sendCore, sessionApprove, sessionArchive, sessionAttach, 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 };
|
|
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 };
|
|
@@ -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-DDuOUdHk.mjs';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
|
-
import { m as shortId } from './run-
|
|
4
|
+
import { m as shortId } from './run-BussQNMw.mjs';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
@@ -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-BussQNMw.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-BussQNMw.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as resolveModel,
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-BussQNMw.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-D-o-HdAM.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-BussQNMw.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "svamp-cli";
|
|
2
|
-
var version = "0.2.
|
|
2
|
+
var version = "0.2.136";
|
|
3
3
|
var description = "Svamp CLI — AI workspace daemon on Hypha Cloud";
|
|
4
4
|
var author = "Amun AI AB";
|
|
5
5
|
var license = "SEE LICENSE IN LICENSE";
|
|
@@ -19,7 +19,7 @@ var exports$1 = {
|
|
|
19
19
|
var scripts = {
|
|
20
20
|
build: "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
|
|
21
21
|
typecheck: "tsc --noEmit",
|
|
22
|
-
test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-checklist.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs",
|
|
22
|
+
test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-checklist.mjs && npx tsx test/test-checklist-cli.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs",
|
|
23
23
|
"test:hypha": "node --no-warnings test/test-hypha-service.mjs",
|
|
24
24
|
dev: "tsx src/cli.ts",
|
|
25
25
|
"dev:daemon": "tsx src/cli.ts daemon start-sync",
|
|
@@ -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-CsvBoxeE.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-D-o-HdAM.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-DDuOUdHk.mjs');
|
|
3078
3078
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3079
3079
|
let result;
|
|
3080
3080
|
try {
|
|
@@ -9838,6 +9838,17 @@ function summarize(items) {
|
|
|
9838
9838
|
allDone: items.length > 0 && done === items.length
|
|
9839
9839
|
};
|
|
9840
9840
|
}
|
|
9841
|
+
function newItem(text, opts = {}, order = 0, now = Date.now()) {
|
|
9842
|
+
return {
|
|
9843
|
+
id: shortId(),
|
|
9844
|
+
text: text.trim(),
|
|
9845
|
+
disposition: opts.disposition ?? "inline",
|
|
9846
|
+
...opts.eval ? { eval: opts.eval } : {},
|
|
9847
|
+
status: "todo",
|
|
9848
|
+
order,
|
|
9849
|
+
createdAt: now
|
|
9850
|
+
};
|
|
9851
|
+
}
|
|
9841
9852
|
function checklistPath(projectRoot, sessionId) {
|
|
9842
9853
|
return join(projectRoot, ".svamp", sessionId, "loop", "checklist.json");
|
|
9843
9854
|
}
|
|
@@ -11430,7 +11441,7 @@ async function startDaemon(options) {
|
|
|
11430
11441
|
saveExposedTunnels(list);
|
|
11431
11442
|
}
|
|
11432
11443
|
async function createExposedTunnel(spec) {
|
|
11433
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
11444
|
+
const { FrpcTunnel } = await import('./frpc-CsvBoxeE.mjs');
|
|
11434
11445
|
const tunnel = new FrpcTunnel({
|
|
11435
11446
|
name: spec.name,
|
|
11436
11447
|
ports: spec.ports,
|
|
@@ -11450,7 +11461,7 @@ async function startDaemon(options) {
|
|
|
11450
11461
|
return tunnel;
|
|
11451
11462
|
}
|
|
11452
11463
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
11453
|
-
const { ServeManager } = await import('./serveManager-
|
|
11464
|
+
const { ServeManager } = await import('./serveManager-Bov4MZdR.mjs');
|
|
11454
11465
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
11455
11466
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
11456
11467
|
});
|
|
@@ -12112,6 +12123,9 @@ ${parts.join("\n")}`);
|
|
|
12112
12123
|
"--permission-mode",
|
|
12113
12124
|
permissionMode
|
|
12114
12125
|
];
|
|
12126
|
+
const disallowedToolSet = new Set(effectiveMeta.disallowed_tools || []);
|
|
12127
|
+
if (sessionMetadata.crew?.role === "feature") disallowedToolSet.add("AskUserQuestion");
|
|
12128
|
+
if (disallowedToolSet.size) args.push("--disallowedTools", ...disallowedToolSet);
|
|
12115
12129
|
if (model) args.push("--model", model);
|
|
12116
12130
|
if (appendSystemPrompt) args.push("--append-system-prompt", appendSystemPrompt);
|
|
12117
12131
|
if (claudeResumeId) args.push("--resume", claudeResumeId);
|
|
@@ -15051,4 +15065,4 @@ var run = /*#__PURE__*/Object.freeze({
|
|
|
15051
15065
|
writeStopMarker: writeStopMarker
|
|
15052
15066
|
});
|
|
15053
15067
|
|
|
15054
|
-
export {
|
|
15068
|
+
export { generateFriendlyName as $, buildMachineInstructions as A, machineToolsForRole as B, buildMachineTools as C, resolveModel as D, readChecklist as E, compileChecklist as F, RoutineStore as G, RoutineRunner as H, formatHandle as I, normalizeAllowedUser as J, loadSecurityContextConfig as K, resolveSecurityContext as L, buildSecurityContextFromFlags as M, mergeSecurityContexts as N, buildSessionShareUrl as O, validateChecklist as P, computeOutboundHop as Q, READ_ONLY_TOOLS as R, ServeAuth as S, buildMachineShareUrl as T, summarize as U, newItem as V, parseHandle as W, handleMatchesMetadata as X, describeMisconfiguration as Y, buildMachineDeps as Z, composeSessionId as _, createSessionStore as a, generateHookSettings as a0, projectInfo as a1, DefaultTransport$1 as a2, acpBackend as a3, acpAgentConfig as a4, codexMcpBackend as a5, GeminiTransport$1 as a6, claudeAuth as a7, instanceConfig as a8, api as a9, run as aa, stopDaemon as b, connectToHypha as c, daemonStatus as d, clearStopMarker as e, stopMarkerExists as f, getHyphaServerUrl$1 as g, getFrpsSubdomainHost as h, getFrpsServerPort as i, getFrpsServerAddr as j, getHyphaServerUrl as k, hasCookieToken as l, shortId as m, getSkillsServer as n, getSkillsWorkspaceName as o, parseFrontmatter as p, getSkillsCollectionName as q, registerMachineService as r, startDaemon as s, fetchWithTimeout as t, searchSkills as u, SKILLS_DIR as v, getSkillInfo as w, downloadSkillFile as x, listSkillFiles as y, loadMachineContext as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import {
|
|
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-BussQNMw.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-DDuOUdHk.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-BussQNMw.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-CsvBoxeE.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-BussQNMw.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svamp-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.136",
|
|
4
4
|
"description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
|
|
5
5
|
"author": "Amun AI AB",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-checklist.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs",
|
|
23
|
+
"test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-checklist.mjs && npx tsx test/test-checklist-cli.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs",
|
|
24
24
|
"test:hypha": "node --no-warnings test/test-hypha-service.mjs",
|
|
25
25
|
"dev": "tsx src/cli.ts",
|
|
26
26
|
"dev:daemon": "tsx src/cli.ts daemon start-sync",
|