svamp-cli 0.2.215 → 0.2.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agentCommands-BnearkNa.mjs → agentCommands-B5_A0v5S.mjs} +56 -11
- package/dist/{auth-BT2CQbGt.mjs → auth-D0ffkw3A.mjs} +1 -1
- package/dist/cli.mjs +61 -61
- package/dist/{commands-BrZMsM8b.mjs → commands-1Ofwr8Di.mjs} +1 -1
- package/dist/{commands-C30mDtF5.mjs → commands-1Ws-HmEi.mjs} +1 -1
- package/dist/{commands-MCaPp1qw.mjs → commands-CFR0N4RU.mjs} +2 -2
- package/dist/{commands-aF3x_DZf.mjs → commands-DSZx_rjm.mjs} +16 -6
- package/dist/{commands-BgIeSgCZ.mjs → commands-Puejs3W5.mjs} +1 -1
- package/dist/{commands-JSRwFdGt.mjs → commands-jfrrhSy3.mjs} +2 -2
- package/dist/{commands-D0jKbEkt.mjs → commands-vqESQqxL.mjs} +1 -1
- package/dist/{fleet-Douz3pah.mjs → fleet-CYppFdxD.mjs} +1 -1
- package/dist/{frpc-Cr0yIyfT.mjs → frpc-DeX8aQ_l.mjs} +1 -1
- package/dist/{headlessCli-Csdops11.mjs → headlessCli-ChDW4umN.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-Ri1G2T05.mjs → package-Bip9kI2S.mjs} +2 -2
- package/dist/{rpc-CJOFba3R.mjs → rpc-DZ52w9mK.mjs} +1 -1
- package/dist/{rpc-BmcC3ZEQ.mjs → rpc-yjY1Xzy2.mjs} +1 -1
- package/dist/{run-DKwhmF59.mjs → run-BwWtbW0Z.mjs} +11 -11
- package/dist/{run-BRYevXO1.mjs → run-Dz1u52tX.mjs} +1 -1
- package/dist/{scheduler-DTSDCVAl.mjs → scheduler-Djn3TwcN.mjs} +1 -1
- package/dist/{serveCommands-cmHS-VcS.mjs → serveCommands-BVdf4a53.mjs} +5 -5
- package/dist/{serveManager-m8_Xs1e8.mjs → serveManager-BOhJh9Xk.mjs} +2 -2
- package/dist/{sideband-CoSbfl97.mjs → sideband-CIZBAlWR.mjs} +1 -1
- package/package.json +2 -2
|
@@ -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 { A as shortId } from './run-
|
|
5
|
+
import { A as shortId } from './run-BwWtbW0Z.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-BwWtbW0Z.mjs').then(function (n) { return n.a8; });
|
|
100
100
|
const desc = sanitizeDescription(description, 240);
|
|
101
101
|
if (!desc) {
|
|
102
102
|
console.error("Project description is empty.");
|
|
@@ -165,6 +165,50 @@ function labelFor(url, label) {
|
|
|
165
165
|
}
|
|
166
166
|
})();
|
|
167
167
|
}
|
|
168
|
+
function linkDedupKey(url) {
|
|
169
|
+
const u = (url || "").trim();
|
|
170
|
+
try {
|
|
171
|
+
const p = new URL(u);
|
|
172
|
+
p.hostname = p.hostname.toLowerCase();
|
|
173
|
+
let s = p.toString();
|
|
174
|
+
if (s.endsWith("/") && !p.search && !p.hash) s = s.slice(0, -1);
|
|
175
|
+
return s;
|
|
176
|
+
} catch {
|
|
177
|
+
return u.replace(/\/+$/, "");
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function upsertSessionLink(links, incoming) {
|
|
181
|
+
const url = (incoming.url || "").trim();
|
|
182
|
+
const key = linkDedupKey(url);
|
|
183
|
+
const next = links.slice();
|
|
184
|
+
const idx = next.findIndex((l) => linkDedupKey(l.url) === key);
|
|
185
|
+
const icon = incoming.icon?.trim();
|
|
186
|
+
if (idx >= 0) {
|
|
187
|
+
const existing = next[idx];
|
|
188
|
+
next[idx] = {
|
|
189
|
+
id: existing.id,
|
|
190
|
+
url,
|
|
191
|
+
label: labelFor(url, incoming.label),
|
|
192
|
+
...icon ? { icon } : existing.icon ? { icon: existing.icon } : {}
|
|
193
|
+
};
|
|
194
|
+
} else {
|
|
195
|
+
next.push({ id: shortLinkId(), url, label: labelFor(url, incoming.label), ...icon ? { icon } : {} });
|
|
196
|
+
}
|
|
197
|
+
return next;
|
|
198
|
+
}
|
|
199
|
+
function autoAddSessionLink(url, label, icon) {
|
|
200
|
+
const sessionId = process.env.SVAMP_SESSION_ID;
|
|
201
|
+
if (!sessionId || !url || !url.trim()) return false;
|
|
202
|
+
try {
|
|
203
|
+
const configPath = getConfigPath(sessionId);
|
|
204
|
+
const config = readConfig(configPath);
|
|
205
|
+
const next = upsertSessionLink(readSessionLinks(config), { url, label, icon });
|
|
206
|
+
writeSessionLinks(configPath, config, next);
|
|
207
|
+
return true;
|
|
208
|
+
} catch {
|
|
209
|
+
return false;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
168
212
|
function requireSessionId() {
|
|
169
213
|
const sessionId = process.env.SVAMP_SESSION_ID;
|
|
170
214
|
if (!sessionId) {
|
|
@@ -181,11 +225,12 @@ async function sessionLinkAdd(url, label, icon) {
|
|
|
181
225
|
}
|
|
182
226
|
const configPath = getConfigPath(sessionId);
|
|
183
227
|
const config = readConfig(configPath);
|
|
184
|
-
const
|
|
185
|
-
const
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
228
|
+
const before = readSessionLinks(config);
|
|
229
|
+
const next = upsertSessionLink(before, { url, label, icon });
|
|
230
|
+
writeSessionLinks(configPath, config, next);
|
|
231
|
+
const link = next.find((l) => linkDedupKey(l.url) === linkDedupKey(url));
|
|
232
|
+
const verb = next.length === before.length ? "updated" : "added";
|
|
233
|
+
console.log(`Launch Pad: ${verb} "${link.label}" \u2192 ${link.url} [${link.id}]`);
|
|
189
234
|
}
|
|
190
235
|
async function sessionLinkList() {
|
|
191
236
|
const sessionId = requireSessionId();
|
|
@@ -282,7 +327,7 @@ async function sessionBroadcast(action, args) {
|
|
|
282
327
|
console.log(`Broadcast sent: ${action}`);
|
|
283
328
|
}
|
|
284
329
|
async function connectToMachineService() {
|
|
285
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
330
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
286
331
|
return connectAndGetMachine();
|
|
287
332
|
}
|
|
288
333
|
function buildInboxMessage(args) {
|
|
@@ -360,7 +405,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
360
405
|
console.error("Message body is required.");
|
|
361
406
|
process.exit(1);
|
|
362
407
|
}
|
|
363
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
408
|
+
const { connectAndResolveSession } = await import('./commands-Puejs3W5.mjs');
|
|
364
409
|
let server;
|
|
365
410
|
try {
|
|
366
411
|
const { targetId, messageId } = await inboxSendCore(
|
|
@@ -414,7 +459,7 @@ async function inboxReply(messageId, body) {
|
|
|
414
459
|
console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
|
|
415
460
|
process.exit(1);
|
|
416
461
|
}
|
|
417
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
462
|
+
const { connectAndResolveSession } = await import('./commands-Puejs3W5.mjs');
|
|
418
463
|
const { server: localServer, machine: localMachine } = await connectToMachineService();
|
|
419
464
|
let localDisconnected = false;
|
|
420
465
|
const disconnectLocal = async () => {
|
|
@@ -478,4 +523,4 @@ async function machineNotify(message, level = "info") {
|
|
|
478
523
|
console.log(`Machine notification sent [${level}]: ${message}`);
|
|
479
524
|
}
|
|
480
525
|
|
|
481
|
-
export { buildInboxMessage, inboxList, inboxReply, inboxReplyCore, inboxSend, inboxSendCore, machineNotify, sessionBroadcast, sessionLinkAdd, sessionLinkList, sessionLinkRemove, sessionLinkUpdate, sessionNotify, sessionSetLink, sessionSetProjectDescription, sessionSetTitle };
|
|
526
|
+
export { autoAddSessionLink, buildInboxMessage, inboxList, inboxReply, inboxReplyCore, inboxSend, inboxSendCore, linkDedupKey, machineNotify, sessionBroadcast, sessionLinkAdd, sessionLinkList, sessionLinkRemove, sessionLinkUpdate, sessionNotify, sessionSetLink, sessionSetProjectDescription, sessionSetTitle, upsertSessionLink };
|
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-
|
|
1
|
+
import { e as clearStopMarker, f as stopMarkerExists, s as startDaemon, b as stopDaemon, d as daemonStatus } from './run-BwWtbW0Z.mjs';
|
|
2
2
|
import { ensureSupervisorViaServiceManager, LAUNCHD_LABEL } from './serviceManager-hlOVxkhW.mjs';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
|
@@ -34,7 +34,7 @@ const subcommand = args[0];
|
|
|
34
34
|
let daemonSubcommand = args[1];
|
|
35
35
|
async function main() {
|
|
36
36
|
try {
|
|
37
|
-
const { getLoadedConfig } = await import('./run-
|
|
37
|
+
const { getLoadedConfig } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ae; });
|
|
38
38
|
getLoadedConfig();
|
|
39
39
|
} catch {
|
|
40
40
|
}
|
|
@@ -51,7 +51,7 @@ async function main() {
|
|
|
51
51
|
console.error(`svamp daemon restart: ${err.message || err}`);
|
|
52
52
|
process.exit(1);
|
|
53
53
|
}
|
|
54
|
-
const { restartDaemon } = await import('./run-
|
|
54
|
+
const { restartDaemon } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ag; });
|
|
55
55
|
await restartDaemon();
|
|
56
56
|
process.exit(0);
|
|
57
57
|
}
|
|
@@ -344,7 +344,7 @@ async function main() {
|
|
|
344
344
|
console.error("svamp service: Service commands are not available in sandboxed sessions.");
|
|
345
345
|
process.exit(1);
|
|
346
346
|
}
|
|
347
|
-
const { handleServiceCommand } = await import('./commands-
|
|
347
|
+
const { handleServiceCommand } = await import('./commands-DSZx_rjm.mjs');
|
|
348
348
|
await handleServiceCommand();
|
|
349
349
|
} else if (subcommand === "serve") {
|
|
350
350
|
const { isSandboxed: isSandboxedServe } = await import('./sandboxDetect-DNTcbgWD.mjs');
|
|
@@ -352,7 +352,7 @@ async function main() {
|
|
|
352
352
|
console.error("svamp serve: Serve commands are not available in sandboxed sessions.");
|
|
353
353
|
process.exit(1);
|
|
354
354
|
}
|
|
355
|
-
const { handleServeCommand } = await import('./serveCommands-
|
|
355
|
+
const { handleServeCommand } = await import('./serveCommands-BVdf4a53.mjs');
|
|
356
356
|
await handleServeCommand();
|
|
357
357
|
process.exit(0);
|
|
358
358
|
} else if (subcommand === "process" || subcommand === "proc") {
|
|
@@ -361,7 +361,7 @@ async function main() {
|
|
|
361
361
|
console.error("svamp process: Process commands are not available in sandboxed sessions.");
|
|
362
362
|
process.exit(1);
|
|
363
363
|
}
|
|
364
|
-
const { processCommand } = await import('./commands-
|
|
364
|
+
const { processCommand } = await import('./commands-CFR0N4RU.mjs');
|
|
365
365
|
let machineId;
|
|
366
366
|
const processArgs = args.slice(1);
|
|
367
367
|
const mIdx = processArgs.findIndex((a) => a === "--machine" || a === "-m");
|
|
@@ -375,18 +375,18 @@ async function main() {
|
|
|
375
375
|
}), machineId);
|
|
376
376
|
process.exit(0);
|
|
377
377
|
} else if (subcommand === "issue" || subcommand === "issues") {
|
|
378
|
-
const { issueCommand } = await import('./commands-
|
|
378
|
+
const { issueCommand } = await import('./commands-1Ofwr8Di.mjs');
|
|
379
379
|
await issueCommand(args.slice(1));
|
|
380
380
|
process.exit(0);
|
|
381
381
|
} else if (subcommand === "workflow" || subcommand === "workflows") {
|
|
382
|
-
const { workflowCommand } = await import('./commands-
|
|
382
|
+
const { workflowCommand } = await import('./commands-1Ws-HmEi.mjs');
|
|
383
383
|
await workflowCommand(args.slice(1));
|
|
384
384
|
process.exit(0);
|
|
385
385
|
} else if (subcommand === "wise-agent" || subcommand === "wise") {
|
|
386
386
|
await handleWiseAgentCommand(args.slice(1));
|
|
387
387
|
process.exit(0);
|
|
388
388
|
} else if (subcommand === "feature" || subcommand === "crew") {
|
|
389
|
-
const { crewCommand } = await import('./commands-
|
|
389
|
+
const { crewCommand } = await import('./commands-jfrrhSy3.mjs');
|
|
390
390
|
await crewCommand(args.slice(1));
|
|
391
391
|
process.exit(0);
|
|
392
392
|
} else if (subcommand === "--help" || subcommand === "-h") {
|
|
@@ -394,7 +394,7 @@ async function main() {
|
|
|
394
394
|
} else if (!subcommand || subcommand === "start") {
|
|
395
395
|
await handleInteractiveCommand();
|
|
396
396
|
} else if (subcommand === "--version" || subcommand === "-v") {
|
|
397
|
-
const pkg = await import('./package-
|
|
397
|
+
const pkg = await import('./package-Bip9kI2S.mjs').catch(() => ({ default: { version: "unknown" } }));
|
|
398
398
|
console.log(`svamp version: ${pkg.default.version}`);
|
|
399
399
|
} else {
|
|
400
400
|
console.error(`Unknown command: ${subcommand}`);
|
|
@@ -403,7 +403,7 @@ async function main() {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
async function handleInteractiveCommand() {
|
|
406
|
-
const { runInteractive } = await import('./run-
|
|
406
|
+
const { runInteractive } = await import('./run-Dz1u52tX.mjs');
|
|
407
407
|
const interactiveArgs = subcommand === "start" ? args.slice(1) : args;
|
|
408
408
|
let directory = process.cwd();
|
|
409
409
|
let resumeSessionId;
|
|
@@ -448,7 +448,7 @@ async function handleAgentCommand() {
|
|
|
448
448
|
return;
|
|
449
449
|
}
|
|
450
450
|
if (agentArgs[0] === "list") {
|
|
451
|
-
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-
|
|
451
|
+
const { KNOWN_ACP_AGENTS, KNOWN_MCP_AGENTS: KNOWN_MCP_AGENTS2 } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ab; });
|
|
452
452
|
console.log("Known agents:");
|
|
453
453
|
for (const [name, config2] of Object.entries(KNOWN_ACP_AGENTS)) {
|
|
454
454
|
console.log(` ${name.padEnd(12)} ${config2.command} ${config2.args.join(" ")} (ACP)`);
|
|
@@ -460,7 +460,7 @@ async function handleAgentCommand() {
|
|
|
460
460
|
console.log('Use "svamp agent -- <command> [args]" for a custom ACP agent.');
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
|
-
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-
|
|
463
|
+
const { resolveAcpAgentConfig, KNOWN_MCP_AGENTS } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ab; });
|
|
464
464
|
let cwd = process.cwd();
|
|
465
465
|
const filteredArgs = [];
|
|
466
466
|
for (let i = 0; i < agentArgs.length; i++) {
|
|
@@ -484,12 +484,12 @@ async function handleAgentCommand() {
|
|
|
484
484
|
console.log(`Starting ${config.agentName} agent in ${cwd}...`);
|
|
485
485
|
let backend;
|
|
486
486
|
if (KNOWN_MCP_AGENTS[config.agentName]) {
|
|
487
|
-
const { CodexMcpBackend } = await import('./run-
|
|
487
|
+
const { CodexMcpBackend } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ac; });
|
|
488
488
|
backend = new CodexMcpBackend({ cwd, log: logFn });
|
|
489
489
|
} else {
|
|
490
|
-
const { AcpBackend } = await import('./run-
|
|
491
|
-
const { GeminiTransport } = await import('./run-
|
|
492
|
-
const { DefaultTransport } = await import('./run-
|
|
490
|
+
const { AcpBackend } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.aa; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ad; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.a9; });
|
|
493
493
|
const transportHandler = config.agentName === "gemini" ? new GeminiTransport() : new DefaultTransport(config.agentName);
|
|
494
494
|
backend = new AcpBackend({
|
|
495
495
|
agentName: config.agentName,
|
|
@@ -616,7 +616,7 @@ async function handleSessionCommand() {
|
|
|
616
616
|
process.exit(1);
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-
|
|
619
|
+
const { sessionList, sessionWhoami, sessionSpawn, sessionArchive, sessionResume, sessionDelete, sessionInfo, sessionMessages, sessionAttach, sessionMachines, sessionSend, sessionWait, sessionShare, sessionLoopStart, sessionLoopCancel, sessionLoopStatus, sessionInboxSend, sessionInboxList, sessionInboxRead, sessionInboxReply, sessionInboxClear } = await import('./commands-Puejs3W5.mjs');
|
|
620
620
|
const parseFlagStr = (flag, shortFlag) => {
|
|
621
621
|
for (let i = 1; i < sessionArgs.length; i++) {
|
|
622
622
|
if ((sessionArgs[i] === flag || shortFlag) && i + 1 < sessionArgs.length) {
|
|
@@ -684,7 +684,7 @@ async function handleSessionCommand() {
|
|
|
684
684
|
allowDomain.push(sessionArgs[++i]);
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
const { parseShareArg } = await import('./commands-
|
|
687
|
+
const { parseShareArg } = await import('./commands-Puejs3W5.mjs');
|
|
688
688
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
689
689
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
690
690
|
message,
|
|
@@ -771,7 +771,7 @@ async function handleSessionCommand() {
|
|
|
771
771
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
772
772
|
process.exit(1);
|
|
773
773
|
}
|
|
774
|
-
const { sessionEditMessage } = await import('./commands-
|
|
774
|
+
const { sessionEditMessage } = await import('./commands-Puejs3W5.mjs');
|
|
775
775
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
776
776
|
} else if (sessionSubcommand === "refine") {
|
|
777
777
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -779,7 +779,7 @@ async function handleSessionCommand() {
|
|
|
779
779
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
780
780
|
process.exit(1);
|
|
781
781
|
}
|
|
782
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
782
|
+
const { sessionRefineLastReply } = await import('./commands-Puejs3W5.mjs');
|
|
783
783
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
784
784
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
785
785
|
if (!sessionArgs[1]) {
|
|
@@ -787,7 +787,7 @@ async function handleSessionCommand() {
|
|
|
787
787
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
788
788
|
process.exit(1);
|
|
789
789
|
}
|
|
790
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
790
|
+
const { sessionUndoEdit } = await import('./commands-Puejs3W5.mjs');
|
|
791
791
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
792
792
|
} else if (sessionSubcommand === "query") {
|
|
793
793
|
const dir = sessionArgs[1];
|
|
@@ -797,7 +797,7 @@ async function handleSessionCommand() {
|
|
|
797
797
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
798
798
|
process.exit(1);
|
|
799
799
|
}
|
|
800
|
-
const { sessionQuery } = await import('./commands-
|
|
800
|
+
const { sessionQuery } = await import('./commands-Puejs3W5.mjs');
|
|
801
801
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
802
802
|
timeout: parseFlagInt("--timeout"),
|
|
803
803
|
json: hasFlag("--json"),
|
|
@@ -830,7 +830,7 @@ async function handleSessionCommand() {
|
|
|
830
830
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
831
831
|
process.exit(1);
|
|
832
832
|
}
|
|
833
|
-
const { sessionApprove } = await import('./commands-
|
|
833
|
+
const { sessionApprove } = await import('./commands-Puejs3W5.mjs');
|
|
834
834
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
835
835
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
836
836
|
json: hasFlag("--json")
|
|
@@ -840,7 +840,7 @@ async function handleSessionCommand() {
|
|
|
840
840
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
841
841
|
process.exit(1);
|
|
842
842
|
}
|
|
843
|
-
const { sessionDeny } = await import('./commands-
|
|
843
|
+
const { sessionDeny } = await import('./commands-Puejs3W5.mjs');
|
|
844
844
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
845
845
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
846
846
|
json: hasFlag("--json")
|
|
@@ -884,7 +884,7 @@ async function handleSessionCommand() {
|
|
|
884
884
|
console.error("Usage: svamp session set-title <title>");
|
|
885
885
|
process.exit(1);
|
|
886
886
|
}
|
|
887
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
887
|
+
const { sessionSetTitle } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
888
888
|
await sessionSetTitle(title);
|
|
889
889
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
890
890
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -892,7 +892,7 @@ async function handleSessionCommand() {
|
|
|
892
892
|
console.error("Usage: svamp session set-project-description <text>");
|
|
893
893
|
process.exit(1);
|
|
894
894
|
}
|
|
895
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
895
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
896
896
|
await sessionSetProjectDescription(desc);
|
|
897
897
|
} else if (sessionSubcommand === "set-link") {
|
|
898
898
|
const url = sessionArgs[1];
|
|
@@ -901,11 +901,11 @@ async function handleSessionCommand() {
|
|
|
901
901
|
process.exit(1);
|
|
902
902
|
}
|
|
903
903
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
904
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
904
|
+
const { sessionSetLink } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
905
905
|
await sessionSetLink(url, label);
|
|
906
906
|
} else if (sessionSubcommand === "link") {
|
|
907
907
|
const op = sessionArgs[1];
|
|
908
|
-
const lm = await import('./agentCommands-
|
|
908
|
+
const lm = await import('./agentCommands-B5_A0v5S.mjs');
|
|
909
909
|
if (op === "add") {
|
|
910
910
|
const url = sessionArgs[2];
|
|
911
911
|
if (!url || url.startsWith("--")) {
|
|
@@ -940,7 +940,7 @@ async function handleSessionCommand() {
|
|
|
940
940
|
process.exit(1);
|
|
941
941
|
}
|
|
942
942
|
const level = parseFlagStr("--level") || "info";
|
|
943
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
943
|
+
const { sessionNotify } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
944
944
|
await sessionNotify(message, level);
|
|
945
945
|
} else if (sessionSubcommand === "broadcast") {
|
|
946
946
|
const action = sessionArgs[1];
|
|
@@ -948,7 +948,7 @@ async function handleSessionCommand() {
|
|
|
948
948
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
949
949
|
process.exit(1);
|
|
950
950
|
}
|
|
951
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
951
|
+
const { sessionBroadcast } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
952
952
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
953
953
|
} else if (sessionSubcommand === "inbox") {
|
|
954
954
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -959,7 +959,7 @@ async function handleSessionCommand() {
|
|
|
959
959
|
process.exit(1);
|
|
960
960
|
}
|
|
961
961
|
if (agentSessionId) {
|
|
962
|
-
const { inboxSend } = await import('./agentCommands-
|
|
962
|
+
const { inboxSend } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
963
963
|
await inboxSend(sessionArgs[2], {
|
|
964
964
|
body: sessionArgs[3],
|
|
965
965
|
subject: parseFlagStr("--subject"),
|
|
@@ -974,7 +974,7 @@ async function handleSessionCommand() {
|
|
|
974
974
|
}
|
|
975
975
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
976
976
|
if (agentSessionId && !sessionArgs[2]) {
|
|
977
|
-
const { inboxList } = await import('./agentCommands-
|
|
977
|
+
const { inboxList } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
978
978
|
await inboxList({
|
|
979
979
|
unread: hasFlag("--unread"),
|
|
980
980
|
limit: parseFlagInt("--limit"),
|
|
@@ -996,7 +996,7 @@ async function handleSessionCommand() {
|
|
|
996
996
|
process.exit(1);
|
|
997
997
|
}
|
|
998
998
|
if (agentSessionId && !sessionArgs[3]) {
|
|
999
|
-
const { inboxList } = await import('./agentCommands-
|
|
999
|
+
const { inboxList } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
1000
1000
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
1001
1001
|
} else if (sessionArgs[3]) {
|
|
1002
1002
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -1006,7 +1006,7 @@ async function handleSessionCommand() {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
} else if (inboxSubcmd === "reply") {
|
|
1008
1008
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
1009
|
-
const { inboxReply } = await import('./agentCommands-
|
|
1009
|
+
const { inboxReply } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
1010
1010
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
1011
1011
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
1012
1012
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1044,7 +1044,7 @@ async function handleMachineCommand() {
|
|
|
1044
1044
|
return;
|
|
1045
1045
|
}
|
|
1046
1046
|
if (machineSubcommand === "share") {
|
|
1047
|
-
const { machineShare } = await import('./commands-
|
|
1047
|
+
const { machineShare } = await import('./commands-Puejs3W5.mjs');
|
|
1048
1048
|
let machineId;
|
|
1049
1049
|
const shareArgs = [];
|
|
1050
1050
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1095,14 +1095,14 @@ async function handleMachineCommand() {
|
|
|
1095
1095
|
process.exit(1);
|
|
1096
1096
|
}
|
|
1097
1097
|
if (all) {
|
|
1098
|
-
const { fleetExec } = await import('./fleet-
|
|
1098
|
+
const { fleetExec } = await import('./fleet-CYppFdxD.mjs');
|
|
1099
1099
|
await fleetExec(command, { cwd });
|
|
1100
1100
|
} else {
|
|
1101
|
-
const { machineExec } = await import('./commands-
|
|
1101
|
+
const { machineExec } = await import('./commands-Puejs3W5.mjs');
|
|
1102
1102
|
await machineExec(machineId, command, cwd);
|
|
1103
1103
|
}
|
|
1104
1104
|
} else if (machineSubcommand === "info") {
|
|
1105
|
-
const { machineInfo } = await import('./commands-
|
|
1105
|
+
const { machineInfo } = await import('./commands-Puejs3W5.mjs');
|
|
1106
1106
|
let machineId;
|
|
1107
1107
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1108
1108
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1122,10 +1122,10 @@ async function handleMachineCommand() {
|
|
|
1122
1122
|
level = machineArgs[++i];
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1125
|
+
const { machineNotify } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
1126
1126
|
await machineNotify(message, level);
|
|
1127
1127
|
} else if (machineSubcommand === "ls") {
|
|
1128
|
-
const { machineLs } = await import('./commands-
|
|
1128
|
+
const { machineLs } = await import('./commands-Puejs3W5.mjs');
|
|
1129
1129
|
let machineId;
|
|
1130
1130
|
let showHidden = false;
|
|
1131
1131
|
let path;
|
|
@@ -1181,20 +1181,20 @@ Examples:
|
|
|
1181
1181
|
};
|
|
1182
1182
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1183
1183
|
if (sub === "status") {
|
|
1184
|
-
const { fleetStatus } = await import('./fleet-
|
|
1184
|
+
const { fleetStatus } = await import('./fleet-CYppFdxD.mjs');
|
|
1185
1185
|
await fleetStatus();
|
|
1186
1186
|
} else if (sub === "upgrade-claude") {
|
|
1187
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1187
|
+
const { fleetUpgradeClaude } = await import('./fleet-CYppFdxD.mjs');
|
|
1188
1188
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1189
1189
|
} else if (sub === "upgrade-svamp") {
|
|
1190
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1190
|
+
const { fleetUpgradeSvamp } = await import('./fleet-CYppFdxD.mjs');
|
|
1191
1191
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1192
1192
|
} else if (sub === "daemon-restart") {
|
|
1193
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1193
|
+
const { fleetDaemonRestart } = await import('./fleet-CYppFdxD.mjs');
|
|
1194
1194
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1195
1195
|
} else if (sub === "push-skill") {
|
|
1196
1196
|
const name = fleetArgs[1];
|
|
1197
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1197
|
+
const { fleetPushSkill } = await import('./fleet-CYppFdxD.mjs');
|
|
1198
1198
|
await fleetPushSkill(name);
|
|
1199
1199
|
} else {
|
|
1200
1200
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1210,7 +1210,7 @@ async function handleSkillsCommand() {
|
|
|
1210
1210
|
await printSkillsHelp();
|
|
1211
1211
|
return;
|
|
1212
1212
|
}
|
|
1213
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1213
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-vqESQqxL.mjs');
|
|
1214
1214
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1215
1215
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1216
1216
|
if (!query) {
|
|
@@ -1257,7 +1257,7 @@ async function loginToHypha() {
|
|
|
1257
1257
|
process.exit(1);
|
|
1258
1258
|
}
|
|
1259
1259
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1260
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1260
|
+
const { loadInstanceConfig } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ae; });
|
|
1261
1261
|
let cfg = null;
|
|
1262
1262
|
try {
|
|
1263
1263
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1368,7 +1368,7 @@ async function logoutFromHypha() {
|
|
|
1368
1368
|
} catch {
|
|
1369
1369
|
}
|
|
1370
1370
|
try {
|
|
1371
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1371
|
+
const { clearInstanceConfigCache } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.ae; });
|
|
1372
1372
|
clearInstanceConfigCache();
|
|
1373
1373
|
} catch {
|
|
1374
1374
|
}
|
|
@@ -1706,7 +1706,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1706
1706
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1707
1707
|
);
|
|
1708
1708
|
}
|
|
1709
|
-
const mod = await import('./run-
|
|
1709
|
+
const mod = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.a7; });
|
|
1710
1710
|
if (hasHypha) {
|
|
1711
1711
|
let url;
|
|
1712
1712
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1760,7 +1760,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
if (collected.length === 0) return;
|
|
1763
|
-
const { updateEnvFile } = await import('./run-
|
|
1763
|
+
const { updateEnvFile } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.a7; });
|
|
1764
1764
|
const seen = /* @__PURE__ */ new Set();
|
|
1765
1765
|
const deduped = collected.filter((e) => {
|
|
1766
1766
|
const k = e.toLowerCase();
|
|
@@ -1793,7 +1793,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1793
1793
|
}
|
|
1794
1794
|
});
|
|
1795
1795
|
const message = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
|
|
1796
|
-
const { wiseAskCli } = await import('./commands-
|
|
1796
|
+
const { wiseAskCli } = await import('./commands-Puejs3W5.mjs');
|
|
1797
1797
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1798
1798
|
return;
|
|
1799
1799
|
}
|
|
@@ -1805,7 +1805,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
return void 0;
|
|
1807
1807
|
};
|
|
1808
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1808
|
+
const { runWiseVoiceCli } = await import('./headlessCli-ChDW4umN.mjs');
|
|
1809
1809
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1810
1810
|
return;
|
|
1811
1811
|
}
|
|
@@ -1823,7 +1823,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1823
1823
|
const mode = valueOf(["--mode"]);
|
|
1824
1824
|
const mission = valueOf(["--mission"]);
|
|
1825
1825
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1826
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1826
|
+
const { wiseJoinMeetingCli } = await import('./commands-Puejs3W5.mjs');
|
|
1827
1827
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1828
1828
|
return;
|
|
1829
1829
|
}
|
|
@@ -1835,7 +1835,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
return void 0;
|
|
1837
1837
|
};
|
|
1838
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1838
|
+
const { wiseLeaveMeetingCli } = await import('./commands-Puejs3W5.mjs');
|
|
1839
1839
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1840
1840
|
return;
|
|
1841
1841
|
}
|
|
@@ -1859,7 +1859,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
});
|
|
1861
1861
|
const text = rest.slice(1).map((a, idx) => ({ a, idx: idx + 1 })).filter(({ a, idx }) => !a.startsWith("-") && !consumed.has(String(idx))).map(({ a }) => a).join(" ");
|
|
1862
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
1862
|
+
const { wiseAnnounceCli } = await import('./commands-Puejs3W5.mjs');
|
|
1863
1863
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1864
1864
|
return;
|
|
1865
1865
|
}
|
|
@@ -1871,7 +1871,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return void 0;
|
|
1873
1873
|
};
|
|
1874
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1874
|
+
const { wiseMeetingsCli } = await import('./commands-Puejs3W5.mjs');
|
|
1875
1875
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1876
1876
|
return;
|
|
1877
1877
|
}
|
|
@@ -1921,7 +1921,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1921
1921
|
return;
|
|
1922
1922
|
}
|
|
1923
1923
|
const authArgs = rest.slice(1);
|
|
1924
|
-
const mod = await import('./auth-
|
|
1924
|
+
const mod = await import('./auth-D0ffkw3A.mjs');
|
|
1925
1925
|
let action;
|
|
1926
1926
|
try {
|
|
1927
1927
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1931,7 +1931,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1931
1931
|
return;
|
|
1932
1932
|
}
|
|
1933
1933
|
if (action) {
|
|
1934
|
-
const { updateEnvFile } = await import('./run-
|
|
1934
|
+
const { updateEnvFile } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.a7; });
|
|
1935
1935
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1936
1936
|
updateEnvFile(updates);
|
|
1937
1937
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1945,7 +1945,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1945
1945
|
}
|
|
1946
1946
|
async function handleDaemonAuthCommand(argv) {
|
|
1947
1947
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1948
|
-
const mod = await import('./run-
|
|
1948
|
+
const mod = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.a7; });
|
|
1949
1949
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1950
1950
|
console.log(`
|
|
1951
1951
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2258,7 +2258,7 @@ Examples:
|
|
|
2258
2258
|
async function printSkillsHelp() {
|
|
2259
2259
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2260
2260
|
try {
|
|
2261
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2261
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BwWtbW0Z.mjs').then(function (n) { return n.af; });
|
|
2262
2262
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2263
2263
|
} catch {
|
|
2264
2264
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot, w as searchIssues, v as listIssues, o as resumeIssue, p as pauseIssue, q as addComment, u as updateIssue, n as getIssue, x as isVisibleTo, z as summarize, t as addIssue } from './run-
|
|
2
|
+
import { m as resolveProjectRoot, w as searchIssues, v as listIssues, o as resumeIssue, p as pauseIssue, q as addComment, u as updateIssue, n as getIssue, x as isVisibleTo, z as summarize, t as addIssue } from './run-BwWtbW0Z.mjs';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
|
5
5
|
import 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { spawnSync } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot } from './run-
|
|
2
|
+
import { m as resolveProjectRoot } from './run-BwWtbW0Z.mjs';
|
|
3
3
|
import { c as workflowSteps, s as setWorkflowEnabled, i as isWorkflowEnabled, r as removeWorkflow, g as getWorkflow, l as listWorkflows, a as saveWorkflow, b as rawWorkflow } from './store-BTs0H_y0.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { writeFileSync, readFileSync } from 'fs';
|
|
2
2
|
import { resolve } from 'path';
|
|
3
|
-
import { connectAndGetMachine } from './commands-
|
|
3
|
+
import { connectAndGetMachine } from './commands-Puejs3W5.mjs';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'node:child_process';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'node:os';
|
|
8
|
-
import './run-
|
|
8
|
+
import './run-BwWtbW0Z.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -58,7 +58,7 @@ async function serviceExpose(args) {
|
|
|
58
58
|
process.exit(1);
|
|
59
59
|
}
|
|
60
60
|
if (foreground) {
|
|
61
|
-
const { runFrpcTunnel } = await import('./frpc-
|
|
61
|
+
const { runFrpcTunnel } = await import('./frpc-DeX8aQ_l.mjs');
|
|
62
62
|
await runFrpcTunnel(name, ports, void 0, {
|
|
63
63
|
group,
|
|
64
64
|
groupKey,
|
|
@@ -68,7 +68,7 @@ async function serviceExpose(args) {
|
|
|
68
68
|
});
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
71
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
72
72
|
const { server, machine } = await connectAndGetMachine();
|
|
73
73
|
try {
|
|
74
74
|
const status = await machine.tunnelStart({
|
|
@@ -82,9 +82,19 @@ async function serviceExpose(args) {
|
|
|
82
82
|
});
|
|
83
83
|
console.log(`Tunnel '${name}' registered with daemon \u2014 supervised + restart-persistent.`);
|
|
84
84
|
if (status && status.urls) {
|
|
85
|
-
|
|
85
|
+
const urlEntries = Object.entries(status.urls);
|
|
86
|
+
for (const [port, url] of urlEntries) {
|
|
86
87
|
console.log(` port ${port}: ${url}`);
|
|
87
88
|
}
|
|
89
|
+
if (process.env.SVAMP_SESSION_ID) {
|
|
90
|
+
const { autoAddSessionLink } = await import('./agentCommands-B5_A0v5S.mjs');
|
|
91
|
+
let added = 0;
|
|
92
|
+
for (const [port, url] of urlEntries) {
|
|
93
|
+
const label = urlEntries.length > 1 ? `${name}:${port}` : name;
|
|
94
|
+
if (autoAddSessionLink(String(url), label)) added++;
|
|
95
|
+
}
|
|
96
|
+
if (added) console.log(` \u21B3 added to this session's Launch Pad`);
|
|
97
|
+
}
|
|
88
98
|
}
|
|
89
99
|
console.log(`To stop: svamp service delete ${name} (or: svamp tunnel stop ${name})`);
|
|
90
100
|
} catch (err) {
|
|
@@ -123,7 +133,7 @@ async function serviceServe(args) {
|
|
|
123
133
|
};
|
|
124
134
|
process.on("SIGINT", cleanup);
|
|
125
135
|
process.on("SIGTERM", cleanup);
|
|
126
|
-
const { runFrpcTunnel } = await import('./frpc-
|
|
136
|
+
const { runFrpcTunnel } = await import('./frpc-DeX8aQ_l.mjs');
|
|
127
137
|
await runFrpcTunnel(name, [caddyPort]);
|
|
128
138
|
} catch (err) {
|
|
129
139
|
console.error(`Error serving directory: ${err.message}`);
|
|
@@ -132,7 +142,7 @@ async function serviceServe(args) {
|
|
|
132
142
|
}
|
|
133
143
|
async function serviceList(_args) {
|
|
134
144
|
try {
|
|
135
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
145
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
136
146
|
const { server, machine } = await connectAndGetMachine();
|
|
137
147
|
try {
|
|
138
148
|
const tunnels = await machine.tunnelList({});
|
|
@@ -172,7 +182,7 @@ async function serviceDelete(args) {
|
|
|
172
182
|
process.exit(1);
|
|
173
183
|
}
|
|
174
184
|
try {
|
|
175
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
185
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
176
186
|
const { server, machine } = await connectAndGetMachine();
|
|
177
187
|
try {
|
|
178
188
|
await machine.tunnelStop({ name });
|
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, writeFileSync } from 'node:fs';
|
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
3
|
import { basename, resolve, join, isAbsolute } from 'node:path';
|
|
4
4
|
import os from 'node:os';
|
|
5
|
-
import { Q as formatHandle, T as normalizeAllowedUser, U as loadSecurityContextConfig, V as resolveSecurityContext, W as buildSecurityContextFromFlags, X as mergeSecurityContexts, c as connectToHypha, Y as buildSessionShareUrl, Z as computeOutboundHop, A as shortId, _ as buildMachineShareUrl, $ as parseHandle, a0 as handleMatchesMetadata } from './run-
|
|
5
|
+
import { Q as formatHandle, T as normalizeAllowedUser, U as loadSecurityContextConfig, V as resolveSecurityContext, W as buildSecurityContextFromFlags, X as mergeSecurityContexts, c as connectToHypha, Y as buildSessionShareUrl, Z as computeOutboundHop, A as shortId, _ as buildMachineShareUrl, $ as parseHandle, a0 as handleMatchesMetadata } from './run-BwWtbW0Z.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { existsSync } from 'node:fs';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
|
-
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-
|
|
3
|
+
import { connectAndGetMachine, resolveSessionId, createWorktree, connectAndResolveSession } from './commands-Puejs3W5.mjs';
|
|
4
4
|
import { execSync } from 'node:child_process';
|
|
5
|
-
import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-
|
|
5
|
+
import { u as updateIssue, q as addComment, t as addIssue, A as shortId } from './run-BwWtbW0Z.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -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 { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-
|
|
4
|
+
import { F as parseFrontmatter, G as getSkillsServer, H as getSkillsWorkspaceName, I as getSkillsCollectionName, J as fetchWithTimeout, K as searchSkills, L as SKILLS_DIR, M as getSkillInfo, N as downloadSkillFile, O as listSkillFiles } from './run-BwWtbW0Z.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 { c as connectToHypha } from './run-
|
|
4
|
+
import { c as connectToHypha } from './run-BwWtbW0Z.mjs';
|
|
5
5
|
import { PINNED_CLAUDE_CODE_VERSION } from './pinnedClaudeCode-HydRNEt7.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
@@ -4,7 +4,7 @@ import { mkdirSync, writeFileSync, unlinkSync, existsSync, chmodSync, readFileSy
|
|
|
4
4
|
import { join } from 'path';
|
|
5
5
|
import { homedir, platform, arch } from 'os';
|
|
6
6
|
import { randomUUID, createHash } from 'crypto';
|
|
7
|
-
import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-
|
|
7
|
+
import { h as getFrpsSubdomainHost, i as getFrpsServerPort, j as getFrpsServerAddr } from './run-BwWtbW0Z.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { P as resolveModel, a1 as describeMisconfiguration, a2 as buildMachineDeps } from './run-BwWtbW0Z.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-CIZBAlWR.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-BwWtbW0Z.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "svamp-cli";
|
|
2
|
-
var version = "0.2.
|
|
2
|
+
var version = "0.2.217";
|
|
3
3
|
var description = "Svamp CLI — AI workspace daemon on Hypha Cloud";
|
|
4
4
|
var author = "Amun AI AB";
|
|
5
5
|
var license = "SEE LICENSE IN LICENSE";
|
|
@@ -19,7 +19,7 @@ var exports$1 = {
|
|
|
19
19
|
var scripts = {
|
|
20
20
|
build: "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
|
|
21
21
|
typecheck: "tsc --noEmit",
|
|
22
|
-
test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-issue-pause.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
|
|
22
|
+
test: "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-issue-pause.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs && npx tsx test/test-session-links.mjs",
|
|
23
23
|
"test:hypha": "node --no-warnings test/test-hypha-service.mjs",
|
|
24
24
|
dev: "tsx src/cli.ts",
|
|
25
25
|
"dev:daemon": "tsx src/cli.ts daemon start-sync",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as resolveProjectRoot } from './run-
|
|
1
|
+
import { m as resolveProjectRoot } from './run-BwWtbW0Z.mjs';
|
|
2
2
|
import { g as getWorkflow, s as setWorkflowEnabled, r as removeWorkflow, a as saveWorkflow, b as rawWorkflow, l as listWorkflows } from './store-BTs0H_y0.mjs';
|
|
3
3
|
import { g as getRun, l as listRuns, r as runWorkflow } from './runStore-CtptN7US.mjs';
|
|
4
4
|
import 'os';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as resumeIssue, p as pauseIssue, q as addComment, t as addIssue, v as listIssues, w as searchIssues, x as isVisibleTo } from './run-
|
|
1
|
+
import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as resumeIssue, p as pauseIssue, q as addComment, t as addIssue, v as listIssues, w as searchIssues, x as isVisibleTo } from './run-BwWtbW0Z.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -2912,7 +2912,7 @@ async function registerMachineService(server, machineId, metadata, daemonState,
|
|
|
2912
2912
|
const tunnels = handlers.tunnels;
|
|
2913
2913
|
if (!tunnels) throw new Error("Tunnel management not available");
|
|
2914
2914
|
if (tunnels.has(params.name)) throw new Error(`Tunnel '${params.name}' already running`);
|
|
2915
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
2915
|
+
const { FrpcTunnel } = await import('./frpc-DeX8aQ_l.mjs');
|
|
2916
2916
|
const tunnel = new FrpcTunnel({
|
|
2917
2917
|
name: params.name,
|
|
2918
2918
|
ports: params.ports,
|
|
@@ -3359,7 +3359,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3359
3359
|
}
|
|
3360
3360
|
const deps = buildSessionDeps(rpc, { cwd, ownerEmail: owner });
|
|
3361
3361
|
const sender = { name: context?.user?.email || context?.user?.id || "user", kind: "user", verified: true };
|
|
3362
|
-
const { toolsForRole } = await import('./sideband-
|
|
3362
|
+
const { toolsForRole } = await import('./sideband-CIZBAlWR.mjs');
|
|
3363
3363
|
const r2 = await runWiseAgent({ message: params.message, sender, config: { tools: toolsForRole(role2) }, deps, transport, model: resolved.model });
|
|
3364
3364
|
return fmt(r2);
|
|
3365
3365
|
}
|
|
@@ -3458,7 +3458,7 @@ QUESTION: ${params.question || "Summarize this concisely."}` }
|
|
|
3458
3458
|
if (r.error || !r.sender) return { error: r.error || "unauthorized" };
|
|
3459
3459
|
const callId = "call_" + Math.random().toString(16).slice(2, 12);
|
|
3460
3460
|
const rendered = renderMessage(c, { sender: r.sender, body: { message: kwargs.message }, callId });
|
|
3461
|
-
const { queryCore } = await import('./commands-
|
|
3461
|
+
const { queryCore } = await import('./commands-Puejs3W5.mjs');
|
|
3462
3462
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3463
3463
|
let result;
|
|
3464
3464
|
try {
|
|
@@ -10721,7 +10721,7 @@ You are running inside a Svamp session (id: ${sessionId}${handle ? `, handle: ${
|
|
|
10721
10721
|
|
|
10722
10722
|
**Session state:**
|
|
10723
10723
|
- \`svamp session set-title "<topic>"\` \u2014 your session topic: a short sentence describing what you're working on. It's the index the user and other agents see when listing sessions, so set it after your first reply and update it as focus shifts (else it's auto-summarized for you).
|
|
10724
|
-
- \`svamp session link add "<url>" --label "<label>" [--icon "\u{1F517}"]\` \u2014 surface viewable artifacts (dashboards, reports, apps) as buttons in the composer "Launch Pad". Manage many: \`link list\` \xB7 \`link update <id> [--url|--label|--icon]\` \xB7 \`link remove <id>\`. (\`session set-link "<url>" "<label>"\` still sets a single link \u2014 back-compat.)
|
|
10724
|
+
- \`svamp session link add "<url>" --label "<label>" [--icon "\u{1F517}"]\` \u2014 surface viewable artifacts (dashboards, reports, apps) as buttons in the composer "Launch Pad". Manage many: \`link list\` \xB7 \`link update <id> [--url|--label|--icon]\` \xB7 \`link remove <id>\`. Adding the same URL again UPDATES that entry (URL is the dedup key \u2014 no duplicates). Tunnel/exposed URLs from \`svamp service expose\` are added to the Launch Pad AUTOMATICALLY, so do NOT \`session link add\` a URL you just exposed. (\`session set-link "<url>" "<label>"\` still sets a single link \u2014 back-compat.)
|
|
10725
10725
|
- \`svamp session notify "<msg>" [--level info|warning|error]\` \u2014 send a user notification
|
|
10726
10726
|
|
|
10727
10727
|
**Artifacts (rich inline output):** Write HTML to a file (\`.svamp/<sessionId>/outputs/\` for disposable, \`./outputs/\` for persistent) and emit \`<artifact src="./outputs/viz.html" title="..." />\` \u2014 the Svamp client renders it inline as a sandboxed iframe with theme CSS vars, auto-resize, file inlining, and a header with Reload/Fullscreen/\u22EE menu. Modes: \`default\`, \`bare\` (controls on hover), \`immersive\` (no chrome), \`card\` (click-to-open preview with \`description\`+\`poster\`). Use \`<artifact src="https://..." height="540" />\` to embed a live server. Run \`svamp serve <name> <dir>\` to share. Use a real backend server (\`svamp service expose\`) when you need persistence/auth. See the \`artifact\` skill.
|
|
@@ -12209,7 +12209,7 @@ async function startDaemon(options) {
|
|
|
12209
12209
|
saveExposedTunnels(list);
|
|
12210
12210
|
}
|
|
12211
12211
|
async function createExposedTunnel(spec) {
|
|
12212
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
12212
|
+
const { FrpcTunnel } = await import('./frpc-DeX8aQ_l.mjs');
|
|
12213
12213
|
const tunnel = new FrpcTunnel({
|
|
12214
12214
|
name: spec.name,
|
|
12215
12215
|
ports: spec.ports,
|
|
@@ -12229,7 +12229,7 @@ async function startDaemon(options) {
|
|
|
12229
12229
|
return tunnel;
|
|
12230
12230
|
}
|
|
12231
12231
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
12232
|
-
const { ServeManager } = await import('./serveManager-
|
|
12232
|
+
const { ServeManager } = await import('./serveManager-BOhJh9Xk.mjs');
|
|
12233
12233
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
12234
12234
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
12235
12235
|
});
|
|
@@ -14123,11 +14123,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14123
14123
|
});
|
|
14124
14124
|
},
|
|
14125
14125
|
onIssue: async (params) => {
|
|
14126
|
-
const { issueRpc } = await import('./rpc-
|
|
14126
|
+
const { issueRpc } = await import('./rpc-yjY1Xzy2.mjs');
|
|
14127
14127
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
14128
14128
|
},
|
|
14129
14129
|
onWorkflow: async (params) => {
|
|
14130
|
-
const { workflowRpc } = await import('./rpc-
|
|
14130
|
+
const { workflowRpc } = await import('./rpc-DZ52w9mK.mjs');
|
|
14131
14131
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14132
14132
|
},
|
|
14133
14133
|
onRipgrep: async (args, cwd) => {
|
|
@@ -14660,11 +14660,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14660
14660
|
});
|
|
14661
14661
|
},
|
|
14662
14662
|
onIssue: async (params) => {
|
|
14663
|
-
const { issueRpc } = await import('./rpc-
|
|
14663
|
+
const { issueRpc } = await import('./rpc-yjY1Xzy2.mjs');
|
|
14664
14664
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner, rekickLoopOwner });
|
|
14665
14665
|
},
|
|
14666
14666
|
onWorkflow: async (params) => {
|
|
14667
|
-
const { workflowRpc } = await import('./rpc-
|
|
14667
|
+
const { workflowRpc } = await import('./rpc-DZ52w9mK.mjs');
|
|
14668
14668
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14669
14669
|
},
|
|
14670
14670
|
onRipgrep: async (args, cwd) => {
|
|
@@ -15438,7 +15438,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
15438
15438
|
const PING_TIMEOUT_MS = 15e3;
|
|
15439
15439
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
15440
15440
|
const RECONNECT_JITTER_MS = 2500;
|
|
15441
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
15441
|
+
const { WorkflowScheduler } = await import('./scheduler-Djn3TwcN.mjs');
|
|
15442
15442
|
const workflowScheduler = new WorkflowScheduler({
|
|
15443
15443
|
projectRoots: () => {
|
|
15444
15444
|
const dirs = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a3 as applyClaudeProxyEnv, a4 as composeSessionId, a5 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a6 as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a3 as applyClaudeProxyEnv, a4 as composeSessionId, a5 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a6 as generateHookSettings } from './run-BwWtbW0Z.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 { m as resolveProjectRoot, y as cronMatches } from './run-
|
|
1
|
+
import { m as resolveProjectRoot, y as cronMatches } from './run-BwWtbW0Z.mjs';
|
|
2
2
|
import { l as listWorkflows, i as isWorkflowEnabled, w as workflowCrons } from './store-BTs0H_y0.mjs';
|
|
3
3
|
import { r as runWorkflow } from './runStore-CtptN7US.mjs';
|
|
4
4
|
import 'os';
|
|
@@ -54,7 +54,7 @@ async function handleServeCommand() {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
async function serveAdd(args, machineId) {
|
|
57
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
57
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
58
58
|
const pos = positionalArgs(args);
|
|
59
59
|
const name = pos[0];
|
|
60
60
|
if (!name) {
|
|
@@ -93,7 +93,7 @@ async function serveAdd(args, machineId) {
|
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
async function serveApply(args, machineId) {
|
|
96
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
96
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
97
97
|
const fs = await import('fs');
|
|
98
98
|
const yaml = await import('yaml');
|
|
99
99
|
const file = positionalArgs(args)[0];
|
|
@@ -182,7 +182,7 @@ async function serveApply(args, machineId) {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
async function serveRemove(args, machineId) {
|
|
185
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
185
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
186
186
|
const pos = positionalArgs(args);
|
|
187
187
|
const name = pos[0];
|
|
188
188
|
if (!name) {
|
|
@@ -202,7 +202,7 @@ async function serveRemove(args, machineId) {
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
async function serveList(args, machineId) {
|
|
205
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
205
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
206
206
|
const all = hasFlag(args, "--all", "-a");
|
|
207
207
|
const json = hasFlag(args, "--json");
|
|
208
208
|
const sessionId = getFlag(args, "--session");
|
|
@@ -235,7 +235,7 @@ async function serveList(args, machineId) {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
async function serveInfo(machineId) {
|
|
238
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
238
|
+
const { connectAndGetMachine } = await import('./commands-Puejs3W5.mjs');
|
|
239
239
|
const { machine, server } = await connectAndGetMachine(machineId);
|
|
240
240
|
try {
|
|
241
241
|
const info = await machine.serveInfo();
|
|
@@ -4,7 +4,7 @@ import * as fs from 'fs';
|
|
|
4
4
|
import * as http from 'http';
|
|
5
5
|
import * as net from 'net';
|
|
6
6
|
import * as path from 'path';
|
|
7
|
-
import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-
|
|
7
|
+
import { k as getHyphaServerUrl, S as ServeAuth, l as hasCookieToken } from './run-BwWtbW0Z.mjs';
|
|
8
8
|
import 'os';
|
|
9
9
|
import 'fs/promises';
|
|
10
10
|
import 'url';
|
|
@@ -733,7 +733,7 @@ class ServeManager {
|
|
|
733
733
|
const mount = this.mounts.get(mountName);
|
|
734
734
|
const subdomainOverride = mount?.access === "link" && mount.linkToken ? /* @__PURE__ */ new Map([[this.port, buildLinkSubdomain(subdomainSafe, mount.linkToken)]]) : void 0;
|
|
735
735
|
try {
|
|
736
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
736
|
+
const { FrpcTunnel } = await import('./frpc-DeX8aQ_l.mjs');
|
|
737
737
|
let tunnel;
|
|
738
738
|
tunnel = new FrpcTunnel({
|
|
739
739
|
name: tunnelName,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as READ_ONLY_TOOLS, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-
|
|
1
|
+
import { R as READ_ONLY_TOOLS, B as loadMachineContext, C as buildMachineInstructions, D as machineToolsForRole, E as buildMachineTools } from './run-BwWtbW0Z.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svamp-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.217",
|
|
4
4
|
"description": "Svamp CLI — AI workspace daemon on Hypha Cloud",
|
|
5
5
|
"author": "Amun AI AB",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "rm -rf dist bin/skills && mkdir -p bin/skills && cp -r ../../skills/artifact bin/skills/artifact && cp -r ../../skills/loop bin/skills/loop && cp -r ../../skills/crew bin/skills/crew && tsc --noEmit && pkgroll",
|
|
22
22
|
"typecheck": "tsc --noEmit",
|
|
23
|
-
"test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-issue-pause.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs",
|
|
23
|
+
"test": "npx tsx test/test-context-window.mjs && npx tsx test/test-ratelimit-retry.mjs && npx tsx test/test-instance-config.mjs && npx tsx test/test-authorize.mjs && npx tsx test/test-normalize-allowed-user.mjs && npx tsx test/test-share-url.mjs && npx tsx test/test-update-sharing-normalization.mjs && npx tsx test/test-sharing-notify-sync.mjs && npx tsx test/test-staged-homes-sweep.mjs && npx tsx test/test-session-helpers.mjs && npx tsx test/test-cli-routing.mjs && npx tsx test/test-security-context.mjs && npx tsx test/test-isolation-decision.mjs && npx tsx test/test-loop-activation.mjs && npx tsx test/test-message-helpers.mjs && npx tsx test/test-agent-config.mjs && npx tsx test/test-wrap-command.mjs && npx tsx test/test-credential-staging.mjs && npx tsx test/test-claude-auth.mjs && npx tsx test/test-btw-proxy-env.mjs && npx tsx test/test-output-formatters.mjs && npx tsx test/test-inbox-guard.mjs && npx tsx test/test-auto-topic.mjs && npx tsx test/test-project-info.mjs && npx tsx test/test-agent-types.mjs && npx tsx test/test-transport.mjs && npx tsx test/test-session-update-handlers.mjs && npx tsx test/test-session-scanner.mjs && npx tsx test/test-hypha-client.mjs && npx tsx test/test-hook-settings.mjs && npx tsx test/test-session-service-logic.mjs && npx tsx test/test-daemon-persistence.mjs && npx tsx test/test-detect-isolation.mjs && npx tsx test/test-machine-service-logic.mjs && npx tsx test/test-interactive-helpers.mjs && npx tsx test/test-codex-backend.mjs && npx tsx test/test-acp-backend.mjs && npx tsx test/test-acp-bridge.mjs && npx tsx test/test-hook-server.mjs && npx tsx test/test-session-commands.mjs && npx tsx test/test-interactive-console.mjs && npx tsx test/test-session-messages.mjs && npx tsx test/test-session-send-query.mjs && npx tsx test/test-skills.mjs && npx tsx test/test-agent-grouping.mjs && npx tsx test/test-machine-list-directory.mjs && npx tsx test/test-service-commands.mjs && npx tsx test/test-supervisor.mjs && npx tsx test/test-supervisor-lock.mjs && node test/test-supervisor-restart.mjs && npx tsx test/test-clear-detection.mjs && npx tsx test/test-session-consolidation.mjs && npx tsx test/test-inbox-store.mjs && npx tsx test/test-inbox.mjs && npx tsx test/test-inbox-cross-machine.mjs && npx tsx test/test-issue-store.mjs && npx tsx test/test-issue-close-gate.mjs && npx tsx test/test-issue-rpc.mjs && npx tsx test/test-issue-pause.mjs && npx tsx test/test-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.mjs && npx tsx test/test-workflow-runs.mjs && npx tsx test/test-serve-link-subdomain.mjs && npx tsx test/test-short-id.mjs && npx tsx test/test-transcript-edit.mjs && npx tsx test/test-edit-history.mjs && npx tsx test/test-friendly-name.mjs && npx tsx test/test-session-rpc-dispatch.mjs && npx tsx test/test-sandbox-cli.mjs && npx tsx test/test-serve-manager.mjs && npx tsx test/test-serve-stability.mjs && npx tsx test/test-frpc-e2e.mjs --unit-only && npx tsx test/test-frpc-status.mjs && node test/pinnedClaudeCode.test.mjs && node test/fleet.test.mjs && npx tsx test/test-session-file.mjs && npx tsx test/test-channel-rpc.mjs && npx tsx test/test-wise-agent.mjs && npx tsx test/test-channel-agent.mjs && npx tsx test/test-channels-service.mjs && npx tsx test/test-hotreload-seam.mjs && npx tsx test/test-hot-reload.mjs && npx tsx test/test-hot-reload-live.mjs && npx tsx test/test-session-core.mjs && npx tsx test/test-channel-async-reply.mjs && npx tsx test/test-channel-binding.mjs && npx tsx test/test-channel-identity.mjs && npx tsx test/test-shared-session-identity.mjs && npx tsx test/test-wise-agent-auth.mjs && npx tsx test/test-channel-http.mjs && npx tsx test/test-channel-upload.mjs && npx tsx test/test-wise-voice.mjs && npx tsx test/test-wise-headless.mjs && npx tsx test/test-wise-machine.mjs && npx tsx test/test-crew-merge.mjs && npx tsx test/test-crew-verdict-routing.mjs && npx tsx test/test-crew-standalone.mjs && npx tsx test/test-session-links.mjs",
|
|
24
24
|
"test:hypha": "node --no-warnings test/test-hypha-service.mjs",
|
|
25
25
|
"dev": "tsx src/cli.ts",
|
|
26
26
|
"dev:daemon": "tsx src/cli.ts daemon start-sync",
|