svamp-cli 0.2.196 → 0.2.197
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/bin/stop-gate.mjs +31 -1
- package/bin/skills/loop/test/test-loop-gate.mjs +38 -0
- package/dist/{agentCommands-Epy2LP4k.mjs → agentCommands-Dxuc65V_.mjs} +5 -5
- package/dist/{auth-BVAW-c8L.mjs → auth-DweBQRAL.mjs} +1 -1
- package/dist/cli.mjs +60 -60
- package/dist/{commands-yNPBtne1.mjs → commands-BF7fzTcc.mjs} +1 -1
- package/dist/{commands-DYxBgrYh.mjs → commands-BFZhHLhh.mjs} +2 -2
- package/dist/{commands-D3KJdH3r.mjs → commands-BItE-9OU.mjs} +1 -1
- package/dist/{commands-D8ad_1Aa.mjs → commands-BJ3G0VVJ.mjs} +1 -1
- package/dist/{commands-i3J0d8xS.mjs → commands-BWD_a3hE.mjs} +2 -2
- package/dist/{commands-DsYzp1Pc.mjs → commands-Bxb8oEBa.mjs} +1 -1
- package/dist/{commands-Dx6gz9Dr.mjs → commands-C1V3SEF9.mjs} +5 -5
- package/dist/{fleet-DwAy8i7Z.mjs → fleet-C-2EKVda.mjs} +1 -1
- package/dist/{frpc-DeD80HI1.mjs → frpc-BgabHfqV.mjs} +1 -1
- package/dist/{headlessCli-Cw8ZR1H7.mjs → headlessCli-CtTe4oJ4.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/{package-CpNcSvfm.mjs → package-PTsbpBGF.mjs} +2 -2
- package/dist/{rpc-CRpXmlRy.mjs → rpc-C35Y8Vto.mjs} +1 -1
- package/dist/{rpc-Blk-caU2.mjs → rpc-DlM7ml1e.mjs} +1 -1
- package/dist/{run-Cxq7C5mA.mjs → run-B3fosGEs.mjs} +44 -11
- package/dist/{run-CBWkZyBD.mjs → run-DtTnHqcs.mjs} +1 -1
- package/dist/{scheduler-ro49WXPg.mjs → scheduler-B3hBIkt8.mjs} +1 -1
- package/dist/{serveCommands-5tBepki5.mjs → serveCommands-Bj2aEfKX.mjs} +5 -5
- package/dist/{serveManager-D0edqFb9.mjs → serveManager-CCslS9Yt.mjs} +2 -2
- package/dist/{sideband-p3YKDEQ0.mjs → sideband-BtZMx9Af.mjs} +1 -1
- package/package.json +2 -2
|
@@ -95,6 +95,7 @@ const evaluatorOn = cfg.evaluator?.enabled !== false;
|
|
|
95
95
|
// --- (1) Oracle ---------------------------------------------------------
|
|
96
96
|
let oraclePass = true;
|
|
97
97
|
let oracleDetail = 'no oracle configured';
|
|
98
|
+
let activeIssues = []; // #0103: the specific pending issue ids parsed from the oracle output (if any)
|
|
98
99
|
const oracleCmd = cfg.oracle?.command || cfg.oracle?.test || cfg.oracle?.build || cfg.oracle;
|
|
99
100
|
if (typeof oracleCmd === 'string' && oracleCmd.trim()) {
|
|
100
101
|
try {
|
|
@@ -105,9 +106,13 @@ if (typeof oracleCmd === 'string' && oracleCmd.trim()) {
|
|
|
105
106
|
oracleDetail = `oracle passed: \`${oracleCmd}\``;
|
|
106
107
|
} catch (e) {
|
|
107
108
|
oraclePass = false;
|
|
109
|
+
const raw = String(e.stdout || '') + '\n' + String(e.stderr || '');
|
|
108
110
|
const tail = String(e.stdout || '').split('\n').slice(-12).join('\n')
|
|
109
111
|
+ String(e.stderr || '').split('\n').slice(-12).join('\n');
|
|
110
112
|
oracleDetail = `oracle FAILED: \`${oracleCmd}\`\n--- output tail ---\n${tail.trim()}`;
|
|
113
|
+
// #0103 PART 1: surface the specific pending issue ids (e.g. "5 pending: #0085 #0103 …") so the
|
|
114
|
+
// block hint NAMES what to finish instead of just saying the oracle failed.
|
|
115
|
+
activeIssues = [...new Set((raw.match(/#\d{2,}/g) || []))];
|
|
111
116
|
}
|
|
112
117
|
}
|
|
113
118
|
|
|
@@ -140,6 +145,27 @@ const done = oraclePass && evaluatorPass;
|
|
|
140
145
|
const now = new Date().toISOString();
|
|
141
146
|
const iterNum = state.iteration || 0;
|
|
142
147
|
if (done) {
|
|
148
|
+
// #0103 PART 2: don't fully stop while there are UNHANDLED inbox messages (peer/user msgs awaiting a
|
|
149
|
+
// reply/triage/merge). Reads the daemon's DURABLE inbox file at <PROJECT>/.svamp/<sid>/inbox.json (a
|
|
150
|
+
// sibling of this loop dir) — no subprocess/daemon round-trip — and counts messages that are neither
|
|
151
|
+
// handled by the agent nor read by a human (the same isInboxMessagePending semantics). BOUNDED by a
|
|
152
|
+
// per-loop cap so even a message flood can never trap the loop: it blocks at most INBOX_BLOCK_CAP
|
|
153
|
+
// times, then allows stop. (`inbox_guard: false` in loop.config.json disables it entirely.)
|
|
154
|
+
const INBOX_BLOCK_CAP = 1;
|
|
155
|
+
const inboxBlocks = Number(state.inbox_blocks) || 0;
|
|
156
|
+
if (cfg.inbox_guard !== false && inboxBlocks < INBOX_BLOCK_CAP) {
|
|
157
|
+
let pending = 0;
|
|
158
|
+
try {
|
|
159
|
+
const arr = readJSON(join(LOOP_DIR, '..', 'inbox.json'), []);
|
|
160
|
+
const msgs = Array.isArray(arr) ? arr : (Array.isArray(arr?.messages) ? arr.messages : []);
|
|
161
|
+
pending = msgs.filter((m) => m && !m.handled && !m.read).length;
|
|
162
|
+
} catch { pending = 0; } // fail-open: no/corrupt inbox file → never block
|
|
163
|
+
if (pending > 0) {
|
|
164
|
+
writeJSONAtomic(STATE, { ...state, inbox_blocks: inboxBlocks + 1, last_oracle: oracleDetail });
|
|
165
|
+
appendHistory({ ts: now, iteration: iterNum, decision: 'inbox-block', pending, detail: oracleDetail });
|
|
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
|
+
}
|
|
168
|
+
}
|
|
143
169
|
writeJSONAtomic(STATE, { ...state, active: false, phase: 'done', completed_at: now,
|
|
144
170
|
last_oracle: oracleDetail });
|
|
145
171
|
appendHistory({ ts: now, iteration: iterNum, decision: 'done', oracle: oraclePass, evaluator: evaluatorPass, detail: oracleDetail });
|
|
@@ -183,4 +209,8 @@ const STATEFP_REL = relative(PROJECT, join(LOOP_DIR, 'bin', 'state-fp.mjs')) ||
|
|
|
183
209
|
const evalHint = evaluatorOn && !evaluatorPass && oraclePass
|
|
184
210
|
? `\n\nThe code looks like it may be ready, but you must get an independent verdict: spawn the \`loop-evaluator\` subagent (or a fresh Task agent with a skeptical reviewer prompt) to judge the current diff against LOOP.md. If this loop works an issue backlog, the evaluator MUST also confirm that EACH issue closed during this loop is genuinely resolved by the actual change — a green oracle only means 'no open issues', not that each closed issue works; reject 'done' if any was closed without real resolution. BEYOND the individual issues, the evaluator MUST also judge HOLISTICALLY, from the USER's perspective: re-read the ORIGINAL request behind each closed issue (not just its triaged title) and the OVERALL project goal, and confirm we actually delivered what the user wanted end-to-end — including that the change was built / published / deployed wherever the issue implied it, not merely committed. Reject 'done' if the project goal is not genuinely met from the user's point of view, even when no issues remain open. Then write its result to \`${VERDICT_REL}\` as {"verdict":"done"|"continue","reason":"...","guidance":"...","state_fp":"<run: node ${STATEFP_REL}>"}. Do not write the verdict yourself.`
|
|
185
211
|
: '';
|
|
186
|
-
|
|
212
|
+
// #0103 PART 1: name the specific pending issues so the agent is hinted toward closing them.
|
|
213
|
+
const issuesHint = (!oraclePass && activeIssues.length)
|
|
214
|
+
? `\n\nFinish the active issues: ${activeIssues.join(', ')} — work each (triage → fix → verify → close) until \`svamp issue pending\` is empty.`
|
|
215
|
+
: '';
|
|
216
|
+
block(`Loop is not complete${remaining}. Keep working on the task in LOOP.md.\n\n${oracleDetail}\n${evaluatorOn ? '\n' + evaluatorDetail : ''}${issuesHint}${evalHint}\n\nUpdate LOOP.md progress, fix the blocking issue, then finish your turn again to be re-checked.`);
|
|
@@ -336,6 +336,44 @@ try {
|
|
|
336
336
|
ok(!hasStop(), 'inactive loop: inject-loop does not re-install (respects cancel)');
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
// ---- Test 22: block reason NAMES the pending issue ids (#0103 PART 1) ----
|
|
340
|
+
console.log('Test 22: block reason names the active issue ids');
|
|
341
|
+
{ const dir = mkdtempSync(join(tmpdir(), 'loopgate-')); dirs.push(dir);
|
|
342
|
+
git(dir, ['init', '-q']); git(dir, ['config', 'user.email', 't@t']); git(dir, ['config', 'user.name', 't']);
|
|
343
|
+
writeFileSync(join(dir, 'answer.txt'), 'x'); git(dir, ['add', '-A']); git(dir, ['commit', '-qm', 'init']);
|
|
344
|
+
// An oracle that fails and prints a pending list (like `svamp issue pending`).
|
|
345
|
+
execFileSync(node, [INIT, dir, '--session', SID, '--task', 't',
|
|
346
|
+
'--oracle', 'bash -c \'echo "2 pending: #0001 #0002"; exit 1\'', '--evaluator', 'off', '--max', '20'], { encoding: 'utf8' });
|
|
347
|
+
const r = runGate(dir);
|
|
348
|
+
ok(r.blocked && r.reason.includes('#0001') && r.reason.includes('#0002') && /Finish the active issues/i.test(r.reason),
|
|
349
|
+
'block reason names the pending issue ids (#0001, #0002)');
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// ---- Test 23: inbox guard blocks stop on an UNHANDLED message, bounded (#0103 PART 2) ----
|
|
353
|
+
console.log('Test 23: inbox guard blocks an otherwise-complete loop, and is bounded');
|
|
354
|
+
{ const d = newProject({ evaluator: 'on' }); dirs.push(d);
|
|
355
|
+
writeFileSync(join(d, 'answer.txt'), 'DONE\n'); // oracle passes
|
|
356
|
+
writeVerdict(d, { verdict: 'done', reason: 'ok', state_fp: fp(d) });
|
|
357
|
+
const inboxP = join(d, '.svamp', SID, 'inbox.json');
|
|
358
|
+
writeFileSync(inboxP, JSON.stringify([{ messageId: 'm1', from: 'agent:x', read: false, handled: false }]));
|
|
359
|
+
const r1 = runGate(d);
|
|
360
|
+
ok(r1.blocked && /unhandled inbox/i.test(r1.reason), 'an unhandled inbox message blocks the otherwise-complete loop');
|
|
361
|
+
ok(readState(d).phase !== 'done', 'did not close while an inbox message is unhandled');
|
|
362
|
+
// Bounded: inbox_blocks is now 1 → a second check ALLOWS stop even though the message is still pending.
|
|
363
|
+
const r2 = runGate(d);
|
|
364
|
+
ok(!r2.blocked && readState(d).phase === 'done', 'inbox guard is bounded — second time allows stop (no flood-trap)');
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// ---- Test 24: inbox guard ALLOWS stop when inbox is empty / all-handled (#0103 PART 2) ----
|
|
368
|
+
console.log('Test 24: inbox guard allows stop when nothing is pending');
|
|
369
|
+
{ const d = newProject({ evaluator: 'on' }); dirs.push(d);
|
|
370
|
+
writeFileSync(join(d, 'answer.txt'), 'DONE\n');
|
|
371
|
+
writeVerdict(d, { verdict: 'done', reason: 'ok', state_fp: fp(d) });
|
|
372
|
+
writeFileSync(join(d, '.svamp', SID, 'inbox.json'), JSON.stringify([{ messageId: 'a', read: true }, { messageId: 'b', handled: true }]));
|
|
373
|
+
const r = runGate(d);
|
|
374
|
+
ok(!r.blocked && readState(d).phase === 'done', 'all-handled inbox allows the loop to complete');
|
|
375
|
+
}
|
|
376
|
+
|
|
339
377
|
console.log(`\n${fail === 0 ? '✅' : '❌'} ${pass} passed, ${fail} failed`);
|
|
340
378
|
process.exit(fail === 0 ? 0 : 1);
|
|
341
379
|
} finally {
|
|
@@ -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 { y as shortId } from './run-
|
|
5
|
+
import { y as shortId } from './run-B3fosGEs.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-B3fosGEs.mjs').then(function (n) { return n.a6; });
|
|
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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-B3fosGEs.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-B3fosGEs.mjs').then(function (n) { return n.ac; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.ae; });
|
|
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-C1V3SEF9.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-Bj2aEfKX.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-BFZhHLhh.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-BItE-9OU.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-BJ3G0VVJ.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-BWD_a3hE.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-PTsbpBGF.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-DtTnHqcs.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-B3fosGEs.mjs').then(function (n) { return n.a9; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.a9; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.aa; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.a8; });
|
|
491
|
+
const { GeminiTransport } = await import('./run-B3fosGEs.mjs').then(function (n) { return n.ab; });
|
|
492
|
+
const { DefaultTransport } = await import('./run-B3fosGEs.mjs').then(function (n) { return n.a7; });
|
|
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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Dxuc65V_.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-Dxuc65V_.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-Dxuc65V_.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-Dxuc65V_.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-Dxuc65V_.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-Dxuc65V_.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-Dxuc65V_.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-Dxuc65V_.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-Dxuc65V_.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-Bxb8oEBa.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-C-2EKVda.mjs');
|
|
1065
1065
|
await fleetExec(command, { cwd });
|
|
1066
1066
|
} else {
|
|
1067
|
-
const { machineExec } = await import('./commands-
|
|
1067
|
+
const { machineExec } = await import('./commands-Bxb8oEBa.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-Bxb8oEBa.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-Dxuc65V_.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-Bxb8oEBa.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-C-2EKVda.mjs');
|
|
1151
1151
|
await fleetStatus();
|
|
1152
1152
|
} else if (sub === "upgrade-claude") {
|
|
1153
|
-
const { fleetUpgradeClaude } = await import('./fleet-
|
|
1153
|
+
const { fleetUpgradeClaude } = await import('./fleet-C-2EKVda.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-C-2EKVda.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-C-2EKVda.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-C-2EKVda.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-BF7fzTcc.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-B3fosGEs.mjs').then(function (n) { return n.ac; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.ac; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.a5; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.a5; });
|
|
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-Bxb8oEBa.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-CtTe4oJ4.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-DweBQRAL.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-B3fosGEs.mjs').then(function (n) { return n.a5; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.a5; });
|
|
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-B3fosGEs.mjs').then(function (n) { return n.ad; });
|
|
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 { D as parseFrontmatter, E as getSkillsServer, F as getSkillsWorkspaceName, G as getSkillsCollectionName, H as fetchWithTimeout, I as searchSkills, J as SKILLS_DIR, K as getSkillInfo, L as downloadSkillFile, M as listSkillFiles } from './run-
|
|
4
|
+
import { D as parseFrontmatter, E as getSkillsServer, F as getSkillsWorkspaceName, G as getSkillsCollectionName, H as fetchWithTimeout, I as searchSkills, J as SKILLS_DIR, K as getSkillInfo, L as downloadSkillFile, M as listSkillFiles } from './run-B3fosGEs.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'url';
|
|
7
7
|
import 'child_process';
|
|
@@ -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-Bxb8oEBa.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-B3fosGEs.mjs';
|
|
9
9
|
import 'os';
|
|
10
10
|
import 'fs/promises';
|
|
11
11
|
import 'url';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { execSync } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot, t as searchIssues, q as listIssues, o as addComment, u as updateIssue, n as getIssue, v as isVisibleTo, x as summarize, p as addIssue } from './run-
|
|
2
|
+
import { m as resolveProjectRoot, t as searchIssues, q as listIssues, o as addComment, u as updateIssue, n as getIssue, v as isVisibleTo, x as summarize, p as addIssue } from './run-B3fosGEs.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-B3fosGEs.mjs';
|
|
3
3
|
import { w 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-DEZ8e-uE.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
@@ -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-Bxb8oEBa.mjs';
|
|
4
4
|
import { execSync } from 'node:child_process';
|
|
5
|
-
import { u as updateIssue, o as addComment, p as addIssue, y as shortId } from './run-
|
|
5
|
+
import { u as updateIssue, o as addComment, p as addIssue, y as shortId } from './run-B3fosGEs.mjs';
|
|
6
6
|
import 'node:os';
|
|
7
7
|
import 'os';
|
|
8
8
|
import 'fs/promises';
|
|
@@ -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 { O as formatHandle, P as normalizeAllowedUser, Q as loadSecurityContextConfig, T as resolveSecurityContext, U as buildSecurityContextFromFlags, V as mergeSecurityContexts, c as connectToHypha, W as buildSessionShareUrl, X as computeOutboundHop, y as shortId, Y as buildMachineShareUrl, Z as parseHandle, _ as handleMatchesMetadata } from './run-
|
|
5
|
+
import { O as formatHandle, P as normalizeAllowedUser, Q as loadSecurityContextConfig, T as resolveSecurityContext, U as buildSecurityContextFromFlags, V as mergeSecurityContexts, c as connectToHypha, W as buildSessionShareUrl, X as computeOutboundHop, y as shortId, Y as buildMachineShareUrl, Z as parseHandle, _ as handleMatchesMetadata } from './run-B3fosGEs.mjs';
|
|
6
6
|
import 'os';
|
|
7
7
|
import 'fs/promises';
|
|
8
8
|
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-BgabHfqV.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-Bxb8oEBa.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-BgabHfqV.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-Bxb8oEBa.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-Bxb8oEBa.mjs');
|
|
176
176
|
const { server, machine } = await connectAndGetMachine();
|
|
177
177
|
try {
|
|
178
178
|
await machine.tunnelStop({ name });
|
|
@@ -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-B3fosGEs.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-B3fosGEs.mjs';
|
|
8
8
|
import 'fs/promises';
|
|
9
9
|
import 'url';
|
|
10
10
|
import 'node:crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { N as resolveModel, $ as describeMisconfiguration, a0 as buildMachineDeps } from './run-
|
|
2
|
-
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-
|
|
1
|
+
import { N as resolveModel, $ as describeMisconfiguration, a0 as buildMachineDeps } from './run-B3fosGEs.mjs';
|
|
2
|
+
import { handleRealtimeEvent, initMachineVoiceSession } from './sideband-BtZMx9Af.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-B3fosGEs.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.197";
|
|
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.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-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.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-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-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.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-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
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, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues, v as isVisibleTo } from './run-
|
|
1
|
+
import { m as resolveProjectRoot, u as updateIssue, n as getIssue, o as addComment, p as addIssue, q as listIssues, t as searchIssues, v as isVisibleTo } from './run-B3fosGEs.mjs';
|
|
2
2
|
import 'os';
|
|
3
3
|
import 'fs/promises';
|
|
4
4
|
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-B3fosGEs.mjs';
|
|
3
3
|
import { g as getWorkflow, w as workflowSteps, s as setWorkflowEnabled, r as removeWorkflow, a as saveWorkflow, b as rawWorkflow, l as listWorkflows } from './store-DEZ8e-uE.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
@@ -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-BgabHfqV.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-BtZMx9Af.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-Bxb8oEBa.mjs');
|
|
3462
3462
|
const timeout = c.reply?.timeout_sec || 120;
|
|
3463
3463
|
let result;
|
|
3464
3464
|
try {
|
|
@@ -3766,6 +3766,32 @@ function applyInboxClear(inbox, opts) {
|
|
|
3766
3766
|
return { kept, removed: inbox.length - kept.length };
|
|
3767
3767
|
}
|
|
3768
3768
|
|
|
3769
|
+
function inboxFilePath(projectDir, sessionId) {
|
|
3770
|
+
return join(projectDir, ".svamp", sessionId, "inbox.json");
|
|
3771
|
+
}
|
|
3772
|
+
function loadInbox(projectDir, sessionId) {
|
|
3773
|
+
try {
|
|
3774
|
+
const p = inboxFilePath(projectDir, sessionId);
|
|
3775
|
+
if (!existsSync(p)) return [];
|
|
3776
|
+
const data = JSON.parse(readFileSync(p, "utf8"));
|
|
3777
|
+
if (Array.isArray(data)) return data;
|
|
3778
|
+
if (data && Array.isArray(data.messages)) return data.messages;
|
|
3779
|
+
return [];
|
|
3780
|
+
} catch {
|
|
3781
|
+
return [];
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
function saveInbox(projectDir, sessionId, inbox) {
|
|
3785
|
+
try {
|
|
3786
|
+
const p = inboxFilePath(projectDir, sessionId);
|
|
3787
|
+
mkdirSync(dirname(p), { recursive: true });
|
|
3788
|
+
const tmp = `${p}.tmp-${process.pid}`;
|
|
3789
|
+
writeFileSync(tmp, JSON.stringify(inbox));
|
|
3790
|
+
renameSync(tmp, p);
|
|
3791
|
+
} catch {
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3769
3795
|
function envInt(name, fallback) {
|
|
3770
3796
|
const raw = process.env[name];
|
|
3771
3797
|
if (raw === void 0 || raw === "") return fallback;
|
|
@@ -4165,9 +4191,16 @@ function createSessionStore(server, sessionId, initialMetadata, initialAgentStat
|
|
|
4165
4191
|
mode: "remote",
|
|
4166
4192
|
time: Date.now()
|
|
4167
4193
|
};
|
|
4168
|
-
const inbox =
|
|
4194
|
+
const inbox = loadInbox(metadata.path || process.cwd(), sessionId);
|
|
4169
4195
|
const INBOX_MAX = 100;
|
|
4196
|
+
const persistInbox = () => {
|
|
4197
|
+
try {
|
|
4198
|
+
saveInbox(metadata.path || process.cwd(), sessionId, inbox);
|
|
4199
|
+
} catch {
|
|
4200
|
+
}
|
|
4201
|
+
};
|
|
4170
4202
|
const syncInboxToMetadata = () => {
|
|
4203
|
+
persistInbox();
|
|
4171
4204
|
metadata.inbox = inbox.map((m) => ({
|
|
4172
4205
|
messageId: m.messageId,
|
|
4173
4206
|
body: m.body,
|
|
@@ -11897,7 +11930,7 @@ async function startDaemon(options) {
|
|
|
11897
11930
|
saveExposedTunnels(list);
|
|
11898
11931
|
}
|
|
11899
11932
|
async function createExposedTunnel(spec) {
|
|
11900
|
-
const { FrpcTunnel } = await import('./frpc-
|
|
11933
|
+
const { FrpcTunnel } = await import('./frpc-BgabHfqV.mjs');
|
|
11901
11934
|
const tunnel = new FrpcTunnel({
|
|
11902
11935
|
name: spec.name,
|
|
11903
11936
|
ports: spec.ports,
|
|
@@ -11917,7 +11950,7 @@ async function startDaemon(options) {
|
|
|
11917
11950
|
return tunnel;
|
|
11918
11951
|
}
|
|
11919
11952
|
const tunnelRecreateState = /* @__PURE__ */ new Map();
|
|
11920
|
-
const { ServeManager } = await import('./serveManager-
|
|
11953
|
+
const { ServeManager } = await import('./serveManager-CCslS9Yt.mjs');
|
|
11921
11954
|
const serveManager = new ServeManager(SVAMP_HOME, (msg) => logger.log(`[SERVE] ${msg}`), hyphaServerUrl);
|
|
11922
11955
|
ensureAutoInstalledSkills(logger).catch(() => {
|
|
11923
11956
|
});
|
|
@@ -13782,11 +13815,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
13782
13815
|
});
|
|
13783
13816
|
},
|
|
13784
13817
|
onIssue: async (params) => {
|
|
13785
|
-
const { issueRpc } = await import('./rpc-
|
|
13818
|
+
const { issueRpc } = await import('./rpc-C35Y8Vto.mjs');
|
|
13786
13819
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
|
|
13787
13820
|
},
|
|
13788
13821
|
onWorkflow: async (params) => {
|
|
13789
|
-
const { workflowRpc } = await import('./rpc-
|
|
13822
|
+
const { workflowRpc } = await import('./rpc-DlM7ml1e.mjs');
|
|
13790
13823
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
13791
13824
|
},
|
|
13792
13825
|
onRipgrep: async (args, cwd) => {
|
|
@@ -14296,11 +14329,11 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
14296
14329
|
});
|
|
14297
14330
|
},
|
|
14298
14331
|
onIssue: async (params) => {
|
|
14299
|
-
const { issueRpc } = await import('./rpc-
|
|
14332
|
+
const { issueRpc } = await import('./rpc-C35Y8Vto.mjs');
|
|
14300
14333
|
return issueRpc(params?.cwd || directory, params || {}, { notifySession: notifyIssueOwner });
|
|
14301
14334
|
},
|
|
14302
14335
|
onWorkflow: async (params) => {
|
|
14303
|
-
const { workflowRpc } = await import('./rpc-
|
|
14336
|
+
const { workflowRpc } = await import('./rpc-DlM7ml1e.mjs');
|
|
14304
14337
|
return workflowRpc(params?.cwd || directory, params || {});
|
|
14305
14338
|
},
|
|
14306
14339
|
onRipgrep: async (args, cwd) => {
|
|
@@ -15055,7 +15088,7 @@ ${capturedError}${buildClaudeErrorHint(capturedError)}`;
|
|
|
15055
15088
|
const PING_TIMEOUT_MS = 15e3;
|
|
15056
15089
|
const POST_RECONNECT_GRACE_MS = 2e4;
|
|
15057
15090
|
const RECONNECT_JITTER_MS = 2500;
|
|
15058
|
-
const { WorkflowScheduler } = await import('./scheduler-
|
|
15091
|
+
const { WorkflowScheduler } = await import('./scheduler-B3hBIkt8.mjs');
|
|
15059
15092
|
const workflowScheduler = new WorkflowScheduler({
|
|
15060
15093
|
projectRoots: () => {
|
|
15061
15094
|
const dirs = /* @__PURE__ */ new Set();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a1 as applyClaudeProxyEnv, a2 as composeSessionId, a3 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a4 as generateHookSettings } from './run-
|
|
1
|
+
import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import { a1 as applyClaudeProxyEnv, a2 as composeSessionId, a3 as generateFriendlyName, c as connectToHypha, a as createSessionStore, r as registerMachineService, a4 as generateHookSettings } from './run-B3fosGEs.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,5 +1,5 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
-
import { m as resolveProjectRoot, w as cronMatches } from './run-
|
|
2
|
+
import { m as resolveProjectRoot, w as cronMatches } from './run-B3fosGEs.mjs';
|
|
3
3
|
import { l as listWorkflows, i as isWorkflowEnabled, c as workflowCrons, w as workflowSteps } from './store-DEZ8e-uE.mjs';
|
|
4
4
|
import 'os';
|
|
5
5
|
import 'fs/promises';
|
|
@@ -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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-Bxb8oEBa.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-B3fosGEs.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-BgabHfqV.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, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-
|
|
1
|
+
import { R as READ_ONLY_TOOLS, z as loadMachineContext, A as buildMachineInstructions, B as machineToolsForRole, C as buildMachineTools } from './run-B3fosGEs.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.197",
|
|
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.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-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.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-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-workflow-store.mjs && npx tsx test/test-workflow-rpc.mjs && npx tsx test/test-workflow-scheduler.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-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",
|
|
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",
|