svamp-cli 0.2.314 → 0.2.315
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/{adminCommands-DCttALYO.mjs → adminCommands-DzNor_Oi.mjs} +1 -1
- package/dist/{agentCommands-BUsSOz5M.mjs → agentCommands-RhxyIA_z.mjs} +5 -5
- package/dist/{auth-D5yTcsy2.mjs → auth-DwbfJdef.mjs} +1 -1
- package/dist/{cli-ahWO_ULm.mjs → cli-3UOhFKAA.mjs} +76 -76
- package/dist/cli.mjs +2 -2
- package/dist/{commands-Cl-TIip1.mjs → commands-8cNqkP6Q.mjs} +2 -2
- package/dist/{commands-ZML4FIzg.mjs → commands-BTkUJBuQ.mjs} +1 -1
- package/dist/{commands-Ce7MP6Ut.mjs → commands-C5Lmdg3I.mjs} +2 -2
- package/dist/{commands-bS4ErsEr.mjs → commands-Cfmfo9-g.mjs} +2 -2
- package/dist/{commands-r4QVEq12.mjs → commands-CjBsJQX-.mjs} +1 -1
- package/dist/{commands-CJmKY6Qo.mjs → commands-Clvx4KkJ.mjs} +2 -2
- package/dist/{commands-BSHZGcCC.mjs → commands-DOXnuGx3.mjs} +8 -8
- package/dist/{commands-CuinsdU0.mjs → commands-DpWQUbS1.mjs} +1 -1
- package/dist/{fleet-CSwFR8B0.mjs → fleet-C9RYmsHH.mjs} +1 -1
- package/dist/{frpc-CpuE7d3Y.mjs → frpc-pwqsONPX.mjs} +1 -1
- package/dist/{headlessCli-Dg-awx4h.mjs → headlessCli-BoaIinBA.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{notifyCommands-Dlm4RafU.mjs → notifyCommands-8hUYEN4j.mjs} +1 -1
- package/dist/{package-DO2e6EnU.mjs → package-D_KxkJI4.mjs} +1 -1
- package/dist/{rpc-BN7kFhGk.mjs → rpc-BFIy8FTe.mjs} +1 -1
- package/dist/{rpc-CLTPF1K6.mjs → rpc-DAcODVs3.mjs} +1 -1
- package/dist/{run-B6-6GYde.mjs → run-CkmRGy8q.mjs} +1 -1
- package/dist/{run-Y3YLx8x7.mjs → run-vEbmTx6x.mjs} +24 -18
- package/dist/{scheduler-CWlkmpMz.mjs → scheduler-DlDYY_wS.mjs} +1 -1
- package/dist/{serveCommands-mnocpHcO.mjs → serveCommands-wx5GnznD.mjs} +5 -5
- package/dist/{sideband-c4lkIKWJ.mjs → sideband-DU8QZetT.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as connectToHypha, M as computeCollectionConfigUpdate, N as SYSTEM_COLLECTION_CONFIG } from './run-
|
|
1
|
+
import { c as connectToHypha, M as computeCollectionConfigUpdate, N as SYSTEM_COLLECTION_CONFIG } from './run-vEbmTx6x.mjs';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
@@ -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 { i as shortId } from './run-
|
|
5
|
+
import { i as shortId } from './run-vEbmTx6x.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-vEbmTx6x.mjs').then(function (n) { return n.at; });
|
|
100
100
|
const desc = sanitizeDescription(description, 240);
|
|
101
101
|
if (!desc) {
|
|
102
102
|
console.error("Project description is empty.");
|
|
@@ -343,7 +343,7 @@ async function sessionBroadcast(action, args) {
|
|
|
343
343
|
console.log(`Broadcast sent: ${action}`);
|
|
344
344
|
}
|
|
345
345
|
async function connectToMachineService() {
|
|
346
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
346
|
+
const { connectAndGetMachine } = await import('./commands-CjBsJQX-.mjs');
|
|
347
347
|
return connectAndGetMachine();
|
|
348
348
|
}
|
|
349
349
|
function buildInboxMessage(args) {
|
|
@@ -426,7 +426,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
426
426
|
console.error("Message body is required.");
|
|
427
427
|
process.exit(1);
|
|
428
428
|
}
|
|
429
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
429
|
+
const { connectAndResolveSession } = await import('./commands-CjBsJQX-.mjs');
|
|
430
430
|
let server;
|
|
431
431
|
try {
|
|
432
432
|
const { targetId, messageId } = await inboxSendCore(
|
|
@@ -481,7 +481,7 @@ async function inboxReply(messageId, body, opts) {
|
|
|
481
481
|
console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
|
|
482
482
|
process.exit(1);
|
|
483
483
|
}
|
|
484
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
484
|
+
const { connectAndResolveSession } = await import('./commands-CjBsJQX-.mjs');
|
|
485
485
|
const { server: localServer, machine: localMachine } = await connectToMachineService();
|
|
486
486
|
let localDisconnected = false;
|
|
487
487
|
const disconnectLocal = async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as clearStopMarker, a4 as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-
|
|
1
|
+
import { a3 as clearStopMarker, a4 as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-vEbmTx6x.mjs';
|
|
2
2
|
import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
|
|
3
3
|
|
|
4
4
|
function flushAndExit(code) {
|
|
@@ -33,7 +33,7 @@ const subcommand = args[0];
|
|
|
33
33
|
let daemonSubcommand = args[1];
|
|
34
34
|
async function main() {
|
|
35
35
|
try {
|
|
36
|
-
const { getLoadedConfig } = await import('./run-
|
|
36
|
+
const { getLoadedConfig } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aq; });
|
|
37
37
|
getLoadedConfig();
|
|
38
38
|
} catch {
|
|
39
39
|
}
|
|
@@ -52,7 +52,7 @@ async function main() {
|
|
|
52
52
|
}
|
|
53
53
|
const whenIdle = args.includes("--when-idle");
|
|
54
54
|
const force = args.includes("--force");
|
|
55
|
-
const mod = await import('./run-
|
|
55
|
+
const mod = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aD; });
|
|
56
56
|
if (whenIdle && !force) {
|
|
57
57
|
if (mod.isDaemonAlive()) {
|
|
58
58
|
mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
|
|
@@ -359,7 +359,7 @@ async function main() {
|
|
|
359
359
|
console.error("svamp service: Service commands are not available in sandboxed sessions.");
|
|
360
360
|
process.exit(1);
|
|
361
361
|
}
|
|
362
|
-
const { handleServiceCommand } = await import('./commands-
|
|
362
|
+
const { handleServiceCommand } = await import('./commands-DOXnuGx3.mjs');
|
|
363
363
|
await handleServiceCommand();
|
|
364
364
|
} else if (subcommand === "serve") {
|
|
365
365
|
const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
|
|
@@ -367,7 +367,7 @@ async function main() {
|
|
|
367
367
|
console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
|
|
368
368
|
process.exit(1);
|
|
369
369
|
}
|
|
370
|
-
const { handleServeCommand } = await import('./serveCommands-
|
|
370
|
+
const { handleServeCommand } = await import('./serveCommands-wx5GnznD.mjs');
|
|
371
371
|
await handleServeCommand();
|
|
372
372
|
process.exit(0);
|
|
373
373
|
} else if (subcommand === "process" || subcommand === "proc") {
|
|
@@ -376,7 +376,7 @@ async function main() {
|
|
|
376
376
|
console.error("svamp process: Process commands are not available in sandboxed sessions.");
|
|
377
377
|
process.exit(1);
|
|
378
378
|
}
|
|
379
|
-
const { processCommand } = await import('./commands-
|
|
379
|
+
const { processCommand } = await import('./commands-8cNqkP6Q.mjs');
|
|
380
380
|
let machineId;
|
|
381
381
|
const processArgs = args.slice(1);
|
|
382
382
|
const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
|
|
@@ -390,26 +390,26 @@ async function main() {
|
|
|
390
390
|
}), machineId);
|
|
391
391
|
process.exit(0);
|
|
392
392
|
} else if (subcommand === "outpost") {
|
|
393
|
-
const { outpostCommand } = await import('./commands-
|
|
393
|
+
const { outpostCommand } = await import('./commands-Clvx4KkJ.mjs');
|
|
394
394
|
await outpostCommand(args.slice(1));
|
|
395
395
|
process.exit(0);
|
|
396
396
|
} else if (subcommand === "issue" || subcommand === "issues") {
|
|
397
|
-
const { issueCommand } = await import('./commands-
|
|
397
|
+
const { issueCommand } = await import('./commands-C5Lmdg3I.mjs');
|
|
398
398
|
await issueCommand(args.slice(1));
|
|
399
399
|
await flushAndExit(0);
|
|
400
400
|
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
401
|
-
const { workflowCommand } = await import('./commands-
|
|
401
|
+
const { workflowCommand } = await import('./commands-DpWQUbS1.mjs');
|
|
402
402
|
await workflowCommand(args.slice(1));
|
|
403
403
|
await flushAndExit(0);
|
|
404
404
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
405
405
|
await handleWiseAgentCommand(args.slice(1));
|
|
406
406
|
process.exit(0);
|
|
407
407
|
} else if (subcommand === "feature" || subcommand === "crew") {
|
|
408
|
-
const { crewCommand } = await import('./commands-
|
|
408
|
+
const { crewCommand } = await import('./commands-Cfmfo9-g.mjs');
|
|
409
409
|
await crewCommand(args.slice(1));
|
|
410
410
|
process.exit(0);
|
|
411
411
|
} else if (subcommand === "notify") {
|
|
412
|
-
const { notifyUser } = await import('./notifyCommands-
|
|
412
|
+
const { notifyUser } = await import('./notifyCommands-8hUYEN4j.mjs');
|
|
413
413
|
const rest = args.slice(1);
|
|
414
414
|
let email;
|
|
415
415
|
const o = {};
|
|
@@ -426,7 +426,7 @@ async function main() {
|
|
|
426
426
|
} else if (subcommand === "admin") {
|
|
427
427
|
const adminSub = args[1];
|
|
428
428
|
if (adminSub === "set-collection-config") {
|
|
429
|
-
const { setCollectionConfig } = await import('./adminCommands-
|
|
429
|
+
const { setCollectionConfig } = await import('./adminCommands-DzNor_Oi.mjs');
|
|
430
430
|
const rest = args.slice(2);
|
|
431
431
|
let alias;
|
|
432
432
|
let configJson;
|
|
@@ -436,10 +436,10 @@ async function main() {
|
|
|
436
436
|
}
|
|
437
437
|
await setCollectionConfig(alias, configJson);
|
|
438
438
|
} else if (adminSub === "create-system-collections") {
|
|
439
|
-
const { createSystemCollections } = await import('./adminCommands-
|
|
439
|
+
const { createSystemCollections } = await import('./adminCommands-DzNor_Oi.mjs');
|
|
440
440
|
await createSystemCollections();
|
|
441
441
|
} else if (adminSub === "migrate-collection-children") {
|
|
442
|
-
const { migrateCollectionChildren } = await import('./adminCommands-
|
|
442
|
+
const { migrateCollectionChildren } = await import('./adminCommands-DzNor_Oi.mjs');
|
|
443
443
|
const rest = args.slice(2).filter((a) => !a.startsWith("-"));
|
|
444
444
|
await migrateCollectionChildren(rest[0], rest[1]);
|
|
445
445
|
} else {
|
|
@@ -447,7 +447,7 @@ async function main() {
|
|
|
447
447
|
}
|
|
448
448
|
process.exit(0);
|
|
449
449
|
} else if (subcommand === "events") {
|
|
450
|
-
const { listEvents, ackEvent } = await import('./notifyCommands-
|
|
450
|
+
const { listEvents, ackEvent } = await import('./notifyCommands-8hUYEN4j.mjs');
|
|
451
451
|
const sub = args[1];
|
|
452
452
|
const rest = args.slice(2);
|
|
453
453
|
let email;
|
|
@@ -468,7 +468,7 @@ async function main() {
|
|
|
468
468
|
} else if (!subcommand || subcommand === "start") {
|
|
469
469
|
await handleInteractiveCommand();
|
|
470
470
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
471
|
-
const pkg = await import('./package-
|
|
471
|
+
const pkg = await import('./package-D_KxkJI4.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
472
472
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
473
473
|
} else {
|
|
474
474
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -477,7 +477,7 @@ async function main() {
|
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
async function handleInteractiveCommand() {
|
|
480
|
-
const { runInteractive } = await import('./run-
|
|
480
|
+
const { runInteractive } = await import('./run-CkmRGy8q.mjs');
|
|
481
481
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
482
482
|
let directory = process.cwd();
|
|
483
483
|
let resumeSessionId;
|
|
@@ -522,7 +522,7 @@ async function handleAgentCommand() {
|
|
|
522
522
|
return;
|
|
523
523
|
}
|
|
524
524
|
if (agentArgs[0] === "list") {
|
|
525
|
-
const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-
|
|
525
|
+
const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aw; });
|
|
526
526
|
console.log("Known agents:");
|
|
527
527
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
528
528
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -534,7 +534,7 @@ async function handleAgentCommand() {
|
|
|
534
534
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
|
-
const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-
|
|
537
|
+
const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aw; });
|
|
538
538
|
let cwd = process.cwd();
|
|
539
539
|
const filteredArgs = [];
|
|
540
540
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -558,18 +558,18 @@ async function handleAgentCommand() {
|
|
|
558
558
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
559
559
|
let backend;
|
|
560
560
|
if (KNOWN_CODEX_AGENTS[config.agentName]) {
|
|
561
|
-
const { CodexAppServerBackend } = await import('./run-
|
|
561
|
+
const { CodexAppServerBackend } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ax; });
|
|
562
562
|
backend = new CodexAppServerBackend({ cwd, log: logFn });
|
|
563
563
|
} else {
|
|
564
|
-
const { AcpBackend } = await import('./run-
|
|
565
|
-
const { GeminiTransport } = await import('./run-
|
|
566
|
-
const { KimiTransport } = await import('./run-
|
|
567
|
-
const { DefaultTransport } = await import('./run-
|
|
564
|
+
const { AcpBackend } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.av; });
|
|
565
|
+
const { GeminiTransport } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ay; });
|
|
566
|
+
const { KimiTransport } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.az; });
|
|
567
|
+
const { DefaultTransport } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.au; });
|
|
568
568
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : config.agentName === "kimi" ? new KimiTransport() : new DefaultTransport(config.agentName);
|
|
569
569
|
let acpEnv;
|
|
570
570
|
if (config.agentName === "kimi") {
|
|
571
|
-
const { ensureKimiProviderConfigured } = await import('./run-
|
|
572
|
-
const { kimiSpawnEnv } = await import('./run-
|
|
571
|
+
const { ensureKimiProviderConfigured } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aB; });
|
|
572
|
+
const { kimiSpawnEnv } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aA; });
|
|
573
573
|
ensureKimiProviderConfigured(process.env, config.command, logFn);
|
|
574
574
|
acpEnv = kimiSpawnEnv(process.env);
|
|
575
575
|
}
|
|
@@ -699,7 +699,7 @@ async function handleSessionCommand() {
|
|
|
699
699
|
process.exit(1);
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionLoopExtend, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-
|
|
702
|
+
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionLoopExtend, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-CjBsJQX-.mjs');
|
|
703
703
|
const parseFlagStr = (flag, shortFlag) => {
|
|
704
704
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
705
705
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -767,7 +767,7 @@ async function handleSessionCommand() {
|
|
|
767
767
|
allowDomain.push(sessionArgs[++i]);
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
const { parseShareArg } = await import('./commands-
|
|
770
|
+
const { parseShareArg } = await import('./commands-CjBsJQX-.mjs');
|
|
771
771
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
772
772
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
773
773
|
message,
|
|
@@ -858,7 +858,7 @@ async function handleSessionCommand() {
|
|
|
858
858
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
859
859
|
process.exit(1);
|
|
860
860
|
}
|
|
861
|
-
const { sessionEditMessage } = await import('./commands-
|
|
861
|
+
const { sessionEditMessage } = await import('./commands-CjBsJQX-.mjs');
|
|
862
862
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
863
863
|
} else if (sessionSubcommand === "refine") {
|
|
864
864
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -866,7 +866,7 @@ async function handleSessionCommand() {
|
|
|
866
866
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
867
867
|
process.exit(1);
|
|
868
868
|
}
|
|
869
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
869
|
+
const { sessionRefineLastReply } = await import('./commands-CjBsJQX-.mjs');
|
|
870
870
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
871
871
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
872
872
|
if (!sessionArgs[1]) {
|
|
@@ -874,7 +874,7 @@ async function handleSessionCommand() {
|
|
|
874
874
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
875
875
|
process.exit(1);
|
|
876
876
|
}
|
|
877
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
877
|
+
const { sessionUndoEdit } = await import('./commands-CjBsJQX-.mjs');
|
|
878
878
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
879
879
|
} else if (sessionSubcommand === "query") {
|
|
880
880
|
const dir = sessionArgs[1];
|
|
@@ -884,7 +884,7 @@ async function handleSessionCommand() {
|
|
|
884
884
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
885
885
|
process.exit(1);
|
|
886
886
|
}
|
|
887
|
-
const { sessionQuery } = await import('./commands-
|
|
887
|
+
const { sessionQuery } = await import('./commands-CjBsJQX-.mjs');
|
|
888
888
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
889
889
|
timeout: parseFlagInt("--timeout"),
|
|
890
890
|
json: hasFlag("--json"),
|
|
@@ -917,7 +917,7 @@ async function handleSessionCommand() {
|
|
|
917
917
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
918
918
|
process.exit(1);
|
|
919
919
|
}
|
|
920
|
-
const { sessionApprove } = await import('./commands-
|
|
920
|
+
const { sessionApprove } = await import('./commands-CjBsJQX-.mjs');
|
|
921
921
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
922
922
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
923
923
|
json: hasFlag("--json")
|
|
@@ -927,7 +927,7 @@ async function handleSessionCommand() {
|
|
|
927
927
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
928
928
|
process.exit(1);
|
|
929
929
|
}
|
|
930
|
-
const { sessionDeny } = await import('./commands-
|
|
930
|
+
const { sessionDeny } = await import('./commands-CjBsJQX-.mjs');
|
|
931
931
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
932
932
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
933
933
|
json: hasFlag("--json")
|
|
@@ -979,7 +979,7 @@ async function handleSessionCommand() {
|
|
|
979
979
|
console.error("Usage: svamp session set-title <title>");
|
|
980
980
|
process.exit(1);
|
|
981
981
|
}
|
|
982
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
982
|
+
const { sessionSetTitle } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
983
983
|
await sessionSetTitle(title);
|
|
984
984
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
985
985
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -987,7 +987,7 @@ async function handleSessionCommand() {
|
|
|
987
987
|
console.error("Usage: svamp session set-project-description <text>");
|
|
988
988
|
process.exit(1);
|
|
989
989
|
}
|
|
990
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
990
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
991
991
|
await sessionSetProjectDescription(desc);
|
|
992
992
|
} else if (sessionSubcommand === "set-link") {
|
|
993
993
|
const url = sessionArgs[1];
|
|
@@ -996,11 +996,11 @@ async function handleSessionCommand() {
|
|
|
996
996
|
process.exit(1);
|
|
997
997
|
}
|
|
998
998
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
999
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
999
|
+
const { sessionSetLink } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1000
1000
|
await sessionSetLink(url, label);
|
|
1001
1001
|
} else if (sessionSubcommand === "link") {
|
|
1002
1002
|
const op = sessionArgs[1];
|
|
1003
|
-
const lm = await import('./agentCommands-
|
|
1003
|
+
const lm = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1004
1004
|
if (op === "add") {
|
|
1005
1005
|
const url = sessionArgs[2];
|
|
1006
1006
|
if (!url || url.startsWith("--")) {
|
|
@@ -1035,7 +1035,7 @@ async function handleSessionCommand() {
|
|
|
1035
1035
|
process.exit(1);
|
|
1036
1036
|
}
|
|
1037
1037
|
const level = parseFlagStr("--level") || "info";
|
|
1038
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
1038
|
+
const { sessionNotify } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1039
1039
|
await sessionNotify(message, level);
|
|
1040
1040
|
} else if (sessionSubcommand === "broadcast") {
|
|
1041
1041
|
const action = sessionArgs[1];
|
|
@@ -1043,7 +1043,7 @@ async function handleSessionCommand() {
|
|
|
1043
1043
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
1044
1044
|
process.exit(1);
|
|
1045
1045
|
}
|
|
1046
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
1046
|
+
const { sessionBroadcast } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1047
1047
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
1048
1048
|
} else if (sessionSubcommand === "inbox") {
|
|
1049
1049
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -1054,7 +1054,7 @@ async function handleSessionCommand() {
|
|
|
1054
1054
|
process.exit(1);
|
|
1055
1055
|
}
|
|
1056
1056
|
if (agentSessionId) {
|
|
1057
|
-
const { inboxSend } = await import('./agentCommands-
|
|
1057
|
+
const { inboxSend } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1058
1058
|
await inboxSend(sessionArgs[2], {
|
|
1059
1059
|
body: sessionArgs[3],
|
|
1060
1060
|
subject: parseFlagStr("--subject"),
|
|
@@ -1071,7 +1071,7 @@ async function handleSessionCommand() {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
1073
1073
|
if (agentSessionId && !sessionArgs[2]) {
|
|
1074
|
-
const { inboxList } = await import('./agentCommands-
|
|
1074
|
+
const { inboxList } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1075
1075
|
await inboxList({
|
|
1076
1076
|
unread: hasFlag("--unread"),
|
|
1077
1077
|
limit: parseFlagInt("--limit"),
|
|
@@ -1093,7 +1093,7 @@ async function handleSessionCommand() {
|
|
|
1093
1093
|
process.exit(1);
|
|
1094
1094
|
}
|
|
1095
1095
|
if (agentSessionId && !sessionArgs[3]) {
|
|
1096
|
-
const { inboxList } = await import('./agentCommands-
|
|
1096
|
+
const { inboxList } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1097
1097
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
1098
1098
|
} else if (sessionArgs[3]) {
|
|
1099
1099
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -1103,7 +1103,7 @@ async function handleSessionCommand() {
|
|
|
1103
1103
|
}
|
|
1104
1104
|
} else if (inboxSubcmd === "reply") {
|
|
1105
1105
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1106
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1106
|
+
const { inboxReply } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1107
1107
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1108
1108
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1109
1109
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1141,7 +1141,7 @@ async function handleMachineCommand() {
|
|
|
1141
1141
|
return;
|
|
1142
1142
|
}
|
|
1143
1143
|
if (machineSubcommand === "share") {
|
|
1144
|
-
const { machineShare } = await import('./commands-
|
|
1144
|
+
const { machineShare } = await import('./commands-CjBsJQX-.mjs');
|
|
1145
1145
|
let machineId;
|
|
1146
1146
|
const shareArgs = [];
|
|
1147
1147
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1192,14 +1192,14 @@ async function handleMachineCommand() {
|
|
|
1192
1192
|
process.exit(1);
|
|
1193
1193
|
}
|
|
1194
1194
|
if (all) {
|
|
1195
|
-
const { fleetExec } = await import('./fleet-
|
|
1195
|
+
const { fleetExec } = await import('./fleet-C9RYmsHH.mjs');
|
|
1196
1196
|
await fleetExec(command, { cwd });
|
|
1197
1197
|
} else {
|
|
1198
|
-
const { machineExec } = await import('./commands-
|
|
1198
|
+
const { machineExec } = await import('./commands-CjBsJQX-.mjs');
|
|
1199
1199
|
await machineExec(machineId, command, cwd);
|
|
1200
1200
|
}
|
|
1201
1201
|
} else if (machineSubcommand === "info") {
|
|
1202
|
-
const { machineInfo } = await import('./commands-
|
|
1202
|
+
const { machineInfo } = await import('./commands-CjBsJQX-.mjs');
|
|
1203
1203
|
let machineId;
|
|
1204
1204
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1205
1205
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1219,10 +1219,10 @@ async function handleMachineCommand() {
|
|
|
1219
1219
|
level = machineArgs[++i];
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1222
|
+
const { machineNotify } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
1223
1223
|
await machineNotify(message, level);
|
|
1224
1224
|
} else if (machineSubcommand === "ls") {
|
|
1225
|
-
const { machineLs } = await import('./commands-
|
|
1225
|
+
const { machineLs } = await import('./commands-CjBsJQX-.mjs');
|
|
1226
1226
|
let machineId;
|
|
1227
1227
|
let showHidden = false;
|
|
1228
1228
|
let path;
|
|
@@ -1288,26 +1288,26 @@ Examples:
|
|
|
1288
1288
|
};
|
|
1289
1289
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1290
1290
|
if (sub === "status") {
|
|
1291
|
-
const { fleetStatus } = await import('./fleet-
|
|
1291
|
+
const { fleetStatus } = await import('./fleet-C9RYmsHH.mjs');
|
|
1292
1292
|
await fleetStatus();
|
|
1293
1293
|
} else if (sub === "upgrade-claude") {
|
|
1294
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1294
|
+
const { fleetUpgradeClaude } = await import('./fleet-C9RYmsHH.mjs');
|
|
1295
1295
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1296
1296
|
} else if (sub === "upgrade-codex") {
|
|
1297
|
-
const { fleetUpgradeCodex } = await import('./fleet-
|
|
1297
|
+
const { fleetUpgradeCodex } = await import('./fleet-C9RYmsHH.mjs');
|
|
1298
1298
|
await fleetUpgradeCodex({ version: flag("version", "-v") });
|
|
1299
1299
|
} else if (sub === "upgrade-kimi") {
|
|
1300
|
-
const { fleetUpgradeKimi } = await import('./fleet-
|
|
1300
|
+
const { fleetUpgradeKimi } = await import('./fleet-C9RYmsHH.mjs');
|
|
1301
1301
|
await fleetUpgradeKimi({ version: flag("version", "-v") });
|
|
1302
1302
|
} else if (sub === "upgrade-svamp") {
|
|
1303
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1303
|
+
const { fleetUpgradeSvamp } = await import('./fleet-C9RYmsHH.mjs');
|
|
1304
1304
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self"), force: hasFlag("force") });
|
|
1305
1305
|
} else if (sub === "daemon-restart") {
|
|
1306
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1306
|
+
const { fleetDaemonRestart } = await import('./fleet-C9RYmsHH.mjs');
|
|
1307
1307
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1308
1308
|
} else if (sub === "push-skill") {
|
|
1309
1309
|
const name = fleetArgs[1];
|
|
1310
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1310
|
+
const { fleetPushSkill } = await import('./fleet-C9RYmsHH.mjs');
|
|
1311
1311
|
await fleetPushSkill(name);
|
|
1312
1312
|
} else {
|
|
1313
1313
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1323,7 +1323,7 @@ async function handleSkillsCommand() {
|
|
|
1323
1323
|
await printSkillsHelp();
|
|
1324
1324
|
return;
|
|
1325
1325
|
}
|
|
1326
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1326
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-BTkUJBuQ.mjs');
|
|
1327
1327
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1328
1328
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1329
1329
|
if (!query) {
|
|
@@ -1370,7 +1370,7 @@ async function loginToHypha() {
|
|
|
1370
1370
|
process.exit(1);
|
|
1371
1371
|
}
|
|
1372
1372
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1373
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1373
|
+
const { loadInstanceConfig } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aq; });
|
|
1374
1374
|
let cfg = null;
|
|
1375
1375
|
try {
|
|
1376
1376
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1481,7 +1481,7 @@ async function logoutFromHypha() {
|
|
|
1481
1481
|
} catch {
|
|
1482
1482
|
}
|
|
1483
1483
|
try {
|
|
1484
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1484
|
+
const { clearInstanceConfigCache } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aq; });
|
|
1485
1485
|
clearInstanceConfigCache();
|
|
1486
1486
|
} catch {
|
|
1487
1487
|
}
|
|
@@ -1827,7 +1827,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1827
1827
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1828
1828
|
);
|
|
1829
1829
|
}
|
|
1830
|
-
const mod = await import('./run-
|
|
1830
|
+
const mod = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ar; });
|
|
1831
1831
|
if (hasHypha) {
|
|
1832
1832
|
let url;
|
|
1833
1833
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1881,7 +1881,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
1883
|
if (collected.length === 0) return;
|
|
1884
|
-
const { updateEnvFile } = await import('./run-
|
|
1884
|
+
const { updateEnvFile } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ar; });
|
|
1885
1885
|
const seen = /* @__PURE__ */ new Set();
|
|
1886
1886
|
const deduped = collected.filter((e) => {
|
|
1887
1887
|
const k = e.toLowerCase();
|
|
@@ -1914,7 +1914,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1914
1914
|
}
|
|
1915
1915
|
});
|
|
1916
1916
|
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(" ");
|
|
1917
|
-
const { wiseAskCli } = await import('./commands-
|
|
1917
|
+
const { wiseAskCli } = await import('./commands-CjBsJQX-.mjs');
|
|
1918
1918
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1919
1919
|
return;
|
|
1920
1920
|
}
|
|
@@ -1926,7 +1926,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
return void 0;
|
|
1928
1928
|
};
|
|
1929
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1929
|
+
const { runWiseVoiceCli } = await import('./headlessCli-BoaIinBA.mjs');
|
|
1930
1930
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1931
1931
|
return;
|
|
1932
1932
|
}
|
|
@@ -1944,7 +1944,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1944
1944
|
const mode = valueOf(["--mode"]);
|
|
1945
1945
|
const mission = valueOf(["--mission"]);
|
|
1946
1946
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1947
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1947
|
+
const { wiseJoinMeetingCli } = await import('./commands-CjBsJQX-.mjs');
|
|
1948
1948
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
@@ -1956,7 +1956,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
return void 0;
|
|
1958
1958
|
};
|
|
1959
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1959
|
+
const { wiseLeaveMeetingCli } = await import('./commands-CjBsJQX-.mjs');
|
|
1960
1960
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1961
1961
|
return;
|
|
1962
1962
|
}
|
|
@@ -1980,7 +1980,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
});
|
|
1982
1982
|
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(" ");
|
|
1983
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
1983
|
+
const { wiseAnnounceCli } = await import('./commands-CjBsJQX-.mjs');
|
|
1984
1984
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1985
1985
|
return;
|
|
1986
1986
|
}
|
|
@@ -1992,7 +1992,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1992
1992
|
}
|
|
1993
1993
|
return void 0;
|
|
1994
1994
|
};
|
|
1995
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1995
|
+
const { wiseMeetingsCli } = await import('./commands-CjBsJQX-.mjs');
|
|
1996
1996
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1997
1997
|
return;
|
|
1998
1998
|
}
|
|
@@ -2042,7 +2042,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
2042
2042
|
return;
|
|
2043
2043
|
}
|
|
2044
2044
|
const authArgs = rest.slice(1);
|
|
2045
|
-
const mod = await import('./auth-
|
|
2045
|
+
const mod = await import('./auth-DwbfJdef.mjs');
|
|
2046
2046
|
let action;
|
|
2047
2047
|
try {
|
|
2048
2048
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -2052,7 +2052,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
2052
2052
|
return;
|
|
2053
2053
|
}
|
|
2054
2054
|
if (action) {
|
|
2055
|
-
const { updateEnvFile } = await import('./run-
|
|
2055
|
+
const { updateEnvFile } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ar; });
|
|
2056
2056
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
2057
2057
|
updateEnvFile(updates);
|
|
2058
2058
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -2066,7 +2066,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
2066
2066
|
}
|
|
2067
2067
|
async function handleDaemonAuthCommand(argv) {
|
|
2068
2068
|
const sub = (argv[0] || "status").toLowerCase();
|
|
2069
|
-
const mod = await import('./run-
|
|
2069
|
+
const mod = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ar; });
|
|
2070
2070
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
2071
2071
|
console.log(`
|
|
2072
2072
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2140,8 +2140,8 @@ one step: --use-hypha-proxy / --use-claude-login / --anthropic-base-url URL --an
|
|
|
2140
2140
|
}
|
|
2141
2141
|
async function handleDaemonCodexAuthCommand(argv) {
|
|
2142
2142
|
const sub = (argv[0] || "status").toLowerCase();
|
|
2143
|
-
const { updateEnvFile } = await import('./run-
|
|
2144
|
-
const { resolveCodexProvider } = await import('./run-
|
|
2143
|
+
const { updateEnvFile } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ar; });
|
|
2144
|
+
const { resolveCodexProvider } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.as; });
|
|
2145
2145
|
const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
|
|
2146
2146
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
2147
2147
|
console.log(`
|
|
@@ -2227,8 +2227,8 @@ The generic LLM_API_BASE / LLM_API_KEY / LLM_MODEL env vars are also honored if
|
|
|
2227
2227
|
}
|
|
2228
2228
|
async function handleDaemonKimiAuthCommand(argv) {
|
|
2229
2229
|
const sub = (argv[0] || "status").toLowerCase();
|
|
2230
|
-
const { updateEnvFile } = await import('./run-
|
|
2231
|
-
const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-
|
|
2230
|
+
const { updateEnvFile } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ar; });
|
|
2231
|
+
const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aA; });
|
|
2232
2232
|
const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
|
|
2233
2233
|
const PRESETS = {
|
|
2234
2234
|
"use-moonshot": { provider: "moonshotai", base: "https://api.moonshot.ai/v1", label: "Moonshot AI (moonshotai)" },
|
|
@@ -2588,7 +2588,7 @@ Examples:
|
|
|
2588
2588
|
async function printSkillsHelp() {
|
|
2589
2589
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2590
2590
|
try {
|
|
2591
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2591
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.aC; });
|
|
2592
2592
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2593
2593
|
} catch {
|
|
2594
2594
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -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-CjBsJQX-.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-vEbmTx6x.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 { U as parseFrontmatter, V as getSkillsServer, W as getSkillsWorkspaceName, X as getSkillsCollectionName, Y as fetchWithTimeout, Z as searchSkills, _ as SKILLS_DIR, $ as getSkillInfo, a0 as downloadSkillFile, a1 as listSkillFiles } from './run-
|
|
4
|
+
import { U as parseFrontmatter, V as getSkillsServer, W as getSkillsWorkspaceName, X as getSkillsCollectionName, Y as fetchWithTimeout, Z as searchSkills, _ as SKILLS_DIR, $ as getSkillInfo, a0 as downloadSkillFile, a1 as listSkillFiles } from './run-vEbmTx6x.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
2
|
import { existsSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
|
-
import { f as flushAndExit } from './cli-
|
|
5
|
-
import { j as resolveProjectRoot, q as searchIssues, o as listIssues, l as resumeIssue, p as pauseIssue, m as addComment, u as updateIssue, k as getIssue, t as isVisibleTo, J as summarize, n as addIssue } from './run-
|
|
4
|
+
import { f as flushAndExit } from './cli-3UOhFKAA.mjs';
|
|
5
|
+
import { j as resolveProjectRoot, q as searchIssues, o as listIssues, l as resumeIssue, p as pauseIssue, m as addComment, u as updateIssue, k as getIssue, t as isVisibleTo, J as summarize, n as addIssue } from './run-vEbmTx6x.mjs';
|
|
6
6
|
import './serviceManager-hlOVxkhW.mjs';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { join, resolve } from 'node:path';
|
|
3
|
-
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-
|
|
3
|
+
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-CjBsJQX-.mjs';
|
|
4
4
|
import { execFileSync } from 'node:child_process';
|
|
5
|
-
import { ai as withFileLock, u as updateIssue, m as addComment, n as addIssue, i as shortId } from './run-
|
|
5
|
+
import { ai as withFileLock, u as updateIssue, m as addComment, n as addIssue, i as shortId } from './run-vEbmTx6x.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
|
2
2
|
import { execSync, execFileSync } from 'node:child_process';
|
|
3
3
|
import { basename, resolve, join, isAbsolute } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
5
|
-
import { a5 as formatHandle, a6 as normalizeAllowedUser, a7 as loadSecurityContextConfig, a8 as resolveSecurityContext, a9 as buildSecurityContextFromFlags, aa as mergeSecurityContexts, c as connectToHypha, ab as buildSessionShareUrl, ac as computeOutboundHop, i as shortId, ad as registerAwaitingReply, ae as buildMachineShareUrl, af as parseHandle, ag as handleMatchesMetadata } from './run-
|
|
5
|
+
import { a5 as formatHandle, a6 as normalizeAllowedUser, a7 as loadSecurityContextConfig, a8 as resolveSecurityContext, a9 as buildSecurityContextFromFlags, aa as mergeSecurityContexts, c as connectToHypha, ab as buildSessionShareUrl, ac as computeOutboundHop, i as shortId, ad as registerAwaitingReply, ae as buildMachineShareUrl, af as parseHandle, ag as handleMatchesMetadata } from './run-vEbmTx6x.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { connectAndResolveSession } from './commands-
|
|
1
|
+
import { connectAndResolveSession } from './commands-CjBsJQX-.mjs';
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'node:child_process';
|
|
4
4
|
import 'node:path';
|
|
5
5
|
import 'node:os';
|
|
6
|
-
import './run-
|
|
6
|
+
import './run-vEbmTx6x.mjs';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'fs';
|
|
@@ -60,7 +60,7 @@ async function serviceExpose(args) {
|
|
|
60
60
|
process.exit(1);
|
|
61
61
|
}
|
|
62
62
|
if (foreground) {
|
|
63
|
-
const { runFrpcTunnel } = await import('./frpc-
|
|
63
|
+
const { runFrpcTunnel } = await import('./frpc-pwqsONPX.mjs');
|
|
64
64
|
await runFrpcTunnel(name, ports, void 0, {
|
|
65
65
|
group,
|
|
66
66
|
groupKey,
|
|
@@ -70,7 +70,7 @@ async function serviceExpose(args) {
|
|
|
70
70
|
});
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
73
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
73
|
+
const { connectAndGetMachine } = await import('./commands-CjBsJQX-.mjs');
|
|
74
74
|
const { server, machine } = await connectAndGetMachine();
|
|
75
75
|
try {
|
|
76
76
|
const status = await machine.tunnelStart({
|
|
@@ -92,7 +92,7 @@ async function serviceExpose(args) {
|
|
|
92
92
|
console.log(` port ${port}: ${url}`);
|
|
93
93
|
}
|
|
94
94
|
if (process.env.SVAMP_SESSION_ID) {
|
|
95
|
-
const { autoAddSessionLink } = await import('./agentCommands-
|
|
95
|
+
const { autoAddSessionLink } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
96
96
|
let added = 0;
|
|
97
97
|
for (const [port, url] of urlEntries) {
|
|
98
98
|
const label = urlEntries.length > 1 ? `${name}:${port}` : name;
|
|
@@ -128,8 +128,8 @@ async function serviceServe(args) {
|
|
|
128
128
|
const resolvedDir = path.resolve(directory);
|
|
129
129
|
console.log(`Serving ${resolvedDir}`);
|
|
130
130
|
const http = await import('http');
|
|
131
|
-
const { serveStaticMount } = await import('./run-
|
|
132
|
-
const { getFreePort } = await import('./frpc-
|
|
131
|
+
const { serveStaticMount } = await import('./run-vEbmTx6x.mjs').then(function (n) { return n.ap; });
|
|
132
|
+
const { getFreePort } = await import('./frpc-pwqsONPX.mjs');
|
|
133
133
|
const server = http.createServer((req, res) => {
|
|
134
134
|
const u = new URL(req.url || "/", "http://127.0.0.1");
|
|
135
135
|
let rel = u.pathname;
|
|
@@ -152,7 +152,7 @@ async function serviceServe(args) {
|
|
|
152
152
|
resolve(18080);
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
|
-
const { runFrpcTunnel } = await import('./frpc-
|
|
155
|
+
const { runFrpcTunnel } = await import('./frpc-pwqsONPX.mjs');
|
|
156
156
|
void server;
|
|
157
157
|
await runFrpcTunnel(name, [servePort]);
|
|
158
158
|
} catch (err) {
|
|
@@ -162,7 +162,7 @@ async function serviceServe(args) {
|
|
|
162
162
|
}
|
|
163
163
|
async function serviceList(_args) {
|
|
164
164
|
try {
|
|
165
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
165
|
+
const { connectAndGetMachine } = await import('./commands-CjBsJQX-.mjs');
|
|
166
166
|
const { server, machine } = await connectAndGetMachine();
|
|
167
167
|
try {
|
|
168
168
|
const tunnels = await machine.tunnelList({});
|
|
@@ -202,7 +202,7 @@ async function serviceDelete(args) {
|
|
|
202
202
|
process.exit(1);
|
|
203
203
|
}
|
|
204
204
|
try {
|
|
205
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
205
|
+
const { connectAndGetMachine } = await import('./commands-CjBsJQX-.mjs');
|
|
206
206
|
const { server, machine } = await connectAndGetMachine();
|
|
207
207
|
try {
|
|
208
208
|
await machine.tunnelStop({ name });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { j as resolveProjectRoot, K as workflowSteps, z as setWorkflowEnabled, F as isWorkflowEnabled, A as removeWorkflow, x as getWorkflow, E as listWorkflows, C as saveWorkflow, D as rawWorkflow } from './run-
|
|
2
|
+
import { j as resolveProjectRoot, K as workflowSteps, z as setWorkflowEnabled, F as isWorkflowEnabled, A as removeWorkflow, x as getWorkflow, E as listWorkflows, C as saveWorkflow, D as rawWorkflow } from './run-vEbmTx6x.mjs';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
|
5
5
|
import 'fs';
|
|
@@ -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 { ah as PINNED_CODEX_VERSION, c as connectToHypha } from './run-
|
|
4
|
+
import { ah as PINNED_CODEX_VERSION, c as connectToHypha } from './run-vEbmTx6x.mjs';
|
|
5
5
|
import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-mM9Q6Q2G.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
@@ -4,7 +4,7 @@ import { mkdirSync, chmodSync, writeFileSync, unlinkSync, existsSync, readFileSy
|
|
|
4
4
|
import { join } from 'path';
|
|
5
5
|
import { homedir, platform, arch } from 'os';
|
|
6
6
|
import { randomUUID, createHash } from 'crypto';
|
|
7
|
-
import { e as getFrpsSubdomainHost, f as getFrpsServerPort, h as getFrpsServerAddr } from './run-
|
|
7
|
+
import { e as getFrpsSubdomainHost, f as getFrpsServerPort, h as getFrpsServerAddr } from './run-vEbmTx6x.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a2 as resolveModel, aj as describeMisconfiguration, ak as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { a2 as resolveModel, aj as describeMisconfiguration, ak as buildMachineDeps } from './run-vEbmTx6x.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-DU8QZetT.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-vEbmTx6x.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as connectToHypha, S as SharingNotificationSync, L as parseJwtEmail } from './run-
|
|
1
|
+
import { c as connectToHypha, S as SharingNotificationSync, L as parseJwtEmail } from './run-vEbmTx6x.mjs';
|
|
2
2
|
import { randomUUID } from 'node:crypto';
|
|
3
3
|
import { existsSync, readFileSync } from 'node:fs';
|
|
4
4
|
import { join } from 'node:path';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as resolveProjectRoot, v as getRun, w as listRuns, x as getWorkflow, y as runWorkflow, z as setWorkflowEnabled, A as removeWorkflow, B as validateWorkflowName, C as saveWorkflow, D as rawWorkflow, E as listWorkflows } from './run-
|
|
1
|
+
import { j as resolveProjectRoot, v as getRun, w as listRuns, x as getWorkflow, y as runWorkflow, z as setWorkflowEnabled, A as removeWorkflow, B as validateWorkflowName, C as saveWorkflow, D as rawWorkflow, E as listWorkflows } from './run-vEbmTx6x.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as resolveProjectRoot, u as updateIssue, k as getIssue, l as resumeIssue, p as pauseIssue, m as addComment, n as addIssue, o as listIssues, q as searchIssues, t as isVisibleTo } from './run-
|
|
1
|
+
import { j as resolveProjectRoot, u as updateIssue, k as getIssue, l as resumeIssue, p as pauseIssue, m as addComment, n as addIssue, o as listIssues, q as searchIssues, t as isVisibleTo } from './run-vEbmTx6x.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { al as applyClaudeProxyEnv, am as composeSessionId, an as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, ao as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { al as applyClaudeProxyEnv, am as composeSessionId, an as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, ao as generateHookSettings } from './run-vEbmTx6x.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';
|
|
@@ -3153,7 +3153,7 @@ Connection: close\r
|
|
|
3153
3153
|
const mount = this.mounts.get(mountName);
|
|
3154
3154
|
const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, buildLinkSubdomain(subdomainSafe, mount.linkToken)]]) : void 0;
|
|
3155
3155
|
try {
|
|
3156
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
3156
|
+
const { FrpcTunnel } = await import('./frpc-pwqsONPX.mjs');
|
|
3157
3157
|
let tunnel;
|
|
3158
3158
|
tunnel = new FrpcTunnel({
|
|
3159
3159
|
name: tunnelName,
|
|
@@ -4354,6 +4354,11 @@ function fixedSessionId(c) {
|
|
|
4354
4354
|
const b = c.bind;
|
|
4355
4355
|
return b && typeof b.session === "string" ? b.session : void 0;
|
|
4356
4356
|
}
|
|
4357
|
+
function channelAsyncRepliable(c) {
|
|
4358
|
+
if (!c || c.system) return false;
|
|
4359
|
+
if ((c.action?.kind ?? "message") !== "message") return false;
|
|
4360
|
+
return bindMode(c) !== "stateless";
|
|
4361
|
+
}
|
|
4357
4362
|
class ChannelStore {
|
|
4358
4363
|
dir;
|
|
4359
4364
|
constructor(projectDir) {
|
|
@@ -4471,7 +4476,8 @@ function generateSkillBody(channel, ctx) {
|
|
|
4471
4476
|
const uploadUrl = `${gw}/upload`;
|
|
4472
4477
|
const key = ctx?.key || "<your-key>";
|
|
4473
4478
|
const isAgent = channel.action?.kind === "agent";
|
|
4474
|
-
|
|
4479
|
+
channel.reply?.mode === "queue";
|
|
4480
|
+
const asyncReply = channelAsyncRepliable(channel);
|
|
4475
4481
|
const recvUrl = `${gw}/receive`;
|
|
4476
4482
|
const hyphaOpen = (channel.identity?.hypha_allow || []).length > 0;
|
|
4477
4483
|
const mode = bindMode(channel);
|
|
@@ -4482,8 +4488,8 @@ function generateSkillBody(channel, ctx) {
|
|
|
4482
4488
|
const bindNote = mode === "stateless" ? `**Stateless channel** \u2014 each call spawns a fresh, isolated one-shot session (cold-start: a few seconds), runs, replies, and closes. No shared memory between calls.` : mode === "fixed" ? `Routes to a **fixed session** (\`${rSession}\`); reachable only while that session is live.` : rSession ? `Routes to **session \`${rSession}\`** (the one this instruction was copied from); reachable only while it is live, else a fresh stateless run answers.` : `**Dynamic channel** \u2014 pass \`session: "<id>"\` to target a specific live session, else a fresh stateless run answers.`;
|
|
4483
4489
|
const name = channel.skill?.name || channel.name;
|
|
4484
4490
|
const desc = channel.skill?.description || channel.description || `Send a message to the "${channel.name}" channel.`;
|
|
4485
|
-
const replyNote = isAgent ? `This is a **WISE Agent** channel: \`send()\` runs a fast assistant against the session's tools/skills and returns its answer synchronously in the result \`reply\`.` :
|
|
4486
|
-
const queueSection =
|
|
4491
|
+
const replyNote = isAgent ? `This is a **WISE Agent** channel: \`send()\` runs a fast assistant against the session's tools/skills and returns its answer synchronously in the result \`reply\`.` : asyncReply ? `This channel is **repliable**: \`send()\` usually returns \`{ status: "queued", correlationId }\` and the agent replies later \u2014 poll \`receive()\` (or GET /receive \xB7 /events) for replies addressed to you. **But it may also answer synchronously** with \`{ status: "completed", reply }\` (e.g. when the target session is gone and a fresh one-shot run handles the call) \u2014 always check \`status\` first and use \`reply\` directly when present; \`receive()\` has nothing to return for a one-shot.` : `Delivery is fire-and-forget \u2014 the message lands in the agent's inbox, tagged with your verified identity (\`from\`).`;
|
|
4492
|
+
const queueSection = asyncReply ? `
|
|
4487
4493
|
|
|
4488
4494
|
## Getting the reply
|
|
4489
4495
|
\`send()\` returns one of two shapes \u2014 **check \`status\` first**:
|
|
@@ -6286,7 +6292,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
6286
6292
|
const tunnels = handlers.tunnels;
|
|
6287
6293
|
if (!tunnels) throw new Error("Tunnel management not available");
|
|
6288
6294
|
if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
|
|
6289
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
6295
|
+
const { FrpcTunnel } = await import('./frpc-pwqsONPX.mjs');
|
|
6290
6296
|
const tunnel = new FrpcTunnel({
|
|
6291
6297
|
name: params.name,
|
|
6292
6298
|
ports: params.ports,
|
|
@@ -6779,7 +6785,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
6779
6785
|
}
|
|
6780
6786
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
6781
6787
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
6782
|
-
const { toolsForRole } = await import('./sideband-
|
|
6788
|
+
const { toolsForRole } = await import('./sideband-DU8QZetT.mjs');
|
|
6783
6789
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
6784
6790
|
return fmt(r2);
|
|
6785
6791
|
}
|
|
@@ -6884,7 +6890,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
6884
6890
|
return { ok: false, call_id: callId, status: "busy", error: "channel is busy (too many concurrent requests) \u2014 retry shortly" };
|
|
6885
6891
|
}
|
|
6886
6892
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
6887
|
-
const { queryCore } = await import('./commands-
|
|
6893
|
+
const { queryCore } = await import('./commands-CjBsJQX-.mjs');
|
|
6888
6894
|
const timeout = c.reply?.timeout_sec || 120;
|
|
6889
6895
|
let result;
|
|
6890
6896
|
try {
|
|
@@ -6967,8 +6973,8 @@ ${d?.error || "not found"}`;
|
|
|
6967
6973
|
const res = resolveChannel(kwargs.channel, kwargs.session);
|
|
6968
6974
|
if ("error" in res) return { error: res.error };
|
|
6969
6975
|
const { c, dir } = res;
|
|
6970
|
-
if (c
|
|
6971
|
-
return { error: "this channel has no async replies (
|
|
6976
|
+
if (!channelAsyncRepliable(c)) {
|
|
6977
|
+
return { error: "this channel has no async replies (agent/loop/stateless channels reply synchronously)" };
|
|
6972
6978
|
}
|
|
6973
6979
|
const u = context?.user;
|
|
6974
6980
|
const r = resolveSender(c, {
|
|
@@ -8975,8 +8981,8 @@ function createSessionStore(server, sessionId, initialMetadata, initialAgentStat
|
|
|
8975
8981
|
syncChannelsToMetadata();
|
|
8976
8982
|
return { ok: true, call_id: callId, status: "accepted" };
|
|
8977
8983
|
}
|
|
8978
|
-
const
|
|
8979
|
-
const wantReply =
|
|
8984
|
+
const repliable = channelAsyncRepliable(c);
|
|
8985
|
+
const wantReply = repliable && !params.no_reply;
|
|
8980
8986
|
const replySession = wantReply ? params.reply_to?.session : void 0;
|
|
8981
8987
|
const inboxMsg = {
|
|
8982
8988
|
messageId: callId,
|
|
@@ -18209,7 +18215,7 @@ async function startDaemon(options) {
|
|
|
18209
18215
|
try {
|
|
18210
18216
|
const dir = loadSessionIndex()[sessionId]?.directory;
|
|
18211
18217
|
if (!dir) return;
|
|
18212
|
-
const { reconcileServiceLinks } = await import('./agentCommands-
|
|
18218
|
+
const { reconcileServiceLinks } = await import('./agentCommands-RhxyIA_z.mjs');
|
|
18213
18219
|
const configPath = getSvampConfigPath(dir, sessionId);
|
|
18214
18220
|
const config = readSvampConfig(configPath);
|
|
18215
18221
|
const entries = Array.from(urls.entries());
|
|
@@ -18227,7 +18233,7 @@ async function startDaemon(options) {
|
|
|
18227
18233
|
}
|
|
18228
18234
|
}
|
|
18229
18235
|
async function createExposedTunnel(spec) {
|
|
18230
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
18236
|
+
const { FrpcTunnel } = await import('./frpc-pwqsONPX.mjs');
|
|
18231
18237
|
const tunnel = new FrpcTunnel({
|
|
18232
18238
|
name: spec.name,
|
|
18233
18239
|
ports: spec.ports,
|
|
@@ -20572,11 +20578,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
20572
20578
|
});
|
|
20573
20579
|
},
|
|
20574
20580
|
onIssue: async (params) => {
|
|
20575
|
-
const { issueRpc } = await import('./rpc-
|
|
20581
|
+
const { issueRpc } = await import('./rpc-DAcODVs3.mjs');
|
|
20576
20582
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
20577
20583
|
},
|
|
20578
20584
|
onWorkflow: async (params) => {
|
|
20579
|
-
const { workflowRpc } = await import('./rpc-
|
|
20585
|
+
const { workflowRpc } = await import('./rpc-BFIy8FTe.mjs');
|
|
20580
20586
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
20581
20587
|
},
|
|
20582
20588
|
onRipgrep: async (args, cwd) => {
|
|
@@ -21280,11 +21286,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
21280
21286
|
});
|
|
21281
21287
|
},
|
|
21282
21288
|
onIssue: async (params) => {
|
|
21283
|
-
const { issueRpc } = await import('./rpc-
|
|
21289
|
+
const { issueRpc } = await import('./rpc-DAcODVs3.mjs');
|
|
21284
21290
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
21285
21291
|
},
|
|
21286
21292
|
onWorkflow: async (params) => {
|
|
21287
|
-
const { workflowRpc } = await import('./rpc-
|
|
21293
|
+
const { workflowRpc } = await import('./rpc-BFIy8FTe.mjs');
|
|
21288
21294
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
21289
21295
|
},
|
|
21290
21296
|
onRipgrep: async (args, cwd) => {
|
|
@@ -22530,7 +22536,7 @@ ${oracle.output.trim().slice(0, 500)}`, "\u{1F501} Continuing loop");
|
|
|
22530
22536
|
const PING_TIMEOUT_MS = 15e3;
|
|
22531
22537
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
22532
22538
|
const RECONNECT_JITTER_MS = 2500;
|
|
22533
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
22539
|
+
const { WorkflowScheduler } = await import('./scheduler-DlDYY_wS.mjs');
|
|
22534
22540
|
const workflowProjectRoots = () => {
|
|
22535
22541
|
const dirs = /* @__PURE__ */ new Set();
|
|
22536
22542
|
for (const s of pidToTrackedSession.values()) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as resolveProjectRoot, E as listWorkflows, F as isWorkflowEnabled, G as workflowSchedules, H as inZone, y as runWorkflow, I as cronMatches } from './run-
|
|
1
|
+
import { j as resolveProjectRoot, E as listWorkflows, F as isWorkflowEnabled, G as workflowSchedules, H as inZone, y as runWorkflow, I as cronMatches } from './run-vEbmTx6x.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import '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-CjBsJQX-.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-CjBsJQX-.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-CjBsJQX-.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-CjBsJQX-.mjs');
|
|
206
206
|
const all = hasFlag(args, "--all", "-a");
|
|
207
207
|
const json = hasFlag(args, "--json");
|
|
208
208
|
const sessionId = getFlag(args, "--session");
|
|
@@ -236,7 +236,7 @@ async function serveList(args, machineId) {
|
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
async function serveInfo(machineId) {
|
|
239
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
239
|
+
const { connectAndGetMachine } = await import('./commands-CjBsJQX-.mjs');
|
|
240
240
|
const { machine, server } = await connectAndGetMachine(machineId);
|
|
241
241
|
try {
|
|
242
242
|
const info = await machine.serveInfo();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as READ_ONLY_TOOLS, O as loadMachineContext, P as buildMachineInstructions, Q as machineToolsForRole, T as buildMachineTools } from './run-
|
|
1
|
+
import { R as READ_ONLY_TOOLS, O as loadMachineContext, P as buildMachineInstructions, Q as machineToolsForRole, T as buildMachineTools } from './run-vEbmTx6x.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|