svamp-cli 0.2.91 → 0.2.93
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-Cq5-Dj_E.mjs → agentCommands-5UkFbjCr.mjs} +2 -2
- package/dist/{auth-DPhc_hNc.mjs → auth-DIlY0Nww.mjs} +1 -3
- package/dist/cli.mjs +66 -51
- package/dist/{commands-LfAaLGbG.mjs → commands-BjtQRoGi.mjs} +1 -3
- package/dist/{commands-kGkSBEMq.mjs → commands-D-m22ZpN.mjs} +1 -3
- package/dist/{commands-DemyBiUh.mjs → commands-Do8wtW5P.mjs} +1 -3
- package/dist/{commands-C6HpuYOB.mjs → commands-POgHLHF-.mjs} +2 -4
- package/dist/{commands-B9ssOqX0.mjs → commands-yzDiaiRy.mjs} +5 -5
- package/dist/{fleet-DRQS1weD.mjs → fleet-ChKjkV1V.mjs} +1 -3
- package/dist/{frpc-BBNWJChC.mjs → frpc-glQKHUBu.mjs} +1 -3
- package/dist/headlessCli-D2ZOlMNL.mjs +332 -0
- package/dist/index.mjs +1 -3
- package/dist/{package-GxcmHBEB.mjs → package-Caxptr7d.mjs} +2 -2
- package/dist/{run-YihZemmc.mjs → run-CuHAFrIm.mjs} +1 -3
- package/dist/{run-DWr_h85y.mjs → run-CvIUzIMP.mjs} +115 -345
- package/dist/{serveCommands-Js_HSnLs.mjs → serveCommands-1TJus4ZX.mjs} +5 -5
- package/dist/{serveManager-Dn9GyzAG.mjs → serveManager-CoVwgYS_.mjs} +2 -4
- package/dist/sideband-7glSvpTW.mjs +79 -0
- package/package.json +2 -2
|
@@ -148,7 +148,7 @@ async function sessionBroadcast(action, args) {
|
|
|
148
148
|
console.log(`Broadcast sent: ${action}`);
|
|
149
149
|
}
|
|
150
150
|
async function connectToMachineService() {
|
|
151
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
151
|
+
const { connectAndGetMachine } = await import('./commands-D-m22ZpN.mjs');
|
|
152
152
|
return connectAndGetMachine();
|
|
153
153
|
}
|
|
154
154
|
async function inboxSend(targetSessionId, opts) {
|
|
@@ -165,7 +165,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
165
165
|
}
|
|
166
166
|
const { server, machine } = await connectToMachineService();
|
|
167
167
|
try {
|
|
168
|
-
const { resolveSessionId } = await import('./commands-
|
|
168
|
+
const { resolveSessionId } = await import('./commands-D-m22ZpN.mjs');
|
|
169
169
|
const sessions = await machine.listSessions();
|
|
170
170
|
const match = resolveSessionId(sessions, targetSessionId);
|
|
171
171
|
const fullTargetId = match.sessionId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as resolveModel } from './run-CvIUzIMP.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -7,9 +7,7 @@ import 'url';
|
|
|
7
7
|
import 'child_process';
|
|
8
8
|
import 'crypto';
|
|
9
9
|
import 'node:fs';
|
|
10
|
-
import 'node:vm';
|
|
11
10
|
import 'node:child_process';
|
|
12
|
-
import 'ws';
|
|
13
11
|
import 'util';
|
|
14
12
|
import 'node:crypto';
|
|
15
13
|
import 'node:path';
|
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-CvIUzIMP.mjs';
|
|
2
2
|
import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
|
@@ -8,9 +8,7 @@ import 'url';
|
|
|
8
8
|
import 'child_process';
|
|
9
9
|
import 'crypto';
|
|
10
10
|
import 'node:fs';
|
|
11
|
-
import 'node:vm';
|
|
12
11
|
import 'node:child_process';
|
|
13
|
-
import 'ws';
|
|
14
12
|
import 'util';
|
|
15
13
|
import 'node:crypto';
|
|
16
14
|
import 'node:path';
|
|
@@ -35,7 +33,7 @@ const subcommand = args[0];
|
|
|
35
33
|
let daemonSubcommand = args[1];
|
|
36
34
|
async function main() {
|
|
37
35
|
try {
|
|
38
|
-
const { getLoadedConfig } = await import('./run-
|
|
36
|
+
const { getLoadedConfig } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.Y; });
|
|
39
37
|
getLoadedConfig();
|
|
40
38
|
} catch {
|
|
41
39
|
}
|
|
@@ -52,7 +50,7 @@ async function main() {
|
|
|
52
50
|
console.error(`svamp daemon restart: ${err.message || err}`);
|
|
53
51
|
process.exit(1);
|
|
54
52
|
}
|
|
55
|
-
const { restartDaemon } = await import('./run-
|
|
53
|
+
const { restartDaemon } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n._; });
|
|
56
54
|
await restartDaemon();
|
|
57
55
|
process.exit(0);
|
|
58
56
|
}
|
|
@@ -345,7 +343,7 @@ async function main() {
|
|
|
345
343
|
console.error("svamp service: Service commands are not available in sandboxed sessions.");
|
|
346
344
|
process.exit(1);
|
|
347
345
|
}
|
|
348
|
-
const { handleServiceCommand } = await import('./commands-
|
|
346
|
+
const { handleServiceCommand } = await import('./commands-yzDiaiRy.mjs');
|
|
349
347
|
await handleServiceCommand();
|
|
350
348
|
} else if (subcommand === "serve") {
|
|
351
349
|
const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
|
|
@@ -353,7 +351,7 @@ async function main() {
|
|
|
353
351
|
console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
|
|
354
352
|
process.exit(1);
|
|
355
353
|
}
|
|
356
|
-
const { handleServeCommand } = await import('./serveCommands-
|
|
354
|
+
const { handleServeCommand } = await import('./serveCommands-1TJus4ZX.mjs');
|
|
357
355
|
await handleServeCommand();
|
|
358
356
|
process.exit(0);
|
|
359
357
|
} else if (subcommand === "process" || subcommand === "proc") {
|
|
@@ -362,7 +360,7 @@ async function main() {
|
|
|
362
360
|
console.error("svamp process: Process commands are not available in sandboxed sessions.");
|
|
363
361
|
process.exit(1);
|
|
364
362
|
}
|
|
365
|
-
const { processCommand } = await import('./commands-
|
|
363
|
+
const { processCommand } = await import('./commands-POgHLHF-.mjs');
|
|
366
364
|
let machineId;
|
|
367
365
|
const processArgs = args.slice(1);
|
|
368
366
|
const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
|
|
@@ -376,7 +374,7 @@ async function main() {
|
|
|
376
374
|
}), machineId);
|
|
377
375
|
process.exit(0);
|
|
378
376
|
} else if (subcommand === "routine" || subcommand === "routines") {
|
|
379
|
-
const { routineCommand } = await import('./commands-
|
|
377
|
+
const { routineCommand } = await import('./commands-Do8wtW5P.mjs');
|
|
380
378
|
await routineCommand(args.slice(1));
|
|
381
379
|
process.exit(0);
|
|
382
380
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
@@ -387,7 +385,7 @@ async function main() {
|
|
|
387
385
|
} else if (!subcommand || subcommand === "start") {
|
|
388
386
|
await handleInteractiveCommand();
|
|
389
387
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
390
|
-
const pkg = await import('./package-
|
|
388
|
+
const pkg = await import('./package-Caxptr7d.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
391
389
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
392
390
|
} else {
|
|
393
391
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -396,7 +394,7 @@ async function main() {
|
|
|
396
394
|
}
|
|
397
395
|
}
|
|
398
396
|
async function handleInteractiveCommand() {
|
|
399
|
-
const { runInteractive } = await import('./run-
|
|
397
|
+
const { runInteractive } = await import('./run-CuHAFrIm.mjs');
|
|
400
398
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
401
399
|
let directory = process.cwd();
|
|
402
400
|
let resumeSessionId;
|
|
@@ -441,7 +439,7 @@ async function handleAgentCommand() {
|
|
|
441
439
|
return;
|
|
442
440
|
}
|
|
443
441
|
if (agentArgs[0] === "list") {
|
|
444
|
-
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-
|
|
442
|
+
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.U; });
|
|
445
443
|
console.log("Known agents:");
|
|
446
444
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
447
445
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -453,7 +451,7 @@ async function handleAgentCommand() {
|
|
|
453
451
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
454
452
|
return;
|
|
455
453
|
}
|
|
456
|
-
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-
|
|
454
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.U; });
|
|
457
455
|
let cwd = process.cwd();
|
|
458
456
|
const filteredArgs = [];
|
|
459
457
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -477,12 +475,12 @@ async function handleAgentCommand() {
|
|
|
477
475
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
478
476
|
let backend;
|
|
479
477
|
if (KNOWN_MCP_AGENTS[config.agentName]) {
|
|
480
|
-
const { CodexMcpBackend } = await import('./run-
|
|
478
|
+
const { CodexMcpBackend } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.V; });
|
|
481
479
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
482
480
|
} else {
|
|
483
|
-
const { AcpBackend } = await import('./run-
|
|
484
|
-
const { GeminiTransport } = await import('./run-
|
|
485
|
-
const { DefaultTransport } = await import('./run-
|
|
481
|
+
const { AcpBackend } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.T; });
|
|
482
|
+
const { GeminiTransport } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.W; });
|
|
483
|
+
const { DefaultTransport } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.Q; });
|
|
486
484
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
|
|
487
485
|
backend = new AcpBackend({
|
|
488
486
|
agentName: config.agentName,
|
|
@@ -609,7 +607,7 @@ async function handleSessionCommand() {
|
|
|
609
607
|
process.exit(1);
|
|
610
608
|
}
|
|
611
609
|
}
|
|
612
|
-
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionRalphStart, sessionRalphCancel, sessionRalphStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-
|
|
610
|
+
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionRalphStart, sessionRalphCancel, sessionRalphStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-D-m22ZpN.mjs');
|
|
613
611
|
const parseFlagStr = (flag, shortFlag) => {
|
|
614
612
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
615
613
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -677,7 +675,7 @@ async function handleSessionCommand() {
|
|
|
677
675
|
allowDomain.push(sessionArgs[++i]);
|
|
678
676
|
}
|
|
679
677
|
}
|
|
680
|
-
const { parseShareArg } = await import('./commands-
|
|
678
|
+
const { parseShareArg } = await import('./commands-D-m22ZpN.mjs');
|
|
681
679
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
682
680
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
683
681
|
message,
|
|
@@ -764,7 +762,7 @@ async function handleSessionCommand() {
|
|
|
764
762
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
765
763
|
process.exit(1);
|
|
766
764
|
}
|
|
767
|
-
const { sessionQuery } = await import('./commands-
|
|
765
|
+
const { sessionQuery } = await import('./commands-D-m22ZpN.mjs');
|
|
768
766
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
769
767
|
timeout: parseFlagInt("--timeout"),
|
|
770
768
|
json: hasFlag("--json"),
|
|
@@ -797,7 +795,7 @@ async function handleSessionCommand() {
|
|
|
797
795
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
798
796
|
process.exit(1);
|
|
799
797
|
}
|
|
800
|
-
const { sessionApprove } = await import('./commands-
|
|
798
|
+
const { sessionApprove } = await import('./commands-D-m22ZpN.mjs');
|
|
801
799
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
802
800
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
803
801
|
json: hasFlag("--json")
|
|
@@ -807,7 +805,7 @@ async function handleSessionCommand() {
|
|
|
807
805
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
808
806
|
process.exit(1);
|
|
809
807
|
}
|
|
810
|
-
const { sessionDeny } = await import('./commands-
|
|
808
|
+
const { sessionDeny } = await import('./commands-D-m22ZpN.mjs');
|
|
811
809
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
812
810
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
813
811
|
json: hasFlag("--json")
|
|
@@ -843,7 +841,7 @@ async function handleSessionCommand() {
|
|
|
843
841
|
console.error("Usage: svamp session set-title <title>");
|
|
844
842
|
process.exit(1);
|
|
845
843
|
}
|
|
846
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
844
|
+
const { sessionSetTitle } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
847
845
|
await sessionSetTitle(title);
|
|
848
846
|
} else if (sessionSubcommand === "set-link") {
|
|
849
847
|
const url = sessionArgs[1];
|
|
@@ -852,7 +850,7 @@ async function handleSessionCommand() {
|
|
|
852
850
|
process.exit(1);
|
|
853
851
|
}
|
|
854
852
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
855
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
853
|
+
const { sessionSetLink } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
856
854
|
await sessionSetLink(url, label);
|
|
857
855
|
} else if (sessionSubcommand === "notify") {
|
|
858
856
|
const message = sessionArgs[1];
|
|
@@ -861,7 +859,7 @@ async function handleSessionCommand() {
|
|
|
861
859
|
process.exit(1);
|
|
862
860
|
}
|
|
863
861
|
const level = parseFlagStr("--level") || "info";
|
|
864
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
862
|
+
const { sessionNotify } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
865
863
|
await sessionNotify(message, level);
|
|
866
864
|
} else if (sessionSubcommand === "broadcast") {
|
|
867
865
|
const action = sessionArgs[1];
|
|
@@ -869,7 +867,7 @@ async function handleSessionCommand() {
|
|
|
869
867
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
870
868
|
process.exit(1);
|
|
871
869
|
}
|
|
872
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
870
|
+
const { sessionBroadcast } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
873
871
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
874
872
|
} else if (sessionSubcommand === "inbox") {
|
|
875
873
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -880,7 +878,7 @@ async function handleSessionCommand() {
|
|
|
880
878
|
process.exit(1);
|
|
881
879
|
}
|
|
882
880
|
if (agentSessionId) {
|
|
883
|
-
const { inboxSend } = await import('./agentCommands-
|
|
881
|
+
const { inboxSend } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
884
882
|
await inboxSend(sessionArgs[2], {
|
|
885
883
|
body: sessionArgs[3],
|
|
886
884
|
subject: parseFlagStr("--subject"),
|
|
@@ -895,7 +893,7 @@ async function handleSessionCommand() {
|
|
|
895
893
|
}
|
|
896
894
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
897
895
|
if (agentSessionId && !sessionArgs[2]) {
|
|
898
|
-
const { inboxList } = await import('./agentCommands-
|
|
896
|
+
const { inboxList } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
899
897
|
await inboxList({
|
|
900
898
|
unread: hasFlag("--unread"),
|
|
901
899
|
limit: parseFlagInt("--limit"),
|
|
@@ -917,7 +915,7 @@ async function handleSessionCommand() {
|
|
|
917
915
|
process.exit(1);
|
|
918
916
|
}
|
|
919
917
|
if (agentSessionId && !sessionArgs[3]) {
|
|
920
|
-
const { inboxList } = await import('./agentCommands-
|
|
918
|
+
const { inboxList } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
921
919
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
922
920
|
} else if (sessionArgs[3]) {
|
|
923
921
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -927,7 +925,7 @@ async function handleSessionCommand() {
|
|
|
927
925
|
}
|
|
928
926
|
} else if (inboxSubcmd === "reply") {
|
|
929
927
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
930
|
-
const { inboxReply } = await import('./agentCommands-
|
|
928
|
+
const { inboxReply } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
931
929
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
932
930
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
933
931
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -963,7 +961,7 @@ async function handleMachineCommand() {
|
|
|
963
961
|
return;
|
|
964
962
|
}
|
|
965
963
|
if (machineSubcommand === "share") {
|
|
966
|
-
const { machineShare } = await import('./commands-
|
|
964
|
+
const { machineShare } = await import('./commands-D-m22ZpN.mjs');
|
|
967
965
|
let machineId;
|
|
968
966
|
const shareArgs = [];
|
|
969
967
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -993,7 +991,7 @@ async function handleMachineCommand() {
|
|
|
993
991
|
}
|
|
994
992
|
await machineShare(machineId, { add, remove, list, configPath, showConfig });
|
|
995
993
|
} else if (machineSubcommand === "exec") {
|
|
996
|
-
const { machineExec } = await import('./commands-
|
|
994
|
+
const { machineExec } = await import('./commands-D-m22ZpN.mjs');
|
|
997
995
|
let machineId;
|
|
998
996
|
let cwd;
|
|
999
997
|
const cmdParts = [];
|
|
@@ -1013,7 +1011,7 @@ async function handleMachineCommand() {
|
|
|
1013
1011
|
}
|
|
1014
1012
|
await machineExec(machineId, command, cwd);
|
|
1015
1013
|
} else if (machineSubcommand === "info") {
|
|
1016
|
-
const { machineInfo } = await import('./commands-
|
|
1014
|
+
const { machineInfo } = await import('./commands-D-m22ZpN.mjs');
|
|
1017
1015
|
let machineId;
|
|
1018
1016
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1019
1017
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1033,10 +1031,10 @@ async function handleMachineCommand() {
|
|
|
1033
1031
|
level = machineArgs[++i];
|
|
1034
1032
|
}
|
|
1035
1033
|
}
|
|
1036
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1034
|
+
const { machineNotify } = await import('./agentCommands-5UkFbjCr.mjs');
|
|
1037
1035
|
await machineNotify(message, level);
|
|
1038
1036
|
} else if (machineSubcommand === "ls") {
|
|
1039
|
-
const { machineLs } = await import('./commands-
|
|
1037
|
+
const { machineLs } = await import('./commands-D-m22ZpN.mjs');
|
|
1040
1038
|
let machineId;
|
|
1041
1039
|
let showHidden = false;
|
|
1042
1040
|
let path;
|
|
@@ -1094,24 +1092,24 @@ Examples:
|
|
|
1094
1092
|
};
|
|
1095
1093
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1096
1094
|
if (sub === "status") {
|
|
1097
|
-
const { fleetStatus } = await import('./fleet-
|
|
1095
|
+
const { fleetStatus } = await import('./fleet-ChKjkV1V.mjs');
|
|
1098
1096
|
await fleetStatus();
|
|
1099
1097
|
} else if (sub === "exec") {
|
|
1100
1098
|
const command = fleetArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1101
|
-
const { fleetExec } = await import('./fleet-
|
|
1099
|
+
const { fleetExec } = await import('./fleet-ChKjkV1V.mjs');
|
|
1102
1100
|
await fleetExec(command, { cwd: flag("cwd") });
|
|
1103
1101
|
} else if (sub === "upgrade-claude") {
|
|
1104
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1102
|
+
const { fleetUpgradeClaude } = await import('./fleet-ChKjkV1V.mjs');
|
|
1105
1103
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1106
1104
|
} else if (sub === "upgrade-svamp") {
|
|
1107
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1105
|
+
const { fleetUpgradeSvamp } = await import('./fleet-ChKjkV1V.mjs');
|
|
1108
1106
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1109
1107
|
} else if (sub === "daemon-restart") {
|
|
1110
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1108
|
+
const { fleetDaemonRestart } = await import('./fleet-ChKjkV1V.mjs');
|
|
1111
1109
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1112
1110
|
} else if (sub === "push-skill") {
|
|
1113
1111
|
const name = fleetArgs[1];
|
|
1114
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1112
|
+
const { fleetPushSkill } = await import('./fleet-ChKjkV1V.mjs');
|
|
1115
1113
|
await fleetPushSkill(name);
|
|
1116
1114
|
} else {
|
|
1117
1115
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1127,7 +1125,7 @@ async function handleSkillsCommand() {
|
|
|
1127
1125
|
await printSkillsHelp();
|
|
1128
1126
|
return;
|
|
1129
1127
|
}
|
|
1130
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1128
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BjtQRoGi.mjs');
|
|
1131
1129
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1132
1130
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1133
1131
|
if (!query) {
|
|
@@ -1174,7 +1172,7 @@ async function loginToHypha() {
|
|
|
1174
1172
|
process.exit(1);
|
|
1175
1173
|
}
|
|
1176
1174
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1177
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1175
|
+
const { loadInstanceConfig } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.Y; });
|
|
1178
1176
|
let cfg = null;
|
|
1179
1177
|
try {
|
|
1180
1178
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1285,7 +1283,7 @@ async function logoutFromHypha() {
|
|
|
1285
1283
|
} catch {
|
|
1286
1284
|
}
|
|
1287
1285
|
try {
|
|
1288
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1286
|
+
const { clearInstanceConfigCache } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.Y; });
|
|
1289
1287
|
clearInstanceConfigCache();
|
|
1290
1288
|
} catch {
|
|
1291
1289
|
}
|
|
@@ -1616,7 +1614,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1616
1614
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1617
1615
|
);
|
|
1618
1616
|
}
|
|
1619
|
-
const mod = await import('./run-
|
|
1617
|
+
const mod = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.X; });
|
|
1620
1618
|
if (hasHypha) {
|
|
1621
1619
|
let url;
|
|
1622
1620
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1670,7 +1668,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1670
1668
|
}
|
|
1671
1669
|
}
|
|
1672
1670
|
if (collected.length === 0) return;
|
|
1673
|
-
const { updateEnvFile } = await import('./run-
|
|
1671
|
+
const { updateEnvFile } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.X; });
|
|
1674
1672
|
const seen = /* @__PURE__ */ new Set();
|
|
1675
1673
|
const deduped = collected.filter((e) => {
|
|
1676
1674
|
const k = e.toLowerCase();
|
|
@@ -1703,16 +1701,33 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1703
1701
|
}
|
|
1704
1702
|
});
|
|
1705
1703
|
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(" ");
|
|
1706
|
-
const { wiseAskCli } = await import('./commands-
|
|
1704
|
+
const { wiseAskCli } = await import('./commands-D-m22ZpN.mjs');
|
|
1707
1705
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1708
1706
|
return;
|
|
1709
1707
|
}
|
|
1708
|
+
if (sub === "voice") {
|
|
1709
|
+
const valueOf = (flags) => {
|
|
1710
|
+
for (const f of flags) {
|
|
1711
|
+
const i = rest.indexOf(f);
|
|
1712
|
+
if (i >= 0 && rest[i + 1]) return rest[i + 1];
|
|
1713
|
+
}
|
|
1714
|
+
return void 0;
|
|
1715
|
+
};
|
|
1716
|
+
const { runWiseVoiceCli } = await import('./headlessCli-D2ZOlMNL.mjs');
|
|
1717
|
+
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1718
|
+
return;
|
|
1719
|
+
}
|
|
1710
1720
|
if (sub === "--help" || sub === "-h") {
|
|
1711
1721
|
console.log(`Usage:
|
|
1712
1722
|
svamp wise ask "<message>" [--session <id>] [-m <machine>] [--json]
|
|
1713
1723
|
Fast WISE turn \u2014 GLOBAL machine-manager by default (daemon status, run
|
|
1714
1724
|
commands, inspect/spawn/drive any session); --session <id> scopes to one.
|
|
1715
1725
|
|
|
1726
|
+
svamp wise voice [--voice <name>] [--wake <keyword.ppn>] [--model <id>]
|
|
1727
|
+
HEADLESS voice on this machine (mic + speaker, no browser). Needs \`sox\`.
|
|
1728
|
+
--wake <keyword.ppn> = always-on "Hey WISE" (needs PICOVOICE_ACCESS_KEY);
|
|
1729
|
+
omit it for a single always-listening session (Ctrl-C to stop).
|
|
1730
|
+
|
|
1716
1731
|
svamp wise-agent auth <command>
|
|
1717
1732
|
|
|
1718
1733
|
Configure the server-side WISE Agent's fast model (text companion to the deep agent).
|
|
@@ -1740,7 +1755,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1740
1755
|
return;
|
|
1741
1756
|
}
|
|
1742
1757
|
const authArgs = rest.slice(1);
|
|
1743
|
-
const mod = await import('./auth-
|
|
1758
|
+
const mod = await import('./auth-DIlY0Nww.mjs');
|
|
1744
1759
|
let action;
|
|
1745
1760
|
try {
|
|
1746
1761
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1750,7 +1765,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1750
1765
|
return;
|
|
1751
1766
|
}
|
|
1752
1767
|
if (action) {
|
|
1753
|
-
const { updateEnvFile } = await import('./run-
|
|
1768
|
+
const { updateEnvFile } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.X; });
|
|
1754
1769
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1755
1770
|
updateEnvFile(updates);
|
|
1756
1771
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1764,7 +1779,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1764
1779
|
}
|
|
1765
1780
|
async function handleDaemonAuthCommand(argv) {
|
|
1766
1781
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1767
|
-
const mod = await import('./run-
|
|
1782
|
+
const mod = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.X; });
|
|
1768
1783
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1769
1784
|
console.log(`
|
|
1770
1785
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2067,7 +2082,7 @@ Examples:
|
|
|
2067
2082
|
async function printSkillsHelp() {
|
|
2068
2083
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2069
2084
|
try {
|
|
2070
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2085
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CvIUzIMP.mjs').then(function (n) { return n.Z; });
|
|
2071
2086
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2072
2087
|
} catch {
|
|
2073
2088
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
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-CvIUzIMP.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
8
8
|
import 'crypto';
|
|
9
9
|
import 'node:fs';
|
|
10
|
-
import 'node:vm';
|
|
11
10
|
import 'node:child_process';
|
|
12
|
-
import 'ws';
|
|
13
11
|
import 'util';
|
|
14
12
|
import 'node:crypto';
|
|
15
13
|
import 'node:path';
|
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from 'node:fs';
|
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
3
|
import { basename, resolve, join } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
5
|
-
import {
|
|
5
|
+
import { F as normalizeAllowedUser, G as loadSecurityContextConfig, H as resolveSecurityContext, I as buildSecurityContextFromFlags, J as mergeSecurityContexts, c as connectToHypha, K as buildSessionShareUrl, L as computeOutboundHop, M as buildMachineShareUrl } from './run-CvIUzIMP.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -10,8 +10,6 @@ import 'path';
|
|
|
10
10
|
import 'url';
|
|
11
11
|
import 'child_process';
|
|
12
12
|
import 'crypto';
|
|
13
|
-
import 'node:vm';
|
|
14
|
-
import 'ws';
|
|
15
13
|
import 'util';
|
|
16
14
|
import 'node:crypto';
|
|
17
15
|
import '@agentclientprotocol/sdk';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { execFileSync } from 'node:child_process';
|
|
2
2
|
import { createServer } from 'node:http';
|
|
3
|
-
import { R as RoutineStore, m as RoutineRunner } from './run-
|
|
3
|
+
import { R as RoutineStore, m as RoutineRunner } from './run-CvIUzIMP.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'fs';
|
|
@@ -9,8 +9,6 @@ import 'url';
|
|
|
9
9
|
import 'child_process';
|
|
10
10
|
import 'crypto';
|
|
11
11
|
import 'node:fs';
|
|
12
|
-
import 'node:vm';
|
|
13
|
-
import 'ws';
|
|
14
12
|
import 'util';
|
|
15
13
|
import 'node:crypto';
|
|
16
14
|
import 'node:path';
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { writeFileSync, readFileSync } from 'fs';
|
|
2
2
|
import { resolve } from 'path';
|
|
3
|
-
import { connectAndGetMachine } from './commands-
|
|
3
|
+
import { connectAndGetMachine } from './commands-D-m22ZpN.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-CvIUzIMP.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
12
12
|
import 'child_process';
|
|
13
13
|
import 'crypto';
|
|
14
|
-
import 'node:vm';
|
|
15
|
-
import 'ws';
|
|
16
14
|
import 'util';
|
|
17
15
|
import 'node:crypto';
|
|
18
16
|
import '@agentclientprotocol/sdk';
|
|
@@ -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-glQKHUBu.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-D-m22ZpN.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-glQKHUBu.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-D-m22ZpN.mjs');
|
|
136
136
|
const { server, machine } = await connectAndGetMachine();
|
|
137
137
|
try {
|
|
138
138
|
const tunnels = await machine.tunnelList({});
|
|
@@ -161,7 +161,7 @@ async function serviceDelete(args) {
|
|
|
161
161
|
process.exit(1);
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
164
|
+
const { connectAndGetMachine } = await import('./commands-D-m22ZpN.mjs');
|
|
165
165
|
const { server, machine } = await connectAndGetMachine();
|
|
166
166
|
try {
|
|
167
167
|
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-CvIUzIMP.mjs';
|
|
5
5
|
import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-HydRNEt7.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
@@ -10,9 +10,7 @@ import 'path';
|
|
|
10
10
|
import 'url';
|
|
11
11
|
import 'child_process';
|
|
12
12
|
import 'crypto';
|
|
13
|
-
import 'node:vm';
|
|
14
13
|
import 'node:child_process';
|
|
15
|
-
import 'ws';
|
|
16
14
|
import 'util';
|
|
17
15
|
import 'node:crypto';
|
|
18
16
|
import '@agentclientprotocol/sdk';
|
|
@@ -3,13 +3,11 @@ import { mkdirSync, writeFileSync, unlinkSync, existsSync, chmodSync, readFileSy
|
|
|
3
3
|
import { join } from 'path';
|
|
4
4
|
import { homedir, platform, arch } from 'os';
|
|
5
5
|
import { createHash, randomUUID } from 'crypto';
|
|
6
|
-
import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-
|
|
6
|
+
import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-CvIUzIMP.mjs';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'url';
|
|
9
9
|
import 'node:fs';
|
|
10
|
-
import 'node:vm';
|
|
11
10
|
import 'node:child_process';
|
|
12
|
-
import 'ws';
|
|
13
11
|
import 'util';
|
|
14
12
|
import 'node:crypto';
|
|
15
13
|
import 'node:path';
|