svamp-cli 0.2.221 → 0.2.223-canary.0
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-DSuseMnA.mjs → agentCommands-XFwfIP8t.mjs} +5 -5
- package/dist/{auth-BJnvX133.mjs → auth-ZelAjQgR.mjs} +1 -1
- package/dist/cli.mjs +63 -62
- package/dist/{commands-BZlezQUp.mjs → commands--mffGLDo.mjs} +2 -1
- package/dist/{commands-BNIGQu4F.mjs → commands-0-p0_Ihj.mjs} +6 -6
- package/dist/{commands-DkIXEVmH.mjs → commands-BCwGoQYd.mjs} +1 -1
- package/dist/{commands-BXU_kWD5.mjs → commands-B_yPLNAg.mjs} +1 -1
- package/dist/{commands-XNibogq2.mjs → commands-BuTp61Uf.mjs} +2 -2
- package/dist/{commands-BuAH1hbT.mjs → commands-CeOgNrdh.mjs} +1 -1
- package/dist/{commands-c_AyeFhu.mjs → commands-stbb2B_L.mjs} +2 -2
- package/dist/{fleet-3DWzy3Ug.mjs → fleet-D2zF6u6f.mjs} +1 -1
- package/dist/{frpc-BBuB68o-.mjs → frpc-DIoFs_Y2.mjs} +1 -1
- package/dist/{headlessCli-DC84Bk-k.mjs → headlessCli-Dtwn8Uqb.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-DHiC7MHi.mjs → package-RXqJgXUA.mjs} +1 -1
- package/dist/{rpc-DYFbcVha.mjs → rpc-C1-Fclhr.mjs} +1 -1
- package/dist/{rpc-B-o36NVg.mjs → rpc-CerJ1Je0.mjs} +1 -1
- package/dist/{run-BLG1uhad.mjs → run-B2TKYnlZ.mjs} +39 -66
- package/dist/{run-w7dUHUAg.mjs → run-BPFKqatD.mjs} +1 -1
- package/dist/{scheduler-BnCIxKPW.mjs → scheduler-DZ4vEEWe.mjs} +1 -1
- package/dist/{serveCommands-BxDTJem9.mjs → serveCommands-DOfz-q3u.mjs} +5 -5
- package/dist/{serveManager-MR7XJuvS.mjs → serveManager-BQJD-Oau.mjs} +2 -2
- package/dist/{sideband-D4EHhsI3.mjs → sideband-9tmwXrbC.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 { A as shortId } from './run-
|
|
5
|
+
import { A as shortId } from './run-B2TKYnlZ.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-B2TKYnlZ.mjs').then(function (n) { return n.a8; });
|
|
100
100
|
const desc = sanitizeDescription(description, 240);
|
|
101
101
|
if (!desc) {
|
|
102
102
|
console.error("Project description is empty.");
|
|
@@ -327,7 +327,7 @@ async function sessionBroadcast(action, args) {
|
|
|
327
327
|
console.log(`Broadcast sent: ${action}`);
|
|
328
328
|
}
|
|
329
329
|
async function connectToMachineService() {
|
|
330
|
-
const { connectAndGetMachine } = await import('./commands
|
|
330
|
+
const { connectAndGetMachine } = await import('./commands--mffGLDo.mjs');
|
|
331
331
|
return connectAndGetMachine();
|
|
332
332
|
}
|
|
333
333
|
function buildInboxMessage(args) {
|
|
@@ -405,7 +405,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
405
405
|
console.error("Message body is required.");
|
|
406
406
|
process.exit(1);
|
|
407
407
|
}
|
|
408
|
-
const { connectAndResolveSession } = await import('./commands
|
|
408
|
+
const { connectAndResolveSession } = await import('./commands--mffGLDo.mjs');
|
|
409
409
|
let server;
|
|
410
410
|
try {
|
|
411
411
|
const { targetId, messageId } = await inboxSendCore(
|
|
@@ -459,7 +459,7 @@ async function inboxReply(messageId, body) {
|
|
|
459
459
|
console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
|
|
460
460
|
process.exit(1);
|
|
461
461
|
}
|
|
462
|
-
const { connectAndResolveSession } = await import('./commands
|
|
462
|
+
const { connectAndResolveSession } = await import('./commands--mffGLDo.mjs');
|
|
463
463
|
const { server: localServer, machine: localMachine } = await connectToMachineService();
|
|
464
464
|
let localDisconnected = false;
|
|
465
465
|
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-B2TKYnlZ.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-B2TKYnlZ.mjs').then(function (n) { return n.ae; });
|
|
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-B2TKYnlZ.mjs').then(function (n) { return n.ag; });
|
|
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-0-p0_Ihj.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-DOfz-q3u.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-BuTp61Uf.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,18 @@ 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-BCwGoQYd.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
382
|
-
const { workflowCommand } = await import('./commands-
|
|
382
|
+
const { workflowCommand } = await import('./commands-CeOgNrdh.mjs');
|
|
383
383
|
await workflowCommand(args.slice(1));
|
|
384
384
|
process.exit(0);
|
|
385
385
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
386
386
|
await handleWiseAgentCommand(args.slice(1));
|
|
387
387
|
process.exit(0);
|
|
388
388
|
} else if (subcommand === "feature" || subcommand === "crew") {
|
|
389
|
-
const { crewCommand } = await import('./commands-
|
|
389
|
+
const { crewCommand } = await import('./commands-stbb2B_L.mjs');
|
|
390
390
|
await crewCommand(args.slice(1));
|
|
391
391
|
process.exit(0);
|
|
392
392
|
} else if (subcommand === "--help" || subcommand === "-h") {
|
|
@@ -394,7 +394,7 @@ async function main() {
|
|
|
394
394
|
} else if (!subcommand || subcommand === "start") {
|
|
395
395
|
await handleInteractiveCommand();
|
|
396
396
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
397
|
-
const pkg = await import('./package-
|
|
397
|
+
const pkg = await import('./package-RXqJgXUA.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
398
398
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
399
399
|
} else {
|
|
400
400
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -403,7 +403,7 @@ async function main() {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
async function handleInteractiveCommand() {
|
|
406
|
-
const { runInteractive } = await import('./run-
|
|
406
|
+
const { runInteractive } = await import('./run-BPFKqatD.mjs');
|
|
407
407
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
408
408
|
let directory = process.cwd();
|
|
409
409
|
let resumeSessionId;
|
|
@@ -448,7 +448,7 @@ async function handleAgentCommand() {
|
|
|
448
448
|
return;
|
|
449
449
|
}
|
|
450
450
|
if (agentArgs[0] === "list") {
|
|
451
|
-
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-
|
|
451
|
+
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.ab; });
|
|
452
452
|
console.log("Known agents:");
|
|
453
453
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
454
454
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -460,7 +460,7 @@ async function handleAgentCommand() {
|
|
|
460
460
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
|
-
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-
|
|
463
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.ab; });
|
|
464
464
|
let cwd = process.cwd();
|
|
465
465
|
const filteredArgs = [];
|
|
466
466
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -484,12 +484,12 @@ async function handleAgentCommand() {
|
|
|
484
484
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
485
485
|
let backend;
|
|
486
486
|
if (KNOWN_MCP_AGENTS[config.agentName]) {
|
|
487
|
-
const { CodexMcpBackend } = await import('./run-
|
|
487
|
+
const { CodexMcpBackend } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.ac; });
|
|
488
488
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
489
489
|
} else {
|
|
490
|
-
const { AcpBackend } = await import('./run-
|
|
491
|
-
const { GeminiTransport } = await import('./run-
|
|
492
|
-
const { DefaultTransport } = await import('./run-
|
|
490
|
+
const { AcpBackend } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.aa; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.ad; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.a9; });
|
|
493
493
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
|
|
494
494
|
backend = new AcpBackend({
|
|
495
495
|
agentName: config.agentName,
|
|
@@ -616,7 +616,7 @@ async function handleSessionCommand() {
|
|
|
616
616
|
process.exit(1);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands
|
|
619
|
+
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands--mffGLDo.mjs');
|
|
620
620
|
const parseFlagStr = (flag, shortFlag) => {
|
|
621
621
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
622
622
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -684,7 +684,7 @@ async function handleSessionCommand() {
|
|
|
684
684
|
allowDomain.push(sessionArgs[++i]);
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
const { parseShareArg } = await import('./commands
|
|
687
|
+
const { parseShareArg } = await import('./commands--mffGLDo.mjs');
|
|
688
688
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
689
689
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
690
690
|
message,
|
|
@@ -771,7 +771,7 @@ async function handleSessionCommand() {
|
|
|
771
771
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
772
772
|
process.exit(1);
|
|
773
773
|
}
|
|
774
|
-
const { sessionEditMessage } = await import('./commands
|
|
774
|
+
const { sessionEditMessage } = await import('./commands--mffGLDo.mjs');
|
|
775
775
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
776
776
|
} else if (sessionSubcommand === "refine") {
|
|
777
777
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -779,7 +779,7 @@ async function handleSessionCommand() {
|
|
|
779
779
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
780
780
|
process.exit(1);
|
|
781
781
|
}
|
|
782
|
-
const { sessionRefineLastReply } = await import('./commands
|
|
782
|
+
const { sessionRefineLastReply } = await import('./commands--mffGLDo.mjs');
|
|
783
783
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
784
784
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
785
785
|
if (!sessionArgs[1]) {
|
|
@@ -787,7 +787,7 @@ async function handleSessionCommand() {
|
|
|
787
787
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
788
788
|
process.exit(1);
|
|
789
789
|
}
|
|
790
|
-
const { sessionUndoEdit } = await import('./commands
|
|
790
|
+
const { sessionUndoEdit } = await import('./commands--mffGLDo.mjs');
|
|
791
791
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
792
792
|
} else if (sessionSubcommand === "query") {
|
|
793
793
|
const dir = sessionArgs[1];
|
|
@@ -797,7 +797,7 @@ async function handleSessionCommand() {
|
|
|
797
797
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
798
798
|
process.exit(1);
|
|
799
799
|
}
|
|
800
|
-
const { sessionQuery } = await import('./commands
|
|
800
|
+
const { sessionQuery } = await import('./commands--mffGLDo.mjs');
|
|
801
801
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
802
802
|
timeout: parseFlagInt("--timeout"),
|
|
803
803
|
json: hasFlag("--json"),
|
|
@@ -830,7 +830,7 @@ async function handleSessionCommand() {
|
|
|
830
830
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
831
831
|
process.exit(1);
|
|
832
832
|
}
|
|
833
|
-
const { sessionApprove } = await import('./commands
|
|
833
|
+
const { sessionApprove } = await import('./commands--mffGLDo.mjs');
|
|
834
834
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
835
835
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
836
836
|
json: hasFlag("--json")
|
|
@@ -840,7 +840,7 @@ async function handleSessionCommand() {
|
|
|
840
840
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
841
841
|
process.exit(1);
|
|
842
842
|
}
|
|
843
|
-
const { sessionDeny } = await import('./commands
|
|
843
|
+
const { sessionDeny } = await import('./commands--mffGLDo.mjs');
|
|
844
844
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
845
845
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
846
846
|
json: hasFlag("--json")
|
|
@@ -864,7 +864,8 @@ async function handleSessionCommand() {
|
|
|
864
864
|
maxIterations: parseFlagInt("--max") ?? parseFlagInt("--max-iterations") ?? parseFlagInt("--max-rounds"),
|
|
865
865
|
maxTokensPerHour: parseFlagInt("--max-tokens-per-hour"),
|
|
866
866
|
maxRuntimeSec: parseFlagInt("--max-runtime") ?? parseFlagInt("--max-runtime-sec"),
|
|
867
|
-
evaluator: evalStr ? evalStr !== "off" : void 0
|
|
867
|
+
evaluator: evalStr ? evalStr !== "off" : void 0,
|
|
868
|
+
engine: parseFlagStr("--engine")
|
|
868
869
|
});
|
|
869
870
|
} else if (sessionSubcommand === "loop-cancel") {
|
|
870
871
|
if (!sessionArgs[1]) {
|
|
@@ -884,7 +885,7 @@ async function handleSessionCommand() {
|
|
|
884
885
|
console.error("Usage: svamp session set-title <title>");
|
|
885
886
|
process.exit(1);
|
|
886
887
|
}
|
|
887
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
888
|
+
const { sessionSetTitle } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
888
889
|
await sessionSetTitle(title);
|
|
889
890
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
890
891
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -892,7 +893,7 @@ async function handleSessionCommand() {
|
|
|
892
893
|
console.error("Usage: svamp session set-project-description <text>");
|
|
893
894
|
process.exit(1);
|
|
894
895
|
}
|
|
895
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
896
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
896
897
|
await sessionSetProjectDescription(desc);
|
|
897
898
|
} else if (sessionSubcommand === "set-link") {
|
|
898
899
|
const url = sessionArgs[1];
|
|
@@ -901,11 +902,11 @@ async function handleSessionCommand() {
|
|
|
901
902
|
process.exit(1);
|
|
902
903
|
}
|
|
903
904
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
904
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
905
|
+
const { sessionSetLink } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
905
906
|
await sessionSetLink(url, label);
|
|
906
907
|
} else if (sessionSubcommand === "link") {
|
|
907
908
|
const op = sessionArgs[1];
|
|
908
|
-
const lm = await import('./agentCommands-
|
|
909
|
+
const lm = await import('./agentCommands-XFwfIP8t.mjs');
|
|
909
910
|
if (op === "add") {
|
|
910
911
|
const url = sessionArgs[2];
|
|
911
912
|
if (!url || url.startsWith("--")) {
|
|
@@ -940,7 +941,7 @@ async function handleSessionCommand() {
|
|
|
940
941
|
process.exit(1);
|
|
941
942
|
}
|
|
942
943
|
const level = parseFlagStr("--level") || "info";
|
|
943
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
944
|
+
const { sessionNotify } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
944
945
|
await sessionNotify(message, level);
|
|
945
946
|
} else if (sessionSubcommand === "broadcast") {
|
|
946
947
|
const action = sessionArgs[1];
|
|
@@ -948,7 +949,7 @@ async function handleSessionCommand() {
|
|
|
948
949
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
949
950
|
process.exit(1);
|
|
950
951
|
}
|
|
951
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
952
|
+
const { sessionBroadcast } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
952
953
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
953
954
|
} else if (sessionSubcommand === "inbox") {
|
|
954
955
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -959,7 +960,7 @@ async function handleSessionCommand() {
|
|
|
959
960
|
process.exit(1);
|
|
960
961
|
}
|
|
961
962
|
if (agentSessionId) {
|
|
962
|
-
const { inboxSend } = await import('./agentCommands-
|
|
963
|
+
const { inboxSend } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
963
964
|
await inboxSend(sessionArgs[2], {
|
|
964
965
|
body: sessionArgs[3],
|
|
965
966
|
subject: parseFlagStr("--subject"),
|
|
@@ -974,7 +975,7 @@ async function handleSessionCommand() {
|
|
|
974
975
|
}
|
|
975
976
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
976
977
|
if (agentSessionId && !sessionArgs[2]) {
|
|
977
|
-
const { inboxList } = await import('./agentCommands-
|
|
978
|
+
const { inboxList } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
978
979
|
await inboxList({
|
|
979
980
|
unread: hasFlag("--unread"),
|
|
980
981
|
limit: parseFlagInt("--limit"),
|
|
@@ -996,7 +997,7 @@ async function handleSessionCommand() {
|
|
|
996
997
|
process.exit(1);
|
|
997
998
|
}
|
|
998
999
|
if (agentSessionId && !sessionArgs[3]) {
|
|
999
|
-
const { inboxList } = await import('./agentCommands-
|
|
1000
|
+
const { inboxList } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
1000
1001
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
1001
1002
|
} else if (sessionArgs[3]) {
|
|
1002
1003
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -1006,7 +1007,7 @@ async function handleSessionCommand() {
|
|
|
1006
1007
|
}
|
|
1007
1008
|
} else if (inboxSubcmd === "reply") {
|
|
1008
1009
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1009
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1010
|
+
const { inboxReply } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
1010
1011
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1011
1012
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1012
1013
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1044,7 +1045,7 @@ async function handleMachineCommand() {
|
|
|
1044
1045
|
return;
|
|
1045
1046
|
}
|
|
1046
1047
|
if (machineSubcommand === "share") {
|
|
1047
|
-
const { machineShare } = await import('./commands
|
|
1048
|
+
const { machineShare } = await import('./commands--mffGLDo.mjs');
|
|
1048
1049
|
let machineId;
|
|
1049
1050
|
const shareArgs = [];
|
|
1050
1051
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1095,14 +1096,14 @@ async function handleMachineCommand() {
|
|
|
1095
1096
|
process.exit(1);
|
|
1096
1097
|
}
|
|
1097
1098
|
if (all) {
|
|
1098
|
-
const { fleetExec } = await import('./fleet-
|
|
1099
|
+
const { fleetExec } = await import('./fleet-D2zF6u6f.mjs');
|
|
1099
1100
|
await fleetExec(command, { cwd });
|
|
1100
1101
|
} else {
|
|
1101
|
-
const { machineExec } = await import('./commands
|
|
1102
|
+
const { machineExec } = await import('./commands--mffGLDo.mjs');
|
|
1102
1103
|
await machineExec(machineId, command, cwd);
|
|
1103
1104
|
}
|
|
1104
1105
|
} else if (machineSubcommand === "info") {
|
|
1105
|
-
const { machineInfo } = await import('./commands
|
|
1106
|
+
const { machineInfo } = await import('./commands--mffGLDo.mjs');
|
|
1106
1107
|
let machineId;
|
|
1107
1108
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1108
1109
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1122,10 +1123,10 @@ async function handleMachineCommand() {
|
|
|
1122
1123
|
level = machineArgs[++i];
|
|
1123
1124
|
}
|
|
1124
1125
|
}
|
|
1125
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1126
|
+
const { machineNotify } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
1126
1127
|
await machineNotify(message, level);
|
|
1127
1128
|
} else if (machineSubcommand === "ls") {
|
|
1128
|
-
const { machineLs } = await import('./commands
|
|
1129
|
+
const { machineLs } = await import('./commands--mffGLDo.mjs');
|
|
1129
1130
|
let machineId;
|
|
1130
1131
|
let showHidden = false;
|
|
1131
1132
|
let path;
|
|
@@ -1181,20 +1182,20 @@ Examples:
|
|
|
1181
1182
|
};
|
|
1182
1183
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1183
1184
|
if (sub === "status") {
|
|
1184
|
-
const { fleetStatus } = await import('./fleet-
|
|
1185
|
+
const { fleetStatus } = await import('./fleet-D2zF6u6f.mjs');
|
|
1185
1186
|
await fleetStatus();
|
|
1186
1187
|
} else if (sub === "upgrade-claude") {
|
|
1187
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1188
|
+
const { fleetUpgradeClaude } = await import('./fleet-D2zF6u6f.mjs');
|
|
1188
1189
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1189
1190
|
} else if (sub === "upgrade-svamp") {
|
|
1190
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1191
|
+
const { fleetUpgradeSvamp } = await import('./fleet-D2zF6u6f.mjs');
|
|
1191
1192
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1192
1193
|
} else if (sub === "daemon-restart") {
|
|
1193
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1194
|
+
const { fleetDaemonRestart } = await import('./fleet-D2zF6u6f.mjs');
|
|
1194
1195
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1195
1196
|
} else if (sub === "push-skill") {
|
|
1196
1197
|
const name = fleetArgs[1];
|
|
1197
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1198
|
+
const { fleetPushSkill } = await import('./fleet-D2zF6u6f.mjs');
|
|
1198
1199
|
await fleetPushSkill(name);
|
|
1199
1200
|
} else {
|
|
1200
1201
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1210,7 +1211,7 @@ async function handleSkillsCommand() {
|
|
|
1210
1211
|
await printSkillsHelp();
|
|
1211
1212
|
return;
|
|
1212
1213
|
}
|
|
1213
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1214
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-B_yPLNAg.mjs');
|
|
1214
1215
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1215
1216
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1216
1217
|
if (!query) {
|
|
@@ -1257,7 +1258,7 @@ async function loginToHypha() {
|
|
|
1257
1258
|
process.exit(1);
|
|
1258
1259
|
}
|
|
1259
1260
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1260
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1261
|
+
const { loadInstanceConfig } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.ae; });
|
|
1261
1262
|
let cfg = null;
|
|
1262
1263
|
try {
|
|
1263
1264
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1368,7 +1369,7 @@ async function logoutFromHypha() {
|
|
|
1368
1369
|
} catch {
|
|
1369
1370
|
}
|
|
1370
1371
|
try {
|
|
1371
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1372
|
+
const { clearInstanceConfigCache } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.ae; });
|
|
1372
1373
|
clearInstanceConfigCache();
|
|
1373
1374
|
} catch {
|
|
1374
1375
|
}
|
|
@@ -1706,7 +1707,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1706
1707
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1707
1708
|
);
|
|
1708
1709
|
}
|
|
1709
|
-
const mod = await import('./run-
|
|
1710
|
+
const mod = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.a7; });
|
|
1710
1711
|
if (hasHypha) {
|
|
1711
1712
|
let url;
|
|
1712
1713
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1760,7 +1761,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1760
1761
|
}
|
|
1761
1762
|
}
|
|
1762
1763
|
if (collected.length === 0) return;
|
|
1763
|
-
const { updateEnvFile } = await import('./run-
|
|
1764
|
+
const { updateEnvFile } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.a7; });
|
|
1764
1765
|
const seen = /* @__PURE__ */ new Set();
|
|
1765
1766
|
const deduped = collected.filter((e) => {
|
|
1766
1767
|
const k = e.toLowerCase();
|
|
@@ -1793,7 +1794,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1793
1794
|
}
|
|
1794
1795
|
});
|
|
1795
1796
|
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
|
|
1797
|
+
const { wiseAskCli } = await import('./commands--mffGLDo.mjs');
|
|
1797
1798
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1798
1799
|
return;
|
|
1799
1800
|
}
|
|
@@ -1805,7 +1806,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1805
1806
|
}
|
|
1806
1807
|
return void 0;
|
|
1807
1808
|
};
|
|
1808
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1809
|
+
const { runWiseVoiceCli } = await import('./headlessCli-Dtwn8Uqb.mjs');
|
|
1809
1810
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1810
1811
|
return;
|
|
1811
1812
|
}
|
|
@@ -1823,7 +1824,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1823
1824
|
const mode = valueOf(["--mode"]);
|
|
1824
1825
|
const mission = valueOf(["--mission"]);
|
|
1825
1826
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1826
|
-
const { wiseJoinMeetingCli } = await import('./commands
|
|
1827
|
+
const { wiseJoinMeetingCli } = await import('./commands--mffGLDo.mjs');
|
|
1827
1828
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1828
1829
|
return;
|
|
1829
1830
|
}
|
|
@@ -1835,7 +1836,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1835
1836
|
}
|
|
1836
1837
|
return void 0;
|
|
1837
1838
|
};
|
|
1838
|
-
const { wiseLeaveMeetingCli } = await import('./commands
|
|
1839
|
+
const { wiseLeaveMeetingCli } = await import('./commands--mffGLDo.mjs');
|
|
1839
1840
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1840
1841
|
return;
|
|
1841
1842
|
}
|
|
@@ -1859,7 +1860,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1859
1860
|
}
|
|
1860
1861
|
});
|
|
1861
1862
|
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
|
|
1863
|
+
const { wiseAnnounceCli } = await import('./commands--mffGLDo.mjs');
|
|
1863
1864
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1864
1865
|
return;
|
|
1865
1866
|
}
|
|
@@ -1871,7 +1872,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1871
1872
|
}
|
|
1872
1873
|
return void 0;
|
|
1873
1874
|
};
|
|
1874
|
-
const { wiseMeetingsCli } = await import('./commands
|
|
1875
|
+
const { wiseMeetingsCli } = await import('./commands--mffGLDo.mjs');
|
|
1875
1876
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1876
1877
|
return;
|
|
1877
1878
|
}
|
|
@@ -1921,7 +1922,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1921
1922
|
return;
|
|
1922
1923
|
}
|
|
1923
1924
|
const authArgs = rest.slice(1);
|
|
1924
|
-
const mod = await import('./auth-
|
|
1925
|
+
const mod = await import('./auth-ZelAjQgR.mjs');
|
|
1925
1926
|
let action;
|
|
1926
1927
|
try {
|
|
1927
1928
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1931,7 +1932,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1931
1932
|
return;
|
|
1932
1933
|
}
|
|
1933
1934
|
if (action) {
|
|
1934
|
-
const { updateEnvFile } = await import('./run-
|
|
1935
|
+
const { updateEnvFile } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.a7; });
|
|
1935
1936
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1936
1937
|
updateEnvFile(updates);
|
|
1937
1938
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1945,7 +1946,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1945
1946
|
}
|
|
1946
1947
|
async function handleDaemonAuthCommand(argv) {
|
|
1947
1948
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1948
|
-
const mod = await import('./run-
|
|
1949
|
+
const mod = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.a7; });
|
|
1949
1950
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1950
1951
|
console.log(`
|
|
1951
1952
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2258,7 +2259,7 @@ Examples:
|
|
|
2258
2259
|
async function printSkillsHelp() {
|
|
2259
2260
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2260
2261
|
try {
|
|
2261
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2262
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-B2TKYnlZ.mjs').then(function (n) { return n.af; });
|
|
2262
2263
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2263
2264
|
} catch {
|
|
2264
2265
|
}
|
|
@@ -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 { Q as formatHandle, T as normalizeAllowedUser, U as loadSecurityContextConfig, V as resolveSecurityContext, W as buildSecurityContextFromFlags, X as mergeSecurityContexts, c as connectToHypha, Y as buildSessionShareUrl, Z as computeOutboundHop, A as shortId, _ as buildMachineShareUrl, $ as parseHandle, a0 as handleMatchesMetadata } from './run-
|
|
5
|
+
import { Q as formatHandle, T as normalizeAllowedUser, U as loadSecurityContextConfig, V as resolveSecurityContext, W as buildSecurityContextFromFlags, X as mergeSecurityContexts, c as connectToHypha, Y as buildSessionShareUrl, Z as computeOutboundHop, A as shortId, _ as buildMachineShareUrl, $ as parseHandle, a0 as handleMatchesMetadata } from './run-B2TKYnlZ.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -2521,6 +2521,7 @@ async function sessionLoopStart(sessionIdPartial, task, machineId, opts) {
|
|
|
2521
2521
|
...opts?.parent ? { parent: opts.parent } : {},
|
|
2522
2522
|
...maxIterations != null ? { max_iterations: maxIterations } : {},
|
|
2523
2523
|
...budget ? { budget } : {},
|
|
2524
|
+
...opts?.engine ? { engine: opts.engine } : {},
|
|
2524
2525
|
evaluator
|
|
2525
2526
|
}
|
|
2526
2527
|
});
|
|
@@ -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-DIoFs_Y2.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--mffGLDo.mjs');
|
|
72
72
|
const { server, machine } = await connectAndGetMachine();
|
|
73
73
|
try {
|
|
74
74
|
const status = await machine.tunnelStart({
|
|
@@ -87,7 +87,7 @@ async function serviceExpose(args) {
|
|
|
87
87
|
console.log(` port ${port}: ${url}`);
|
|
88
88
|
}
|
|
89
89
|
if (process.env.SVAMP_SESSION_ID) {
|
|
90
|
-
const { autoAddSessionLink } = await import('./agentCommands-
|
|
90
|
+
const { autoAddSessionLink } = await import('./agentCommands-XFwfIP8t.mjs');
|
|
91
91
|
let added = 0;
|
|
92
92
|
for (const [port, url] of urlEntries) {
|
|
93
93
|
const label = urlEntries.length > 1 ? `${name}:${port}` : name;
|
|
@@ -133,7 +133,7 @@ async function serviceServe(args) {
|
|
|
133
133
|
};
|
|
134
134
|
process.on("SIGINT", cleanup);
|
|
135
135
|
process.on("SIGTERM", cleanup);
|
|
136
|
-
const { runFrpcTunnel } = await import('./frpc-
|
|
136
|
+
const { runFrpcTunnel } = await import('./frpc-DIoFs_Y2.mjs');
|
|
137
137
|
await runFrpcTunnel(name, [caddyPort]);
|
|
138
138
|
} catch (err) {
|
|
139
139
|
console.error(`Error serving directory: ${err.message}`);
|
|
@@ -142,7 +142,7 @@ async function serviceServe(args) {
|
|
|
142
142
|
}
|
|
143
143
|
async function serviceList(_args) {
|
|
144
144
|
try {
|
|
145
|
-
const { connectAndGetMachine } = await import('./commands
|
|
145
|
+
const { connectAndGetMachine } = await import('./commands--mffGLDo.mjs');
|
|
146
146
|
const { server, machine } = await connectAndGetMachine();
|
|
147
147
|
try {
|
|
148
148
|
const tunnels = await machine.tunnelList({});
|
|
@@ -182,7 +182,7 @@ async function serviceDelete(args) {
|
|
|
182
182
|
process.exit(1);
|
|
183
183
|
}
|
|
184
184
|
try {
|
|
185
|
-
const { connectAndGetMachine } = await import('./commands
|
|
185
|
+
const { connectAndGetMachine } = await import('./commands--mffGLDo.mjs');
|
|
186
186
|
const { server, machine } = await connectAndGetMachine();
|
|
187
187
|
try {
|
|
188
188
|
await machine.tunnelStop({ name });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { m as resolveProjectRoot, w as searchIssues, v as listIssues, o as resumeIssue, p as pauseIssue, q as addComment, u as updateIssue, n as getIssue, x as isVisibleTo, z as summarize, t as addIssue } from './run-
|
|
4
|
+
import { m as resolveProjectRoot, w as searchIssues, v as listIssues, o as resumeIssue, p as pauseIssue, q as addComment, u as updateIssue, n as getIssue, x as isVisibleTo, z as summarize, t as addIssue } from './run-B2TKYnlZ.mjs';
|
|
5
5
|
import 'os';
|
|
6
6
|
import 'fs/promises';
|
|
7
7
|
import 'fs';
|
|
@@ -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 { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-
|
|
4
|
+
import { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-B2TKYnlZ.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { writeFileSync, readFileSync } from 'fs';
|
|
2
2
|
import { resolve } from 'path';
|
|
3
|
-
import { connectAndGetMachine } from './commands
|
|
3
|
+
import { connectAndGetMachine } from './commands--mffGLDo.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-B2TKYnlZ.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot } from './run-
|
|
2
|
+
import { m as resolveProjectRoot } from './run-B2TKYnlZ.mjs';
|
|
3
3
|
import { c as workflowSteps, s as setWorkflowEnabled, i as isWorkflowEnabled, r as removeWorkflow, g as getWorkflow, l as listWorkflows, a as saveWorkflow, b as rawWorkflow } from './store-BTs0H_y0.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
|
-
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands
|
|
3
|
+
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands--mffGLDo.mjs';
|
|
4
4
|
import { execSync } from 'node:child_process';
|
|
5
|
-
import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-
|
|
5
|
+
import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-B2TKYnlZ.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -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-B2TKYnlZ.mjs';
|
|
5
5
|
import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-VIupR1NK.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-B2TKYnlZ.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-B2TKYnlZ.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-9tmwXrbC.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-B2TKYnlZ.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as resumeIssue, p as pauseIssue, q as addComment, t as addIssue, v as listIssues, w as searchIssues, x as isVisibleTo } from './run-
|
|
1
|
+
import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as resumeIssue, p as pauseIssue, q as addComment, t as addIssue, v as listIssues, w as searchIssues, x as isVisibleTo } from './run-B2TKYnlZ.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as resolveProjectRoot } from './run-
|
|
1
|
+
import { m as resolveProjectRoot } from './run-B2TKYnlZ.mjs';
|
|
2
2
|
import { g as getWorkflow, s as setWorkflowEnabled, r as removeWorkflow, a as saveWorkflow, b as rawWorkflow, l as listWorkflows } from './store-BTs0H_y0.mjs';
|
|
3
3
|
import { g as getRun, l as listRuns, r as runWorkflow } from './runStore-CtptN7US.mjs';
|
|
4
4
|
import 'os';
|
|
@@ -2912,7 +2912,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
2912
2912
|
const tunnels = handlers.tunnels;
|
|
2913
2913
|
if (!tunnels) throw new Error("Tunnel management not available");
|
|
2914
2914
|
if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
|
|
2915
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
2915
|
+
const { FrpcTunnel } = await import('./frpc-DIoFs_Y2.mjs');
|
|
2916
2916
|
const tunnel = new FrpcTunnel({
|
|
2917
2917
|
name: params.name,
|
|
2918
2918
|
ports: params.ports,
|
|
@@ -3359,7 +3359,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3359
3359
|
}
|
|
3360
3360
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
3361
3361
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
3362
|
-
const { toolsForRole } = await import('./sideband-
|
|
3362
|
+
const { toolsForRole } = await import('./sideband-9tmwXrbC.mjs');
|
|
3363
3363
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
3364
3364
|
return fmt(r2);
|
|
3365
3365
|
}
|
|
@@ -3458,7 +3458,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3458
3458
|
if (r.error || !r.sender) return { error: r.error || "unauthorized" };
|
|
3459
3459
|
const callId = "call_" + Math.random().toString(16).slice(2, 12);
|
|
3460
3460
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
3461
|
-
const { queryCore } = await import('./commands
|
|
3461
|
+
const { queryCore } = await import('./commands--mffGLDo.mjs');
|
|
3462
3462
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3463
3463
|
let result;
|
|
3464
3464
|
try {
|
|
@@ -11504,21 +11504,22 @@ function parseLoopBudget(raw) {
|
|
|
11504
11504
|
if (Number.isFinite(tph) && tph > 0) out.max_tokens_per_hour = tph;
|
|
11505
11505
|
return out.max_runtime_sec || out.max_tokens || out.max_tokens_per_hour ? out : void 0;
|
|
11506
11506
|
}
|
|
11507
|
-
function
|
|
11508
|
-
const
|
|
11509
|
-
if (
|
|
11510
|
-
|
|
11511
|
-
if (
|
|
11512
|
-
if (
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11507
|
+
function buildGoalCondition(o) {
|
|
11508
|
+
const parts = [];
|
|
11509
|
+
if (o.task) parts.push(o.task.trim());
|
|
11510
|
+
if (o.until) parts.push(`Done when: ${o.until.trim()}.`);
|
|
11511
|
+
if (o.oracle) parts.push(`Verify by running \`${o.oracle.trim()}\` at the end of every turn and pasting its output; it must succeed (exit 0 / no pending work).`);
|
|
11512
|
+
if (!o.until && !o.oracle && o.task) parts.push("Done when the task is fully complete and you have shown the evidence that proves it.");
|
|
11513
|
+
parts.push(`Or stop after ${o.maxIterations && o.maxIterations > 0 ? o.maxIterations : 20} turns.`);
|
|
11514
|
+
return parts.join(" ");
|
|
11515
|
+
}
|
|
11516
|
+
function writeGoalLoopState(directory, sessionId, state) {
|
|
11517
|
+
try {
|
|
11518
|
+
const dir = getLoopDir(directory, sessionId);
|
|
11519
|
+
mkdirSync$1(dir, { recursive: true });
|
|
11520
|
+
writeFileSync$1(join$1(dir, "loop-state.json"), JSON.stringify({ session_id: sessionId, engine: "goal", ...state }, null, 2));
|
|
11521
|
+
} catch {
|
|
11522
|
+
}
|
|
11522
11523
|
}
|
|
11523
11524
|
function ensureLoopHooks(directory, sessionId) {
|
|
11524
11525
|
try {
|
|
@@ -11761,49 +11762,21 @@ function createSvampConfigChecker(directory, sessionId, getMetadata, setMetadata
|
|
|
11761
11762
|
}
|
|
11762
11763
|
} else if (cfg && typeof cfg === "object" && (task || until)) {
|
|
11763
11764
|
const oracle = typeof cfg.oracle === "string" && cfg.oracle.trim() ? cfg.oracle.trim() : void 0;
|
|
11764
|
-
const evaluator = cfg.evaluator !== false;
|
|
11765
11765
|
const maxIterations = typeof cfg.max_iterations === "number" ? cfg.max_iterations : typeof cfg.max_rounds === "number" ? cfg.max_rounds : 20;
|
|
11766
|
-
const
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
evaluator,
|
|
11774
|
-
budget,
|
|
11775
|
-
sessionId
|
|
11776
|
-
});
|
|
11777
|
-
if (ok) {
|
|
11778
|
-
const existingQueue = getMetadata().messageQueue || [];
|
|
11779
|
-
if (task) {
|
|
11780
|
-
const kickoff = "Begin the loop. Read LOOP.md and work on the task until the exit conditions are met. Do not stop early \u2014 an independent Stop gate will re-check before the loop can end.";
|
|
11781
|
-
setMetadata((m) => ({ ...m, messageQueue: [...existingQueue, { id: randomUUID$1(), text: kickoff, displayText: `\u{1F501} Loop started: ${task.slice(0, 100)}${task.length > 100 ? "\u2026" : ""}`, createdAt: Date.now() }] }));
|
|
11782
|
-
} else {
|
|
11783
|
-
const idle = getMetadata().lifecycleState === "idle";
|
|
11784
|
-
if (idle) {
|
|
11785
|
-
const nudge = `A loop gate is now active. Keep working until this is met: ${until}
|
|
11786
|
-
Or verify and finish \u2014 an independent Stop gate re-checks before you can stop.`;
|
|
11787
|
-
setMetadata((m) => ({ ...m, messageQueue: [...existingQueue, { id: randomUUID$1(), text: nudge, displayText: `\u{1F501} Loop until: ${until.slice(0, 100)}${until.length > 100 ? "\u2026" : ""}`, createdAt: Date.now() }] }));
|
|
11788
|
-
}
|
|
11789
|
-
}
|
|
11790
|
-
onLoopActivated?.();
|
|
11791
|
-
sessionService.pushMessage(
|
|
11792
|
-
{ type: "message", message: `\u{1F501} Loop active \u2014 ${task ? "iterating on the task" : "gating current work"} (until: ${until || "done"}, oracle: ${oracle || "none"}, evaluator ${evaluator ? "on" : "off"}, max ${maxIterations}).` },
|
|
11793
|
-
"event"
|
|
11794
|
-
);
|
|
11795
|
-
logger.log(`[svampConfig] Loop active (${task ? "kickoff" : "hot-plug"}): until="${(until || task || "").slice(0, 50)}"`);
|
|
11796
|
-
} else {
|
|
11797
|
-
sessionService.pushMessage(
|
|
11798
|
-
{ type: "message", message: "Failed to start loop \u2014 the loop skill could not be located. Reinstall with: svamp skills install loop --force", level: "error" },
|
|
11799
|
-
"event"
|
|
11800
|
-
);
|
|
11801
|
-
logger.log(`[svampConfig] Loop init failed \u2014 loop-init.mjs not found`);
|
|
11802
|
-
}
|
|
11766
|
+
const condition = buildGoalCondition({ task, until, oracle, maxIterations });
|
|
11767
|
+
writeGoalLoopState(directory, sessionId, { active: true, phase: "running", iteration: 0, task: condition, until, oracle, max_iterations: maxIterations, started_at: Date.now() });
|
|
11768
|
+
const existingQueue = getMetadata().messageQueue || [];
|
|
11769
|
+
setMetadata((m) => ({ ...m, messageQueue: [...existingQueue, { id: randomUUID$1(), text: `/goal ${condition}`, displayText: `\u{1F3AF} Goal: ${(task || until || "").slice(0, 100)}`, createdAt: Date.now() }] }));
|
|
11770
|
+
onLoopActivated?.();
|
|
11771
|
+
sessionService.pushMessage({ type: "message", message: `\u{1F3AF} Goal set: ${condition.slice(0, 180)}${condition.length > 180 ? "\u2026" : ""}` }, "event");
|
|
11772
|
+
logger.log(`[svampConfig] /goal set: "${condition.slice(0, 80)}"`);
|
|
11803
11773
|
} else {
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11774
|
+
writeGoalLoopState(directory, sessionId, { active: false, phase: "cancelled", completed_at: Date.now() });
|
|
11775
|
+
const existingQueue = getMetadata().messageQueue || [];
|
|
11776
|
+
setMetadata((m) => ({ ...m, messageQueue: [...existingQueue, { id: randomUUID$1(), text: "/goal clear", displayText: "\u{1F3AF} Goal cleared", createdAt: Date.now() }] }));
|
|
11777
|
+
onLoopActivated?.();
|
|
11778
|
+
sessionService.pushMessage({ type: "message", message: "Goal cleared." }, "event");
|
|
11779
|
+
logger.log(`[svampConfig] /goal cleared`);
|
|
11807
11780
|
}
|
|
11808
11781
|
const { [_gateKey]: _drop, ...restPatch } = patch;
|
|
11809
11782
|
patch = restPatch;
|
|
@@ -12240,7 +12213,7 @@ async function startDaemon(options) {
|
|
|
12240
12213
|
saveExposedTunnels(list);
|
|
12241
12214
|
}
|
|
12242
12215
|
async function createExposedTunnel(spec) {
|
|
12243
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
12216
|
+
const { FrpcTunnel } = await import('./frpc-DIoFs_Y2.mjs');
|
|
12244
12217
|
const tunnel = new FrpcTunnel({
|
|
12245
12218
|
name: spec.name,
|
|
12246
12219
|
ports: spec.ports,
|
|
@@ -12260,7 +12233,7 @@ async function startDaemon(options) {
|
|
|
12260
12233
|
return tunnel;
|
|
12261
12234
|
}
|
|
12262
12235
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
12263
|
-
const { ServeManager } = await import('./serveManager-
|
|
12236
|
+
const { ServeManager } = await import('./serveManager-BQJD-Oau.mjs');
|
|
12264
12237
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
12265
12238
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
12266
12239
|
});
|
|
@@ -14155,11 +14128,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14155
14128
|
});
|
|
14156
14129
|
},
|
|
14157
14130
|
onIssue: async (params) => {
|
|
14158
|
-
const { issueRpc } = await import('./rpc-
|
|
14131
|
+
const { issueRpc } = await import('./rpc-C1-Fclhr.mjs');
|
|
14159
14132
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
14160
14133
|
},
|
|
14161
14134
|
onWorkflow: async (params) => {
|
|
14162
|
-
const { workflowRpc } = await import('./rpc-
|
|
14135
|
+
const { workflowRpc } = await import('./rpc-CerJ1Je0.mjs');
|
|
14163
14136
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14164
14137
|
},
|
|
14165
14138
|
onRipgrep: async (args, cwd) => {
|
|
@@ -14692,11 +14665,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14692
14665
|
});
|
|
14693
14666
|
},
|
|
14694
14667
|
onIssue: async (params) => {
|
|
14695
|
-
const { issueRpc } = await import('./rpc-
|
|
14668
|
+
const { issueRpc } = await import('./rpc-C1-Fclhr.mjs');
|
|
14696
14669
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
14697
14670
|
},
|
|
14698
14671
|
onWorkflow: async (params) => {
|
|
14699
|
-
const { workflowRpc } = await import('./rpc-
|
|
14672
|
+
const { workflowRpc } = await import('./rpc-CerJ1Je0.mjs');
|
|
14700
14673
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14701
14674
|
},
|
|
14702
14675
|
onRipgrep: async (args, cwd) => {
|
|
@@ -15470,7 +15443,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
15470
15443
|
const PING_TIMEOUT_MS = 15e3;
|
|
15471
15444
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
15472
15445
|
const RECONNECT_JITTER_MS = 2500;
|
|
15473
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
15446
|
+
const { WorkflowScheduler } = await import('./scheduler-DZ4vEEWe.mjs');
|
|
15474
15447
|
const workflowScheduler = new WorkflowScheduler({
|
|
15475
15448
|
projectRoots: () => {
|
|
15476
15449
|
const dirs = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a3 as applyClaudeProxyEnv, a4 as composeSessionId, a5 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a6 as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a3 as applyClaudeProxyEnv, a4 as composeSessionId, a5 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a6 as generateHookSettings } from './run-B2TKYnlZ.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as resolveProjectRoot, y as cronMatches } from './run-
|
|
1
|
+
import { m as resolveProjectRoot, y as cronMatches } from './run-B2TKYnlZ.mjs';
|
|
2
2
|
import { l as listWorkflows, i as isWorkflowEnabled, w as workflowCrons } from './store-BTs0H_y0.mjs';
|
|
3
3
|
import { r as runWorkflow } from './runStore-CtptN7US.mjs';
|
|
4
4
|
import 'os';
|
|
@@ -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--mffGLDo.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--mffGLDo.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--mffGLDo.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--mffGLDo.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--mffGLDo.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-B2TKYnlZ.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-DIoFs_Y2.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, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-
|
|
1
|
+
import { R as READ_ONLY_TOOLS, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-B2TKYnlZ.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|