agent-yes 1.306.1 → 1.306.3-beta.819.1

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.
Files changed (61) hide show
  1. package/README.md +1 -0
  2. package/dist/{SUPPORTED_CLIS-B39mdr7e.js → SUPPORTED_CLIS-CCF7shxg.js} +4 -4
  3. package/dist/{SUPPORTED_CLIS-p8hgduB6.js → SUPPORTED_CLIS-DArtWpuL.js} +2 -2
  4. package/dist/{agentShare-BoaV8VZj.js → agentShare-CsJsH-Dd.js} +5 -5
  5. package/dist/{askCli-Dtxxwl28.js → askCli-D4czi-_j.js} +2 -2
  6. package/dist/{callback-EEXgUsuB.js → callback-BXEz6pKt.js} +5 -5
  7. package/dist/{callback-D_yBIISN.js → callback-CgsitnDL.js} +3 -3
  8. package/dist/cli.js +8 -8
  9. package/dist/{cmdPs-CJ45gEPR.js → cmdPs-D_OUlmDa.js} +5 -5
  10. package/dist/{identity-C0MxfwI2.js → identity-D3hr59eC.js} +1 -1
  11. package/dist/{identity-Ckav3-Up.js → identity-puvd7hVQ.js} +3 -3
  12. package/dist/index.js +3 -3
  13. package/dist/{messageLog-Dq_ka-Bt.js → messageLog-CEqe4Hk1.js} +14 -2
  14. package/dist/{notifyDaemon-C07MvUlt.js → notifyDaemon-XZkm14E_.js} +5 -5
  15. package/dist/{parentPingLoop-Cm6OlLzk.js → parentPingLoop-MusvEzUn.js} +2 -2
  16. package/dist/{remotes-BsMGvAay.js → remotes-CAZymHd7.js} +2 -2
  17. package/dist/{remotes-BqLoB5GR.js → remotes-W6NhMDfP.js} +1 -1
  18. package/dist/{roomReplyAlias-B-v76TA8.js → roomReplyAlias-B1EJft2d.js} +2 -2
  19. package/dist/roomReplyAlias-BeGVkAlc.js +6 -0
  20. package/dist/{rustBinary-DPy_bYyI.js → rustBinary-aVcHP8hD.js} +2 -2
  21. package/dist/{rustBinary-Bh2Igu4Z.js → rustBinary-qxjswvdM.js} +2 -2
  22. package/dist/{schedule-VkuXWqxD.js → schedule-DLXGgL5L.js} +50 -9
  23. package/dist/{schedulesCli-CLqieyQZ.js → schedules-BvwTGXU2.js} +2 -339
  24. package/dist/schedulesCli-Donh0LS2.js +343 -0
  25. package/dist/{serve-dnwPH3nh.js → serve-Bv9romOO.js} +40 -29
  26. package/dist/{serveRust-BfWkeL6T.js → serveRust-76_apYb8.js} +1 -1
  27. package/dist/{setup-npETZ2W9.js → setup-DxCsJ1va.js} +4 -4
  28. package/dist/{shareCmd-BVF0oTps.js → shareCmd-BlyavBFs.js} +6 -6
  29. package/dist/{spawnGate-I4p2fbz7.js → spawnGate-DhPgMs0Y.js} +1 -1
  30. package/dist/{spawnGate-3YSXiRFS.js → spawnGate-nUrmf4dd.js} +2 -2
  31. package/dist/{subcommands-Bmah5Csg.js → subcommands-BuCov57g.js} +4 -4
  32. package/dist/{subcommands-MajfofbK.js → subcommands-HUEsqib4.js} +32 -33
  33. package/dist/{systemPathLink-Y3iC7bYV.js → systemPathLink-DI9WdoqQ.js} +1 -1
  34. package/dist/{terminal-DvtOrVtQ.js → terminal-Dhv5F8VR.js} +2 -2
  35. package/dist/{todoCli-uJ3nK9j4.js → todoCli-BllShFnc.js} +1 -1
  36. package/dist/{tray-CLktEN3G.js → tray-RIjHSw7z.js} +1 -1
  37. package/dist/trayApp-8MN-AHfM.js +5 -0
  38. package/dist/{trayApp-CO6E40va.js → trayApp-CD6NOP5U.js} +2 -2
  39. package/dist/{ts-Hw31sQa6.js → ts-RXGBDphn.js} +5 -5
  40. package/dist/{versionChecker-BJtP2P0J.js → versionChecker-BHk-52of.js} +2 -2
  41. package/dist/{webrtcRemote-C3xQyf3u.js → webrtcRemote-B4pwES4i.js} +1 -1
  42. package/dist/{widget-83Axsy9v.js → widget-Coku2qhh.js} +3 -3
  43. package/dist/{workspaceConfig-DBgsu81B.js → workspaceConfig-DjEklzxf.js} +1 -1
  44. package/dist/{ws-kdJ0SlaR.js → ws-BCRKtzD0.js} +5 -5
  45. package/dist/{ws-CGXNX2xk.js → ws-VQkQQmHi.js} +3 -3
  46. package/lab/ui/console-logic.js +2 -2
  47. package/lab/ui/device-sync.js +209 -0
  48. package/lab/ui/device-transfer.js +99 -0
  49. package/lab/ui/index.html +129 -40
  50. package/lab/ui/sw.js +2 -0
  51. package/package.json +3 -1
  52. package/ts/identity.ts +2 -2
  53. package/ts/remoteHealth.ts +4 -5
  54. package/ts/schedule.ts +51 -1
  55. package/ts/scheduleSummary.bun.spec.ts +74 -0
  56. package/ts/serve.ts +15 -1
  57. package/ts/subcommands.ts +1 -1
  58. package/ts/terminalReply.spec.ts +21 -1
  59. package/ts/terminalReply.ts +14 -0
  60. package/dist/roomReplyAlias-BzWUBkQy.js +0 -6
  61. package/dist/trayApp-DQz64VKY.js +0 -5
package/README.md CHANGED
@@ -223,6 +223,7 @@ Send a message to an agent on a 5-field cron (timezone `$AY_CRON_TZ`, default As
223
223
  ay cron "*/30 9-18 * * 1-5" lane:alpha "progress report please ({now})"
224
224
  ay cron ls # id, cron, target, next run, last result
225
225
  ay cron rm c1
226
+ ay schedule list --json # read the local timetable as JSON
226
227
  ay schedules ls # everything: cron reminders + legacy `ay schedule` jobs
227
228
  ay schedules daemon status # the per-machine scheduler daemon
228
229
  ```
@@ -1,12 +1,12 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-BJtP2P0J.js";
3
- import "./ts-Hw31sQa6.js";
2
+ import "./versionChecker-BHk-52of.js";
3
+ import "./ts-RXGBDphn.js";
4
4
  import "./todoAutomation-CKlrxuZv.js";
5
5
  import "./JsonlStore-CB_0sfdT.js";
6
6
  import "./globalPidIndex-C6p_AY4D.js";
7
7
  import "./pidStore-DUXifdBr.js";
8
- import "./messageLog-Dq_ka-Bt.js";
8
+ import "./messageLog-CEqe4Hk1.js";
9
9
  import "./todoStore-msRCEUi1.js";
10
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-p8hgduB6.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DArtWpuL.js";
11
11
 
12
12
  export { SUPPORTED_CLIS };
@@ -1,8 +1,8 @@
1
- import { t as CLIS_CONFIG } from "./ts-Hw31sQa6.js";
1
+ import { t as CLIS_CONFIG } from "./ts-RXGBDphn.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-p8hgduB6.js.map
8
+ //# sourceMappingURL=SUPPORTED_CLIS-DArtWpuL.js.map
@@ -2,13 +2,13 @@ import "./logger-CDIsZ-Pp.js";
2
2
  import "./JsonlStore-CB_0sfdT.js";
3
3
  import "./globalPidIndex-C6p_AY4D.js";
4
4
  import "./pidStore-DUXifdBr.js";
5
- import "./messageLog-Dq_ka-Bt.js";
5
+ import "./messageLog-CEqe4Hk1.js";
6
6
  import "./e2e-BdLf8DvY.js";
7
7
  import "./configShared-De4bR5hH.js";
8
- import { ot as resolveOne } from "./subcommands-MajfofbK.js";
8
+ import { ot as resolveOne } from "./subcommands-HUEsqib4.js";
9
9
  import "./webrtcLink-DcvacEci.js";
10
- import "./remotes-BsMGvAay.js";
11
- import "./roomReplyAlias-B-v76TA8.js";
10
+ import "./remotes-CAZymHd7.js";
11
+ import "./roomReplyAlias-B1EJft2d.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import { l as startShare } from "./share-CbFetL5H.js";
@@ -234,4 +234,4 @@ function transformEvent(rawEvent, agentId, forwarded) {
234
234
 
235
235
  //#endregion
236
236
  export { createScopedShare, listShares, revokeAllShares, revokeShare };
237
- //# sourceMappingURL=agentShare-BoaV8VZj.js.map
237
+ //# sourceMappingURL=agentShare-CsJsH-Dd.js.map
@@ -2,7 +2,7 @@ import "./logger-CDIsZ-Pp.js";
2
2
  import "./JsonlStore-CB_0sfdT.js";
3
3
  import "./globalPidIndex-C6p_AY4D.js";
4
4
  import { r as openStore } from "./todoStore-msRCEUi1.js";
5
- import { t as formatIdentity } from "./identity-Ckav3-Up.js";
5
+ import { t as formatIdentity } from "./identity-puvd7hVQ.js";
6
6
  import { a as resolveTodoRoot, i as resolveSelf } from "./todoIdentity-DeDp7LKl.js";
7
7
  import yargs from "yargs";
8
8
  import { randomBytes } from "crypto";
@@ -269,4 +269,4 @@ async function runAnswerSubcommand(rest, deps) {
269
269
 
270
270
  //#endregion
271
271
  export { runAnswerSubcommand, runAskSubcommand };
272
- //# sourceMappingURL=askCli-Dtxxwl28.js.map
272
+ //# sourceMappingURL=askCli-D4czi-_j.js.map
@@ -2,16 +2,16 @@ import "./logger-CDIsZ-Pp.js";
2
2
  import "./JsonlStore-CB_0sfdT.js";
3
3
  import "./globalPidIndex-C6p_AY4D.js";
4
4
  import "./pidStore-DUXifdBr.js";
5
- import "./messageLog-Dq_ka-Bt.js";
5
+ import "./messageLog-CEqe4Hk1.js";
6
6
  import "./e2e-BdLf8DvY.js";
7
7
  import "./configShared-De4bR5hH.js";
8
- import "./subcommands-MajfofbK.js";
8
+ import "./subcommands-HUEsqib4.js";
9
9
  import "./webrtcLink-DcvacEci.js";
10
- import "./remotes-BsMGvAay.js";
11
- import "./roomReplyAlias-B-v76TA8.js";
10
+ import "./remotes-CAZymHd7.js";
11
+ import "./roomReplyAlias-B1EJft2d.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import "./callbackCore-Deve5pv3.js";
15
- import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-D_yBIISN.js";
15
+ import { i as loadOrCreateCallbackSecret, n as isCallbackRevoked, r as loadCallbackSecretReadOnly, t as cmdCallback } from "./callback-CgsitnDL.js";
16
16
 
17
17
  export { cmdCallback };
@@ -1,5 +1,5 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
2
- import { ot as resolveOne } from "./subcommands-MajfofbK.js";
2
+ import { ot as resolveOne } from "./subcommands-HUEsqib4.js";
3
3
  import { a as mintCapability, o as parseExpires } from "./callbackCore-Deve5pv3.js";
4
4
  import { chmodSync, readFileSync, renameSync, writeFileSync } from "node:fs";
5
5
  import path from "node:path";
@@ -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-dnwPH3nh.js");
75
+ const { resolveLocalServeUrl } = await import("./serve-Bv9romOO.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-D_yBIISN.js.map
190
+ //# sourceMappingURL=callback-CgsitnDL.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-zdFbz1ST.js";
3
3
  import { n as logger } from "./logger-CDIsZ-Pp.js";
4
- import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-BJtP2P0J.js";
5
- import { h as getRustBinary } from "./rustBinary-DPy_bYyI.js";
4
+ import { a as versionString, r as displayVersion, t as checkAndAutoUpdate } from "./versionChecker-BHk-52of.js";
5
+ import { h as getRustBinary } from "./rustBinary-aVcHP8hD.js";
6
6
  import { statSync } from "node:fs";
7
7
  import { isAbsolute } from "node:path";
8
8
  import { argv } from "process";
@@ -378,7 +378,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
378
378
  const rawArg = process.argv[2];
379
379
  const managerCommands = !invokedCliName(process.argv);
380
380
  const isHelpFlag = rawArg === "-h" || rawArg === "--help";
381
- const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-Bmah5Csg.js");
381
+ const { isSubcommand, runSubcommand, cmdHelp, isUnknownManagerToken, isBareManagerInvocation } = await import("./subcommands-BuCov57g.js");
382
382
  if (isHelpFlag && process.argv.length === 3) {
383
383
  await cmdHelp(managerCommands);
384
384
  process.exit(0);
@@ -392,7 +392,7 @@ function buildRustArgs(argv, cliFromScript, supportedClis) {
392
392
  process.exit(code ?? 0);
393
393
  }
394
394
  {
395
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-B39mdr7e.js");
395
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CCF7shxg.js");
396
396
  if (isUnknownManagerToken(rawArg, managerCommands, SUPPORTED_CLIS)) {
397
397
  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`);
398
398
  process.exit(1);
@@ -428,16 +428,16 @@ if (config.detach && !config.useRust) {
428
428
  process.exit(1);
429
429
  }
430
430
  if (config.tray) {
431
- const { startTray } = await import("./tray-CLktEN3G.js");
431
+ const { startTray } = await import("./tray-RIjHSw7z.js");
432
432
  await startTray();
433
433
  await new Promise(() => {});
434
434
  }
435
435
  {
436
- const { ensureTray } = await import("./tray-CLktEN3G.js");
436
+ const { ensureTray } = await import("./tray-RIjHSw7z.js");
437
437
  ensureTray();
438
438
  }
439
439
  if (!config.showVersion && !config.appendPrompt && !config.tray) {
440
- const { waitForSpawnCapacity } = await import("./spawnGate-I4p2fbz7.js");
440
+ const { waitForSpawnCapacity } = await import("./spawnGate-DhPgMs0Y.js");
441
441
  await waitForSpawnCapacity({
442
442
  onWait: (reason, waitedMs) => {
443
443
  if (config.verbose || waitedMs === 0) console.error(`[agent-yes] spawn gate: ${reason} — waiting…`);
@@ -464,7 +464,7 @@ if (config.useRust) {
464
464
  process.exit(1);
465
465
  }
466
466
  if (rustBinary) {
467
- const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-B39mdr7e.js");
467
+ const { SUPPORTED_CLIS } = await import("./SUPPORTED_CLIS-CCF7shxg.js");
468
468
  const rustArgs = buildRustArgs(process.argv, config.cli, SUPPORTED_CLIS);
469
469
  if (config.verbose) {
470
470
  console.log(`[rust] Using binary: ${rustBinary}`);
@@ -2,13 +2,13 @@ import "./logger-CDIsZ-Pp.js";
2
2
  import "./JsonlStore-CB_0sfdT.js";
3
3
  import "./globalPidIndex-C6p_AY4D.js";
4
4
  import "./pidStore-DUXifdBr.js";
5
- import "./messageLog-Dq_ka-Bt.js";
5
+ import "./messageLog-CEqe4Hk1.js";
6
6
  import "./e2e-BdLf8DvY.js";
7
7
  import "./configShared-De4bR5hH.js";
8
- import { Dt as buildAgentForest, G as listRecords, Ot as flattenForest, y as deriveLiveState } from "./subcommands-MajfofbK.js";
8
+ import { Dt as buildAgentForest, G as listRecords, Ot as flattenForest, y as deriveLiveState } from "./subcommands-HUEsqib4.js";
9
9
  import "./webrtcLink-DcvacEci.js";
10
- import "./remotes-BsMGvAay.js";
11
- import "./roomReplyAlias-B-v76TA8.js";
10
+ import "./remotes-CAZymHd7.js";
11
+ import "./roomReplyAlias-B1EJft2d.js";
12
12
  import "./notifyStore-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import { i as systemStats, n as sampleTrees, r as snapshotProcs, t as humanBytes } from "./procStats-DwTxj3rs.js";
@@ -332,4 +332,4 @@ function readPpidSync(pid) {
332
332
 
333
333
  //#endregion
334
334
  export { cmdPs };
335
- //# sourceMappingURL=cmdPs-CJ45gEPR.js.map
335
+ //# sourceMappingURL=cmdPs-D_OUlmDa.js.map
@@ -1,3 +1,3 @@
1
- import { a as safeBranch, i as readGitBranch, n as localHost, o as safeToken, r as localUser, s as tildify, t as formatIdentity } from "./identity-Ckav3-Up.js";
1
+ import { a as safeBranch, i as readGitBranch, n as localHost, o as safeToken, r as localUser, s as tildify, t as formatIdentity } from "./identity-puvd7hVQ.js";
2
2
 
3
3
  export { formatIdentity };
@@ -7,11 +7,11 @@ import { homedir, hostname, userInfo } from "node:os";
7
7
  * The standardized agent identity string:
8
8
  *
9
9
  * <username>@<hostname>:<path>:<branch>#<pid>
10
- * e.g. sno@Mac:~/ws/symval/symval/tree/crm:main#30402
10
+ * Example: alice@host:~/work/org/repo:main#1111
11
11
  *
12
12
  * One line answers "who is this agent" across every surface that names one —
13
13
  * the `ay send` envelope header, `ay whoami`, logs. The branch segment usually
14
- * carries the lane name for free (worktree checkouts like `crm-yamamoto-wifi`
14
+ * carries the lane name for free (worktree checkouts like `feature/example`
15
15
  * or `fix/t173-tone-core` name their purpose), which is why there is no
16
16
  * separate role concept.
17
17
  *
@@ -106,4 +106,4 @@ function formatIdentity(parts) {
106
106
 
107
107
  //#endregion
108
108
  export { safeBranch as a, readGitBranch as i, localHost as n, safeToken as o, localUser as r, tildify as s, formatIdentity as t };
109
- //# sourceMappingURL=identity-Ckav3-Up.js.map
109
+ //# sourceMappingURL=identity-puvd7hVQ.js.map
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-BJtP2P0J.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-Hw31sQa6.js";
2
+ import "./versionChecker-BHk-52of.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-RXGBDphn.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-CKlrxuZv.js";
5
5
  import "./JsonlStore-CB_0sfdT.js";
6
6
  import "./globalPidIndex-C6p_AY4D.js";
7
7
  import "./pidStore-DUXifdBr.js";
8
- import "./messageLog-Dq_ka-Bt.js";
8
+ import "./messageLog-CEqe4Hk1.js";
9
9
  import { a as LIFECYCLES, c as initialState, d as requiredGate, f as statesOf, i as DONE_STATE, l as isKnownKind, n as TodoStore, o as ORPHANED_STATE, r as openStore, s as canTransition, t as CycleError, u as nextStates } from "./todoStore-msRCEUi1.js";
10
10
 
11
11
  export { AgentContext, CLIS_CONFIG, CycleError, DONE_STATE, LIFECYCLES, ORPHANED_STATE, TodoStore, answerAsk, canTransition, config, agentYes as default, describeBlock, hasTodoStore, initialState, isKnownKind, listAsks, listAsksForProject, monitorHint, nextStates, openBlockers, openStore, reconcileTodos, removeControlCharacters, renderDigest, renderTree, requiredGate, statesOf, unblockedTasks };
@@ -45,6 +45,18 @@ const isTerminalReply = (s) => /^(?:\x1b\[(?:\??\d+(?:;\d+)*R|\?[\d;]*c|>[\d;]*c
45
45
  * from the producer, which is the only place the intent is known.
46
46
  */
47
47
  const isUnpromptedTerminalReply = (s) => /^(?:\x1b\[(?:\?\d+(?:;\d+)*R|\?[\d;]*c|>[\d;]*c|\d*n)|\x1b\](?:10|11|12|4;\d+);rgb:[0-9a-fA-F]{1,4}(?:\/[0-9a-fA-F]{1,4})*(?:\x1b\\|\x07))+$/.test(s);
48
+ /**
49
+ * Should /api/send discard this write instead of putting it on the agent's FIFO?
50
+ *
51
+ * Yes for a `raw` payload that is purely unambiguous CPR / DA / DSR replies. The agent's
52
+ * wrapper already answers those queries itself (ts/xterm-proxy.ts, rs/src/vterm.rs),
53
+ * so each attached console viewer's xterm answering too only adds duplicate or
54
+ * late replies. A late `ESC[<r>;<c>R` that the TUI is no longer waiting for can
55
+ * be split by its escape-timeout parser and leave a stray `R` in the input box.
56
+ * Plain CPR shares its encoding with modified F3 keys. Preserve those bytes
57
+ * unless the producer can identify them as replies. Only `raw` writes qualify.
58
+ */
59
+ const isRedundantViewerReply = (raw, s) => raw && isTerminalReply(s) && isUnpromptedTerminalReply(s);
48
60
 
49
61
  //#endregion
50
62
  //#region ts/messageLog.ts
@@ -220,5 +232,5 @@ async function readMailbox(cwd, box) {
220
232
  }
221
233
 
222
234
  //#endregion
223
- export { recordOutbox as a, recordMessage as i, readMailbox as n, senderLabel as o, recordInbox as r, isTerminalReply as s, partyMatches as t };
224
- //# sourceMappingURL=messageLog-Dq_ka-Bt.js.map
235
+ export { recordOutbox as a, isTerminalReply as c, recordMessage as i, readMailbox as n, senderLabel as o, recordInbox as r, isRedundantViewerReply as s, partyMatches as t };
236
+ //# sourceMappingURL=messageLog-CEqe4Hk1.js.map
@@ -2,13 +2,13 @@ import { n as logger } from "./logger-CDIsZ-Pp.js";
2
2
  import "./JsonlStore-CB_0sfdT.js";
3
3
  import "./globalPidIndex-C6p_AY4D.js";
4
4
  import "./pidStore-DUXifdBr.js";
5
- import "./messageLog-Dq_ka-Bt.js";
5
+ import "./messageLog-CEqe4Hk1.js";
6
6
  import "./e2e-BdLf8DvY.js";
7
7
  import "./configShared-De4bR5hH.js";
8
- import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-MajfofbK.js";
8
+ import { G as listRecords, I as isPidAlive, rt as renderLogTailLines, y as deriveLiveState } from "./subcommands-HUEsqib4.js";
9
9
  import "./webrtcLink-DcvacEci.js";
10
- import "./remotes-BsMGvAay.js";
11
- import "./roomReplyAlias-B-v76TA8.js";
10
+ import "./remotes-CAZymHd7.js";
11
+ import "./roomReplyAlias-B1EJft2d.js";
12
12
  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-DIfkfKB2.js";
13
13
  import "./senderAncestry-CVHeKk1Y.js";
14
14
  import { readFileSync, renameSync, unlinkSync, writeFileSync } from "node:fs";
@@ -881,4 +881,4 @@ async function ensureDaemon() {
881
881
 
882
882
  //#endregion
883
883
  export { daemonStatus, ensureDaemon, requestDaemonStop, runDaemon };
884
- //# sourceMappingURL=notifyDaemon-C07MvUlt.js.map
884
+ //# sourceMappingURL=notifyDaemon-XZkm14E_.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-Bmah5Csg.js");
341
+ const { lastReadAt, READ_WINDOW_MS } = await import("./subcommands-BuCov57g.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-Cm6OlLzk.js.map
469
+ //# sourceMappingURL=parentPingLoop-MusvEzUn.js.map
@@ -136,7 +136,7 @@ async function resolveRemoteSpec(spec) {
136
136
  * The bridge lives for the rest of the process (torn down on `process.exit`).
137
137
  */
138
138
  async function resolveWebrtc(link, keyword, label) {
139
- const { startWebrtcBridge } = await import("./webrtcRemote-C3xQyf3u.js");
139
+ const { startWebrtcBridge } = await import("./webrtcRemote-B4pwES4i.js");
140
140
  const bridge = await startWebrtcBridge(link, { keyword });
141
141
  return {
142
142
  url: bridge.baseUrl,
@@ -322,4 +322,4 @@ async function cmdConnect(rest) {
322
322
 
323
323
  //#endregion
324
324
  export { deleteRemoteAlias as a, parseShareUrl as c, writeRemoteAlias as d, defaultConnectAlias as i, readRemotes as l, cmdConnect as n, maskRemoteUrl as o, cmdRemote as r, parseDirectRemoteSpec as s, MASK as t, resolveRemoteSpec as u };
325
- //# sourceMappingURL=remotes-BsMGvAay.js.map
325
+ //# sourceMappingURL=remotes-CAZymHd7.js.map
@@ -1,5 +1,5 @@
1
1
  import "./e2e-BdLf8DvY.js";
2
2
  import "./webrtcLink-DcvacEci.js";
3
- import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-BsMGvAay.js";
3
+ import { a as deleteRemoteAlias, c as parseShareUrl, d as writeRemoteAlias, i as defaultConnectAlias, l as readRemotes, n as cmdConnect, o as maskRemoteUrl, r as cmdRemote, s as parseDirectRemoteSpec, t as MASK, u as resolveRemoteSpec } from "./remotes-CAZymHd7.js";
4
4
 
5
5
  export { cmdConnect, cmdRemote };
@@ -1,6 +1,6 @@
1
1
  import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
2
2
  import { a as parseWebrtcLink } from "./webrtcLink-DcvacEci.js";
3
- import { l as readRemotes } from "./remotes-BsMGvAay.js";
3
+ import { l as readRemotes } from "./remotes-CAZymHd7.js";
4
4
  import { readFile } from "fs/promises";
5
5
  import { hostname } from "os";
6
6
  import path from "path";
@@ -55,4 +55,4 @@ async function hostedRoomMember(room) {
55
55
 
56
56
  //#endregion
57
57
  export { roomAliases as i, hostedRoomMember as n, roomAliasPlaceholder as r, fillRoomAlias as t };
58
- //# sourceMappingURL=roomReplyAlias-B-v76TA8.js.map
58
+ //# sourceMappingURL=roomReplyAlias-B1EJft2d.js.map
@@ -0,0 +1,6 @@
1
+ import "./e2e-BdLf8DvY.js";
2
+ import "./webrtcLink-DcvacEci.js";
3
+ import "./remotes-CAZymHd7.js";
4
+ import { i as roomAliases, n as hostedRoomMember, r as roomAliasPlaceholder, t as fillRoomAlias } from "./roomReplyAlias-B1EJft2d.js";
5
+
6
+ export { fillRoomAlias, roomAliases };
@@ -1,4 +1,4 @@
1
- import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-BJtP2P0J.js";
1
+ import { i as getInstalledPackage, n as compareVersions } from "./versionChecker-BHk-52of.js";
2
2
  import { execFileSync } from "child_process";
3
3
  import { accessSync, chmodSync, constants, existsSync, mkdirSync, readdirSync, rmSync, statSync, unlinkSync } from "fs";
4
4
  import { chmod, copyFile } from "fs/promises";
@@ -480,4 +480,4 @@ async function getRustBinary(options = {}) {
480
480
 
481
481
  //#endregion
482
482
  export { ensureExecutable as a, findRustBinary as c, gcOldBinaryDirs as d, getBinDir as f, hasValidMacSignature as g, getRustBinary as h, ensureAyrsBinary as i, findSpawnHiddenLauncher as l, getDownloadUrl as m, devBuildInfo as n, extractZipWindows as o, getBinaryName as p, downloadBinary as r, findAyrsBinary as s, chmodExtractedBinaries as t, findTrayLauncher as u };
483
- //# sourceMappingURL=rustBinary-DPy_bYyI.js.map
483
+ //# sourceMappingURL=rustBinary-aVcHP8hD.js.map
@@ -1,4 +1,4 @@
1
- import "./versionChecker-BJtP2P0J.js";
2
- import { a as ensureExecutable, c as findRustBinary, d as gcOldBinaryDirs, f as getBinDir, g as hasValidMacSignature, h as getRustBinary, i as ensureAyrsBinary, l as findSpawnHiddenLauncher, m as getDownloadUrl, n as devBuildInfo, o as extractZipWindows, p as getBinaryName, r as downloadBinary, s as findAyrsBinary, t as chmodExtractedBinaries, u as findTrayLauncher } from "./rustBinary-DPy_bYyI.js";
1
+ import "./versionChecker-BHk-52of.js";
2
+ import { a as ensureExecutable, c as findRustBinary, d as gcOldBinaryDirs, f as getBinDir, g as hasValidMacSignature, h as getRustBinary, i as ensureAyrsBinary, l as findSpawnHiddenLauncher, m as getDownloadUrl, n as devBuildInfo, o as extractZipWindows, p as getBinaryName, r as downloadBinary, s as findAyrsBinary, t as chmodExtractedBinaries, u as findTrayLauncher } from "./rustBinary-aVcHP8hD.js";
3
3
 
4
4
  export { ensureAyrsBinary, findAyrsBinary, gcOldBinaryDirs };
@@ -1,17 +1,21 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import "./versionChecker-BJtP2P0J.js";
3
- import "./ts-Hw31sQa6.js";
2
+ import "./versionChecker-BHk-52of.js";
3
+ import "./ts-RXGBDphn.js";
4
4
  import "./todoAutomation-CKlrxuZv.js";
5
5
  import "./JsonlStore-CB_0sfdT.js";
6
6
  import "./globalPidIndex-C6p_AY4D.js";
7
7
  import "./pidStore-DUXifdBr.js";
8
- import "./messageLog-Dq_ka-Bt.js";
8
+ import "./messageLog-CEqe4Hk1.js";
9
9
  import "./todoStore-msRCEUi1.js";
10
- import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-p8hgduB6.js";
10
+ import { t as SUPPORTED_CLIS } from "./SUPPORTED_CLIS-DArtWpuL.js";
11
11
  import { n as liveEnv, t as ensureNodeRuntime } from "./nodeRuntime-DGMQRTGT.js";
12
12
  import { t as ensureBootAutostart } from "./oxmgrService-DlYHmqyI.js";
13
- import { f as resolveSpawnCwd } from "./workspaceConfig-DBgsu81B.js";
13
+ import { _ as storeFile, f as parseStore } from "./schedules-BvwTGXU2.js";
14
+ import { f as resolveSpawnCwd } from "./workspaceConfig-DjEklzxf.js";
14
15
  import { createHash } from "node:crypto";
16
+ import { execFile } from "node:child_process";
17
+ import { readFile } from "node:fs/promises";
18
+ import { promisify } from "node:util";
15
19
 
16
20
  //#region ts/schedule.ts
17
21
  const SCHED_PREFIX = "agent-yes-cron-";
@@ -46,7 +50,44 @@ async function run(cmd, capture = false) {
46
50
  out
47
51
  };
48
52
  }
53
+ /** The read-only timetable shared by the CLI and device sync. Process manager
54
+ * records also contain command arguments and environment; only project times and names. */
55
+ async function scheduleSummary() {
56
+ const reminders = parseStore(await readFile(storeFile(), "utf8").catch((err) => {
57
+ if (err.code === "ENOENT") return null;
58
+ throw err;
59
+ })).entries.map(({ name, cron, tz, enabled }) => ({
60
+ name,
61
+ cron,
62
+ tz,
63
+ enabled
64
+ }));
65
+ const ox = Bun.which("oxmgr");
66
+ if (!ox) return reminders;
67
+ await ensureNodeRuntime();
68
+ const { stdout } = await promisify(execFile)(ox, ["list", "--json"], {
69
+ encoding: "utf8",
70
+ timeout: 3e3,
71
+ maxBuffer: 8 * 1024 * 1024,
72
+ env: liveEnv()
73
+ });
74
+ const rows = JSON.parse(stdout);
75
+ const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
76
+ return [...rows.flatMap((row) => typeof row?.name === "string" && row.name.startsWith(SCHED_PREFIX) && typeof row.cron_restart === "string" ? [{
77
+ name: row.name,
78
+ cron: row.cron_restart,
79
+ tz,
80
+ enabled: row.desired_state !== "stopped"
81
+ }] : []), ...reminders];
82
+ }
49
83
  async function cmdSchedule(rest) {
84
+ if ((rest[0] === "list" || rest[0] === "ls") && rest[1] === "--json") try {
85
+ console.log(JSON.stringify(await scheduleSummary()));
86
+ return 0;
87
+ } catch {
88
+ console.error("ay schedule: timetable unavailable");
89
+ return 1;
90
+ }
50
91
  await ensureNodeRuntime();
51
92
  const oxmgrBin = Bun.which("oxmgr");
52
93
  if (!oxmgrBin) {
@@ -55,14 +96,14 @@ async function cmdSchedule(rest) {
55
96
  }
56
97
  const sub = rest[0];
57
98
  if (!sub || sub === "-h" || sub === "--help") {
58
- process.stdout.write("Usage:\n ay schedule <when> <cli> [--cwd DIR] [--name N] [-- <prompt>]\n schedule a recurring agent\n ay schedule list list scheduled agents\n ay schedule remove <name> remove one\n\n<when> is a daily HH:MM (e.g. 10:00) or a 5-field cron (\"0 10 * * *\").\nThe agent runs once now and then on every tick, and survives reboot.\n\nExample — a 10am daily QA pass:\n ay schedule 10:00 claude --cwd ~/ws/product -- \"run a full QA pass and write a report\"\n");
99
+ process.stdout.write("Usage:\n ay schedule <when> <cli> [--cwd DIR] [--name N] [-- <prompt>]\n schedule a recurring agent\n ay schedule list list scheduled agents (--json for timetable metadata)\n ay schedule remove <name> remove one\n\n<when> is a daily HH:MM (e.g. 10:00) or a 5-field cron (\"0 10 * * *\").\nThe agent runs once now and then on every tick, and survives reboot.\n\nExample — a 10am daily QA pass:\n ay schedule 10:00 claude --cwd ~/ws/product -- \"run a full QA pass and write a report\"\n");
59
100
  return 0;
60
101
  }
61
102
  if (sub === "list" || sub === "ls") {
62
103
  process.stdout.write(`scheduled agents are named '${SCHED_PREFIX}*':\n`);
63
104
  const code = (await run([oxmgrBin, "list"])).code;
64
105
  process.stdout.write(`\nay cron reminders (fired by the scheduler daemon):\n`);
65
- await (await import("./schedulesCli-CLqieyQZ.js")).cmdCron(["ls"]);
106
+ await (await import("./schedulesCli-Donh0LS2.js")).cmdCron(["ls"]);
66
107
  return code;
67
108
  }
68
109
  if (sub === "remove" || sub === "rm" || sub === "delete") {
@@ -124,5 +165,5 @@ async function cmdSchedule(rest) {
124
165
  }
125
166
 
126
167
  //#endregion
127
- export { cmdSchedule };
128
- //# sourceMappingURL=schedule-VkuXWqxD.js.map
168
+ export { cmdSchedule, scheduleSummary };
169
+ //# sourceMappingURL=schedule-DLXGgL5L.js.map