agent-yes 1.250.0 → 1.251.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-Cn2N9zV3.js → SUPPORTED_CLIS-BXJSjxkF.js} +2 -2
- package/dist/{SUPPORTED_CLIS-DrZV5WAT.js → SUPPORTED_CLIS-CwSokgZr.js} +3 -3
- package/dist/{agentShare-CQSzUigR.js → agentShare-BbLkcQm4.js} +2 -2
- package/dist/{callback-C84vAj5L.js → callback-8RWpxE4I.js} +3 -3
- package/dist/{callback-D-HJpjl_.js → callback-C4O66DTj.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/index.js +2 -2
- package/dist/{notifyDaemon-Dqdp_BpZ.js → notifyDaemon-B1IAqhdC.js} +2 -2
- package/dist/{rustBinary-mliHnkGt.js → rustBinary-ByzIf2js.js} +2 -2
- package/dist/{schedule-dePqn0tR.js → schedule-CcBm_AJi.js} +4 -4
- package/dist/{serve-PmdlRbVW.js → serve-BXvJ0BVz.js} +13 -13
- package/dist/{setup-ZSHYtx29.js → setup-DN7g-GlT.js} +2 -2
- package/dist/{subcommands-CA9wDFLb.js → subcommands-CIIal0U8.js} +1 -1
- package/dist/{subcommands-CQS0JlAw.js → subcommands-DeEoYwPl.js} +12 -12
- package/dist/{terminal-B7JVDvd2.js → terminal-lMeA3l5c.js} +2 -2
- package/dist/{ts-B1ii-mNk.js → ts-D-lKlowc.js} +2 -2
- package/dist/{versionChecker-Cgf-cygL.js → versionChecker-UbAydyGS.js} +2 -2
- package/dist/{widget-yrgdnpUk.js → widget-w6D-Sn_o.js} +3 -3
- package/dist/{ws-v8na5zKz.js → ws-Ba4q33_l.js} +2 -2
- package/lab/ui/index.html +28 -12
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CLIS_CONFIG } from "./ts-
|
|
1
|
+
import { t as CLIS_CONFIG } from "./ts-D-lKlowc.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-BXJSjxkF.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-UbAydyGS.js";
|
|
3
|
+
import "./ts-D-lKlowc.js";
|
|
4
4
|
import "./todoAutomation-Buo457VO.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
7
7
|
import "./pidStore-vnX0bgra.js";
|
|
8
8
|
import "./messageLog-C-YIzhRj.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BXJSjxkF.js";
|
|
10
10
|
|
|
11
11
|
export { SUPPORTED_CLIS };
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-IBbnn9b8.js";
|
|
6
|
-
import { P as resolveOne } from "./subcommands-
|
|
6
|
+
import { P as resolveOne } from "./subcommands-DeEoYwPl.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import { a as startShare } from "./share-BGl3wutJ.js";
|
|
@@ -229,4 +229,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
|
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
export { createScopedShare, listShares, revokeAllShares, revokeShare };
|
|
232
|
-
//# sourceMappingURL=agentShare-
|
|
232
|
+
//# sourceMappingURL=agentShare-BbLkcQm4.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
2
|
-
import { P as resolveOne } from "./subcommands-
|
|
2
|
+
import { P as resolveOne } from "./subcommands-DeEoYwPl.js";
|
|
3
3
|
import { a as mintCapability, o as parseExpires } from "./callbackCore-Dd28_cBM.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-BXvJ0BVz.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-8RWpxE4I.js.map
|
|
@@ -3,10 +3,10 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-IBbnn9b8.js";
|
|
6
|
-
import "./subcommands-
|
|
6
|
+
import "./subcommands-DeEoYwPl.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import "./callbackCore-Dd28_cBM.js";
|
|
10
|
-
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-
|
|
10
|
+
import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-8RWpxE4I.js";
|
|
11
11
|
|
|
12
12
|
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 { n as getRustBinary } from "./rustBinary-
|
|
4
|
+
import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-UbAydyGS.js";
|
|
5
|
+
import { n as getRustBinary } from "./rustBinary-ByzIf2js.js";
|
|
6
6
|
import { argv } from "process";
|
|
7
7
|
import { spawn } from "child_process";
|
|
8
8
|
import ms from "ms";
|
|
@@ -285,7 +285,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
285
285
|
const rawArg = process.argv[2];
|
|
286
286
|
const managerCommands = !invokedCliName(process.argv);
|
|
287
287
|
const isHelpFlag = rawArg === "-h" || rawArg === "--help";
|
|
288
|
-
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-
|
|
288
|
+
const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-CIIal0U8.js");
|
|
289
289
|
if (isHelpFlag && process.argv.length === 3) {
|
|
290
290
|
await cmdHelp(managerCommands);
|
|
291
291
|
process.exit(0);
|
|
@@ -295,7 +295,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
|
|
|
295
295
|
process.exit(code ?? 0);
|
|
296
296
|
}
|
|
297
297
|
{
|
|
298
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
298
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CwSokgZr.js");
|
|
299
299
|
if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
|
|
300
300
|
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`);
|
|
301
301
|
process.exit(1);
|
|
@@ -346,7 +346,7 @@ if (config.useRust) {
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
if (rustBinary) {
|
|
349
|
-
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-
|
|
349
|
+
const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CwSokgZr.js");
|
|
350
350
|
const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
|
|
351
351
|
if (config.verbose) {
|
|
352
352
|
console.log(`[rust] Using binary: ${rustBinary}`);
|
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-UbAydyGS.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-D-lKlowc.js";
|
|
4
4
|
import { _ as isKnownKind, a as renderTree, b as statesOf, c as monitorHint, d as openStore, f as DONE_STATE, g as initialState, h as canTransition, i as renderDigest, l as CycleError, m as ORPHANED_STATE, o as unblockedTasks, p as LIFECYCLES, r as openBlockers, s as describeBlock, t as reconcileTodos, u as TodoStore, v as nextStates, x as removeControlCharacters, y as requiredGate } from "./todoAutomation-Buo457VO.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-IBbnn9b8.js";
|
|
6
|
-
import { $ as shouldStealLock, C as listRecords, J as hostId, K as appendEvent, Q as readInbox, X as listInboxParents, Z as liveWatchers, _ as isPidAlive, c as deriveLiveState, et as daemonLockDir, j as renderLogTailLines, nt as notifyDir, q as gcInboxes, tt as daemonLockOwnerPath } from "./subcommands-
|
|
6
|
+
import { $ as shouldStealLock, C as listRecords, J as hostId, K as appendEvent, Q as readInbox, X as listInboxParents, Z as liveWatchers, _ as isPidAlive, c as deriveLiveState, et as daemonLockDir, j as renderLogTailLines, nt as notifyDir, q as gcInboxes, tt as daemonLockOwnerPath } from "./subcommands-DeEoYwPl.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import { mkdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
|
|
@@ -836,4 +836,4 @@ async function ensureDaemon() {
|
|
|
836
836
|
|
|
837
837
|
//#endregion
|
|
838
838
|
export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
|
|
839
|
-
//# sourceMappingURL=notifyDaemon-
|
|
839
|
+
//# sourceMappingURL=notifyDaemon-B1IAqhdC.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as getInstalledPackage } from "./versionChecker-
|
|
1
|
+
import { r as getInstalledPackage } from "./versionChecker-UbAydyGS.js";
|
|
2
2
|
import { execFileSync } from "child_process";
|
|
3
3
|
import { existsSync, mkdirSync, unlinkSync } from "fs";
|
|
4
4
|
import { chmod, copyFile } from "fs/promises";
|
|
@@ -225,4 +225,4 @@ async function getRustBinary(options = {}) {
|
|
|
225
225
|
|
|
226
226
|
//#endregion
|
|
227
227
|
export { getRustBinary as n, findSpawnHiddenLauncher as t };
|
|
228
|
-
//# sourceMappingURL=rustBinary-
|
|
228
|
+
//# sourceMappingURL=rustBinary-ByzIf2js.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./logger-CDIsZ-Pp.js";
|
|
2
|
-
import "./versionChecker-
|
|
3
|
-
import "./ts-
|
|
2
|
+
import "./versionChecker-UbAydyGS.js";
|
|
3
|
+
import "./ts-D-lKlowc.js";
|
|
4
4
|
import "./todoAutomation-Buo457VO.js";
|
|
5
5
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
6
6
|
import "./globalPidIndex-D9DOSd-c.js";
|
|
7
7
|
import "./pidStore-vnX0bgra.js";
|
|
8
8
|
import "./messageLog-C-YIzhRj.js";
|
|
9
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
9
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BXJSjxkF.js";
|
|
10
10
|
import { f as resolveSpawnCwd } from "./workspaceConfig-CpilQzMY.js";
|
|
11
11
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-BtL6Oo1o.js";
|
|
12
12
|
import { createHash } from "node:crypto";
|
|
@@ -153,4 +153,4 @@ async function cmdSchedule(rest) {
|
|
|
153
153
|
|
|
154
154
|
//#endregion
|
|
155
155
|
export { cmdSchedule };
|
|
156
|
-
//# sourceMappingURL=schedule-
|
|
156
|
+
//# sourceMappingURL=schedule-CcBm_AJi.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-UbAydyGS.js";
|
|
3
|
+
import { t as findSpawnHiddenLauncher } from "./rustBinary-ByzIf2js.js";
|
|
4
|
+
import { c as permissionBadge, i as answerAsk, o as listAsks, u as CLAUDE_SESSION_PIN_ENV } from "./ts-D-lKlowc.js";
|
|
5
5
|
import { t as agentYesHome$1 } from "./agentYesHome-CtmsY6I-.js";
|
|
6
6
|
import { x as removeControlCharacters } from "./todoAutomation-Buo457VO.js";
|
|
7
7
|
import "./JsonlStore-CPGIR0Wy.js";
|
|
@@ -11,12 +11,12 @@ import { r as recordInbox } from "./messageLog-C-YIzhRj.js";
|
|
|
11
11
|
import { t as pgidForWrapper } from "./reaper-DP49VCKx.js";
|
|
12
12
|
import "./e2e-CEIdJGZ7.js";
|
|
13
13
|
import "./configShared-IBbnn9b8.js";
|
|
14
|
-
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-
|
|
15
|
-
import { A as recentReadEdges, C as listRecords, D as readNotes, G as writeToIpc, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, Y as isTransientLockMkdirError, f as extractNeedsInput, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, rt as TYPING_BADGE, u as extractBadges, x as isUserTyping, z as snapshotStatus } from "./subcommands-
|
|
14
|
+
import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BXJSjxkF.js";
|
|
15
|
+
import { A as recentReadEdges, C as listRecords, D as readNotes, G as writeToIpc, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, Y as isTransientLockMkdirError, f as extractNeedsInput, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, o as controlCodeFromName, p as extractTaskCounts, rt as TYPING_BADGE, u as extractBadges, x as isUserTyping, z as snapshotStatus } from "./subcommands-DeEoYwPl.js";
|
|
16
16
|
import "./webrtcLink-BMYneHbu.js";
|
|
17
17
|
import "./remotes-BxQnNxQv.js";
|
|
18
18
|
import { i as frameVisitorMessage, s as verifyCapability, t as MAX_CALLBACK_MSG_BYTES } from "./callbackCore-Dd28_cBM.js";
|
|
19
|
-
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-
|
|
19
|
+
import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-8RWpxE4I.js";
|
|
20
20
|
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-CpilQzMY.js";
|
|
21
21
|
import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-BtL6Oo1o.js";
|
|
22
22
|
import { r as spawnRejectionReason } from "./spawnGate-BFJPdHCQ.js";
|
|
@@ -2306,7 +2306,7 @@ Options:
|
|
|
2306
2306
|
}
|
|
2307
2307
|
});
|
|
2308
2308
|
if (req.method === "GET" && p === "/api/ws") {
|
|
2309
|
-
const ws = await import("./ws-
|
|
2309
|
+
const ws = await import("./ws-Ba4q33_l.js");
|
|
2310
2310
|
try {
|
|
2311
2311
|
await ws.loadProvision();
|
|
2312
2312
|
} catch (e) {
|
|
@@ -2326,7 +2326,7 @@ Options:
|
|
|
2326
2326
|
if (req.method === "GET" && p === "/api/ws/status") {
|
|
2327
2327
|
const dirRaw = url.searchParams.get("path");
|
|
2328
2328
|
if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
|
|
2329
|
-
const ws = await import("./ws-
|
|
2329
|
+
const ws = await import("./ws-Ba4q33_l.js");
|
|
2330
2330
|
let prov;
|
|
2331
2331
|
try {
|
|
2332
2332
|
prov = await ws.loadProvision();
|
|
@@ -3079,7 +3079,7 @@ Options:
|
|
|
3079
3079
|
const perm = body.perm ?? "r";
|
|
3080
3080
|
if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
|
|
3081
3081
|
try {
|
|
3082
|
-
const { createScopedShare } = await import("./agentShare-
|
|
3082
|
+
const { createScopedShare } = await import("./agentShare-BbLkcQm4.js");
|
|
3083
3083
|
const share = await createScopedShare({
|
|
3084
3084
|
agent: body.agent,
|
|
3085
3085
|
perm,
|
|
@@ -3094,12 +3094,12 @@ Options:
|
|
|
3094
3094
|
}
|
|
3095
3095
|
}
|
|
3096
3096
|
if (req.method === "GET" && p === "/api/shares") {
|
|
3097
|
-
const { listShares } = await import("./agentShare-
|
|
3097
|
+
const { listShares } = await import("./agentShare-BbLkcQm4.js");
|
|
3098
3098
|
return Response.json(listShares());
|
|
3099
3099
|
}
|
|
3100
3100
|
const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
|
|
3101
3101
|
if (req.method === "DELETE" && revokeM) {
|
|
3102
|
-
const { revokeShare } = await import("./agentShare-
|
|
3102
|
+
const { revokeShare } = await import("./agentShare-BbLkcQm4.js");
|
|
3103
3103
|
const ok = revokeShare(decodeURIComponent(revokeM[1]));
|
|
3104
3104
|
return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
|
|
3105
3105
|
}
|
|
@@ -3401,7 +3401,7 @@ Options:
|
|
|
3401
3401
|
const shutdown = (resolve) => {
|
|
3402
3402
|
if (heartbeat) clearInterval(heartbeat);
|
|
3403
3403
|
closeShare?.();
|
|
3404
|
-
import("./agentShare-
|
|
3404
|
+
import("./agentShare-BbLkcQm4.js").then((m) => m.revokeAllShares()).catch(() => {});
|
|
3405
3405
|
server?.stop();
|
|
3406
3406
|
Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
|
|
3407
3407
|
};
|
|
@@ -3414,4 +3414,4 @@ Options:
|
|
|
3414
3414
|
|
|
3415
3415
|
//#endregion
|
|
3416
3416
|
export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
|
|
3417
|
-
//# sourceMappingURL=serve-
|
|
3417
|
+
//# sourceMappingURL=serve-BXvJ0BVz.js.map
|
|
@@ -32,7 +32,7 @@ async function cmdSetup(rest) {
|
|
|
32
32
|
if (!existsSync(abs)) process.stderr.write(` note: that directory doesn't exist yet — create it, or agents spawned there will fail\n`);
|
|
33
33
|
if (noShare) return 0;
|
|
34
34
|
process.stdout.write(`\nsharing this machine to agent-yes.com…\n`);
|
|
35
|
-
const { cmdServe } = await import("./serve-
|
|
35
|
+
const { cmdServe } = await import("./serve-BXvJ0BVz.js");
|
|
36
36
|
return cmdServe([
|
|
37
37
|
"install",
|
|
38
38
|
"--share",
|
|
@@ -42,4 +42,4 @@ async function cmdSetup(rest) {
|
|
|
42
42
|
|
|
43
43
|
//#endregion
|
|
44
44
|
export { cmdSetup };
|
|
45
|
-
//# sourceMappingURL=setup-
|
|
45
|
+
//# sourceMappingURL=setup-DN7g-GlT.js.map
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-IBbnn9b8.js";
|
|
6
|
-
import { A as recentReadEdges, B as stdinActivityPath, C as listRecords, D as readNotes, E as readAgentPtysize, F as resolveReadWindow, G as writeToIpc, H as submitAndConfirm, I as resolveResumeArgs, L as restartHintLines, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, R as runSubcommand, S as lastStdinAt, T as menuSelectKeys, U as waitForLogQuiet, V as stopTipForCli, W as writeKeysPaced, _ as isPidAlive, a as cmdHelp, b as isUnknownManagerToken, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as matchKeyword, x as isUserTyping, y as isSubcommand, z as snapshotStatus } from "./subcommands-
|
|
6
|
+
import { A as recentReadEdges, B as stdinActivityPath, C as listRecords, D as readNotes, E as readAgentPtysize, F as resolveReadWindow, G as writeToIpc, H as submitAndConfirm, I as resolveResumeArgs, L as restartHintLines, M as renderRawLog, N as renderRawLogLines, O as readPtysize, P as resolveOne, R as runSubcommand, S as lastStdinAt, T as menuSelectKeys, U as waitForLogQuiet, V as stopTipForCli, W as writeKeysPaced, _ as isPidAlive, a as cmdHelp, b as isUnknownManagerToken, c as deriveLiveState, d as extractMenu, f as extractNeedsInput, g as isExitRequest, h as isAgentStuck, i as backoffWhileTyping, j as renderLogTailLines, k as recentMessageEdges, l as deriveLiveStatus, m as finalizedLines, n as READ_PAGE_DEFAULT, o as controlCodeFromName, p as extractTaskCounts, r as TYPING_WINDOW_MS, s as cursorAbs, t as GRACEFUL_EXIT_COMMANDS, u as extractBadges, v as isSlashCommand, w as matchKeyword, x as isUserTyping, y as isSubcommand, z as snapshotStatus } from "./subcommands-DeEoYwPl.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
|
|
@@ -1339,31 +1339,31 @@ async function runSubcommand(argv) {
|
|
|
1339
1339
|
return cmdCh(rest);
|
|
1340
1340
|
}
|
|
1341
1341
|
case "term": {
|
|
1342
|
-
const { cmdTerm } = await import("./terminal-
|
|
1342
|
+
const { cmdTerm } = await import("./terminal-lMeA3l5c.js");
|
|
1343
1343
|
return cmdTerm(rest);
|
|
1344
1344
|
}
|
|
1345
1345
|
case "widget": {
|
|
1346
|
-
const { cmdWidget } = await import("./widget-
|
|
1346
|
+
const { cmdWidget } = await import("./widget-w6D-Sn_o.js");
|
|
1347
1347
|
return cmdWidget(rest);
|
|
1348
1348
|
}
|
|
1349
1349
|
case "mint": {
|
|
1350
|
-
const { cmdMint } = await import("./widget-
|
|
1350
|
+
const { cmdMint } = await import("./widget-w6D-Sn_o.js");
|
|
1351
1351
|
return cmdMint(rest);
|
|
1352
1352
|
}
|
|
1353
1353
|
case "serve": {
|
|
1354
|
-
const { cmdServe } = await import("./serve-
|
|
1354
|
+
const { cmdServe } = await import("./serve-BXvJ0BVz.js");
|
|
1355
1355
|
return cmdServe(rest);
|
|
1356
1356
|
}
|
|
1357
1357
|
case "setup": {
|
|
1358
|
-
const { cmdSetup } = await import("./setup-
|
|
1358
|
+
const { cmdSetup } = await import("./setup-DN7g-GlT.js");
|
|
1359
1359
|
return cmdSetup(rest);
|
|
1360
1360
|
}
|
|
1361
1361
|
case "ws": {
|
|
1362
|
-
const { cmdWs } = await import("./ws-
|
|
1362
|
+
const { cmdWs } = await import("./ws-Ba4q33_l.js");
|
|
1363
1363
|
return cmdWs(rest);
|
|
1364
1364
|
}
|
|
1365
1365
|
case "schedule": {
|
|
1366
|
-
const { cmdSchedule } = await import("./schedule-
|
|
1366
|
+
const { cmdSchedule } = await import("./schedule-CcBm_AJi.js");
|
|
1367
1367
|
return cmdSchedule(rest);
|
|
1368
1368
|
}
|
|
1369
1369
|
case "remote": {
|
|
@@ -1375,7 +1375,7 @@ async function runSubcommand(argv) {
|
|
|
1375
1375
|
return cmdExpose(rest);
|
|
1376
1376
|
}
|
|
1377
1377
|
case "callback": {
|
|
1378
|
-
const { cmdCallback } = await import("./callback-
|
|
1378
|
+
const { cmdCallback } = await import("./callback-C4O66DTj.js");
|
|
1379
1379
|
return cmdCallback(rest);
|
|
1380
1380
|
}
|
|
1381
1381
|
case "reap":
|
|
@@ -3778,7 +3778,7 @@ async function cmdAttach(rest) {
|
|
|
3778
3778
|
const winsizeDir = path.join(ayHome, "winsize");
|
|
3779
3779
|
await mkdir(winsizeDir, { recursive: true });
|
|
3780
3780
|
const winsizePath = path.join(winsizeDir, String(record.pid));
|
|
3781
|
-
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-
|
|
3781
|
+
const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-BXvJ0BVz.js");
|
|
3782
3782
|
const daemonBase = await resolveDaemonHttpBase().catch(() => null);
|
|
3783
3783
|
const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
|
|
3784
3784
|
const capViewer = `attach:${process.pid}`;
|
|
@@ -4488,7 +4488,7 @@ async function cmdNotify(rest) {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
const ensure = async () => {
|
|
4490
4490
|
if (!argv["ensure-daemon"]) return;
|
|
4491
|
-
const { ensureDaemon } = await import("./notifyDaemon-
|
|
4491
|
+
const { ensureDaemon } = await import("./notifyDaemon-B1IAqhdC.js");
|
|
4492
4492
|
await ensureDaemon().catch(() => null);
|
|
4493
4493
|
};
|
|
4494
4494
|
await heartbeatWatcher(parent, selfStartedAt);
|
|
@@ -4562,7 +4562,7 @@ async function cmdNotifyCursor(args) {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
async function cmdNotifyd(rest) {
|
|
4564
4564
|
const sub = rest[0] ?? "status";
|
|
4565
|
-
const daemon = await import("./notifyDaemon-
|
|
4565
|
+
const daemon = await import("./notifyDaemon-B1IAqhdC.js");
|
|
4566
4566
|
switch (sub) {
|
|
4567
4567
|
case "run": return daemon.runDaemon();
|
|
4568
4568
|
case "once": return daemon.runDaemon({ once: true });
|
|
@@ -4589,4 +4589,4 @@ async function cmdNotifyd(rest) {
|
|
|
4589
4589
|
|
|
4590
4590
|
//#endregion
|
|
4591
4591
|
export { shouldStealLock as $, recentReadEdges as A, stdinActivityPath as B, listRecords as C, readNotes as D, readAgentPtysize as E, resolveReadWindow as F, writeToIpc as G, submitAndConfirm as H, resolveResumeArgs as I, hostId as J, appendEvent as K, restartHintLines as L, renderRawLog as M, renderRawLogLines as N, readPtysize as O, resolveOne as P, readInbox as Q, runSubcommand as R, lastStdinAt as S, menuSelectKeys as T, waitForLogQuiet as U, stopTipForCli as V, writeKeysPaced as W, listInboxParents as X, isTransientLockMkdirError as Y, liveWatchers as Z, isPidAlive as _, cmdHelp as a, isUnknownManagerToken as b, deriveLiveState as c, extractMenu as d, daemonLockDir as et, extractNeedsInput as f, isExitRequest as g, isAgentStuck as h, backoffWhileTyping as i, renderLogTailLines as j, recentMessageEdges as k, deriveLiveStatus as l, finalizedLines as m, READ_PAGE_DEFAULT as n, notifyDir as nt, controlCodeFromName as o, extractTaskCounts as p, gcInboxes as q, TYPING_WINDOW_MS as r, TYPING_BADGE as rt, cursorAbs as s, GRACEFUL_EXIT_COMMANDS as t, daemonLockOwnerPath as tt, extractBadges as u, isSlashCommand as v, matchKeyword as w, isUserTyping as x, isSubcommand as y, snapshotStatus as z };
|
|
4592
|
-
//# sourceMappingURL=subcommands-
|
|
4592
|
+
//# sourceMappingURL=subcommands-DeEoYwPl.js.map
|
|
@@ -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-BXvJ0BVz.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-lMeA3l5c.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-UbAydyGS.js";
|
|
4
4
|
import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
|
|
5
5
|
import { d as openStore, p as LIFECYCLES, x as removeControlCharacters } from "./todoAutomation-Buo457VO.js";
|
|
6
6
|
import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DBoONoM-.js";
|
|
@@ -2155,4 +2155,4 @@ function sleep(ms) {
|
|
|
2155
2155
|
|
|
2156
2156
|
//#endregion
|
|
2157
2157
|
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 };
|
|
2158
|
-
//# sourceMappingURL=ts-
|
|
2158
|
+
//# sourceMappingURL=ts-D-lKlowc.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.
|
|
10
|
+
var version = "1.251.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-UbAydyGS.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-BXvJ0BVz.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-BXvJ0BVz.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-w6D-Sn_o.js.map
|
|
@@ -3,7 +3,7 @@ import "./globalPidIndex-D9DOSd-c.js";
|
|
|
3
3
|
import "./messageLog-C-YIzhRj.js";
|
|
4
4
|
import "./e2e-CEIdJGZ7.js";
|
|
5
5
|
import "./configShared-IBbnn9b8.js";
|
|
6
|
-
import { C as listRecords } from "./subcommands-
|
|
6
|
+
import { C as listRecords } from "./subcommands-DeEoYwPl.js";
|
|
7
7
|
import "./webrtcLink-BMYneHbu.js";
|
|
8
8
|
import "./remotes-BxQnNxQv.js";
|
|
9
9
|
import { a as getProvisionRoot } from "./workspaceConfig-CpilQzMY.js";
|
|
@@ -418,4 +418,4 @@ async function cmdWs(args) {
|
|
|
418
418
|
|
|
419
419
|
//#endregion
|
|
420
420
|
export { WS_JSON_SCHEMA, cmdWs, collectWorkspaces, isPathInside, loadProvision, workspaceStatus };
|
|
421
|
-
//# sourceMappingURL=ws-
|
|
421
|
+
//# sourceMappingURL=ws-Ba4q33_l.js.map
|
package/lab/ui/index.html
CHANGED
|
@@ -3663,17 +3663,24 @@
|
|
|
3663
3663
|
// 3s heartbeat (< the host's 12s TTL): refresh our presence + read others',
|
|
3664
3664
|
// and follow the canonical grid size (resize+scale, never reflow) so all
|
|
3665
3665
|
// viewers stay on one shared canvas and selections line up.
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
if (
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3666
|
+
let presencePollRunning = false;
|
|
3667
|
+
setInterval(async () => {
|
|
3668
|
+
if (presencePollRunning) return;
|
|
3669
|
+
presencePollRunning = true;
|
|
3670
|
+
try {
|
|
3671
|
+
await pollFleetPresence(); // fleet-wide peer focus (independent of what's selected)
|
|
3672
|
+
if (!sel) return;
|
|
3673
|
+
sendPresence();
|
|
3674
|
+
await pollPresence();
|
|
3675
|
+
const cur = presenceTarget();
|
|
3676
|
+
if (cur) {
|
|
3677
|
+
try {
|
|
3678
|
+
followAgentSize(await cur.tx.fetchJSON("/api/size/" + encodeURIComponent(cur.e.pid)));
|
|
3679
|
+
} catch {}
|
|
3680
|
+
}
|
|
3681
|
+
} finally {
|
|
3682
|
+
presencePollRunning = false;
|
|
3683
|
+
}
|
|
3677
3684
|
}, 3000);
|
|
3678
3685
|
// Fast pulse loop: drive the stdin flash on the STABLE list DOM (toggle a
|
|
3679
3686
|
// class, no re-render) so a pulse begins/ends promptly regardless of the
|
|
@@ -3738,7 +3745,16 @@
|
|
|
3738
3745
|
}
|
|
3739
3746
|
renderSendWires();
|
|
3740
3747
|
}
|
|
3741
|
-
|
|
3748
|
+
let edgesPollRunning = false;
|
|
3749
|
+
setInterval(async () => {
|
|
3750
|
+
if (edgesPollRunning) return;
|
|
3751
|
+
edgesPollRunning = true;
|
|
3752
|
+
try {
|
|
3753
|
+
await pollEdges();
|
|
3754
|
+
} finally {
|
|
3755
|
+
edgesPollRunning = false;
|
|
3756
|
+
}
|
|
3757
|
+
}, 1500);
|
|
3742
3758
|
|
|
3743
3759
|
// Drive the send/recv row pulses on the stable list DOM (same trick as the
|
|
3744
3760
|
// stdin flash above), and keep the wire fading. No-op when nothing's in
|
package/package.json
CHANGED