svamp-cli 0.2.322 → 0.2.323
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-CnJSw_fJ.mjs → adminCommands-Bmgpks9U.mjs} +1 -1
- package/dist/{agentCommands-ri042RB5.mjs → agentCommands-CjbndvZ2.mjs} +5 -5
- package/dist/{auth-CvQD_JbA.mjs → auth-7A9m78i5.mjs} +1 -1
- package/dist/{cli-BPJoSvJ0.mjs → cli-C3GwCq0z.mjs} +76 -76
- package/dist/cli.mjs +2 -2
- package/dist/{commands-Db0PpuwO.mjs → commands-BARTdhcw.mjs} +3 -3
- package/dist/{commands-AOno1gcV.mjs → commands-C8im5Q2J.mjs} +1 -1
- package/dist/{commands-BxG6r6us.mjs → commands-CZLE29kn.mjs} +3 -3
- package/dist/{commands-DR8N0cmJ.mjs → commands-CygFvR0a.mjs} +3 -3
- package/dist/{commands-yuhNv9AR.mjs → commands-DLQwUjpD.mjs} +2 -2
- package/dist/{commands-BW_5joei.mjs → commands-DVvR4X4G.mjs} +2 -2
- package/dist/{commands-BWWAxC-g.mjs → commands-LMbH3V-v.mjs} +11 -11
- package/dist/{commands-D7iQqb-i.mjs → commands-gQM3K8Yf.mjs} +1 -1
- package/dist/{fleet--8tb1jX3.mjs → fleet-C68s3qVt.mjs} +1 -1
- package/dist/{headlessCli-COD8n9AD.mjs → headlessCli-0_H-JwW2.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{notifyCommands-DLo0ANDt.mjs → notifyCommands-r0r8eyxA.mjs} +1 -1
- package/dist/{package-DK43B5gu.mjs → package-BGIfEYpX.mjs} +1 -1
- package/dist/{rpc-JWRwb6oY.mjs → rpc-BosOiRY-.mjs} +1 -1
- package/dist/{rpc-DMlurOlf.mjs → rpc-DP4CiR0g.mjs} +1 -1
- package/dist/{run-BXDA0YFP.mjs → run-BiwqH1hw.mjs} +26 -12
- package/dist/{run-RYTtTBDy.mjs → run-DAo9Lw4D.mjs} +1 -1
- package/dist/{scheduler-CkYMjhum.mjs → scheduler-BN9GuvGN.mjs} +1 -1
- package/dist/{serveCommands-BX3D9l8T.mjs → serveCommands-C_E-RAiL.mjs} +10 -10
- package/dist/{sideband-CdXFW-wu.mjs → sideband-L0YNMJhj.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-BiwqH1hw.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-BiwqH1hw.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-BiwqH1hw.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-BiwqH1hw.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-BiwqH1hw.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-BiwqH1hw.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-LMbH3V-v.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-C_E-RAiL.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-CygFvR0a.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-CZLE29kn.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-DLQwUjpD.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-DVvR4X4G.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-BARTdhcw.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-r0r8eyxA.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-Bmgpks9U.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-Bmgpks9U.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-Bmgpks9U.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-r0r8eyxA.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-BGIfEYpX.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-DAo9Lw4D.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-BiwqH1hw.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-BiwqH1hw.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-BiwqH1hw.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-BiwqH1hw.mjs').then(function (n) { return n.au; });
|
|
569
|
+
const { GeminiTransport } = await import('./run-BiwqH1hw.mjs').then(function (n) { return n.ax; });
|
|
570
|
+
const { KimiTransport } = await import('./run-BiwqH1hw.mjs').then(function (n) { return n.ay; });
|
|
571
|
+
const { DefaultTransport } = await import('./run-BiwqH1hw.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-BiwqH1hw.mjs').then(function (n) { return n.aA; });
|
|
576
|
+
const { kimiSpawnEnv } = await import('./run-BiwqH1hw.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-CjbndvZ2.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-C8im5Q2J.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-C68s3qVt.mjs');
|
|
1206
1206
|
await fleetExec(command, { cwd });
|
|
1207
1207
|
} else {
|
|
1208
|
-
const { machineExec } = await import('./commands-
|
|
1208
|
+
const { machineExec } = await import('./commands-C8im5Q2J.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-C8im5Q2J.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-CjbndvZ2.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-C8im5Q2J.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-C68s3qVt.mjs');
|
|
1311
1311
|
await fleetStatus();
|
|
1312
1312
|
} else if (sub === "upgrade-claude") {
|
|
1313
|
-
const { fleetUpgradeClaude } = await import('./fleet
|
|
1313
|
+
const { fleetUpgradeClaude } = await import('./fleet-C68s3qVt.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-C68s3qVt.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-C68s3qVt.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-C68s3qVt.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-C68s3qVt.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-C68s3qVt.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-gQM3K8Yf.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-BiwqH1hw.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-BiwqH1hw.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-BiwqH1hw.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-BiwqH1hw.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-C8im5Q2J.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-0_H-JwW2.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-C8im5Q2J.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-7A9m78i5.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-BiwqH1hw.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-BiwqH1hw.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-BiwqH1hw.mjs').then(function (n) { return n.aq; });
|
|
2175
|
+
const { resolveCodexProvider } = await import('./run-BiwqH1hw.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-BiwqH1hw.mjs').then(function (n) { return n.aq; });
|
|
2262
|
+
const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-BiwqH1hw.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-BiwqH1hw.mjs').then(function (n) { return n.aB; });
|
|
2626
2626
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2627
2627
|
} catch {
|
|
2628
2628
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -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-C8im5Q2J.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-BiwqH1hw.mjs';
|
|
6
|
+
import { w as wantsHelp } from './cli-C3GwCq0z.mjs';
|
|
7
7
|
import 'node:os';
|
|
8
8
|
import 'os';
|
|
9
9
|
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 { 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-BiwqH1hw.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { connectAndResolveSession } from './commands-
|
|
2
|
-
import { w as wantsHelp } from './cli-
|
|
1
|
+
import { connectAndResolveSession } from './commands-C8im5Q2J.mjs';
|
|
2
|
+
import { w as wantsHelp } from './cli-C3GwCq0z.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-BiwqH1hw.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-C8im5Q2J.mjs';
|
|
4
|
+
import { w as wantsHelp } from './cli-C3GwCq0z.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-BiwqH1hw.mjs';
|
|
10
10
|
import 'os';
|
|
11
11
|
import 'fs/promises';
|
|
12
12
|
import 'url';
|
|
@@ -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-C3GwCq0z.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-BiwqH1hw.mjs';
|
|
6
6
|
import './serviceManager-hlOVxkhW.mjs';
|
|
7
7
|
import 'os';
|
|
8
8
|
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-BiwqH1hw.mjs';
|
|
3
|
+
import { w as wantsHelp } from './cli-C3GwCq0z.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
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-C3GwCq0z.mjs';
|
|
3
|
+
import './run-BiwqH1hw.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-BiwqH1hw.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-C8im5Q2J.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-CjbndvZ2.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-BiwqH1hw.mjs').then(function (n) { return n.ap; });
|
|
155
|
+
const { getFreePort } = await import('./run-BiwqH1hw.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-BiwqH1hw.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-C8im5Q2J.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-C8im5Q2J.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-CjbndvZ2.mjs');
|
|
233
233
|
removeSessionLinkByService("tunnel", name);
|
|
234
234
|
console.log(`Stopped tunnel '${name}'.`);
|
|
235
235
|
} catch (err) {
|
|
@@ -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-BiwqH1hw.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -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-BiwqH1hw.mjs';
|
|
5
5
|
import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-C8CmQv3y.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-BiwqH1hw.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-L0YNMJhj.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-BiwqH1hw.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-BiwqH1hw.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, 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-BiwqH1hw.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -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-BiwqH1hw.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -2408,6 +2408,7 @@ function serveStaticMount(req, res, opts) {
|
|
|
2408
2408
|
const { rootDir, relPath, mountUrlPrefix } = opts;
|
|
2409
2409
|
const browse = opts.browse !== false;
|
|
2410
2410
|
const attachment = opts.attachment === true;
|
|
2411
|
+
const allowHidden = opts.allowHidden === true;
|
|
2411
2412
|
const method = (req.method || "GET").toUpperCase();
|
|
2412
2413
|
if (method === "OPTIONS") {
|
|
2413
2414
|
res.writeHead(204, CORS);
|
|
@@ -2431,7 +2432,7 @@ function serveStaticMount(req, res, opts) {
|
|
|
2431
2432
|
sendFile(req, res, rootDir, rootStat, attachment);
|
|
2432
2433
|
return;
|
|
2433
2434
|
}
|
|
2434
|
-
if (hasBlockedDotSegment(relPath)) {
|
|
2435
|
+
if (!allowHidden && hasBlockedDotSegment(relPath)) {
|
|
2435
2436
|
res.writeHead(404, CORS);
|
|
2436
2437
|
res.end("Not Found");
|
|
2437
2438
|
return;
|
|
@@ -3838,7 +3839,7 @@ a{color:#0969da;text-decoration:none;font-weight:500}a:hover{text-decoration:und
|
|
|
3838
3839
|
return;
|
|
3839
3840
|
}
|
|
3840
3841
|
const asAttachment = url.searchParams.get("download") === "1";
|
|
3841
|
-
serveStaticMount(req, res, { rootDir, relPath: normRel ? `/${normRel}` : "/", mountUrlPrefix: "", browse: false, attachment: asAttachment});
|
|
3842
|
+
serveStaticMount(req, res, { rootDir, relPath: normRel ? `/${normRel}` : "/", mountUrlPrefix: "", browse: false, attachment: asAttachment, allowHidden: true});
|
|
3842
3843
|
return;
|
|
3843
3844
|
}
|
|
3844
3845
|
if (method === "PUT" || method === "DELETE") {
|
|
@@ -8029,7 +8030,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
8029
8030
|
}
|
|
8030
8031
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
8031
8032
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
8032
|
-
const { toolsForRole } = await import('./sideband-
|
|
8033
|
+
const { toolsForRole } = await import('./sideband-L0YNMJhj.mjs');
|
|
8033
8034
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
8034
8035
|
return fmt(r2);
|
|
8035
8036
|
}
|
|
@@ -8134,7 +8135,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
8134
8135
|
return { ok: false, call_id: callId, status: "busy", error: "channel is busy (too many concurrent requests) \u2014 retry shortly" };
|
|
8135
8136
|
}
|
|
8136
8137
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
8137
|
-
const { queryCore } = await import('./commands-
|
|
8138
|
+
const { queryCore } = await import('./commands-C8im5Q2J.mjs');
|
|
8138
8139
|
const timeout = c.reply?.timeout_sec || 120;
|
|
8139
8140
|
let result;
|
|
8140
8141
|
try {
|
|
@@ -10448,17 +10449,29 @@ function createSessionStore(server, sessionId, initialMetadata, initialAgentStat
|
|
|
10448
10449
|
return { ...lastActivity, sessionId, pendingPermissions };
|
|
10449
10450
|
},
|
|
10450
10451
|
// ── File Operations (optional, admin-only) ──
|
|
10452
|
+
// #0965: file BYTES now travel over the HTTP files-gateway (the always-on frp tunnel,
|
|
10453
|
+
// GET/HEAD/PUT/DELETE + ?list=1 in serveManager), NOT this hypha-rpc control WebSocket. A
|
|
10454
|
+
// large base64 body over RPC died on any WS blip and starved the session heartbeat. So
|
|
10455
|
+
// `writeFile`, `writeFileChunk` and `listDirectory` below are DEPRECATED — no current
|
|
10456
|
+
// frontend calls them; they're retained only so a cached/stale PWA build still has a
|
|
10457
|
+
// working handler (there is no client-version guard). EXCEPTIONS that stay first-class:
|
|
10458
|
+
// • `readFile` — control-plane, NOT file transfer: the CLI `loop status` and the
|
|
10459
|
+
// frontend `getSessionLoopStatus` read small `.svamp/<id>/loop/*.json` files through
|
|
10460
|
+
// it. Keeping loop status off the file tunnel avoids coupling the loop UI to it.
|
|
10461
|
+
// • `filesEndpoint` — resolves the gateway URL the frontend uses for all of the above.
|
|
10451
10462
|
readFile: async (path, context) => {
|
|
10452
10463
|
authorizeRequest(context, metadata.sharing, "admin");
|
|
10453
10464
|
if (!callbacks.onReadFile) throw new Error("readFile not supported");
|
|
10454
10465
|
return await callbacks.onReadFile(path);
|
|
10455
10466
|
},
|
|
10467
|
+
/** @deprecated #0965 — use the HTTP files-gateway (PUT). Retained for cached-PWA skew only. */
|
|
10456
10468
|
writeFile: async (path, content, context) => {
|
|
10457
10469
|
authorizeRequest(context, metadata.sharing, "admin");
|
|
10458
10470
|
if (!callbacks.onWriteFile) throw new Error("writeFile not supported");
|
|
10459
10471
|
await callbacks.onWriteFile(path, content);
|
|
10460
10472
|
return { success: true };
|
|
10461
10473
|
},
|
|
10474
|
+
/** @deprecated #0965 — superseded by the HTTP files-gateway (PUT). Retained for cached-PWA skew only. */
|
|
10462
10475
|
writeFileChunk: async (path, content, uploadId, chunkIndex, totalChunks, isLast, context) => {
|
|
10463
10476
|
authorizeRequest(context, metadata.sharing, "admin");
|
|
10464
10477
|
if (!callbacks.onWriteFileChunk) throw new Error("writeFileChunk not supported");
|
|
@@ -10472,6 +10485,7 @@ function createSessionStore(server, sessionId, initialMetadata, initialAgentStat
|
|
|
10472
10485
|
authorizeRequest(context, metadata.sharing, "admin");
|
|
10473
10486
|
return { url: callbacks.onFilesEndpoint?.() ?? null };
|
|
10474
10487
|
},
|
|
10488
|
+
/** @deprecated #0965 — use the HTTP files-gateway (GET ?list=1). Retained for cached-PWA skew only. */
|
|
10475
10489
|
listDirectory: async (path, context) => {
|
|
10476
10490
|
authorizeRequest(context, metadata.sharing, "admin");
|
|
10477
10491
|
if (!callbacks.onListDirectory) throw new Error("listDirectory not supported");
|
|
@@ -19666,7 +19680,7 @@ async function startDaemon(options) {
|
|
|
19666
19680
|
try {
|
|
19667
19681
|
const dir = loadSessionIndex()[sessionId]?.directory;
|
|
19668
19682
|
if (!dir) return;
|
|
19669
|
-
const { reconcileServiceLinks } = await import('./agentCommands-
|
|
19683
|
+
const { reconcileServiceLinks } = await import('./agentCommands-CjbndvZ2.mjs');
|
|
19670
19684
|
const configPath = getSvampConfigPath(dir, sessionId);
|
|
19671
19685
|
const config = readSvampConfig(configPath);
|
|
19672
19686
|
const entries = Array.from(urls.entries());
|
|
@@ -19688,7 +19702,7 @@ async function startDaemon(options) {
|
|
|
19688
19702
|
try {
|
|
19689
19703
|
const dir = loadSessionIndex()[sessionId]?.directory;
|
|
19690
19704
|
if (!dir) return;
|
|
19691
|
-
const { reconcileServiceLinks } = await import('./agentCommands-
|
|
19705
|
+
const { reconcileServiceLinks } = await import('./agentCommands-CjbndvZ2.mjs');
|
|
19692
19706
|
const configPath = getSvampConfigPath(dir, sessionId);
|
|
19693
19707
|
const config = readSvampConfig(configPath);
|
|
19694
19708
|
const incoming = [{
|
|
@@ -19709,7 +19723,7 @@ async function startDaemon(options) {
|
|
|
19709
19723
|
try {
|
|
19710
19724
|
const dir = loadSessionIndex()[sessionId]?.directory;
|
|
19711
19725
|
if (!dir) return;
|
|
19712
|
-
const { dropServiceLinks } = await import('./agentCommands-
|
|
19726
|
+
const { dropServiceLinks } = await import('./agentCommands-CjbndvZ2.mjs');
|
|
19713
19727
|
const configPath = getSvampConfigPath(dir, sessionId);
|
|
19714
19728
|
const config = readSvampConfig(configPath);
|
|
19715
19729
|
if (dropServiceLinks(config, "serve", mountName)) {
|
|
@@ -22082,11 +22096,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
22082
22096
|
});
|
|
22083
22097
|
},
|
|
22084
22098
|
onIssue: async (params) => {
|
|
22085
|
-
const { issueRpc } = await import('./rpc-
|
|
22099
|
+
const { issueRpc } = await import('./rpc-BosOiRY-.mjs');
|
|
22086
22100
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
22087
22101
|
},
|
|
22088
22102
|
onWorkflow: async (params) => {
|
|
22089
|
-
const { workflowRpc } = await import('./rpc-
|
|
22103
|
+
const { workflowRpc } = await import('./rpc-DP4CiR0g.mjs');
|
|
22090
22104
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
22091
22105
|
},
|
|
22092
22106
|
onRipgrep: async (args, cwd) => {
|
|
@@ -22793,11 +22807,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
22793
22807
|
});
|
|
22794
22808
|
},
|
|
22795
22809
|
onIssue: async (params) => {
|
|
22796
|
-
const { issueRpc } = await import('./rpc-
|
|
22810
|
+
const { issueRpc } = await import('./rpc-BosOiRY-.mjs');
|
|
22797
22811
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
22798
22812
|
},
|
|
22799
22813
|
onWorkflow: async (params) => {
|
|
22800
|
-
const { workflowRpc } = await import('./rpc-
|
|
22814
|
+
const { workflowRpc } = await import('./rpc-DP4CiR0g.mjs');
|
|
22801
22815
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
22802
22816
|
},
|
|
22803
22817
|
onRipgrep: async (args, cwd) => {
|
|
@@ -24098,7 +24112,7 @@ ${oracle.output.trim().slice(0, 500)}`, "\u{1F501} Continuing loop");
|
|
|
24098
24112
|
const PING_TIMEOUT_MS = 15e3;
|
|
24099
24113
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
24100
24114
|
const RECONNECT_JITTER_MS = 2500;
|
|
24101
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
24115
|
+
const { WorkflowScheduler } = await import('./scheduler-BN9GuvGN.mjs');
|
|
24102
24116
|
const workflowProjectRoots = () => {
|
|
24103
24117
|
const dirs = /* @__PURE__ */ new Set();
|
|
24104
24118
|
for (const s of pidToTrackedSession.values()) {
|
|
@@ -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-BiwqH1hw.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-BiwqH1hw.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-C3GwCq0z.mjs';
|
|
3
|
+
import './run-BiwqH1hw.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-C8im5Q2J.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-CjbndvZ2.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-C8im5Q2J.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-CjbndvZ2.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-C8im5Q2J.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-CjbndvZ2.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-C8im5Q2J.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-C8im5Q2J.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-BiwqH1hw.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|