svamp-cli 0.2.161 → 0.2.162
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-CqM3Ce4N.mjs → agentCommands-BQUIj0L3.mjs} +5 -5
- package/dist/{auth-DlKnR7BD.mjs → auth-Nb44v13A.mjs} +1 -1
- package/dist/cli.mjs +59 -59
- package/dist/{commands-DXPIPZk0.mjs → commands-BCr6iO_n.mjs} +2 -2
- package/dist/{commands-Bfgb9Cnw.mjs → commands-Cc-98Ot6.mjs} +5 -5
- package/dist/{commands-BWN9A4-u.mjs → commands-D2Zpi3G8.mjs} +1 -1
- package/dist/{commands-BPFOrPGb.mjs → commands-DVA2p60j.mjs} +2 -2
- package/dist/{commands-B6Qz7d4Y.mjs → commands-PsObXuzm.mjs} +2 -2
- package/dist/{commands-CCnfbzyT.mjs → commands-fyFKlqCv.mjs} +1 -1
- package/dist/{fleet-Ba5muFFb.mjs → fleet-BgpaxJ3S.mjs} +1 -1
- package/dist/{frpc-CGYqyRoB.mjs → frpc-BbpARLqP.mjs} +1 -1
- package/dist/{headlessCli-NES63HKs.mjs → headlessCli-BQKqriom.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-BFQzRYAa.mjs → package-CPitmvF2.mjs} +1 -1
- package/dist/{run-CQWr3Hlu.mjs → run-Dfj1qf30.mjs} +1 -1
- package/dist/{run-D3KFhI-W.mjs → run-KCqpMQJZ.mjs} +15 -15
- package/dist/{serveCommands-NEaK-Yg5.mjs → serveCommands-DMfzU2xe.mjs} +5 -5
- package/dist/{serveManager-6UhlBRky.mjs → serveManager-fwaBwmlm.mjs} +2 -2
- package/dist/{sideband-ChsWwier.mjs → sideband-XblR5fr5.mjs} +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
|
|
|
2
2
|
import { join, dirname } from 'node:path';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
|
|
5
|
-
import { m as shortId } from './run-
|
|
5
|
+
import { m as shortId } from './run-KCqpMQJZ.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-KCqpMQJZ.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-D2Zpi3G8.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-D2Zpi3G8.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-D2Zpi3G8.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-KCqpMQJZ.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-KCqpMQJZ.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-KCqpMQJZ.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-Cc-98Ot6.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-DMfzU2xe.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-BCr6iO_n.mjs');
|
|
365
365
|
let machineId;
|
|
366
366
|
const processArgs = args.slice(1);
|
|
367
367
|
const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
|
|
@@ -383,14 +383,14 @@ async function main() {
|
|
|
383
383
|
await workflowCommand(args.slice(1));
|
|
384
384
|
process.exit(0);
|
|
385
385
|
} else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
|
|
386
|
-
const { routineCommand } = await import('./commands-
|
|
386
|
+
const { routineCommand } = await import('./commands-PsObXuzm.mjs');
|
|
387
387
|
await routineCommand(args.slice(1));
|
|
388
388
|
process.exit(0);
|
|
389
389
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
390
390
|
await handleWiseAgentCommand(args.slice(1));
|
|
391
391
|
process.exit(0);
|
|
392
392
|
} else if (subcommand === "feature" || subcommand === "crew") {
|
|
393
|
-
const { crewCommand } = await import('./commands-
|
|
393
|
+
const { crewCommand } = await import('./commands-DVA2p60j.mjs');
|
|
394
394
|
await crewCommand(args.slice(1));
|
|
395
395
|
process.exit(0);
|
|
396
396
|
} else if (subcommand === "--help" || subcommand === "-h") {
|
|
@@ -398,7 +398,7 @@ async function main() {
|
|
|
398
398
|
} else if (!subcommand || subcommand === "start") {
|
|
399
399
|
await handleInteractiveCommand();
|
|
400
400
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
401
|
-
const pkg = await import('./package-
|
|
401
|
+
const pkg = await import('./package-CPitmvF2.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
402
402
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
403
403
|
} else {
|
|
404
404
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -407,7 +407,7 @@ async function main() {
|
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
409
|
async function handleInteractiveCommand() {
|
|
410
|
-
const { runInteractive } = await import('./run-
|
|
410
|
+
const { runInteractive } = await import('./run-Dfj1qf30.mjs');
|
|
411
411
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
412
412
|
let directory = process.cwd();
|
|
413
413
|
let resumeSessionId;
|
|
@@ -452,7 +452,7 @@ async function handleAgentCommand() {
|
|
|
452
452
|
return;
|
|
453
453
|
}
|
|
454
454
|
if (agentArgs[0] === "list") {
|
|
455
|
-
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-KCqpMQJZ.mjs').then(function (n) { return n.a4; });
|
|
456
456
|
console.log("Known agents:");
|
|
457
457
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
458
458
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -464,7 +464,7 @@ async function handleAgentCommand() {
|
|
|
464
464
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
465
465
|
return;
|
|
466
466
|
}
|
|
467
|
-
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-
|
|
467
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a4; });
|
|
468
468
|
let cwd = process.cwd();
|
|
469
469
|
const filteredArgs = [];
|
|
470
470
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -488,12 +488,12 @@ async function handleAgentCommand() {
|
|
|
488
488
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
489
489
|
let backend;
|
|
490
490
|
if (KNOWN_MCP_AGENTS[config.agentName]) {
|
|
491
|
-
const { CodexMcpBackend } = await import('./run-
|
|
491
|
+
const { CodexMcpBackend } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a5; });
|
|
492
492
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
493
493
|
} else {
|
|
494
|
-
const { AcpBackend } = await import('./run-
|
|
495
|
-
const { GeminiTransport } = await import('./run-
|
|
496
|
-
const { DefaultTransport } = await import('./run-
|
|
494
|
+
const { AcpBackend } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a3; });
|
|
495
|
+
const { GeminiTransport } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a6; });
|
|
496
|
+
const { DefaultTransport } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a2; });
|
|
497
497
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
|
|
498
498
|
backend = new AcpBackend({
|
|
499
499
|
agentName: config.agentName,
|
|
@@ -620,7 +620,7 @@ async function handleSessionCommand() {
|
|
|
620
620
|
process.exit(1);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
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-
|
|
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-D2Zpi3G8.mjs');
|
|
624
624
|
const parseFlagStr = (flag, shortFlag) => {
|
|
625
625
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
626
626
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -688,7 +688,7 @@ async function handleSessionCommand() {
|
|
|
688
688
|
allowDomain.push(sessionArgs[++i]);
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
|
-
const { parseShareArg } = await import('./commands-
|
|
691
|
+
const { parseShareArg } = await import('./commands-D2Zpi3G8.mjs');
|
|
692
692
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
693
693
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
694
694
|
message,
|
|
@@ -773,7 +773,7 @@ async function handleSessionCommand() {
|
|
|
773
773
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
774
774
|
process.exit(1);
|
|
775
775
|
}
|
|
776
|
-
const { sessionEditMessage } = await import('./commands-
|
|
776
|
+
const { sessionEditMessage } = await import('./commands-D2Zpi3G8.mjs');
|
|
777
777
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
778
778
|
} else if (sessionSubcommand === "refine") {
|
|
779
779
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -781,7 +781,7 @@ async function handleSessionCommand() {
|
|
|
781
781
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
782
782
|
process.exit(1);
|
|
783
783
|
}
|
|
784
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
784
|
+
const { sessionRefineLastReply } = await import('./commands-D2Zpi3G8.mjs');
|
|
785
785
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
786
786
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
787
787
|
if (!sessionArgs[1]) {
|
|
@@ -789,7 +789,7 @@ async function handleSessionCommand() {
|
|
|
789
789
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
790
790
|
process.exit(1);
|
|
791
791
|
}
|
|
792
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
792
|
+
const { sessionUndoEdit } = await import('./commands-D2Zpi3G8.mjs');
|
|
793
793
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
794
794
|
} else if (sessionSubcommand === "query") {
|
|
795
795
|
const dir = sessionArgs[1];
|
|
@@ -799,7 +799,7 @@ async function handleSessionCommand() {
|
|
|
799
799
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
800
800
|
process.exit(1);
|
|
801
801
|
}
|
|
802
|
-
const { sessionQuery } = await import('./commands-
|
|
802
|
+
const { sessionQuery } = await import('./commands-D2Zpi3G8.mjs');
|
|
803
803
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
804
804
|
timeout: parseFlagInt("--timeout"),
|
|
805
805
|
json: hasFlag("--json"),
|
|
@@ -832,7 +832,7 @@ async function handleSessionCommand() {
|
|
|
832
832
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
833
833
|
process.exit(1);
|
|
834
834
|
}
|
|
835
|
-
const { sessionApprove } = await import('./commands-
|
|
835
|
+
const { sessionApprove } = await import('./commands-D2Zpi3G8.mjs');
|
|
836
836
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
837
837
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
838
838
|
json: hasFlag("--json")
|
|
@@ -842,7 +842,7 @@ async function handleSessionCommand() {
|
|
|
842
842
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
843
843
|
process.exit(1);
|
|
844
844
|
}
|
|
845
|
-
const { sessionDeny } = await import('./commands-
|
|
845
|
+
const { sessionDeny } = await import('./commands-D2Zpi3G8.mjs');
|
|
846
846
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
847
847
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
848
848
|
json: hasFlag("--json")
|
|
@@ -920,7 +920,7 @@ async function handleSessionCommand() {
|
|
|
920
920
|
console.error("Usage: svamp session set-title <title>");
|
|
921
921
|
process.exit(1);
|
|
922
922
|
}
|
|
923
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
923
|
+
const { sessionSetTitle } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
924
924
|
await sessionSetTitle(title);
|
|
925
925
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
926
926
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -928,7 +928,7 @@ async function handleSessionCommand() {
|
|
|
928
928
|
console.error("Usage: svamp session set-project-description <text>");
|
|
929
929
|
process.exit(1);
|
|
930
930
|
}
|
|
931
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
931
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
932
932
|
await sessionSetProjectDescription(desc);
|
|
933
933
|
} else if (sessionSubcommand === "set-link") {
|
|
934
934
|
const url = sessionArgs[1];
|
|
@@ -937,7 +937,7 @@ async function handleSessionCommand() {
|
|
|
937
937
|
process.exit(1);
|
|
938
938
|
}
|
|
939
939
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
940
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
940
|
+
const { sessionSetLink } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
941
941
|
await sessionSetLink(url, label);
|
|
942
942
|
} else if (sessionSubcommand === "notify") {
|
|
943
943
|
const message = sessionArgs[1];
|
|
@@ -946,7 +946,7 @@ async function handleSessionCommand() {
|
|
|
946
946
|
process.exit(1);
|
|
947
947
|
}
|
|
948
948
|
const level = parseFlagStr("--level") || "info";
|
|
949
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
949
|
+
const { sessionNotify } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
950
950
|
await sessionNotify(message, level);
|
|
951
951
|
} else if (sessionSubcommand === "broadcast") {
|
|
952
952
|
const action = sessionArgs[1];
|
|
@@ -954,7 +954,7 @@ async function handleSessionCommand() {
|
|
|
954
954
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
955
955
|
process.exit(1);
|
|
956
956
|
}
|
|
957
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
957
|
+
const { sessionBroadcast } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
958
958
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
959
959
|
} else if (sessionSubcommand === "inbox") {
|
|
960
960
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -965,7 +965,7 @@ async function handleSessionCommand() {
|
|
|
965
965
|
process.exit(1);
|
|
966
966
|
}
|
|
967
967
|
if (agentSessionId) {
|
|
968
|
-
const { inboxSend } = await import('./agentCommands-
|
|
968
|
+
const { inboxSend } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
969
969
|
await inboxSend(sessionArgs[2], {
|
|
970
970
|
body: sessionArgs[3],
|
|
971
971
|
subject: parseFlagStr("--subject"),
|
|
@@ -980,7 +980,7 @@ async function handleSessionCommand() {
|
|
|
980
980
|
}
|
|
981
981
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
982
982
|
if (agentSessionId && !sessionArgs[2]) {
|
|
983
|
-
const { inboxList } = await import('./agentCommands-
|
|
983
|
+
const { inboxList } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
984
984
|
await inboxList({
|
|
985
985
|
unread: hasFlag("--unread"),
|
|
986
986
|
limit: parseFlagInt("--limit"),
|
|
@@ -1002,7 +1002,7 @@ async function handleSessionCommand() {
|
|
|
1002
1002
|
process.exit(1);
|
|
1003
1003
|
}
|
|
1004
1004
|
if (agentSessionId && !sessionArgs[3]) {
|
|
1005
|
-
const { inboxList } = await import('./agentCommands-
|
|
1005
|
+
const { inboxList } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
1006
1006
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
1007
1007
|
} else if (sessionArgs[3]) {
|
|
1008
1008
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -1012,7 +1012,7 @@ async function handleSessionCommand() {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
} else if (inboxSubcmd === "reply") {
|
|
1014
1014
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1015
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1015
|
+
const { inboxReply } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
1016
1016
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1017
1017
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1018
1018
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1048,7 +1048,7 @@ async function handleMachineCommand() {
|
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
1050
|
if (machineSubcommand === "share") {
|
|
1051
|
-
const { machineShare } = await import('./commands-
|
|
1051
|
+
const { machineShare } = await import('./commands-D2Zpi3G8.mjs');
|
|
1052
1052
|
let machineId;
|
|
1053
1053
|
const shareArgs = [];
|
|
1054
1054
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1099,14 +1099,14 @@ async function handleMachineCommand() {
|
|
|
1099
1099
|
process.exit(1);
|
|
1100
1100
|
}
|
|
1101
1101
|
if (all) {
|
|
1102
|
-
const { fleetExec } = await import('./fleet-
|
|
1102
|
+
const { fleetExec } = await import('./fleet-BgpaxJ3S.mjs');
|
|
1103
1103
|
await fleetExec(command, { cwd });
|
|
1104
1104
|
} else {
|
|
1105
|
-
const { machineExec } = await import('./commands-
|
|
1105
|
+
const { machineExec } = await import('./commands-D2Zpi3G8.mjs');
|
|
1106
1106
|
await machineExec(machineId, command, cwd);
|
|
1107
1107
|
}
|
|
1108
1108
|
} else if (machineSubcommand === "info") {
|
|
1109
|
-
const { machineInfo } = await import('./commands-
|
|
1109
|
+
const { machineInfo } = await import('./commands-D2Zpi3G8.mjs');
|
|
1110
1110
|
let machineId;
|
|
1111
1111
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1112
1112
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1126,10 +1126,10 @@ async function handleMachineCommand() {
|
|
|
1126
1126
|
level = machineArgs[++i];
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1129
|
+
const { machineNotify } = await import('./agentCommands-BQUIj0L3.mjs');
|
|
1130
1130
|
await machineNotify(message, level);
|
|
1131
1131
|
} else if (machineSubcommand === "ls") {
|
|
1132
|
-
const { machineLs } = await import('./commands-
|
|
1132
|
+
const { machineLs } = await import('./commands-D2Zpi3G8.mjs');
|
|
1133
1133
|
let machineId;
|
|
1134
1134
|
let showHidden = false;
|
|
1135
1135
|
let path;
|
|
@@ -1185,20 +1185,20 @@ Examples:
|
|
|
1185
1185
|
};
|
|
1186
1186
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1187
1187
|
if (sub === "status") {
|
|
1188
|
-
const { fleetStatus } = await import('./fleet-
|
|
1188
|
+
const { fleetStatus } = await import('./fleet-BgpaxJ3S.mjs');
|
|
1189
1189
|
await fleetStatus();
|
|
1190
1190
|
} else if (sub === "upgrade-claude") {
|
|
1191
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1191
|
+
const { fleetUpgradeClaude } = await import('./fleet-BgpaxJ3S.mjs');
|
|
1192
1192
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1193
1193
|
} else if (sub === "upgrade-svamp") {
|
|
1194
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1194
|
+
const { fleetUpgradeSvamp } = await import('./fleet-BgpaxJ3S.mjs');
|
|
1195
1195
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1196
1196
|
} else if (sub === "daemon-restart") {
|
|
1197
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1197
|
+
const { fleetDaemonRestart } = await import('./fleet-BgpaxJ3S.mjs');
|
|
1198
1198
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1199
1199
|
} else if (sub === "push-skill") {
|
|
1200
1200
|
const name = fleetArgs[1];
|
|
1201
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1201
|
+
const { fleetPushSkill } = await import('./fleet-BgpaxJ3S.mjs');
|
|
1202
1202
|
await fleetPushSkill(name);
|
|
1203
1203
|
} else {
|
|
1204
1204
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1214,7 +1214,7 @@ async function handleSkillsCommand() {
|
|
|
1214
1214
|
await printSkillsHelp();
|
|
1215
1215
|
return;
|
|
1216
1216
|
}
|
|
1217
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1217
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-fyFKlqCv.mjs');
|
|
1218
1218
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1219
1219
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1220
1220
|
if (!query) {
|
|
@@ -1261,7 +1261,7 @@ async function loginToHypha() {
|
|
|
1261
1261
|
process.exit(1);
|
|
1262
1262
|
}
|
|
1263
1263
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1264
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1264
|
+
const { loadInstanceConfig } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a8; });
|
|
1265
1265
|
let cfg = null;
|
|
1266
1266
|
try {
|
|
1267
1267
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1372,7 +1372,7 @@ async function logoutFromHypha() {
|
|
|
1372
1372
|
} catch {
|
|
1373
1373
|
}
|
|
1374
1374
|
try {
|
|
1375
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1375
|
+
const { clearInstanceConfigCache } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a8; });
|
|
1376
1376
|
clearInstanceConfigCache();
|
|
1377
1377
|
} catch {
|
|
1378
1378
|
}
|
|
@@ -1710,7 +1710,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1710
1710
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1711
1711
|
);
|
|
1712
1712
|
}
|
|
1713
|
-
const mod = await import('./run-
|
|
1713
|
+
const mod = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a7; });
|
|
1714
1714
|
if (hasHypha) {
|
|
1715
1715
|
let url;
|
|
1716
1716
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1764,7 +1764,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
if (collected.length === 0) return;
|
|
1767
|
-
const { updateEnvFile } = await import('./run-
|
|
1767
|
+
const { updateEnvFile } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a7; });
|
|
1768
1768
|
const seen = /* @__PURE__ */ new Set();
|
|
1769
1769
|
const deduped = collected.filter((e) => {
|
|
1770
1770
|
const k = e.toLowerCase();
|
|
@@ -1797,7 +1797,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
});
|
|
1799
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(" ");
|
|
1800
|
-
const { wiseAskCli } = await import('./commands-
|
|
1800
|
+
const { wiseAskCli } = await import('./commands-D2Zpi3G8.mjs');
|
|
1801
1801
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1802
1802
|
return;
|
|
1803
1803
|
}
|
|
@@ -1809,7 +1809,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
return void 0;
|
|
1811
1811
|
};
|
|
1812
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1812
|
+
const { runWiseVoiceCli } = await import('./headlessCli-BQKqriom.mjs');
|
|
1813
1813
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1814
1814
|
return;
|
|
1815
1815
|
}
|
|
@@ -1827,7 +1827,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1827
1827
|
const mode = valueOf(["--mode"]);
|
|
1828
1828
|
const mission = valueOf(["--mission"]);
|
|
1829
1829
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1830
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1830
|
+
const { wiseJoinMeetingCli } = await import('./commands-D2Zpi3G8.mjs');
|
|
1831
1831
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1832
1832
|
return;
|
|
1833
1833
|
}
|
|
@@ -1839,7 +1839,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return void 0;
|
|
1841
1841
|
};
|
|
1842
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1842
|
+
const { wiseLeaveMeetingCli } = await import('./commands-D2Zpi3G8.mjs');
|
|
1843
1843
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1844
1844
|
return;
|
|
1845
1845
|
}
|
|
@@ -1863,7 +1863,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
});
|
|
1865
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(" ");
|
|
1866
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
1866
|
+
const { wiseAnnounceCli } = await import('./commands-D2Zpi3G8.mjs');
|
|
1867
1867
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1868
1868
|
return;
|
|
1869
1869
|
}
|
|
@@ -1875,7 +1875,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1875
1875
|
}
|
|
1876
1876
|
return void 0;
|
|
1877
1877
|
};
|
|
1878
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1878
|
+
const { wiseMeetingsCli } = await import('./commands-D2Zpi3G8.mjs');
|
|
1879
1879
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1880
1880
|
return;
|
|
1881
1881
|
}
|
|
@@ -1925,7 +1925,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1925
1925
|
return;
|
|
1926
1926
|
}
|
|
1927
1927
|
const authArgs = rest.slice(1);
|
|
1928
|
-
const mod = await import('./auth-
|
|
1928
|
+
const mod = await import('./auth-Nb44v13A.mjs');
|
|
1929
1929
|
let action;
|
|
1930
1930
|
try {
|
|
1931
1931
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1935,7 +1935,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1935
1935
|
return;
|
|
1936
1936
|
}
|
|
1937
1937
|
if (action) {
|
|
1938
|
-
const { updateEnvFile } = await import('./run-
|
|
1938
|
+
const { updateEnvFile } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a7; });
|
|
1939
1939
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1940
1940
|
updateEnvFile(updates);
|
|
1941
1941
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1949,7 +1949,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1949
1949
|
}
|
|
1950
1950
|
async function handleDaemonAuthCommand(argv) {
|
|
1951
1951
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1952
|
-
const mod = await import('./run-
|
|
1952
|
+
const mod = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a7; });
|
|
1953
1953
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1954
1954
|
console.log(`
|
|
1955
1955
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2262,7 +2262,7 @@ Examples:
|
|
|
2262
2262
|
async function printSkillsHelp() {
|
|
2263
2263
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2264
2264
|
try {
|
|
2265
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2265
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-KCqpMQJZ.mjs').then(function (n) { return n.a9; });
|
|
2266
2266
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2267
2267
|
} catch {
|
|
2268
2268
|
}
|
|
@@ -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-D2Zpi3G8.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-KCqpMQJZ.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-BbpARLqP.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-D2Zpi3G8.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-BbpARLqP.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-D2Zpi3G8.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-D2Zpi3G8.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 validateChecklist, Q as computeOutboundHop, m as shortId, T as buildMachineShareUrl, U as summarize, V as newItem, W as parseHandle, X as handleMatchesMetadata } from './run-
|
|
5
|
+
import { I as formatHandle, J as normalizeAllowedUser, K as loadSecurityContextConfig, L as resolveSecurityContext, M as buildSecurityContextFromFlags, N as mergeSecurityContexts, c as connectToHypha, O as buildSessionShareUrl, P as validateChecklist, Q as computeOutboundHop, m as shortId, T as buildMachineShareUrl, U as summarize, V as newItem, W as parseHandle, X as handleMatchesMetadata } from './run-KCqpMQJZ.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
|
-
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-
|
|
2
|
+
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-D2Zpi3G8.mjs';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
|
-
import { m as shortId } from './run-
|
|
4
|
+
import { m as shortId } from './run-KCqpMQJZ.mjs';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
@@ -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-KCqpMQJZ.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-D2Zpi3G8.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-KCqpMQJZ.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -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-KCqpMQJZ.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-KCqpMQJZ.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { D as resolveModel, Y as describeMisconfiguration, Z as buildMachineDeps } from './run-KCqpMQJZ.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-XblR5fr5.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-KCqpMQJZ.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { _ as composeSessionId, $ as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a0 as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { _ as composeSessionId, $ as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a0 as generateHookSettings } from './run-KCqpMQJZ.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';
|
|
@@ -424,15 +424,16 @@ function buildTools(deps, skills) {
|
|
|
424
424
|
{
|
|
425
425
|
name: "send_to_session",
|
|
426
426
|
readOnly: false,
|
|
427
|
-
description: "Hand a clear, reformulated instruction to the deep Claude session agent (when the caller wants it to DO something).
|
|
428
|
-
parameters: { type: "object", properties: { message: { type: "string", description: "The instruction for the coding agent." }, wait: { type: "boolean", description: "
|
|
427
|
+
description: "Hand a clear, reformulated instruction to the deep Claude session agent (when the caller wants it to DO something). Two modes: wait=true (SYNC) blocks for its reply and returns it \u2014 for QUICK tasks; wait=false (ASYNC, default) fires-and-forgets \u2014 the deep agent works in the background and reports back, and you can poll get_context. Use ASYNC for heavy work (build/fix/analysis/slides).",
|
|
428
|
+
parameters: { type: "object", properties: { message: { type: "string", description: "The instruction for the coding agent." }, wait: { type: "boolean", description: "true = SYNC (block for reply, quick tasks); false = ASYNC report-back (default)." } }, required: ["message"], additionalProperties: false },
|
|
429
429
|
run: async (a) => {
|
|
430
|
-
|
|
431
|
-
if (a?.wait
|
|
432
|
-
const
|
|
433
|
-
return
|
|
430
|
+
const msg = str$1(a?.message);
|
|
431
|
+
if (a?.wait) {
|
|
432
|
+
const reply = (await deps.askSession(msg) || "").trim();
|
|
433
|
+
return reply || "(the deep agent did not reply in time \u2014 poll get_context, or it will report back when done)";
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
await deps.sessionSend(msg);
|
|
436
|
+
return "(handed off to the deep agent \u2014 it works asynchronously and will report the result back; call get_context to poll progress)";
|
|
436
437
|
}
|
|
437
438
|
},
|
|
438
439
|
// Create routine / loop / channel. ONLY call after the caller confirmed the
|
|
@@ -2771,7 +2772,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
2771
2772
|
const tunnels = handlers.tunnels;
|
|
2772
2773
|
if (!tunnels) throw new Error("Tunnel management not available");
|
|
2773
2774
|
if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
|
|
2774
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
2775
|
+
const { FrpcTunnel } = await import('./frpc-BbpARLqP.mjs');
|
|
2775
2776
|
const tunnel = new FrpcTunnel({
|
|
2776
2777
|
name: params.name,
|
|
2777
2778
|
ports: params.ports,
|
|
@@ -3212,7 +3213,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3212
3213
|
}
|
|
3213
3214
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
3214
3215
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
3215
|
-
const { toolsForRole } = await import('./sideband-
|
|
3216
|
+
const { toolsForRole } = await import('./sideband-XblR5fr5.mjs');
|
|
3216
3217
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
3217
3218
|
return fmt(r2);
|
|
3218
3219
|
}
|
|
@@ -3311,7 +3312,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3311
3312
|
if (r.error || !r.sender) return { error: r.error || "unauthorized" };
|
|
3312
3313
|
const callId = "call_" + Math.random().toString(16).slice(2, 12);
|
|
3313
3314
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
3314
|
-
const { queryCore } = await import('./commands-
|
|
3315
|
+
const { queryCore } = await import('./commands-D2Zpi3G8.mjs');
|
|
3315
3316
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3316
3317
|
let result;
|
|
3317
3318
|
try {
|
|
@@ -4379,11 +4380,10 @@ function createSessionStore(server, sessionId, initialMetadata, initialAgentStat
|
|
|
4379
4380
|
const tool = tools.find((t) => t.name === name);
|
|
4380
4381
|
if (!tool) return { error: `tool not available on this channel: ${name}` };
|
|
4381
4382
|
let args = params.args && typeof params.args === "object" ? { ...params.args } : {};
|
|
4382
|
-
if (name === "send_to_session" && (c.id || "").startsWith("meeting-") && args.message) {
|
|
4383
|
+
if (name === "send_to_session" && (c.id || "").startsWith("meeting-") && args.message && !args.wait) {
|
|
4383
4384
|
args.message = `${args.message}
|
|
4384
4385
|
|
|
4385
|
-
[This task was delegated from a LIVE meeting. When finished: run \`svamp serve <name> <dir>\` to share any artifact (HTML/report/slides), then \`svamp wise announce "<one-line status + the share link>"\` so the meeting hears the result.
|
|
4386
|
-
args.wait = false;
|
|
4386
|
+
[This task was delegated from a LIVE meeting. When finished: run \`svamp serve <name> <dir>\` to share any artifact (HTML/report/slides), then \`svamp wise announce "<one-line status + the share link>"\` so the meeting hears the result. Work async and announce when done.]`;
|
|
4387
4387
|
}
|
|
4388
4388
|
const out = await tool.run(args);
|
|
4389
4389
|
return { ok: true, result: typeof out === "string" ? out : JSON.stringify(out) };
|
|
@@ -11816,7 +11816,7 @@ async function startDaemon(options) {
|
|
|
11816
11816
|
saveExposedTunnels(list);
|
|
11817
11817
|
}
|
|
11818
11818
|
async function createExposedTunnel(spec) {
|
|
11819
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
11819
|
+
const { FrpcTunnel } = await import('./frpc-BbpARLqP.mjs');
|
|
11820
11820
|
const tunnel = new FrpcTunnel({
|
|
11821
11821
|
name: spec.name,
|
|
11822
11822
|
ports: spec.ports,
|
|
@@ -11836,7 +11836,7 @@ async function startDaemon(options) {
|
|
|
11836
11836
|
return tunnel;
|
|
11837
11837
|
}
|
|
11838
11838
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
11839
|
-
const { ServeManager } = await import('./serveManager-
|
|
11839
|
+
const { ServeManager } = await import('./serveManager-fwaBwmlm.mjs');
|
|
11840
11840
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
11841
11841
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
11842
11842
|
});
|
|
@@ -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-D2Zpi3G8.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-D2Zpi3G8.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-D2Zpi3G8.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-D2Zpi3G8.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-D2Zpi3G8.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-KCqpMQJZ.mjs';
|
|
8
8
|
import 'os';
|
|
9
9
|
import 'fs/promises';
|
|
10
10
|
import 'url';
|
|
@@ -733,7 +733,7 @@ class ServeManager {
|
|
|
733
733
|
const mount = this.mounts.get(mountName);
|
|
734
734
|
const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, buildLinkSubdomain(subdomainSafe, mount.linkToken)]]) : void 0;
|
|
735
735
|
try {
|
|
736
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
736
|
+
const { FrpcTunnel } = await import('./frpc-BbpARLqP.mjs');
|
|
737
737
|
let tunnel;
|
|
738
738
|
tunnel = new FrpcTunnel({
|
|
739
739
|
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-KCqpMQJZ.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|