svamp-cli 0.2.202 → 0.2.204
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/bin/skills/loop/SKILL.md +1 -1
- package/bin/skills/loop/bin/stop-gate.mjs +18 -2
- package/dist/{agentCommands-BMbdp3lO.mjs → agentCommands-D92DfTGP.mjs} +5 -5
- package/dist/{auth-DFV_MjVU.mjs → auth-BvO7QtaP.mjs} +1 -1
- package/dist/cli.mjs +60 -60
- package/dist/{commands-DfD7ACo-.mjs → commands-5AerKSMm.mjs} +1 -1
- package/dist/{commands-BA8pUB80.mjs → commands-BduSUevP.mjs} +31 -20
- package/dist/{commands-Cbg4_aEA.mjs → commands-CHqMRENk.mjs} +1 -1
- package/dist/{commands-Ccbl9q_M.mjs → commands-DwWuWW99.mjs} +1 -1
- package/dist/{commands-CVMpx7Ws.mjs → commands-Dyy_1c0I.mjs} +5 -5
- package/dist/{commands-DnTtqcre.mjs → commands-u68ODpBt.mjs} +1 -1
- package/dist/{commands-CW1VrEei.mjs → commands-wtMi-xJY.mjs} +2 -2
- package/dist/{fleet-Caxg-9CC.mjs → fleet-CFe5Kt6k.mjs} +1 -1
- package/dist/{frpc-Sq_r6a9i.mjs → frpc-DMV0fZBM.mjs} +1 -1
- package/dist/{headlessCli-CqDPtg1x.mjs → headlessCli-COLHIWk8.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-Df28hcfX.mjs → package-CqGr9_jQ.mjs} +1 -1
- package/dist/{rpc-DXp0vpxD.mjs → rpc-CoNLjY5x.mjs} +1 -1
- package/dist/{rpc-BJKoRzGK.mjs → rpc-DBpyHJUs.mjs} +1 -1
- package/dist/{run-CsqoYIvO.mjs → run-BfgkuBEg.mjs} +44 -23
- package/dist/{run-B5xwuwIO.mjs → run-CR8y6yQ7.mjs} +1 -1
- package/dist/{scheduler-CSYBbqjZ.mjs → scheduler-C1_HeBdn.mjs} +1 -1
- package/dist/{serveCommands-CHWW6Mon.mjs → serveCommands-d3t4RkrF.mjs} +5 -5
- package/dist/{serveManager-CkEjrt25.mjs → serveManager-DA9elK4m.mjs} +2 -2
- package/dist/{sideband-BXQYf8dr.mjs → sideband-DNLuglX3.mjs} +1 -1
- package/package.json +1 -1
package/bin/skills/loop/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: loop
|
|
3
|
-
version: 0.4.
|
|
3
|
+
version: 0.4.2
|
|
4
4
|
description: Run a task as a reliable, self-verifying loop — iterate until objective exit conditions are met, with an independent evaluator instead of self-judging. Use when a task needs repeated iterations until "done" (fix until tests pass, refactor until clean, build until a spec is met, autonomous long-running work).
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -166,9 +166,25 @@ if (done) {
|
|
|
166
166
|
block(`The loop's exit conditions are met (oracle empty + evaluator done), but you have ${pending} UNHANDLED inbox message(s). Handle them first — read/reply/triage/merge each (\`svamp session inbox list\`), then finish your turn. (This guard fires at most once per loop, then allows stop, so a flood can't trap the loop.)`);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
+
// #0128: NON-BLOCKING open-crew hint. The loop is about to STOP — surface any active crew children
|
|
170
|
+
// the lead hasn't merged/closed so an orphaned/forgotten crew is visible at the natural checkpoint.
|
|
171
|
+
// Purely informational: it NEVER blocks or affects the decision (the loop still stops). Computed
|
|
172
|
+
// lazily only here (not every iteration) to avoid a per-turn subprocess. Disable with
|
|
173
|
+
// `crew_hint: false` in loop.config.json.
|
|
174
|
+
let openCrew = '';
|
|
175
|
+
if (cfg.crew_hint !== false) {
|
|
176
|
+
try {
|
|
177
|
+
const out = execSync('svamp feature list', { cwd: PROJECT, stdio: 'pipe', encoding: 'utf-8',
|
|
178
|
+
timeout: 15000, env: { ...process.env, ...(SID ? { SVAMP_SESSION_ID: SID } : {}) } }).toString();
|
|
179
|
+
const active = out.split('\n').map((l) => l.trim()).filter((l) => /\bactive\b/.test(l))
|
|
180
|
+
.map((l) => { const id = l.split(/\s+/)[0]; const iss = (l.match(/#\d{2,}/) || [])[0]; return iss ? `${id} (${iss})` : id; });
|
|
181
|
+
if (active.length) openCrew = `Open crew not merged/closed: ${active.join(', ')} — review with \`svamp feature merge <id>\`.`;
|
|
182
|
+
} catch { /* fail-open: no daemon / no crew → no hint */ }
|
|
183
|
+
}
|
|
184
|
+
if (openCrew) process.stderr.write(`[loop] ${openCrew}\n`);
|
|
169
185
|
writeJSONAtomic(STATE, { ...state, active: false, phase: 'done', completed_at: now,
|
|
170
|
-
last_oracle: oracleDetail });
|
|
171
|
-
appendHistory({ ts: now, iteration: iterNum, decision: 'done', oracle: oraclePass, evaluator: evaluatorPass, detail: oracleDetail });
|
|
186
|
+
last_oracle: oracleDetail, ...(openCrew ? { open_crew: openCrew } : {}) });
|
|
187
|
+
appendHistory({ ts: now, iteration: iterNum, decision: 'done', oracle: oraclePass, evaluator: evaluatorPass, detail: oracleDetail, ...(openCrew ? { open_crew: openCrew } : {}) });
|
|
172
188
|
allow();
|
|
173
189
|
}
|
|
174
190
|
|
|
@@ -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-BfgkuBEg.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-BfgkuBEg.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.");
|
|
@@ -180,7 +180,7 @@ async function sessionBroadcast(action, args) {
|
|
|
180
180
|
console.log(`Broadcast sent: ${action}`);
|
|
181
181
|
}
|
|
182
182
|
async function connectToMachineService() {
|
|
183
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
183
|
+
const { connectAndGetMachine } = await import('./commands-u68ODpBt.mjs');
|
|
184
184
|
return connectAndGetMachine();
|
|
185
185
|
}
|
|
186
186
|
function buildInboxMessage(args) {
|
|
@@ -258,7 +258,7 @@ async function inboxSend(targetSessionId, opts) {
|
|
|
258
258
|
console.error("Message body is required.");
|
|
259
259
|
process.exit(1);
|
|
260
260
|
}
|
|
261
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
261
|
+
const { connectAndResolveSession } = await import('./commands-u68ODpBt.mjs');
|
|
262
262
|
let server;
|
|
263
263
|
try {
|
|
264
264
|
const { targetId, messageId } = await inboxSendCore(
|
|
@@ -312,7 +312,7 @@ async function inboxReply(messageId, body) {
|
|
|
312
312
|
console.error("SVAMP_SESSION_ID not set. This command must be run inside a Svamp session.");
|
|
313
313
|
process.exit(1);
|
|
314
314
|
}
|
|
315
|
-
const { connectAndResolveSession } = await import('./commands-
|
|
315
|
+
const { connectAndResolveSession } = await import('./commands-u68ODpBt.mjs');
|
|
316
316
|
const { server: localServer, machine: localMachine } = await connectToMachineService();
|
|
317
317
|
let localDisconnected = false;
|
|
318
318
|
const disconnectLocal = async () => {
|
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-BfgkuBEg.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-BfgkuBEg.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-BfgkuBEg.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-Dyy_1c0I.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-d3t4RkrF.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-wtMi-xJY.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-DwWuWW99.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-CHqMRENk.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-BduSUevP.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-CqGr9_jQ.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-CR8y6yQ7.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-BfgkuBEg.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-BfgkuBEg.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-BfgkuBEg.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-BfgkuBEg.mjs').then(function (n) { return n.aa; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.ad; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-BfgkuBEg.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-u68ODpBt.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-u68ODpBt.mjs');
|
|
688
688
|
const shareEntries = share.map((s) => parseShareArg(s));
|
|
689
689
|
await sessionSpawn(agent, dir, targetMachineId, {
|
|
690
690
|
message,
|
|
@@ -769,7 +769,7 @@ async function handleSessionCommand() {
|
|
|
769
769
|
console.error(" Rewinds history: rewrites the message + drops everything after it, then restarts Claude.");
|
|
770
770
|
process.exit(1);
|
|
771
771
|
}
|
|
772
|
-
const { sessionEditMessage } = await import('./commands-
|
|
772
|
+
const { sessionEditMessage } = await import('./commands-u68ODpBt.mjs');
|
|
773
773
|
await sessionEditMessage(sessionArgs[1], sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
774
774
|
} else if (sessionSubcommand === "refine") {
|
|
775
775
|
if (!sessionArgs[1] || !sessionArgs[2]) {
|
|
@@ -777,7 +777,7 @@ async function handleSessionCommand() {
|
|
|
777
777
|
console.error(" Asks the agent to revise its latest reply in place (no extra round).");
|
|
778
778
|
process.exit(1);
|
|
779
779
|
}
|
|
780
|
-
const { sessionRefineLastReply } = await import('./commands-
|
|
780
|
+
const { sessionRefineLastReply } = await import('./commands-u68ODpBt.mjs');
|
|
781
781
|
await sessionRefineLastReply(sessionArgs[1], sessionArgs[2], targetMachineId);
|
|
782
782
|
} else if (sessionSubcommand === "undo-edit" || sessionSubcommand === "undo") {
|
|
783
783
|
if (!sessionArgs[1]) {
|
|
@@ -785,7 +785,7 @@ async function handleSessionCommand() {
|
|
|
785
785
|
console.error(" Reverts the most recent edit/refine, restoring the pre-edit history.");
|
|
786
786
|
process.exit(1);
|
|
787
787
|
}
|
|
788
|
-
const { sessionUndoEdit } = await import('./commands-
|
|
788
|
+
const { sessionUndoEdit } = await import('./commands-u68ODpBt.mjs');
|
|
789
789
|
await sessionUndoEdit(sessionArgs[1], targetMachineId);
|
|
790
790
|
} else if (sessionSubcommand === "query") {
|
|
791
791
|
const dir = sessionArgs[1];
|
|
@@ -795,7 +795,7 @@ async function handleSessionCommand() {
|
|
|
795
795
|
console.error(" Spawns a stateless Claude session in <directory>, sends <prompt>, prints the answer, then deletes the session.");
|
|
796
796
|
process.exit(1);
|
|
797
797
|
}
|
|
798
|
-
const { sessionQuery } = await import('./commands-
|
|
798
|
+
const { sessionQuery } = await import('./commands-u68ODpBt.mjs');
|
|
799
799
|
await sessionQuery(dir, prompt, targetMachineId, {
|
|
800
800
|
timeout: parseFlagInt("--timeout"),
|
|
801
801
|
json: hasFlag("--json"),
|
|
@@ -828,7 +828,7 @@ async function handleSessionCommand() {
|
|
|
828
828
|
console.error("Usage: svamp session approve <session-id> [request-id] [--json]");
|
|
829
829
|
process.exit(1);
|
|
830
830
|
}
|
|
831
|
-
const { sessionApprove } = await import('./commands-
|
|
831
|
+
const { sessionApprove } = await import('./commands-u68ODpBt.mjs');
|
|
832
832
|
const approveReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
833
833
|
await sessionApprove(sessionArgs[1], approveReqId, targetMachineId, {
|
|
834
834
|
json: hasFlag("--json")
|
|
@@ -838,7 +838,7 @@ async function handleSessionCommand() {
|
|
|
838
838
|
console.error("Usage: svamp session deny <session-id> [request-id] [--json]");
|
|
839
839
|
process.exit(1);
|
|
840
840
|
}
|
|
841
|
-
const { sessionDeny } = await import('./commands-
|
|
841
|
+
const { sessionDeny } = await import('./commands-u68ODpBt.mjs');
|
|
842
842
|
const denyReqId = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
843
843
|
await sessionDeny(sessionArgs[1], denyReqId, targetMachineId, {
|
|
844
844
|
json: hasFlag("--json")
|
|
@@ -880,7 +880,7 @@ async function handleSessionCommand() {
|
|
|
880
880
|
console.error("Usage: svamp session set-title <title>");
|
|
881
881
|
process.exit(1);
|
|
882
882
|
}
|
|
883
|
-
const { sessionSetTitle } = await import('./agentCommands-
|
|
883
|
+
const { sessionSetTitle } = await import('./agentCommands-D92DfTGP.mjs');
|
|
884
884
|
await sessionSetTitle(title);
|
|
885
885
|
} else if (sessionSubcommand === "set-project-description" || sessionSubcommand === "set-project") {
|
|
886
886
|
const desc = sessionArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
@@ -888,7 +888,7 @@ async function handleSessionCommand() {
|
|
|
888
888
|
console.error("Usage: svamp session set-project-description <text>");
|
|
889
889
|
process.exit(1);
|
|
890
890
|
}
|
|
891
|
-
const { sessionSetProjectDescription } = await import('./agentCommands-
|
|
891
|
+
const { sessionSetProjectDescription } = await import('./agentCommands-D92DfTGP.mjs');
|
|
892
892
|
await sessionSetProjectDescription(desc);
|
|
893
893
|
} else if (sessionSubcommand === "set-link") {
|
|
894
894
|
const url = sessionArgs[1];
|
|
@@ -897,7 +897,7 @@ async function handleSessionCommand() {
|
|
|
897
897
|
process.exit(1);
|
|
898
898
|
}
|
|
899
899
|
const label = sessionArgs[2] && !sessionArgs[2].startsWith("--") ? sessionArgs[2] : void 0;
|
|
900
|
-
const { sessionSetLink } = await import('./agentCommands-
|
|
900
|
+
const { sessionSetLink } = await import('./agentCommands-D92DfTGP.mjs');
|
|
901
901
|
await sessionSetLink(url, label);
|
|
902
902
|
} else if (sessionSubcommand === "notify") {
|
|
903
903
|
const message = sessionArgs[1];
|
|
@@ -906,7 +906,7 @@ async function handleSessionCommand() {
|
|
|
906
906
|
process.exit(1);
|
|
907
907
|
}
|
|
908
908
|
const level = parseFlagStr("--level") || "info";
|
|
909
|
-
const { sessionNotify } = await import('./agentCommands-
|
|
909
|
+
const { sessionNotify } = await import('./agentCommands-D92DfTGP.mjs');
|
|
910
910
|
await sessionNotify(message, level);
|
|
911
911
|
} else if (sessionSubcommand === "broadcast") {
|
|
912
912
|
const action = sessionArgs[1];
|
|
@@ -914,7 +914,7 @@ async function handleSessionCommand() {
|
|
|
914
914
|
console.error("Usage: svamp session broadcast <action> [args...]\nActions: open-canvas <url> [label], close-canvas, toast <message>");
|
|
915
915
|
process.exit(1);
|
|
916
916
|
}
|
|
917
|
-
const { sessionBroadcast } = await import('./agentCommands-
|
|
917
|
+
const { sessionBroadcast } = await import('./agentCommands-D92DfTGP.mjs');
|
|
918
918
|
await sessionBroadcast(action, sessionArgs.slice(2).filter((a) => !a.startsWith("--")));
|
|
919
919
|
} else if (sessionSubcommand === "inbox") {
|
|
920
920
|
const inboxSubcmd = sessionArgs[1];
|
|
@@ -925,7 +925,7 @@ async function handleSessionCommand() {
|
|
|
925
925
|
process.exit(1);
|
|
926
926
|
}
|
|
927
927
|
if (agentSessionId) {
|
|
928
|
-
const { inboxSend } = await import('./agentCommands-
|
|
928
|
+
const { inboxSend } = await import('./agentCommands-D92DfTGP.mjs');
|
|
929
929
|
await inboxSend(sessionArgs[2], {
|
|
930
930
|
body: sessionArgs[3],
|
|
931
931
|
subject: parseFlagStr("--subject"),
|
|
@@ -940,7 +940,7 @@ async function handleSessionCommand() {
|
|
|
940
940
|
}
|
|
941
941
|
} else if (inboxSubcmd === "list" || inboxSubcmd === "ls") {
|
|
942
942
|
if (agentSessionId && !sessionArgs[2]) {
|
|
943
|
-
const { inboxList } = await import('./agentCommands-
|
|
943
|
+
const { inboxList } = await import('./agentCommands-D92DfTGP.mjs');
|
|
944
944
|
await inboxList({
|
|
945
945
|
unread: hasFlag("--unread"),
|
|
946
946
|
limit: parseFlagInt("--limit"),
|
|
@@ -962,7 +962,7 @@ async function handleSessionCommand() {
|
|
|
962
962
|
process.exit(1);
|
|
963
963
|
}
|
|
964
964
|
if (agentSessionId && !sessionArgs[3]) {
|
|
965
|
-
const { inboxList } = await import('./agentCommands-
|
|
965
|
+
const { inboxList } = await import('./agentCommands-D92DfTGP.mjs');
|
|
966
966
|
await sessionInboxRead(agentSessionId, sessionArgs[2], targetMachineId);
|
|
967
967
|
} else if (sessionArgs[3]) {
|
|
968
968
|
await sessionInboxRead(sessionArgs[2], sessionArgs[3], targetMachineId);
|
|
@@ -972,7 +972,7 @@ async function handleSessionCommand() {
|
|
|
972
972
|
}
|
|
973
973
|
} else if (inboxSubcmd === "reply") {
|
|
974
974
|
if (agentSessionId && sessionArgs[2] && sessionArgs[3] && !sessionArgs[4]) {
|
|
975
|
-
const { inboxReply } = await import('./agentCommands-
|
|
975
|
+
const { inboxReply } = await import('./agentCommands-D92DfTGP.mjs');
|
|
976
976
|
await inboxReply(sessionArgs[2], sessionArgs[3]);
|
|
977
977
|
} else if (sessionArgs[2] && sessionArgs[3] && sessionArgs[4]) {
|
|
978
978
|
await sessionInboxReply(sessionArgs[2], sessionArgs[3], sessionArgs[4], targetMachineId);
|
|
@@ -1010,7 +1010,7 @@ async function handleMachineCommand() {
|
|
|
1010
1010
|
return;
|
|
1011
1011
|
}
|
|
1012
1012
|
if (machineSubcommand === "share") {
|
|
1013
|
-
const { machineShare } = await import('./commands-
|
|
1013
|
+
const { machineShare } = await import('./commands-u68ODpBt.mjs');
|
|
1014
1014
|
let machineId;
|
|
1015
1015
|
const shareArgs = [];
|
|
1016
1016
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
@@ -1061,14 +1061,14 @@ async function handleMachineCommand() {
|
|
|
1061
1061
|
process.exit(1);
|
|
1062
1062
|
}
|
|
1063
1063
|
if (all) {
|
|
1064
|
-
const { fleetExec } = await import('./fleet-
|
|
1064
|
+
const { fleetExec } = await import('./fleet-CFe5Kt6k.mjs');
|
|
1065
1065
|
await fleetExec(command, { cwd });
|
|
1066
1066
|
} else {
|
|
1067
|
-
const { machineExec } = await import('./commands-
|
|
1067
|
+
const { machineExec } = await import('./commands-u68ODpBt.mjs');
|
|
1068
1068
|
await machineExec(machineId, command, cwd);
|
|
1069
1069
|
}
|
|
1070
1070
|
} else if (machineSubcommand === "info") {
|
|
1071
|
-
const { machineInfo } = await import('./commands-
|
|
1071
|
+
const { machineInfo } = await import('./commands-u68ODpBt.mjs');
|
|
1072
1072
|
let machineId;
|
|
1073
1073
|
for (let i = 1; i < machineArgs.length; i++) {
|
|
1074
1074
|
if ((machineArgs[i] === "--machine" || machineArgs[i] === "-m") && i + 1 < machineArgs.length) {
|
|
@@ -1088,10 +1088,10 @@ async function handleMachineCommand() {
|
|
|
1088
1088
|
level = machineArgs[++i];
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
|
-
const { machineNotify } = await import('./agentCommands-
|
|
1091
|
+
const { machineNotify } = await import('./agentCommands-D92DfTGP.mjs');
|
|
1092
1092
|
await machineNotify(message, level);
|
|
1093
1093
|
} else if (machineSubcommand === "ls") {
|
|
1094
|
-
const { machineLs } = await import('./commands-
|
|
1094
|
+
const { machineLs } = await import('./commands-u68ODpBt.mjs');
|
|
1095
1095
|
let machineId;
|
|
1096
1096
|
let showHidden = false;
|
|
1097
1097
|
let path;
|
|
@@ -1147,20 +1147,20 @@ Examples:
|
|
|
1147
1147
|
};
|
|
1148
1148
|
const hasFlag = (name) => fleetArgs.includes(`--${name}`);
|
|
1149
1149
|
if (sub === "status") {
|
|
1150
|
-
const { fleetStatus } = await import('./fleet-
|
|
1150
|
+
const { fleetStatus } = await import('./fleet-CFe5Kt6k.mjs');
|
|
1151
1151
|
await fleetStatus();
|
|
1152
1152
|
} else if (sub === "upgrade-claude") {
|
|
1153
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1153
|
+
const { fleetUpgradeClaude } = await import('./fleet-CFe5Kt6k.mjs');
|
|
1154
1154
|
await fleetUpgradeClaude({ version: flag("version", "-v") });
|
|
1155
1155
|
} else if (sub === "upgrade-svamp") {
|
|
1156
|
-
const { fleetUpgradeSvamp } = await import('./fleet-
|
|
1156
|
+
const { fleetUpgradeSvamp } = await import('./fleet-CFe5Kt6k.mjs');
|
|
1157
1157
|
await fleetUpgradeSvamp({ version: flag("version", "-v"), excludeSelf: hasFlag("exclude-self") });
|
|
1158
1158
|
} else if (sub === "daemon-restart") {
|
|
1159
|
-
const { fleetDaemonRestart } = await import('./fleet-
|
|
1159
|
+
const { fleetDaemonRestart } = await import('./fleet-CFe5Kt6k.mjs');
|
|
1160
1160
|
await fleetDaemonRestart({ graceful: !hasFlag("cleanup") });
|
|
1161
1161
|
} else if (sub === "push-skill") {
|
|
1162
1162
|
const name = fleetArgs[1];
|
|
1163
|
-
const { fleetPushSkill } = await import('./fleet-
|
|
1163
|
+
const { fleetPushSkill } = await import('./fleet-CFe5Kt6k.mjs');
|
|
1164
1164
|
await fleetPushSkill(name);
|
|
1165
1165
|
} else {
|
|
1166
1166
|
console.error(`Unknown fleet subcommand: ${sub}`);
|
|
@@ -1176,7 +1176,7 @@ async function handleSkillsCommand() {
|
|
|
1176
1176
|
await printSkillsHelp();
|
|
1177
1177
|
return;
|
|
1178
1178
|
}
|
|
1179
|
-
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-
|
|
1179
|
+
const { skillsFind, skillsInstall, skillsList, skillsRemove, skillsPublish } = await import('./commands-5AerKSMm.mjs');
|
|
1180
1180
|
if (skillsSubcommand === "find" || skillsSubcommand === "search") {
|
|
1181
1181
|
const query = skillsArgs.slice(1).filter((a) => !a.startsWith("--")).join(" ");
|
|
1182
1182
|
if (!query) {
|
|
@@ -1223,7 +1223,7 @@ async function loginToHypha() {
|
|
|
1223
1223
|
process.exit(1);
|
|
1224
1224
|
}
|
|
1225
1225
|
const anchor = anchorArg.replace(/\/+$/, "");
|
|
1226
|
-
const { loadInstanceConfig } = await import('./run-
|
|
1226
|
+
const { loadInstanceConfig } = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.ae; });
|
|
1227
1227
|
let cfg = null;
|
|
1228
1228
|
try {
|
|
1229
1229
|
cfg = await loadInstanceConfig({ anchor, force: true });
|
|
@@ -1334,7 +1334,7 @@ async function logoutFromHypha() {
|
|
|
1334
1334
|
} catch {
|
|
1335
1335
|
}
|
|
1336
1336
|
try {
|
|
1337
|
-
const { clearInstanceConfigCache } = await import('./run-
|
|
1337
|
+
const { clearInstanceConfigCache } = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.ae; });
|
|
1338
1338
|
clearInstanceConfigCache();
|
|
1339
1339
|
} catch {
|
|
1340
1340
|
}
|
|
@@ -1672,7 +1672,7 @@ async function applyClaudeAuthFlags(argv) {
|
|
|
1672
1672
|
"--use-hypha-proxy, --use-claude-login, and --anthropic-base-url/--anthropic-api-key are mutually exclusive"
|
|
1673
1673
|
);
|
|
1674
1674
|
}
|
|
1675
|
-
const mod = await import('./run-
|
|
1675
|
+
const mod = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.a7; });
|
|
1676
1676
|
if (hasHypha) {
|
|
1677
1677
|
let url;
|
|
1678
1678
|
const hyphaIdx = argv.indexOf("--use-hypha-proxy");
|
|
@@ -1726,7 +1726,7 @@ async function applyDaemonShareFlag(argv) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
1728
|
if (collected.length === 0) return;
|
|
1729
|
-
const { updateEnvFile } = await import('./run-
|
|
1729
|
+
const { updateEnvFile } = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.a7; });
|
|
1730
1730
|
const seen = /* @__PURE__ */ new Set();
|
|
1731
1731
|
const deduped = collected.filter((e) => {
|
|
1732
1732
|
const k = e.toLowerCase();
|
|
@@ -1759,7 +1759,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
});
|
|
1761
1761
|
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(" ");
|
|
1762
|
-
const { wiseAskCli } = await import('./commands-
|
|
1762
|
+
const { wiseAskCli } = await import('./commands-u68ODpBt.mjs');
|
|
1763
1763
|
await wiseAskCli(machineId, message, sessionId, { json });
|
|
1764
1764
|
return;
|
|
1765
1765
|
}
|
|
@@ -1771,7 +1771,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1771
1771
|
}
|
|
1772
1772
|
return void 0;
|
|
1773
1773
|
};
|
|
1774
|
-
const { runWiseVoiceCli } = await import('./headlessCli-
|
|
1774
|
+
const { runWiseVoiceCli } = await import('./headlessCli-COLHIWk8.mjs');
|
|
1775
1775
|
await runWiseVoiceCli({ voice: valueOf(["--voice"]), wakeKeywordPath: valueOf(["--wake"]), model: valueOf(["--model"]) });
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
@@ -1789,7 +1789,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1789
1789
|
const mode = valueOf(["--mode"]);
|
|
1790
1790
|
const mission = valueOf(["--mission"]);
|
|
1791
1791
|
const url = rest.slice(1).find((a) => /^https?:\/\//.test(a)) || "";
|
|
1792
|
-
const { wiseJoinMeetingCli } = await import('./commands-
|
|
1792
|
+
const { wiseJoinMeetingCli } = await import('./commands-u68ODpBt.mjs');
|
|
1793
1793
|
await wiseJoinMeetingCli(machineId, url, sessionId, { json, mode, mission });
|
|
1794
1794
|
return;
|
|
1795
1795
|
}
|
|
@@ -1801,7 +1801,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
return void 0;
|
|
1803
1803
|
};
|
|
1804
|
-
const { wiseLeaveMeetingCli } = await import('./commands-
|
|
1804
|
+
const { wiseLeaveMeetingCli } = await import('./commands-u68ODpBt.mjs');
|
|
1805
1805
|
await wiseLeaveMeetingCli(valueOf(["--machine", "-m"]), valueOf(["--session", "-s"]), { json: rest.includes("--json") });
|
|
1806
1806
|
return;
|
|
1807
1807
|
}
|
|
@@ -1825,7 +1825,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
});
|
|
1827
1827
|
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(" ");
|
|
1828
|
-
const { wiseAnnounceCli } = await import('./commands-
|
|
1828
|
+
const { wiseAnnounceCli } = await import('./commands-u68ODpBt.mjs');
|
|
1829
1829
|
await wiseAnnounceCli(machineId, text, sessionId, { json });
|
|
1830
1830
|
return;
|
|
1831
1831
|
}
|
|
@@ -1837,7 +1837,7 @@ async function handleWiseAgentCommand(rest) {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
return void 0;
|
|
1839
1839
|
};
|
|
1840
|
-
const { wiseMeetingsCli } = await import('./commands-
|
|
1840
|
+
const { wiseMeetingsCli } = await import('./commands-u68ODpBt.mjs');
|
|
1841
1841
|
await wiseMeetingsCli(valueOf(["--machine", "-m"]), { json: rest.includes("--json") });
|
|
1842
1842
|
return;
|
|
1843
1843
|
}
|
|
@@ -1887,7 +1887,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1887
1887
|
return;
|
|
1888
1888
|
}
|
|
1889
1889
|
const authArgs = rest.slice(1);
|
|
1890
|
-
const mod = await import('./auth-
|
|
1890
|
+
const mod = await import('./auth-BvO7QtaP.mjs');
|
|
1891
1891
|
let action;
|
|
1892
1892
|
try {
|
|
1893
1893
|
action = mod.parseWiseAgentAuthArgs(authArgs);
|
|
@@ -1897,7 +1897,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1897
1897
|
return;
|
|
1898
1898
|
}
|
|
1899
1899
|
if (action) {
|
|
1900
|
-
const { updateEnvFile } = await import('./run-
|
|
1900
|
+
const { updateEnvFile } = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.a7; });
|
|
1901
1901
|
const updates = mod.buildWiseAgentEnvUpdates(action);
|
|
1902
1902
|
updateEnvFile(updates);
|
|
1903
1903
|
for (const [k, v] of Object.entries(updates)) {
|
|
@@ -1911,7 +1911,7 @@ If none is set, hitting a WISE Agent channel returns a clear "not configured" er
|
|
|
1911
1911
|
}
|
|
1912
1912
|
async function handleDaemonAuthCommand(argv) {
|
|
1913
1913
|
const sub = (argv[0] || "status").toLowerCase();
|
|
1914
|
-
const mod = await import('./run-
|
|
1914
|
+
const mod = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.a7; });
|
|
1915
1915
|
if (sub === "--help" || sub === "-h" || sub === "help") {
|
|
1916
1916
|
console.log(`
|
|
1917
1917
|
svamp daemon auth \u2014 Configure how Claude subprocesses authenticate
|
|
@@ -2224,7 +2224,7 @@ Examples:
|
|
|
2224
2224
|
async function printSkillsHelp() {
|
|
2225
2225
|
let browseUrl = "<HYPHA_SERVER_URL>/<workspace>/artifacts/marketplace (set HYPHA_SERVER_URL)";
|
|
2226
2226
|
try {
|
|
2227
|
-
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-
|
|
2227
|
+
const { getArtifactBaseUrl, getSkillsCollectionName } = await import('./run-BfgkuBEg.mjs').then(function (n) { return n.af; });
|
|
2228
2228
|
browseUrl = `${getArtifactBaseUrl()}/${getSkillsCollectionName()}`;
|
|
2229
2229
|
} catch {
|
|
2230
2230
|
}
|
|
@@ -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-BfgkuBEg.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -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-u68ODpBt.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-BfgkuBEg.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -55,23 +55,23 @@ function mergeBack(input) {
|
|
|
55
55
|
if (!existsSync(projectRoot)) {
|
|
56
56
|
return { ok: false, stage: "verify", detail: `project root not found: ${projectRoot}` };
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
detail: `feature worktree has uncommitted changes \u2014 commit (or run \`feature done\`) first:
|
|
58
|
+
const worktreeGone = !existsSync(worktreePath);
|
|
59
|
+
if (!worktreeGone) {
|
|
60
|
+
let childStatus;
|
|
61
|
+
try {
|
|
62
|
+
childStatus = worktreeStatus(worktreePath);
|
|
63
|
+
} catch (e) {
|
|
64
|
+
return { ok: false, stage: "verify", detail: `not a git worktree: ${worktreePath} (${e.message})` };
|
|
65
|
+
}
|
|
66
|
+
if (childStatus) {
|
|
67
|
+
return {
|
|
68
|
+
ok: false,
|
|
69
|
+
stage: "verify",
|
|
70
|
+
rework: true,
|
|
71
|
+
detail: `feature worktree has uncommitted changes \u2014 commit (or run \`feature done\`) first:
|
|
73
72
|
${childStatus}`
|
|
74
|
-
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
75
|
}
|
|
76
76
|
const leadBranch = currentBranch(projectRoot);
|
|
77
77
|
if (leadBranch !== baseBranch) {
|
|
@@ -108,8 +108,19 @@ ${detail.trim()}` };
|
|
|
108
108
|
try {
|
|
109
109
|
git(projectRoot, `worktree remove --force ${worktreePath}`);
|
|
110
110
|
} catch (e) {
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
try {
|
|
112
|
+
git(projectRoot, "worktree prune");
|
|
113
|
+
} catch {
|
|
114
|
+
}
|
|
115
|
+
let stillRegistered = false;
|
|
116
|
+
try {
|
|
117
|
+
stillRegistered = git(projectRoot, "worktree list --porcelain").includes(worktreePath);
|
|
118
|
+
} catch {
|
|
119
|
+
}
|
|
120
|
+
if (stillRegistered) {
|
|
121
|
+
const detail = e.stderr?.toString() || "" || e.message;
|
|
122
|
+
return { ok: false, stage: "remove-worktree", detail: `merged OK but worktree removal failed: ${detail.trim()}` };
|
|
123
|
+
}
|
|
113
124
|
}
|
|
114
125
|
if (input.deleteBranch !== false) {
|
|
115
126
|
try {
|
|
@@ -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-BfgkuBEg.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,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-BfgkuBEg.mjs';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|
|
5
5
|
import 'fs';
|
|
@@ -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-DMV0fZBM.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-u68ODpBt.mjs');
|
|
72
72
|
const { server, machine } = await connectAndGetMachine();
|
|
73
73
|
try {
|
|
74
74
|
const status = await machine.tunnelStart({
|
|
@@ -123,7 +123,7 @@ async function serviceServe(args) {
|
|
|
123
123
|
};
|
|
124
124
|
process.on("SIGINT", cleanup);
|
|
125
125
|
process.on("SIGTERM", cleanup);
|
|
126
|
-
const { runFrpcTunnel } = await import('./frpc-
|
|
126
|
+
const { runFrpcTunnel } = await import('./frpc-DMV0fZBM.mjs');
|
|
127
127
|
await runFrpcTunnel(name, [caddyPort]);
|
|
128
128
|
} catch (err) {
|
|
129
129
|
console.error(`Error serving directory: ${err.message}`);
|
|
@@ -132,7 +132,7 @@ async function serviceServe(args) {
|
|
|
132
132
|
}
|
|
133
133
|
async function serviceList(_args) {
|
|
134
134
|
try {
|
|
135
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
135
|
+
const { connectAndGetMachine } = await import('./commands-u68ODpBt.mjs');
|
|
136
136
|
const { server, machine } = await connectAndGetMachine();
|
|
137
137
|
try {
|
|
138
138
|
const tunnels = await machine.tunnelList({});
|
|
@@ -172,7 +172,7 @@ async function serviceDelete(args) {
|
|
|
172
172
|
process.exit(1);
|
|
173
173
|
}
|
|
174
174
|
try {
|
|
175
|
-
const { connectAndGetMachine } = await import('./commands-
|
|
175
|
+
const { connectAndGetMachine } = await import('./commands-u68ODpBt.mjs');
|
|
176
176
|
const { server, machine } = await connectAndGetMachine();
|
|
177
177
|
try {
|
|
178
178
|
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-BfgkuBEg.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
import 'fs';
|
|
@@ -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-u68ODpBt.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-BfgkuBEg.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -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-BfgkuBEg.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-BfgkuBEg.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-BfgkuBEg.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-DNLuglX3.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-BfgkuBEg.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -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-BfgkuBEg.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
import 'fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as resolveProjectRoot } from './run-
|
|
1
|
+
import { m as resolveProjectRoot } from './run-BfgkuBEg.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';
|
|
@@ -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-DMV0fZBM.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-DNLuglX3.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-u68ODpBt.mjs');
|
|
3462
3462
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3463
3463
|
let result;
|
|
3464
3464
|
try {
|
|
@@ -4586,6 +4586,10 @@ function createSessionStore(server, sessionId, initialMetadata, initialAgentStat
|
|
|
4586
4586
|
metadata
|
|
4587
4587
|
};
|
|
4588
4588
|
}
|
|
4589
|
+
if (newMetadata && typeof newMetadata === "object" && "isOrphaned" in newMetadata) {
|
|
4590
|
+
const { isOrphaned: _drop, ...rest } = newMetadata;
|
|
4591
|
+
newMetadata = rest;
|
|
4592
|
+
}
|
|
4589
4593
|
metadata = newMetadata;
|
|
4590
4594
|
metadataVersion++;
|
|
4591
4595
|
notifyListeners({
|
|
@@ -5351,6 +5355,17 @@ Output ONLY the full revised reply text \u2014 no preamble, no commentary, no su
|
|
|
5351
5355
|
...lastActivity
|
|
5352
5356
|
});
|
|
5353
5357
|
},
|
|
5358
|
+
// #0137: re-broadcast the current activity (active + real thinking flag) without
|
|
5359
|
+
// changing it. Bumps `time` so the frontend treats it as the freshest signal and
|
|
5360
|
+
// won't let an older getSessions snapshot override it.
|
|
5361
|
+
reEmitActivity: () => {
|
|
5362
|
+
lastActivity = { ...lastActivity, time: Date.now() };
|
|
5363
|
+
notifyListeners({
|
|
5364
|
+
type: "activity",
|
|
5365
|
+
sessionId,
|
|
5366
|
+
...lastActivity
|
|
5367
|
+
});
|
|
5368
|
+
},
|
|
5354
5369
|
clearMessages: () => {
|
|
5355
5370
|
messages.length = 0;
|
|
5356
5371
|
nextSeq = 1;
|
|
@@ -12122,7 +12137,7 @@ async function startDaemon(options) {
|
|
|
12122
12137
|
saveExposedTunnels(list);
|
|
12123
12138
|
}
|
|
12124
12139
|
async function createExposedTunnel(spec) {
|
|
12125
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
12140
|
+
const { FrpcTunnel } = await import('./frpc-DMV0fZBM.mjs');
|
|
12126
12141
|
const tunnel = new FrpcTunnel({
|
|
12127
12142
|
name: spec.name,
|
|
12128
12143
|
ports: spec.ports,
|
|
@@ -12142,7 +12157,7 @@ async function startDaemon(options) {
|
|
|
12142
12157
|
return tunnel;
|
|
12143
12158
|
}
|
|
12144
12159
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
12145
|
-
const { ServeManager } = await import('./serveManager-
|
|
12160
|
+
const { ServeManager } = await import('./serveManager-DA9elK4m.mjs');
|
|
12146
12161
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
12147
12162
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
12148
12163
|
});
|
|
@@ -12251,6 +12266,23 @@ ${v.guidance ? v.guidance + "\n" : ""}Criteria: ${v.criteria || "(none)"}
|
|
|
12251
12266
|
consecutiveHeartbeatFailures = 0;
|
|
12252
12267
|
lastReconnectAt = Date.now();
|
|
12253
12268
|
}
|
|
12269
|
+
const reEmitLiveness = (phase) => {
|
|
12270
|
+
try {
|
|
12271
|
+
let reEmitted = 0;
|
|
12272
|
+
for (const tracked of pidToTrackedSession.values()) {
|
|
12273
|
+
if (tracked.stopped || !tracked.hyphaService) continue;
|
|
12274
|
+
try {
|
|
12275
|
+
tracked.hyphaService.reEmitActivity();
|
|
12276
|
+
reEmitted++;
|
|
12277
|
+
} catch {
|
|
12278
|
+
}
|
|
12279
|
+
}
|
|
12280
|
+
if (reEmitted > 0) logger.log(`[#0137] re-emitted liveness for ${reEmitted} live session(s) after reconnect (${phase})`);
|
|
12281
|
+
} catch {
|
|
12282
|
+
}
|
|
12283
|
+
};
|
|
12284
|
+
reEmitLiveness("immediate");
|
|
12285
|
+
setTimeout(() => reEmitLiveness("delayed"), 2500);
|
|
12254
12286
|
});
|
|
12255
12287
|
const getCurrentChildren = () => {
|
|
12256
12288
|
return Array.from(pidToTrackedSession.values()).map((s) => {
|
|
@@ -14006,11 +14038,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14006
14038
|
});
|
|
14007
14039
|
},
|
|
14008
14040
|
onIssue: async (params) => {
|
|
14009
|
-
const { issueRpc } = await import('./rpc-
|
|
14041
|
+
const { issueRpc } = await import('./rpc-CoNLjY5x.mjs');
|
|
14010
14042
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
|
|
14011
14043
|
},
|
|
14012
14044
|
onWorkflow: async (params) => {
|
|
14013
|
-
const { workflowRpc } = await import('./rpc-
|
|
14045
|
+
const { workflowRpc } = await import('./rpc-DBpyHJUs.mjs');
|
|
14014
14046
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14015
14047
|
},
|
|
14016
14048
|
onRipgrep: async (args, cwd) => {
|
|
@@ -14520,11 +14552,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14520
14552
|
});
|
|
14521
14553
|
},
|
|
14522
14554
|
onIssue: async (params) => {
|
|
14523
|
-
const { issueRpc } = await import('./rpc-
|
|
14555
|
+
const { issueRpc } = await import('./rpc-CoNLjY5x.mjs');
|
|
14524
14556
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
|
|
14525
14557
|
},
|
|
14526
14558
|
onWorkflow: async (params) => {
|
|
14527
|
-
const { workflowRpc } = await import('./rpc-
|
|
14559
|
+
const { workflowRpc } = await import('./rpc-DBpyHJUs.mjs');
|
|
14528
14560
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14529
14561
|
},
|
|
14530
14562
|
onRipgrep: async (args, cwd) => {
|
|
@@ -15012,7 +15044,8 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
15012
15044
|
buildMachineHandlers()
|
|
15013
15045
|
);
|
|
15014
15046
|
logger.log(`Machine service registered: svamp-machine-${machineId}`);
|
|
15015
|
-
|
|
15047
|
+
const hotReloadDevSource = existsSync$1(join$1(__dirname$1, "sessionCore.ts"));
|
|
15048
|
+
if (isHotReloadEnabled() && hotReloadDevSource) {
|
|
15016
15049
|
try {
|
|
15017
15050
|
const hotReload = createHotReloadCoordinator({ log: logger.log });
|
|
15018
15051
|
const sessionCoreSrc = join$1(__dirname$1, "sessionCore.ts");
|
|
@@ -15188,18 +15221,6 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
15188
15221
|
break;
|
|
15189
15222
|
}
|
|
15190
15223
|
}
|
|
15191
|
-
if (isOrphaned) {
|
|
15192
|
-
for (const [, tracked] of pidToTrackedSession) {
|
|
15193
|
-
if (tracked.svampSessionId === persisted.sessionId && tracked.hyphaService) {
|
|
15194
|
-
tracked.hyphaService.updateMetadata({
|
|
15195
|
-
...persisted.metadata || {},
|
|
15196
|
-
isOrphaned: true,
|
|
15197
|
-
originalMachineId: persisted.machineId
|
|
15198
|
-
});
|
|
15199
|
-
break;
|
|
15200
|
-
}
|
|
15201
|
-
}
|
|
15202
|
-
}
|
|
15203
15224
|
if (persisted.wasProcessing && persisted.claudeResumeId && !isOrphaned) {
|
|
15204
15225
|
sessionsToAutoContinue.push(persisted.sessionId);
|
|
15205
15226
|
}
|
|
@@ -15309,7 +15330,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
15309
15330
|
const PING_TIMEOUT_MS = 15e3;
|
|
15310
15331
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
15311
15332
|
const RECONNECT_JITTER_MS = 2500;
|
|
15312
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
15333
|
+
const { WorkflowScheduler } = await import('./scheduler-C1_HeBdn.mjs');
|
|
15313
15334
|
const workflowScheduler = new WorkflowScheduler({
|
|
15314
15335
|
projectRoots: () => {
|
|
15315
15336
|
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-BfgkuBEg.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-BfgkuBEg.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-u68ODpBt.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-u68ODpBt.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-u68ODpBt.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-u68ODpBt.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-u68ODpBt.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-BfgkuBEg.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-DMV0fZBM.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-BfgkuBEg.mjs';
|
|
2
2
|
import 'node:child_process';
|
|
3
3
|
import 'os';
|
|
4
4
|
import 'fs/promises';
|