svamp-cli 0.2.323 → 0.2.324
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-Bmgpks9U.mjs → adminCommands-CHE1wq5m.mjs} +1 -1
- package/dist/{agentCommands-CjbndvZ2.mjs → agentCommands-D7CV6DKL.mjs} +5 -5
- package/dist/{auth-7A9m78i5.mjs → auth-BfimMIpL.mjs} +1 -1
- package/dist/{cli-C3GwCq0z.mjs → cli-Dv0vM2P7.mjs} +82 -77
- package/dist/cli.mjs +2 -2
- package/dist/{commands-LMbH3V-v.mjs → commands-4hjEGB-I.mjs} +11 -11
- package/dist/{commands-DLQwUjpD.mjs → commands-BA4LVlQW.mjs} +2 -2
- package/dist/{commands-CZLE29kn.mjs → commands-BQ7UFowe.mjs} +3 -3
- package/dist/{commands-BARTdhcw.mjs → commands-CQK2nD3o.mjs} +7 -4
- package/dist/{commands-DVvR4X4G.mjs → commands-CdbvHh2p.mjs} +2 -2
- package/dist/{commands-CygFvR0a.mjs → commands-CuyCq5eZ.mjs} +3 -3
- package/dist/{commands-C8im5Q2J.mjs → commands-GRfwAHgR.mjs} +17 -5
- package/dist/{commands-gQM3K8Yf.mjs → commands-jaaQooYW.mjs} +1 -1
- package/dist/{fleet-C68s3qVt.mjs → fleet-CSh3MUcM.mjs} +3 -3
- package/dist/{headlessCli-0_H-JwW2.mjs → headlessCli-Zl5Yu4CL.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{notifyCommands-r0r8eyxA.mjs → notifyCommands-BQZXhfLt.mjs} +1 -1
- package/dist/{package-BGIfEYpX.mjs → package-DgboZg2o.mjs} +2 -2
- package/dist/{pinnedClaudeCode-C8CmQv3y.mjs → pinnedClaudeCode-8SZDu7O-.mjs} +1 -1
- package/dist/{rpc-BosOiRY-.mjs → rpc-BIzMNjqC.mjs} +1 -1
- package/dist/{rpc-DP4CiR0g.mjs → rpc-C1KIoUyz.mjs} +1 -1
- package/dist/{run-BiwqH1hw.mjs → run-CEp9YpUZ.mjs} +334 -53
- package/dist/{run-DAo9Lw4D.mjs → run-DKAROgSg.mjs} +1 -1
- package/dist/{scheduler-BN9GuvGN.mjs → scheduler-DIYulmdV.mjs} +1 -1
- package/dist/{serveCommands-C_E-RAiL.mjs → serveCommands-Bq5Cw3mE.mjs} +10 -10
- package/dist/{sideband-L0YNMJhj.mjs → sideband-C83128hf.mjs} +1 -1
- package/package.json +2 -2
- package/dist/supervisorLock-DmfzJx7B.mjs +0 -159
|
@@ -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-CEp9YpUZ.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-CEp9YpUZ.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-CEp9YpUZ.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-CEp9YpUZ.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-CEp9YpUZ.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-CEp9YpUZ.mjs').then(function (n) { return n.aD; });
|
|
60
60
|
if (whenIdle && !force) {
|
|
61
61
|
if (mod.isDaemonAlive()) {
|
|
62
62
|
mod.writePendingRestart({ reason: "svamp daemon restart --when-idle" });
|
|
@@ -183,7 +183,7 @@ async function main() {
|
|
|
183
183
|
releaseSupervisorLock,
|
|
184
184
|
findOrphanedSyncPids,
|
|
185
185
|
killOrphanedSyncs
|
|
186
|
-
} = await import('./
|
|
186
|
+
} = await import('./run-CEp9YpUZ.mjs').then(function (n) { return n.aC; });
|
|
187
187
|
const supervisorPidFile = pathJoin(svampHome, "supervisor.pid");
|
|
188
188
|
const lock = acquireSupervisorLockWithRetry(supervisorPidFile, process.pid);
|
|
189
189
|
if (!lock.acquired) {
|
|
@@ -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-4hjEGB-I.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-Bq5Cw3mE.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-CuyCq5eZ.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-BQ7UFowe.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-BA4LVlQW.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-CdbvHh2p.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-CQK2nD3o.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-BQZXhfLt.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-CHE1wq5m.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-CHE1wq5m.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-CHE1wq5m.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-BQZXhfLt.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-DgboZg2o.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-DKAROgSg.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-CEp9YpUZ.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-CEp9YpUZ.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-CEp9YpUZ.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-CEp9YpUZ.mjs').then(function (n) { return n.au; });
|
|
569
|
+
const { GeminiTransport } = await import('./run-CEp9YpUZ.mjs').then(function (n) { return n.ax; });
|
|
570
|
+
const { KimiTransport } = await import('./run-CEp9YpUZ.mjs').then(function (n) { return n.ay; });
|
|
571
|
+
const { DefaultTransport } = await import('./run-CEp9YpUZ.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-CEp9YpUZ.mjs').then(function (n) { return n.aA; });
|
|
576
|
+
const { kimiSpawnEnv } = await import('./run-CEp9YpUZ.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-D7CV6DKL.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-GRfwAHgR.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-CSh3MUcM.mjs');
|
|
1206
1206
|
await fleetExec(command, { cwd });
|
|
1207
1207
|
} else {
|
|
1208
|
-
const { machineExec } = await import('./commands-
|
|
1208
|
+
const { machineExec } = await import('./commands-GRfwAHgR.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-GRfwAHgR.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-D7CV6DKL.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-GRfwAHgR.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-CSh3MUcM.mjs');
|
|
1311
1311
|
await fleetStatus();
|
|
1312
1312
|
} else if (sub === "upgrade-claude") {
|
|
1313
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1313
|
+
const { fleetUpgradeClaude } = await import('./fleet-CSh3MUcM.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-CSh3MUcM.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-CSh3MUcM.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-CSh3MUcM.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-CSh3MUcM.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-CSh3MUcM.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-jaaQooYW.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-CEp9YpUZ.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-CEp9YpUZ.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-CEp9YpUZ.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-CEp9YpUZ.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-GRfwAHgR.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-Zl5Yu4CL.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-GRfwAHgR.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-BfimMIpL.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-CEp9YpUZ.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-CEp9YpUZ.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-CEp9YpUZ.mjs').then(function (n) { return n.aq; });
|
|
2175
|
+
const { resolveCodexProvider } = await import('./run-CEp9YpUZ.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-CEp9YpUZ.mjs').then(function (n) { return n.aq; });
|
|
2262
|
+
const { resolveKimiProvider, buildKimiCatalogAddArgs, DEFAULT_KIMI_PROVIDER } = await import('./run-CEp9YpUZ.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)" },
|
|
@@ -2510,8 +2510,13 @@ ISOLATION & SHARING OPTIONS (for spawn):
|
|
|
2510
2510
|
--share <email> Share session with user (repeatable). Added users have full access; the legacy :role suffix is accepted but ignored.
|
|
2511
2511
|
--deny-network Block all network access
|
|
2512
2512
|
--deny-read <path> Deny reading path (repeatable)
|
|
2513
|
+
WARNING: NOT ENFORCED by any sandbox backend (#0878).
|
|
2513
2514
|
--allow-write <path> Allow writing path (repeatable)
|
|
2515
|
+
WARNING: NOT ENFORCED under docker/podman (#0878).
|
|
2514
2516
|
--allow-domain <domain> Allow network domain (repeatable)
|
|
2517
|
+
WARNING: NOT ENFORCED under docker/podman (#0878).
|
|
2518
|
+
(To actually restrict a shared session, narrow allowedDirectories in a
|
|
2519
|
+
--security-context file \u2014 see docs/sharing-and-security.md.)
|
|
2515
2520
|
|
|
2516
2521
|
MESSAGES OPTIONS:
|
|
2517
2522
|
--last N Show last N messages only
|
|
@@ -2622,7 +2627,7 @@ Examples:
|
|
|
2622
2627
|
async function printSkillsHelp() {
|
|
2623
2628
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2624
2629
|
try {
|
|
2625
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2630
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-CEp9YpUZ.mjs').then(function (n) { return n.aB; });
|
|
2626
2631
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2627
2632
|
} catch {
|
|
2628
2633
|
}
|
package/dist/cli.mjs
CHANGED