agent-yes 1.303.1 → 1.304.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.
Files changed (184) hide show
  1. package/README.md +54 -0
  2. package/default.config.yaml +5 -5
  3. package/dist/{JsonlStore-BpYZZTap.js → JsonlStore-CB_0sfdT.js} +5 -4
  4. package/dist/{SUPPORTED_CLIS-Dq9Lq9WJ.js → SUPPORTED_CLIS-C_1IiOj3.js} +2 -2
  5. package/dist/SUPPORTED_CLIS-Do3GHAY1.js +12 -0
  6. package/dist/{agentShare-suB6yPgO.js → agentShare-BvpEm-Fr.js} +10 -9
  7. package/dist/{askCli-BU3CNCLU.js → askCli-KmMf-3wA.js} +6 -6
  8. package/dist/{browser-BmxN1Ur9.js → browser-BAFPmEvN.js} +2 -2
  9. package/dist/{callback-Ctj3_Wxp.js → callback-BiSUhjw7.js} +6 -6
  10. package/dist/callback-SqLD2mMX.js +17 -0
  11. package/dist/{callbackCore-DSJWhqAe.js → callbackCore-BZ_10zyc.js} +1 -1
  12. package/dist/{callbackCore-BesbQ6-Z.js → callbackCore-Deve5pv3.js} +1 -1
  13. package/dist/{channels-j5nWuzlQ.js → channels-Y36S0ccW.js} +2 -2
  14. package/dist/cli.js +118 -13
  15. package/dist/{cmdDsh-2LP0grim.js → cmdDsh-DZ8bLsH7.js} +1 -1
  16. package/dist/cmdKill-CzSBfWmx.js +116 -0
  17. package/dist/{cmdPs-wc1j85fi.js → cmdPs-DBt23Qz0.js} +11 -10
  18. package/dist/{cwdConflictWarn-skQSMwEh.js → cwdConflictWarn-y-epQyOj.js} +21 -5
  19. package/dist/{cwdPassthroughHint-BUbWMoz0.js → cwdPassthroughHint-CzWh0hrw.js} +1 -1
  20. package/dist/{expose-Dawq1LxC.js → expose-Bhsn5yUz.js} +2 -2
  21. package/dist/forceKill-BDqxx4uQ.js +44 -0
  22. package/dist/{forkNested-CavHyWzA.js → forkNested-3heLs5XC.js} +45 -5
  23. package/dist/{globalPidIndex-CRB5KtyL.js → globalPidIndex-BsjlId-h.js} +6 -5
  24. package/dist/{globalPidIndex-BftWlg2V.js → globalPidIndex-uoz8Esqz.js} +2 -2
  25. package/dist/{hist-Cs0KFSUW.js → hist-DY16wm7g.js} +1 -1
  26. package/dist/{identity-DA7YI9km.js → identity-C0MxfwI2.js} +1 -1
  27. package/dist/{identity-Bk-aG_xl.js → identity-Ckav3-Up.js} +1 -1
  28. package/dist/index.js +7 -7
  29. package/dist/{initMsg-CcTqFtsp.js → initMsg-BEVDWYnv.js} +1 -1
  30. package/dist/{initMsg-D9KJnfgC.js → initMsg-GPU52N-j.js} +1 -1
  31. package/dist/liagent/box-BSIrRRc_.js +2320 -0
  32. package/dist/liagent/box-DloywR57.d.ts +409 -0
  33. package/dist/liagent/box.d.ts +3 -0
  34. package/dist/liagent/box.js +3 -0
  35. package/dist/liagent/cli.d.ts +1 -0
  36. package/dist/liagent/cli.js +908 -0
  37. package/dist/liagent/client.d.ts +28 -0
  38. package/dist/liagent/client.js +240 -0
  39. package/dist/liagent/echo-BvzPSI0x.js +86 -0
  40. package/dist/liagent/echo-W2RcMEny.d.ts +38 -0
  41. package/dist/liagent/hub.d.ts +405 -0
  42. package/dist/liagent/hub.js +1831 -0
  43. package/dist/liagent/index.d.ts +14 -0
  44. package/dist/liagent/index.js +10 -0
  45. package/dist/liagent/liagent.js +339 -0
  46. package/dist/liagent/mic-audio-C3Shud_F.js +754 -0
  47. package/dist/liagent/mic-audio-DMCWtEI-.d.ts +317 -0
  48. package/dist/liagent/mic-button-CtZHFBSG.js +651 -0
  49. package/dist/liagent/mic-button-Y0ioPetQ.d.ts +248 -0
  50. package/dist/liagent/mic.d.ts +3 -0
  51. package/dist/liagent/mic.js +4 -0
  52. package/dist/liagent/progress-CJs08bXb.js +473 -0
  53. package/dist/liagent/progress-CfE-meHr.d.ts +205 -0
  54. package/dist/liagent/progress.d.ts +2 -0
  55. package/dist/liagent/progress.js +3 -0
  56. package/dist/liagent/protocol.d.ts +324 -0
  57. package/dist/liagent/protocol.js +504 -0
  58. package/dist/liagent/speech-rate-DXeJjRTc.js +42 -0
  59. package/dist/liagent/state-tree-BZCmAknI.js +353 -0
  60. package/dist/liagent/tree-BrR7NwMf.js +710 -0
  61. package/dist/liagent/tree-HB9RhX_H.d.ts +295 -0
  62. package/dist/liagent/tree.d.ts +2 -0
  63. package/dist/liagent/tree.js +4 -0
  64. package/dist/liagent/ui-strings-B03le3fh.d.ts +27 -0
  65. package/dist/liagent/ui-strings-CJIwW5Gf.js +794 -0
  66. package/dist/liagent/ui.d.ts +394 -0
  67. package/dist/liagent/ui.js +5 -0
  68. package/dist/liagent/voice-D7yeS9VM.js +802 -0
  69. package/dist/liagent/voice-Qo7SCgi8.d.ts +308 -0
  70. package/dist/liagent/voice.d.ts +3 -0
  71. package/dist/liagent/voice.js +4 -0
  72. package/dist/{notifyDaemon-C7GlfJ1E.js → notifyDaemon-DkUB7GV2.js} +10 -9
  73. package/dist/{openBrowser-1cIo4dJL.js → openBrowser-CQAOIrD6.js} +1 -1
  74. package/dist/oxmgrService-DlYHmqyI.js +37 -0
  75. package/dist/oxmgrService-o9L3I6FX.js +3 -0
  76. package/dist/{parentLink-DoEWVGld.js → parentLink-BcAYcO9L.js} +2 -2
  77. package/dist/{parentLink-B58V1RVd.js → parentLink-MBUD3oY2.js} +2 -2
  78. package/dist/{parentPingLoop-C73bbmCE.js → parentPingLoop-DDO592Wh.js} +5 -5
  79. package/dist/{pidStore-433kvh9D.js → pidStore-C50VPk3E.js} +3 -3
  80. package/dist/pidStore-COkPjpW8.js +6 -0
  81. package/dist/{procStats-BvmrBrOs.js → procStats-DwTxj3rs.js} +1 -1
  82. package/dist/{remotes-MfdV9M8u.js → remotes-BqLoB5GR.js} +2 -2
  83. package/dist/{remotes-DevcBeLl.js → remotes-BsMGvAay.js} +3 -3
  84. package/dist/{roomReplyAlias-DFqg_6IU.js → roomReplyAlias-B-v76TA8.js} +3 -3
  85. package/dist/roomReplyAlias-BzWUBkQy.js +6 -0
  86. package/dist/{rustBinary-7VK7oLlW.js → rustBinary-BrJ2p8wy.js} +2 -2
  87. package/dist/{rustBinary-BV4LxMMn.js → rustBinary-vpfpWj1q.js} +2 -2
  88. package/dist/{schedule-Dp0qkNO1.js → schedule-Bzjhl6-h.js} +15 -44
  89. package/dist/schedulesCli-CLqieyQZ.js +784 -0
  90. package/dist/senderAncestry-CVHeKk1Y.js +173 -0
  91. package/dist/senderAncestry-KhAUPCQs.js +3 -0
  92. package/dist/{serve-BpOIIOVc.js → serve-XwFYE0cE.js} +67 -69
  93. package/dist/{serveRust-CbBrcUrg.js → serveRust-BfWkeL6T.js} +31 -4
  94. package/dist/{setup-DdIBk6Iv.js → setup-D4-s2VZw.js} +5 -5
  95. package/dist/{share-w5oRbvlj.js → share-CbFetL5H.js} +1 -1
  96. package/dist/{share-DrS3LYqf.js → share-_TPYAGWC.js} +1 -1
  97. package/dist/{shareCmd-DDENkBW2.js → shareCmd-DUBsVI3e.js} +10 -10
  98. package/dist/spawnGate-Dfj9V76w.js +5 -0
  99. package/dist/{spawnGate-lr3tvA6U.js → spawnGate-Dj_WaS29.js} +3 -3
  100. package/dist/{subcommands-DxgvDmZX.js → subcommands-B7YZJL8n.js} +471 -307
  101. package/dist/subcommands-BZPxFgkT.js +15 -0
  102. package/dist/{systemPathLink-SjUzgSiq.js → systemPathLink-Y3iC7bYV.js} +1 -1
  103. package/dist/{terminal-C2h7tpe0.js → terminal-13cGj3h6.js} +2 -2
  104. package/dist/terminal.js +1 -1
  105. package/dist/{todoAutomation-TTp_Qz9G.js → todoAutomation-CKlrxuZv.js} +2 -2
  106. package/dist/{todoCli-BWm5nZE0.js → todoCli-CU9vSJSJ.js} +6 -6
  107. package/dist/{todoIdentity-BvXZKWJI.js → todoIdentity-CzS1e7VL.js} +2 -2
  108. package/dist/{todoStore-C9RTz0Vs.js → todoStore-msRCEUi1.js} +2 -2
  109. package/dist/{tray-BeRSozJz.js → tray-CLktEN3G.js} +1 -1
  110. package/dist/{trayApp-QQjqhDv1.js → trayApp-5_OlvQcz.js} +2 -2
  111. package/dist/trayApp-DkAPo0m6.js +5 -0
  112. package/dist/{ts-6LF7f4fx.js → ts-njuddXQz.js} +126 -57
  113. package/dist/{versionChecker-Bc62HNf6.js → versionChecker-BJycAanp.js} +2 -2
  114. package/dist/{webrtcLink-va_gAR77.js → webrtcLink-DcvacEci.js} +1 -1
  115. package/dist/{webrtcLink-SsInrVHU.js → webrtcLink-WxS1nTIs.js} +1 -1
  116. package/dist/{webrtcRemote-BlGyNZDC.js → webrtcRemote-C3xQyf3u.js} +2 -2
  117. package/dist/{widget-Crb5zeHL.js → widget-DmRwOlco.js} +3 -3
  118. package/dist/widgets.js +1 -1
  119. package/dist/{workspaceConfig-BLWB5Wu9.js → workspaceConfig-DBgsu81B.js} +1 -1
  120. package/dist/{ws-DIbwNz8Z.js → ws-ByO6JO6m.js} +3 -3
  121. package/dist/{ws-BRhPG1Vy.js → ws-D0-Jg88z.js} +9 -8
  122. package/lab/ui/index.html +1 -1
  123. package/lab/ui/lab/posts/2026-08-11-slack-term-safe-writes.md +1 -1
  124. package/package.json +73 -8
  125. package/ts/JsonlStore.ts +10 -3
  126. package/ts/cli-idle.bun.spec.ts +1 -1
  127. package/ts/cli-idle.spec.ts +1 -1
  128. package/ts/cli.ts +35 -0
  129. package/ts/cmdKill.bun.spec.ts +155 -0
  130. package/ts/cmdKill.spec.ts +155 -0
  131. package/ts/cmdKill.ts +183 -0
  132. package/ts/composerGuard.edges.spec.ts +91 -0
  133. package/ts/composerGuard.spec.ts +53 -6
  134. package/ts/composerGuard.ts +42 -13
  135. package/ts/conptyModeFilter.spec.ts +30 -0
  136. package/ts/conptyModeFilter.ts +53 -0
  137. package/ts/copyLiagent.ts +42 -0
  138. package/ts/cwdConflictWarn.io.spec.ts +50 -0
  139. package/ts/cwdConflictWarn.spec.ts +34 -1
  140. package/ts/cwdConflictWarn.ts +43 -5
  141. package/ts/cwdGuard.spec.ts +110 -0
  142. package/ts/cwdGuard.ts +118 -0
  143. package/ts/forceKill.ts +52 -0
  144. package/ts/forkNested.bun.spec.ts +41 -0
  145. package/ts/forkNested.spec.ts +41 -0
  146. package/ts/forkNested.ts +48 -1
  147. package/ts/globalPidIndex.edges.spec.ts +125 -0
  148. package/ts/globalPidIndex.ts +6 -2
  149. package/ts/index.ts +13 -1
  150. package/ts/interruptSend.bun.spec.ts +99 -0
  151. package/ts/interruptSend.spec.ts +99 -0
  152. package/ts/interruptSend.ts +51 -0
  153. package/ts/lockRegistry.spec.ts +49 -0
  154. package/ts/lsRenderCache.spec.ts +58 -0
  155. package/ts/needsInput.edges.spec.ts +23 -0
  156. package/ts/parseCliArgs.ts +7 -0
  157. package/ts/pushGatePlan.spec.ts +147 -0
  158. package/ts/roomReplyAlias.io.spec.ts +81 -0
  159. package/ts/schedule.ts +5 -1
  160. package/ts/schedules.bun.spec.ts +397 -0
  161. package/ts/schedules.spec.ts +397 -0
  162. package/ts/schedules.ts +517 -0
  163. package/ts/schedulesCli.ts +386 -0
  164. package/ts/sendControl.bun.spec.ts +12 -0
  165. package/ts/senderAncestry.ts +1 -3
  166. package/ts/serve.ts +22 -33
  167. package/ts/serveRust.spec.ts +29 -2
  168. package/ts/serveRust.ts +27 -2
  169. package/ts/sizeNego.bun.spec.ts +9 -2
  170. package/ts/sizeNego.spec.ts +9 -2
  171. package/ts/sizeNego.ts +10 -5
  172. package/ts/subcommands.spec.ts +348 -9
  173. package/ts/subcommands.ts +513 -93
  174. package/ts/suggestAgents.spec.ts +33 -0
  175. package/ts/terminal/browser.ts +1 -1
  176. package/ts/todoParse.spec.ts +22 -1
  177. package/ts/todoParse.ts +19 -0
  178. package/dist/SUPPORTED_CLIS-ByO5twge.js +0 -12
  179. package/dist/callback-D7qfh_7p.js +0 -16
  180. package/dist/pidStore-BRlKRHXY.js +0 -6
  181. package/dist/roomReplyAlias-DuEkSSDI.js +0 -6
  182. package/dist/spawnGate-DeQBTX-o.js +0 -5
  183. package/dist/subcommands-DmiswRy4.js +0 -14
  184. package/dist/trayApp-C4TAvRvU.js +0 -5
@@ -0,0 +1,15 @@
1
+ import "./logger-CDIsZ-Pp.js";
2
+ import "./JsonlStore-CB_0sfdT.js";
3
+ import "./globalPidIndex-BsjlId-h.js";
4
+ import "./pidStore-C50VPk3E.js";
5
+ import "./messageLog-Dq_ka-Bt.js";
6
+ import "./e2e-BdLf8DvY.js";
7
+ import "./configShared-De4bR5hH.js";
8
+ import { $ as readNotes, A as inspectSubmission, B as isUnknownManagerToken, C as envelopeAttribution, D as extractNeedsInput, E as extractMenu, F as isExitRequest, G as listRecords, H as isUserTyping, I as isPidAlive, J as ownedCollapsedPaste, K as matchKeyword, L as isSlashCommand, M as isAgentIdShaped, N as isAgentStuck, O as extractTaskCounts, P as isBareManagerInvocation, Q as readLogForRender, R as isSubcommand, S as enableRenderDiskCache, T as extractBadges, U as lastReadAt, V as isUnreachableWriteErrno, W as lastStdinAt, X as readAgentPtysize, Y as probeStdinReachable, Z as readComposerState, _ as cursorAbs, _t as submitStableDraft, a as READ_PAGE_DEFAULT, at as renderRawLogLines, b as deriveLiveStatus, bt as writeKeysPaced, c as SEND_EXIT_QUEUED, ct as resolveResumeArgs, d as backoffWhileTyping, dt as saveRenderDisk, et as readPtysize, f as buildEnvelope, ft as sendPayloadCapError, g as controlCodeFromName, gt as submitAndConfirm, h as confirmStdinUnreachable, ht as stopTipForCli, i as MAX_RENDER_BYTES, it as renderRawLog, j as interruptSendTarget, k as finalizedLines, l as SEND_EXIT_UNREACHABLE, lt as restartHintLines, m as cmdHelp, mt as stdinActivityPath, n as DRAFT_STABLE_WAITS_MS, nt as recentReadEdges, o as READ_WINDOW_MS, ot as resolveOne, p as cliDefaults, pt as snapshotStatus, q as menuSelectKeys, r as GRACEFUL_EXIT_COMMANDS, rt as renderLogTailLines, s as SEND_BODY_MAX_CHARS, st as resolveReadWindow, t as COMPOSER_WINDOWS, tt as recentMessageEdges, u as TYPING_WINDOW_MS, ut as runSubcommand, v as cwdLabel, vt as suggestAgents, w as envelopeCostFor, x as drainerLauncher, xt as writeToIpc, y as deriveLiveState, yt as waitForLogQuiet, z as isSubmitCode } from "./subcommands-B7YZJL8n.js";
9
+ import "./webrtcLink-DcvacEci.js";
10
+ import "./remotes-BsMGvAay.js";
11
+ import "./roomReplyAlias-B-v76TA8.js";
12
+ import "./notifyStore-DIfkfKB2.js";
13
+ import "./senderAncestry-CVHeKk1Y.js";
14
+
15
+ export { READ_WINDOW_MS, cmdHelp, isBareManagerInvocation, isPidAlive, isSubcommand, isUnknownManagerToken, lastReadAt, runSubcommand };
@@ -88,4 +88,4 @@ function linkBunBinsToSystemPath(opts) {
88
88
 
89
89
  //#endregion
90
90
  export { linkBunBinsToSystemPath };
91
- //# sourceMappingURL=systemPathLink-SjUzgSiq.js.map
91
+ //# sourceMappingURL=systemPathLink-Y3iC7bYV.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-BpOIIOVc.js");
101
+ const { mintScopedTermToken } = await import("./serve-XwFYE0cE.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-C2h7tpe0.js.map
138
+ //# sourceMappingURL=terminal-13cGj3h6.js.map
package/dist/terminal.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as AyTerminal } from "./browser-BmxN1Ur9.js";
1
+ import { t as AyTerminal } from "./browser-BAFPmEvN.js";
2
2
 
3
3
  export { AyTerminal, AyTerminal as default };
@@ -1,4 +1,4 @@
1
- import { i as DONE_STATE, o as ORPHANED_STATE, p as transitionsOf } from "./todoStore-C9RTz0Vs.js";
1
+ import { i as DONE_STATE, o as ORPHANED_STATE, p as transitionsOf } from "./todoStore-msRCEUi1.js";
2
2
 
3
3
  //#region ts/removeControlCharacters.ts
4
4
  const ESC = String.fromCharCode(27);
@@ -299,4 +299,4 @@ function reconcileTodos(tasks, agents, registeredGates) {
299
299
 
300
300
  //#endregion
301
301
  export { renderTree as a, describeBlock as c, renderDigest as i, monitorHint as l, buildTreeJSON as n, unblockedTasks as o, openBlockers as r, blockedOnAgent as s, reconcileTodos as t, removeControlCharacters as u };
302
- //# sourceMappingURL=todoAutomation-TTp_Qz9G.js.map
302
+ //# sourceMappingURL=todoAutomation-CKlrxuZv.js.map
@@ -1,9 +1,9 @@
1
1
  import "./logger-CDIsZ-Pp.js";
2
- import { a as renderTree, c as describeBlock, i as renderDigest, n as buildTreeJSON, o as unblockedTasks, s as blockedOnAgent, t as reconcileTodos, u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
3
- import "./JsonlStore-BpYZZTap.js";
4
- import { a as readGlobalPids } from "./globalPidIndex-CRB5KtyL.js";
5
- import { a as LIFECYCLES, l as isKnownKind, r as openStore, t as CycleError } from "./todoStore-C9RTz0Vs.js";
6
- import { a as resolveTodoRoot, i as resolveSelf, n as SELF_OWNER, r as ownerLiveness, t as NO_OWNER } from "./todoIdentity-BvXZKWJI.js";
2
+ import { a as renderTree, c as describeBlock, i as renderDigest, n as buildTreeJSON, o as unblockedTasks, s as blockedOnAgent, t as reconcileTodos, u as removeControlCharacters } from "./todoAutomation-CKlrxuZv.js";
3
+ import "./JsonlStore-CB_0sfdT.js";
4
+ import { a as readGlobalPids } from "./globalPidIndex-BsjlId-h.js";
5
+ import { a as LIFECYCLES, l as isKnownKind, r as openStore, t as CycleError } from "./todoStore-msRCEUi1.js";
6
+ import { a as resolveTodoRoot, i as resolveSelf, n as SELF_OWNER, r as ownerLiveness, t as NO_OWNER } from "./todoIdentity-CzS1e7VL.js";
7
7
  import yargs from "yargs";
8
8
 
9
9
  //#region ts/todoCli.ts
@@ -583,4 +583,4 @@ async function runTodoSubcommand(rest0) {
583
583
 
584
584
  //#endregion
585
585
  export { runTodoSubcommand };
586
- //# sourceMappingURL=todoCli-BWm5nZE0.js.map
586
+ //# sourceMappingURL=todoCli-CU9vSJSJ.js.map
@@ -1,4 +1,4 @@
1
- import { a as readGlobalPids } from "./globalPidIndex-CRB5KtyL.js";
1
+ import { a as readGlobalPids } from "./globalPidIndex-BsjlId-h.js";
2
2
  import { execFile } from "child_process";
3
3
  import path from "path";
4
4
  import { promisify } from "util";
@@ -135,4 +135,4 @@ function ownerLiveness(owner, agents) {
135
135
 
136
136
  //#endregion
137
137
  export { resolveTodoRoot as a, resolveSelf as i, SELF_OWNER as n, ownerLiveness as r, NO_OWNER as t };
138
- //# sourceMappingURL=todoIdentity-BvXZKWJI.js.map
138
+ //# sourceMappingURL=todoIdentity-CzS1e7VL.js.map
@@ -1,4 +1,4 @@
1
- import { t as JsonlStore } from "./JsonlStore-BpYZZTap.js";
1
+ import { t as JsonlStore } from "./JsonlStore-CB_0sfdT.js";
2
2
  import path from "path";
3
3
  import { lock } from "proper-lockfile";
4
4
 
@@ -741,4 +741,4 @@ async function openStore(projectRoot) {
741
741
 
742
742
  //#endregion
743
743
  export { LIFECYCLES as a, initialState as c, requiredGate as d, statesOf as f, DONE_STATE as i, isKnownKind as l, TodoStore as n, ORPHANED_STATE as o, transitionsOf as p, openStore as r, canTransition as s, CycleError as t, nextStates as u };
744
- //# sourceMappingURL=todoStore-C9RTz0Vs.js.map
744
+ //# sourceMappingURL=todoStore-msRCEUi1.js.map
@@ -187,4 +187,4 @@ async function startTray() {
187
187
 
188
188
  //#endregion
189
189
  export { ensureTray, startTray };
190
- //# sourceMappingURL=tray-BeRSozJz.js.map
190
+ //# sourceMappingURL=tray-CLktEN3G.js.map
@@ -1,4 +1,4 @@
1
- import { l as findTrayLauncher } from "./rustBinary-7VK7oLlW.js";
1
+ import { l as findTrayLauncher } from "./rustBinary-BrJ2p8wy.js";
2
2
  import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
3
3
  import { existsSync } from "node:fs";
4
4
  import path from "node:path";
@@ -97,4 +97,4 @@ async function cmdTray(args) {
97
97
 
98
98
  //#endregion
99
99
  export { trayHiddenMarker as a, launchTray as i, hasDesktop as n, isTrayHidden as r, cmdTray as t };
100
- //# sourceMappingURL=trayApp-QQjqhDv1.js.map
100
+ //# sourceMappingURL=trayApp-5_OlvQcz.js.map
@@ -0,0 +1,5 @@
1
+ import "./versionChecker-BJycAanp.js";
2
+ import "./rustBinary-BrJ2p8wy.js";
3
+ import { a as trayHiddenMarker, i as launchTray, n as hasDesktop, r as isTrayHidden, t as cmdTray } from "./trayApp-5_OlvQcz.js";
4
+
5
+ export { cmdTray };
@@ -1,20 +1,22 @@
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 { i as getInstalledPackage } from "./versionChecker-Bc62HNf6.js";
3
+ import { i as getInstalledPackage } from "./versionChecker-BJycAanp.js";
4
4
  import { t as agentYesHome } from "./agentYesHome-JmJC28YX.js";
5
- import { u as removeControlCharacters } from "./todoAutomation-TTp_Qz9G.js";
5
+ import { u as removeControlCharacters } from "./todoAutomation-CKlrxuZv.js";
6
6
  import { i as shouldUseLock, r as releaseLock, t as acquireLock } from "./runningLock-DMznYh45.js";
7
- import { a as readGlobalPids } from "./globalPidIndex-CRB5KtyL.js";
8
- import { t as PidStore } from "./pidStore-433kvh9D.js";
7
+ import { a as readGlobalPids } from "./globalPidIndex-BsjlId-h.js";
8
+ import { t as PidStore } from "./pidStore-C50VPk3E.js";
9
9
  import { r as recordInbox } from "./messageLog-Dq_ka-Bt.js";
10
10
  import { n as register, r as sweep } from "./reaper-C2cuougX.js";
11
- import { a as LIFECYCLES, r as openStore } from "./todoStore-C9RTz0Vs.js";
11
+ import { a as LIFECYCLES, r as openStore } from "./todoStore-msRCEUi1.js";
12
+ import { accessSync, constants, existsSync, statSync } from "node:fs";
13
+ import path from "node:path";
12
14
  import { arch, platform } from "process";
13
15
  import { execSync } from "child_process";
14
- import { closeSync, constants, createReadStream, existsSync, mkdirSync, openSync } from "fs";
16
+ import { closeSync, constants as constants$1, createReadStream, existsSync as existsSync$1, mkdirSync as mkdirSync$1, openSync } from "fs";
15
17
  import { mkdir, open, readFile, readdir, stat, unlink, writeFile } from "fs/promises";
16
18
  import { homedir } from "os";
17
- import path, { dirname, join } from "path";
19
+ import path$1, { dirname, join } from "path";
18
20
  import { fileURLToPath } from "url";
19
21
  import { randomBytes } from "node:crypto";
20
22
  import { execaCommandSync, execaSync, parseCommandString } from "execa";
@@ -24,11 +26,64 @@ import sflow from "sflow";
24
26
  import xterm from "@xterm/headless";
25
27
  import { createServer } from "net";
26
28
  import { execSync as execSync$1 } from "node:child_process";
27
- import { accessSync as accessSync$1, constants as constants$1, existsSync as existsSync$1, statSync as statSync$1 } from "node:fs";
28
- import path$1 from "node:path";
29
29
  import os$1 from "node:os";
30
30
  import { readFile as readFile$1 } from "node:fs/promises";
31
31
 
32
+ //#region ts/conptyModeFilter.ts
33
+ /** Keep ConPTY's private keyboard protocol local to its PTY boundary.
34
+ * Forwarding DECSET 9001 to an outer Windows console turns VT input bytes
35
+ * into literal-character INPUT_RECORDs, breaking arrows, paste and mouse.
36
+ * This is output negotiation, not an input sanitizer. All app modes survive.
37
+ */
38
+ var ConptyModeFilter = class {
39
+ pending = "";
40
+ feed(chunk) {
41
+ const text = this.pending + chunk;
42
+ this.pending = "";
43
+ let out = "", i = 0;
44
+ while (i < text.length) {
45
+ const start = text.indexOf("\x1B", i);
46
+ if (start < 0) {
47
+ out += text.slice(i);
48
+ break;
49
+ }
50
+ out += text.slice(i, start);
51
+ const rest = text.slice(start);
52
+ if ("\x1B[?".startsWith(rest)) {
53
+ this.pending = rest;
54
+ break;
55
+ }
56
+ if (!rest.startsWith("\x1B[?")) {
57
+ out += "\x1B";
58
+ i = start + 1;
59
+ continue;
60
+ }
61
+ let end = start + 3;
62
+ while (end < text.length && /[0-9;]/.test(text[end])) end++;
63
+ if (end === text.length && end - start < 256) {
64
+ this.pending = rest;
65
+ break;
66
+ }
67
+ const params = text.slice(start + 3, end).split(";");
68
+ if ((text[end] === "h" || text[end] === "l") && params.includes("9001")) {
69
+ const kept = params.filter((p) => p !== "9001");
70
+ if (kept.length) out += "\x1B[?" + kept.join(";") + text[end];
71
+ i = end + 1;
72
+ } else {
73
+ out += text.slice(start, end);
74
+ i = end;
75
+ }
76
+ }
77
+ return out;
78
+ }
79
+ finish() {
80
+ const tail = this.pending;
81
+ this.pending = "";
82
+ return tail;
83
+ }
84
+ };
85
+
86
+ //#endregion
32
87
  //#region ts/xterm-proxy.ts
33
88
  const { Terminal } = xterm;
34
89
  /**
@@ -133,8 +188,8 @@ var XtermProxy = class {
133
188
 
134
189
  //#endregion
135
190
  //#region ts/resume/codexSessionManager.ts
136
- const getSessionsFile = () => process.env.CLI_YES_TEST_HOME ? path.join(process.env.CLI_YES_TEST_HOME, ".config", "agent-yes", "codex-sessions.json") : path.join(homedir(), ".config", "agent-yes", "codex-sessions.json");
137
- const getCodexSessionsDir = () => process.env.CLI_YES_TEST_HOME ? path.join(process.env.CLI_YES_TEST_HOME, ".codex", "sessions") : path.join(homedir(), ".codex", "sessions");
191
+ const getSessionsFile = () => process.env.CLI_YES_TEST_HOME ? path$1.join(process.env.CLI_YES_TEST_HOME, ".config", "agent-yes", "codex-sessions.json") : path$1.join(homedir(), ".config", "agent-yes", "codex-sessions.json");
192
+ const getCodexSessionsDir = () => process.env.CLI_YES_TEST_HOME ? path$1.join(process.env.CLI_YES_TEST_HOME, ".codex", "sessions") : path$1.join(homedir(), ".codex", "sessions");
138
193
  /**
139
194
  * Load the session map from the config file
140
195
  */
@@ -152,7 +207,7 @@ async function loadSessionMap() {
152
207
  async function saveSessionMap(sessionMap) {
153
208
  try {
154
209
  const sessionsFile = getSessionsFile();
155
- await mkdir(path.dirname(sessionsFile), { recursive: true });
210
+ await mkdir(path$1.dirname(sessionsFile), { recursive: true });
156
211
  await writeFile(sessionsFile, JSON.stringify(sessionMap, null, 2));
157
212
  } catch (error) {
158
213
  console.warn("Failed to save codex session map:", error);
@@ -203,19 +258,19 @@ async function getAllCodexSessions() {
203
258
  try {
204
259
  const years = await readdir(codexSessionsDir);
205
260
  for (const year of years) {
206
- const yearPath = path.join(codexSessionsDir, year);
261
+ const yearPath = path$1.join(codexSessionsDir, year);
207
262
  try {
208
263
  const months = await readdir(yearPath);
209
264
  for (const month of months) {
210
- const monthPath = path.join(yearPath, month);
265
+ const monthPath = path$1.join(yearPath, month);
211
266
  try {
212
267
  const days = await readdir(monthPath);
213
268
  for (const day of days) {
214
- const dayPath = path.join(monthPath, day);
269
+ const dayPath = path$1.join(monthPath, day);
215
270
  try {
216
271
  const files = await readdir(dayPath);
217
272
  for (const file of files) if (file.endsWith(".jsonl")) {
218
- const session = await parseCodexSessionFile(path.join(dayPath, file));
273
+ const session = await parseCodexSessionFile(path$1.join(dayPath, file));
219
274
  if (session) sessions.push(session);
220
275
  }
221
276
  } catch {}
@@ -396,7 +451,7 @@ async function createLinuxFifo(cli, customPath) {
396
451
  if (customPath) fifoPath = customPath;
397
452
  else fifoPath = `/tmp/agent-yes-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}${Math.random().toString(36).substring(2, 5)}.stdin`;
398
453
  try {
399
- mkdirSync(dirname(fifoPath), { recursive: true });
454
+ mkdirSync$1(dirname(fifoPath), { recursive: true });
400
455
  } catch (dirError) {
401
456
  logger.warn(`[${cli}-yes] Failed to create FIFO directory: ${dirError}`);
402
457
  return null;
@@ -412,10 +467,10 @@ async function createLinuxFifo(cli, customPath) {
412
467
  logger.info(`[${cli}-yes] Created FIFO at ${fifoPath}`);
413
468
  try {
414
469
  fifoStream = createReadStream("", {
415
- fd: openSync(fifoPath, constants.O_RDONLY | constants.O_NONBLOCK),
470
+ fd: openSync(fifoPath, constants$1.O_RDONLY | constants$1.O_NONBLOCK),
416
471
  autoClose: true
417
472
  });
418
- const dummyWriteFd = openSync(fifoPath, constants.O_WRONLY | constants.O_NONBLOCK);
473
+ const dummyWriteFd = openSync(fifoPath, constants$1.O_WRONLY | constants$1.O_NONBLOCK);
419
474
  logger.info(`[${cli}-yes] FIFO opened for reading`);
420
475
  const cleanupFifo = async () => {
421
476
  try {
@@ -641,13 +696,15 @@ async function sendEnter(context, waitms = 1e3) {
641
696
  context.nextStdout.unready();
642
697
  context.shell.write("\r");
643
698
  context.idleWaiter.ping();
644
- for (const ms of [1e3, 3e3]) await Promise.race([context.nextStdout.wait(), new Promise((resolve) => setTimeout(() => {
645
- if (!context.nextStdout.isReady) {
646
- context.shell.write("\r");
647
- context.idleWaiter.ping();
648
- }
649
- resolve();
650
- }, ms))]);
699
+ const screenAtEnter = context.screen?.() || void 0;
700
+ const responded = () => screenAtEnter === void 0 ? context.nextStdout.isReady : context.screen?.() !== screenAtEnter;
701
+ for (const ms of [1e3, 3e3]) {
702
+ const deadline = Date.now() + ms;
703
+ while (!responded() && Date.now() < deadline) await new Promise((r) => setTimeout(r, Math.min(100, deadline - Date.now())));
704
+ if (responded()) return;
705
+ context.shell.write("\r");
706
+ context.idleWaiter.ping();
707
+ }
651
708
  }
652
709
  /**
653
710
  * Send a message to the shell
@@ -764,8 +821,8 @@ async function initializeLogPaths(pidStore, pid) {
764
821
  return {
765
822
  logPath: pidStore.getRenderedLogPath(pid),
766
823
  rawLogPath: pidStore.getRawLogPath(pid),
767
- rawLinesLogPath: path.resolve(storeDir, `${pid}.lines.log`),
768
- debuggingLogsPath: path.resolve(storeDir, `${pid}.debug.log`)
824
+ rawLinesLogPath: path$1.resolve(storeDir, `${pid}.lines.log`),
825
+ debuggingLogsPath: path$1.resolve(storeDir, `${pid}.debug.log`)
769
826
  };
770
827
  }
771
828
  /**
@@ -790,7 +847,7 @@ async function saveLogFile(logPath, content) {
790
847
  if (!logPath) return false;
791
848
  if (!content.trim()) return false;
792
849
  try {
793
- await mkdir(path.dirname(logPath), { recursive: true });
850
+ await mkdir(path$1.dirname(logPath), { recursive: true });
794
851
  await writeFile(logPath, content);
795
852
  logger.info(`Full logs saved to ${logPath}`);
796
853
  return true;
@@ -808,8 +865,8 @@ async function saveLogFile(logPath, content) {
808
865
  async function saveDeprecatedLogFile(logFile, content, verbose) {
809
866
  if (!logFile) return;
810
867
  if (verbose) logger.info(`Writing rendered logs to ${logFile}`);
811
- const logFilePath = path.resolve(logFile);
812
- await mkdir(path.dirname(logFilePath), { recursive: true }).catch(() => null);
868
+ const logFilePath = path$1.resolve(logFile);
869
+ await mkdir(path$1.dirname(logFilePath), { recursive: true }).catch(() => null);
813
870
  await writeFile(logFilePath, content);
814
871
  }
815
872
 
@@ -896,8 +953,8 @@ async function applyAgentNice(pid, env = process.env) {
896
953
  */
897
954
  function isExecutableFile(candidate) {
898
955
  try {
899
- if (!statSync$1(candidate).isFile()) return false;
900
- accessSync$1(candidate, constants$1.X_OK);
956
+ if (!statSync(candidate).isFile()) return false;
957
+ accessSync(candidate, constants.X_OK);
901
958
  return true;
902
959
  } catch {
903
960
  return false;
@@ -915,10 +972,10 @@ function isExecutableFile(candidate) {
915
972
  * auto-install path
916
973
  */
917
974
  function resolveOnPath(bin, rawPath, isExec = isExecutableFile) {
918
- if (bin.includes("/") || bin.includes(path$1.sep)) return bin;
919
- for (const dir of rawPath.split(path$1.delimiter)) {
975
+ if (bin.includes("/") || bin.includes(path.sep)) return bin;
976
+ for (const dir of rawPath.split(path.delimiter)) {
920
977
  if (!dir) continue;
921
- const candidate = path$1.join(dir, bin);
978
+ const candidate = path.join(dir, bin);
922
979
  if (isExec(candidate)) return candidate;
923
980
  }
924
981
  throw new Error(`spawn ${bin} ENOENT: command not found in PATH (install it, or point \`binary:\` at a full path)`);
@@ -979,7 +1036,7 @@ function rebuildBunPty() {
979
1036
  const rustPtyDir = join(bunPtyPath, "rust-pty");
980
1037
  const isWindows = platform === "win32";
981
1038
  const tempBase = isWindows ? process.env.TEMP || "C:\\Temp" : "/tmp";
982
- if (!existsSync(join(rustPtyDir, "Cargo.toml"))) {
1039
+ if (!existsSync$1(join(rustPtyDir, "Cargo.toml"))) {
983
1040
  console.log("Source code not found in npm package, cloning from repository...");
984
1041
  const tmpDir = join(tempBase, `bun-pty-build-${Date.now()}`);
985
1042
  try {
@@ -987,7 +1044,7 @@ function rebuildBunPty() {
987
1044
  if (isWindows) execSync(`cd /d "${tmpDir}" && cargo build --release --manifest-path rust-pty\\Cargo.toml`, { stdio: "inherit" });
988
1045
  else execSync(`cd "${tmpDir}" && cargo build --release --manifest-path rust-pty/Cargo.toml`, { stdio: "inherit" });
989
1046
  const builtLib = join(tmpDir, "rust-pty", "target", "release", libName);
990
- if (existsSync(builtLib)) {
1047
+ if (existsSync$1(builtLib)) {
991
1048
  const targetDir = join(rustPtyDir, "target", "release");
992
1049
  if (isWindows) {
993
1050
  execSync(`if not exist "${targetDir}" mkdir "${targetDir}"`, {});
@@ -1020,7 +1077,7 @@ var init_pty_fix = __esmMin((() => {
1020
1077
  bunPtyPath = dirname(fileURLToPath(import.meta.resolve("@snomiao/bun-pty"))) + "/..";
1021
1078
  libName = getLibraryName();
1022
1079
  libPath = join(bunPtyPath, "rust-pty", "target", "release", libName);
1023
- if (!existsSync(bunPtyPath)) {
1080
+ if (!existsSync$1(bunPtyPath)) {
1024
1081
  console.log({ bunPtyPath });
1025
1082
  console.log("bun-pty not found, skipping pty-fix in ");
1026
1083
  process.exit(0);
@@ -1035,11 +1092,11 @@ var init_pty_fix = __esmMin((() => {
1035
1092
  console.log("Checking bun-pty compatibility...");
1036
1093
  rebuildBunPty();
1037
1094
  }
1038
- else if (platform === "win32") if (!existsSync(libPath)) {
1095
+ else if (platform === "win32") if (!existsSync$1(libPath)) {
1039
1096
  console.log("Windows DLL not found, attempting to rebuild...");
1040
1097
  rebuildBunPty();
1041
1098
  } else console.log("bun-pty Windows DLL found");
1042
- else if (platform === "darwin") if (!existsSync(libPath)) {
1099
+ else if (platform === "darwin") if (!existsSync$1(libPath)) {
1043
1100
  console.log("macOS dylib not found, attempting to rebuild...");
1044
1101
  rebuildBunPty();
1045
1102
  } else console.log("bun-pty macOS dylib found");
@@ -1198,6 +1255,7 @@ var AgentContext = class {
1198
1255
  stdinFirstReady = new ReadyManager();
1199
1256
  nextStdout = new ReadyManager();
1200
1257
  idleWaiter = new IdleWaiter();
1258
+ screen;
1201
1259
  isFatal = false;
1202
1260
  shouldRestartWithoutContinue = false;
1203
1261
  autoYesEnabled = true;
@@ -1225,7 +1283,8 @@ var AgentContext = class {
1225
1283
  shell: this.shell,
1226
1284
  idleWaiter: this.idleWaiter,
1227
1285
  stdinReady: this.stdinReady,
1228
- nextStdout: this.nextStdout
1286
+ nextStdout: this.nextStdout,
1287
+ screen: this.screen
1229
1288
  };
1230
1289
  }
1231
1290
  };
@@ -1318,7 +1377,7 @@ const globalAgentRegistry = new AgentRegistry();
1318
1377
 
1319
1378
  //#endregion
1320
1379
  //#region ts/installEnv.ts
1321
- const installDir = path$1.join(import.meta.dirname ?? import.meta.dir, "..");
1380
+ const installDir = path.join(import.meta.dirname ?? import.meta.dir, "..");
1322
1381
  function parseEnvContent(content) {
1323
1382
  const result = {};
1324
1383
  for (const line of content.split("\n")) {
@@ -1341,7 +1400,7 @@ let _installEnv = null;
1341
1400
  */
1342
1401
  async function loadInstallEnv() {
1343
1402
  if (_installEnv) return _installEnv;
1344
- const envPath = path$1.join(installDir, ".env");
1403
+ const envPath = path.join(installDir, ".env");
1345
1404
  try {
1346
1405
  _installEnv = parseEnvContent(await readFile$1(envPath, "utf-8"));
1347
1406
  } catch {
@@ -1439,7 +1498,7 @@ function permissionBadge(p) {
1439
1498
  */
1440
1499
  /** Whether `projectRoot` has ever had an `ay todo` store created — used to skip candidate project roots (e.g. from a live-agent scan) that never called `ay todo` at all. */
1441
1500
  function hasTodoStore(projectRoot) {
1442
- return existsSync$1(path$1.join(projectRoot, ".agent-yes", "todos.jsonl"));
1501
+ return existsSync(path.join(projectRoot, ".agent-yes", "todos.jsonl"));
1443
1502
  }
1444
1503
  async function listAsksForProject(projectRoot) {
1445
1504
  const store = await openStore(projectRoot);
@@ -1613,11 +1672,11 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1613
1672
  })();
1614
1673
  const originalPrompt = prompt;
1615
1674
  if (prompt && inheritedParentPid) try {
1616
- const { resolveSpawner } = await import("./parentLink-B58V1RVd.js");
1675
+ const { resolveSpawner } = await import("./parentLink-MBUD3oY2.js");
1617
1676
  const spawner = await resolveSpawner(inheritedParentPid);
1618
1677
  if (spawner) {
1619
- const { buildInitMsg } = await import("./initMsg-D9KJnfgC.js");
1620
- const { formatIdentity } = await import("./identity-DA7YI9km.js");
1678
+ const { buildInitMsg } = await import("./initMsg-GPU52N-j.js");
1679
+ const { formatIdentity } = await import("./identity-C0MxfwI2.js");
1621
1680
  const identity = formatIdentity({
1622
1681
  cwd: spawner.cwd,
1623
1682
  pid: spawner.pid
@@ -1640,9 +1699,9 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1640
1699
  } catch {}
1641
1700
  const skillHeaders = [];
1642
1701
  let currentDir = workingDir;
1643
- const searchLimit = gitRoot || path.parse(currentDir).root;
1702
+ const searchLimit = gitRoot || path$1.parse(currentDir).root;
1644
1703
  while (true) {
1645
- const md = await readFile(path.resolve(currentDir, "SKILL.md"), "utf8").catch(() => null);
1704
+ const md = await readFile(path$1.resolve(currentDir, "SKILL.md"), "utf8").catch(() => null);
1646
1705
  if (md) {
1647
1706
  const headerMatch = md.match(/^[\s\S]*?(?=\n##\s)/);
1648
1707
  const headerRaw = (headerMatch ? headerMatch[0] : md).trim();
@@ -1652,7 +1711,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1652
1711
  }
1653
1712
  }
1654
1713
  if (currentDir === searchLimit) break;
1655
- const parentDir = path.dirname(currentDir);
1714
+ const parentDir = path$1.dirname(currentDir);
1656
1715
  if (parentDir === currentDir) break;
1657
1716
  currentDir = parentDir;
1658
1717
  }
@@ -1747,7 +1806,15 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1747
1806
  const titlePublisher = new TitlePublisher((title) => {
1748
1807
  pidStore.updateTitle(shell.pid, title).catch(() => null);
1749
1808
  });
1750
- function onData(data) {
1809
+ let modeFilter = new ConptyModeFilter();
1810
+ let modeFilterPid = shell.pid;
1811
+ function onData(data, final = false) {
1812
+ if (modeFilterPid !== shell.pid) {
1813
+ modeFilter = new ConptyModeFilter();
1814
+ modeFilterPid = shell.pid;
1815
+ }
1816
+ if (process.platform === "win32") data = modeFilter.feed(data) + (final ? modeFilter.finish() : "");
1817
+ if (!data) return;
1751
1818
  const currentPid = shell.pid;
1752
1819
  xtermProxy.write(data);
1753
1820
  globalAgentRegistry.appendStdout(currentPid, data);
@@ -1790,6 +1857,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1790
1857
  robust,
1791
1858
  autoYes
1792
1859
  });
1860
+ ctx.screen = () => xtermProxy.tail(24);
1793
1861
  try {
1794
1862
  globalAgentRegistry.register(shell.pid, {
1795
1863
  pid: shell.pid,
@@ -1814,6 +1882,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1814
1882
  });
1815
1883
  const pendingExitCode = Promise.withResolvers();
1816
1884
  shell.onExit(async function onExit({ exitCode }) {
1885
+ onData("", true);
1817
1886
  const exitedPid = shell.pid;
1818
1887
  if (process.platform !== "win32") try {
1819
1888
  process.kill(-exitedPid, "SIGKILL");
@@ -1981,8 +2050,8 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
1981
2050
  return pendingExitCode.resolve(exitCode);
1982
2051
  });
1983
2052
  const writeCurrentPtysize = (cols, rows) => {
1984
- const dir = path.join(agentYesHome(), "ptysize");
1985
- mkdir(dir, { recursive: true }).then(() => writeFile(path.join(dir, String(process.pid)), `${cols} ${rows}\n`)).catch(() => null);
2053
+ const dir = path$1.join(agentYesHome(), "ptysize");
2054
+ mkdir(dir, { recursive: true }).then(() => writeFile(path$1.join(dir, String(process.pid)), `${cols} ${rows}\n`)).catch(() => null);
1986
2055
  };
1987
2056
  {
1988
2057
  const { cols, rows } = getTerminalDimensions();
@@ -2086,7 +2155,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
2086
2155
  }, 100);
2087
2156
  const cleanupHeartbeat = () => clearInterval(heartbeatInterval);
2088
2157
  shell.onExit(cleanupHeartbeat);
2089
- const { startParentPingLoop } = await import("./parentPingLoop-C73bbmCE.js");
2158
+ const { startParentPingLoop } = await import("./parentPingLoop-DDO592Wh.js");
2090
2159
  const parentPingLoop = startParentPingLoop({
2091
2160
  parentPid,
2092
2161
  selfWrapperPid: process.pid,
@@ -2240,7 +2309,7 @@ async function agentYes({ cli, cliArgs = [], skipPermissions = false, prompt, ro
2240
2309
  }).forkTo(async function rawLogger(f) {
2241
2310
  const rawLogPath = ctx.logPaths.rawLogPath;
2242
2311
  if (!rawLogPath) return f.run();
2243
- return await mkdir(path.dirname(rawLogPath), { recursive: true }).then(async () => {
2312
+ return await mkdir(path$1.dirname(rawLogPath), { recursive: true }).then(async () => {
2244
2313
  logger.debug(`[${cli}-yes] raw logs streaming to ${rawLogPath}`);
2245
2314
  let rawWritten = await stat(rawLogPath).then((s) => s.size).catch(() => 0);
2246
2315
  return f.forEach(async (chars) => {
@@ -2349,4 +2418,4 @@ function sleep(ms) {
2349
2418
 
2350
2419
  //#endregion
2351
2420
  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 };
2352
- //# sourceMappingURL=ts-6LF7f4fx.js.map
2421
+ //# sourceMappingURL=ts-njuddXQz.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.303.1";
10
+ var version = "1.304.0";
11
11
 
12
12
  //#endregion
13
13
  //#region ts/versionChecker.ts
@@ -285,4 +285,4 @@ async function displayVersion() {
285
285
 
286
286
  //#endregion
287
287
  export { versionString as a, getInstalledPackage as i, compareVersions as n, displayVersion as r, checkAndAutoUpdate as t };
288
- //# sourceMappingURL=versionChecker-Bc62HNf6.js.map
288
+ //# sourceMappingURL=versionChecker-BJycAanp.js.map
@@ -87,4 +87,4 @@ function isWebrtcSpec(spec) {
87
87
 
88
88
  //#endregion
89
89
  export { parseWebrtcLink as a, isWebrtcSpec as i, SIGNAL_SUBPROTOCOL as n, toWebrtcUrl as o, hasJoinSecret as r, DEFAULT_SIGHOST as t };
90
- //# sourceMappingURL=webrtcLink-va_gAR77.js.map
90
+ //# sourceMappingURL=webrtcLink-DcvacEci.js.map
@@ -1,4 +1,4 @@
1
1
  import "./e2e-BdLf8DvY.js";
2
- import { a as parseWebrtcLink, i as isWebrtcSpec, n as SIGNAL_SUBPROTOCOL, o as toWebrtcUrl, r as hasJoinSecret, t as DEFAULT_SIGHOST } from "./webrtcLink-va_gAR77.js";
2
+ import { a as parseWebrtcLink, i as isWebrtcSpec, n as SIGNAL_SUBPROTOCOL, o as toWebrtcUrl, r as hasJoinSecret, t as DEFAULT_SIGHOST } from "./webrtcLink-DcvacEci.js";
3
3
 
4
4
  export { parseWebrtcLink };
@@ -1,5 +1,5 @@
1
1
  import { a as computeTranscriptHash, c as open, d as randomHex, f as seal, l as packEnvelope, n as FLAG_CONFIRM, o as deriveAuthToken, p as unpackEnvelope, s as deriveDirKeys } from "./e2e-BdLf8DvY.js";
2
- import { a as parseWebrtcLink, i as isWebrtcSpec, n as SIGNAL_SUBPROTOCOL } from "./webrtcLink-va_gAR77.js";
2
+ import { a as parseWebrtcLink, i as isWebrtcSpec, n as SIGNAL_SUBPROTOCOL } from "./webrtcLink-DcvacEci.js";
3
3
  import { hostname } from "os";
4
4
  import { RTCPeerConnection } from "node-datachannel/polyfill";
5
5
 
@@ -680,4 +680,4 @@ async function startWebrtcBridge(link, opts = {}) {
680
680
 
681
681
  //#endregion
682
682
  export { startWebrtcBridge };
683
- //# sourceMappingURL=webrtcRemote-BlGyNZDC.js.map
683
+ //# sourceMappingURL=webrtcRemote-C3xQyf3u.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-BpOIIOVc.js");
31
+ const { resolveDaemonHttpBase, loadTokenReadOnly } = await import("./serve-XwFYE0cE.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-BpOIIOVc.js");
189
+ const { mintScopedTermToken } = await import("./serve-XwFYE0cE.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-Crb5zeHL.js.map
205
+ //# sourceMappingURL=widget-DmRwOlco.js.map
package/dist/widgets.js CHANGED
@@ -2,7 +2,7 @@ import "./e2e-BdLf8DvY.js";
2
2
  import "./channels-jIa5fNjY.js";
3
3
  import "./peer-L-prov9t.js";
4
4
  import { t as AyChannel } from "./browser-BW90gl2w.js";
5
- import { t as AyTerminal } from "./browser-BmxN1Ur9.js";
5
+ import { t as AyTerminal } from "./browser-BAFPmEvN.js";
6
6
  import { AyWidget } from "./widget.js";
7
7
 
8
8
  export { AyChannel, AyTerminal, AyWidget };
@@ -215,4 +215,4 @@ function allowsSkipPermissions() {
215
215
 
216
216
  //#endregion
217
217
  export { getProvisionRoot as a, getWorkspaceRoot as c, isProvisionAllowed as d, resolveSpawnCwd as f, getProvisionHook as i, hasProvisionHook as l, getMaxAgents as n, getSpawnHook as o, setWorkspaceRoot as p, getMinFreeMb as r, getSpawnWaitMs as s, allowsSkipPermissions as t, hasSpawnHook as u };
218
- //# sourceMappingURL=workspaceConfig-BLWB5Wu9.js.map
218
+ //# sourceMappingURL=workspaceConfig-DBgsu81B.js.map