svamp-cli 0.2.199 → 0.2.201
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-C7HrSvD_.mjs → agentCommands-GTjs0-bd.mjs} +5 -5
- package/dist/{auth-BXaEbJ34.mjs → auth-DlFLX4-6.mjs} +1 -1
- package/dist/cli.mjs +60 -60
- package/dist/{commands-BnTqC2cq.mjs → commands-BTBheEhB.mjs} +2 -2
- package/dist/{commands-vs1xVOq6.mjs → commands-C3MUJCfD.mjs} +1 -1
- package/dist/{commands-eefkiBpA.mjs → commands-Cd7ddE3M.mjs} +2 -2
- package/dist/{commands-DoF9SAX3.mjs → commands-Ck4CJKJj.mjs} +2 -2
- package/dist/{commands-BfmWL88p.mjs → commands-DVYsYjGX.mjs} +1 -1
- package/dist/{commands-B1lil9Ip.mjs → commands-DgB5FL1z.mjs} +1 -1
- package/dist/{commands-CCjxPzJT.mjs → commands-Dt_wH1nx.mjs} +5 -5
- package/dist/{fleet-DrEOkILm.mjs → fleet-C62Zp0lV.mjs} +1 -1
- package/dist/{frpc-DBu9GJrO.mjs → frpc-BU4D6CVm.mjs} +1 -1
- package/dist/{headlessCli-DNFdPhIj.mjs → headlessCli-BvduwnX7.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-1EKr6SAA.mjs → package-DOruOKn8.mjs} +2 -2
- package/dist/{rpc-DLS2-gvn.mjs → rpc-BseJgkdY.mjs} +24 -19
- package/dist/{rpc-DL2Ng47j.mjs → rpc-Cma4983D.mjs} +1 -1
- package/dist/{run-RJGmYTlI.mjs → run-BDeU-Me-.mjs} +17 -12
- package/dist/{run-6OWcsJqy.mjs → run-QARmBvde.mjs} +1 -1
- package/dist/runStore-CtptN7US.mjs +168 -0
- package/dist/{scheduler-BZnWgzcy.mjs → scheduler-CGC0HpQU.mjs} +23 -17
- package/dist/{serveCommands-2ubtJpD9.mjs → serveCommands-T4izXL9D.mjs} +5 -5
- package/dist/{serveManager-Bd2VxWKz.mjs → serveManager-D0ntyQRX.mjs} +2 -2
- package/dist/{sideband-CTrvrrG-.mjs → sideband-9SjzSHvn.mjs} +1 -1
- package/dist/{store-DEZ8e-uE.mjs → store-BTs0H_y0.mjs} +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from '
|
|
|
2
2
|
import { join, dirname } from 'node:path';
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import { requireNotSandboxed } from './sandboxDetect-DNTcbgWD.mjs';
|
|
5
|
-
import { y as shortId } from './run-
|
|
5
|
+
import { y as shortId } from './run-BDeU-Me-.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-BDeU-Me-.mjs').then(function (n) { return n.a6; });
|
|
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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-BDeU-Me-.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-BDeU-Me-.mjs').then(function (n) { return n.ac; });
|
|
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-BDeU-Me-.mjs').then(function (n) { return n.ae; });
|
|
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-Dt_wH1nx.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-T4izXL9D.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-Cd7ddE3M.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-C3MUJCfD.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-BTBheEhB.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-Ck4CJKJj.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-DOruOKn8.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-QARmBvde.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-BDeU-Me-.mjs').then(function (n) { return n.a9; });
|
|
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-BDeU-Me-.mjs').then(function (n) { return n.a9; });
|
|
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-BDeU-Me-.mjs').then(function (n) { return n.aa; });
|
|
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-BDeU-Me-.mjs').then(function (n) { return n.a8; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ab; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a7; });
|
|
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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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")
|
|
@@ -880,7 +880,7 @@ async function handleSessionCommand() {
|
|
|
880
880
|
console.error("Usage: svamp session set-title <title>");
|
|
881
881
|
process.exit(1);
|
|
882
882
|
}
|
|
883
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
883
|
+
const { sessionSetTitle } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
884
884
|
await sessionSetTitle(title);
|
|
885
885
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
886
886
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -888,7 +888,7 @@ async function handleSessionCommand() {
|
|
|
888
888
|
console.error("Usage: svamp session set-project-description <text>");
|
|
889
889
|
process.exit(1);
|
|
890
890
|
}
|
|
891
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
891
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
892
892
|
await sessionSetProjectDescription(desc);
|
|
893
893
|
} else if (sessionSubcommand === "set-link") {
|
|
894
894
|
const url = sessionArgs[1];
|
|
@@ -897,7 +897,7 @@ async function handleSessionCommand() {
|
|
|
897
897
|
process.exit(1);
|
|
898
898
|
}
|
|
899
899
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
900
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
900
|
+
const { sessionSetLink } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
901
901
|
await sessionSetLink(url, label);
|
|
902
902
|
} else if (sessionSubcommand === "notify") {
|
|
903
903
|
const message = sessionArgs[1];
|
|
@@ -906,7 +906,7 @@ async function handleSessionCommand() {
|
|
|
906
906
|
process.exit(1);
|
|
907
907
|
}
|
|
908
908
|
const level = parseFlagStr("--level") || "info";
|
|
909
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
909
|
+
const { sessionNotify } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
910
910
|
await sessionNotify(message, level);
|
|
911
911
|
} else if (sessionSubcommand === "broadcast") {
|
|
912
912
|
const action = sessionArgs[1];
|
|
@@ -914,7 +914,7 @@ async function handleSessionCommand() {
|
|
|
914
914
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
915
915
|
process.exit(1);
|
|
916
916
|
}
|
|
917
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
917
|
+
const { sessionBroadcast } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
918
918
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
919
919
|
} else if (sessionSubcommand === "inbox") {
|
|
920
920
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -925,7 +925,7 @@ async function handleSessionCommand() {
|
|
|
925
925
|
process.exit(1);
|
|
926
926
|
}
|
|
927
927
|
if (agentSessionId) {
|
|
928
|
-
const { inboxSend } = await import('./agentCommands-
|
|
928
|
+
const { inboxSend } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
929
929
|
await inboxSend(sessionArgs[2], {
|
|
930
930
|
body: sessionArgs[3],
|
|
931
931
|
subject: parseFlagStr("--subject"),
|
|
@@ -940,7 +940,7 @@ async function handleSessionCommand() {
|
|
|
940
940
|
}
|
|
941
941
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
942
942
|
if (agentSessionId && !sessionArgs[2]) {
|
|
943
|
-
const { inboxList } = await import('./agentCommands-
|
|
943
|
+
const { inboxList } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
944
944
|
await inboxList({
|
|
945
945
|
unread: hasFlag("--unread"),
|
|
946
946
|
limit: parseFlagInt("--limit"),
|
|
@@ -962,7 +962,7 @@ async function handleSessionCommand() {
|
|
|
962
962
|
process.exit(1);
|
|
963
963
|
}
|
|
964
964
|
if (agentSessionId && !sessionArgs[3]) {
|
|
965
|
-
const { inboxList } = await import('./agentCommands-
|
|
965
|
+
const { inboxList } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
966
966
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
967
967
|
} else if (sessionArgs[3]) {
|
|
968
968
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -972,7 +972,7 @@ async function handleSessionCommand() {
|
|
|
972
972
|
}
|
|
973
973
|
} else if (inboxSubcmd === "reply") {
|
|
974
974
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
975
|
-
const { inboxReply } = await import('./agentCommands-
|
|
975
|
+
const { inboxReply } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
976
976
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
977
977
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
978
978
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1010,7 +1010,7 @@ async function handleMachineCommand() {
|
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
1012
|
if (machineSubcommand === "share") {
|
|
1013
|
-
const { machineShare } = await import('./commands-
|
|
1013
|
+
const { machineShare } = await import('./commands-DgB5FL1z.mjs');
|
|
1014
1014
|
let machineId;
|
|
1015
1015
|
const shareArgs = [];
|
|
1016
1016
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1061,14 +1061,14 @@ async function handleMachineCommand() {
|
|
|
1061
1061
|
process.exit(1);
|
|
1062
1062
|
}
|
|
1063
1063
|
if (all) {
|
|
1064
|
-
const { fleetExec } = await import('./fleet-
|
|
1064
|
+
const { fleetExec } = await import('./fleet-C62Zp0lV.mjs');
|
|
1065
1065
|
await fleetExec(command, { cwd });
|
|
1066
1066
|
} else {
|
|
1067
|
-
const { machineExec } = await import('./commands-
|
|
1067
|
+
const { machineExec } = await import('./commands-DgB5FL1z.mjs');
|
|
1068
1068
|
await machineExec(machineId, command, cwd);
|
|
1069
1069
|
}
|
|
1070
1070
|
} else if (machineSubcommand === "info") {
|
|
1071
|
-
const { machineInfo } = await import('./commands-
|
|
1071
|
+
const { machineInfo } = await import('./commands-DgB5FL1z.mjs');
|
|
1072
1072
|
let machineId;
|
|
1073
1073
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1074
1074
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1088,10 +1088,10 @@ async function handleMachineCommand() {
|
|
|
1088
1088
|
level = machineArgs[++i];
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1091
|
+
const { machineNotify } = await import('./agentCommands-GTjs0-bd.mjs');
|
|
1092
1092
|
await machineNotify(message, level);
|
|
1093
1093
|
} else if (machineSubcommand === "ls") {
|
|
1094
|
-
const { machineLs } = await import('./commands-
|
|
1094
|
+
const { machineLs } = await import('./commands-DgB5FL1z.mjs');
|
|
1095
1095
|
let machineId;
|
|
1096
1096
|
let showHidden = false;
|
|
1097
1097
|
let path;
|
|
@@ -1147,20 +1147,20 @@ Examples:
|
|
|
1147
1147
|
};
|
|
1148
1148
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1149
1149
|
if (sub === "status") {
|
|
1150
|
-
const { fleetStatus } = await import('./fleet-
|
|
1150
|
+
const { fleetStatus } = await import('./fleet-C62Zp0lV.mjs');
|
|
1151
1151
|
await fleetStatus();
|
|
1152
1152
|
} else if (sub === "upgrade-claude") {
|
|
1153
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1153
|
+
const { fleetUpgradeClaude } = await import('./fleet-C62Zp0lV.mjs');
|
|
1154
1154
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1155
1155
|
} else if (sub === "upgrade-svamp") {
|
|
1156
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1156
|
+
const { fleetUpgradeSvamp } = await import('./fleet-C62Zp0lV.mjs');
|
|
1157
1157
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1158
1158
|
} else if (sub === "daemon-restart") {
|
|
1159
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1159
|
+
const { fleetDaemonRestart } = await import('./fleet-C62Zp0lV.mjs');
|
|
1160
1160
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1161
1161
|
} else if (sub === "push-skill") {
|
|
1162
1162
|
const name = fleetArgs[1];
|
|
1163
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1163
|
+
const { fleetPushSkill } = await import('./fleet-C62Zp0lV.mjs');
|
|
1164
1164
|
await fleetPushSkill(name);
|
|
1165
1165
|
} else {
|
|
1166
1166
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1176,7 +1176,7 @@ async function handleSkillsCommand() {
|
|
|
1176
1176
|
await printSkillsHelp();
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
1179
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1179
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-DVYsYjGX.mjs');
|
|
1180
1180
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1181
1181
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1182
1182
|
if (!query) {
|
|
@@ -1223,7 +1223,7 @@ async function loginToHypha() {
|
|
|
1223
1223
|
process.exit(1);
|
|
1224
1224
|
}
|
|
1225
1225
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1226
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1226
|
+
const { loadInstanceConfig } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ac; });
|
|
1227
1227
|
let cfg = null;
|
|
1228
1228
|
try {
|
|
1229
1229
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1334,7 +1334,7 @@ async function logoutFromHypha() {
|
|
|
1334
1334
|
} catch {
|
|
1335
1335
|
}
|
|
1336
1336
|
try {
|
|
1337
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1337
|
+
const { clearInstanceConfigCache } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ac; });
|
|
1338
1338
|
clearInstanceConfigCache();
|
|
1339
1339
|
} catch {
|
|
1340
1340
|
}
|
|
@@ -1672,7 +1672,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1672
1672
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1673
1673
|
);
|
|
1674
1674
|
}
|
|
1675
|
-
const mod = await import('./run-
|
|
1675
|
+
const mod = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
|
|
1676
1676
|
if (hasHypha) {
|
|
1677
1677
|
let url;
|
|
1678
1678
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1726,7 +1726,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
if (collected.length === 0) return;
|
|
1729
|
-
const { updateEnvFile } = await import('./run-
|
|
1729
|
+
const { updateEnvFile } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
|
|
1730
1730
|
const seen = /* @__PURE__ */ new Set();
|
|
1731
1731
|
const deduped = collected.filter((e) => {
|
|
1732
1732
|
const k = e.toLowerCase();
|
|
@@ -1759,7 +1759,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
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(" ");
|
|
1762
|
-
const { wiseAskCli } = await import('./commands-
|
|
1762
|
+
const { wiseAskCli } = await import('./commands-DgB5FL1z.mjs');
|
|
1763
1763
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1764
1764
|
return;
|
|
1765
1765
|
}
|
|
@@ -1771,7 +1771,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
return void 0;
|
|
1773
1773
|
};
|
|
1774
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1774
|
+
const { runWiseVoiceCli } = await import('./headlessCli-BvduwnX7.mjs');
|
|
1775
1775
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
@@ -1789,7 +1789,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1789
1789
|
const mode = valueOf(["--mode"]);
|
|
1790
1790
|
const mission = valueOf(["--mission"]);
|
|
1791
1791
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1792
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1792
|
+
const { wiseJoinMeetingCli } = await import('./commands-DgB5FL1z.mjs');
|
|
1793
1793
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
@@ -1801,7 +1801,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
return void 0;
|
|
1803
1803
|
};
|
|
1804
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1804
|
+
const { wiseLeaveMeetingCli } = await import('./commands-DgB5FL1z.mjs');
|
|
1805
1805
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1806
1806
|
return;
|
|
1807
1807
|
}
|
|
@@ -1825,7 +1825,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
});
|
|
1827
1827
|
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(" ");
|
|
1828
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
1828
|
+
const { wiseAnnounceCli } = await import('./commands-DgB5FL1z.mjs');
|
|
1829
1829
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1830
1830
|
return;
|
|
1831
1831
|
}
|
|
@@ -1837,7 +1837,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
return void 0;
|
|
1839
1839
|
};
|
|
1840
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1840
|
+
const { wiseMeetingsCli } = await import('./commands-DgB5FL1z.mjs');
|
|
1841
1841
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1842
1842
|
return;
|
|
1843
1843
|
}
|
|
@@ -1887,7 +1887,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1887
1887
|
return;
|
|
1888
1888
|
}
|
|
1889
1889
|
const authArgs = rest.slice(1);
|
|
1890
|
-
const mod = await import('./auth-
|
|
1890
|
+
const mod = await import('./auth-DlFLX4-6.mjs');
|
|
1891
1891
|
let action;
|
|
1892
1892
|
try {
|
|
1893
1893
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1897,7 +1897,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1897
1897
|
return;
|
|
1898
1898
|
}
|
|
1899
1899
|
if (action) {
|
|
1900
|
-
const { updateEnvFile } = await import('./run-
|
|
1900
|
+
const { updateEnvFile } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
|
|
1901
1901
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1902
1902
|
updateEnvFile(updates);
|
|
1903
1903
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1911,7 +1911,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1911
1911
|
}
|
|
1912
1912
|
async function handleDaemonAuthCommand(argv) {
|
|
1913
1913
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1914
|
-
const mod = await import('./run-
|
|
1914
|
+
const mod = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.a5; });
|
|
1915
1915
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1916
1916
|
console.log(`
|
|
1917
1917
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2224,7 +2224,7 @@ Examples:
|
|
|
2224
2224
|
async function printSkillsHelp() {
|
|
2225
2225
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2226
2226
|
try {
|
|
2227
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2227
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BDeU-Me-.mjs').then(function (n) { return n.ad; });
|
|
2228
2228
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2229
2229
|
} catch {
|
|
2230
2230
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot } from './run-
|
|
3
|
-
import {
|
|
2
|
+
import { m as resolveProjectRoot } from './run-BDeU-Me-.mjs';
|
|
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';
|
|
6
6
|
import 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot, t as searchIssues, q as listIssues, o as addComment, u as updateIssue, n as getIssue, v as isVisibleTo, x as summarize, p as addIssue } from './run-
|
|
2
|
+
import { m as resolveProjectRoot, t as searchIssues, q as listIssues, o as addComment, u as updateIssue, n as getIssue, v as isVisibleTo, x as summarize, p as addIssue } from './run-BDeU-Me-.mjs';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
|
5
5
|
import 'fs';
|
|
@@ -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-DgB5FL1z.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-BDeU-Me-.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -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-DgB5FL1z.mjs';
|
|
4
4
|
import { execSync } from 'node:child_process';
|
|
5
|
-
import { u as updateIssue, o as addComment, p as addIssue, y as shortId } from './run-
|
|
5
|
+
import { u as updateIssue, o as addComment, p as addIssue, y as shortId } from './run-BDeU-Me-.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -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 { D as parseFrontmatter, E as getSkillsServer, F as getSkillsWorkspaceName, G as getSkillsCollectionName, H as fetchWithTimeout, I as searchSkills, J as SKILLS_DIR, K as getSkillInfo, L as downloadSkillFile, M as listSkillFiles } from './run-
|
|
4
|
+
import { D as parseFrontmatter, E as getSkillsServer, F as getSkillsWorkspaceName, G as getSkillsCollectionName, H as fetchWithTimeout, I as searchSkills, J as SKILLS_DIR, K as getSkillInfo, L as downloadSkillFile, M as listSkillFiles } from './run-BDeU-Me-.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -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 { O as formatHandle, P as normalizeAllowedUser, Q as loadSecurityContextConfig, T as resolveSecurityContext, U as buildSecurityContextFromFlags, V as mergeSecurityContexts, c as connectToHypha, W as buildSessionShareUrl, X as computeOutboundHop, y as shortId, Y as buildMachineShareUrl, Z as parseHandle, _ as handleMatchesMetadata } from './run-
|
|
5
|
+
import { O as formatHandle, P as normalizeAllowedUser, Q as loadSecurityContextConfig, T as resolveSecurityContext, U as buildSecurityContextFromFlags, V as mergeSecurityContexts, c as connectToHypha, W as buildSessionShareUrl, X as computeOutboundHop, y as shortId, Y as buildMachineShareUrl, Z as parseHandle, _ as handleMatchesMetadata } from './run-BDeU-Me-.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -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-BU4D6CVm.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-DgB5FL1z.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-BU4D6CVm.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-DgB5FL1z.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-DgB5FL1z.mjs');
|
|
176
176
|
const { server, machine } = await connectAndGetMachine();
|
|
177
177
|
try {
|
|
178
178
|
await machine.tunnelStop({ name });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, readFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
3
|
import os from 'node:os';
|
|
4
|
-
import { c as connectToHypha } from './run-
|
|
4
|
+
import { c as connectToHypha } from './run-BDeU-Me-.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-BDeU-Me-.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as resolveModel, $ as describeMisconfiguration, a0 as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { N as resolveModel, $ as describeMisconfiguration, a0 as buildMachineDeps } from './run-BDeU-Me-.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-9SjzSHvn.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-BDeU-Me-.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "svamp-cli";
|
|
2
|
-
var version = "0.2.
|
|
2
|
+
var version = "0.2.201";
|
|
3
3
|
var description = "Svamp CLI — AI workspace daemon on Hypha Cloud";
|
|
4
4
|
var author = "Amun AI AB";
|
|
5
5
|
var license = "SEE LICENSE IN LICENSE";
|
|
@@ -19,7 +19,7 @@ var exports$1 = {
|
|
|
19
19
|
var scripts = {
|
|
20
20
|
build: "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
|
|
21
21
|
typecheck: "tsc --noEmit",
|
|
22
|
-
test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
|
|
22
|
+
test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
|
|
23
23
|
"test:hypha": "node --no-warnings test/test-hypha-service.mjs",
|
|
24
24
|
dev: "tsx src/cli.ts",
|
|
25
25
|
"dev:daemon": "tsx src/cli.ts daemon start-sync",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
1
|
+
import { m as resolveProjectRoot } from './run-BDeU-Me-.mjs';
|
|
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
|
+
import { g as getRun, l as listRuns, r as runWorkflow } from './runStore-CtptN7US.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'fs';
|
|
@@ -10,6 +10,7 @@ import 'child_process';
|
|
|
10
10
|
import 'crypto';
|
|
11
11
|
import 'node:crypto';
|
|
12
12
|
import 'node:fs';
|
|
13
|
+
import 'node:child_process';
|
|
13
14
|
import 'util';
|
|
14
15
|
import 'node:path';
|
|
15
16
|
import 'node:events';
|
|
@@ -23,7 +24,7 @@ import 'node:fs/promises';
|
|
|
23
24
|
import 'node:util';
|
|
24
25
|
import 'yaml';
|
|
25
26
|
|
|
26
|
-
function workflowRpc(cwd, params) {
|
|
27
|
+
async function workflowRpc(cwd, params) {
|
|
27
28
|
const root = resolveProjectRoot(cwd || process.cwd());
|
|
28
29
|
const op = params.op;
|
|
29
30
|
switch (op) {
|
|
@@ -62,22 +63,26 @@ function workflowRpc(cwd, params) {
|
|
|
62
63
|
case "run": {
|
|
63
64
|
const wf = getWorkflow(root, String(params.name));
|
|
64
65
|
if (!wf) throw new Error(`Workflow not found: ${params.name}`);
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
out.push(
|
|
71
|
-
|
|
72
|
-
if (
|
|
73
|
-
if (r.stderr) out.push(r.stderr.trimEnd());
|
|
74
|
-
if (r.status !== 0) {
|
|
75
|
-
out.push(` \u2717 step ${i + 1} failed (exit ${r.status ?? "signal"}). Stopping.`);
|
|
76
|
-
return { ok: false, output: out.join("\n") };
|
|
77
|
-
}
|
|
66
|
+
const run = await runWorkflow(root, wf, { trigger: "manual", actor: params.actor || params.session || null });
|
|
67
|
+
const out = [`\u25B6 ran workflow "${wf.name}" (${run.steps.length} step${run.steps.length === 1 ? "" : "s"}) \u2192 ${run.status}`];
|
|
68
|
+
for (const s of run.steps) {
|
|
69
|
+
out.push(` [${s.index + 1}] $ ${s.cmd}`);
|
|
70
|
+
if (s.stdout) out.push(s.stdout.trimEnd());
|
|
71
|
+
if (s.stderr) out.push(s.stderr.trimEnd());
|
|
72
|
+
if (s.timedOut) out.push(` \u2717 step ${s.index + 1} timed out.`);
|
|
73
|
+
else if (s.exitCode !== 0) out.push(` \u2717 step ${s.index + 1} failed (exit ${s.exitCode ?? "signal"}).`);
|
|
78
74
|
}
|
|
79
|
-
out.push(`\u2713 workflow "${wf.name}" completed.`);
|
|
80
|
-
return { ok:
|
|
75
|
+
out.push(run.status === "success" ? `\u2713 workflow "${wf.name}" completed.` : `\u2717 workflow "${wf.name}" failed.`);
|
|
76
|
+
return { ok: run.status === "success", output: out.join("\n"), runId: run.id };
|
|
77
|
+
}
|
|
78
|
+
case "runs": {
|
|
79
|
+
const limit = Number(params.limit) > 0 ? Number(params.limit) : void 0;
|
|
80
|
+
return { runs: listRuns(root, String(params.name), limit) };
|
|
81
|
+
}
|
|
82
|
+
case "run-detail": {
|
|
83
|
+
const run = getRun(root, String(params.name), String(params.runId));
|
|
84
|
+
if (!run) throw new Error(`Run not found: ${params.name}/${params.runId}`);
|
|
85
|
+
return run;
|
|
81
86
|
}
|
|
82
87
|
default:
|
|
83
88
|
throw new Error(`workflow rpc: unknown op "${op}"`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues, v as isVisibleTo } from './run-
|
|
1
|
+
import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues, v as isVisibleTo } from './run-BDeU-Me-.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -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-BU4D6CVm.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-9SjzSHvn.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-DgB5FL1z.mjs');
|
|
3462
3462
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3463
3463
|
let result;
|
|
3464
3464
|
try {
|
|
@@ -3819,9 +3819,14 @@ function isRetryableRateLimit(text, apiErrorStatus) {
|
|
|
3819
3819
|
const t = (text || "").toLowerCase();
|
|
3820
3820
|
const hardLimit = t.includes("quota") || t.includes("credit") || t.includes("balance") || t.includes("billing") || t.includes("payment") || t.includes("subscription") || t.includes("1m-context") || t.includes("1m context") || t.includes("insufficient") || t.includes("usage limit") && !t.includes("not your usage limit");
|
|
3821
3821
|
if (hardLimit) return false;
|
|
3822
|
-
const authIssue = t.includes("unauthorized") || t.includes("invalid api key") || t.includes("authentication") || t.includes("forbidden");
|
|
3822
|
+
const authIssue = apiErrorStatus === 401 || apiErrorStatus === 403 || t.includes("unauthorized") || t.includes("invalid api key") || t.includes("authentication") || t.includes("forbidden");
|
|
3823
3823
|
if (authIssue) return false;
|
|
3824
|
-
|
|
3824
|
+
const clientError = apiErrorStatus === 400 || apiErrorStatus === 404 || apiErrorStatus === 422 || t.includes("invalid_request") || t.includes("invalid request") || t.includes("bad request");
|
|
3825
|
+
if (clientError) return false;
|
|
3826
|
+
const serverTransient = typeof apiErrorStatus === "number" && apiErrorStatus >= 500 && apiErrorStatus <= 599 || apiErrorStatus === 429 || /\b(429|500|502|503|504|520|521|522|523|524|529)\b/.test(t) || t.includes("temporarily limiting") || t.includes("not your usage limit") || t.includes("overloaded") || t.includes("overload") || t.includes("too many requests") || t.includes("server is busy") || t.includes("internal server error") || t.includes("bad gateway") || t.includes("service unavailable") || t.includes("gateway timeout") || t.includes("rate limit") || t.includes("rate-limit") || t.includes("rate limited");
|
|
3827
|
+
if (serverTransient) return true;
|
|
3828
|
+
const networkTransient = t.includes("socket hang up") || t.includes("closed unexpectedly") || t.includes("connection closed") || t.includes("connection reset") || t.includes("connection error") || t.includes("econnreset") || t.includes("etimedout") || t.includes("econnaborted") || t.includes("epipe") || t.includes("enetunreach") || t.includes("enetreset") || t.includes("ehostunreach") || t.includes("eai_again") || t.includes("network error") || t.includes("fetch failed") || t.includes("request timed out") || t.includes("timed out");
|
|
3829
|
+
return networkTransient;
|
|
3825
3830
|
}
|
|
3826
3831
|
|
|
3827
3832
|
const EXAMPLE_HYPHA_PROXY_URL = "https://proxy.hypha.aicell.io";
|
|
@@ -12096,7 +12101,7 @@ async function startDaemon(options) {
|
|
|
12096
12101
|
saveExposedTunnels(list);
|
|
12097
12102
|
}
|
|
12098
12103
|
async function createExposedTunnel(spec) {
|
|
12099
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
12104
|
+
const { FrpcTunnel } = await import('./frpc-BU4D6CVm.mjs');
|
|
12100
12105
|
const tunnel = new FrpcTunnel({
|
|
12101
12106
|
name: spec.name,
|
|
12102
12107
|
ports: spec.ports,
|
|
@@ -12116,7 +12121,7 @@ async function startDaemon(options) {
|
|
|
12116
12121
|
return tunnel;
|
|
12117
12122
|
}
|
|
12118
12123
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
12119
|
-
const { ServeManager } = await import('./serveManager-
|
|
12124
|
+
const { ServeManager } = await import('./serveManager-D0ntyQRX.mjs');
|
|
12120
12125
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
12121
12126
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
12122
12127
|
});
|
|
@@ -13980,11 +13985,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
13980
13985
|
});
|
|
13981
13986
|
},
|
|
13982
13987
|
onIssue: async (params) => {
|
|
13983
|
-
const { issueRpc } = await import('./rpc-
|
|
13988
|
+
const { issueRpc } = await import('./rpc-Cma4983D.mjs');
|
|
13984
13989
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
|
|
13985
13990
|
},
|
|
13986
13991
|
onWorkflow: async (params) => {
|
|
13987
|
-
const { workflowRpc } = await import('./rpc-
|
|
13992
|
+
const { workflowRpc } = await import('./rpc-BseJgkdY.mjs');
|
|
13988
13993
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
13989
13994
|
},
|
|
13990
13995
|
onRipgrep: async (args, cwd) => {
|
|
@@ -14494,11 +14499,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14494
14499
|
});
|
|
14495
14500
|
},
|
|
14496
14501
|
onIssue: async (params) => {
|
|
14497
|
-
const { issueRpc } = await import('./rpc-
|
|
14502
|
+
const { issueRpc } = await import('./rpc-Cma4983D.mjs');
|
|
14498
14503
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
|
|
14499
14504
|
},
|
|
14500
14505
|
onWorkflow: async (params) => {
|
|
14501
|
-
const { workflowRpc } = await import('./rpc-
|
|
14506
|
+
const { workflowRpc } = await import('./rpc-BseJgkdY.mjs');
|
|
14502
14507
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14503
14508
|
},
|
|
14504
14509
|
onRipgrep: async (args, cwd) => {
|
|
@@ -15283,7 +15288,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
15283
15288
|
const PING_TIMEOUT_MS = 15e3;
|
|
15284
15289
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
15285
15290
|
const RECONNECT_JITTER_MS = 2500;
|
|
15286
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
15291
|
+
const { WorkflowScheduler } = await import('./scheduler-CGC0HpQU.mjs');
|
|
15287
15292
|
const workflowScheduler = new WorkflowScheduler({
|
|
15288
15293
|
projectRoots: () => {
|
|
15289
15294
|
const dirs = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a1 as applyClaudeProxyEnv, a2 as composeSessionId, a3 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a4 as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a1 as applyClaudeProxyEnv, a2 as composeSessionId, a3 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a4 as generateHookSettings } from './run-BDeU-Me-.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';
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { existsSync, readFileSync, mkdirSync, writeFileSync, renameSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { c as workflowSteps, d as workflowsDir } from './store-BTs0H_y0.mjs';
|
|
5
|
+
|
|
6
|
+
const MAX_RUNS_PER_WORKFLOW = 50;
|
|
7
|
+
const MAX_STREAM_CHARS = 8e3;
|
|
8
|
+
const STEP_TIMEOUT_MS = 12e4;
|
|
9
|
+
function capStream(s, max = MAX_STREAM_CHARS) {
|
|
10
|
+
if (s.length <= max) return s;
|
|
11
|
+
const head = Math.floor(max * 0.6);
|
|
12
|
+
const tail = max - head;
|
|
13
|
+
const omitted = s.length - max;
|
|
14
|
+
return `${s.slice(0, head)}
|
|
15
|
+
\u2026 [${omitted} chars omitted] \u2026
|
|
16
|
+
${s.slice(s.length - tail)}`;
|
|
17
|
+
}
|
|
18
|
+
function runsDir(projectRoot) {
|
|
19
|
+
return join(workflowsDir(projectRoot), ".runs");
|
|
20
|
+
}
|
|
21
|
+
function runsFile(projectRoot, workflow) {
|
|
22
|
+
const safe = workflow.replace(/[^\w.-]+/g, "_");
|
|
23
|
+
return join(runsDir(projectRoot), `${safe}.jsonl`);
|
|
24
|
+
}
|
|
25
|
+
function shortRunId(seed) {
|
|
26
|
+
let h = 2166136261;
|
|
27
|
+
for (let i = 0; i < seed.length; i++) {
|
|
28
|
+
h ^= seed.charCodeAt(i);
|
|
29
|
+
h = Math.imul(h, 16777619);
|
|
30
|
+
}
|
|
31
|
+
return (h >>> 0).toString(36).padStart(7, "0").slice(0, 7);
|
|
32
|
+
}
|
|
33
|
+
function recordRun(projectRoot, run) {
|
|
34
|
+
try {
|
|
35
|
+
const dir = runsDir(projectRoot);
|
|
36
|
+
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|
|
37
|
+
const file = runsFile(projectRoot, run.workflow);
|
|
38
|
+
const existing = loadRuns(projectRoot, run.workflow);
|
|
39
|
+
const idx = existing.findIndex((r) => r.id === run.id);
|
|
40
|
+
if (idx >= 0) existing[idx] = run;
|
|
41
|
+
else existing.push(run);
|
|
42
|
+
const kept = existing.slice(-MAX_RUNS_PER_WORKFLOW);
|
|
43
|
+
const tmp = `${file}.tmp`;
|
|
44
|
+
writeFileSync(tmp, kept.map((r) => JSON.stringify(r)).join("\n") + "\n");
|
|
45
|
+
renameSync(tmp, file);
|
|
46
|
+
} catch {
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function loadRuns(projectRoot, workflow) {
|
|
50
|
+
try {
|
|
51
|
+
const file = runsFile(projectRoot, workflow);
|
|
52
|
+
if (!existsSync(file)) return [];
|
|
53
|
+
return readFileSync(file, "utf-8").split("\n").filter(Boolean).map((l) => {
|
|
54
|
+
try {
|
|
55
|
+
return JSON.parse(l);
|
|
56
|
+
} catch {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
}).filter((r) => !!r);
|
|
60
|
+
} catch {
|
|
61
|
+
return [];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function listRuns(projectRoot, workflow, limit = MAX_RUNS_PER_WORKFLOW) {
|
|
65
|
+
return loadRuns(projectRoot, workflow).slice(-limit).reverse().map((r) => {
|
|
66
|
+
const failedStep = r.steps.findIndex((s) => s.exitCode !== 0 && s.exitCode !== null || s.timedOut);
|
|
67
|
+
const { steps, ...rest } = r;
|
|
68
|
+
return { ...rest, stepCount: steps.length, failedStep: failedStep >= 0 ? failedStep : void 0 };
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function getRun(projectRoot, workflow, runId) {
|
|
72
|
+
return loadRuns(projectRoot, workflow).find((r) => r.id === runId) || null;
|
|
73
|
+
}
|
|
74
|
+
function defaultExecStep(root, cmd, env) {
|
|
75
|
+
return new Promise((resolve) => {
|
|
76
|
+
let stdout = "", stderr = "", timedOut = false, settled = false;
|
|
77
|
+
const finish = (exitCode) => {
|
|
78
|
+
if (settled) return;
|
|
79
|
+
settled = true;
|
|
80
|
+
resolve({ exitCode, stdout, stderr, timedOut });
|
|
81
|
+
};
|
|
82
|
+
try {
|
|
83
|
+
const child = spawn("sh", ["-c", cmd], { cwd: root, env, stdio: ["ignore", "pipe", "pipe"] });
|
|
84
|
+
const timer = setTimeout(() => {
|
|
85
|
+
timedOut = true;
|
|
86
|
+
try {
|
|
87
|
+
child.kill("SIGKILL");
|
|
88
|
+
} catch {
|
|
89
|
+
}
|
|
90
|
+
}, STEP_TIMEOUT_MS);
|
|
91
|
+
child.stdout?.on("data", (d) => {
|
|
92
|
+
stdout += d.toString();
|
|
93
|
+
if (stdout.length > MAX_STREAM_CHARS * 4) stdout = capStream(stdout);
|
|
94
|
+
});
|
|
95
|
+
child.stderr?.on("data", (d) => {
|
|
96
|
+
stderr += d.toString();
|
|
97
|
+
if (stderr.length > MAX_STREAM_CHARS * 4) stderr = capStream(stderr);
|
|
98
|
+
});
|
|
99
|
+
child.on("error", (e) => {
|
|
100
|
+
clearTimeout(timer);
|
|
101
|
+
stderr += `
|
|
102
|
+
[spawn error] ${e.message}`;
|
|
103
|
+
finish(null);
|
|
104
|
+
});
|
|
105
|
+
child.on("close", (code) => {
|
|
106
|
+
clearTimeout(timer);
|
|
107
|
+
finish(code);
|
|
108
|
+
});
|
|
109
|
+
} catch (e) {
|
|
110
|
+
stderr += `[spawn threw] ${e?.message || e}`;
|
|
111
|
+
finish(null);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
async function runWorkflow(projectRoot, wf, opts) {
|
|
116
|
+
const now = opts.now || (() => {
|
|
117
|
+
const d = /* @__PURE__ */ new Date();
|
|
118
|
+
return { iso: d.toISOString(), ms: d.getTime() };
|
|
119
|
+
});
|
|
120
|
+
const exec = opts.execStep || defaultExecStep;
|
|
121
|
+
const start = now();
|
|
122
|
+
const id = shortRunId(`${wf.name}:${start.iso}:${start.ms}`);
|
|
123
|
+
const env = wf.session ? { ...process.env, SVAMP_SESSION_ID: wf.session } : process.env;
|
|
124
|
+
const run = {
|
|
125
|
+
id,
|
|
126
|
+
workflow: wf.name,
|
|
127
|
+
trigger: opts.trigger,
|
|
128
|
+
triggerContext: opts.triggerContext,
|
|
129
|
+
actor: opts.actor ?? wf.session ?? null,
|
|
130
|
+
startedAt: start.iso,
|
|
131
|
+
status: "running",
|
|
132
|
+
steps: []
|
|
133
|
+
};
|
|
134
|
+
recordRun(projectRoot, run);
|
|
135
|
+
const steps = workflowSteps(wf);
|
|
136
|
+
try {
|
|
137
|
+
for (let i = 0; i < steps.length; i++) {
|
|
138
|
+
const s0 = now();
|
|
139
|
+
const r = await exec(projectRoot, steps[i].run, env);
|
|
140
|
+
const s1 = now();
|
|
141
|
+
run.steps.push({
|
|
142
|
+
index: i,
|
|
143
|
+
cmd: steps[i].run,
|
|
144
|
+
exitCode: r.exitCode,
|
|
145
|
+
stdout: capStream(r.stdout),
|
|
146
|
+
stderr: capStream(r.stderr),
|
|
147
|
+
durationMs: s1.ms - s0.ms,
|
|
148
|
+
timedOut: r.timedOut || void 0
|
|
149
|
+
});
|
|
150
|
+
if (r.timedOut || r.exitCode !== 0) {
|
|
151
|
+
run.status = "failed";
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (run.status === "running") run.status = "success";
|
|
156
|
+
} catch (e) {
|
|
157
|
+
run.status = "failed";
|
|
158
|
+
run.error = e?.message || String(e);
|
|
159
|
+
}
|
|
160
|
+
const end = now();
|
|
161
|
+
run.finishedAt = end.iso;
|
|
162
|
+
run.durationMs = end.ms - start.ms;
|
|
163
|
+
recordRun(projectRoot, run);
|
|
164
|
+
opts.log?.(`[workflow] run ${id} "${wf.name}" \u2192 ${run.status} (${run.steps.length} step${run.steps.length === 1 ? "" : "s"})`);
|
|
165
|
+
return run;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export { getRun as g, listRuns as l, runWorkflow as r };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { m as resolveProjectRoot, w as cronMatches } from './run-BDeU-Me-.mjs';
|
|
2
|
+
import { l as listWorkflows, i as isWorkflowEnabled, w as workflowCrons } from './store-BTs0H_y0.mjs';
|
|
3
|
+
import { r as runWorkflow } from './runStore-CtptN7US.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'fs';
|
|
@@ -10,6 +10,7 @@ import 'child_process';
|
|
|
10
10
|
import 'crypto';
|
|
11
11
|
import 'node:crypto';
|
|
12
12
|
import 'node:fs';
|
|
13
|
+
import 'node:child_process';
|
|
13
14
|
import 'util';
|
|
14
15
|
import 'node:path';
|
|
15
16
|
import 'node:events';
|
|
@@ -23,16 +24,6 @@ import 'node:fs/promises';
|
|
|
23
24
|
import 'node:util';
|
|
24
25
|
import 'yaml';
|
|
25
26
|
|
|
26
|
-
function defaultRunStep(root, command, ownerSession, log) {
|
|
27
|
-
try {
|
|
28
|
-
const env = ownerSession ? { ...process.env, SVAMP_SESSION_ID: ownerSession } : process.env;
|
|
29
|
-
const child = spawn("sh", ["-c", command], { cwd: root, detached: true, stdio: "ignore", env });
|
|
30
|
-
child.on("error", (e) => log?.(`[workflow] step spawn error in ${root}: ${e.message}`));
|
|
31
|
-
child.unref();
|
|
32
|
-
} catch (e) {
|
|
33
|
-
log?.(`[workflow] step spawn threw in ${root}: ${e?.message || e}`);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
27
|
function cronMatchesSafe(expr, date) {
|
|
37
28
|
try {
|
|
38
29
|
return cronMatches(expr, date);
|
|
@@ -47,6 +38,12 @@ class WorkflowScheduler {
|
|
|
47
38
|
// Wall-clock minute we last processed, so multiple sub-minute ticks fire a workflow at most once
|
|
48
39
|
// per minute (cron granularity is one minute).
|
|
49
40
|
lastMinuteKey = null;
|
|
41
|
+
// In-flight runs (fire-and-forget). `idle()` awaits them — used by tests; harmless in prod.
|
|
42
|
+
pending = /* @__PURE__ */ new Set();
|
|
43
|
+
/** Await all in-flight scheduled runs (test helper; the daemon never needs to block on these). */
|
|
44
|
+
async idle() {
|
|
45
|
+
await Promise.all([...this.pending]);
|
|
46
|
+
}
|
|
50
47
|
static minuteKey(d) {
|
|
51
48
|
return `${d.getFullYear()}-${d.getMonth()}-${d.getDate()}-${d.getHours()}-${d.getMinutes()}`;
|
|
52
49
|
}
|
|
@@ -85,11 +82,20 @@ class WorkflowScheduler {
|
|
|
85
82
|
return fired;
|
|
86
83
|
}
|
|
87
84
|
fire(root, wf) {
|
|
88
|
-
const steps = workflowSteps(wf);
|
|
89
85
|
const owner = wf.session || null;
|
|
90
|
-
this.deps.log?.(`[workflow] schedule fired "${wf.name}"
|
|
91
|
-
const
|
|
92
|
-
|
|
86
|
+
this.deps.log?.(`[workflow] schedule fired "${wf.name}" in ${root}${owner ? ` as ${owner}` : ""}`);
|
|
87
|
+
const p = runWorkflow(root, wf, {
|
|
88
|
+
trigger: "schedule",
|
|
89
|
+
actor: owner,
|
|
90
|
+
execStep: this.deps.execStep,
|
|
91
|
+
now: this.deps.now,
|
|
92
|
+
log: this.deps.log
|
|
93
|
+
}).catch((e) => {
|
|
94
|
+
this.deps.log?.(`[workflow] scheduled run threw for "${wf.name}": ${e?.message || e}`);
|
|
95
|
+
return void 0;
|
|
96
|
+
});
|
|
97
|
+
this.pending.add(p);
|
|
98
|
+
p.finally(() => this.pending.delete(p));
|
|
93
99
|
}
|
|
94
100
|
}
|
|
95
101
|
|
|
@@ -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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-DgB5FL1z.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-BDeU-Me-.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-BU4D6CVm.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-BDeU-Me-.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
|
@@ -145,4 +145,4 @@ function removeWorkflow(projectRoot, name) {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
export { saveWorkflow as a, rawWorkflow as b,
|
|
148
|
+
export { saveWorkflow as a, rawWorkflow as b, workflowSteps as c, workflowsDir as d, getWorkflow as g, isWorkflowEnabled as i, listWorkflows as l, removeWorkflow as r, setWorkflowEnabled as s, workflowCrons as w };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svamp-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.201",
|
|
4
4
|
"description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
|
|
5
5
|
"author": "Amun AI AB",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
|
|
23
|
+
"test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
|
|
24
24
|
"test:hypha": "node --no-warnings test/test-hypha-service.mjs",
|
|
25
25
|
"dev": "tsx src/cli.ts",
|
|
26
26
|
"dev:daemon": "tsx src/cli.ts daemon start-sync",
|