svamp-cli 0.2.151 → 0.2.153
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-CtOE-AFD.mjs → agentCommands-BA6vfwBe.mjs} +5 -5
- package/dist/{auth-DR4WJJdh.mjs → auth-DDGQNcgj.mjs} +1 -1
- package/dist/cli.mjs +64 -60
- package/dist/{commands-DRFQ4tEC.mjs → commands-0OqnzYM4.mjs} +2 -2
- package/dist/{commands-C80GsDpQ.mjs → commands-6o8EfiTm.mjs} +1 -1
- package/dist/commands-C5NCV1-2.mjs +206 -0
- package/dist/{commands-5huYGEJA.mjs → commands-DFV7sIED.mjs} +2 -2
- package/dist/{commands-DR_g13_S.mjs → commands-DGrSL-zP.mjs} +5 -5
- package/dist/{commands-CraNY95y.mjs → commands-DTkbPUBJ.mjs} +2 -2
- package/dist/{commands--9dm2tSB.mjs → commands-GYM5Mj8d.mjs} +4 -180
- package/dist/{commands-sruHTsVh.mjs → commands-zix9Pnz-.mjs} +1 -1
- package/dist/{fleet-BM08pkb9.mjs → fleet-Bnn3afbQ.mjs} +1 -1
- package/dist/{frpc-BQ9Dta1o.mjs → frpc-DNTYlFA6.mjs} +1 -1
- package/dist/{headlessCli-D5m-1YmS.mjs → headlessCli-BziHStSj.mjs} +2 -2
- package/dist/{httpServer-CWn3F-0t.mjs → httpServer-DwhcH2T9.mjs} +10 -3
- package/dist/index.mjs +1 -1
- package/dist/{package-JMm_HlGt.mjs → package-CcVsdUQQ.mjs} +2 -2
- package/dist/{run-H_4p9eNo.mjs → run-CCmmjoNa.mjs} +1 -1
- package/dist/{run-DhnZXHcu.mjs → run-DLOd6buN.mjs} +10 -6
- package/dist/{serveCommands-CUywdvCF.mjs → serveCommands-Cpca3ZIy.mjs} +5 -5
- package/dist/{serveManager-sZkIrZCW.mjs → serveManager-DqCyMxvg.mjs} +2 -2
- package/dist/{sideband-CKX3P035.mjs → sideband-BCt7MEtP.mjs} +1 -1
- package/dist/store-ChN9bgel.mjs +182 -0
- 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-DLOd6buN.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-DLOd6buN.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-zix9Pnz-.mjs');
|
|
184
184
|
return connectAndGetMachine();
|
|
185
185
|
}
|
|
186
186
|
function buildInboxMessage(args) {
|
|
@@ -258,7 +258,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
258
258
|
console.error("Message body is required.");
|
|
259
259
|
process.exit(1);
|
|
260
260
|
}
|
|
261
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
261
|
+
const { connectAndResolveSession } = await import('./commands-zix9Pnz-.mjs');
|
|
262
262
|
let server;
|
|
263
263
|
try {
|
|
264
264
|
const { targetId, messageId } = await inboxSendCore(
|
|
@@ -312,7 +312,7 @@ async function inboxReply(messageId, body) {
|
|
|
312
312
|
console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
|
|
313
313
|
process.exit(1);
|
|
314
314
|
}
|
|
315
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
315
|
+
const { connectAndResolveSession } = await import('./commands-zix9Pnz-.mjs');
|
|
316
316
|
const { server: localServer, machine: localMachine } = await connectToMachineService();
|
|
317
317
|
let localDisconnected = false;
|
|
318
318
|
const disconnectLocal = async () => {
|
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-DLOd6buN.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-DLOd6buN.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-DLOd6buN.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-DGrSL-zP.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-Cpca3ZIy.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-DFV7sIED.mjs');
|
|
365
365
|
let machineId;
|
|
366
366
|
const processArgs = args.slice(1);
|
|
367
367
|
const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
|
|
@@ -375,18 +375,22 @@ async function main() {
|
|
|
375
375
|
}), machineId);
|
|
376
376
|
process.exit(0);
|
|
377
377
|
} else if (subcommand === "issue" || subcommand === "issues") {
|
|
378
|
-
const { issueCommand } = await import('./commands
|
|
378
|
+
const { issueCommand } = await import('./commands-GYM5Mj8d.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
|
+
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
382
|
+
const { workflowCommand } = await import('./commands-C5NCV1-2.mjs');
|
|
383
|
+
await workflowCommand(args.slice(1));
|
|
384
|
+
process.exit(0);
|
|
381
385
|
} else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
|
|
382
|
-
const { routineCommand } = await import('./commands-
|
|
386
|
+
const { routineCommand } = await import('./commands-0OqnzYM4.mjs');
|
|
383
387
|
await routineCommand(args.slice(1));
|
|
384
388
|
process.exit(0);
|
|
385
389
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
386
390
|
await handleWiseAgentCommand(args.slice(1));
|
|
387
391
|
process.exit(0);
|
|
388
392
|
} else if (subcommand === "feature" || subcommand === "crew") {
|
|
389
|
-
const { crewCommand } = await import('./commands-
|
|
393
|
+
const { crewCommand } = await import('./commands-DTkbPUBJ.mjs');
|
|
390
394
|
await crewCommand(args.slice(1));
|
|
391
395
|
process.exit(0);
|
|
392
396
|
} else if (subcommand === "--help" || subcommand === "-h") {
|
|
@@ -394,7 +398,7 @@ async function main() {
|
|
|
394
398
|
} else if (!subcommand || subcommand === "start") {
|
|
395
399
|
await handleInteractiveCommand();
|
|
396
400
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
397
|
-
const pkg = await import('./package-
|
|
401
|
+
const pkg = await import('./package-CcVsdUQQ.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
398
402
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
399
403
|
} else {
|
|
400
404
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -403,7 +407,7 @@ async function main() {
|
|
|
403
407
|
}
|
|
404
408
|
}
|
|
405
409
|
async function handleInteractiveCommand() {
|
|
406
|
-
const { runInteractive } = await import('./run-
|
|
410
|
+
const { runInteractive } = await import('./run-CCmmjoNa.mjs');
|
|
407
411
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
408
412
|
let directory = process.cwd();
|
|
409
413
|
let resumeSessionId;
|
|
@@ -448,7 +452,7 @@ async function handleAgentCommand() {
|
|
|
448
452
|
return;
|
|
449
453
|
}
|
|
450
454
|
if (agentArgs[0] === "list") {
|
|
451
|
-
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-
|
|
455
|
+
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a4; });
|
|
452
456
|
console.log("Known agents:");
|
|
453
457
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
454
458
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -460,7 +464,7 @@ async function handleAgentCommand() {
|
|
|
460
464
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
461
465
|
return;
|
|
462
466
|
}
|
|
463
|
-
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-
|
|
467
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a4; });
|
|
464
468
|
let cwd = process.cwd();
|
|
465
469
|
const filteredArgs = [];
|
|
466
470
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -484,12 +488,12 @@ async function handleAgentCommand() {
|
|
|
484
488
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
485
489
|
let backend;
|
|
486
490
|
if (KNOWN_MCP_AGENTS[config.agentName]) {
|
|
487
|
-
const { CodexMcpBackend } = await import('./run-
|
|
491
|
+
const { CodexMcpBackend } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a5; });
|
|
488
492
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
489
493
|
} else {
|
|
490
|
-
const { AcpBackend } = await import('./run-
|
|
491
|
-
const { GeminiTransport } = await import('./run-
|
|
492
|
-
const { DefaultTransport } = await import('./run-
|
|
494
|
+
const { AcpBackend } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a3; });
|
|
495
|
+
const { GeminiTransport } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a6; });
|
|
496
|
+
const { DefaultTransport } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a2; });
|
|
493
497
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
|
|
494
498
|
backend = new AcpBackend({
|
|
495
499
|
agentName: config.agentName,
|
|
@@ -616,7 +620,7 @@ async function handleSessionCommand() {
|
|
|
616
620
|
process.exit(1);
|
|
617
621
|
}
|
|
618
622
|
}
|
|
619
|
-
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-
|
|
623
|
+
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-zix9Pnz-.mjs');
|
|
620
624
|
const parseFlagStr = (flag, shortFlag) => {
|
|
621
625
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
622
626
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -684,7 +688,7 @@ async function handleSessionCommand() {
|
|
|
684
688
|
allowDomain.push(sessionArgs[++i]);
|
|
685
689
|
}
|
|
686
690
|
}
|
|
687
|
-
const { parseShareArg } = await import('./commands-
|
|
691
|
+
const { parseShareArg } = await import('./commands-zix9Pnz-.mjs');
|
|
688
692
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
689
693
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
690
694
|
message,
|
|
@@ -769,7 +773,7 @@ async function handleSessionCommand() {
|
|
|
769
773
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
770
774
|
process.exit(1);
|
|
771
775
|
}
|
|
772
|
-
const { sessionEditMessage } = await import('./commands-
|
|
776
|
+
const { sessionEditMessage } = await import('./commands-zix9Pnz-.mjs');
|
|
773
777
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
774
778
|
} else if (sessionSubcommand === "refine") {
|
|
775
779
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -777,7 +781,7 @@ async function handleSessionCommand() {
|
|
|
777
781
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
778
782
|
process.exit(1);
|
|
779
783
|
}
|
|
780
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
784
|
+
const { sessionRefineLastReply } = await import('./commands-zix9Pnz-.mjs');
|
|
781
785
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
782
786
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
783
787
|
if (!sessionArgs[1]) {
|
|
@@ -785,7 +789,7 @@ async function handleSessionCommand() {
|
|
|
785
789
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
786
790
|
process.exit(1);
|
|
787
791
|
}
|
|
788
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
792
|
+
const { sessionUndoEdit } = await import('./commands-zix9Pnz-.mjs');
|
|
789
793
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
790
794
|
} else if (sessionSubcommand === "query") {
|
|
791
795
|
const dir = sessionArgs[1];
|
|
@@ -795,7 +799,7 @@ async function handleSessionCommand() {
|
|
|
795
799
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
796
800
|
process.exit(1);
|
|
797
801
|
}
|
|
798
|
-
const { sessionQuery } = await import('./commands-
|
|
802
|
+
const { sessionQuery } = await import('./commands-zix9Pnz-.mjs');
|
|
799
803
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
800
804
|
timeout: parseFlagInt("--timeout"),
|
|
801
805
|
json: hasFlag("--json"),
|
|
@@ -828,7 +832,7 @@ async function handleSessionCommand() {
|
|
|
828
832
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
829
833
|
process.exit(1);
|
|
830
834
|
}
|
|
831
|
-
const { sessionApprove } = await import('./commands-
|
|
835
|
+
const { sessionApprove } = await import('./commands-zix9Pnz-.mjs');
|
|
832
836
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
833
837
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
834
838
|
json: hasFlag("--json")
|
|
@@ -838,7 +842,7 @@ async function handleSessionCommand() {
|
|
|
838
842
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
839
843
|
process.exit(1);
|
|
840
844
|
}
|
|
841
|
-
const { sessionDeny } = await import('./commands-
|
|
845
|
+
const { sessionDeny } = await import('./commands-zix9Pnz-.mjs');
|
|
842
846
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
843
847
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
844
848
|
json: hasFlag("--json")
|
|
@@ -916,7 +920,7 @@ async function handleSessionCommand() {
|
|
|
916
920
|
console.error("Usage: svamp session set-title <title>");
|
|
917
921
|
process.exit(1);
|
|
918
922
|
}
|
|
919
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
923
|
+
const { sessionSetTitle } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
920
924
|
await sessionSetTitle(title);
|
|
921
925
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
922
926
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -924,7 +928,7 @@ async function handleSessionCommand() {
|
|
|
924
928
|
console.error("Usage: svamp session set-project-description <text>");
|
|
925
929
|
process.exit(1);
|
|
926
930
|
}
|
|
927
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
931
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
928
932
|
await sessionSetProjectDescription(desc);
|
|
929
933
|
} else if (sessionSubcommand === "set-link") {
|
|
930
934
|
const url = sessionArgs[1];
|
|
@@ -933,7 +937,7 @@ async function handleSessionCommand() {
|
|
|
933
937
|
process.exit(1);
|
|
934
938
|
}
|
|
935
939
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
936
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
940
|
+
const { sessionSetLink } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
937
941
|
await sessionSetLink(url, label);
|
|
938
942
|
} else if (sessionSubcommand === "notify") {
|
|
939
943
|
const message = sessionArgs[1];
|
|
@@ -942,7 +946,7 @@ async function handleSessionCommand() {
|
|
|
942
946
|
process.exit(1);
|
|
943
947
|
}
|
|
944
948
|
const level = parseFlagStr("--level") || "info";
|
|
945
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
949
|
+
const { sessionNotify } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
946
950
|
await sessionNotify(message, level);
|
|
947
951
|
} else if (sessionSubcommand === "broadcast") {
|
|
948
952
|
const action = sessionArgs[1];
|
|
@@ -950,7 +954,7 @@ async function handleSessionCommand() {
|
|
|
950
954
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
951
955
|
process.exit(1);
|
|
952
956
|
}
|
|
953
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
957
|
+
const { sessionBroadcast } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
954
958
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
955
959
|
} else if (sessionSubcommand === "inbox") {
|
|
956
960
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -961,7 +965,7 @@ async function handleSessionCommand() {
|
|
|
961
965
|
process.exit(1);
|
|
962
966
|
}
|
|
963
967
|
if (agentSessionId) {
|
|
964
|
-
const { inboxSend } = await import('./agentCommands-
|
|
968
|
+
const { inboxSend } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
965
969
|
await inboxSend(sessionArgs[2], {
|
|
966
970
|
body: sessionArgs[3],
|
|
967
971
|
subject: parseFlagStr("--subject"),
|
|
@@ -976,7 +980,7 @@ async function handleSessionCommand() {
|
|
|
976
980
|
}
|
|
977
981
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
978
982
|
if (agentSessionId && !sessionArgs[2]) {
|
|
979
|
-
const { inboxList } = await import('./agentCommands-
|
|
983
|
+
const { inboxList } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
980
984
|
await inboxList({
|
|
981
985
|
unread: hasFlag("--unread"),
|
|
982
986
|
limit: parseFlagInt("--limit"),
|
|
@@ -998,7 +1002,7 @@ async function handleSessionCommand() {
|
|
|
998
1002
|
process.exit(1);
|
|
999
1003
|
}
|
|
1000
1004
|
if (agentSessionId && !sessionArgs[3]) {
|
|
1001
|
-
const { inboxList } = await import('./agentCommands-
|
|
1005
|
+
const { inboxList } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
1002
1006
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
1003
1007
|
} else if (sessionArgs[3]) {
|
|
1004
1008
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -1008,7 +1012,7 @@ async function handleSessionCommand() {
|
|
|
1008
1012
|
}
|
|
1009
1013
|
} else if (inboxSubcmd === "reply") {
|
|
1010
1014
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1011
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1015
|
+
const { inboxReply } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
1012
1016
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1013
1017
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1014
1018
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1044,7 +1048,7 @@ async function handleMachineCommand() {
|
|
|
1044
1048
|
return;
|
|
1045
1049
|
}
|
|
1046
1050
|
if (machineSubcommand === "share") {
|
|
1047
|
-
const { machineShare } = await import('./commands-
|
|
1051
|
+
const { machineShare } = await import('./commands-zix9Pnz-.mjs');
|
|
1048
1052
|
let machineId;
|
|
1049
1053
|
const shareArgs = [];
|
|
1050
1054
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1095,14 +1099,14 @@ async function handleMachineCommand() {
|
|
|
1095
1099
|
process.exit(1);
|
|
1096
1100
|
}
|
|
1097
1101
|
if (all) {
|
|
1098
|
-
const { fleetExec } = await import('./fleet-
|
|
1102
|
+
const { fleetExec } = await import('./fleet-Bnn3afbQ.mjs');
|
|
1099
1103
|
await fleetExec(command, { cwd });
|
|
1100
1104
|
} else {
|
|
1101
|
-
const { machineExec } = await import('./commands-
|
|
1105
|
+
const { machineExec } = await import('./commands-zix9Pnz-.mjs');
|
|
1102
1106
|
await machineExec(machineId, command, cwd);
|
|
1103
1107
|
}
|
|
1104
1108
|
} else if (machineSubcommand === "info") {
|
|
1105
|
-
const { machineInfo } = await import('./commands-
|
|
1109
|
+
const { machineInfo } = await import('./commands-zix9Pnz-.mjs');
|
|
1106
1110
|
let machineId;
|
|
1107
1111
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1108
1112
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1122,10 +1126,10 @@ async function handleMachineCommand() {
|
|
|
1122
1126
|
level = machineArgs[++i];
|
|
1123
1127
|
}
|
|
1124
1128
|
}
|
|
1125
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1129
|
+
const { machineNotify } = await import('./agentCommands-BA6vfwBe.mjs');
|
|
1126
1130
|
await machineNotify(message, level);
|
|
1127
1131
|
} else if (machineSubcommand === "ls") {
|
|
1128
|
-
const { machineLs } = await import('./commands-
|
|
1132
|
+
const { machineLs } = await import('./commands-zix9Pnz-.mjs');
|
|
1129
1133
|
let machineId;
|
|
1130
1134
|
let showHidden = false;
|
|
1131
1135
|
let path;
|
|
@@ -1181,20 +1185,20 @@ Examples:
|
|
|
1181
1185
|
};
|
|
1182
1186
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1183
1187
|
if (sub === "status") {
|
|
1184
|
-
const { fleetStatus } = await import('./fleet-
|
|
1188
|
+
const { fleetStatus } = await import('./fleet-Bnn3afbQ.mjs');
|
|
1185
1189
|
await fleetStatus();
|
|
1186
1190
|
} else if (sub === "upgrade-claude") {
|
|
1187
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1191
|
+
const { fleetUpgradeClaude } = await import('./fleet-Bnn3afbQ.mjs');
|
|
1188
1192
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1189
1193
|
} else if (sub === "upgrade-svamp") {
|
|
1190
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1194
|
+
const { fleetUpgradeSvamp } = await import('./fleet-Bnn3afbQ.mjs');
|
|
1191
1195
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1192
1196
|
} else if (sub === "daemon-restart") {
|
|
1193
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1197
|
+
const { fleetDaemonRestart } = await import('./fleet-Bnn3afbQ.mjs');
|
|
1194
1198
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1195
1199
|
} else if (sub === "push-skill") {
|
|
1196
1200
|
const name = fleetArgs[1];
|
|
1197
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1201
|
+
const { fleetPushSkill } = await import('./fleet-Bnn3afbQ.mjs');
|
|
1198
1202
|
await fleetPushSkill(name);
|
|
1199
1203
|
} else {
|
|
1200
1204
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1210,7 +1214,7 @@ async function handleSkillsCommand() {
|
|
|
1210
1214
|
await printSkillsHelp();
|
|
1211
1215
|
return;
|
|
1212
1216
|
}
|
|
1213
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1217
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-6o8EfiTm.mjs');
|
|
1214
1218
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1215
1219
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1216
1220
|
if (!query) {
|
|
@@ -1257,7 +1261,7 @@ async function loginToHypha() {
|
|
|
1257
1261
|
process.exit(1);
|
|
1258
1262
|
}
|
|
1259
1263
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1260
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1264
|
+
const { loadInstanceConfig } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a8; });
|
|
1261
1265
|
let cfg = null;
|
|
1262
1266
|
try {
|
|
1263
1267
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1368,7 +1372,7 @@ async function logoutFromHypha() {
|
|
|
1368
1372
|
} catch {
|
|
1369
1373
|
}
|
|
1370
1374
|
try {
|
|
1371
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1375
|
+
const { clearInstanceConfigCache } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a8; });
|
|
1372
1376
|
clearInstanceConfigCache();
|
|
1373
1377
|
} catch {
|
|
1374
1378
|
}
|
|
@@ -1706,7 +1710,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1706
1710
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1707
1711
|
);
|
|
1708
1712
|
}
|
|
1709
|
-
const mod = await import('./run-
|
|
1713
|
+
const mod = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a7; });
|
|
1710
1714
|
if (hasHypha) {
|
|
1711
1715
|
let url;
|
|
1712
1716
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1760,7 +1764,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1760
1764
|
}
|
|
1761
1765
|
}
|
|
1762
1766
|
if (collected.length === 0) return;
|
|
1763
|
-
const { updateEnvFile } = await import('./run-
|
|
1767
|
+
const { updateEnvFile } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a7; });
|
|
1764
1768
|
const seen = /* @__PURE__ */ new Set();
|
|
1765
1769
|
const deduped = collected.filter((e) => {
|
|
1766
1770
|
const k = e.toLowerCase();
|
|
@@ -1793,7 +1797,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1793
1797
|
}
|
|
1794
1798
|
});
|
|
1795
1799
|
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(" ");
|
|
1796
|
-
const { wiseAskCli } = await import('./commands-
|
|
1800
|
+
const { wiseAskCli } = await import('./commands-zix9Pnz-.mjs');
|
|
1797
1801
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1798
1802
|
return;
|
|
1799
1803
|
}
|
|
@@ -1805,7 +1809,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1805
1809
|
}
|
|
1806
1810
|
return void 0;
|
|
1807
1811
|
};
|
|
1808
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1812
|
+
const { runWiseVoiceCli } = await import('./headlessCli-BziHStSj.mjs');
|
|
1809
1813
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1810
1814
|
return;
|
|
1811
1815
|
}
|
|
@@ -1823,7 +1827,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1823
1827
|
const mode = valueOf(["--mode"]);
|
|
1824
1828
|
const mission = valueOf(["--mission"]);
|
|
1825
1829
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1826
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1830
|
+
const { wiseJoinMeetingCli } = await import('./commands-zix9Pnz-.mjs');
|
|
1827
1831
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1828
1832
|
return;
|
|
1829
1833
|
}
|
|
@@ -1835,7 +1839,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1835
1839
|
}
|
|
1836
1840
|
return void 0;
|
|
1837
1841
|
};
|
|
1838
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1842
|
+
const { wiseLeaveMeetingCli } = await import('./commands-zix9Pnz-.mjs');
|
|
1839
1843
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1840
1844
|
return;
|
|
1841
1845
|
}
|
|
@@ -1859,7 +1863,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1859
1863
|
}
|
|
1860
1864
|
});
|
|
1861
1865
|
const text = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
|
|
1862
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
1866
|
+
const { wiseAnnounceCli } = await import('./commands-zix9Pnz-.mjs');
|
|
1863
1867
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1864
1868
|
return;
|
|
1865
1869
|
}
|
|
@@ -1871,7 +1875,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1871
1875
|
}
|
|
1872
1876
|
return void 0;
|
|
1873
1877
|
};
|
|
1874
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1878
|
+
const { wiseMeetingsCli } = await import('./commands-zix9Pnz-.mjs');
|
|
1875
1879
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1876
1880
|
return;
|
|
1877
1881
|
}
|
|
@@ -1921,7 +1925,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1921
1925
|
return;
|
|
1922
1926
|
}
|
|
1923
1927
|
const authArgs = rest.slice(1);
|
|
1924
|
-
const mod = await import('./auth-
|
|
1928
|
+
const mod = await import('./auth-DDGQNcgj.mjs');
|
|
1925
1929
|
let action;
|
|
1926
1930
|
try {
|
|
1927
1931
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1931,7 +1935,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1931
1935
|
return;
|
|
1932
1936
|
}
|
|
1933
1937
|
if (action) {
|
|
1934
|
-
const { updateEnvFile } = await import('./run-
|
|
1938
|
+
const { updateEnvFile } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a7; });
|
|
1935
1939
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1936
1940
|
updateEnvFile(updates);
|
|
1937
1941
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1945,7 +1949,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1945
1949
|
}
|
|
1946
1950
|
async function handleDaemonAuthCommand(argv) {
|
|
1947
1951
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1948
|
-
const mod = await import('./run-
|
|
1952
|
+
const mod = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a7; });
|
|
1949
1953
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1950
1954
|
console.log(`
|
|
1951
1955
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2258,7 +2262,7 @@ Examples:
|
|
|
2258
2262
|
async function printSkillsHelp() {
|
|
2259
2263
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2260
2264
|
try {
|
|
2261
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2265
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-DLOd6buN.mjs').then(function (n) { return n.a9; });
|
|
2262
2266
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2263
2267
|
} catch {
|
|
2264
2268
|
}
|
|
@@ -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-DLOd6buN.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-zix9Pnz-.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-DLOd6buN.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|