agent-yes 1.272.0-beta.658.1 → 1.272.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SUPPORTED_CLIS-tpJdgRCT.js → SUPPORTED_CLIS-C1rgBiLd.js} +3 -3
- package/dist/{SUPPORTED_CLIS-DNNdMJN_.js → SUPPORTED_CLIS-DFOStQkx.js} +2 -2
- package/dist/{agentShare-DJDnjvQc.js → agentShare-CLhjMsHZ.js} +3 -3
- package/dist/{callback-pDrrtfQ8.js → callback-BVKHRbUE.js} +3 -3
- package/dist/{callback-Dc1PCZUk.js → callback-C64-nP2U.js} +3 -3
- package/dist/cli.js +5 -5
- package/dist/{cmdPs-YBWZA9q_.js → cmdPs-Cu__YsO7.js} +3 -3
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-ByJtcbbX.js → notifyDaemon-BmtjtW5L.js} +3 -3
- package/dist/{parentPingLoop-D1oxgeES.js → parentPingLoop-BtggDU06.js} +2 -2
- package/dist/{remotes-CNNWole7.js → remotes-BiftUp09.js} +1 -1
- package/dist/{remotes-BL2MegXx.js → remotes-IzQHupeo.js} +8 -16
- package/dist/{rustBinary-DPRR_QOA.js → rustBinary-ISnNc7Uf.js} +2 -2
- package/dist/{schedule-B8S10ci8.js → schedule-D37Q9LGO.js} +4 -4
- package/dist/{serve-CcVhTYIX.js → serve-Dw0x9Of9.js} +18 -18
- package/dist/{setup-CJGkmk3P.js → setup-BmBjOyza.js} +2 -2
- package/dist/{subcommands-DX0iQzwD.js → subcommands-DKqbwkvb.js} +24 -24
- package/dist/{subcommands-C0-NKq4X.js → subcommands-TAOmVCxo.js} +2 -2
- package/dist/{terminal-CCLw4qIt.js → terminal-BQ79zaFa.js} +2 -2
- package/dist/trayApp-BHx2FN2d.js +5 -0
- package/dist/{trayApp-BxrNX0KY.js → trayApp-BsETHuMR.js} +2 -2
- package/dist/{ts-C5yjBnoI.js → ts-Bb-h7XQP.js} +3 -3
- package/dist/{versionChecker-DHrDPEw3.js → versionChecker-D9LB-MW5.js} +2 -2
- package/dist/{widget-Bf-hAxpl.js → widget-gRjJprB5.js} +3 -3
- package/dist/{ws-KZfHmxtS.js → ws-BFli3FKi.js} +2 -2
- package/dist/{ws-CWMIHaJ8.js → ws-CklRMQwW.js} +3 -3
- package/package.json +1 -1
- package/ts/remotes.ts +7 -24
- package/ts/subcommands.ts +9 -9
- package/dist/trayApp-10o8DC7r.js +0 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-D9LB-MW5.js";
|
|
3
|
+
import "./ts-Bb-h7XQP.js";
|
|
4
4
|
import "./todoAutomation-BETGOik9.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-Dq4KY2IV.js";
|
|
7
7
|
import "./pidStore-DJqSZPJi.js";
|
|
8
8
|
import "./messageLog-BYFwioFY.js";
|
|
9
9
|
import "./todoStore-Wk8U4zJ8.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DFOStQkx.js";
|
|
11
11
|
|
|
12
12
|
export { SUPPORTED_CLIS };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-Bb-h7XQP.js";
|
|
2
2
|
|
|
3
3
|
//#region ts/SUPPORTED_CLIS.ts
|
|
4
4
|
const SUPPORTED_CLIS = Object.keys(CLIS_CONFIG);
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
export { SUPPORTED_CLIS as t };
|
|
8
|
-
//# sourceMappingURL=SUPPORTED_CLIS-
|
|
8
|
+
//# sourceMappingURL=SUPPORTED_CLIS-DFOStQkx.js.map
|
|
@@ -3,10 +3,10 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-OLfcNxiv.js";
|
|
5
5
|
import "./configShared-DYxlvrH0.js";
|
|
6
|
-
import { B as resolveOne } from "./subcommands-
|
|
6
|
+
import { B as resolveOne } from "./subcommands-DKqbwkvb.js";
|
|
7
7
|
import "./notifyStore-Dus2D1XA.js";
|
|
8
8
|
import "./webrtcLink-B72AQ2eb.js";
|
|
9
|
-
import "./remotes-
|
|
9
|
+
import "./remotes-IzQHupeo.js";
|
|
10
10
|
import { a as startShare } from "./share-RgJUhzqG.js";
|
|
11
11
|
|
|
12
12
|
//#region ts/agentShare.ts
|
|
@@ -230,4 +230,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
230
230
|
|
|
231
231
|
//#endregion
|
|
232
232
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
233
|
-
//# sourceMappingURL=agentShare-
|
|
233
|
+
//# sourceMappingURL=agentShare-CLhjMsHZ.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
2
|
-
import { B as resolveOne } from "./subcommands-
|
|
2
|
+
import { B as resolveOne } from "./subcommands-DKqbwkvb.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-Bbe7rpN2.js";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
@@ -72,7 +72,7 @@ async function resolveBase(flag) {
|
|
|
72
72
|
if (flag) return flag;
|
|
73
73
|
if (process.env.AGENT_YES_CALLBACK_BASE) return process.env.AGENT_YES_CALLBACK_BASE;
|
|
74
74
|
try {
|
|
75
|
-
const { resolveLocalServeUrl } = await import("./serve-
|
|
75
|
+
const { resolveLocalServeUrl } = await import("./serve-Dw0x9Of9.js");
|
|
76
76
|
const url = await resolveLocalServeUrl();
|
|
77
77
|
if (url) return url;
|
|
78
78
|
} catch {}
|
|
@@ -187,4 +187,4 @@ async function cmdCallback(rest) {
|
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
189
|
export { loadOrCreateCallbackSecret as i, isCallbackRevoked as n, loadCallbackSecretReadOnly as r, cmdCallback as t };
|
|
190
|
-
//# sourceMappingURL=callback-
|
|
190
|
+
//# sourceMappingURL=callback-BVKHRbUE.js.map
|
|
@@ -3,11 +3,11 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-OLfcNxiv.js";
|
|
5
5
|
import "./configShared-DYxlvrH0.js";
|
|
6
|
-
import "./subcommands-
|
|
6
|
+
import "./subcommands-DKqbwkvb.js";
|
|
7
7
|
import "./notifyStore-Dus2D1XA.js";
|
|
8
8
|
import "./webrtcLink-B72AQ2eb.js";
|
|
9
|
-
import "./remotes-
|
|
9
|
+
import "./remotes-IzQHupeo.js";
|
|
10
10
|
import "./callbackCore-Bbe7rpN2.js";
|
|
11
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
11
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-BVKHRbUE.js";
|
|
12
12
|
|
|
13
13
|
export { cmdCallback };
|
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import { t as invokedCliName } from "./invokedCli-uqM2YYA7.js";
|
|
3
3
|
import { n as logger } from "./logger-CDIsZ-Pp.js";
|
|
4
|
-
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-
|
|
5
|
-
import { r as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-D9LB-MW5.js";
|
|
5
|
+
import { r as getRustBinary } from "./rustBinary-ISnNc7Uf.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
295
295
|
const rawArg = process.argv[2];
|
|
296
296
|
const managerCommands = !invokedCliName(process.argv);
|
|
297
297
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
298
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-
|
|
298
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-TAOmVCxo.js");
|
|
299
299
|
if (isHelpFlag && process.argv.length === 3) {
|
|
300
300
|
await cmdHelp(managerCommands);
|
|
301
301
|
process.exit(0);
|
|
@@ -309,7 +309,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
309
309
|
process.exit(code ?? 0);
|
|
310
310
|
}
|
|
311
311
|
{
|
|
312
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
312
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C1rgBiLd.js");
|
|
313
313
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
314
314
|
process.stderr.write(`ay: unknown subcommand or CLI '${rawArg}'.\n See 'ay help' for subcommands. To run an agent, name a CLI:\n 'ay <cli> …' (e.g. 'ay claude …') or 'ay --cli <cli> …'.\n`);
|
|
315
315
|
process.exit(1);
|
|
@@ -360,7 +360,7 @@ if (config.useRust) {
|
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
if (rustBinary) {
|
|
363
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
363
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-C1rgBiLd.js");
|
|
364
364
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
365
365
|
if (config.verbose) {
|
|
366
366
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
|
@@ -3,10 +3,10 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-OLfcNxiv.js";
|
|
5
5
|
import "./configShared-DYxlvrH0.js";
|
|
6
|
-
import { O as listRecords, d as deriveLiveState, et as buildAgentForest, tt as flattenForest } from "./subcommands-
|
|
6
|
+
import { O as listRecords, d as deriveLiveState, et as buildAgentForest, tt as flattenForest } from "./subcommands-DKqbwkvb.js";
|
|
7
7
|
import "./notifyStore-Dus2D1XA.js";
|
|
8
8
|
import "./webrtcLink-B72AQ2eb.js";
|
|
9
|
-
import "./remotes-
|
|
9
|
+
import "./remotes-IzQHupeo.js";
|
|
10
10
|
import yargs from "yargs";
|
|
11
11
|
import { execFile } from "node:child_process";
|
|
12
12
|
import { readFileSync } from "node:fs";
|
|
@@ -574,4 +574,4 @@ function readPpidSync(pid) {
|
|
|
574
574
|
|
|
575
575
|
//#endregion
|
|
576
576
|
export { cmdPs };
|
|
577
|
-
//# sourceMappingURL=cmdPs-
|
|
577
|
+
//# sourceMappingURL=cmdPs-Cu__YsO7.js.map
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import { a as hasTodoStore, i as answerAsk, l as AgentContext, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-
|
|
2
|
+
import "./versionChecker-D9LB-MW5.js";
|
|
3
|
+
import { a as hasTodoStore, i as answerAsk, l as AgentContext, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-Bb-h7XQP.js";
|
|
4
4
|
import { a as renderTree, c as describeBlock, i as renderDigest, l as monitorHint, o as unblockedTasks, r as openBlockers, t as reconcileTodos, u as removeControlCharacters } from "./todoAutomation-BETGOik9.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-Dq4KY2IV.js";
|
|
@@ -3,10 +3,10 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-OLfcNxiv.js";
|
|
5
5
|
import "./configShared-DYxlvrH0.js";
|
|
6
|
-
import { L as renderLogTailLines, O as listRecords, d as deriveLiveState, x as isPidAlive } from "./subcommands-
|
|
6
|
+
import { L as renderLogTailLines, O as listRecords, d as deriveLiveState, x as isPidAlive } from "./subcommands-DKqbwkvb.js";
|
|
7
7
|
import { f as readInbox, g as daemonLockOwnerPath, h as daemonLockDir, i as gcInboxes, l as listInboxParents, m as shouldStealLock, n as appendEvent, s as hostId, u as liveWatchers, x as notifyDir } from "./notifyStore-Dus2D1XA.js";
|
|
8
8
|
import "./webrtcLink-B72AQ2eb.js";
|
|
9
|
-
import "./remotes-
|
|
9
|
+
import "./remotes-IzQHupeo.js";
|
|
10
10
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
12
12
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -863,4 +863,4 @@ async function ensureDaemon() {
|
|
|
863
863
|
|
|
864
864
|
//#endregion
|
|
865
865
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
866
|
-
//# sourceMappingURL=notifyDaemon-
|
|
866
|
+
//# sourceMappingURL=notifyDaemon-BmtjtW5L.js.map
|
|
@@ -338,7 +338,7 @@ async function isParentWatching(parentWrapperPid, parentAgentPid, selfAgentPid,
|
|
|
338
338
|
logger.debug("[parent-ping] watcher lookup failed:", error);
|
|
339
339
|
}
|
|
340
340
|
try {
|
|
341
|
-
const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-
|
|
341
|
+
const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-TAOmVCxo.js");
|
|
342
342
|
const last = await lastReadAt(`agent:${parentAgentPid}`, selfAgentPid);
|
|
343
343
|
if (last !== null && now - last <= READ_WINDOW_MS) return true;
|
|
344
344
|
} catch (error) {
|
|
@@ -466,4 +466,4 @@ function startParentPingLoop(opts) {
|
|
|
466
466
|
|
|
467
467
|
//#endregion
|
|
468
468
|
export { startParentPingLoop };
|
|
469
|
-
//# sourceMappingURL=parentPingLoop-
|
|
469
|
+
//# sourceMappingURL=parentPingLoop-BtggDU06.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./e2e-OLfcNxiv.js";
|
|
2
2
|
import "./webrtcLink-B72AQ2eb.js";
|
|
3
|
-
import { a as resolveRemoteSpec, i as readRemotes, n as deleteRemoteAlias, o as writeRemoteAlias, r as parseDirectRemoteSpec, t as cmdRemote } from "./remotes-
|
|
3
|
+
import { a as resolveRemoteSpec, i as readRemotes, n as deleteRemoteAlias, o as writeRemoteAlias, r as parseDirectRemoteSpec, t as cmdRemote } from "./remotes-IzQHupeo.js";
|
|
4
4
|
|
|
5
5
|
export { cmdRemote };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as isWebrtcSpec
|
|
1
|
+
import { n as isWebrtcSpec } from "./webrtcLink-B72AQ2eb.js";
|
|
2
2
|
import { mkdir, readFile, writeFile } from "fs/promises";
|
|
3
3
|
import { homedir } from "os";
|
|
4
4
|
import path from "path";
|
|
@@ -9,11 +9,6 @@ function remotesPath() {
|
|
|
9
9
|
const dir = process.env.AGENT_YES_HOME ?? path.join(homedir(), ".agent-yes");
|
|
10
10
|
return path.join(dir, "remotes.yaml");
|
|
11
11
|
}
|
|
12
|
-
/** A display label for a WebRTC share link: the room id, never the local bridge. */
|
|
13
|
-
function webrtcLabel(link) {
|
|
14
|
-
const parsed = parseWebrtcLink(link);
|
|
15
|
-
return parsed ? `webrtc:${parsed.room}` : "webrtc";
|
|
16
|
-
}
|
|
17
12
|
async function readRemotes() {
|
|
18
13
|
let raw;
|
|
19
14
|
try {
|
|
@@ -66,25 +61,23 @@ function parseDirectRemoteSpec(spec) {
|
|
|
66
61
|
* Returns null if the spec doesn't match any remote.
|
|
67
62
|
*/
|
|
68
63
|
async function resolveRemoteSpec(spec) {
|
|
69
|
-
if (isWebrtcSpec(spec)) return resolveWebrtc(spec, void 0
|
|
64
|
+
if (isWebrtcSpec(spec)) return resolveWebrtc(spec, void 0);
|
|
70
65
|
const direct = parseDirectRemoteSpec(spec);
|
|
71
66
|
if (direct) return {
|
|
72
67
|
url: direct.baseUrl,
|
|
73
68
|
token: direct.token,
|
|
74
|
-
keyword: direct.keyword
|
|
75
|
-
label: `${direct.host}:${direct.port}`
|
|
69
|
+
keyword: direct.keyword
|
|
76
70
|
};
|
|
77
71
|
const colonIdx = spec.indexOf(":");
|
|
78
72
|
const alias = colonIdx >= 0 ? spec.slice(0, colonIdx) : spec;
|
|
79
73
|
const keyword = colonIdx >= 0 ? spec.slice(colonIdx + 1) || void 0 : void 0;
|
|
80
74
|
const cfg = (await readRemotes()).get(alias);
|
|
81
75
|
if (!cfg) return null;
|
|
82
|
-
if (isWebrtcSpec(cfg.url)) return resolveWebrtc(cfg.url, keyword
|
|
76
|
+
if (isWebrtcSpec(cfg.url)) return resolveWebrtc(cfg.url, keyword);
|
|
83
77
|
return {
|
|
84
78
|
url: cfg.url,
|
|
85
79
|
token: cfg.token,
|
|
86
|
-
keyword
|
|
87
|
-
label: alias
|
|
80
|
+
keyword
|
|
88
81
|
};
|
|
89
82
|
}
|
|
90
83
|
/**
|
|
@@ -92,14 +85,13 @@ async function resolveRemoteSpec(spec) {
|
|
|
92
85
|
* ordinary http remote, so every fetch-based remote command works unchanged.
|
|
93
86
|
* The bridge lives for the rest of the process (torn down on `process.exit`).
|
|
94
87
|
*/
|
|
95
|
-
async function resolveWebrtc(link, keyword
|
|
88
|
+
async function resolveWebrtc(link, keyword) {
|
|
96
89
|
const { startWebrtcBridge } = await import("./webrtcRemote-D68dkqFp.js");
|
|
97
90
|
const bridge = await startWebrtcBridge(link);
|
|
98
91
|
return {
|
|
99
92
|
url: bridge.baseUrl,
|
|
100
93
|
token: bridge.token,
|
|
101
|
-
keyword
|
|
102
|
-
label
|
|
94
|
+
keyword
|
|
103
95
|
};
|
|
104
96
|
}
|
|
105
97
|
async function cmdRemote(rest) {
|
|
@@ -181,4 +173,4 @@ async function cmdRemote(rest) {
|
|
|
181
173
|
|
|
182
174
|
//#endregion
|
|
183
175
|
export { resolveRemoteSpec as a, readRemotes as i, deleteRemoteAlias as n, writeRemoteAlias as o, parseDirectRemoteSpec as r, cmdRemote as t };
|
|
184
|
-
//# sourceMappingURL=remotes-
|
|
176
|
+
//# sourceMappingURL=remotes-IzQHupeo.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-D9LB-MW5.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -243,4 +243,4 @@ async function getRustBinary(options = {}) {
|
|
|
243
243
|
|
|
244
244
|
//#endregion
|
|
245
245
|
export { findTrayLauncher as n, getRustBinary as r, findSpawnHiddenLauncher as t };
|
|
246
|
-
//# sourceMappingURL=rustBinary-
|
|
246
|
+
//# sourceMappingURL=rustBinary-ISnNc7Uf.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-D9LB-MW5.js";
|
|
3
|
+
import "./ts-Bb-h7XQP.js";
|
|
4
4
|
import "./todoAutomation-BETGOik9.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-Dq4KY2IV.js";
|
|
7
7
|
import "./pidStore-DJqSZPJi.js";
|
|
8
8
|
import "./messageLog-BYFwioFY.js";
|
|
9
9
|
import "./todoStore-Wk8U4zJ8.js";
|
|
10
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
10
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DFOStQkx.js";
|
|
11
11
|
import { f as resolveSpawnCwd } from "./workspaceConfig-EK7XNsgR.js";
|
|
12
12
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CKc1BN5J.js";
|
|
13
13
|
import { createHash } from "node:crypto";
|
|
@@ -154,4 +154,4 @@ async function cmdSchedule(rest) {
|
|
|
154
154
|
|
|
155
155
|
//#endregion
|
|
156
156
|
export { cmdSchedule };
|
|
157
|
-
//# sourceMappingURL=schedule-
|
|
157
|
+
//# sourceMappingURL=schedule-D37Q9LGO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
3
|
-
import { t as findSpawnHiddenLauncher } from "./rustBinary-
|
|
4
|
-
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-
|
|
2
|
+
import { r as getInstalledPackage } from "./versionChecker-D9LB-MW5.js";
|
|
3
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-ISnNc7Uf.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-Bb-h7XQP.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-CtmsY6I-.js";
|
|
6
6
|
import { u as removeControlCharacters } from "./todoAutomation-BETGOik9.js";
|
|
7
7
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
@@ -12,18 +12,18 @@ import { t as pgidForWrapper } from "./reaper-C4BvNylH.js";
|
|
|
12
12
|
import "./todoStore-Wk8U4zJ8.js";
|
|
13
13
|
import "./e2e-OLfcNxiv.js";
|
|
14
14
|
import "./configShared-DYxlvrH0.js";
|
|
15
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
16
|
-
import { $ as TYPING_BADGE, B as resolveOne, F as recentMessageEdges, G as snapshotStatus, I as recentReadEdges, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, Q as withIpcLock, R as renderRawLog, T as isUserTyping, Z as writeToIpc, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, l as controlCodeFromName, p as extractBadges, z as renderRawLogLines } from "./subcommands-
|
|
15
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DFOStQkx.js";
|
|
16
|
+
import { $ as TYPING_BADGE, B as resolveOne, F as recentMessageEdges, G as snapshotStatus, I as recentReadEdges, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, Q as withIpcLock, R as renderRawLog, T as isUserTyping, Z as writeToIpc, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, l as controlCodeFromName, p as extractBadges, z as renderRawLogLines } from "./subcommands-DKqbwkvb.js";
|
|
17
17
|
import { c as isTransientLockMkdirError } from "./notifyStore-Dus2D1XA.js";
|
|
18
18
|
import "./webrtcLink-B72AQ2eb.js";
|
|
19
|
-
import "./remotes-
|
|
19
|
+
import "./remotes-IzQHupeo.js";
|
|
20
20
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Bbe7rpN2.js";
|
|
21
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
21
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-BVKHRbUE.js";
|
|
22
22
|
import { a as getProvisionRoot, d as isProvisionAllowed, f as resolveSpawnCwd, i as getProvisionHook, l as hasProvisionHook, o as getSpawnHook, t as allowsSkipPermissions, u as hasSpawnHook } from "./workspaceConfig-EK7XNsgR.js";
|
|
23
23
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-CKc1BN5J.js";
|
|
24
|
-
import { i as importProvisionModule } from "./ws-
|
|
24
|
+
import { i as importProvisionModule } from "./ws-BFli3FKi.js";
|
|
25
25
|
import { r as spawnRejectionReason } from "./spawnGate-CS3oFdJ9.js";
|
|
26
|
-
import { i as launchTray } from "./trayApp-
|
|
26
|
+
import { i as launchTray } from "./trayApp-BsETHuMR.js";
|
|
27
27
|
import yargs from "yargs";
|
|
28
28
|
import { appendFile, mkdir, open, readFile, readdir, rename, rm, stat, unlink, writeFile } from "fs/promises";
|
|
29
29
|
import { arch, cpus, freemem, homedir, hostname, loadavg, platform, totalmem, uptime, userInfo } from "os";
|
|
@@ -2436,7 +2436,7 @@ Options:
|
|
|
2436
2436
|
}
|
|
2437
2437
|
});
|
|
2438
2438
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2439
|
-
const ws = await import("./ws-
|
|
2439
|
+
const ws = await import("./ws-CklRMQwW.js");
|
|
2440
2440
|
try {
|
|
2441
2441
|
await ws.loadProvision();
|
|
2442
2442
|
} catch (e) {
|
|
@@ -2456,7 +2456,7 @@ Options:
|
|
|
2456
2456
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2457
2457
|
const dirRaw = url.searchParams.get("path");
|
|
2458
2458
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2459
|
-
const ws = await import("./ws-
|
|
2459
|
+
const ws = await import("./ws-CklRMQwW.js");
|
|
2460
2460
|
let prov;
|
|
2461
2461
|
try {
|
|
2462
2462
|
prov = await ws.loadProvision();
|
|
@@ -2478,7 +2478,7 @@ Options:
|
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
2480
|
if (req.method === "GET" && p === "/api/ws/repos") {
|
|
2481
|
-
const ws = await import("./ws-
|
|
2481
|
+
const ws = await import("./ws-CklRMQwW.js");
|
|
2482
2482
|
try {
|
|
2483
2483
|
await ws.loadProvision();
|
|
2484
2484
|
} catch (e) {
|
|
@@ -2559,7 +2559,7 @@ Options:
|
|
|
2559
2559
|
const m = /^([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+)$/.exec(repoParam);
|
|
2560
2560
|
if (!m || m[1] === "." || m[1] === ".." || m[2] === "." || m[2] === "..") return new Response("missing/invalid ?repo=<owner>/<repo>", { status: 400 });
|
|
2561
2561
|
const [, owner, repo] = m;
|
|
2562
|
-
const ws = await import("./ws-
|
|
2562
|
+
const ws = await import("./ws-CklRMQwW.js");
|
|
2563
2563
|
let prov;
|
|
2564
2564
|
try {
|
|
2565
2565
|
prov = await ws.loadProvision();
|
|
@@ -3470,7 +3470,7 @@ Options:
|
|
|
3470
3470
|
const perm = body.perm ?? "r";
|
|
3471
3471
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3472
3472
|
try {
|
|
3473
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3473
|
+
const { createScopedShare } = await import("./agentShare-CLhjMsHZ.js");
|
|
3474
3474
|
const share = await createScopedShare({
|
|
3475
3475
|
agent: body.agent,
|
|
3476
3476
|
perm,
|
|
@@ -3485,12 +3485,12 @@ Options:
|
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
3487
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3488
|
-
const { listShares } = await import("./agentShare-
|
|
3488
|
+
const { listShares } = await import("./agentShare-CLhjMsHZ.js");
|
|
3489
3489
|
return Response.json(listShares());
|
|
3490
3490
|
}
|
|
3491
3491
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3492
3492
|
if (req.method === "DELETE" && revokeM) {
|
|
3493
|
-
const { revokeShare } = await import("./agentShare-
|
|
3493
|
+
const { revokeShare } = await import("./agentShare-CLhjMsHZ.js");
|
|
3494
3494
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3495
3495
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3496
3496
|
}
|
|
@@ -3795,7 +3795,7 @@ Options:
|
|
|
3795
3795
|
const shutdown = (resolve) => {
|
|
3796
3796
|
if (heartbeat) clearInterval(heartbeat);
|
|
3797
3797
|
closeShare?.();
|
|
3798
|
-
import("./agentShare-
|
|
3798
|
+
import("./agentShare-CLhjMsHZ.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
3799
3799
|
server?.stop();
|
|
3800
3800
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
3801
3801
|
};
|
|
@@ -3808,4 +3808,4 @@ Options:
|
|
|
3808
3808
|
|
|
3809
3809
|
//#endregion
|
|
3810
3810
|
export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
3811
|
-
//# sourceMappingURL=serve-
|
|
3811
|
+
//# sourceMappingURL=serve-Dw0x9Of9.js.map
|
|
@@ -40,7 +40,7 @@ async function cmdSetup(rest) {
|
|
|
40
40
|
} catch {}
|
|
41
41
|
if (noShare) return 0;
|
|
42
42
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
43
|
-
const { cmdServe } = await import("./serve-
|
|
43
|
+
const { cmdServe } = await import("./serve-Dw0x9Of9.js");
|
|
44
44
|
return cmdServe([
|
|
45
45
|
"install",
|
|
46
46
|
"--share",
|
|
@@ -50,4 +50,4 @@ async function cmdSetup(rest) {
|
|
|
50
50
|
|
|
51
51
|
//#endregion
|
|
52
52
|
export { cmdSetup };
|
|
53
|
-
//# sourceMappingURL=setup-
|
|
53
|
+
//# sourceMappingURL=setup-BmBjOyza.js.map
|
|
@@ -7,7 +7,7 @@ import { t as formatIdentity } from "./identity-CLaJ9-uE.js";
|
|
|
7
7
|
import { n as isWorkingScreen, r as parseMenu, t as classifyNeedsInput } from "./needsInput-DhfIwxse.js";
|
|
8
8
|
import { S as postmortemStartedAt, _ as filterSinceSeq, a as getCursor, b as maxSeq, f as readInbox, o as heartbeatWatcher, p as setCursor, r as clearWatcher, s as hostId, v as filterSinceTs, y as filterUnread } from "./notifyStore-Dus2D1XA.js";
|
|
9
9
|
import { n as isWebrtcSpec } from "./webrtcLink-B72AQ2eb.js";
|
|
10
|
-
import { a as resolveRemoteSpec, i as readRemotes } from "./remotes-
|
|
10
|
+
import { a as resolveRemoteSpec, i as readRemotes } from "./remotes-IzQHupeo.js";
|
|
11
11
|
import { spawn } from "child_process";
|
|
12
12
|
import ms from "ms";
|
|
13
13
|
import yargs from "yargs";
|
|
@@ -907,7 +907,7 @@ async function runSubcommand(argv) {
|
|
|
907
907
|
switch (sub) {
|
|
908
908
|
case "ls":
|
|
909
909
|
case "list": return await cmdLs(rest);
|
|
910
|
-
case "ps": return await (await import("./cmdPs-
|
|
910
|
+
case "ps": return await (await import("./cmdPs-Cu__YsO7.js")).cmdPs(rest);
|
|
911
911
|
case "status": return await cmdStatus(rest);
|
|
912
912
|
case "whoami": return await cmdWhoami(rest);
|
|
913
913
|
case "result": return await cmdResult(rest);
|
|
@@ -954,39 +954,39 @@ async function runSubcommand(argv) {
|
|
|
954
954
|
return cmdCh(rest);
|
|
955
955
|
}
|
|
956
956
|
case "term": {
|
|
957
|
-
const { cmdTerm } = await import("./terminal-
|
|
957
|
+
const { cmdTerm } = await import("./terminal-BQ79zaFa.js");
|
|
958
958
|
return cmdTerm(rest);
|
|
959
959
|
}
|
|
960
960
|
case "widget": {
|
|
961
|
-
const { cmdWidget } = await import("./widget-
|
|
961
|
+
const { cmdWidget } = await import("./widget-gRjJprB5.js");
|
|
962
962
|
return cmdWidget(rest);
|
|
963
963
|
}
|
|
964
964
|
case "mint": {
|
|
965
|
-
const { cmdMint } = await import("./widget-
|
|
965
|
+
const { cmdMint } = await import("./widget-gRjJprB5.js");
|
|
966
966
|
return cmdMint(rest);
|
|
967
967
|
}
|
|
968
968
|
case "serve": {
|
|
969
|
-
const { cmdServe } = await import("./serve-
|
|
969
|
+
const { cmdServe } = await import("./serve-Dw0x9Of9.js");
|
|
970
970
|
return cmdServe(rest);
|
|
971
971
|
}
|
|
972
972
|
case "tray": {
|
|
973
|
-
const { cmdTray } = await import("./trayApp-
|
|
973
|
+
const { cmdTray } = await import("./trayApp-BHx2FN2d.js");
|
|
974
974
|
return cmdTray(rest);
|
|
975
975
|
}
|
|
976
976
|
case "setup": {
|
|
977
|
-
const { cmdSetup } = await import("./setup-
|
|
977
|
+
const { cmdSetup } = await import("./setup-BmBjOyza.js");
|
|
978
978
|
return cmdSetup(rest);
|
|
979
979
|
}
|
|
980
980
|
case "ws": {
|
|
981
|
-
const { cmdWs } = await import("./ws-
|
|
981
|
+
const { cmdWs } = await import("./ws-CklRMQwW.js");
|
|
982
982
|
return cmdWs(rest);
|
|
983
983
|
}
|
|
984
984
|
case "schedule": {
|
|
985
|
-
const { cmdSchedule } = await import("./schedule-
|
|
985
|
+
const { cmdSchedule } = await import("./schedule-D37Q9LGO.js");
|
|
986
986
|
return cmdSchedule(rest);
|
|
987
987
|
}
|
|
988
988
|
case "remote": {
|
|
989
|
-
const { cmdRemote } = await import("./remotes-
|
|
989
|
+
const { cmdRemote } = await import("./remotes-BiftUp09.js");
|
|
990
990
|
return cmdRemote(rest);
|
|
991
991
|
}
|
|
992
992
|
case "expose": {
|
|
@@ -994,7 +994,7 @@ async function runSubcommand(argv) {
|
|
|
994
994
|
return cmdExpose(rest);
|
|
995
995
|
}
|
|
996
996
|
case "callback": {
|
|
997
|
-
const { cmdCallback } = await import("./callback-
|
|
997
|
+
const { cmdCallback } = await import("./callback-C64-nP2U.js");
|
|
998
998
|
return cmdCallback(rest);
|
|
999
999
|
}
|
|
1000
1000
|
case "reap":
|
|
@@ -1234,10 +1234,10 @@ async function runRemoteLs(remote, opts) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
const records = await res.json();
|
|
1236
1236
|
if (records.length === 0) {
|
|
1237
|
-
process.stderr.write(remote.keyword ? `no agents matched "${remote.keyword}" on ${remote.
|
|
1237
|
+
process.stderr.write(remote.keyword ? `no agents matched "${remote.keyword}" on ${remote.url}\n` : `no running agents on ${remote.url}\n`);
|
|
1238
1238
|
return 0;
|
|
1239
1239
|
}
|
|
1240
|
-
process.stderr.write(`[remote ${remote.
|
|
1240
|
+
process.stderr.write(`[remote ${remote.url}]\n`);
|
|
1241
1241
|
const termWidth = process.stdout.columns ?? 120;
|
|
1242
1242
|
const widths = {
|
|
1243
1243
|
pid: Math.max(3, ...records.map((r) => String(r.pid).length)),
|
|
@@ -1280,7 +1280,7 @@ async function runRemoteRead(remote, mode, follow, n, reconnectTimeoutMs = 12e4,
|
|
|
1280
1280
|
const deadline = Date.now() + reconnectTimeoutMs;
|
|
1281
1281
|
let delay = 1e3;
|
|
1282
1282
|
let attempt = 0;
|
|
1283
|
-
process.stderr.write(`[remote ${remote.
|
|
1283
|
+
process.stderr.write(`[remote ${remote.url} ${keyword}]\nfollowing... (Ctrl-C to stop, timeout: ${Math.round(reconnectTimeoutMs / 1e3)}s)\n`);
|
|
1284
1284
|
while (!ac.signal.aborted) try {
|
|
1285
1285
|
const res = await fetch(`${remote.url}/api/tail/${encodeURIComponent(keyword)}`, {
|
|
1286
1286
|
headers: {
|
|
@@ -1347,7 +1347,7 @@ async function runRemoteRead(remote, mode, follow, n, reconnectTimeoutMs = 12e4,
|
|
|
1347
1347
|
return 1;
|
|
1348
1348
|
}
|
|
1349
1349
|
const text = await res.text();
|
|
1350
|
-
process.stderr.write(`[remote ${remote.
|
|
1350
|
+
process.stderr.write(`[remote ${remote.url} ${keyword}]\n`);
|
|
1351
1351
|
process.stdout.write(text);
|
|
1352
1352
|
if (!text.endsWith("\n")) process.stdout.write("\n");
|
|
1353
1353
|
return 0;
|
|
@@ -1376,7 +1376,7 @@ async function runRemoteSend(remote, msg, code) {
|
|
|
1376
1376
|
return 1;
|
|
1377
1377
|
}
|
|
1378
1378
|
const data = await res.json();
|
|
1379
|
-
process.stdout.write(`sent to remote pid ${data.pid} (${remote.
|
|
1379
|
+
process.stdout.write(`sent to remote pid ${data.pid} (${remote.url} ${keyword})\n`);
|
|
1380
1380
|
if (msg && msg !== "-") await recordOutbox({
|
|
1381
1381
|
at: Date.now(),
|
|
1382
1382
|
from,
|
|
@@ -1390,7 +1390,7 @@ async function runRemoteSend(remote, msg, code) {
|
|
|
1390
1390
|
code: code.toLowerCase() === "enter" ? void 0 : code.toLowerCase(),
|
|
1391
1391
|
confirmed: true,
|
|
1392
1392
|
wrapped: false,
|
|
1393
|
-
remote: remote.
|
|
1393
|
+
remote: remote.url
|
|
1394
1394
|
});
|
|
1395
1395
|
return 0;
|
|
1396
1396
|
}
|
|
@@ -1417,7 +1417,7 @@ async function runRemoteSpawn(remote, hint, spec) {
|
|
|
1417
1417
|
} catch (e) {
|
|
1418
1418
|
const name = e?.name;
|
|
1419
1419
|
if (name === "TimeoutError" || name === "AbortError") {
|
|
1420
|
-
process.stderr.write(`remote spawn: no response from ${remote.
|
|
1420
|
+
process.stderr.write(`remote spawn: no response from ${remote.url} within ${Math.round(SPAWN_TIMEOUT_MS / 1e3)}s — result UNKNOWN (not retried).\n ay ls ${hint} # check whether it started\n`);
|
|
1421
1421
|
return 2;
|
|
1422
1422
|
}
|
|
1423
1423
|
process.stderr.write(`remote spawn failed: ${e.message}\n`);
|
|
@@ -1428,7 +1428,7 @@ async function runRemoteSpawn(remote, hint, spec) {
|
|
|
1428
1428
|
return 1;
|
|
1429
1429
|
}
|
|
1430
1430
|
const r = await res.json();
|
|
1431
|
-
process.stdout.write(`spawned ${r.cli} on ${remote.
|
|
1431
|
+
process.stdout.write(`spawned ${r.cli} on ${remote.url} in ${r.cwd}${r.hook ? " (via spawn hook)" : ""}${r.provisioned ? ` (${r.provisioned.action})` : ""}\n`);
|
|
1432
1432
|
if (r.agentId && !hint.includes("://")) process.stderr.write(`\n ay tail ${hint}:${r.agentId} # watch its output\n ay status ${hint}:${r.agentId} --wait # block until it needs you\n`);
|
|
1433
1433
|
else process.stderr.write(`\n ay ls ${hint} # the new ${r.cli} agent appears here\n`);
|
|
1434
1434
|
return 0;
|
|
@@ -3500,7 +3500,7 @@ async function cmdAttach(rest) {
|
|
|
3500
3500
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
3501
3501
|
await mkdir(winsizeDir, { recursive: true });
|
|
3502
3502
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
3503
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
3503
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Dw0x9Of9.js");
|
|
3504
3504
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
3505
3505
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
3506
3506
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -4210,7 +4210,7 @@ async function cmdNotify(rest) {
|
|
|
4210
4210
|
}
|
|
4211
4211
|
const ensure = async () => {
|
|
4212
4212
|
if (!argv["ensure-daemon"]) return;
|
|
4213
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4213
|
+
const { ensureDaemon } = await import("./notifyDaemon-BmtjtW5L.js");
|
|
4214
4214
|
await ensureDaemon().catch(() => null);
|
|
4215
4215
|
};
|
|
4216
4216
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4284,7 +4284,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4284
4284
|
}
|
|
4285
4285
|
async function cmdNotifyd(rest) {
|
|
4286
4286
|
const sub = rest[0] ?? "status";
|
|
4287
|
-
const daemon = await import("./notifyDaemon-
|
|
4287
|
+
const daemon = await import("./notifyDaemon-BmtjtW5L.js");
|
|
4288
4288
|
switch (sub) {
|
|
4289
4289
|
case "run": return daemon.runDaemon();
|
|
4290
4290
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4311,4 +4311,4 @@ async function cmdNotifyd(rest) {
|
|
|
4311
4311
|
|
|
4312
4312
|
//#endregion
|
|
4313
4313
|
export { TYPING_BADGE as $, menuSelectKeys as A, resolveOne as B, isSubcommand as C, lastStdinAt as D, lastReadAt as E, recentMessageEdges as F, snapshotStatus as G, resolveResumeArgs as H, recentReadEdges as I, submitAndConfirm as J, stdinActivityPath as K, renderLogTailLines as L, readLogForRender as M, readNotes as N, listRecords as O, readPtysize as P, withIpcLock as Q, renderRawLog as R, isSlashCommand as S, isUserTyping as T, restartHintLines as U, resolveReadWindow as V, runSubcommand as W, writeKeysPaced as X, waitForLogQuiet as Y, writeToIpc as Z, finalizedLines as _, TYPING_WINDOW_MS as a, isExitRequest as b, cmdHelp as c, deriveLiveState as d, buildAgentForest as et, deriveLiveStatus as f, extractTaskCounts as g, extractNeedsInput as h, READ_WINDOW_MS as i, readAgentPtysize as j, matchKeyword as k, controlCodeFromName as l, extractMenu as m, MAX_RENDER_BYTES as n, backoffWhileTyping as o, extractBadges as p, stopTipForCli as q, READ_PAGE_DEFAULT as r, cmdDeepseek as s, GRACEFUL_EXIT_COMMANDS as t, flattenForest as tt, cursorAbs as u, isAgentStuck as v, isUnknownManagerToken as w, isPidAlive as x, isBareManagerInvocation as y, renderRawLogLines as z };
|
|
4314
|
-
//# sourceMappingURL=subcommands-
|
|
4314
|
+
//# sourceMappingURL=subcommands-DKqbwkvb.js.map
|
|
@@ -3,9 +3,9 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-OLfcNxiv.js";
|
|
5
5
|
import "./configShared-DYxlvrH0.js";
|
|
6
|
-
import { A as menuSelectKeys, B as resolveOne, C as isSubcommand, D as lastStdinAt, E as lastReadAt, F as recentMessageEdges, G as snapshotStatus, H as resolveResumeArgs, I as recentReadEdges, J as submitAndConfirm, K as stdinActivityPath, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, R as renderRawLog, S as isSlashCommand, T as isUserTyping, U as restartHintLines, V as resolveReadWindow, W as runSubcommand, X as writeKeysPaced, Y as waitForLogQuiet, Z as writeToIpc, _ as finalizedLines, a as TYPING_WINDOW_MS, b as isExitRequest, c as cmdHelp, d as deriveLiveState, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, i as READ_WINDOW_MS, j as readAgentPtysize, k as matchKeyword, l as controlCodeFromName, m as extractMenu, n as MAX_RENDER_BYTES, o as backoffWhileTyping, p as extractBadges, q as stopTipForCli, r as READ_PAGE_DEFAULT, s as cmdDeepseek, t as GRACEFUL_EXIT_COMMANDS, u as cursorAbs, v as isAgentStuck, w as isUnknownManagerToken, x as isPidAlive, y as isBareManagerInvocation, z as renderRawLogLines } from "./subcommands-
|
|
6
|
+
import { A as menuSelectKeys, B as resolveOne, C as isSubcommand, D as lastStdinAt, E as lastReadAt, F as recentMessageEdges, G as snapshotStatus, H as resolveResumeArgs, I as recentReadEdges, J as submitAndConfirm, K as stdinActivityPath, L as renderLogTailLines, M as readLogForRender, N as readNotes, O as listRecords, P as readPtysize, R as renderRawLog, S as isSlashCommand, T as isUserTyping, U as restartHintLines, V as resolveReadWindow, W as runSubcommand, X as writeKeysPaced, Y as waitForLogQuiet, Z as writeToIpc, _ as finalizedLines, a as TYPING_WINDOW_MS, b as isExitRequest, c as cmdHelp, d as deriveLiveState, f as deriveLiveStatus, g as extractTaskCounts, h as extractNeedsInput, i as READ_WINDOW_MS, j as readAgentPtysize, k as matchKeyword, l as controlCodeFromName, m as extractMenu, n as MAX_RENDER_BYTES, o as backoffWhileTyping, p as extractBadges, q as stopTipForCli, r as READ_PAGE_DEFAULT, s as cmdDeepseek, t as GRACEFUL_EXIT_COMMANDS, u as cursorAbs, v as isAgentStuck, w as isUnknownManagerToken, x as isPidAlive, y as isBareManagerInvocation, z as renderRawLogLines } from "./subcommands-DKqbwkvb.js";
|
|
7
7
|
import "./notifyStore-Dus2D1XA.js";
|
|
8
8
|
import "./webrtcLink-B72AQ2eb.js";
|
|
9
|
-
import "./remotes-
|
|
9
|
+
import "./remotes-IzQHupeo.js";
|
|
10
10
|
|
|
11
11
|
export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };
|
|
@@ -98,7 +98,7 @@ async function cmdTermMint(args) {
|
|
|
98
98
|
if (flags.ro && flags.interactive) throw new Error("--ro and --interactive are mutually exclusive");
|
|
99
99
|
const ttlSec = parseTtlSec(typeof flags.ttl === "string" ? flags.ttl : "15m");
|
|
100
100
|
const canSend = flags.interactive === true;
|
|
101
|
-
const { mintScopedTermToken } = await import("./serve-
|
|
101
|
+
const { mintScopedTermToken } = await import("./serve-Dw0x9Of9.js");
|
|
102
102
|
const r = await mintScopedTermToken(pid, {
|
|
103
103
|
ttlSec,
|
|
104
104
|
canSend
|
|
@@ -135,4 +135,4 @@ async function cmdTerm(args) {
|
|
|
135
135
|
|
|
136
136
|
//#endregion
|
|
137
137
|
export { cmdTerm };
|
|
138
|
-
//# sourceMappingURL=terminal-
|
|
138
|
+
//# sourceMappingURL=terminal-BQ79zaFa.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as findTrayLauncher } from "./rustBinary-
|
|
1
|
+
import { n as findTrayLauncher } from "./rustBinary-ISnNc7Uf.js";
|
|
2
2
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
3
3
|
import { existsSync } from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
@@ -97,4 +97,4 @@ async function cmdTray(args) {
|
|
|
97
97
|
|
|
98
98
|
//#endregion
|
|
99
99
|
export { trayHiddenMarker as a, launchTray as i, hasDesktop as n, isTrayHidden as r, cmdTray as t };
|
|
100
|
-
//# sourceMappingURL=trayApp-
|
|
100
|
+
//# sourceMappingURL=trayApp-BsETHuMR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as __esmMin, r as __exportAll } from "./chunk-cZBX9HZv.js";
|
|
2
2
|
import { n as logger, t as addTransport } from "./logger-CDIsZ-Pp.js";
|
|
3
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
3
|
+
import { r as getInstalledPackage } from "./versionChecker-D9LB-MW5.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
5
5
|
import { u as removeControlCharacters } from "./todoAutomation-BETGOik9.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DBoONoM-.js";
|
|
@@ -2074,7 +2074,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
|
|
|
2074
2074
|
}, 100);
|
|
2075
2075
|
const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
|
|
2076
2076
|
shell.onExit(cleanupHeartbeat);
|
|
2077
|
-
const { startParentPingLoop } = await import("./parentPingLoop-
|
|
2077
|
+
const { startParentPingLoop } = await import("./parentPingLoop-BtggDU06.js");
|
|
2078
2078
|
const parentPingLoop = startParentPingLoop({
|
|
2079
2079
|
parentPid,
|
|
2080
2080
|
selfWrapperPid: process.pid,
|
|
@@ -2338,4 +2338,4 @@ function sleep(ms) {
|
|
|
2338
2338
|
|
|
2339
2339
|
//#endregion
|
|
2340
2340
|
export { hasTodoStore as a, permissionBadge as c, answerAsk as i, AgentContext as l, agentYes as n, listAsks as o, config as r, listAsksForProject as s, CLIS_CONFIG as t, CLAUDE_SESSION_PIN_ENV as u };
|
|
2341
|
-
//# sourceMappingURL=ts-
|
|
2341
|
+
//# sourceMappingURL=ts-Bb-h7XQP.js.map
|
|
@@ -7,7 +7,7 @@ import { fileURLToPath } from "url";
|
|
|
7
7
|
|
|
8
8
|
//#region package.json
|
|
9
9
|
var name = "agent-yes";
|
|
10
|
-
var version = "1.272.0
|
|
10
|
+
var version = "1.272.0";
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region ts/versionChecker.ts
|
|
@@ -215,4 +215,4 @@ async function displayVersion() {
|
|
|
215
215
|
|
|
216
216
|
//#endregion
|
|
217
217
|
export { versionString as i, displayVersion as n, getInstalledPackage as r, checkAndAutoUpdate as t };
|
|
218
|
-
//# sourceMappingURL=versionChecker-
|
|
218
|
+
//# sourceMappingURL=versionChecker-D9LB-MW5.js.map
|
|
@@ -28,7 +28,7 @@ function parseFlags(args, known) {
|
|
|
28
28
|
}
|
|
29
29
|
/** Resolve the local daemon base URL + token (flags override discovery). */
|
|
30
30
|
async function daemonTarget(flags) {
|
|
31
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
31
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-Dw0x9Of9.js");
|
|
32
32
|
const base = typeof flags.base === "string" ? flags.base : await resolveDaemonHttpBase();
|
|
33
33
|
if (!base) throw new Error("no running ay serve daemon found — start `ay serve` or pass --base <url> (e.g. http://127.0.0.1:PORT)");
|
|
34
34
|
const token = typeof flags.token === "string" ? flags.token : await loadTokenReadOnly() ?? "";
|
|
@@ -186,7 +186,7 @@ async function cmdMint(args) {
|
|
|
186
186
|
const bad = caps.filter((c) => !KNOWN_CAPS.has(c));
|
|
187
187
|
if (bad.length) throw new Error(`unknown cap(s): ${bad.join(", ")} (valid: ${[...KNOWN_CAPS].join(", ")})`);
|
|
188
188
|
const ttlSec = parseTtlSec(typeof flags.ttl === "string" ? flags.ttl : "15m");
|
|
189
|
-
const { mintScopedTermToken } = await import("./serve-
|
|
189
|
+
const { mintScopedTermToken } = await import("./serve-Dw0x9Of9.js");
|
|
190
190
|
const r = await mintScopedTermToken(target, {
|
|
191
191
|
ttlSec,
|
|
192
192
|
caps
|
|
@@ -202,4 +202,4 @@ async function cmdMint(args) {
|
|
|
202
202
|
|
|
203
203
|
//#endregion
|
|
204
204
|
export { cmdMint, cmdWidget };
|
|
205
|
-
//# sourceMappingURL=widget-
|
|
205
|
+
//# sourceMappingURL=widget-gRjJprB5.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as listRecords } from "./subcommands-
|
|
1
|
+
import { O as listRecords } from "./subcommands-DKqbwkvb.js";
|
|
2
2
|
import { a as getProvisionRoot } from "./workspaceConfig-EK7XNsgR.js";
|
|
3
3
|
import { existsSync } from "fs";
|
|
4
4
|
import { lstat, opendir } from "fs/promises";
|
|
@@ -424,4 +424,4 @@ async function cmdWs(args) {
|
|
|
424
424
|
|
|
425
425
|
//#endregion
|
|
426
426
|
export { isPathInside as a, walkWorkspaces as c, importProvisionModule as i, workspaceStatus as l, cmdWs as n, loadProvision as o, collectWorkspaces as r, resolveOperand as s, WS_JSON_SCHEMA as t };
|
|
427
|
-
//# sourceMappingURL=ws-
|
|
427
|
+
//# sourceMappingURL=ws-BFli3FKi.js.map
|
|
@@ -3,10 +3,10 @@ import "./globalPidIndex-Dq4KY2IV.js";
|
|
|
3
3
|
import "./messageLog-BYFwioFY.js";
|
|
4
4
|
import "./e2e-OLfcNxiv.js";
|
|
5
5
|
import "./configShared-DYxlvrH0.js";
|
|
6
|
-
import "./subcommands-
|
|
6
|
+
import "./subcommands-DKqbwkvb.js";
|
|
7
7
|
import "./notifyStore-Dus2D1XA.js";
|
|
8
8
|
import "./webrtcLink-B72AQ2eb.js";
|
|
9
|
-
import "./remotes-
|
|
10
|
-
import { a as isPathInside, c as walkWorkspaces, i as importProvisionModule, l as workspaceStatus, n as cmdWs, o as loadProvision, r as collectWorkspaces, s as resolveOperand, t as WS_JSON_SCHEMA } from "./ws-
|
|
9
|
+
import "./remotes-IzQHupeo.js";
|
|
10
|
+
import { a as isPathInside, c as walkWorkspaces, i as importProvisionModule, l as workspaceStatus, n as cmdWs, o as loadProvision, r as collectWorkspaces, s as resolveOperand, t as WS_JSON_SCHEMA } from "./ws-BFli3FKi.js";
|
|
11
11
|
|
|
12
12
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, walkWorkspaces, workspaceStatus };
|
package/package.json
CHANGED
package/ts/remotes.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { mkdir, readFile, writeFile } from "fs/promises";
|
|
|
2
2
|
import { homedir } from "os";
|
|
3
3
|
import path from "path";
|
|
4
4
|
import yaml from "yaml";
|
|
5
|
-
import { isWebrtcSpec
|
|
5
|
+
import { isWebrtcSpec } from "./webrtcLink.ts";
|
|
6
6
|
|
|
7
7
|
function remotesPath(): string {
|
|
8
8
|
const dir = process.env.AGENT_YES_HOME ?? path.join(homedir(), ".agent-yes");
|
|
@@ -18,14 +18,6 @@ export interface ResolvedRemote {
|
|
|
18
18
|
url: string;
|
|
19
19
|
token: string;
|
|
20
20
|
keyword?: string;
|
|
21
|
-
/** Stable, human-readable name for display — never the loopback bridge URL. */
|
|
22
|
-
label: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/** A display label for a WebRTC share link: the room id, never the local bridge. */
|
|
26
|
-
function webrtcLabel(link: string): string {
|
|
27
|
-
const parsed = parseWebrtcLink(link);
|
|
28
|
-
return parsed ? `webrtc:${parsed.room}` : "webrtc";
|
|
29
21
|
}
|
|
30
22
|
|
|
31
23
|
export async function readRemotes(): Promise<Map<string, RemoteConfig>> {
|
|
@@ -90,16 +82,11 @@ export function parseDirectRemoteSpec(
|
|
|
90
82
|
export async function resolveRemoteSpec(spec: string): Promise<ResolvedRemote | null> {
|
|
91
83
|
// Inline WebRTC share link: `ay ls webrtc://…` or `ay ls https://…/w/#room:token`.
|
|
92
84
|
// These carry their own secret and have no keyword (use an alias to add one).
|
|
93
|
-
if (isWebrtcSpec(spec)) return resolveWebrtc(spec, undefined
|
|
85
|
+
if (isWebrtcSpec(spec)) return resolveWebrtc(spec, undefined);
|
|
94
86
|
|
|
95
87
|
const direct = parseDirectRemoteSpec(spec);
|
|
96
88
|
if (direct) {
|
|
97
|
-
return {
|
|
98
|
-
url: direct.baseUrl,
|
|
99
|
-
token: direct.token,
|
|
100
|
-
keyword: direct.keyword,
|
|
101
|
-
label: `${direct.host}:${direct.port}`,
|
|
102
|
-
};
|
|
89
|
+
return { url: direct.baseUrl, token: direct.token, keyword: direct.keyword };
|
|
103
90
|
}
|
|
104
91
|
|
|
105
92
|
// alias[:keyword]
|
|
@@ -111,8 +98,8 @@ export async function resolveRemoteSpec(spec: string): Promise<ResolvedRemote |
|
|
|
111
98
|
const cfg = remotes.get(alias);
|
|
112
99
|
if (!cfg) return null;
|
|
113
100
|
// A saved alias may point at a WebRTC link; bridge it just like an inline one.
|
|
114
|
-
if (isWebrtcSpec(cfg.url)) return resolveWebrtc(cfg.url, keyword
|
|
115
|
-
return { url: cfg.url, token: cfg.token, keyword
|
|
101
|
+
if (isWebrtcSpec(cfg.url)) return resolveWebrtc(cfg.url, keyword);
|
|
102
|
+
return { url: cfg.url, token: cfg.token, keyword };
|
|
116
103
|
}
|
|
117
104
|
|
|
118
105
|
/**
|
|
@@ -120,14 +107,10 @@ export async function resolveRemoteSpec(spec: string): Promise<ResolvedRemote |
|
|
|
120
107
|
* ordinary http remote, so every fetch-based remote command works unchanged.
|
|
121
108
|
* The bridge lives for the rest of the process (torn down on `process.exit`).
|
|
122
109
|
*/
|
|
123
|
-
async function resolveWebrtc(
|
|
124
|
-
link: string,
|
|
125
|
-
keyword: string | undefined,
|
|
126
|
-
label: string,
|
|
127
|
-
): Promise<ResolvedRemote> {
|
|
110
|
+
async function resolveWebrtc(link: string, keyword?: string): Promise<ResolvedRemote> {
|
|
128
111
|
const { startWebrtcBridge } = await import("./webrtcRemote.ts");
|
|
129
112
|
const bridge = await startWebrtcBridge(link);
|
|
130
|
-
return { url: bridge.baseUrl, token: bridge.token, keyword
|
|
113
|
+
return { url: bridge.baseUrl, token: bridge.token, keyword };
|
|
131
114
|
}
|
|
132
115
|
|
|
133
116
|
// ---------------------------------------------------------------------------
|
package/ts/subcommands.ts
CHANGED
|
@@ -1181,12 +1181,12 @@ async function runRemoteLs(
|
|
|
1181
1181
|
if (records.length === 0) {
|
|
1182
1182
|
process.stderr.write(
|
|
1183
1183
|
remote.keyword
|
|
1184
|
-
? `no agents matched "${remote.keyword}" on ${remote.
|
|
1185
|
-
: `no running agents on ${remote.
|
|
1184
|
+
? `no agents matched "${remote.keyword}" on ${remote.url}\n`
|
|
1185
|
+
: `no running agents on ${remote.url}\n`,
|
|
1186
1186
|
);
|
|
1187
1187
|
return 0;
|
|
1188
1188
|
}
|
|
1189
|
-
process.stderr.write(`[remote ${remote.
|
|
1189
|
+
process.stderr.write(`[remote ${remote.url}]\n`);
|
|
1190
1190
|
const termWidth = (process.stdout as any).columns ?? 120;
|
|
1191
1191
|
const widths = {
|
|
1192
1192
|
pid: Math.max(3, ...records.map((r: any) => String(r.pid).length)),
|
|
@@ -1249,7 +1249,7 @@ async function runRemoteRead(
|
|
|
1249
1249
|
let attempt = 0;
|
|
1250
1250
|
|
|
1251
1251
|
process.stderr.write(
|
|
1252
|
-
`[remote ${remote.
|
|
1252
|
+
`[remote ${remote.url} ${keyword}]\nfollowing... (Ctrl-C to stop, timeout: ${Math.round(reconnectTimeoutMs / 1000)}s)\n`,
|
|
1253
1253
|
);
|
|
1254
1254
|
|
|
1255
1255
|
while (!ac.signal.aborted) {
|
|
@@ -1325,7 +1325,7 @@ async function runRemoteRead(
|
|
|
1325
1325
|
return 1;
|
|
1326
1326
|
}
|
|
1327
1327
|
const text = await res.text();
|
|
1328
|
-
process.stderr.write(`[remote ${remote.
|
|
1328
|
+
process.stderr.write(`[remote ${remote.url} ${keyword}]\n`);
|
|
1329
1329
|
process.stdout.write(text);
|
|
1330
1330
|
if (!text.endsWith("\n")) process.stdout.write("\n");
|
|
1331
1331
|
return 0;
|
|
@@ -1359,7 +1359,7 @@ async function runRemoteSend(remote: ResolvedRemote, msg: string, code: string):
|
|
|
1359
1359
|
cwd?: string;
|
|
1360
1360
|
agentId?: string;
|
|
1361
1361
|
};
|
|
1362
|
-
process.stdout.write(`sent to remote pid ${data.pid} (${remote.
|
|
1362
|
+
process.stdout.write(`sent to remote pid ${data.pid} (${remote.url} ${keyword})\n`);
|
|
1363
1363
|
// Record the sender's half of the exchange locally (the recipient's inbox is
|
|
1364
1364
|
// recorded on the remote host by its /api/send handler). Only real bodies.
|
|
1365
1365
|
if (msg && msg !== "-") {
|
|
@@ -1376,7 +1376,7 @@ async function runRemoteSend(remote: ResolvedRemote, msg: string, code: string):
|
|
|
1376
1376
|
code: code.toLowerCase() === "enter" ? undefined : code.toLowerCase(),
|
|
1377
1377
|
confirmed: true,
|
|
1378
1378
|
wrapped: false,
|
|
1379
|
-
remote: remote.
|
|
1379
|
+
remote: remote.url,
|
|
1380
1380
|
});
|
|
1381
1381
|
}
|
|
1382
1382
|
return 0;
|
|
@@ -1419,7 +1419,7 @@ async function runRemoteSpawn(
|
|
|
1419
1419
|
if (name === "TimeoutError" || name === "AbortError") {
|
|
1420
1420
|
// The request may or may not have spawned — do NOT retry. Let the operator check.
|
|
1421
1421
|
process.stderr.write(
|
|
1422
|
-
`remote spawn: no response from ${remote.
|
|
1422
|
+
`remote spawn: no response from ${remote.url} within ${Math.round(SPAWN_TIMEOUT_MS / 1000)}s — ` +
|
|
1423
1423
|
`result UNKNOWN (not retried).\n ay ls ${hint} # check whether it started\n`,
|
|
1424
1424
|
);
|
|
1425
1425
|
return 2;
|
|
@@ -1440,7 +1440,7 @@ async function runRemoteSpawn(
|
|
|
1440
1440
|
provisioned?: { action: string };
|
|
1441
1441
|
};
|
|
1442
1442
|
process.stdout.write(
|
|
1443
|
-
`spawned ${r.cli} on ${remote.
|
|
1443
|
+
`spawned ${r.cli} on ${remote.url} in ${r.cwd}` +
|
|
1444
1444
|
`${r.hook ? " (via spawn hook)" : ""}` +
|
|
1445
1445
|
`${r.provisioned ? ` (${r.provisioned.action})` : ""}\n`,
|
|
1446
1446
|
);
|
package/dist/trayApp-10o8DC7r.js
DELETED