svamp-cli 0.2.320 → 0.2.321
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-JGAVkD1F.mjs → adminCommands-BRiz5afS.mjs} +1 -1
- package/dist/{agentCommands-CoCcX8K1.mjs → agentCommands-Cve_0_8K.mjs} +5 -5
- package/dist/{auth-CFGN1ArQ.mjs → auth-DrLE8Yp-.mjs} +1 -1
- package/dist/{cli-C0tO-Dnx.mjs → cli-xMKB7O8k.mjs} +76 -76
- package/dist/cli.mjs +2 -2
- package/dist/{commands-DPi7PGxP.mjs → commands-BxHc_Exm.mjs} +2 -2
- package/dist/{commands-BwkoaGfZ.mjs → commands-C-QNVo3l.mjs} +3 -3
- package/dist/{commands-BUZUle6g.mjs → commands-CXgDZgqh.mjs} +2 -2
- package/dist/{commands-XN2UtO-W.mjs → commands-D1d9snmv.mjs} +1 -1
- package/dist/{commands-BHcPDQCC.mjs → commands-D9-YqAI3.mjs} +3 -3
- package/dist/{commands-6KY9uV6s.mjs → commands-DfRahEsO.mjs} +3 -3
- package/dist/{commands-CeFjRNKk.mjs → commands-Fvgfzyo3.mjs} +11 -11
- package/dist/{commands-CubsoWG-.mjs → commands-slA1eX13.mjs} +1 -1
- package/dist/{fleet-BKrbG7G-.mjs → fleet-umFHXPoE.mjs} +1 -1
- package/dist/{headlessCli-nywi2aop.mjs → headlessCli-DgJ15daM.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{notifyCommands-BFr80nfh.mjs → notifyCommands-Cip4lIYS.mjs} +1 -1
- package/dist/{package-D4zdkORw.mjs → package-DJRwvqcx.mjs} +1 -1
- package/dist/{rpc-rpH-yXR7.mjs → rpc-Bz9w7JV9.mjs} +1 -1
- package/dist/{rpc-DVtlZahE.mjs → rpc-CLoO6Z5Z.mjs} +1 -1
- package/dist/{run-CvwPIrfo.mjs → run-CKLatoxa.mjs} +37 -14
- package/dist/{run-C22c9FOe.mjs → run-CxuKTe0N.mjs} +1 -1
- package/dist/{scheduler-CYyGe6kn.mjs → scheduler-Bs0nAlhs.mjs} +1 -1
- package/dist/{serveCommands-DRMwdDXS.mjs → serveCommands-Bi7DJs-3.mjs} +10 -10
- package/dist/{sideband-D1dsa-t0.mjs → sideband-CFbMRvzr.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as connectToHypha, K as computeCollectionConfigUpdate, L as SYSTEM_COLLECTION_CONFIG } from './run-
|
|
1
|
+
import { c as connectToHypha, K as computeCollectionConfigUpdate, L as SYSTEM_COLLECTION_CONFIG } from './run-CKLatoxa.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 { e as shortId } from './run-
|
|
5
|
+
import { e as shortId } from './run-CKLatoxa.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-CKLatoxa.mjs').then(function (n) { return n.as; });
|
|
100
100
|
const desc = sanitizeDescription(description, 240);
|
|
101
101
|
if (!desc) {
|
|
102
102
|
console.error("Project description is empty.");
|
|
@@ -369,7 +369,7 @@ async function sessionBroadcast(action, args) {
|
|
|
369
369
|
console.log(`Broadcast sent: ${action}`);
|
|
370
370
|
}
|
|
371
371
|
async function connectToMachineService() {
|
|
372
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
372
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
373
373
|
return connectAndGetMachine();
|
|
374
374
|
}
|
|
375
375
|
function buildInboxMessage(args) {
|
|
@@ -452,7 +452,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
452
452
|
console.error("Message body is required.");
|
|
453
453
|
process.exit(1);
|
|
454
454
|
}
|
|
455
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
455
|
+
const { connectAndResolveSession } = await import('./commands-slA1eX13.mjs');
|
|
456
456
|
let server;
|
|
457
457
|
try {
|
|
458
458
|
const { targetId, messageId } = await inboxSendCore(
|
|
@@ -507,7 +507,7 @@ async function inboxReply(messageId, body, opts) {
|
|
|
507
507
|
console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
|
|
508
508
|
process.exit(1);
|
|
509
509
|
}
|
|
510
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
510
|
+
const { connectAndResolveSession } = await import('./commands-slA1eX13.mjs');
|
|
511
511
|
const { server: localServer, machine: localMachine } = await connectToMachineService();
|
|
512
512
|
let localDisconnected = false;
|
|
513
513
|
const disconnectLocal = async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ae as clearStopMarker, af as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-
|
|
1
|
+
import { ae as clearStopMarker, af as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-CKLatoxa.mjs';
|
|
2
2
|
import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
|
|
3
3
|
|
|
4
4
|
function flushAndExit(code) {
|
|
@@ -37,7 +37,7 @@ const subcommand = args[0];
|
|
|
37
37
|
let daemonSubcommand = args[1];
|
|
38
38
|
async function main() {
|
|
39
39
|
try {
|
|
40
|
-
const { getLoadedConfig } = await import('./run-
|
|
40
|
+
const { getLoadedConfig } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.an; });
|
|
41
41
|
getLoadedConfig();
|
|
42
42
|
} catch {
|
|
43
43
|
}
|
|
@@ -56,7 +56,7 @@ async function main() {
|
|
|
56
56
|
}
|
|
57
57
|
const whenIdle = args.includes("--when-idle");
|
|
58
58
|
const force = args.includes("--force");
|
|
59
|
-
const mod = await import('./run-
|
|
59
|
+
const mod = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aC; });
|
|
60
60
|
if (whenIdle && !force) {
|
|
61
61
|
if (mod.isDaemonAlive()) {
|
|
62
62
|
mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
|
|
@@ -363,7 +363,7 @@ async function main() {
|
|
|
363
363
|
console.error("svamp service: Service commands are not available in sandboxed sessions.");
|
|
364
364
|
process.exit(1);
|
|
365
365
|
}
|
|
366
|
-
const { handleServiceCommand } = await import('./commands-
|
|
366
|
+
const { handleServiceCommand } = await import('./commands-Fvgfzyo3.mjs');
|
|
367
367
|
await handleServiceCommand();
|
|
368
368
|
} else if (subcommand === "serve") {
|
|
369
369
|
const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
|
|
@@ -371,7 +371,7 @@ async function main() {
|
|
|
371
371
|
console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
|
|
372
372
|
process.exit(1);
|
|
373
373
|
}
|
|
374
|
-
const { handleServeCommand } = await import('./serveCommands-
|
|
374
|
+
const { handleServeCommand } = await import('./serveCommands-Bi7DJs-3.mjs');
|
|
375
375
|
await handleServeCommand();
|
|
376
376
|
process.exit(0);
|
|
377
377
|
} else if (subcommand === "process" || subcommand === "proc") {
|
|
@@ -380,7 +380,7 @@ async function main() {
|
|
|
380
380
|
console.error("svamp process: Process commands are not available in sandboxed sessions.");
|
|
381
381
|
process.exit(1);
|
|
382
382
|
}
|
|
383
|
-
const { processCommand } = await import('./commands-
|
|
383
|
+
const { processCommand } = await import('./commands-DfRahEsO.mjs');
|
|
384
384
|
let machineId;
|
|
385
385
|
const processArgs = args.slice(1);
|
|
386
386
|
const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
|
|
@@ -394,26 +394,26 @@ async function main() {
|
|
|
394
394
|
}), machineId);
|
|
395
395
|
process.exit(0);
|
|
396
396
|
} else if (subcommand === "outpost") {
|
|
397
|
-
const { outpostCommand } = await import('./commands-
|
|
397
|
+
const { outpostCommand } = await import('./commands-D9-YqAI3.mjs');
|
|
398
398
|
await outpostCommand(args.slice(1));
|
|
399
399
|
process.exit(0);
|
|
400
400
|
} else if (subcommand === "issue" || subcommand === "issues") {
|
|
401
|
-
const { issueCommand } = await import('./commands-
|
|
401
|
+
const { issueCommand } = await import('./commands-BxHc_Exm.mjs');
|
|
402
402
|
await issueCommand(args.slice(1));
|
|
403
403
|
await flushAndExit(0);
|
|
404
404
|
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
405
|
-
const { workflowCommand } = await import('./commands-
|
|
405
|
+
const { workflowCommand } = await import('./commands-CXgDZgqh.mjs');
|
|
406
406
|
await workflowCommand(args.slice(1));
|
|
407
407
|
await flushAndExit(0);
|
|
408
408
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
409
409
|
await handleWiseAgentCommand(args.slice(1));
|
|
410
410
|
process.exit(0);
|
|
411
411
|
} else if (subcommand === "feature" || subcommand === "crew") {
|
|
412
|
-
const { crewCommand } = await import('./commands-
|
|
412
|
+
const { crewCommand } = await import('./commands-C-QNVo3l.mjs');
|
|
413
413
|
await crewCommand(args.slice(1));
|
|
414
414
|
process.exit(0);
|
|
415
415
|
} else if (subcommand === "notify") {
|
|
416
|
-
const { notifyUser } = await import('./notifyCommands-
|
|
416
|
+
const { notifyUser } = await import('./notifyCommands-Cip4lIYS.mjs');
|
|
417
417
|
const rest = args.slice(1);
|
|
418
418
|
let email;
|
|
419
419
|
const o = {};
|
|
@@ -430,7 +430,7 @@ async function main() {
|
|
|
430
430
|
} else if (subcommand === "admin") {
|
|
431
431
|
const adminSub = args[1];
|
|
432
432
|
if (adminSub === "set-collection-config") {
|
|
433
|
-
const { setCollectionConfig } = await import('./adminCommands-
|
|
433
|
+
const { setCollectionConfig } = await import('./adminCommands-BRiz5afS.mjs');
|
|
434
434
|
const rest = args.slice(2);
|
|
435
435
|
let alias;
|
|
436
436
|
let configJson;
|
|
@@ -440,10 +440,10 @@ async function main() {
|
|
|
440
440
|
}
|
|
441
441
|
await setCollectionConfig(alias, configJson);
|
|
442
442
|
} else if (adminSub === "create-system-collections") {
|
|
443
|
-
const { createSystemCollections } = await import('./adminCommands-
|
|
443
|
+
const { createSystemCollections } = await import('./adminCommands-BRiz5afS.mjs');
|
|
444
444
|
await createSystemCollections();
|
|
445
445
|
} else if (adminSub === "migrate-collection-children") {
|
|
446
|
-
const { migrateCollectionChildren } = await import('./adminCommands-
|
|
446
|
+
const { migrateCollectionChildren } = await import('./adminCommands-BRiz5afS.mjs');
|
|
447
447
|
const rest = args.slice(2).filter((a) => !a.startsWith("-"));
|
|
448
448
|
await migrateCollectionChildren(rest[0], rest[1]);
|
|
449
449
|
} else {
|
|
@@ -451,7 +451,7 @@ async function main() {
|
|
|
451
451
|
}
|
|
452
452
|
process.exit(0);
|
|
453
453
|
} else if (subcommand === "events") {
|
|
454
|
-
const { listEvents, ackEvent } = await import('./notifyCommands-
|
|
454
|
+
const { listEvents, ackEvent } = await import('./notifyCommands-Cip4lIYS.mjs');
|
|
455
455
|
const sub = args[1];
|
|
456
456
|
const rest = args.slice(2);
|
|
457
457
|
let email;
|
|
@@ -472,7 +472,7 @@ async function main() {
|
|
|
472
472
|
} else if (!subcommand || subcommand === "start") {
|
|
473
473
|
await handleInteractiveCommand();
|
|
474
474
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
475
|
-
const pkg = await import('./package-
|
|
475
|
+
const pkg = await import('./package-DJRwvqcx.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
476
476
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
477
477
|
} else {
|
|
478
478
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -481,7 +481,7 @@ async function main() {
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
async function handleInteractiveCommand() {
|
|
484
|
-
const { runInteractive } = await import('./run-
|
|
484
|
+
const { runInteractive } = await import('./run-CxuKTe0N.mjs');
|
|
485
485
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
486
486
|
let directory = process.cwd();
|
|
487
487
|
let resumeSessionId;
|
|
@@ -526,7 +526,7 @@ async function handleAgentCommand() {
|
|
|
526
526
|
return;
|
|
527
527
|
}
|
|
528
528
|
if (agentArgs[0] === "list") {
|
|
529
|
-
const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-
|
|
529
|
+
const { KNOWN_ACP_AGENTS, KNOWN_CODEX_AGENTS: KNOWN_CODEX_AGENTS2 } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.av; });
|
|
530
530
|
console.log("Known agents:");
|
|
531
531
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
532
532
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -538,7 +538,7 @@ async function handleAgentCommand() {
|
|
|
538
538
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
539
539
|
return;
|
|
540
540
|
}
|
|
541
|
-
const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-
|
|
541
|
+
const { resolveAcpAgentConfig, KNOWN_CODEX_AGENTS } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.av; });
|
|
542
542
|
let cwd = process.cwd();
|
|
543
543
|
const filteredArgs = [];
|
|
544
544
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -562,18 +562,18 @@ async function handleAgentCommand() {
|
|
|
562
562
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
563
563
|
let backend;
|
|
564
564
|
if (KNOWN_CODEX_AGENTS[config.agentName]) {
|
|
565
|
-
const { CodexAppServerBackend } = await import('./run-
|
|
565
|
+
const { CodexAppServerBackend } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aw; });
|
|
566
566
|
backend = new CodexAppServerBackend({ cwd, log: logFn });
|
|
567
567
|
} else {
|
|
568
|
-
const { AcpBackend } = await import('./run-
|
|
569
|
-
const { GeminiTransport } = await import('./run-
|
|
570
|
-
const { KimiTransport } = await import('./run-
|
|
571
|
-
const { DefaultTransport } = await import('./run-
|
|
568
|
+
const { AcpBackend } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.au; });
|
|
569
|
+
const { GeminiTransport } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ax; });
|
|
570
|
+
const { KimiTransport } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ay; });
|
|
571
|
+
const { DefaultTransport } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.at; });
|
|
572
572
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : config.agentName === "kimi" ? new KimiTransport() : new DefaultTransport(config.agentName);
|
|
573
573
|
let acpEnv;
|
|
574
574
|
if (config.agentName === "kimi") {
|
|
575
|
-
const { ensureKimiProviderConfigured } = await import('./run-
|
|
576
|
-
const { kimiSpawnEnv } = await import('./run-
|
|
575
|
+
const { ensureKimiProviderConfigured } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aA; });
|
|
576
|
+
const { kimiSpawnEnv } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.az; });
|
|
577
577
|
await ensureKimiProviderConfigured(process.env, config.command, logFn);
|
|
578
578
|
acpEnv = kimiSpawnEnv(process.env);
|
|
579
579
|
}
|
|
@@ -703,7 +703,7 @@ async function handleSessionCommand() {
|
|
|
703
703
|
process.exit(1);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
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-
|
|
706
|
+
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-slA1eX13.mjs');
|
|
707
707
|
const parseFlagStr = (flag, shortFlag) => {
|
|
708
708
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
709
709
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -777,7 +777,7 @@ async function handleSessionCommand() {
|
|
|
777
777
|
console.warn(" --allow-write / a securityContext allowedDirectories, or keep the");
|
|
778
778
|
console.warn(" sensitive path outside the workspace.");
|
|
779
779
|
}
|
|
780
|
-
const { parseShareArg } = await import('./commands-
|
|
780
|
+
const { parseShareArg } = await import('./commands-slA1eX13.mjs');
|
|
781
781
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
782
782
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
783
783
|
message,
|
|
@@ -868,7 +868,7 @@ async function handleSessionCommand() {
|
|
|
868
868
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
869
869
|
process.exit(1);
|
|
870
870
|
}
|
|
871
|
-
const { sessionEditMessage } = await import('./commands-
|
|
871
|
+
const { sessionEditMessage } = await import('./commands-slA1eX13.mjs');
|
|
872
872
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
873
873
|
} else if (sessionSubcommand === "refine") {
|
|
874
874
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -876,7 +876,7 @@ async function handleSessionCommand() {
|
|
|
876
876
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
877
877
|
process.exit(1);
|
|
878
878
|
}
|
|
879
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
879
|
+
const { sessionRefineLastReply } = await import('./commands-slA1eX13.mjs');
|
|
880
880
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
881
881
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
882
882
|
if (!sessionArgs[1]) {
|
|
@@ -884,7 +884,7 @@ async function handleSessionCommand() {
|
|
|
884
884
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
885
885
|
process.exit(1);
|
|
886
886
|
}
|
|
887
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
887
|
+
const { sessionUndoEdit } = await import('./commands-slA1eX13.mjs');
|
|
888
888
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
889
889
|
} else if (sessionSubcommand === "query") {
|
|
890
890
|
const dir = sessionArgs[1];
|
|
@@ -894,7 +894,7 @@ async function handleSessionCommand() {
|
|
|
894
894
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
895
895
|
process.exit(1);
|
|
896
896
|
}
|
|
897
|
-
const { sessionQuery } = await import('./commands-
|
|
897
|
+
const { sessionQuery } = await import('./commands-slA1eX13.mjs');
|
|
898
898
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
899
899
|
timeout: parseFlagInt("--timeout"),
|
|
900
900
|
json: hasFlag("--json"),
|
|
@@ -927,7 +927,7 @@ async function handleSessionCommand() {
|
|
|
927
927
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
928
928
|
process.exit(1);
|
|
929
929
|
}
|
|
930
|
-
const { sessionApprove } = await import('./commands-
|
|
930
|
+
const { sessionApprove } = await import('./commands-slA1eX13.mjs');
|
|
931
931
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
932
932
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
933
933
|
json: hasFlag("--json")
|
|
@@ -937,7 +937,7 @@ async function handleSessionCommand() {
|
|
|
937
937
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
938
938
|
process.exit(1);
|
|
939
939
|
}
|
|
940
|
-
const { sessionDeny } = await import('./commands-
|
|
940
|
+
const { sessionDeny } = await import('./commands-slA1eX13.mjs');
|
|
941
941
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
942
942
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
943
943
|
json: hasFlag("--json")
|
|
@@ -989,7 +989,7 @@ async function handleSessionCommand() {
|
|
|
989
989
|
console.error("Usage: svamp session set-title <title>");
|
|
990
990
|
process.exit(1);
|
|
991
991
|
}
|
|
992
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
992
|
+
const { sessionSetTitle } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
993
993
|
await sessionSetTitle(title);
|
|
994
994
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
995
995
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -997,7 +997,7 @@ async function handleSessionCommand() {
|
|
|
997
997
|
console.error("Usage: svamp session set-project-description <text>");
|
|
998
998
|
process.exit(1);
|
|
999
999
|
}
|
|
1000
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
1000
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1001
1001
|
await sessionSetProjectDescription(desc);
|
|
1002
1002
|
} else if (sessionSubcommand === "set-link") {
|
|
1003
1003
|
const url = sessionArgs[1];
|
|
@@ -1006,11 +1006,11 @@ async function handleSessionCommand() {
|
|
|
1006
1006
|
process.exit(1);
|
|
1007
1007
|
}
|
|
1008
1008
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
1009
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
1009
|
+
const { sessionSetLink } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1010
1010
|
await sessionSetLink(url, label);
|
|
1011
1011
|
} else if (sessionSubcommand === "link") {
|
|
1012
1012
|
const op = sessionArgs[1];
|
|
1013
|
-
const lm = await import('./agentCommands-
|
|
1013
|
+
const lm = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1014
1014
|
if (op === "add") {
|
|
1015
1015
|
const url = sessionArgs[2];
|
|
1016
1016
|
if (!url || url.startsWith("--")) {
|
|
@@ -1045,7 +1045,7 @@ async function handleSessionCommand() {
|
|
|
1045
1045
|
process.exit(1);
|
|
1046
1046
|
}
|
|
1047
1047
|
const level = parseFlagStr("--level") || "info";
|
|
1048
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
1048
|
+
const { sessionNotify } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1049
1049
|
await sessionNotify(message, level);
|
|
1050
1050
|
} else if (sessionSubcommand === "broadcast") {
|
|
1051
1051
|
const action = sessionArgs[1];
|
|
@@ -1053,7 +1053,7 @@ async function handleSessionCommand() {
|
|
|
1053
1053
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
1054
1054
|
process.exit(1);
|
|
1055
1055
|
}
|
|
1056
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
1056
|
+
const { sessionBroadcast } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1057
1057
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
1058
1058
|
} else if (sessionSubcommand === "inbox") {
|
|
1059
1059
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -1064,7 +1064,7 @@ async function handleSessionCommand() {
|
|
|
1064
1064
|
process.exit(1);
|
|
1065
1065
|
}
|
|
1066
1066
|
if (agentSessionId) {
|
|
1067
|
-
const { inboxSend } = await import('./agentCommands-
|
|
1067
|
+
const { inboxSend } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1068
1068
|
await inboxSend(sessionArgs[2], {
|
|
1069
1069
|
body: sessionArgs[3],
|
|
1070
1070
|
subject: parseFlagStr("--subject"),
|
|
@@ -1081,7 +1081,7 @@ async function handleSessionCommand() {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
1083
1083
|
if (agentSessionId && !sessionArgs[2]) {
|
|
1084
|
-
const { inboxList } = await import('./agentCommands-
|
|
1084
|
+
const { inboxList } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1085
1085
|
await inboxList({
|
|
1086
1086
|
unread: hasFlag("--unread"),
|
|
1087
1087
|
limit: parseFlagInt("--limit"),
|
|
@@ -1103,7 +1103,7 @@ async function handleSessionCommand() {
|
|
|
1103
1103
|
process.exit(1);
|
|
1104
1104
|
}
|
|
1105
1105
|
if (agentSessionId && !sessionArgs[3]) {
|
|
1106
|
-
const { inboxList } = await import('./agentCommands-
|
|
1106
|
+
const { inboxList } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1107
1107
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
1108
1108
|
} else if (sessionArgs[3]) {
|
|
1109
1109
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -1113,7 +1113,7 @@ async function handleSessionCommand() {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
} else if (inboxSubcmd === "reply") {
|
|
1115
1115
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1116
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1116
|
+
const { inboxReply } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1117
1117
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1118
1118
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1119
1119
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1151,7 +1151,7 @@ async function handleMachineCommand() {
|
|
|
1151
1151
|
return;
|
|
1152
1152
|
}
|
|
1153
1153
|
if (machineSubcommand === "share") {
|
|
1154
|
-
const { machineShare } = await import('./commands-
|
|
1154
|
+
const { machineShare } = await import('./commands-slA1eX13.mjs');
|
|
1155
1155
|
let machineId;
|
|
1156
1156
|
const shareArgs = [];
|
|
1157
1157
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1202,14 +1202,14 @@ async function handleMachineCommand() {
|
|
|
1202
1202
|
process.exit(1);
|
|
1203
1203
|
}
|
|
1204
1204
|
if (all) {
|
|
1205
|
-
const { fleetExec } = await import('./fleet-
|
|
1205
|
+
const { fleetExec } = await import('./fleet-umFHXPoE.mjs');
|
|
1206
1206
|
await fleetExec(command, { cwd });
|
|
1207
1207
|
} else {
|
|
1208
|
-
const { machineExec } = await import('./commands-
|
|
1208
|
+
const { machineExec } = await import('./commands-slA1eX13.mjs');
|
|
1209
1209
|
await machineExec(machineId, command, cwd);
|
|
1210
1210
|
}
|
|
1211
1211
|
} else if (machineSubcommand === "info") {
|
|
1212
|
-
const { machineInfo } = await import('./commands-
|
|
1212
|
+
const { machineInfo } = await import('./commands-slA1eX13.mjs');
|
|
1213
1213
|
let machineId;
|
|
1214
1214
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1215
1215
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1238,10 +1238,10 @@ async function handleMachineCommand() {
|
|
|
1238
1238
|
console.error("Usage: svamp machine notify <message> [--level info|warning|error]");
|
|
1239
1239
|
process.exit(1);
|
|
1240
1240
|
}
|
|
1241
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1241
|
+
const { machineNotify } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
1242
1242
|
await machineNotify(message, level);
|
|
1243
1243
|
} else if (machineSubcommand === "ls") {
|
|
1244
|
-
const { machineLs } = await import('./commands-
|
|
1244
|
+
const { machineLs } = await import('./commands-slA1eX13.mjs');
|
|
1245
1245
|
let machineId;
|
|
1246
1246
|
let showHidden = false;
|
|
1247
1247
|
let path;
|
|
@@ -1307,26 +1307,26 @@ Examples:
|
|
|
1307
1307
|
};
|
|
1308
1308
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1309
1309
|
if (sub === "status") {
|
|
1310
|
-
const { fleetStatus } = await import('./fleet-
|
|
1310
|
+
const { fleetStatus } = await import('./fleet-umFHXPoE.mjs');
|
|
1311
1311
|
await fleetStatus();
|
|
1312
1312
|
} else if (sub === "upgrade-claude") {
|
|
1313
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1313
|
+
const { fleetUpgradeClaude } = await import('./fleet-umFHXPoE.mjs');
|
|
1314
1314
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1315
1315
|
} else if (sub === "upgrade-codex") {
|
|
1316
|
-
const { fleetUpgradeCodex } = await import('./fleet-
|
|
1316
|
+
const { fleetUpgradeCodex } = await import('./fleet-umFHXPoE.mjs');
|
|
1317
1317
|
await fleetUpgradeCodex({ version: flag("version", "-v") });
|
|
1318
1318
|
} else if (sub === "upgrade-kimi") {
|
|
1319
|
-
const { fleetUpgradeKimi } = await import('./fleet-
|
|
1319
|
+
const { fleetUpgradeKimi } = await import('./fleet-umFHXPoE.mjs');
|
|
1320
1320
|
await fleetUpgradeKimi({ version: flag("version", "-v") });
|
|
1321
1321
|
} else if (sub === "upgrade-svamp") {
|
|
1322
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1322
|
+
const { fleetUpgradeSvamp } = await import('./fleet-umFHXPoE.mjs');
|
|
1323
1323
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self"), force: hasFlag("force") });
|
|
1324
1324
|
} else if (sub === "daemon-restart") {
|
|
1325
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1325
|
+
const { fleetDaemonRestart } = await import('./fleet-umFHXPoE.mjs');
|
|
1326
1326
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1327
1327
|
} else if (sub === "push-skill") {
|
|
1328
1328
|
const name = fleetArgs[1];
|
|
1329
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1329
|
+
const { fleetPushSkill } = await import('./fleet-umFHXPoE.mjs');
|
|
1330
1330
|
await fleetPushSkill(name);
|
|
1331
1331
|
} else {
|
|
1332
1332
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1342,7 +1342,7 @@ async function handleSkillsCommand() {
|
|
|
1342
1342
|
await printSkillsHelp();
|
|
1343
1343
|
return;
|
|
1344
1344
|
}
|
|
1345
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1345
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-D1d9snmv.mjs');
|
|
1346
1346
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1347
1347
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1348
1348
|
if (!query) {
|
|
@@ -1389,7 +1389,7 @@ async function loginToHypha() {
|
|
|
1389
1389
|
process.exit(1);
|
|
1390
1390
|
}
|
|
1391
1391
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1392
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1392
|
+
const { loadInstanceConfig } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.an; });
|
|
1393
1393
|
let cfg = null;
|
|
1394
1394
|
try {
|
|
1395
1395
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1504,7 +1504,7 @@ async function logoutFromHypha() {
|
|
|
1504
1504
|
} catch {
|
|
1505
1505
|
}
|
|
1506
1506
|
try {
|
|
1507
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1507
|
+
const { clearInstanceConfigCache } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.an; });
|
|
1508
1508
|
clearInstanceConfigCache();
|
|
1509
1509
|
} catch {
|
|
1510
1510
|
}
|
|
@@ -1857,7 +1857,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1857
1857
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1858
1858
|
);
|
|
1859
1859
|
}
|
|
1860
|
-
const mod = await import('./run-
|
|
1860
|
+
const mod = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
|
|
1861
1861
|
if (hasHypha) {
|
|
1862
1862
|
let url;
|
|
1863
1863
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1911,7 +1911,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1911
1911
|
}
|
|
1912
1912
|
}
|
|
1913
1913
|
if (collected.length === 0) return;
|
|
1914
|
-
const { updateEnvFile } = await import('./run-
|
|
1914
|
+
const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
|
|
1915
1915
|
const seen = /* @__PURE__ */ new Set();
|
|
1916
1916
|
const deduped = collected.filter((e) => {
|
|
1917
1917
|
const k = e.toLowerCase();
|
|
@@ -1944,7 +1944,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
});
|
|
1946
1946
|
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(" ");
|
|
1947
|
-
const { wiseAskCli } = await import('./commands-
|
|
1947
|
+
const { wiseAskCli } = await import('./commands-slA1eX13.mjs');
|
|
1948
1948
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1949
1949
|
return;
|
|
1950
1950
|
}
|
|
@@ -1956,7 +1956,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1956
1956
|
}
|
|
1957
1957
|
return void 0;
|
|
1958
1958
|
};
|
|
1959
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1959
|
+
const { runWiseVoiceCli } = await import('./headlessCli-DgJ15daM.mjs');
|
|
1960
1960
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1961
1961
|
return;
|
|
1962
1962
|
}
|
|
@@ -1974,7 +1974,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1974
1974
|
const mode = valueOf(["--mode"]);
|
|
1975
1975
|
const mission = valueOf(["--mission"]);
|
|
1976
1976
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1977
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1977
|
+
const { wiseJoinMeetingCli } = await import('./commands-slA1eX13.mjs');
|
|
1978
1978
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1979
1979
|
return;
|
|
1980
1980
|
}
|
|
@@ -1986,7 +1986,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
return void 0;
|
|
1988
1988
|
};
|
|
1989
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1989
|
+
const { wiseLeaveMeetingCli } = await import('./commands-slA1eX13.mjs');
|
|
1990
1990
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1991
1991
|
return;
|
|
1992
1992
|
}
|
|
@@ -2010,7 +2010,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
2012
|
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(" ");
|
|
2013
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
2013
|
+
const { wiseAnnounceCli } = await import('./commands-slA1eX13.mjs');
|
|
2014
2014
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
2015
2015
|
return;
|
|
2016
2016
|
}
|
|
@@ -2022,7 +2022,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
return void 0;
|
|
2024
2024
|
};
|
|
2025
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
2025
|
+
const { wiseMeetingsCli } = await import('./commands-slA1eX13.mjs');
|
|
2026
2026
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
2027
2027
|
return;
|
|
2028
2028
|
}
|
|
@@ -2073,7 +2073,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
2073
2073
|
return;
|
|
2074
2074
|
}
|
|
2075
2075
|
const authArgs = rest.slice(1);
|
|
2076
|
-
const mod = await import('./auth-
|
|
2076
|
+
const mod = await import('./auth-DrLE8Yp-.mjs');
|
|
2077
2077
|
let action;
|
|
2078
2078
|
try {
|
|
2079
2079
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -2083,7 +2083,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
2083
2083
|
return;
|
|
2084
2084
|
}
|
|
2085
2085
|
if (action) {
|
|
2086
|
-
const { updateEnvFile } = await import('./run-
|
|
2086
|
+
const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
|
|
2087
2087
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
2088
2088
|
updateEnvFile(updates);
|
|
2089
2089
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -2097,7 +2097,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
2097
2097
|
}
|
|
2098
2098
|
async function handleDaemonAuthCommand(argv) {
|
|
2099
2099
|
const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
|
|
2100
|
-
const mod = await import('./run-
|
|
2100
|
+
const mod = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
|
|
2101
2101
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
2102
2102
|
console.log(`
|
|
2103
2103
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2171,8 +2171,8 @@ one step: --use-hypha-proxy / --use-claude-login / --anthropic-base-url URL --an
|
|
|
2171
2171
|
}
|
|
2172
2172
|
async function handleDaemonCodexAuthCommand(argv) {
|
|
2173
2173
|
const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
|
|
2174
|
-
const { updateEnvFile } = await import('./run-
|
|
2175
|
-
const { resolveCodexProvider } = await import('./run-
|
|
2174
|
+
const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
|
|
2175
|
+
const { resolveCodexProvider } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ar; });
|
|
2176
2176
|
const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
|
|
2177
2177
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
2178
2178
|
console.log(`
|
|
@@ -2258,8 +2258,8 @@ The generic LLM_API_BASE / LLM_API_KEY / LLM_MODEL env vars are also honored if
|
|
|
2258
2258
|
}
|
|
2259
2259
|
async function handleDaemonKimiAuthCommand(argv) {
|
|
2260
2260
|
const sub = wantsHelp(argv) ? "--help" : (argv[0] || "status").toLowerCase();
|
|
2261
|
-
const { updateEnvFile } = await import('./run-
|
|
2262
|
-
const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-
|
|
2261
|
+
const { updateEnvFile } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aq; });
|
|
2262
|
+
const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.az; });
|
|
2263
2263
|
const redact = (k) => k && k.length > 10 ? `${k.slice(0, 6)}\u2026${k.slice(-4)}` : k ? "***" : "(unset)";
|
|
2264
2264
|
const PRESETS = {
|
|
2265
2265
|
"use-moonshot": { provider: "moonshotai", base: "https://api.moonshot.ai/v1", label: "Moonshot AI (moonshotai)" },
|
|
@@ -2622,7 +2622,7 @@ Examples:
|
|
|
2622
2622
|
async function printSkillsHelp() {
|
|
2623
2623
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2624
2624
|
try {
|
|
2625
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2625
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.aB; });
|
|
2626
2626
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2627
2627
|
} catch {
|
|
2628
2628
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -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 { f as resolveProjectRoot, n as searchIssues, l as listIssues, m as isPendingIssue, i as resumeIssue, p as pauseIssue, j as addComment, u as updateIssue, h as getIssue, o as isVisibleTo, H as summarize, k as addIssue } from './run-
|
|
4
|
+
import { f as flushAndExit } from './cli-xMKB7O8k.mjs';
|
|
5
|
+
import { f as resolveProjectRoot, n as searchIssues, l as listIssues, m as isPendingIssue, i as resumeIssue, p as pauseIssue, j as addComment, u as updateIssue, h as getIssue, o as isVisibleTo, H as summarize, k as addIssue } from './run-CKLatoxa.mjs';
|
|
6
6
|
import './serviceManager-hlOVxkhW.mjs';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-slA1eX13.mjs';
|
|
4
4
|
import { execFileSync } from 'node:child_process';
|
|
5
|
-
import { ag as withFileLock, u as updateIssue, j as addComment, k as addIssue, e as shortId } from './run-
|
|
6
|
-
import { w as wantsHelp } from './cli-
|
|
5
|
+
import { ag as withFileLock, u as updateIssue, j as addComment, k as addIssue, e as shortId } from './run-CKLatoxa.mjs';
|
|
6
|
+
import { w as wantsHelp } from './cli-xMKB7O8k.mjs';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'os';
|
|
9
9
|
import 'fs/promises';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { f as resolveProjectRoot, I as workflowSteps, x as setWorkflowEnabled, D as isWorkflowEnabled, y as removeWorkflow, v as getWorkflow, C as listWorkflows, A as saveWorkflow, B as rawWorkflow } from './run-
|
|
3
|
-
import { w as wantsHelp } from './cli-
|
|
2
|
+
import { f as resolveProjectRoot, I as workflowSteps, x as setWorkflowEnabled, D as isWorkflowEnabled, y as removeWorkflow, v as getWorkflow, C as listWorkflows, A as saveWorkflow, B as rawWorkflow } from './run-CKLatoxa.mjs';
|
|
3
|
+
import { w as wantsHelp } from './cli-xMKB7O8k.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'fs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os from 'os';
|
|
2
2
|
import fs__default from 'fs';
|
|
3
3
|
import { resolve, join, relative } from 'path';
|
|
4
|
-
import { Q as parseFrontmatter, T as getSkillsServer, U as getSkillsWorkspaceName, V as getSkillsCollectionName, W as fetchWithTimeout, X as searchSkills, Y as SKILLS_DIR, Z as getSkillInfo, _ as downloadSkillFile, $ as listSkillFiles } from './run-
|
|
4
|
+
import { Q as parseFrontmatter, T as getSkillsServer, U as getSkillsWorkspaceName, V as getSkillsCollectionName, W as fetchWithTimeout, X as searchSkills, Y as SKILLS_DIR, Z as getSkillInfo, _ as downloadSkillFile, $ as listSkillFiles } from './run-CKLatoxa.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectAndResolveSession } from './commands-
|
|
2
|
-
import { w as wantsHelp } from './cli-
|
|
1
|
+
import { connectAndResolveSession } from './commands-slA1eX13.mjs';
|
|
2
|
+
import { w as wantsHelp } from './cli-xMKB7O8k.mjs';
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'node:child_process';
|
|
5
5
|
import 'node:path';
|
|
6
6
|
import 'node:os';
|
|
7
|
-
import './run-
|
|
7
|
+
import './run-CKLatoxa.mjs';
|
|
8
8
|
import 'os';
|
|
9
9
|
import 'fs/promises';
|
|
10
10
|
import 'fs';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { writeFileSync, readFileSync } from 'fs';
|
|
2
2
|
import { resolve } from 'path';
|
|
3
|
-
import { connectAndGetMachine } from './commands-
|
|
4
|
-
import { w as wantsHelp } from './cli-
|
|
3
|
+
import { connectAndGetMachine } from './commands-slA1eX13.mjs';
|
|
4
|
+
import { w as wantsHelp } from './cli-xMKB7O8k.mjs';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:child_process';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'node:os';
|
|
9
|
-
import './run-
|
|
9
|
+
import './run-CKLatoxa.mjs';
|
|
10
10
|
import 'os';
|
|
11
11
|
import 'fs/promises';
|
|
12
12
|
import 'url';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as path from 'path';
|
|
2
|
-
import { w as wantsHelp } from './cli-
|
|
3
|
-
import './run-
|
|
2
|
+
import { w as wantsHelp } from './cli-xMKB7O8k.mjs';
|
|
3
|
+
import './run-CKLatoxa.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'fs';
|
|
@@ -83,7 +83,7 @@ async function serviceExpose(args) {
|
|
|
83
83
|
process.exit(1);
|
|
84
84
|
}
|
|
85
85
|
if (foreground) {
|
|
86
|
-
const { runFrpcTunnel } = await import('./run-
|
|
86
|
+
const { runFrpcTunnel } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ao; });
|
|
87
87
|
await runFrpcTunnel(name, ports, void 0, {
|
|
88
88
|
group,
|
|
89
89
|
groupKey,
|
|
@@ -93,7 +93,7 @@ async function serviceExpose(args) {
|
|
|
93
93
|
});
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
96
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
97
97
|
const { server, machine } = await connectAndGetMachine();
|
|
98
98
|
try {
|
|
99
99
|
const status = await machine.tunnelStart({
|
|
@@ -115,7 +115,7 @@ async function serviceExpose(args) {
|
|
|
115
115
|
console.log(` port ${port}: ${url}`);
|
|
116
116
|
}
|
|
117
117
|
if (process.env.SVAMP_SESSION_ID) {
|
|
118
|
-
const { autoAddSessionLink } = await import('./agentCommands-
|
|
118
|
+
const { autoAddSessionLink } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
119
119
|
let added = 0;
|
|
120
120
|
for (const [port, url] of urlEntries) {
|
|
121
121
|
const label = urlEntries.length > 1 ? `${name}:${port}` : name;
|
|
@@ -151,8 +151,8 @@ async function serviceServe(args) {
|
|
|
151
151
|
const resolvedDir = path.resolve(directory);
|
|
152
152
|
console.log(`Serving ${resolvedDir}`);
|
|
153
153
|
const http = await import('http');
|
|
154
|
-
const { serveStaticMount } = await import('./run-
|
|
155
|
-
const { getFreePort } = await import('./run-
|
|
154
|
+
const { serveStaticMount } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ap; });
|
|
155
|
+
const { getFreePort } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ao; });
|
|
156
156
|
const server = http.createServer((req, res) => {
|
|
157
157
|
const u = new URL(req.url || "/", "http://127.0.0.1");
|
|
158
158
|
let rel = u.pathname;
|
|
@@ -175,7 +175,7 @@ async function serviceServe(args) {
|
|
|
175
175
|
resolve(18080);
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
|
-
const { runFrpcTunnel } = await import('./run-
|
|
178
|
+
const { runFrpcTunnel } = await import('./run-CKLatoxa.mjs').then(function (n) { return n.ao; });
|
|
179
179
|
void server;
|
|
180
180
|
await runFrpcTunnel(name, [servePort]);
|
|
181
181
|
} catch (err) {
|
|
@@ -185,7 +185,7 @@ async function serviceServe(args) {
|
|
|
185
185
|
}
|
|
186
186
|
async function serviceList(_args) {
|
|
187
187
|
try {
|
|
188
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
188
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
189
189
|
const { server, machine } = await connectAndGetMachine();
|
|
190
190
|
try {
|
|
191
191
|
const tunnels = await machine.tunnelList({});
|
|
@@ -225,11 +225,11 @@ async function serviceDelete(args) {
|
|
|
225
225
|
process.exit(1);
|
|
226
226
|
}
|
|
227
227
|
try {
|
|
228
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
228
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
229
229
|
const { server, machine } = await connectAndGetMachine();
|
|
230
230
|
try {
|
|
231
231
|
await machine.tunnelStop({ name });
|
|
232
|
-
const { removeSessionLinkByService } = await import('./agentCommands-
|
|
232
|
+
const { removeSessionLinkByService } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
233
233
|
removeSessionLinkByService("tunnel", name);
|
|
234
234
|
console.log(`Stopped tunnel '${name}'.`);
|
|
235
235
|
} catch (err) {
|
|
@@ -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 { a1 as formatHandle, a2 as normalizeAllowedUser, a3 as loadSecurityContextConfig, a4 as resolveSecurityContext, a5 as buildSecurityContextFromFlags, a6 as mergeSecurityContexts, c as connectToHypha, a7 as buildSessionShareUrl, a8 as computeOutboundHop, e as shortId, a9 as registerAwaitingReply, aa as buildMachineShareUrl, ab as parseHandle, ac as handleMatchesMetadata } from './run-
|
|
5
|
+
import { a1 as formatHandle, a2 as normalizeAllowedUser, a3 as loadSecurityContextConfig, a4 as resolveSecurityContext, a5 as buildSecurityContextFromFlags, a6 as mergeSecurityContexts, c as connectToHypha, a7 as buildSessionShareUrl, a8 as computeOutboundHop, e as shortId, a9 as registerAwaitingReply, aa as buildMachineShareUrl, ab as parseHandle, ac as handleMatchesMetadata } from './run-CKLatoxa.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
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 { ad as PINNED_CODEX_VERSION, c as connectToHypha } from './run-
|
|
4
|
+
import { ad as PINNED_CODEX_VERSION, c as connectToHypha } from './run-CKLatoxa.mjs';
|
|
5
5
|
import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-BkZfX5pW.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a0 as resolveModel, ah as describeMisconfiguration, ai as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { a0 as resolveModel, ah as describeMisconfiguration, ai as buildMachineDeps } from './run-CKLatoxa.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-CFbMRvzr.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-CKLatoxa.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, J as parseJwtEmail } from './run-
|
|
1
|
+
import { c as connectToHypha, S as SharingNotificationSync, J as parseJwtEmail } from './run-CKLatoxa.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 { f as resolveProjectRoot, q as getRun, t as listRuns, v as getWorkflow, w as runWorkflow, x as setWorkflowEnabled, y as removeWorkflow, z as validateWorkflowName, A as saveWorkflow, B as rawWorkflow, C as listWorkflows } from './run-
|
|
1
|
+
import { f as resolveProjectRoot, q as getRun, t as listRuns, v as getWorkflow, w as runWorkflow, x as setWorkflowEnabled, y as removeWorkflow, z as validateWorkflowName, A as saveWorkflow, B as rawWorkflow, C as listWorkflows } from './run-CKLatoxa.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as resolveProjectRoot, u as updateIssue, h as getIssue, i as resumeIssue, p as pauseIssue, j as addComment, k as addIssue, l as listIssues, m as isPendingIssue, n as searchIssues, o as isVisibleTo } from './run-
|
|
1
|
+
import { f as resolveProjectRoot, u as updateIssue, h as getIssue, i as resumeIssue, p as pauseIssue, j as addComment, k as addIssue, l as listIssues, m as isPendingIssue, n as searchIssues, o as isVisibleTo } from './run-CKLatoxa.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -3795,9 +3795,10 @@ a{color:#0969da;text-decoration:none;font-weight:500}a:hover{text-decoration:und
|
|
|
3795
3795
|
}
|
|
3796
3796
|
}
|
|
3797
3797
|
const rootDir = target.cwd;
|
|
3798
|
+
const normRel = this.toSessionRelative(rootDir, m[2] || "");
|
|
3798
3799
|
if (method === "GET" || method === "HEAD") {
|
|
3799
3800
|
if (url.searchParams.get("list") === "1") {
|
|
3800
|
-
const lex = containedPath(rootDir,
|
|
3801
|
+
const lex = containedPath(rootDir, normRel);
|
|
3801
3802
|
if (!lex) {
|
|
3802
3803
|
deny(403, "Forbidden");
|
|
3803
3804
|
return;
|
|
@@ -3824,11 +3825,11 @@ a{color:#0969da;text-decoration:none;font-weight:500}a:hover{text-decoration:und
|
|
|
3824
3825
|
res.end(method === "HEAD" ? void 0 : JSON.stringify({ path: relPath, entries }));
|
|
3825
3826
|
return;
|
|
3826
3827
|
}
|
|
3827
|
-
serveStaticMount(req, res, { rootDir, relPath, mountUrlPrefix: "", browse: false});
|
|
3828
|
+
serveStaticMount(req, res, { rootDir, relPath: normRel ? `/${normRel}` : "/", mountUrlPrefix: "", browse: false});
|
|
3828
3829
|
return;
|
|
3829
3830
|
}
|
|
3830
3831
|
if (method === "PUT" || method === "DELETE") {
|
|
3831
|
-
const filePath = this.resolveContainedPath(rootDir,
|
|
3832
|
+
const filePath = this.resolveContainedPath(rootDir, normRel);
|
|
3832
3833
|
if (!filePath) {
|
|
3833
3834
|
deny(403, "Forbidden: path escapes session root");
|
|
3834
3835
|
return;
|
|
@@ -3890,6 +3891,27 @@ a{color:#0969da;text-decoration:none;font-weight:500}a:hover{text-decoration:und
|
|
|
3890
3891
|
}
|
|
3891
3892
|
deny(405, "Method not allowed");
|
|
3892
3893
|
}
|
|
3894
|
+
/**
|
|
3895
|
+
* #126 root-cause fix: the frontend builds gateway URLs from the file's ABSOLUTE path (the
|
|
3896
|
+
* session cwd + name), e.g. `/s/<id>/Users/me/proj/big.bin` for a file at
|
|
3897
|
+
* `/Users/me/proj/big.bin` in a session whose cwd is `/Users/me/proj`. A URL path can't carry
|
|
3898
|
+
* the leading slash, so a naive join against cwd DOUBLE-NESTS it
|
|
3899
|
+
* (`/Users/me/proj/Users/me/proj/big.bin`) — the file uploads with a 201 but lands in the wrong
|
|
3900
|
+
* place (and downloads 404). The RPC path never hit this because Node's `resolve(cwd, absPath)`
|
|
3901
|
+
* returns the absolute path as-is. Mirror that semantics here: reconstruct the remainder as an
|
|
3902
|
+
* absolute path; if it IS the cwd or lives under it, the caller meant an absolute path — return
|
|
3903
|
+
* it relative to cwd. Otherwise it's already cwd-relative. Returns a cwd-relative path with no
|
|
3904
|
+
* leading slash (containment is still enforced downstream by `containedPath`/`resolveContainedPath`).
|
|
3905
|
+
*/
|
|
3906
|
+
toSessionRelative(rootDir, remainder) {
|
|
3907
|
+
const rel = (remainder || "").replace(/^\/+/, "");
|
|
3908
|
+
if (!rel) return "";
|
|
3909
|
+
const base = path.resolve(rootDir);
|
|
3910
|
+
const asAbsolute = path.resolve("/", rel);
|
|
3911
|
+
if (asAbsolute === base) return "";
|
|
3912
|
+
if (asAbsolute.startsWith(base + path.sep)) return asAbsolute.slice(base.length + 1);
|
|
3913
|
+
return rel;
|
|
3914
|
+
}
|
|
3893
3915
|
/**
|
|
3894
3916
|
* #126: resolve a session-relative path against `rootDir` with lexical + symlink containment
|
|
3895
3917
|
* (mirrors the static PUT handler's resolveContained). Allows a not-yet-existing target (for
|
|
@@ -7994,7 +8016,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
7994
8016
|
}
|
|
7995
8017
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
7996
8018
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
7997
|
-
const { toolsForRole } = await import('./sideband-
|
|
8019
|
+
const { toolsForRole } = await import('./sideband-CFbMRvzr.mjs');
|
|
7998
8020
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
7999
8021
|
return fmt(r2);
|
|
8000
8022
|
}
|
|
@@ -8099,7 +8121,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
8099
8121
|
return { ok: false, call_id: callId, status: "busy", error: "channel is busy (too many concurrent requests) \u2014 retry shortly" };
|
|
8100
8122
|
}
|
|
8101
8123
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
8102
|
-
const { queryCore } = await import('./commands-
|
|
8124
|
+
const { queryCore } = await import('./commands-slA1eX13.mjs');
|
|
8103
8125
|
const timeout = c.reply?.timeout_sec || 120;
|
|
8104
8126
|
let result;
|
|
8105
8127
|
try {
|
|
@@ -17796,6 +17818,7 @@ function nextFailuresAfterZombieProbeFailure(consecutiveHeartbeatFailures) {
|
|
|
17796
17818
|
return consecutiveHeartbeatFailures + 1;
|
|
17797
17819
|
}
|
|
17798
17820
|
function shouldForceReconnect(consecutiveHeartbeatFailures) {
|
|
17821
|
+
if (consecutiveHeartbeatFailures < 2) return false;
|
|
17799
17822
|
return consecutiveHeartbeatFailures === 2 || consecutiveHeartbeatFailures % 3 === 0;
|
|
17800
17823
|
}
|
|
17801
17824
|
|
|
@@ -19431,6 +19454,7 @@ async function startDaemon(options) {
|
|
|
19431
19454
|
};
|
|
19432
19455
|
});
|
|
19433
19456
|
let consecutiveHeartbeatFailures = 0;
|
|
19457
|
+
let lastReconnectAt = 0;
|
|
19434
19458
|
process.on("SIGINT", () => requestShutdown("os-signal"));
|
|
19435
19459
|
process.on("SIGTERM", () => requestShutdown("os-signal"));
|
|
19436
19460
|
process.on("SIGUSR1", () => requestShutdown("os-signal-cleanup"));
|
|
@@ -19627,7 +19651,7 @@ async function startDaemon(options) {
|
|
|
19627
19651
|
try {
|
|
19628
19652
|
const dir = loadSessionIndex()[sessionId]?.directory;
|
|
19629
19653
|
if (!dir) return;
|
|
19630
|
-
const { reconcileServiceLinks } = await import('./agentCommands-
|
|
19654
|
+
const { reconcileServiceLinks } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
19631
19655
|
const configPath = getSvampConfigPath(dir, sessionId);
|
|
19632
19656
|
const config = readSvampConfig(configPath);
|
|
19633
19657
|
const entries = Array.from(urls.entries());
|
|
@@ -19649,7 +19673,7 @@ async function startDaemon(options) {
|
|
|
19649
19673
|
try {
|
|
19650
19674
|
const dir = loadSessionIndex()[sessionId]?.directory;
|
|
19651
19675
|
if (!dir) return;
|
|
19652
|
-
const { reconcileServiceLinks } = await import('./agentCommands-
|
|
19676
|
+
const { reconcileServiceLinks } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
19653
19677
|
const configPath = getSvampConfigPath(dir, sessionId);
|
|
19654
19678
|
const config = readSvampConfig(configPath);
|
|
19655
19679
|
const incoming = [{
|
|
@@ -19670,7 +19694,7 @@ async function startDaemon(options) {
|
|
|
19670
19694
|
try {
|
|
19671
19695
|
const dir = loadSessionIndex()[sessionId]?.directory;
|
|
19672
19696
|
if (!dir) return;
|
|
19673
|
-
const { dropServiceLinks } = await import('./agentCommands-
|
|
19697
|
+
const { dropServiceLinks } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
19674
19698
|
const configPath = getSvampConfigPath(dir, sessionId);
|
|
19675
19699
|
const config = readSvampConfig(configPath);
|
|
19676
19700
|
if (dropServiceLinks(config, "serve", mountName)) {
|
|
@@ -22041,11 +22065,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
22041
22065
|
});
|
|
22042
22066
|
},
|
|
22043
22067
|
onIssue: async (params) => {
|
|
22044
|
-
const { issueRpc } = await import('./rpc-
|
|
22068
|
+
const { issueRpc } = await import('./rpc-CLoO6Z5Z.mjs');
|
|
22045
22069
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
22046
22070
|
},
|
|
22047
22071
|
onWorkflow: async (params) => {
|
|
22048
|
-
const { workflowRpc } = await import('./rpc-
|
|
22072
|
+
const { workflowRpc } = await import('./rpc-Bz9w7JV9.mjs');
|
|
22049
22073
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
22050
22074
|
},
|
|
22051
22075
|
onRipgrep: async (args, cwd) => {
|
|
@@ -22752,11 +22776,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
22752
22776
|
});
|
|
22753
22777
|
},
|
|
22754
22778
|
onIssue: async (params) => {
|
|
22755
|
-
const { issueRpc } = await import('./rpc-
|
|
22779
|
+
const { issueRpc } = await import('./rpc-CLoO6Z5Z.mjs');
|
|
22756
22780
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
22757
22781
|
},
|
|
22758
22782
|
onWorkflow: async (params) => {
|
|
22759
|
-
const { workflowRpc } = await import('./rpc-
|
|
22783
|
+
const { workflowRpc } = await import('./rpc-Bz9w7JV9.mjs');
|
|
22760
22784
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
22761
22785
|
},
|
|
22762
22786
|
onRipgrep: async (args, cwd) => {
|
|
@@ -24056,7 +24080,7 @@ ${oracle.output.trim().slice(0, 500)}`, "\u{1F501} Continuing loop");
|
|
|
24056
24080
|
const PING_TIMEOUT_MS = 15e3;
|
|
24057
24081
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
24058
24082
|
const RECONNECT_JITTER_MS = 2500;
|
|
24059
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
24083
|
+
const { WorkflowScheduler } = await import('./scheduler-Bs0nAlhs.mjs');
|
|
24060
24084
|
const workflowProjectRoots = () => {
|
|
24061
24085
|
const dirs = /* @__PURE__ */ new Set();
|
|
24062
24086
|
for (const s of pidToTrackedSession.values()) {
|
|
@@ -24096,7 +24120,6 @@ ${oracle.output.trim().slice(0, 500)}`, "\u{1F501} Continuing loop");
|
|
|
24096
24120
|
runOAuthAccountRefresh();
|
|
24097
24121
|
const backendAccountRefreshInterval = setInterval(runOAuthAccountRefresh, 5 * 6e4);
|
|
24098
24122
|
let heartbeatRunning = false;
|
|
24099
|
-
let lastReconnectAt = 0;
|
|
24100
24123
|
let heartbeatCycle = 0;
|
|
24101
24124
|
const heartbeatInterval = setInterval(async () => {
|
|
24102
24125
|
if (heartbeatRunning) return;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { aj as applyClaudeProxyEnv, ak as composeSessionId, al as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, am as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { aj as applyClaudeProxyEnv, ak as composeSessionId, al as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, am as generateHookSettings } from './run-CKLatoxa.mjs';
|
|
2
2
|
import os from 'node:os';
|
|
3
3
|
import { resolve, join } from 'node:path';
|
|
4
4
|
import { existsSync, readFileSync, watch } from 'node:fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as resolveProjectRoot, C as listWorkflows, D as isWorkflowEnabled, E as workflowSchedules, F as inZone, w as runWorkflow, G as cronMatches } from './run-
|
|
1
|
+
import { f as resolveProjectRoot, C as listWorkflows, D as isWorkflowEnabled, E as workflowSchedules, F as inZone, w as runWorkflow, G as cronMatches } from './run-CKLatoxa.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as path from 'path';
|
|
2
|
-
import { w as wantsHelp } from './cli-
|
|
3
|
-
import './run-
|
|
2
|
+
import { w as wantsHelp } from './cli-xMKB7O8k.mjs';
|
|
3
|
+
import './run-CKLatoxa.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'fs';
|
|
@@ -77,7 +77,7 @@ async function handleServeCommand() {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
async function serveAdd(args, machineId) {
|
|
80
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
80
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
81
81
|
const pos = positionalArgs(args);
|
|
82
82
|
const name = pos[0];
|
|
83
83
|
if (!name) {
|
|
@@ -110,7 +110,7 @@ async function serveAdd(args, machineId) {
|
|
|
110
110
|
}
|
|
111
111
|
if (sessionId && result?.url) {
|
|
112
112
|
try {
|
|
113
|
-
const { autoAddSessionLink } = await import('./agentCommands-
|
|
113
|
+
const { autoAddSessionLink } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
114
114
|
autoAddSessionLink(String(result.url), name, void 0, { kind: "serve", name });
|
|
115
115
|
} catch {
|
|
116
116
|
}
|
|
@@ -124,7 +124,7 @@ async function serveAdd(args, machineId) {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
async function serveApply(args, machineId) {
|
|
127
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
127
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
128
128
|
const fs = await import('fs');
|
|
129
129
|
const yaml = await import('yaml');
|
|
130
130
|
const file = positionalArgs(args)[0];
|
|
@@ -206,7 +206,7 @@ async function serveApply(args, machineId) {
|
|
|
206
206
|
console.log(`URL: ${result.url}`);
|
|
207
207
|
if (params.sessionId && result?.url) {
|
|
208
208
|
try {
|
|
209
|
-
const { autoAddSessionLink } = await import('./agentCommands-
|
|
209
|
+
const { autoAddSessionLink } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
210
210
|
const prevSession = process.env.SVAMP_SESSION_ID;
|
|
211
211
|
process.env.SVAMP_SESSION_ID = String(params.sessionId);
|
|
212
212
|
try {
|
|
@@ -227,7 +227,7 @@ async function serveApply(args, machineId) {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
async function serveRemove(args, machineId) {
|
|
230
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
230
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
231
231
|
const pos = positionalArgs(args);
|
|
232
232
|
const name = pos[0];
|
|
233
233
|
if (!name) {
|
|
@@ -237,7 +237,7 @@ async function serveRemove(args, machineId) {
|
|
|
237
237
|
const { machine, server } = await connectAndGetMachine(machineId);
|
|
238
238
|
try {
|
|
239
239
|
await machine.serveRemove({ name });
|
|
240
|
-
const { removeSessionLinkByService } = await import('./agentCommands-
|
|
240
|
+
const { removeSessionLinkByService } = await import('./agentCommands-Cve_0_8K.mjs');
|
|
241
241
|
removeSessionLinkByService("serve", name);
|
|
242
242
|
console.log(`Mount '${name}' removed.`);
|
|
243
243
|
} catch (err) {
|
|
@@ -249,7 +249,7 @@ async function serveRemove(args, machineId) {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
async function serveList(args, machineId) {
|
|
252
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
252
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
253
253
|
const all = hasFlag(args, "--all", "-a");
|
|
254
254
|
const json = hasFlag(args, "--json");
|
|
255
255
|
const sessionId = getFlag(args, "--session");
|
|
@@ -283,7 +283,7 @@ async function serveList(args, machineId) {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
async function serveInfo(machineId) {
|
|
286
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
286
|
+
const { connectAndGetMachine } = await import('./commands-slA1eX13.mjs');
|
|
287
287
|
const { machine, server } = await connectAndGetMachine(machineId);
|
|
288
288
|
try {
|
|
289
289
|
const info = await machine.serveInfo();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as READ_ONLY_TOOLS, M as loadMachineContext, N as buildMachineInstructions, O as machineToolsForRole, P as buildMachineTools } from './run-
|
|
1
|
+
import { R as READ_ONLY_TOOLS, M as loadMachineContext, N as buildMachineInstructions, O as machineToolsForRole, P as buildMachineTools } from './run-CKLatoxa.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|