svamp-cli 0.2.147 → 0.2.148
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-OSscKEu_.mjs → agentCommands-CcBymbEr.mjs} +5 -5
- package/dist/{auth-DXr8WGEh.mjs → auth-CP3k1NqI.mjs} +1 -1
- package/dist/cli.mjs +86 -59
- package/dist/{commands-2-F0PDaF.mjs → commands-BmZNAa8k.mjs} +1 -1
- package/dist/{commands-BehT4StJ.mjs → commands-CnTCySqf.mjs} +1 -9
- package/dist/{commands-BnfINAHT.mjs → commands-DYgBXx_q.mjs} +2 -2
- package/dist/{commands-DGdTNagn.mjs → commands-QA3QzKNW.mjs} +2 -2
- package/dist/{commands-Dm4Jn8EO.mjs → commands-hpn6BrhO.mjs} +2 -2
- package/dist/{commands-DAaj-lDd.mjs → commands-q-CtOQI6.mjs} +5 -5
- package/dist/{commands-C-g9lywx.mjs → commands-svKEY0uS.mjs} +24 -2
- package/dist/{fleet-CCHM-ooo.mjs → fleet-DU_vy3QE.mjs} +1 -1
- package/dist/{frpc-Ckp8c1o5.mjs → frpc-C4gw56kT.mjs} +1 -1
- package/dist/{headlessCli-DBt1SifE.mjs → headlessCli-F75H6TBS.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-B-olGbjq.mjs → package-BxSyQWPt.mjs} +1 -1
- package/dist/{run-EWIn-Drp.mjs → run-CnseHE8q.mjs} +79 -8
- package/dist/{run-DePAEN5V.mjs → run-s9YQOKzS.mjs} +1 -1
- package/dist/{serveCommands-BrctGwlB.mjs → serveCommands-DlH0nO5h.mjs} +5 -5
- package/dist/{serveManager-BUBFrei1.mjs → serveManager-WDLgwHDg.mjs} +2 -2
- package/dist/{sideband-COwBePyZ.mjs → sideband-DmGnYJTW.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-CnseHE8q.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-CnseHE8q.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-svKEY0uS.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-svKEY0uS.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-svKEY0uS.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-CnseHE8q.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-CnseHE8q.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-CnseHE8q.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-q-CtOQI6.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-DlH0nO5h.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-hpn6BrhO.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-CnTCySqf.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "trigger" || subcommand === "triggers" || subcommand === "routine" || subcommand === "routines") {
|
|
382
|
-
const { routineCommand } = await import('./commands-
|
|
382
|
+
const { routineCommand } = await import('./commands-QA3QzKNW.mjs');
|
|
383
383
|
await routineCommand(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-DYgBXx_q.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-BxSyQWPt.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-s9YQOKzS.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-CnseHE8q.mjs').then(function (n) { return n.a4; });
|
|
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-CnseHE8q.mjs').then(function (n) { return n.a4; });
|
|
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-CnseHE8q.mjs').then(function (n) { return n.a5; });
|
|
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-CnseHE8q.mjs').then(function (n) { return n.a3; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a6; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a2; });
|
|
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, sessionChecklist, 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, sessionChecklist, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-svKEY0uS.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-svKEY0uS.mjs');
|
|
688
688
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
689
689
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
690
690
|
message,
|
|
@@ -769,7 +769,7 @@ async function handleSessionCommand() {
|
|
|
769
769
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
770
770
|
process.exit(1);
|
|
771
771
|
}
|
|
772
|
-
const { sessionEditMessage } = await import('./commands-
|
|
772
|
+
const { sessionEditMessage } = await import('./commands-svKEY0uS.mjs');
|
|
773
773
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
774
774
|
} else if (sessionSubcommand === "refine") {
|
|
775
775
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -777,7 +777,7 @@ async function handleSessionCommand() {
|
|
|
777
777
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
778
778
|
process.exit(1);
|
|
779
779
|
}
|
|
780
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
780
|
+
const { sessionRefineLastReply } = await import('./commands-svKEY0uS.mjs');
|
|
781
781
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
782
782
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
783
783
|
if (!sessionArgs[1]) {
|
|
@@ -785,7 +785,7 @@ async function handleSessionCommand() {
|
|
|
785
785
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
786
786
|
process.exit(1);
|
|
787
787
|
}
|
|
788
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
788
|
+
const { sessionUndoEdit } = await import('./commands-svKEY0uS.mjs');
|
|
789
789
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
790
790
|
} else if (sessionSubcommand === "query") {
|
|
791
791
|
const dir = sessionArgs[1];
|
|
@@ -795,7 +795,7 @@ async function handleSessionCommand() {
|
|
|
795
795
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
796
796
|
process.exit(1);
|
|
797
797
|
}
|
|
798
|
-
const { sessionQuery } = await import('./commands-
|
|
798
|
+
const { sessionQuery } = await import('./commands-svKEY0uS.mjs');
|
|
799
799
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
800
800
|
timeout: parseFlagInt("--timeout"),
|
|
801
801
|
json: hasFlag("--json"),
|
|
@@ -828,7 +828,7 @@ async function handleSessionCommand() {
|
|
|
828
828
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
829
829
|
process.exit(1);
|
|
830
830
|
}
|
|
831
|
-
const { sessionApprove } = await import('./commands-
|
|
831
|
+
const { sessionApprove } = await import('./commands-svKEY0uS.mjs');
|
|
832
832
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
833
833
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
834
834
|
json: hasFlag("--json")
|
|
@@ -838,7 +838,7 @@ async function handleSessionCommand() {
|
|
|
838
838
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
839
839
|
process.exit(1);
|
|
840
840
|
}
|
|
841
|
-
const { sessionDeny } = await import('./commands-
|
|
841
|
+
const { sessionDeny } = await import('./commands-svKEY0uS.mjs');
|
|
842
842
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
843
843
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
844
844
|
json: hasFlag("--json")
|
|
@@ -916,7 +916,7 @@ async function handleSessionCommand() {
|
|
|
916
916
|
console.error("Usage: svamp session set-title <title>");
|
|
917
917
|
process.exit(1);
|
|
918
918
|
}
|
|
919
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
919
|
+
const { sessionSetTitle } = await import('./agentCommands-CcBymbEr.mjs');
|
|
920
920
|
await sessionSetTitle(title);
|
|
921
921
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
922
922
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -924,7 +924,7 @@ async function handleSessionCommand() {
|
|
|
924
924
|
console.error("Usage: svamp session set-project-description <text>");
|
|
925
925
|
process.exit(1);
|
|
926
926
|
}
|
|
927
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
927
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-CcBymbEr.mjs');
|
|
928
928
|
await sessionSetProjectDescription(desc);
|
|
929
929
|
} else if (sessionSubcommand === "set-link") {
|
|
930
930
|
const url = sessionArgs[1];
|
|
@@ -933,7 +933,7 @@ async function handleSessionCommand() {
|
|
|
933
933
|
process.exit(1);
|
|
934
934
|
}
|
|
935
935
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
936
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
936
|
+
const { sessionSetLink } = await import('./agentCommands-CcBymbEr.mjs');
|
|
937
937
|
await sessionSetLink(url, label);
|
|
938
938
|
} else if (sessionSubcommand === "notify") {
|
|
939
939
|
const message = sessionArgs[1];
|
|
@@ -942,7 +942,7 @@ async function handleSessionCommand() {
|
|
|
942
942
|
process.exit(1);
|
|
943
943
|
}
|
|
944
944
|
const level = parseFlagStr("--level") || "info";
|
|
945
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
945
|
+
const { sessionNotify } = await import('./agentCommands-CcBymbEr.mjs');
|
|
946
946
|
await sessionNotify(message, level);
|
|
947
947
|
} else if (sessionSubcommand === "broadcast") {
|
|
948
948
|
const action = sessionArgs[1];
|
|
@@ -950,7 +950,7 @@ async function handleSessionCommand() {
|
|
|
950
950
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
951
951
|
process.exit(1);
|
|
952
952
|
}
|
|
953
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
953
|
+
const { sessionBroadcast } = await import('./agentCommands-CcBymbEr.mjs');
|
|
954
954
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
955
955
|
} else if (sessionSubcommand === "inbox") {
|
|
956
956
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -961,7 +961,7 @@ async function handleSessionCommand() {
|
|
|
961
961
|
process.exit(1);
|
|
962
962
|
}
|
|
963
963
|
if (agentSessionId) {
|
|
964
|
-
const { inboxSend } = await import('./agentCommands-
|
|
964
|
+
const { inboxSend } = await import('./agentCommands-CcBymbEr.mjs');
|
|
965
965
|
await inboxSend(sessionArgs[2], {
|
|
966
966
|
body: sessionArgs[3],
|
|
967
967
|
subject: parseFlagStr("--subject"),
|
|
@@ -976,7 +976,7 @@ async function handleSessionCommand() {
|
|
|
976
976
|
}
|
|
977
977
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
978
978
|
if (agentSessionId && !sessionArgs[2]) {
|
|
979
|
-
const { inboxList } = await import('./agentCommands-
|
|
979
|
+
const { inboxList } = await import('./agentCommands-CcBymbEr.mjs');
|
|
980
980
|
await inboxList({
|
|
981
981
|
unread: hasFlag("--unread"),
|
|
982
982
|
limit: parseFlagInt("--limit"),
|
|
@@ -998,7 +998,7 @@ async function handleSessionCommand() {
|
|
|
998
998
|
process.exit(1);
|
|
999
999
|
}
|
|
1000
1000
|
if (agentSessionId && !sessionArgs[3]) {
|
|
1001
|
-
const { inboxList } = await import('./agentCommands-
|
|
1001
|
+
const { inboxList } = await import('./agentCommands-CcBymbEr.mjs');
|
|
1002
1002
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
1003
1003
|
} else if (sessionArgs[3]) {
|
|
1004
1004
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -1008,7 +1008,7 @@ async function handleSessionCommand() {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
} else if (inboxSubcmd === "reply") {
|
|
1010
1010
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1011
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1011
|
+
const { inboxReply } = await import('./agentCommands-CcBymbEr.mjs');
|
|
1012
1012
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1013
1013
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1014
1014
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1044,7 +1044,7 @@ async function handleMachineCommand() {
|
|
|
1044
1044
|
return;
|
|
1045
1045
|
}
|
|
1046
1046
|
if (machineSubcommand === "share") {
|
|
1047
|
-
const { machineShare } = await import('./commands-
|
|
1047
|
+
const { machineShare } = await import('./commands-svKEY0uS.mjs');
|
|
1048
1048
|
let machineId;
|
|
1049
1049
|
const shareArgs = [];
|
|
1050
1050
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1095,14 +1095,14 @@ async function handleMachineCommand() {
|
|
|
1095
1095
|
process.exit(1);
|
|
1096
1096
|
}
|
|
1097
1097
|
if (all) {
|
|
1098
|
-
const { fleetExec } = await import('./fleet-
|
|
1098
|
+
const { fleetExec } = await import('./fleet-DU_vy3QE.mjs');
|
|
1099
1099
|
await fleetExec(command, { cwd });
|
|
1100
1100
|
} else {
|
|
1101
|
-
const { machineExec } = await import('./commands-
|
|
1101
|
+
const { machineExec } = await import('./commands-svKEY0uS.mjs');
|
|
1102
1102
|
await machineExec(machineId, command, cwd);
|
|
1103
1103
|
}
|
|
1104
1104
|
} else if (machineSubcommand === "info") {
|
|
1105
|
-
const { machineInfo } = await import('./commands-
|
|
1105
|
+
const { machineInfo } = await import('./commands-svKEY0uS.mjs');
|
|
1106
1106
|
let machineId;
|
|
1107
1107
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1108
1108
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1122,10 +1122,10 @@ async function handleMachineCommand() {
|
|
|
1122
1122
|
level = machineArgs[++i];
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1125
|
+
const { machineNotify } = await import('./agentCommands-CcBymbEr.mjs');
|
|
1126
1126
|
await machineNotify(message, level);
|
|
1127
1127
|
} else if (machineSubcommand === "ls") {
|
|
1128
|
-
const { machineLs } = await import('./commands-
|
|
1128
|
+
const { machineLs } = await import('./commands-svKEY0uS.mjs');
|
|
1129
1129
|
let machineId;
|
|
1130
1130
|
let showHidden = false;
|
|
1131
1131
|
let path;
|
|
@@ -1181,20 +1181,20 @@ Examples:
|
|
|
1181
1181
|
};
|
|
1182
1182
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1183
1183
|
if (sub === "status") {
|
|
1184
|
-
const { fleetStatus } = await import('./fleet-
|
|
1184
|
+
const { fleetStatus } = await import('./fleet-DU_vy3QE.mjs');
|
|
1185
1185
|
await fleetStatus();
|
|
1186
1186
|
} else if (sub === "upgrade-claude") {
|
|
1187
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1187
|
+
const { fleetUpgradeClaude } = await import('./fleet-DU_vy3QE.mjs');
|
|
1188
1188
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1189
1189
|
} else if (sub === "upgrade-svamp") {
|
|
1190
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1190
|
+
const { fleetUpgradeSvamp } = await import('./fleet-DU_vy3QE.mjs');
|
|
1191
1191
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1192
1192
|
} else if (sub === "daemon-restart") {
|
|
1193
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1193
|
+
const { fleetDaemonRestart } = await import('./fleet-DU_vy3QE.mjs');
|
|
1194
1194
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1195
1195
|
} else if (sub === "push-skill") {
|
|
1196
1196
|
const name = fleetArgs[1];
|
|
1197
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1197
|
+
const { fleetPushSkill } = await import('./fleet-DU_vy3QE.mjs');
|
|
1198
1198
|
await fleetPushSkill(name);
|
|
1199
1199
|
} else {
|
|
1200
1200
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1210,7 +1210,7 @@ async function handleSkillsCommand() {
|
|
|
1210
1210
|
await printSkillsHelp();
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1213
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BmZNAa8k.mjs');
|
|
1214
1214
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1215
1215
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1216
1216
|
if (!query) {
|
|
@@ -1257,7 +1257,7 @@ async function loginToHypha() {
|
|
|
1257
1257
|
process.exit(1);
|
|
1258
1258
|
}
|
|
1259
1259
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1260
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1260
|
+
const { loadInstanceConfig } = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a8; });
|
|
1261
1261
|
let cfg = null;
|
|
1262
1262
|
try {
|
|
1263
1263
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1368,7 +1368,7 @@ async function logoutFromHypha() {
|
|
|
1368
1368
|
} catch {
|
|
1369
1369
|
}
|
|
1370
1370
|
try {
|
|
1371
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1371
|
+
const { clearInstanceConfigCache } = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a8; });
|
|
1372
1372
|
clearInstanceConfigCache();
|
|
1373
1373
|
} catch {
|
|
1374
1374
|
}
|
|
@@ -1706,7 +1706,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1706
1706
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1707
1707
|
);
|
|
1708
1708
|
}
|
|
1709
|
-
const mod = await import('./run-
|
|
1709
|
+
const mod = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a7; });
|
|
1710
1710
|
if (hasHypha) {
|
|
1711
1711
|
let url;
|
|
1712
1712
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1760,7 +1760,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
if (collected.length === 0) return;
|
|
1763
|
-
const { updateEnvFile } = await import('./run-
|
|
1763
|
+
const { updateEnvFile } = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a7; });
|
|
1764
1764
|
const seen = /* @__PURE__ */ new Set();
|
|
1765
1765
|
const deduped = collected.filter((e) => {
|
|
1766
1766
|
const k = e.toLowerCase();
|
|
@@ -1793,7 +1793,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
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-
|
|
1796
|
+
const { wiseAskCli } = await import('./commands-svKEY0uS.mjs');
|
|
1797
1797
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1798
1798
|
return;
|
|
1799
1799
|
}
|
|
@@ -1805,7 +1805,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
return void 0;
|
|
1807
1807
|
};
|
|
1808
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1808
|
+
const { runWiseVoiceCli } = await import('./headlessCli-F75H6TBS.mjs');
|
|
1809
1809
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1810
1810
|
return;
|
|
1811
1811
|
}
|
|
@@ -1821,7 +1821,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1821
1821
|
const sessionId = rest.includes("--global") ? void 0 : valueOf(["--session", "-s"]);
|
|
1822
1822
|
const json = rest.includes("--json");
|
|
1823
1823
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1824
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1824
|
+
const { wiseJoinMeetingCli } = await import('./commands-svKEY0uS.mjs');
|
|
1825
1825
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json });
|
|
1826
1826
|
return;
|
|
1827
1827
|
}
|
|
@@ -1833,10 +1833,34 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
return void 0;
|
|
1835
1835
|
};
|
|
1836
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1836
|
+
const { wiseLeaveMeetingCli } = await import('./commands-svKEY0uS.mjs');
|
|
1837
1837
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1838
1838
|
return;
|
|
1839
1839
|
}
|
|
1840
|
+
if (sub === "announce") {
|
|
1841
|
+
const valueOf = (flags) => {
|
|
1842
|
+
for (const f of flags) {
|
|
1843
|
+
const i = rest.indexOf(f);
|
|
1844
|
+
if (i >= 0 && rest[i + 1]) return rest[i + 1];
|
|
1845
|
+
}
|
|
1846
|
+
return void 0;
|
|
1847
|
+
};
|
|
1848
|
+
const sessionId = valueOf(["--session", "-s"]) || process.env.SVAMP_SESSION_ID;
|
|
1849
|
+
const machineId = valueOf(["--machine", "-m"]);
|
|
1850
|
+
const json = rest.includes("--json");
|
|
1851
|
+
const consumed = /* @__PURE__ */ new Set();
|
|
1852
|
+
["--session", "-s", "--machine", "-m"].forEach((f) => {
|
|
1853
|
+
const i = rest.indexOf(f);
|
|
1854
|
+
if (i >= 0) {
|
|
1855
|
+
consumed.add(String(i));
|
|
1856
|
+
consumed.add(String(i + 1));
|
|
1857
|
+
}
|
|
1858
|
+
});
|
|
1859
|
+
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(" ");
|
|
1860
|
+
const { wiseAnnounceCli } = await import('./commands-svKEY0uS.mjs');
|
|
1861
|
+
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1862
|
+
return;
|
|
1863
|
+
}
|
|
1840
1864
|
if (sub === "meetings") {
|
|
1841
1865
|
const valueOf = (flags) => {
|
|
1842
1866
|
for (const f of flags) {
|
|
@@ -1845,7 +1869,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1845
1869
|
}
|
|
1846
1870
|
return void 0;
|
|
1847
1871
|
};
|
|
1848
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1872
|
+
const { wiseMeetingsCli } = await import('./commands-svKEY0uS.mjs');
|
|
1849
1873
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1850
1874
|
return;
|
|
1851
1875
|
}
|
|
@@ -1854,6 +1878,9 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1854
1878
|
svamp wise ask "<message>" [--session <id>] [-m <machine>] [--json]
|
|
1855
1879
|
svamp wise join-meeting <zoom|meet|teams url> [--session <id>|--global] [-m <machine>]
|
|
1856
1880
|
svamp wise leave-meeting [--session <id>] [-m <machine>]
|
|
1881
|
+
svamp wise announce "<text>" [--session <id>] [-m <machine>]
|
|
1882
|
+
Post a chat message into the live meeting (defaults --session to
|
|
1883
|
+
$SVAMP_SESSION_ID, so the deep agent can announce when work is done).
|
|
1857
1884
|
svamp wise meetings [-m <machine>]
|
|
1858
1885
|
Fast WISE turn \u2014 GLOBAL machine-manager by default (daemon status, run
|
|
1859
1886
|
commands, inspect/spawn/drive any session); --session <id> scopes to one.
|
|
@@ -1890,7 +1917,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1890
1917
|
return;
|
|
1891
1918
|
}
|
|
1892
1919
|
const authArgs = rest.slice(1);
|
|
1893
|
-
const mod = await import('./auth-
|
|
1920
|
+
const mod = await import('./auth-CP3k1NqI.mjs');
|
|
1894
1921
|
let action;
|
|
1895
1922
|
try {
|
|
1896
1923
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1900,7 +1927,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1900
1927
|
return;
|
|
1901
1928
|
}
|
|
1902
1929
|
if (action) {
|
|
1903
|
-
const { updateEnvFile } = await import('./run-
|
|
1930
|
+
const { updateEnvFile } = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a7; });
|
|
1904
1931
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1905
1932
|
updateEnvFile(updates);
|
|
1906
1933
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1914,7 +1941,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1914
1941
|
}
|
|
1915
1942
|
async function handleDaemonAuthCommand(argv) {
|
|
1916
1943
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1917
|
-
const mod = await import('./run-
|
|
1944
|
+
const mod = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a7; });
|
|
1918
1945
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1919
1946
|
console.log(`
|
|
1920
1947
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2227,7 +2254,7 @@ Examples:
|
|
|
2227
2254
|
async function printSkillsHelp() {
|
|
2228
2255
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2229
2256
|
try {
|
|
2230
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2257
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CnseHE8q.mjs').then(function (n) { return n.a9; });
|
|
2231
2258
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2232
2259
|
} catch {
|
|
2233
2260
|
}
|
|
@@ -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-CnseHE8q.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { existsSync, readFileSync, unlinkSync,
|
|
1
|
+
import { existsSync, readFileSync, unlinkSync, mkdirSync, writeFileSync, renameSync, readdirSync } from 'node:fs';
|
|
2
2
|
import { join, dirname } from 'node:path';
|
|
3
3
|
import { execFileSync } from 'node:child_process';
|
|
4
4
|
|
|
@@ -357,13 +357,6 @@ ${issue.body}`);
|
|
|
357
357
|
ok(updated, `Commented on #${updated.id}`);
|
|
358
358
|
break;
|
|
359
359
|
}
|
|
360
|
-
case "pending": {
|
|
361
|
-
const pending = listIssues(root).filter((i) => i.status === "ready" || i.status === "in_progress");
|
|
362
|
-
if (json) console.log(JSON.stringify(pending));
|
|
363
|
-
else out(pending.length ? `${pending.length} pending: ${pending.map((i) => "#" + i.id).join(" ")}` : "No pending issues.");
|
|
364
|
-
process.exit(pending.length ? 1 : 0);
|
|
365
|
-
break;
|
|
366
|
-
}
|
|
367
360
|
case "search": {
|
|
368
361
|
const q = positional(rest)[0] || "";
|
|
369
362
|
const items = searchIssues(root, q);
|
|
@@ -391,7 +384,6 @@ ${issue.body}`);
|
|
|
391
384
|
" ready <id> | start <id> | close <id> | reopen <id> | backlog <id> | archive <id>",
|
|
392
385
|
" edit <id> [--title \u2026] [--label x] [--verify-cmd \u2026] [--no-verify] [--status \u2026] [--body \u2026]",
|
|
393
386
|
' comment <id> "<text>" # append a follow-up to the issue',
|
|
394
|
-
" pending # exit 0 if no ready/in-progress issues (loop oracle)",
|
|
395
387
|
' search "<query>" [--json]'
|
|
396
388
|
].join("\n"));
|
|
397
389
|
break;
|
|
@@ -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-svKEY0uS.mjs';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
|
-
import { m as shortId } from './run-
|
|
4
|
+
import { m as shortId } from './run-CnseHE8q.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-CnseHE8q.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-svKEY0uS.mjs');
|
|
108
108
|
const { server, machine } = await connectAndGetMachine();
|
|
109
109
|
try {
|
|
110
110
|
await machine.sessionRPC(reportTo, "sendInboxMessage", { message });
|
|
@@ -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-svKEY0uS.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-CnseHE8q.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-C4gw56kT.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-svKEY0uS.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-C4gw56kT.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-svKEY0uS.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-svKEY0uS.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-CnseHE8q.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -2377,6 +2377,28 @@ async function wiseLeaveMeetingCli(machineId, sessionId, opts) {
|
|
|
2377
2377
|
await server.disconnect();
|
|
2378
2378
|
}
|
|
2379
2379
|
}
|
|
2380
|
+
async function wiseAnnounceCli(machineId, text, sessionId, opts) {
|
|
2381
|
+
if (!text) {
|
|
2382
|
+
console.error('Usage: svamp wise announce "<text>" [--session <id>] [-m <machine>]');
|
|
2383
|
+
process.exit(1);
|
|
2384
|
+
}
|
|
2385
|
+
const { server, machine } = await connectAndGetMachine(machineId);
|
|
2386
|
+
try {
|
|
2387
|
+
const res = await machine.wiseAnnounce({ text, sessionId });
|
|
2388
|
+
if (opts?.json) {
|
|
2389
|
+
console.log(JSON.stringify(res, null, 2));
|
|
2390
|
+
process.exit(res?.success ? 0 : 1);
|
|
2391
|
+
}
|
|
2392
|
+
if (res?.error) {
|
|
2393
|
+
console.error(`\u2717 ${res.error}`);
|
|
2394
|
+
process.exit(1);
|
|
2395
|
+
}
|
|
2396
|
+
console.log("\u2713 Announced to the meeting");
|
|
2397
|
+
process.exit(0);
|
|
2398
|
+
} finally {
|
|
2399
|
+
await server.disconnect();
|
|
2400
|
+
}
|
|
2401
|
+
}
|
|
2380
2402
|
async function wiseMeetingsCli(machineId, opts) {
|
|
2381
2403
|
const { server, machine } = await connectAndGetMachine(machineId);
|
|
2382
2404
|
try {
|
|
@@ -2787,4 +2809,4 @@ async function sessionInboxClear(sessionIdPartial, machineId, opts) {
|
|
|
2787
2809
|
}
|
|
2788
2810
|
}
|
|
2789
2811
|
|
|
2790
|
-
export { checklistConfigPatch, collectAssistantResponse, connectAndGetMachine, connectAndResolveSession, createWorktree, generateWorktreeName, machineExec, machineInfo, machineLs, machineShare, mutateChecklistItems, parseShareArg, queryCore, renderMessage, resolveItemIds, resolveSessionId, sendCore, sessionApprove, sessionArchive, sessionAttach, sessionChecklist, sessionDelete, sessionDeny, sessionEditMessage, sessionInboxClear, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxSend, sessionInfo, sessionList, sessionLoopCancel, sessionLoopStart, sessionLoopStatus, sessionMachines, sessionMessages, sessionQuery, sessionRefineLastReply, sessionResume, sessionSend, sessionShare, sessionSpawn, sessionUndoEdit, sessionWait, sessionWhoami, snapshotLatestSeq, validateSendOptions, wiseAskCli, wiseJoinMeetingCli, wiseLeaveMeetingCli, wiseMeetingsCli };
|
|
2812
|
+
export { checklistConfigPatch, collectAssistantResponse, connectAndGetMachine, connectAndResolveSession, createWorktree, generateWorktreeName, machineExec, machineInfo, machineLs, machineShare, mutateChecklistItems, parseShareArg, queryCore, renderMessage, resolveItemIds, resolveSessionId, sendCore, sessionApprove, sessionArchive, sessionAttach, sessionChecklist, sessionDelete, sessionDeny, sessionEditMessage, sessionInboxClear, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxSend, sessionInfo, sessionList, sessionLoopCancel, sessionLoopStart, sessionLoopStatus, sessionMachines, sessionMessages, sessionQuery, sessionRefineLastReply, sessionResume, sessionSend, sessionShare, sessionSpawn, sessionUndoEdit, sessionWait, sessionWhoami, snapshotLatestSeq, validateSendOptions, wiseAnnounceCli, wiseAskCli, wiseJoinMeetingCli, wiseLeaveMeetingCli, wiseMeetingsCli };
|
|
@@ -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-CnseHE8q.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-CnseHE8q.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-CnseHE8q.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-DmGnYJTW.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-CnseHE8q.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -5,7 +5,7 @@ import path__default, { join as join$1, resolve, dirname as dirname$1, basename
|
|
|
5
5
|
import { fileURLToPath } from 'url';
|
|
6
6
|
import { execFile, spawn as spawn$1, execSync as execSync$1, spawnSync } from 'child_process';
|
|
7
7
|
import { randomUUID as randomUUID$1 } from 'crypto';
|
|
8
|
-
import { randomBytes,
|
|
8
|
+
import { randomBytes, createHash, randomUUID } from 'node:crypto';
|
|
9
9
|
import { existsSync, readFileSync, mkdirSync, readdirSync, writeFileSync, renameSync, rmSync, appendFileSync, unlinkSync } from 'node:fs';
|
|
10
10
|
import { exec, execSync, spawn, execFile as execFile$1, execFileSync } from 'node:child_process';
|
|
11
11
|
import { promisify } from 'util';
|
|
@@ -2771,7 +2771,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
2771
2771
|
const tunnels = handlers.tunnels;
|
|
2772
2772
|
if (!tunnels) throw new Error("Tunnel management not available");
|
|
2773
2773
|
if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
|
|
2774
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
2774
|
+
const { FrpcTunnel } = await import('./frpc-C4gw56kT.mjs');
|
|
2775
2775
|
const tunnel = new FrpcTunnel({
|
|
2776
2776
|
name: params.name,
|
|
2777
2777
|
ports: params.ports,
|
|
@@ -2988,7 +2988,46 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
2988
2988
|
target,
|
|
2989
2989
|
instructions: `You are WISE, a helpful AI assistant participating in this live meeting. Speak naturally and concisely \u2014 1 to 3 sentences, since replies are heard aloud. Help the participants and answer questions. Only speak when addressed or asked; otherwise stay quiet.`
|
|
2990
2990
|
};
|
|
2991
|
-
|
|
2991
|
+
let wired = false;
|
|
2992
|
+
if (sid) {
|
|
2993
|
+
const sessionRpc = handlers.getSessionRPCHandlers?.(sid);
|
|
2994
|
+
if (sessionRpc?.saveChannel) {
|
|
2995
|
+
try {
|
|
2996
|
+
const sharedKey = createHash("sha256").update(sid + (process.env.INTERNAL_API_SECRET || "")).digest("hex").slice(0, 32);
|
|
2997
|
+
const meetingChannel = {
|
|
2998
|
+
id: `meeting-${sid}`,
|
|
2999
|
+
name: `Meeting WISE (${sid})`,
|
|
3000
|
+
enabled: true,
|
|
3001
|
+
system: true,
|
|
3002
|
+
bind: { session: sid },
|
|
3003
|
+
identity: { mode: "fixed", fixed: { name: "meeting-agent", kind: "agent" }, shared_key: sharedKey },
|
|
3004
|
+
action: {
|
|
3005
|
+
kind: "agent",
|
|
3006
|
+
agent: {
|
|
3007
|
+
system: 'You are WISE, a fast realtime agent in a live meeting, attached to this software project\'s coding session. Keep spoken replies to 1-2 sentences. Use run_bash/get_context/ask_session for quick answers. For anything that needs BUILDING, FIXING, ANALYSIS, or SLIDES, delegate to the deep coding agent via send_to_session (fire-and-forget \u2014 do NOT wait); tell it to do the work, then run `svamp serve` to share any artifact and `svamp wise announce "<short status + link>"` to report back to this meeting when done. Confirm to the room that you handed it off.',
|
|
3008
|
+
tools: ["get_context", "ask_session", "summarize_session", "use_skill", "reload_skills", "run_bash", "send_to_session"],
|
|
3009
|
+
timeout_sec: 90,
|
|
3010
|
+
max_steps: 10
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
3013
|
+
reply: { mode: "await", timeout_sec: 90 }
|
|
3014
|
+
};
|
|
3015
|
+
const saveRes = await sessionRpc.saveChannel(meetingChannel);
|
|
3016
|
+
if (saveRes?.success === false) throw new Error(saveRes.error || "saveChannel failed");
|
|
3017
|
+
const channelBase = process.env.SVAMP_WISE_CHANNEL_BASE || WISE_URL.replace(/\/channel\/[^/]+\/?$/, "").replace(/\/$/, "");
|
|
3018
|
+
if (channelBase) {
|
|
3019
|
+
rt.wiseUrl = `${channelBase}/channel/meeting-${sid}`;
|
|
3020
|
+
rt.wiseKey = sharedKey;
|
|
3021
|
+
wired = true;
|
|
3022
|
+
}
|
|
3023
|
+
} catch (e) {
|
|
3024
|
+
console.warn(`[wise] per-session channel for ${sid} failed, falling back to global: ${e instanceof Error ? e.message : String(e)}`);
|
|
3025
|
+
}
|
|
3026
|
+
} else {
|
|
3027
|
+
console.warn(`[wise] session ${sid} not live on this machine; using global WISE channel.`);
|
|
3028
|
+
}
|
|
3029
|
+
}
|
|
3030
|
+
if (!wired && WISE_URL) {
|
|
2992
3031
|
rt.wiseUrl = WISE_URL;
|
|
2993
3032
|
rt.wiseKey = WISE_KEY;
|
|
2994
3033
|
}
|
|
@@ -3032,6 +3071,38 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
3032
3071
|
}
|
|
3033
3072
|
return { active: activeMeetingAgents.size > 0, meetings: Array.from(activeMeetingAgents.values()) };
|
|
3034
3073
|
},
|
|
3074
|
+
// GAP 3 — post a chat message into the live meeting. The deep coding agent
|
|
3075
|
+
// (running inside its session) calls `svamp wise announce "<update>"` when work
|
|
3076
|
+
// is done so the room hears about it; this POSTs to the bot's Vexa chat endpoint.
|
|
3077
|
+
wiseAnnounce: async (params, context) => {
|
|
3078
|
+
if (context && (!context.user || context.user.is_anonymous)) return { success: false, error: "Sign in to announce into a meeting." };
|
|
3079
|
+
const text = (params?.text || "").trim();
|
|
3080
|
+
if (!text) return { success: false, error: "Nothing to announce: provide text." };
|
|
3081
|
+
let rec = params?.sessionId ? activeMeetingAgents.get(params.sessionId) : void 0;
|
|
3082
|
+
if (!rec && !params?.sessionId) {
|
|
3083
|
+
if (activeMeetingAgents.size === 1) rec = Array.from(activeMeetingAgents.values())[0];
|
|
3084
|
+
else if (activeMeetingAgents.size === 0) return { success: false, error: "No active meeting agent to announce into." };
|
|
3085
|
+
else return { success: false, error: "Multiple active meetings \u2014 pass --session <id> to pick one." };
|
|
3086
|
+
}
|
|
3087
|
+
if (!rec) return { success: false, error: `No active meeting agent for session ${params?.sessionId}.` };
|
|
3088
|
+
const base = (process.env.SVAMP_VEXA_API_URL || "").replace(/\/$/, "");
|
|
3089
|
+
const key = process.env.SVAMP_VEXA_API_KEY || "";
|
|
3090
|
+
if (!base || !key) return { success: false, error: "Meeting agent not configured: set SVAMP_VEXA_API_URL + SVAMP_VEXA_API_KEY." };
|
|
3091
|
+
try {
|
|
3092
|
+
const res = await fetch(`${base}/bots/${rec.platform}/${rec.nativeId}/chat`, {
|
|
3093
|
+
method: "POST",
|
|
3094
|
+
headers: { "X-API-Key": key, "Content-Type": "application/json" },
|
|
3095
|
+
body: JSON.stringify({ text })
|
|
3096
|
+
});
|
|
3097
|
+
if (!res.ok) {
|
|
3098
|
+
const data = await res.json().catch(() => ({}));
|
|
3099
|
+
return { success: false, error: `meeting-api ${res.status}: ${data?.detail || data?.message || "announce failed"}` };
|
|
3100
|
+
}
|
|
3101
|
+
return { success: true };
|
|
3102
|
+
} catch (e) {
|
|
3103
|
+
return { success: false, error: `meeting-api unreachable: ${e instanceof Error ? e.message : String(e)}` };
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3035
3106
|
// Cheap "subagent" text summary for the WISE voice agent's summarize_session
|
|
3036
3107
|
// tool. The browser gathers the (possibly long) text and asks a question; the
|
|
3037
3108
|
// call runs SERVER-SIDE with the machine's OpenAI key — never from the browser,
|
|
@@ -3136,7 +3207,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3136
3207
|
}
|
|
3137
3208
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
3138
3209
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
3139
|
-
const { toolsForRole } = await import('./sideband-
|
|
3210
|
+
const { toolsForRole } = await import('./sideband-DmGnYJTW.mjs');
|
|
3140
3211
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
3141
3212
|
return fmt(r2);
|
|
3142
3213
|
}
|
|
@@ -3235,7 +3306,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3235
3306
|
if (r.error || !r.sender) return { error: r.error || "unauthorized" };
|
|
3236
3307
|
const callId = "call_" + Math.random().toString(16).slice(2, 12);
|
|
3237
3308
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
3238
|
-
const { queryCore } = await import('./commands-
|
|
3309
|
+
const { queryCore } = await import('./commands-svKEY0uS.mjs');
|
|
3239
3310
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3240
3311
|
let result;
|
|
3241
3312
|
try {
|
|
@@ -4212,7 +4283,7 @@ function createSessionStore(server, sessionId, initialMetadata, initialAgentStat
|
|
|
4212
4283
|
authorizeRequest(context, metadata.sharing, "admin");
|
|
4213
4284
|
try {
|
|
4214
4285
|
if (channel.id === PARTICIPANTS_CHANNEL_ID) return { success: false, error: "reserved channel id" };
|
|
4215
|
-
if (channel.system) channel = { ...channel, system: false };
|
|
4286
|
+
if (channel.system && context?.user) channel = { ...channel, system: false };
|
|
4216
4287
|
const b = channel.bind;
|
|
4217
4288
|
if (b && typeof b === "object" && (b.session === "current" || b.session === "" || b.session == null)) {
|
|
4218
4289
|
channel = { ...channel, bind: { session: sessionId } };
|
|
@@ -11696,7 +11767,7 @@ async function startDaemon(options) {
|
|
|
11696
11767
|
saveExposedTunnels(list);
|
|
11697
11768
|
}
|
|
11698
11769
|
async function createExposedTunnel(spec) {
|
|
11699
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
11770
|
+
const { FrpcTunnel } = await import('./frpc-C4gw56kT.mjs');
|
|
11700
11771
|
const tunnel = new FrpcTunnel({
|
|
11701
11772
|
name: spec.name,
|
|
11702
11773
|
ports: spec.ports,
|
|
@@ -11716,7 +11787,7 @@ async function startDaemon(options) {
|
|
|
11716
11787
|
return tunnel;
|
|
11717
11788
|
}
|
|
11718
11789
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
11719
|
-
const { ServeManager } = await import('./serveManager-
|
|
11790
|
+
const { ServeManager } = await import('./serveManager-WDLgwHDg.mjs');
|
|
11720
11791
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
11721
11792
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
11722
11793
|
});
|
|
@@ -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-CnseHE8q.mjs';
|
|
2
2
|
import os from 'node:os';
|
|
3
3
|
import { resolve, join } from 'node:path';
|
|
4
4
|
import { existsSync, readFileSync, watch } from 'node:fs';
|
|
@@ -54,7 +54,7 @@ async function handleServeCommand() {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
async function serveAdd(args, machineId) {
|
|
57
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
57
|
+
const { connectAndGetMachine } = await import('./commands-svKEY0uS.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-svKEY0uS.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-svKEY0uS.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-svKEY0uS.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-svKEY0uS.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-CnseHE8q.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-C4gw56kT.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-CnseHE8q.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|