svamp-cli 0.2.149 → 0.2.151
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-CcBymbEr.mjs → agentCommands-CtOE-AFD.mjs} +5 -5
- package/dist/{auth-CP3k1NqI.mjs → auth-DR4WJJdh.mjs} +1 -1
- package/dist/cli.mjs +66 -62
- package/dist/{commands-BnHPl4F4.mjs → commands--9dm2tSB.mjs} +13 -5
- package/dist/{commands-hpn6BrhO.mjs → commands-5huYGEJA.mjs} +2 -2
- package/dist/{commands-BmZNAa8k.mjs → commands-C80GsDpQ.mjs} +1 -1
- package/dist/{commands-DYgBXx_q.mjs → commands-CraNY95y.mjs} +2 -2
- package/dist/{commands-QA3QzKNW.mjs → commands-DRFQ4tEC.mjs} +2 -2
- package/dist/{commands-q-CtOQI6.mjs → commands-DR_g13_S.mjs} +5 -5
- package/dist/{commands-svKEY0uS.mjs → commands-sruHTsVh.mjs} +9 -4
- package/dist/{fleet-DU_vy3QE.mjs → fleet-BM08pkb9.mjs} +1 -1
- package/dist/{frpc-C4gw56kT.mjs → frpc-BQ9Dta1o.mjs} +1 -1
- package/dist/{headlessCli-F75H6TBS.mjs → headlessCli-D5m-1YmS.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-BWc_92Q1.mjs → package-JMm_HlGt.mjs} +1 -1
- package/dist/{run-CnseHE8q.mjs → run-DhnZXHcu.mjs} +16 -11
- package/dist/{run-s9YQOKzS.mjs → run-H_4p9eNo.mjs} +1 -1
- package/dist/{serveCommands-DlH0nO5h.mjs → serveCommands-CUywdvCF.mjs} +5 -5
- package/dist/{serveManager-WDLgwHDg.mjs → serveManager-sZkIrZCW.mjs} +2 -2
- package/dist/{sideband-DmGnYJTW.mjs → sideband-CKX3P035.mjs} +1 -1
- package/package.json +45 -45
|
@@ -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-DhnZXHcu.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-DhnZXHcu.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-DhnZXHcu.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-DhnZXHcu.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-DhnZXHcu.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-DR_g13_S.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-CUywdvCF.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-5huYGEJA.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--9dm2tSB.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-DRFQ4tEC.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-CraNY95y.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-JMm_HlGt.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-H_4p9eNo.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-DhnZXHcu.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-DhnZXHcu.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-DhnZXHcu.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-DhnZXHcu.mjs').then(function (n) { return n.a3; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-DhnZXHcu.mjs').then(function (n) { return n.a6; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-DhnZXHcu.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-CtOE-AFD.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-CtOE-AFD.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-CtOE-AFD.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-CtOE-AFD.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-CtOE-AFD.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-CtOE-AFD.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-CtOE-AFD.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-CtOE-AFD.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-CtOE-AFD.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-sruHTsVh.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-BM08pkb9.mjs');
|
|
1099
1099
|
await fleetExec(command, { cwd });
|
|
1100
1100
|
} else {
|
|
1101
|
-
const { machineExec } = await import('./commands-
|
|
1101
|
+
const { machineExec } = await import('./commands-sruHTsVh.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-sruHTsVh.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-CtOE-AFD.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-sruHTsVh.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-BM08pkb9.mjs');
|
|
1185
1185
|
await fleetStatus();
|
|
1186
1186
|
} else if (sub === "upgrade-claude") {
|
|
1187
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1187
|
+
const { fleetUpgradeClaude } = await import('./fleet-BM08pkb9.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-BM08pkb9.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-BM08pkb9.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-BM08pkb9.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-C80GsDpQ.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-DhnZXHcu.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-DhnZXHcu.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-DhnZXHcu.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-DhnZXHcu.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-sruHTsVh.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-D5m-1YmS.mjs');
|
|
1809
1809
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1810
1810
|
return;
|
|
1811
1811
|
}
|
|
@@ -1820,9 +1820,11 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1820
1820
|
const machineId = valueOf(["--machine", "-m"]);
|
|
1821
1821
|
const sessionId = rest.includes("--global") ? void 0 : valueOf(["--session", "-s"]);
|
|
1822
1822
|
const json = rest.includes("--json");
|
|
1823
|
+
const mode = valueOf(["--mode"]);
|
|
1824
|
+
const mission = valueOf(["--mission"]);
|
|
1823
1825
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1824
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1825
|
-
await wiseJoinMeetingCli(machineId, url, sessionId, { json });
|
|
1826
|
+
const { wiseJoinMeetingCli } = await import('./commands-sruHTsVh.mjs');
|
|
1827
|
+
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1826
1828
|
return;
|
|
1827
1829
|
}
|
|
1828
1830
|
if (sub === "leave-meeting" || sub === "leave") {
|
|
@@ -1833,7 +1835,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1833
1835
|
}
|
|
1834
1836
|
return void 0;
|
|
1835
1837
|
};
|
|
1836
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1838
|
+
const { wiseLeaveMeetingCli } = await import('./commands-sruHTsVh.mjs');
|
|
1837
1839
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1838
1840
|
return;
|
|
1839
1841
|
}
|
|
@@ -1857,7 +1859,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1857
1859
|
}
|
|
1858
1860
|
});
|
|
1859
1861
|
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-
|
|
1862
|
+
const { wiseAnnounceCli } = await import('./commands-sruHTsVh.mjs');
|
|
1861
1863
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1862
1864
|
return;
|
|
1863
1865
|
}
|
|
@@ -1869,14 +1871,16 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1869
1871
|
}
|
|
1870
1872
|
return void 0;
|
|
1871
1873
|
};
|
|
1872
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1874
|
+
const { wiseMeetingsCli } = await import('./commands-sruHTsVh.mjs');
|
|
1873
1875
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1874
1876
|
return;
|
|
1875
1877
|
}
|
|
1876
1878
|
if (sub === "--help" || sub === "-h") {
|
|
1877
1879
|
console.log(`Usage:
|
|
1878
1880
|
svamp wise ask "<message>" [--session <id>] [-m <machine>] [--json]
|
|
1879
|
-
svamp wise join-meeting <zoom|meet|teams url> [--session <id>|--global] [-m <machine>]
|
|
1881
|
+
svamp wise join-meeting <zoom|meet|teams url> [--session <id>|--global] [--mode listen|text|voice] [--mission "<prompt>"] [-m <machine>]
|
|
1882
|
+
--mode listen=silent (transcribe only), text=reply in meeting chat, voice=speak aloud (default).
|
|
1883
|
+
--mission optional focus prompt for the agent; omit for a general meeting mission.
|
|
1880
1884
|
svamp wise leave-meeting [--session <id>] [-m <machine>]
|
|
1881
1885
|
svamp wise announce "<text>" [--session <id>] [-m <machine>]
|
|
1882
1886
|
Post a chat message into the live meeting (defaults --session to
|
|
@@ -1917,7 +1921,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1917
1921
|
return;
|
|
1918
1922
|
}
|
|
1919
1923
|
const authArgs = rest.slice(1);
|
|
1920
|
-
const mod = await import('./auth-
|
|
1924
|
+
const mod = await import('./auth-DR4WJJdh.mjs');
|
|
1921
1925
|
let action;
|
|
1922
1926
|
try {
|
|
1923
1927
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1927,7 +1931,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1927
1931
|
return;
|
|
1928
1932
|
}
|
|
1929
1933
|
if (action) {
|
|
1930
|
-
const { updateEnvFile } = await import('./run-
|
|
1934
|
+
const { updateEnvFile } = await import('./run-DhnZXHcu.mjs').then(function (n) { return n.a7; });
|
|
1931
1935
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1932
1936
|
updateEnvFile(updates);
|
|
1933
1937
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1941,7 +1945,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1941
1945
|
}
|
|
1942
1946
|
async function handleDaemonAuthCommand(argv) {
|
|
1943
1947
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1944
|
-
const mod = await import('./run-
|
|
1948
|
+
const mod = await import('./run-DhnZXHcu.mjs').then(function (n) { return n.a7; });
|
|
1945
1949
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1946
1950
|
console.log(`
|
|
1947
1951
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2254,7 +2258,7 @@ Examples:
|
|
|
2254
2258
|
async function printSkillsHelp() {
|
|
2255
2259
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2256
2260
|
try {
|
|
2257
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2261
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-DhnZXHcu.mjs').then(function (n) { return n.a9; });
|
|
2258
2262
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2259
2263
|
} catch {
|
|
2260
2264
|
}
|
|
@@ -232,10 +232,17 @@ async function issueCommand(args) {
|
|
|
232
232
|
};
|
|
233
233
|
switch (sub) {
|
|
234
234
|
case "add": {
|
|
235
|
-
|
|
235
|
+
let title = positional(rest)[0];
|
|
236
|
+
let body = flag(rest, "--body");
|
|
236
237
|
if (!title) {
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
const src = (body || "").trim();
|
|
239
|
+
if (!src) {
|
|
240
|
+
console.error('usage: svamp issue add "<title or text>" [--ready] [--label x] [--verify-cmd "npm test"] [--scope project|session] [--body "\u2026"]');
|
|
241
|
+
process.exit(1);
|
|
242
|
+
}
|
|
243
|
+
const nl = src.indexOf("\n");
|
|
244
|
+
title = (nl === -1 ? src : src.slice(0, nl)).trim().slice(0, 200);
|
|
245
|
+
body = nl === -1 ? void 0 : src.slice(nl + 1).trim() || void 0;
|
|
239
246
|
}
|
|
240
247
|
const labels = rest.filter((a, idx) => rest[idx - 1] === "--label");
|
|
241
248
|
const scope = flag(rest, "--scope") || (sessionId ? "session" : "project");
|
|
@@ -246,7 +253,7 @@ async function issueCommand(args) {
|
|
|
246
253
|
labels,
|
|
247
254
|
verify: buildVerify(rest),
|
|
248
255
|
session: scope === "session" ? sessionId : null,
|
|
249
|
-
body
|
|
256
|
+
body
|
|
250
257
|
});
|
|
251
258
|
ok(issue, `Created #${issue.id} (${issue.status}): ${issue.title}`);
|
|
252
259
|
break;
|
|
@@ -400,7 +407,8 @@ ${issue.body}`);
|
|
|
400
407
|
out([
|
|
401
408
|
"svamp issue \u2014 the session backlog (folder of .svamp/issues/<id>.md)",
|
|
402
409
|
"",
|
|
403
|
-
' add "<title>" [--ready] [--label x] [--verify-cmd "cmd"] [--scope project|session] [--body "\u2026"]',
|
|
410
|
+
' add ["<title>"] [--ready] [--label x] [--verify-cmd "cmd"] [--scope project|session] [--body "\u2026"]',
|
|
411
|
+
" # title optional \u2014 if omitted, the first line of --body becomes the title",
|
|
404
412
|
" list [--status ready|backlog|in_progress|done|archived|all] [--label x] [--scope \u2026] [--json]",
|
|
405
413
|
" show <id> [--json]",
|
|
406
414
|
" ready <id> | start <id> | close <id> | reopen <id> | backlog <id> | archive <id>",
|
|
@@ -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-sruHTsVh.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-DhnZXHcu.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -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-DhnZXHcu.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -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-sruHTsVh.mjs';
|
|
3
3
|
import { execSync } from 'node:child_process';
|
|
4
|
-
import { m as shortId } from './run-
|
|
4
|
+
import { m as shortId } from './run-DhnZXHcu.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-DhnZXHcu.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-sruHTsVh.mjs');
|
|
108
108
|
const { server, machine } = await connectAndGetMachine();
|
|
109
109
|
try {
|
|
110
110
|
await machine.sessionRPC(reportTo, "sendInboxMessage", { message });
|
|
@@ -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-BQ9Dta1o.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-sruHTsVh.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-BQ9Dta1o.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-sruHTsVh.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-sruHTsVh.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-DhnZXHcu.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -2339,12 +2339,17 @@ async function wiseAskCli(machineId, message, sessionId, opts) {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
async function wiseJoinMeetingCli(machineId, url, sessionId, opts) {
|
|
2341
2341
|
if (!url) {
|
|
2342
|
-
console.error(
|
|
2342
|
+
console.error('Usage: svamp wise join-meeting <zoom|meet|teams url> [--session <id>|--global] [--mode listen|text|voice] [--mission "<prompt>"] [-m <machine>]');
|
|
2343
|
+
process.exit(1);
|
|
2344
|
+
}
|
|
2345
|
+
const mode = opts?.mode ? String(opts.mode).toLowerCase() : void 0;
|
|
2346
|
+
if (mode && !["listen", "text", "voice"].includes(mode)) {
|
|
2347
|
+
console.error(`\u2717 invalid --mode "${mode}" (use listen | text | voice)`);
|
|
2343
2348
|
process.exit(1);
|
|
2344
2349
|
}
|
|
2345
2350
|
const { server, machine } = await connectAndGetMachine(machineId);
|
|
2346
2351
|
try {
|
|
2347
|
-
const res = await machine.wiseJoinMeeting({ meetingUrl: url, sessionId });
|
|
2352
|
+
const res = await machine.wiseJoinMeeting({ meetingUrl: url, sessionId, mode, mission: opts?.mission });
|
|
2348
2353
|
if (opts?.json) {
|
|
2349
2354
|
console.log(JSON.stringify(res, null, 2));
|
|
2350
2355
|
process.exit(res?.success ? 0 : 1);
|
|
@@ -2353,7 +2358,7 @@ async function wiseJoinMeetingCli(machineId, url, sessionId, opts) {
|
|
|
2353
2358
|
console.error(`\u2717 ${res.error}`);
|
|
2354
2359
|
process.exit(1);
|
|
2355
2360
|
}
|
|
2356
|
-
console.log(`\u2713 WISE joining ${res.platform} meeting ${res.nativeId} (${res.target})${res.meetingId ? ` \u2014 meeting #${res.meetingId}` : ""}`);
|
|
2361
|
+
console.log(`\u2713 WISE joining ${res.platform} meeting ${res.nativeId} (${res.target}, ${res.mode || "voice"} mode)${res.meetingId ? ` \u2014 meeting #${res.meetingId}` : ""}`);
|
|
2357
2362
|
process.exit(0);
|
|
2358
2363
|
} finally {
|
|
2359
2364
|
await server.disconnect();
|
|
@@ -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-DhnZXHcu.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-DhnZXHcu.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-DhnZXHcu.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-CKX3P035.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-DhnZXHcu.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -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-BQ9Dta1o.mjs');
|
|
2775
2775
|
const tunnel = new FrpcTunnel({
|
|
2776
2776
|
name: params.name,
|
|
2777
2777
|
ports: params.ports,
|
|
@@ -2981,12 +2981,17 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
2981
2981
|
const WISE_KEY = process.env.SVAMP_WISE_CHANNEL_KEY || "";
|
|
2982
2982
|
const sid = params.sessionId;
|
|
2983
2983
|
const target = sid ? `session:${sid}` : "global";
|
|
2984
|
-
const
|
|
2984
|
+
const mode = params.mode === "listen" || params.mode === "text" ? params.mode : "voice";
|
|
2985
|
+
const mission = (params.mission || "").trim();
|
|
2986
|
+
const who = sid ? `You are WISE, an AI participant in a live meeting, joined on behalf of the user's work session "${sid}".` : `You are WISE, a helpful AI assistant participating in this live meeting.`;
|
|
2987
|
+
const knowledge = sid ? ` For anything about that session's project, files, status, decisions, or tasks, call consult_wise (it reaches that session's WISE agent, which has its skills and can act via the deep agent); do not invent answers.` : ` Help the participants and answer their questions.`;
|
|
2988
|
+
const missionLine = ` Your mission for this meeting: ${mission || "follow the discussion, help when useful, and surface relevant project knowledge."}`;
|
|
2989
|
+
const modeLine = mode === "listen" ? " You are in LISTEN-ONLY mode: silently observe and take in the discussion; do not speak or post to chat." : mode === "text" ? " You are in CHAT mode: you cannot speak aloud \u2014 respond ONLY with concise messages in the meeting text chat. Reply when addressed or when you can add value; otherwise stay quiet." : " You are in VOICE mode: speak naturally and concisely (1-3 sentences, since replies are heard aloud). Only speak when addressed or asked a question; otherwise stay quiet.";
|
|
2990
|
+
const rt = {
|
|
2985
2991
|
target,
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
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.`
|
|
2992
|
+
mode,
|
|
2993
|
+
mission,
|
|
2994
|
+
instructions: who + knowledge + missionLine + modeLine
|
|
2990
2995
|
};
|
|
2991
2996
|
let wired = false;
|
|
2992
2997
|
if (sid) {
|
|
@@ -3039,7 +3044,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
3039
3044
|
});
|
|
3040
3045
|
const data = await res.json().catch(() => ({}));
|
|
3041
3046
|
if (!res.ok) return { success: false, error: `meeting-api ${res.status}: ${data?.detail || data?.message || "launch failed"}` };
|
|
3042
|
-
const rec = { meetingUrl: params.meetingUrl, platform: parsed.platform, nativeId: parsed.nativeId, target, sessionId: params.sessionId, botId: data?.bot_container_id, meetingId: data?.id, startedAt: Date.now() };
|
|
3047
|
+
const rec = { meetingUrl: params.meetingUrl, platform: parsed.platform, nativeId: parsed.nativeId, target, mode, mission, sessionId: params.sessionId, botId: data?.bot_container_id, meetingId: data?.id, startedAt: Date.now() };
|
|
3043
3048
|
activeMeetingAgents.set(params.sessionId || `global:${parsed.nativeId}`, rec);
|
|
3044
3049
|
return { success: true, ...rec, status: data?.status };
|
|
3045
3050
|
} catch (e) {
|
|
@@ -3207,7 +3212,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3207
3212
|
}
|
|
3208
3213
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
3209
3214
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
3210
|
-
const { toolsForRole } = await import('./sideband-
|
|
3215
|
+
const { toolsForRole } = await import('./sideband-CKX3P035.mjs');
|
|
3211
3216
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
3212
3217
|
return fmt(r2);
|
|
3213
3218
|
}
|
|
@@ -3306,7 +3311,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3306
3311
|
if (r.error || !r.sender) return { error: r.error || "unauthorized" };
|
|
3307
3312
|
const callId = "call_" + Math.random().toString(16).slice(2, 12);
|
|
3308
3313
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
3309
|
-
const { queryCore } = await import('./commands-
|
|
3314
|
+
const { queryCore } = await import('./commands-sruHTsVh.mjs');
|
|
3310
3315
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3311
3316
|
let result;
|
|
3312
3317
|
try {
|
|
@@ -11767,7 +11772,7 @@ async function startDaemon(options) {
|
|
|
11767
11772
|
saveExposedTunnels(list);
|
|
11768
11773
|
}
|
|
11769
11774
|
async function createExposedTunnel(spec) {
|
|
11770
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
11775
|
+
const { FrpcTunnel } = await import('./frpc-BQ9Dta1o.mjs');
|
|
11771
11776
|
const tunnel = new FrpcTunnel({
|
|
11772
11777
|
name: spec.name,
|
|
11773
11778
|
ports: spec.ports,
|
|
@@ -11787,7 +11792,7 @@ async function startDaemon(options) {
|
|
|
11787
11792
|
return tunnel;
|
|
11788
11793
|
}
|
|
11789
11794
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
11790
|
-
const { ServeManager } = await import('./serveManager-
|
|
11795
|
+
const { ServeManager } = await import('./serveManager-sZkIrZCW.mjs');
|
|
11791
11796
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
11792
11797
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
11793
11798
|
});
|
|
@@ -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-DhnZXHcu.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-sruHTsVh.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-DhnZXHcu.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-BQ9Dta1o.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-DhnZXHcu.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
package/package.json
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
2
|
+
"name": "svamp-cli",
|
|
3
|
+
"version": "0.2.151",
|
|
4
|
+
"description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
|
|
5
|
+
"author": "Amun AI AB",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"bin": {
|
|
9
|
+
"svamp": "./bin/svamp.mjs"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"bin"
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/index.mjs",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": "./dist/index.mjs",
|
|
18
|
+
"./cli": "./dist/cli.mjs"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
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
|
+
"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-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-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.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-checklist.mjs && npx tsx test/test-checklist-cli.mjs && npx tsx test/test-issue-store.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-routine.mjs && npx tsx test/test-routine-rpc.mjs && npx tsx test/test-checklist-watchdog.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-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-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs",
|
|
24
|
+
"test:hypha": "node --no-warnings test/test-hypha-service.mjs",
|
|
25
|
+
"dev": "tsx src/cli.ts",
|
|
26
|
+
"dev:daemon": "tsx src/cli.ts daemon start-sync",
|
|
27
|
+
"test:e2e": "node --no-warnings test/e2e-session-tests.mjs",
|
|
28
|
+
"test:frpc": "npx tsx test/test-frpc-e2e.mjs"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@agentclientprotocol/sdk": "^0.14.1",
|
|
32
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
33
|
+
"hypha-rpc": "0.21.42",
|
|
34
|
+
"node-pty": "1.2.0-beta.11",
|
|
35
|
+
"ws": "^8.18.0",
|
|
36
|
+
"yaml": "^2.8.2",
|
|
37
|
+
"zod": "^3.24.4"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/node": ">=20",
|
|
41
|
+
"@types/ws": "^8.5.14",
|
|
42
|
+
"pkgroll": "^2.14.2",
|
|
43
|
+
"tsx": "^4.20.6",
|
|
44
|
+
"typescript": "5.9.3"
|
|
45
|
+
},
|
|
46
|
+
"packageManager": "yarn@1.22.22"
|
|
47
47
|
}
|