agent-yes 1.246.3 → 1.246.4

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.
@@ -1,11 +1,11 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-DAyhKwPF.js";
3
- import "./ts-zcVmOocL.js";
2
+ import "./versionChecker-D5s9vQ-1.js";
3
+ import "./ts-CQ67EOjN.js";
4
4
  import "./todoAutomation-Buo457VO.js";
5
5
  import "./JsonlStore-CPGIR0Wy.js";
6
6
  import "./globalPidIndex-D9DOSd-c.js";
7
7
  import "./pidStore-6EZd5DUv.js";
8
8
  import "./messageLog-C-YIzhRj.js";
9
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BYeEVEgZ.js";
9
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DjDZ3MGT.js";
10
10
 
11
11
  export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-zcVmOocL.js";
1
+ import { t as CLIS_CONFIG } from "./ts-CQ67EOjN.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-BYeEVEgZ.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-DjDZ3MGT.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-9wVlbPyC.js";
6
- import { P as resolveOne } from "./subcommands-9m9D3C03.js";
6
+ import { P as resolveOne } from "./subcommands-WOGfqD8M.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-B9X9pO6m.js.map
232
+ //# sourceMappingURL=agentShare-DfvmYPdC.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-9wVlbPyC.js";
6
- import "./subcommands-9m9D3C03.js";
6
+ import "./subcommands-WOGfqD8M.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-CRF0mUus.js";
10
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-CgvcnRIP.js";
11
11
 
12
12
  export { cmdCallback };
@@ -1,5 +1,5 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-CtmsY6I-.js";
2
- import { P as resolveOne } from "./subcommands-9m9D3C03.js";
2
+ import { P as resolveOne } from "./subcommands-WOGfqD8M.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 { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -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-di_OIfsC.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-88nSS8sz.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-CRF0mUus.js.map
190
+ //# sourceMappingURL=callback-CgvcnRIP.js.map
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-DAyhKwPF.js";
5
- import { n as getRustBinary } from "./rustBinary-4znAUQBB.js";
4
+ import { i as versionString, n as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-D5s9vQ-1.js";
5
+ import { n as getRustBinary } from "./rustBinary-t6UmLbT8.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-CustPguh.js");
288
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken } = await import("./subcommands-BLOe70zq.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-CfuM53rz.js");
298
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-Bxzq06Mp.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-CfuM53rz.js");
349
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-Bxzq06Mp.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-DAyhKwPF.js";
3
- import { a as hasTodoStore, c as AgentContext, i as answerAsk, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-zcVmOocL.js";
2
+ import "./versionChecker-D5s9vQ-1.js";
3
+ import { a as hasTodoStore, c as AgentContext, i as answerAsk, n as agentYes, o as listAsks, r as config, s as listAsksForProject, t as CLIS_CONFIG } from "./ts-CQ67EOjN.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-9wVlbPyC.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-9m9D3C03.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-WOGfqD8M.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";
@@ -589,4 +589,4 @@ async function ensureDaemon() {
589
589
 
590
590
  //#endregion
591
591
  export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
592
- //# sourceMappingURL=notifyDaemon-CTCu7uSw.js.map
592
+ //# sourceMappingURL=notifyDaemon-Cgx9Sauh.js.map
@@ -1,4 +1,4 @@
1
- import { r as getInstalledPackage } from "./versionChecker-DAyhKwPF.js";
1
+ import { r as getInstalledPackage } from "./versionChecker-D5s9vQ-1.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-4znAUQBB.js.map
228
+ //# sourceMappingURL=rustBinary-t6UmLbT8.js.map
@@ -1,12 +1,12 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-DAyhKwPF.js";
3
- import "./ts-zcVmOocL.js";
2
+ import "./versionChecker-D5s9vQ-1.js";
3
+ import "./ts-CQ67EOjN.js";
4
4
  import "./todoAutomation-Buo457VO.js";
5
5
  import "./JsonlStore-CPGIR0Wy.js";
6
6
  import "./globalPidIndex-D9DOSd-c.js";
7
7
  import "./pidStore-6EZd5DUv.js";
8
8
  import "./messageLog-C-YIzhRj.js";
9
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BYeEVEgZ.js";
9
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DjDZ3MGT.js";
10
10
  import { d as resolveSpawnCwd } from "./workspaceConfig-DOHygA2x.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-Cg5bJdAF.js.map
156
+ //# sourceMappingURL=schedule-Ak3Z7M7d.js.map
@@ -1,7 +1,7 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import { r as getInstalledPackage } from "./versionChecker-DAyhKwPF.js";
3
- import { t as findSpawnHiddenLauncher } from "./rustBinary-4znAUQBB.js";
4
- import { i as answerAsk, l as CLAUDE_SESSION_PIN_ENV, o as listAsks } from "./ts-zcVmOocL.js";
2
+ import { r as getInstalledPackage } from "./versionChecker-D5s9vQ-1.js";
3
+ import { t as findSpawnHiddenLauncher } from "./rustBinary-t6UmLbT8.js";
4
+ import { i as answerAsk, l as CLAUDE_SESSION_PIN_ENV, o as listAsks } from "./ts-CQ67EOjN.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-9wVlbPyC.js";
14
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-BYeEVEgZ.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-9m9D3C03.js";
14
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DjDZ3MGT.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-WOGfqD8M.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-CRF0mUus.js";
19
+ import { n as isCallbackRevoked, r as loadCallbackSecretReadOnly } from "./callback-CgvcnRIP.js";
20
20
  import { a as getSpawnHook, c as hasProvisionHook, d as resolveSpawnCwd, i as getProvisionRoot, l as hasSpawnHook, r as getProvisionHook, u as isProvisionAllowed } from "./workspaceConfig-DOHygA2x.js";
21
21
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-BtL6Oo1o.js";
22
22
  import { r as spawnRejectionReason } from "./spawnGate-BxgS_GlF.js";
@@ -2300,7 +2300,7 @@ Options:
2300
2300
  }
2301
2301
  });
2302
2302
  if (req.method === "GET" && p === "/api/ws") {
2303
- const ws = await import("./ws-CzHpujvz.js");
2303
+ const ws = await import("./ws-BSxJ9sZs.js");
2304
2304
  try {
2305
2305
  await ws.loadProvision();
2306
2306
  } catch (e) {
@@ -2320,7 +2320,7 @@ Options:
2320
2320
  if (req.method === "GET" && p === "/api/ws/status") {
2321
2321
  const dirRaw = url.searchParams.get("path");
2322
2322
  if (!dirRaw) return new Response("missing ?path=<workspace dir>", { status: 400 });
2323
- const ws = await import("./ws-CzHpujvz.js");
2323
+ const ws = await import("./ws-BSxJ9sZs.js");
2324
2324
  let prov;
2325
2325
  try {
2326
2326
  prov = await ws.loadProvision();
@@ -3070,7 +3070,7 @@ Options:
3070
3070
  const perm = body.perm ?? "r";
3071
3071
  if (perm !== "r" && perm !== "rw") return new Response(`invalid perm ${perm} (want r or rw)`, { status: 400 });
3072
3072
  try {
3073
- const { createScopedShare } = await import("./agentShare-B9X9pO6m.js");
3073
+ const { createScopedShare } = await import("./agentShare-DfvmYPdC.js");
3074
3074
  const share = await createScopedShare({
3075
3075
  agent: body.agent,
3076
3076
  perm,
@@ -3085,12 +3085,12 @@ Options:
3085
3085
  }
3086
3086
  }
3087
3087
  if (req.method === "GET" && p === "/api/shares") {
3088
- const { listShares } = await import("./agentShare-B9X9pO6m.js");
3088
+ const { listShares } = await import("./agentShare-DfvmYPdC.js");
3089
3089
  return Response.json(listShares());
3090
3090
  }
3091
3091
  const revokeM = /^\/api\/share\/([^/]+)$/.exec(p);
3092
3092
  if (req.method === "DELETE" && revokeM) {
3093
- const { revokeShare } = await import("./agentShare-B9X9pO6m.js");
3093
+ const { revokeShare } = await import("./agentShare-DfvmYPdC.js");
3094
3094
  const ok = revokeShare(decodeURIComponent(revokeM[1]));
3095
3095
  return new Response(ok ? "revoked" : "no such share", { status: ok ? 200 : 404 });
3096
3096
  }
@@ -3392,7 +3392,7 @@ Options:
3392
3392
  const shutdown = (resolve) => {
3393
3393
  if (heartbeat) clearInterval(heartbeat);
3394
3394
  closeShare?.();
3395
- import("./agentShare-B9X9pO6m.js").then((m) => m.revokeAllShares()).catch(() => {});
3395
+ import("./agentShare-DfvmYPdC.js").then((m) => m.revokeAllShares()).catch(() => {});
3396
3396
  server?.stop();
3397
3397
  Promise.resolve(releaseHostLock?.()).catch(() => {}).then(resolve);
3398
3398
  };
@@ -3405,4 +3405,4 @@ Options:
3405
3405
 
3406
3406
  //#endregion
3407
3407
  export { cmdServe, loadTokenReadOnly, mintScopedTermToken, resolveDaemonHttpBase, resolveLocalServeUrl };
3408
- //# sourceMappingURL=serve-di_OIfsC.js.map
3408
+ //# sourceMappingURL=serve-88nSS8sz.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-di_OIfsC.js");
35
+ const { cmdServe } = await import("./serve-88nSS8sz.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-CjrHOYZs.js.map
45
+ //# sourceMappingURL=setup-Dfc3vx65.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-9wVlbPyC.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-9m9D3C03.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-WOGfqD8M.js";
7
7
  import "./webrtcLink-BMYneHbu.js";
8
8
  import "./remotes-BxQnNxQv.js";
9
9
 
@@ -1267,31 +1267,31 @@ async function runSubcommand(argv) {
1267
1267
  return cmdCh(rest);
1268
1268
  }
1269
1269
  case "term": {
1270
- const { cmdTerm } = await import("./terminal-Dhx67Thi.js");
1270
+ const { cmdTerm } = await import("./terminal-DxXJeIF4.js");
1271
1271
  return cmdTerm(rest);
1272
1272
  }
1273
1273
  case "widget": {
1274
- const { cmdWidget } = await import("./widget-DeJUoOYQ.js");
1274
+ const { cmdWidget } = await import("./widget-DZxzSlx6.js");
1275
1275
  return cmdWidget(rest);
1276
1276
  }
1277
1277
  case "mint": {
1278
- const { cmdMint } = await import("./widget-DeJUoOYQ.js");
1278
+ const { cmdMint } = await import("./widget-DZxzSlx6.js");
1279
1279
  return cmdMint(rest);
1280
1280
  }
1281
1281
  case "serve": {
1282
- const { cmdServe } = await import("./serve-di_OIfsC.js");
1282
+ const { cmdServe } = await import("./serve-88nSS8sz.js");
1283
1283
  return cmdServe(rest);
1284
1284
  }
1285
1285
  case "setup": {
1286
- const { cmdSetup } = await import("./setup-CjrHOYZs.js");
1286
+ const { cmdSetup } = await import("./setup-Dfc3vx65.js");
1287
1287
  return cmdSetup(rest);
1288
1288
  }
1289
1289
  case "ws": {
1290
- const { cmdWs } = await import("./ws-CzHpujvz.js");
1290
+ const { cmdWs } = await import("./ws-BSxJ9sZs.js");
1291
1291
  return cmdWs(rest);
1292
1292
  }
1293
1293
  case "schedule": {
1294
- const { cmdSchedule } = await import("./schedule-Cg5bJdAF.js");
1294
+ const { cmdSchedule } = await import("./schedule-Ak3Z7M7d.js");
1295
1295
  return cmdSchedule(rest);
1296
1296
  }
1297
1297
  case "remote": {
@@ -1303,7 +1303,7 @@ async function runSubcommand(argv) {
1303
1303
  return cmdExpose(rest);
1304
1304
  }
1305
1305
  case "callback": {
1306
- const { cmdCallback } = await import("./callback-BqFaWi9L.js");
1306
+ const { cmdCallback } = await import("./callback-Bd4vejg2.js");
1307
1307
  return cmdCallback(rest);
1308
1308
  }
1309
1309
  case "reap":
@@ -3706,7 +3706,7 @@ async function cmdAttach(rest) {
3706
3706
  const winsizeDir = path.join(ayHome, "winsize");
3707
3707
  await mkdir(winsizeDir, { recursive: true });
3708
3708
  const winsizePath = path.join(winsizeDir, String(record.pid));
3709
- const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-di_OIfsC.js");
3709
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-88nSS8sz.js");
3710
3710
  const daemonBase = await resolveDaemonHttpBase().catch(() => null);
3711
3711
  const daemonToken = daemonBase ? await loadTokenReadOnly().catch(() => null) ?? "" : "";
3712
3712
  const capViewer = `attach:${process.pid}`;
@@ -4403,7 +4403,7 @@ async function cmdNotify(rest) {
4403
4403
  }
4404
4404
  const ensure = async () => {
4405
4405
  if (!argv["ensure-daemon"]) return;
4406
- const { ensureDaemon } = await import("./notifyDaemon-CTCu7uSw.js");
4406
+ const { ensureDaemon } = await import("./notifyDaemon-Cgx9Sauh.js");
4407
4407
  await ensureDaemon().catch(() => null);
4408
4408
  };
4409
4409
  await heartbeatWatcher(parent, selfStartedAt);
@@ -4477,7 +4477,7 @@ async function cmdNotifyCursor(args) {
4477
4477
  }
4478
4478
  async function cmdNotifyd(rest) {
4479
4479
  const sub = rest[0] ?? "status";
4480
- const daemon = await import("./notifyDaemon-CTCu7uSw.js");
4480
+ const daemon = await import("./notifyDaemon-Cgx9Sauh.js");
4481
4481
  switch (sub) {
4482
4482
  case "run": return daemon.runDaemon();
4483
4483
  case "once": return daemon.runDaemon({ once: true });
@@ -4504,4 +4504,4 @@ async function cmdNotifyd(rest) {
4504
4504
 
4505
4505
  //#endregion
4506
4506
  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 };
4507
- //# sourceMappingURL=subcommands-9m9D3C03.js.map
4507
+ //# sourceMappingURL=subcommands-WOGfqD8M.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-di_OIfsC.js");
101
+ const { mintScopedTermToken } = await import("./serve-88nSS8sz.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-Dhx67Thi.js.map
138
+ //# sourceMappingURL=terminal-DxXJeIF4.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-DAyhKwPF.js";
3
+ import { r as getInstalledPackage } from "./versionChecker-D5s9vQ-1.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";
@@ -2027,4 +2027,4 @@ function sleep(ms) {
2027
2027
 
2028
2028
  //#endregion
2029
2029
  export { hasTodoStore as a, AgentContext as c, answerAsk as i, CLAUDE_SESSION_PIN_ENV as l, agentYes as n, listAsks as o, config as r, listAsksForProject as s, CLIS_CONFIG as t };
2030
- //# sourceMappingURL=ts-zcVmOocL.js.map
2030
+ //# sourceMappingURL=ts-CQ67EOjN.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.246.3";
10
+ var version = "1.246.4";
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-DAyhKwPF.js.map
218
+ //# sourceMappingURL=versionChecker-D5s9vQ-1.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-di_OIfsC.js");
31
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-88nSS8sz.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-di_OIfsC.js");
189
+ const { mintScopedTermToken } = await import("./serve-88nSS8sz.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-DeJUoOYQ.js.map
205
+ //# sourceMappingURL=widget-DZxzSlx6.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-9wVlbPyC.js";
6
- import { C as listRecords } from "./subcommands-9m9D3C03.js";
6
+ import { C as listRecords } from "./subcommands-WOGfqD8M.js";
7
7
  import "./webrtcLink-BMYneHbu.js";
8
8
  import "./remotes-BxQnNxQv.js";
9
9
  import { i as getProvisionRoot } from "./workspaceConfig-DOHygA2x.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-CzHpujvz.js.map
421
+ //# sourceMappingURL=ws-BSxJ9sZs.js.map
package/lab/ui/index.html CHANGED
@@ -7209,6 +7209,12 @@ my.translate = async (text, lang) => {
7209
7209
  // ---- rooms: localStorage cache + a manager you open by clicking the badge ----
7210
7210
  const ROOMS_KEY = "ay.rooms";
7211
7211
  const ROOM_TTL_MS = 90 * 24 * 60 * 60 * 1000; // evict stale rooms to bound how long a secret lingers in localStorage
7212
+ // Cap the saved-room set so the boot fan-out (and the localStorage secret
7213
+ // footprint) stays bounded no matter how many share links get opened over
7214
+ // time. When over the cap we keep the most-recently-saved rooms and drop the
7215
+ // oldest — a room silently forgotten this way is trivially re-added by
7216
+ // re-opening its share link.
7217
+ const MAX_ROOMS = 16;
7212
7218
  const loadRooms = () => {
7213
7219
  try {
7214
7220
  const r = JSON.parse(localStorage.getItem(ROOMS_KEY) || "{}");
@@ -7220,6 +7226,14 @@ my.translate = async (text, lang) => {
7220
7226
  changed = true;
7221
7227
  }
7222
7228
  }
7229
+ const keys = Object.keys(r);
7230
+ if (keys.length > MAX_ROOMS) {
7231
+ keys.sort((a, b) => (r[b]?.ts || 0) - (r[a]?.ts || 0)); // newest first
7232
+ for (const k of keys.slice(MAX_ROOMS)) {
7233
+ delete r[k];
7234
+ changed = true;
7235
+ }
7236
+ }
7223
7237
  if (changed) localStorage.setItem(ROOMS_KEY, JSON.stringify(r));
7224
7238
  return r;
7225
7239
  } catch {
@@ -7229,6 +7243,14 @@ my.translate = async (text, lang) => {
7229
7243
  const saveRoom = (room, token, host) => {
7230
7244
  const r = loadRooms();
7231
7245
  r[room] = { token, host: host || SIG_DEFAULT, ts: Date.now() };
7246
+ // Bound at write time too: loadRooms() trims on read, but a fresh add can
7247
+ // push to MAX_ROOMS+1 until the next read. The just-added room has the
7248
+ // newest ts, so the trim drops the oldest OTHER room, never this one.
7249
+ const keys = Object.keys(r);
7250
+ if (keys.length > MAX_ROOMS) {
7251
+ keys.sort((a, b) => (r[b]?.ts || 0) - (r[a]?.ts || 0)); // newest first
7252
+ for (const k of keys.slice(MAX_ROOMS)) delete r[k];
7253
+ }
7232
7254
  localStorage.setItem(ROOMS_KEY, JSON.stringify(r));
7233
7255
  };
7234
7256
  const dropRoom = (room) => {
@@ -7461,14 +7483,26 @@ my.translate = async (text, lang) => {
7461
7483
  loadList();
7462
7484
  }
7463
7485
 
7464
- // Connect to every saved room at once (called on boot). A room already
7465
- // started from the URL/hash can be skipped so it gets a brief uncontended
7466
- // head start before the rest of the fleet performs crypto + ICE setup.
7486
+ // Connect the saved rooms on boot. A room already started from the URL/hash
7487
+ // is skipped (exceptRoom) so it gets an uncontended head start. The rest are
7488
+ // STAGGERED rather than fired in one tick: opening N WebSockets + doing N
7489
+ // crypto/ICE setups simultaneously janks the foreground room's open and
7490
+ // spikes the browser's connection pool. Combined with the host-presence
7491
+ // fast-fail (welcome.hostPresent), a dead saved room now costs ~one round
7492
+ // trip instead of an 8s timeout, so the whole fleet settles quickly.
7493
+ const RTC_FANOUT_STAGGER_MS = 120;
7467
7494
  function connectAllRooms(exceptRoom = null) {
7468
7495
  const r = loadRooms();
7469
- for (const name of Object.keys(r)) {
7470
- if (name !== exceptRoom) addRoomSource(name, r[name].token, r[name].host);
7471
- }
7496
+ const names = Object.keys(r).filter((n) => n !== exceptRoom);
7497
+ names.forEach((name, i) => {
7498
+ setTimeout(() => {
7499
+ // Re-read at fire time: during the stagger delay the user may have
7500
+ // forgotten this room (removeRoom + dropRoom) — don't let a stale
7501
+ // closure resurrect and re-persist it.
7502
+ const cur = loadRooms()[name];
7503
+ if (cur) addRoomSource(name, cur.token, cur.host);
7504
+ }, i * RTC_FANOUT_STAGGER_MS);
7505
+ });
7472
7506
  }
7473
7507
 
7474
7508
  // Back-compat alias: a freshly pasted/linked room is added like any other.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-yes",
3
- "version": "1.246.3",
3
+ "version": "1.246.4",
4
4
  "description": "A wrapper tool that automates interactions with various AI CLI tools by automatically handling common prompts and responses.",
5
5
  "keywords": [
6
6
  "ai",