glimmervoid 0.52.3-next.950 → 0.52.3-next.951

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 (179) hide show
  1. package/README.md +26 -3
  2. package/dist/bin/binary-main.js +35 -0
  3. package/dist/bin/glimmervoid.js +31 -26
  4. package/dist/chunks/{adapters-DugPGdiH.js → adapters-D0vKBysu.js} +1 -1
  5. package/dist/chunks/{adapters-Dmjk5IZS.js → adapters-K-tf8tYZ.js} +76 -53
  6. package/dist/chunks/{agent-api-cli-CMVn_Vut.js → agent-api-cli-ChxXRS3d.js} +1 -1
  7. package/dist/chunks/agent-api-cli-D6Ld1V9y.js +1 -0
  8. package/dist/chunks/{agent-api-core-BJ6YdYV5.js → agent-api-core-DfuQ4RDS.js} +2 -2
  9. package/dist/chunks/agent-home-Ba_VrHA0.js +1 -0
  10. package/dist/chunks/{agent-home-DcnSq2mF.js → agent-home-KhnohDHV.js} +1 -1
  11. package/dist/chunks/agent-home-core-D0DgxTT_.js +1 -0
  12. package/dist/chunks/{agent-home-core-DmcBI03O.js → agent-home-core-DxJ5_9_c.js} +5 -5
  13. package/dist/chunks/{agent-setup-cli-l2Ccyvyw.js → agent-setup-cli-CZ82pLNW.js} +3 -3
  14. package/dist/chunks/board-store-client-DNlvZvGx.js +356 -0
  15. package/dist/chunks/{child-process-safe-pP6Vf2i9.js → child-process-safe-DAaWFLd1.js} +1 -1
  16. package/dist/chunks/child-process-safe-DnDmA8Aw.js +1 -0
  17. package/dist/chunks/config-store-2h_954wK.js +1 -0
  18. package/dist/chunks/{config-store-C2jiH99C.js → config-store-BE5X4H-R.js} +4 -4
  19. package/dist/chunks/{config-B2jrRzmA.js → config-wPv6Of22.js} +1 -1
  20. package/dist/chunks/{control-messages-BpR-cN8v.js → control-messages-DkKr9vbw.js} +2 -0
  21. package/dist/chunks/{git-version-BE08x5OZ.js → git-version-Nd3lkOqC.js} +1 -1
  22. package/dist/chunks/{grok-DEzN4fF4.js → grok-BTD32YhV.js} +49 -26
  23. package/dist/chunks/hook-command-core-9E3QR9Bk.js +25 -0
  24. package/dist/chunks/{host-cli-BD8x8i6p.js → host-cli-SIyKKMs0.js} +3 -3
  25. package/dist/chunks/{host-registry-core-Bh3BRHc9.js → host-registry-core-BZJqNz7o.js} +1 -1
  26. package/dist/chunks/kimi-BsXxRPQ_.js +1 -0
  27. package/dist/chunks/{kimi-B4GYBzH-.js → kimi-bJFSfqLq.js} +9 -131
  28. package/dist/chunks/layout-cache-msy3RopJ.js +390 -0
  29. package/dist/chunks/{layout-worker-core-CI6h58eG.js → layout-worker-core-Bo1IQfa3.js} +3 -389
  30. package/dist/chunks/{main-DgtlyPow.js → main-2LINq2w0.js} +220 -430
  31. package/dist/chunks/native-probes-DwN2tSGG.js +80 -0
  32. package/dist/chunks/{node-pty-preflight-B6wME-M3.js → node-pty-preflight-D2ktjjKG.js} +2 -27
  33. package/dist/chunks/{pack-agent-B1vKR4Zy.js → pack-agent-D-Uh314s.js} +1 -1
  34. package/dist/chunks/{packs-cli-Dp-C8WKJ.js → packs-cli-CYC7S_8E.js} +3 -3
  35. package/dist/chunks/{pair-cli-BmGJRcI2.js → pair-cli-X12JQ9zW.js} +2 -2
  36. package/dist/chunks/{pr-flows-cli-CPVt8DoK.js → pr-flows-cli-BsTY76Tt.js} +4 -4
  37. package/dist/chunks/{pr-flows-external-C8YnCmmF.js → pr-flows-external-CFMQl11W.js} +1 -1
  38. package/dist/chunks/{remote-config-dS1_PoT5.js → remote-config-BPeUod_r.js} +1 -1
  39. package/dist/chunks/runtime-paths-DCVulpER.js +1 -0
  40. package/dist/chunks/runtime-paths-DrDchzfV.js +321 -0
  41. package/dist/chunks/settings-cli-CvlYk8mL.js +1 -0
  42. package/dist/chunks/{settings-cli-C54zzPAj.js → settings-cli-Dk5QXFJ2.js} +4 -4
  43. package/dist/chunks/{settings-readout-core-fBEJJwrr.js → settings-readout-core-CtpKozFQ.js} +1 -1
  44. package/dist/chunks/{ssh-sign-cli-CCme7VUf.js → ssh-sign-cli-DQkDNLZ7.js} +3 -3
  45. package/dist/chunks/{ssh-signing-core-C7Dohjcn.js → ssh-signing-core-CmYFjvrx.js} +2 -2
  46. package/dist/chunks/text-core-BECIwjCW.js +27 -0
  47. package/dist/client/assets/{action-status-CuK78Hsa.js → action-status-rETkOMJb.js} +1 -1
  48. package/dist/client/assets/action-status-rETkOMJb.js.br +0 -0
  49. package/dist/client/assets/{agent-core-dqDk36cr.js → agent-core-hnz56MUa.js} +2 -2
  50. package/dist/client/assets/agent-core-hnz56MUa.js.br +0 -0
  51. package/dist/client/assets/{agent-mark-w2lGEgBM.js → agent-mark-B0pG3qXP.js} +1 -1
  52. package/dist/client/assets/agent-mark-B0pG3qXP.js.br +0 -0
  53. package/dist/client/assets/{arena-panel-Dzs-YD4A.js → arena-panel-C8v4wRdk.js} +2 -2
  54. package/dist/client/assets/arena-panel-C8v4wRdk.js.br +0 -0
  55. package/dist/client/assets/{benchmark-panel-CFeHVIqM.js → benchmark-panel-BuvxsTcB.js} +1 -1
  56. package/dist/client/assets/benchmark-panel-BuvxsTcB.js.br +0 -0
  57. package/dist/client/assets/{boards-view-CMcK29xz.js → boards-view-B3w-n321.js} +1 -1
  58. package/dist/client/assets/boards-view-B3w-n321.js.br +0 -0
  59. package/dist/client/assets/button-CfhUK7Jn.js +1 -0
  60. package/dist/client/assets/button-CfhUK7Jn.js.br +0 -0
  61. package/dist/client/assets/{card-actions-E63CtRCm.js → card-actions-tzD2Tm0H.js} +1 -1
  62. package/dist/client/assets/{community-panel-C7a6j2_J.js → community-panel-Chdoh8lk.js} +1 -1
  63. package/dist/client/assets/community-panel-Chdoh8lk.js.br +0 -0
  64. package/dist/client/assets/{control-ws-iwqTRpoV.js → control-ws-DEfwcMni.js} +1 -1
  65. package/dist/client/assets/control-ws-DEfwcMni.js.br +0 -0
  66. package/dist/client/assets/{dialogs-DESGqrSB.js → dialogs-3TcMCHP5.js} +1 -1
  67. package/dist/client/assets/dialogs-3TcMCHP5.js.br +0 -0
  68. package/dist/client/assets/{doc-editor-ui-DLSyvTB2.js → doc-editor-ui-C8V8Xx8x.js} +1 -1
  69. package/dist/client/assets/doc-editor-ui-C8V8Xx8x.js.br +0 -0
  70. package/dist/client/assets/{feature-hint-DuwD4NCV.js → feature-hint-D6hkhJYc.js} +1 -1
  71. package/dist/client/assets/feature-hint-D6hkhJYc.js.br +0 -0
  72. package/dist/client/assets/{first-run-checklist-D8z2OaHX.js → first-run-checklist-CcH2D3Kr.js} +1 -1
  73. package/dist/client/assets/first-run-checklist-CcH2D3Kr.js.br +0 -0
  74. package/dist/client/assets/{hooks-panel-BhMLJOUv.js → hooks-panel-D23DNe1J.js} +1 -1
  75. package/dist/client/assets/hooks-panel-D23DNe1J.js.br +0 -0
  76. package/dist/client/assets/{index-C4ArDe-B.js → index-CPfGHAJ4.js} +5 -5
  77. package/dist/client/assets/index-CPfGHAJ4.js.br +0 -0
  78. package/dist/client/assets/{issues-panel-CUMW1gqQ.js → issues-panel-Cm-Qeu8a.js} +1 -1
  79. package/dist/client/assets/issues-panel-Cm-Qeu8a.js.br +0 -0
  80. package/dist/client/assets/{lane-read-token-step-CvEGyLsk.js → lane-read-token-step-3P8vTIHC.js} +1 -1
  81. package/dist/client/assets/lane-read-token-step-3P8vTIHC.js.br +0 -0
  82. package/dist/client/assets/{menu-D8BpFeNo.js → menu-DzZGGGGN.js} +1 -1
  83. package/dist/client/assets/menu-DzZGGGGN.js.br +0 -0
  84. package/dist/client/assets/{modal-BVeQuAZ9.js → modal-CjIIQMho.js} +1 -1
  85. package/dist/client/assets/modal-CjIIQMho.js.br +0 -0
  86. package/dist/client/assets/{my-prs-panel-B8_orUYb.js → my-prs-panel-wFWhjV1D.js} +1 -1
  87. package/dist/client/assets/my-prs-panel-wFWhjV1D.js.br +0 -0
  88. package/dist/client/assets/{nyan-cat-CElUDOUj.js → nyan-cat-BNbnWPTK.js} +1 -1
  89. package/dist/client/assets/nyan-cat-BNbnWPTK.js.br +0 -0
  90. package/dist/client/assets/{phone-shell-CPv7VC64.js → phone-shell-Dcl9HOom.js} +1 -1
  91. package/dist/client/assets/phone-shell-Dcl9HOom.js.br +0 -0
  92. package/dist/client/assets/{plan-face-DgbSg2lL.js → plan-face-6YCDVGZv.js} +1 -1
  93. package/dist/client/assets/plan-face-6YCDVGZv.js.br +0 -0
  94. package/dist/client/assets/{plan-render-pou6X_n4.js → plan-render-BmxGXP2c.js} +1 -1
  95. package/dist/client/assets/plan-render-BmxGXP2c.js.br +0 -0
  96. package/dist/client/assets/{pr-queue-columns-g6xSX_6e.js → pr-queue-columns-D6_CG0Qm.js} +1 -1
  97. package/dist/client/assets/pr-queue-columns-D6_CG0Qm.js.br +0 -0
  98. package/dist/client/assets/{pr-status-icon-BVaP66Xa.js → pr-status-icon-dpJOgyIo.js} +1 -1
  99. package/dist/client/assets/pr-status-icon-dpJOgyIo.js.br +0 -0
  100. package/dist/client/assets/{radar-panel-DcFuqpe0.js → radar-panel-D778OuaR.js} +1 -1
  101. package/dist/client/assets/radar-panel-D778OuaR.js.br +0 -0
  102. package/dist/client/assets/{repo-roots-adder-DghvxT64.js → repo-roots-adder-eVH-7VU2.js} +1 -1
  103. package/dist/client/assets/repo-roots-adder-eVH-7VU2.js.br +0 -0
  104. package/dist/client/assets/{resume-dialog-JJEDvHwz.js → resume-dialog-BtZE0BHF.js} +1 -1
  105. package/dist/client/assets/resume-dialog-BtZE0BHF.js.br +0 -0
  106. package/dist/client/assets/{review-queue-panel-D5vxmmCf.js → review-queue-panel-CB7hteVu.js} +1 -1
  107. package/dist/client/assets/review-queue-panel-CB7hteVu.js.br +0 -0
  108. package/dist/client/assets/{session-row-D23MhhLx.js → session-row-CGbJfZvw.js} +1 -1
  109. package/dist/client/assets/session-row-CGbJfZvw.js.br +0 -0
  110. package/dist/client/assets/{session-tick-B9JUo7rw.js → session-tick-DrUXWyvz.js} +1 -1
  111. package/dist/client/assets/session-tick-DrUXWyvz.js.br +0 -0
  112. package/dist/client/assets/{settings-panel-DWJYywdB.js → settings-panel-BVCdtDjh.js} +2 -2
  113. package/dist/client/assets/settings-panel-BVCdtDjh.js.br +0 -0
  114. package/dist/client/assets/{setup-step-CNhiAZn8.js → setup-step-B9ALtknc.js} +1 -1
  115. package/dist/client/assets/setup-step-B9ALtknc.js.br +0 -0
  116. package/dist/client/assets/{trace-panel-6TyLZ1kg.js → trace-panel-D0o4GDy6.js} +1 -1
  117. package/dist/client/assets/trace-panel-D0o4GDy6.js.br +0 -0
  118. package/dist/client/assets/{usage-panel-BXLTPEJA.js → usage-panel-Cs7PX9Oc.js} +1 -1
  119. package/dist/client/assets/usage-panel-Cs7PX9Oc.js.br +0 -0
  120. package/dist/client/assets/{whiteboard-undo-core-BgjAKRbt.js → whiteboard-undo-core-BSuUyjQJ.js} +1 -1
  121. package/dist/client/assets/whiteboard-undo-core-BSuUyjQJ.js.br +0 -0
  122. package/dist/client/assets/{your-day-tip-BsMJEYAz.js → your-day-tip-DPdFbFmo.js} +1 -1
  123. package/dist/client/assets/your-day-tip-DPdFbFmo.js.br +0 -0
  124. package/dist/client/index.html +12 -12
  125. package/dist/client/index.html.br +0 -0
  126. package/dist/server/index.js +3 -3
  127. package/dist/server/whiteboard/layout-worker.js +3 -2
  128. package/dist/session/hook-tool-relay.js +5 -3
  129. package/dist/session/statusline-relay.js +1 -1
  130. package/package.json +25 -2
  131. package/dist/chunks/agent-api-cli-Bn6prE_C.js +0 -1
  132. package/dist/chunks/agent-home-DB7dDhC0.js +0 -1
  133. package/dist/chunks/agent-home-core-B3IRzwkX.js +0 -1
  134. package/dist/chunks/child-process-safe-BrQd4i6y.js +0 -1
  135. package/dist/chunks/config-store-B8q1647B.js +0 -1
  136. package/dist/chunks/hook-command-core-Bu5xBKp3.js +0 -16
  137. package/dist/chunks/kimi-DnAl3Gci.js +0 -1
  138. package/dist/chunks/runtime-paths-5UK7AN_h.js +0 -85
  139. package/dist/chunks/runtime-paths-BI7m38Nj.js +0 -1
  140. package/dist/chunks/settings-cli-C28g1sTU.js +0 -1
  141. package/dist/client/assets/action-status-CuK78Hsa.js.br +0 -0
  142. package/dist/client/assets/agent-core-dqDk36cr.js.br +0 -0
  143. package/dist/client/assets/agent-mark-w2lGEgBM.js.br +0 -0
  144. package/dist/client/assets/arena-panel-Dzs-YD4A.js.br +0 -0
  145. package/dist/client/assets/benchmark-panel-CFeHVIqM.js.br +0 -0
  146. package/dist/client/assets/boards-view-CMcK29xz.js.br +0 -0
  147. package/dist/client/assets/button-lPlbTPdg.js +0 -1
  148. package/dist/client/assets/button-lPlbTPdg.js.br +0 -0
  149. package/dist/client/assets/community-panel-C7a6j2_J.js.br +0 -0
  150. package/dist/client/assets/control-ws-iwqTRpoV.js.br +0 -0
  151. package/dist/client/assets/dialogs-DESGqrSB.js.br +0 -0
  152. package/dist/client/assets/doc-editor-ui-DLSyvTB2.js.br +0 -0
  153. package/dist/client/assets/feature-hint-DuwD4NCV.js.br +0 -0
  154. package/dist/client/assets/first-run-checklist-D8z2OaHX.js.br +0 -0
  155. package/dist/client/assets/hooks-panel-BhMLJOUv.js.br +0 -0
  156. package/dist/client/assets/index-C4ArDe-B.js.br +0 -0
  157. package/dist/client/assets/issues-panel-CUMW1gqQ.js.br +0 -0
  158. package/dist/client/assets/lane-read-token-step-CvEGyLsk.js.br +0 -0
  159. package/dist/client/assets/menu-D8BpFeNo.js.br +0 -5
  160. package/dist/client/assets/modal-BVeQuAZ9.js.br +0 -0
  161. package/dist/client/assets/my-prs-panel-B8_orUYb.js.br +0 -0
  162. package/dist/client/assets/nyan-cat-CElUDOUj.js.br +0 -0
  163. package/dist/client/assets/phone-shell-CPv7VC64.js.br +0 -0
  164. package/dist/client/assets/plan-face-DgbSg2lL.js.br +0 -0
  165. package/dist/client/assets/plan-render-pou6X_n4.js.br +0 -0
  166. package/dist/client/assets/pr-queue-columns-g6xSX_6e.js.br +0 -0
  167. package/dist/client/assets/pr-status-icon-BVaP66Xa.js.br +0 -0
  168. package/dist/client/assets/radar-panel-DcFuqpe0.js.br +0 -0
  169. package/dist/client/assets/repo-roots-adder-DghvxT64.js.br +0 -0
  170. package/dist/client/assets/resume-dialog-JJEDvHwz.js.br +0 -0
  171. package/dist/client/assets/review-queue-panel-D5vxmmCf.js.br +0 -0
  172. package/dist/client/assets/session-row-D23MhhLx.js.br +0 -0
  173. package/dist/client/assets/session-tick-B9JUo7rw.js.br +0 -0
  174. package/dist/client/assets/settings-panel-DWJYywdB.js.br +0 -0
  175. package/dist/client/assets/setup-step-CNhiAZn8.js.br +0 -0
  176. package/dist/client/assets/trace-panel-6TyLZ1kg.js.br +0 -0
  177. package/dist/client/assets/usage-panel-BXLTPEJA.js.br +0 -0
  178. package/dist/client/assets/whiteboard-undo-core-BgjAKRbt.js.br +0 -0
  179. package/dist/client/assets/your-day-tip-BsMJEYAz.js.br +0 -0
@@ -1,59 +1,61 @@
1
- import { $t as CONTROL_FRAME_MAX_BYTES, A as BenchmarkSuite, B as DISCORD_CHANNEL_NAME_RE, Bt as issuePullRequestStateFromGithub, C as EFFORT_OPTION_ID, D as BenchmarkJudgement, E as BenchmarkId, F as CommunityActionRequest, Ft as IssueKey, G as GithubPrsFrame, Gt as TraceCheckpoint, H as GithubPrDetailNode, Ht as HookEnvelope, I as CommunityDraft, It as IssueUpdate, J as WorkflowLabelName, Jt as ChangeMap, K as comparablePrKey, Kt as TraceRecord, L as CommunityItem, Lt as IssuesSearchResponse, M as MergedPrListing, N as MinedPrReviewData, Nt as GithubIssuePullRequestsRepository, O as BenchmarkRun, Ot as USAGE_INTEGER_RANGES, P as PrCheckoutCaseInput, Pt as GithubIssueResponse, Qt as CLIENT_LOG_TEXT_MAX_CHARS, R as CommunityState, Rt as IssuesState, S as DEFAULT_MODELS, T as BenchmarkCase, U as GithubPrKey, Ut as SessionSetup, V as SKILL_NAME_RE, W as GithubPrLightSearchNode, Wt as MAX_RAW_LINE_CHARS, Xt as CHANGES_POLL_INTERVAL_MS, Y as WorkflowsSettings, Yt as changeMapFactId, Z as WorkflowsState, _ as RaceSpec, _n as PlanRevision, b as CATALOG_AGENT_IDS, c as HINT_FEATURES, d as ContestantMetrics, dn as PLAN_BODY_CAP_BYTES, fn as PLAN_HOOK_EVENT, g as RaceRecord, gn as PlanDecision, h as RaceJudgeAgent, hn as PLAN_TOOL_NAME, j as CommitComparison, k as BenchmarkStatus, l as HINT_VIEW_BY_FEATURE, mn as PLAN_RESULT_HOOK_EVENT, n as PackApproveRequest, o as HubPhoneAlertFrame, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as RACE_CRITERIA, pn as PLAN_HOOK_OUTPUT_MAX_CHARS, q as WorkflowCommentBody, qt as CoherenceJournalOutput, r as HUB_PHONE_ALERT_TEXT_MAX, s as FeatureHintState, sn as pullRequestKeyFromReference, t as ClientMessage, tn as GithubTeam, un as UpdateJournal, vn as parseExitPlanModeHookPayload, w as BenchmarkActionRequest, x as CatalogAgentId, yn as planTitle, z as CommunityVerdict, zt as IssuesStatus } from "./control-messages-BpR-cN8v.js";
1
+ import { $t as CONTROL_FRAME_MAX_BYTES, A as BenchmarkSuite, B as DISCORD_CHANNEL_NAME_RE, Bt as issuePullRequestStateFromGithub, C as EFFORT_OPTION_ID, D as BenchmarkJudgement, E as BenchmarkId, F as CommunityActionRequest, Ft as IssueKey, G as GithubPrsFrame, Gt as TraceCheckpoint, H as GithubPrDetailNode, Ht as HookEnvelope, I as CommunityDraft, It as IssueUpdate, J as WorkflowLabelName, Jt as ChangeMap, K as comparablePrKey, Kt as TraceRecord, L as CommunityItem, Lt as IssuesSearchResponse, M as MergedPrListing, N as MinedPrReviewData, Nt as GithubIssuePullRequestsRepository, O as BenchmarkRun, Ot as USAGE_INTEGER_RANGES, P as PrCheckoutCaseInput, Pt as GithubIssueResponse, Qt as CLIENT_LOG_TEXT_MAX_CHARS, R as CommunityState, Rt as IssuesState, S as DEFAULT_MODELS, T as BenchmarkCase, U as GithubPrKey, Ut as SessionSetup, V as SKILL_NAME_RE, W as GithubPrLightSearchNode, Wt as MAX_RAW_LINE_CHARS, Xt as CHANGES_POLL_INTERVAL_MS, Y as WorkflowsSettings, Yt as changeMapFactId, Z as WorkflowsState, _ as RaceSpec, _n as PlanRevision, b as CATALOG_AGENT_IDS, c as HINT_FEATURES, d as ContestantMetrics, dn as PLAN_BODY_CAP_BYTES, fn as PLAN_HOOK_EVENT, g as RaceRecord, gn as PlanDecision, h as RaceJudgeAgent, hn as PLAN_TOOL_NAME, j as CommitComparison, k as BenchmarkStatus, l as HINT_VIEW_BY_FEATURE, mn as PLAN_RESULT_HOOK_EVENT, n as PackApproveRequest, o as HubPhoneAlertFrame, ot as KEEP_MERGEABLE_TIMEOUT_MINUTES_RANGE, p as RACE_CRITERIA, pn as PLAN_HOOK_OUTPUT_MAX_CHARS, q as WorkflowCommentBody, qt as CoherenceJournalOutput, r as HUB_PHONE_ALERT_TEXT_MAX, s as FeatureHintState, sn as pullRequestKeyFromReference, t as ClientMessage, tn as GithubTeam, un as UpdateJournal, vn as parseExitPlanModeHookPayload, w as BenchmarkActionRequest, x as CatalogAgentId, yn as planTitle, z as CommunityVerdict, zt as IssuesStatus } from "./control-messages-DkKr9vbw.js";
2
2
  import { a as rawTextOr, i as positiveNumberOr, n as isRecord$2, o as textOr, r as numberOr, t as coercedNumberOr } from "./coerce-D6vRlIGO.js";
3
- import { $ as codexSessionIdFromPath, $t as removalsJournalPath, A as pickNewestPublished, At as vendorUsageEntry, B as planUploadRetention, Bt as agentHookGroupOf, C as decideUpdateStatus, Ct as identityFromRelPath, D as parseRegistryDeprecation, Dt as parseUsageLine, E as normalizeUpdateChannel, Et as parseJsonLine$1, F as decideUploadType, Ft as generateToken, G as containmentRefusalReason, Gt as readStoredHooks, H as TRACE_TAIL_SCAN_BYTES, Ht as hooksForProject, I as exceedsUploadCap, It as sweepOrphans, J as resumeOffsetFrom, Jt as makeHostScratchDirectory, K as isOversizedPartialLine, Kt as removeHook, L as framePathPaste, Lt as writeSessionSettings, M as openContainedFile, Mt as HOOK_EVENTS, N as MAX_UPLOAD_BYTES, Nt as PLAN_HOLD_RELEASE_MS, O as parseRegistryLatest, Ot as shouldReplace, P as buildUploadFilename, Pt as buildHookSettings, Q as codexRootCandidates, Qt as recordSweptPath, R as imageMimeForUploadFilename, Rt as HOOK_EVENT_CATALOG, S as decideInstallFlavor, St as foldReplacementIntoGenerationRollup, T as normalizeSha, Tt as mergeGenerationRollups, U as committedOffsetFromTraceTailOrNull, Ut as normalizeHook, V as MAX_TRANSCRIPT_READ_BYTES, Vt as appendUserHooks, W as completeLineBytes, Wt as rawStoredHooks, X as codexFallbackRoots, Xt as appendRemovalRecord, Y as withCommittedOffset, Yt as sweepOrphanedHostScratch, Z as codexHomes, Zt as appendRemovalRecordSync, _ as folderTrustRoot, _t as addEntryToTotals, a as customAgentFingerprint, at as isUsageFile, b as requestCodexAppServer, bt as expandAdvisorIterations, c as hookProfileOf, ct as projectDirCandidates, d as isKnownAgentId, dt as sessionsRootCandidates, en as listClaudeGlobalConfigPathCandidates, et as continuationDelayMs, f as listAgentIds, ft as shouldEvaluateDespiteIoFailures, g as setCustomAgents, gt as parseKimiUsageLine, h as resolveAdapter, ht as kimiDedupIdentity, i as commandFor, it as grokHomes, j as shortSha, jt as claudeCode, k as parseResolvedSha, kt as totalTokensOf$1, l as isBuiltInAgentId, lt as resolveProjectsDirs, m as resetCommandCache, mt as splitLines, n as DEFAULT_AGENT_ID$1, nt as dedupeCodexFiles, o as describeAgentResolvability, ot as kimiHomes, p as projectHookConfigRelPaths, pt as shouldPersistWarehouse, q as planContiguousRead, qt as upsertHook, r as cachedAgentResolvability, rt as expandTilde, s as getAdapter, st as passOutcome, tn as HOOK_TOOLS, tt as decideFileRead, u as isFirstClassAgent, ut as scopedClaudeRoots, v as codex, vt as dedupKeys, w as isCheckFresh, wt as isWithinGenerationRecencyWindow, x as NODE_PTY_INSTALL_SCRIPT_FLAG, xt as foldEntryIntoGenerationRollup, y as readHostCodexVersion, yt as emptyTotals, z as isSafePathSegment, zt as ID_RE } from "./adapters-Dmjk5IZS.js";
4
- import { $ as buildBrowserExceptionProperties, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as buildAiGenerationEvents, U as DEEP_HISTORY_SCROLLBACK_LINES, X as POSTHOG_INGEST_HOST_ENV, Y as FIRST_RUN_NOTICE, Z as adapterBucket, _ as sessionIdFromBranch, _t as TELEMETRY_EVENT_SCHEMAS, a as generateProjectId, at as decideIsDevInstall, b as DEFAULT_TIMER_FNS, bt as comparableDirectoryPath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as PendingCrashReport, h as planBranchGc, ht as DashboardTelemetryReport, i as ensureProjectIds, it as codexUserIdOf, k as SETTINGS_INDEX, lt as isIngestOverrideIgnored, m as matchedPrefix, mt as telemetryFlagsUrl, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir, ot as decideRemoteTelemetryState, p as isGcCandidateWorktree, pt as telemetryBatchUrl, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as nodeMajorVersion, v as usablePrefixes, vt as TelemetryState, x as unrefTimer, xt as isSameDirectoryPath, y as worktreeIntegrationTips, yt as canonicalizePath, z as valueAtPath } from "./config-store-C2jiH99C.js";
3
+ import { $ as codexHomes, $t as appendRemovalRecordSync, A as parseRegistryLatest, At as shouldReplace, B as imageMimeForUploadFilename, Bt as HOOK_EVENT_CATALOG, C as NODE_PTY_INSTALL_SCRIPT_FLAG, Ct as foldEntryIntoGenerationRollup, D as normalizeSha, Dt as mergeGenerationRollups, E as isCheckFresh, Et as isWithinGenerationRecencyWindow, F as MAX_UPLOAD_BYTES, Ft as PLAN_HOLD_RELEASE_MS, G as committedOffsetFromTraceTailOrNull, Gt as normalizeHook, H as planUploadRetention, Ht as agentHookGroupOf, I as buildUploadFilename, It as buildHookSettings, J as isOversizedPartialLine, Jt as removeHook, K as completeLineBytes, Kt as rawStoredHooks, L as decideUploadType, Lt as generateToken, M as pickNewestPublished, Mt as vendorUsageEntry, N as shortSha, Nt as claudeCode, O as normalizeUpdateChannel, Ot as parseJsonLine$1, P as openContainedFile, Pt as HOOK_EVENTS, Q as codexFallbackRoots, Qt as appendRemovalRecord, R as exceedsUploadCap, Rt as sweepOrphans, S as HOMEBREW_COMMAND, St as expandAdvisorIterations, T as decideUpdateStatus, Tt as identityFromRelPath, U as MAX_TRANSCRIPT_READ_BYTES, Ut as appendUserHooks, V as isSafePathSegment, Vt as ID_RE, W as TRACE_TAIL_SCAN_BYTES, Wt as hooksForProject, X as resumeOffsetFrom, Xt as makeHostScratchDirectory, Y as planContiguousRead, Yt as upsertHook, Z as withCommittedOffset, Zt as sweepOrphanedHostScratch, _ as folderTrustRoot, _t as kimiDedupIdentity, a as customAgentFingerprint, at as expandTilde, b as requestCodexAppServer, bt as dedupKeys, c as hookProfileOf, ct as kimiHomes, d as isKnownAgentId, dt as resolveProjectsDirs, en as recordSweptPath, et as codexRootCandidates, f as listAgentIds, ft as scopedClaudeRoots, g as setCustomAgents, gt as splitLines, h as resolveAdapter, ht as shouldPersistWarehouse, i as commandFor, it as dedupeCodexFiles, j as parseResolvedSha, jt as totalTokensOf$1, k as parseRegistryDeprecation, kt as parseUsageLine, l as isBuiltInAgentId, lt as passOutcome, m as resetCommandCache, mt as shouldEvaluateDespiteIoFailures, n as DEFAULT_AGENT_ID$1, nn as listClaudeGlobalConfigPathCandidates, nt as continuationDelayMs, o as describeAgentResolvability, ot as grokHomes, p as projectHookConfigRelPaths, pt as sessionsRootCandidates, q as containmentRefusalReason, qt as readStoredHooks, r as cachedAgentResolvability, rn as HOOK_TOOLS, rt as decideFileRead, s as getAdapter, st as isUsageFile, tn as removalsJournalPath, tt as codexSessionIdFromPath, u as isFirstClassAgent, ut as projectDirCandidates, v as codex, vt as parseKimiUsageLine, w as decideInstallFlavor, wt as foldReplacementIntoGenerationRollup, x as BINARY_UPDATER_NAME, xt as emptyTotals, y as readHostCodexVersion, yt as addEntryToTotals, z as framePathPaste, zt as writeSessionSettings } from "./adapters-K-tf8tYZ.js";
4
+ import { $ as buildBrowserExceptionProperties, C as isExperimentalBuild, D as settingsBlockSpecFor, E as mergeSettingsBlock, G as LOGGED_FAST_CLOSE_COUNTS, H as isExperimentalSetting, J as parseDataClientMessage, K as describeDataAttach, O as validateSettingsBlock, Q as buildAiGenerationEvents, S as compareReleaseVersions, U as DEEP_HISTORY_SCROLLBACK_LINES, X as POSTHOG_INGEST_HOST_ENV, Y as FIRST_RUN_NOTICE, Z as adapterBucket, _ as sessionIdFromBranch, _t as TELEMETRY_EVENT_SCHEMAS, a as generateProjectId, at as decideIsDevInstall, b as DEFAULT_TIMER_FNS, bt as comparableDirectoryPath, ct as exceptionFingerprint, d as DEFAULT_CONFIG, dt as parsePosthogReleaseId, et as buildExceptionProperties, f as DEFAULT_BRANCH_GC_PREFIXES, ft as resolveProjectToken, g as planWorktreeGc, gt as PendingCrashReport, h as planBranchGc, ht as DashboardTelemetryReport, i as ensureProjectIds, it as codexUserIdOf, k as SETTINGS_INDEX, lt as isIngestOverrideIgnored, m as matchedPrefix, mt as telemetryFlagsUrl, n as createConfigStore, nt as classifySessionExit, o as glimmervoidHomeDir, ot as decideRemoteTelemetryState, p as isGcCandidateWorktree, pt as telemetryBatchUrl, q as parseDataAttach, r as ABORT_CONFIG_SAVE, rt as claudeAccountUuidOf, st as decideTelemetryConsent, tt as buildPersonProperties, ut as nodeMajorVersion, v as usablePrefixes, vt as TelemetryState, x as unrefTimer, xt as isSameDirectoryPath, y as worktreeIntegrationTips, yt as canonicalizePath, z as valueAtPath } from "./config-store-BE5X4H-R.js";
5
5
  import { C as memoryReserveBytes, E as parseMemAvailableBytes, S as headroomFromReadings, T as parseCgroupV2Path, _ as createSerialQueue, a as jsonStateLoadError, b as cgroupAncestorPaths, c as loadedJsonValue, d as writeJsonAtomic, f as writeJsonAtomicSync, g as createMemoryAdmission, h as createKeyedSerialQueue, i as createJsonStateWriter, m as writeTextAtomicSync, n as appendJsonLines, o as loadJsonStateFile, p as writeTextAtomic, r as createJsonStateStore, s as loadJsonStateFileSync, t as appendJsonLine, v as createSpawnGate, w as parseCgroupBytes, x as cgroupLimitBytes, y as isQueueAdmissionTimeout } from "./json-file-BmnDu2ZM.js";
6
6
  import { a as sanitizeWorktreeName, i as safePathSegment, n as equalsIgnoringCaseOnWindows, r as isPathInside, t as caseFoldedPathKey } from "./paths-C2u2R_6l.js";
7
7
  import { o as isMissingFileError, r as errorMessage, t as errorCode } from "./text-BDF4aFhQ.js";
8
- import { i as resolveArgvCommandMatches, t as kimi } from "./kimi-B4GYBzH-.js";
9
- import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, s as refuseLaunchesOf, t as assertLaunchable } from "./child-process-safe-pP6Vf2i9.js";
8
+ import { _ as stableLauncherPath, a as examplePacksDir, d as relayPath, f as resolveFfmpegPath, g as selfRelaunch, h as selfLaunch, i as clientDir, l as packageRoot, m as scriptLaunch, o as findNodeLauncherPath, p as resolvePackageBin, r as bundled, t as assetRoot, u as refuseUnstableSelfLaunches, v as stableLauncherPathFor } from "./runtime-paths-DrDchzfV.js";
9
+ import { c as runCommandSafely$1, i as execFileSync, l as spawn, n as execFile, r as execFileAsync, t as assertLaunchable } from "./child-process-safe-DAaWFLd1.js";
10
10
  import { $ as MyPrCheckContextsResponse, $t as PR_ACTION_TOKEN_ENV, A as QUIET_NOTIFY_CATEGORIES, An as GH_SEGMENT, B as SSH_SIGN_BODY_CAP_BYTES, Bn as MERGEABLE_LIVE_STATES, Bt as TeamReviewResolveResponse, C as COHERENCE_HOOKS_INACTIVE, Dt as PostingPlan, E as CONVERSATION_TOOL_RESULT_HOOK_EVENT, Et as PostedReviewEvent, Ft as ReviewThreadId, G as SshSignRequest, Gt as TeamReviewThreadsRepository, Hn as STATES, Ht as TeamReviewStatus, I as SESSION_NAME_PATTERN, It as ReviewVerdict, K as TASK_TITLE_CONTROL_CHARACTERS, Kt as canApproveAfterComment, L as SESSION_NAME_RULE_TEXT, Lt as TeamReviewActionRequest, Mn as REPO_SLUG_RE, Mt as ReviewDraft, Nn as repoParts, Nt as ReviewFinding, O as ConversationQuestion, On as HEX_SHA_RE, Ot as PrDetail, P as SESSION_DOC_BODY_CAP_BYTES, Pt as ReviewResult, Q as MyPrCheckContext, Qt as PR_ACTION_REPORT_URL_ENV, R as SHOWN_FILE_CAP_BYTES, Rn as BADGE_LABELS, S as AttentionNoteOrigin, St as FindingSeverity, T as CONVERSATION_PERMISSION_HOOK_EVENT, Ut as TeamReviewThreadCommentsResponse, Vn as RESTARTABLE_STATES, Vt as TeamReviewStateEntry, Wt as TeamReviewThreadResult, X as MyPr, Xt as PR_ACTION_REPORT_BODY_CAP_BYTES, Y as LinkedPr, Yt as hasStandingViewerApproval, Z as MyPrAutoRebase, Zt as PR_ACTION_REPORT_ROUTE, _n as PrFlowsSettings, a as ATTENTION_NOTE_NOTIFY_CATEGORY, b as AgentWhyRequest, bn as PrThreadReplyResponse, bt as DECIDING_REVIEW_STATES, dt as MyPrThreadNode, et as MyPrKeepMergeableRequest, f as AgentPacksRequest, ft as MyPrThreadsResponse, i as ASK_USER_QUESTION_TOOL_NAME, in as PrFlowApproveRequest, it as MyPrMergeRequest, j as REQUEST_USER_INPUT_TOOL_NAME, jn as NODE_ID_RE, jt as ReviewComment, kn as shortSha$1, l as AgentCloseRequest, ln as PrFlowItemRequest, mn as PrFlowSaveRuleRequest, mt as MyPrsState, nn as PrActionReportBody, nt as MyPrLaneEntry, on as PrFlowDisposeRequest, ot as MyPrMergeStateResponse, p as AgentPullRequestRequest, pn as PrFlowRule, pt as MyPrsSnapshot, q as TaskTitle, qt as decisionAsIfApprovalRequired, r as AGENT_URL_ENV, rn as PrActionRunRequest, rt as MyPrMergeMethod, s as AgentAttentionRequest, st as MyPrMergeWhenReadyRequest, u as AgentEditRequest, ut as MyPrStage, v as AgentSettingsRequest, vn as PrFlowsState, w as CONVERSATION_APPROVAL_SUMMARY_MAX_CHARS, wn as prActionReportPath, wt as GithubReviewState, xn as PrThreadUnresolveResponse, xt as EarlierReview, y as AgentSpawnRequest, yt as CommitSha$1, z as SIGN_URL_ENV, zn as KILLABLE_STATES, zt as TeamReviewCompareFiles } from "./session-BygOlxkV.js";
11
11
  import { a as QUESTION_ANSWERED_NOTIFY_CATEGORY, c as QuestionManagerSettings, i as ManagerLaneResult, n as MANAGER_DECISION_EVENT, r as ManagerDecision, t as MANAGER_DECISION_AUDIT_KIND } from "./question-manager-C_RzS1Ot.js";
12
- import { E as Op, H as mediaOfBox, K as elementTableOf, M as WHITEBOARD_ASSET_ROUTE, N as WHITEBOARD_LIMITS, O as STICKY_TONES, Q as ICON_NAMES, U as sparseBoardReply, V as linesOfBox, a as BOARD_PAGE_PARAMS_MESSAGE, b as DialManifest, i as BOARD_PAGE_GESTURE_MESSAGE, m as BoardRegion, n as BOARD_MEDIA_MAX_EDGE_PX, nt as DEVICE_NAMES, o as BOARD_PAGE_THEME_MESSAGE, p as BoardRecord, q as elementTableOfStoredRows, r as BOARD_PAGE_ESCAPE_MESSAGE, s as BOARD_PAGE_ZOOMED_MESSAGE, t as BOARD_DOC_CAP_BYTES } from "./whiteboard-BRwReLkT.js";
12
+ import { E as Op, H as mediaOfBox, M as WHITEBOARD_ASSET_ROUTE, N as WHITEBOARD_LIMITS, O as STICKY_TONES, Q as ICON_NAMES, U as sparseBoardReply, V as linesOfBox, a as BOARD_PAGE_PARAMS_MESSAGE, b as DialManifest, i as BOARD_PAGE_GESTURE_MESSAGE, m as BoardRegion, n as BOARD_MEDIA_MAX_EDGE_PX, nt as DEVICE_NAMES, o as BOARD_PAGE_THEME_MESSAGE, p as BoardRecord, r as BOARD_PAGE_ESCAPE_MESSAGE, s as BOARD_PAGE_ZOOMED_MESSAGE, t as BOARD_DOC_CAP_BYTES } from "./whiteboard-BRwReLkT.js";
13
13
  import { n as promptContextReplyOf, o as toolHookContextReplyOf, r as refocusReplyFor, t as REFOCUS_NOTE } from "./refocus-core-DlEDNY3E.js";
14
- import { $ as hintFor, A as fencedUntrustedSections, B as RESUME_ID_RE, C as cleanTaskPrompt, D as extractNotifiedTaskIds, E as extractHookTaskTitle, F as resolveRefocusTaskTitle, G as shouldAdoptReportedResumeId, H as pickAutoResume, I as resolveTaskTitle, J as listRepoWorktreePaths, K as claudeProjectsDir, L as seedTaskTitleSources, M as isSubstantivePrompt, N as parseRefinedSessionName, O as extractOscTaskTitle, P as parseRefinedTaskTitle, R as startsWithSessionName, S as chooseRefinedSessionName, T as extractAiTitle, U as resolveResumeTarget, V as isConversationReplacedAtStartup, W as resumePromptFor, X as nextSuggestedName, Y as isAutoNameOf, Z as describeSessionLimits, _ as projectReviewDetail, a as checkAgentReply, b as buildPersistedTaskTitle, c as deriveChildSessionName, d as describePushLanding, et as permitsHelpCommand, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, it as toolHookFactsOf, j as isSelfWakePrompt, k as extractPromptTaskTitle, l as describeChildEndNote, n as REFUSAL_REASON, nt as routeAgentNotes, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as listRepoConversations, rt as supervisionLine, s as decideSpawnAllowance, tt as promptHintFor, u as describeKeptChildAttention, v as projectReviews, w as decideTaskTitleRefinement, x as buildTaskTitleRefinementPrompt, y as tokensMatch, z as AUTO_CONTINUE_PROMPT } from "./agent-api-core-BJ6YdYV5.js";
14
+ import { $ as hintFor, A as fencedUntrustedSections, B as RESUME_ID_RE, C as cleanTaskPrompt, D as extractNotifiedTaskIds, E as extractHookTaskTitle, F as resolveRefocusTaskTitle, G as shouldAdoptReportedResumeId, H as pickAutoResume, I as resolveTaskTitle, J as listRepoWorktreePaths, K as claudeProjectsDir, L as seedTaskTitleSources, M as isSubstantivePrompt, N as parseRefinedSessionName, O as extractOscTaskTitle, P as parseRefinedTaskTitle, R as startsWithSessionName, S as chooseRefinedSessionName, T as extractAiTitle, U as resolveResumeTarget, V as isConversationReplacedAtStartup, W as resumePromptFor, X as nextSuggestedName, Y as isAutoNameOf, Z as describeSessionLimits, _ as projectReviewDetail, a as checkAgentReply, b as buildPersistedTaskTitle, c as deriveChildSessionName, d as describePushLanding, et as permitsHelpCommand, f as describeRoleRefusal, g as projectMyPrs, h as parseAgentVerb, it as toolHookFactsOf, j as isSelfWakePrompt, k as extractPromptTaskTitle, l as describeChildEndNote, n as REFUSAL_REASON, nt as routeAgentNotes, o as decideAgentRequest, p as describeUnpushedCloseRefusal, q as listRepoConversations, rt as supervisionLine, s as decideSpawnAllowance, tt as promptHintFor, u as describeKeptChildAttention, v as projectReviews, w as decideTaskTitleRefinement, x as buildTaskTitleRefinementPrompt, y as tokensMatch, z as AUTO_CONTINUE_PROMPT } from "./agent-api-core-DfuQ4RDS.js";
15
15
  import { a as mcpLaunchFor, o as parsePresentedCredential } from "./agent-config-BJVJpVzX.js";
16
- import { a as elementPageOf, c as tileKeysFor, l as pictureRefusalOf, o as fitsOnePage, r as SavedLayoutWritten, s as tileIdOf, t as LayoutReply, u as LAYOUT_CACHE_FILENAME } from "./layout-worker-core-CI6h58eG.js";
16
+ import { a as elementPageOf, c as tileKeysFor, l as pictureRefusalOf, o as fitsOnePage, s as tileIdOf } from "./layout-worker-core-Bo1IQfa3.js";
17
17
  import { c as VAULT_REPLACED_CLOSE_CODE, d as VaultCompanionMessage, f as VaultJob, l as VAULT_SOCKET_PATH, n as AgentNeedRequest } from "./secrets-DUjhXqjU.js";
18
- import { a as ConfigUpdate, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, n as BUILTIN_AGENT_IDS, p as USAGE_VENDOR_KEYS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage } from "./config-B2jrRzmA.js";
19
- import { _ as decideHostAllowed, c as approvedPackPanels, d as packRow, f as pendingPackNote, g as readCappedBody, h as parseJsonBody, l as approvedPackThemes, m as decodeHeaderText, n as readPacksForAgent, p as declaredContentLength, u as packFileHeaders } from "./pack-agent-B1vKR4Zy.js";
20
- import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-C7Dohjcn.js";
21
- import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, i as validateRemoteConfig, l as defaultSeenPath, n as isLoopbackHost, o as createPairingsStore, p as hashSecret, r as normalizeRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-dS1_PoT5.js";
22
- import { a as clientDir, c as packageRoot, d as resolvePackageBin, i as cliPath, l as relayPath, n as boardStoreWorkerPath, o as examplePacksDir, r as bundled, s as layoutWorkerPath, t as assetRoot, u as resolveFfmpegPath } from "./runtime-paths-5UK7AN_h.js";
23
- import { n as shellQuote } from "./hook-command-core-Bu5xBKp3.js";
24
- import { c as realAgentHome, f as createHeldSessionTempFolder, h as trashSessionTempFolderOnceUnheld, m as sessionIdOfLockFile, p as releaseSessionLock, u as releaseEveryUnheldAgentHomeSecrets } from "./agent-home-DcnSq2mF.js";
18
+ import { a as ConfigUpdate, c as SHELL_AGENT_ID, f as USAGE_COST_MODES, n as BUILTIN_AGENT_IDS, p as USAGE_VENDOR_KEYS, r as BrowserConfig, s as RUNTIME_CONFIG_SCALAR_KEYS, u as configIssueMessage } from "./config-wPv6Of22.js";
19
+ import { _ as decideHostAllowed, c as approvedPackPanels, d as packRow, f as pendingPackNote, g as readCappedBody, h as parseJsonBody, l as approvedPackThemes, m as decodeHeaderText, n as readPacksForAgent, p as declaredContentLength, u as packFileHeaders } from "./pack-agent-D-Uh314s.js";
20
+ import { a as formatSshPublicKey, c as orderAgentSockets, i as commitSigningShimText, l as parseSshPublicKey, n as NO_AGENT_HOLDS_KEY, o as isForwardedAgentDirName, r as agentListsKey, s as isSignableGitObject, t as COMMIT_SIGNING_SHIM_NAME, u as wellKnownAgentSocketPaths } from "./ssh-signing-core-CmYFjvrx.js";
21
+ import { a as configSiblingPath, c as defaultPairingsPath, d as decideDeviceAuth, f as deviceNameFromUserAgent, i as validateRemoteConfig, l as defaultSeenPath, n as isLoopbackHost, o as createPairingsStore, p as hashSecret, r as normalizeRemoteConfig, s as createSeenStore, t as decideBindHost, u as DEFAULT_DEVICE_MAX_AGE_MS } from "./remote-config-BPeUod_r.js";
22
+ import { r as shellQuote } from "./hook-command-core-9E3QR9Bk.js";
23
+ import { c as realAgentHome, f as createHeldSessionTempFolder, h as trashSessionTempFolderOnceUnheld, m as sessionIdOfLockFile, p as releaseSessionLock, u as releaseEveryUnheldAgentHomeSecrets } from "./agent-home-KhnohDHV.js";
25
24
  import { A as savedRuleFor, B as withInterruptedRuns, D as prFlowSetup, E as prActionRunAfterExit, F as teammateThreadItems, G as defineTransitions, H as withPrActionRun, I as threadCandidates, M as shouldTellBranchMoved, N as sourceCandidates$1, O as prFlowsConfig, R as visibleRun, S as packPathsOf, U as withReopened, V as withOnlyOpenPrs, W as withRuleRun, _ as isCommandStillRunning, b as newPrActionRun, d as acceptReport, f as branchMovedNote, g as flaggingReviewers, h as fixLocallyPrompt, i as packsStatePath, j as scopedToRepo, l as PacksState, o as readPackDir, p as commandFingerprint, r as packDirsUnder, s as PACK_FILE_NAME, t as PACKS_DIR_NAME, v as itemLocation, w as plannedActions, y as mergeItems, z as withHandled } from "./pack-files-DggkYpgV.js";
26
- import { A as stageOps, C as recordPut, D as upgradedBoardRecord, E as summarizeBoard, O as OPERATOR_AUTHOR, S as projectBoardsNoticeFor, T as shownBoxOp, _ as isFiledFor, b as markRead, d as recordOfRows, f as BOARD_CONTEXT_NOTE, g as disconnectSession, h as connectSession, i as StoreReply, j as unplacedNearTargetIdsOf, k as createBoard, m as changesForReader, o as boardDeltaOf, p as boardNoticeFor, r as ELEMENT_PAGE_SIZE, t as BOARD_STORE_FILENAME, u as headRowsOf, v as isListedFor, w as resolveBoardRef, x as pickShowBoardId, y as isSameProject } from "./board-store-core-uF82zqRK.js";
27
- import { B as planSteps$1, G as boardIndexOf, T as cappedWarnings, U as assetIdOf, V as stepBoxesOf, W as assetIdsOf, Y as indexBoardInSlices } from "./whiteboard-layout-core-BHYSQ2pZ.js";
28
- import { C as createTsconfigPathsResolver, E as resolveExtendsPath, T as parseTsconfigJsonc, d as KIMI_HOME_PROFILE, w as matchPathPatterns } from "./agent-home-core-DmcBI03O.js";
29
- import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-fBEJJwrr.js";
25
+ import { A as stageOps, C as recordPut, D as upgradedBoardRecord, E as summarizeBoard, O as OPERATOR_AUTHOR, S as projectBoardsNoticeFor, T as shownBoxOp, _ as isFiledFor, b as markRead, f as BOARD_CONTEXT_NOTE, g as disconnectSession, h as connectSession, j as unplacedNearTargetIdsOf, k as createBoard, m as changesForReader, p as boardNoticeFor, v as isListedFor, w as resolveBoardRef, x as pickShowBoardId, y as isSameProject } from "./board-store-core-uF82zqRK.js";
26
+ import { B as planSteps$1, G as boardIndexOf, T as cappedWarnings, U as assetIdOf, V as stepBoxesOf, W as assetIdsOf } from "./whiteboard-layout-core-BHYSQ2pZ.js";
27
+ import { n as createLayoutClient, t as createBoardStore } from "./board-store-client-DNlvZvGx.js";
28
+ import { t as LAYOUT_CACHE_FILENAME } from "./layout-cache-msy3RopJ.js";
29
+ import { C as createTsconfigPathsResolver, E as resolveExtendsPath, T as parseTsconfigJsonc, d as KIMI_HOME_PROFILE, w as matchPathPatterns } from "./agent-home-core-DxJ5_9_c.js";
30
+ import { n as configFileViewOf, u as readSettingsForAgent } from "./settings-readout-core-CtpKozFQ.js";
30
31
  import { n as escapeMarkup } from "./whiteboard-svg-core-C8es_jiE.js";
31
32
  import { n as DEFAULT_MAX_MS, r as nextBackoffMs, t as DEFAULT_BASE_MS } from "./backoff-CMhw1Fu8.js";
32
33
  import { _ as WatcherStatus, a as LINK_SERVER_URL_ENV, c as Nudge, f as STATUS_PATH, i as LINK_SECRET_ENV, m as WATCHER_LANE_IDS, n as GITHUB_API_BASE_ENV, p as WATCHER_HOME_ENV, v as githubApiOrigin } from "./watcher-link-BKWi5aJM.js";
33
34
  import { n as parseJsonRecord, t as parseJsonOrNull } from "./json-core-B1ov-SNz.js";
34
- import { a as showHomeAsTilde, i as sanitizeOneLine, n as requireExecutableSpawnHelper, r as firstLine$2 } from "./node-pty-preflight-B6wME-M3.js";
35
+ import { n as requireExecutableSpawnHelper } from "./node-pty-preflight-D2ktjjKG.js";
35
36
  import { t as DETACHED_DESKTOP_BUS_ADDRESS } from "./spawn-env-VKivL0Ed.js";
36
37
  import { t as HOOK_URL_ENV } from "./hook-relay-core-COOPCFwv.js";
37
38
  import { c as saneYoloFiles } from "./sane-yolo-DqvfS8ed.js";
38
39
  import { n as glimmervoidHomeDir$1, r as isOperatorHomeUnderTest, t as decideConfigPath } from "./config-path-core-qUZH9-0F.js";
39
40
  import { r as knownWriteHookInput } from "./posthog-read-gate-core-D_5rXRpS.js";
40
41
  import { r as stableConfigKey } from "./config-secrets-core-Dl2-_qLd.js";
42
+ import { n as sanitizeOneLine, r as showHomeAsTilde, t as firstLine$2 } from "./text-core-BECIwjCW.js";
41
43
  import { a as PackStoreData, d as packStoreSizeError, u as packStoreAfterSet } from "./pack-bridge-LK2GtXo2.js";
42
- import { t as createPrFlowsExternal } from "./pr-flows-external-C8YnCmmF.js";
44
+ import { t as createPrFlowsExternal } from "./pr-flows-external-CFMQl11W.js";
43
45
  import { a as signedRequestFromHeaders, i as signedHeaders, o as verifyRequest, r as directionKey, t as createRecentRequestIds } from "./link-signing-core-QyQDc4XP.js";
44
- import { n as isSameHostEntry, r as removeHostFrom, t as addHostTo } from "./host-registry-core-Bh3BRHc9.js";
45
- import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-BE08x5OZ.js";
46
+ import { n as isSameHostEntry, r as removeHostFrom, t as addHostTo } from "./host-registry-core-BZJqNz7o.js";
47
+ import { t as kimi } from "./kimi-bJFSfqLq.js";
48
+ import { i as parseCommandLine, n as warnWhenGitIsTooOld } from "./git-version-Nd3lkOqC.js";
46
49
  import { a as missingReferenceNames, c as withoutApproval, i as denialEndsAtMs, n as approvalsOf, r as decideNeed, s as withApprovals, t as approvalRowsOf } from "./secrets-broker-core-R0yZwtMq.js";
47
50
  import { createRequire } from "node:module";
48
51
  import fs, { readFileSync } from "node:fs";
49
52
  import path, { join, resolve } from "node:path";
50
53
  import os from "node:os";
51
- import { z } from "zod";
54
+ import { isSea } from "node:sea";
52
55
  import { parseEnv } from "node:util";
56
+ import { z } from "zod";
53
57
  import crypto, { createHash, randomBytes, randomInt, randomUUID } from "node:crypto";
54
- import { Worker } from "node:worker_threads";
55
58
  import { monitorEventLoopDelay, performance as performance$1 } from "node:perf_hooks";
56
- import { setImmediate as setImmediate$1 } from "node:timers/promises";
57
59
  import v8 from "node:v8";
58
60
  import fsp, { chmod, copyFile, lstat, mkdir, mkdtemp, open, readFile, readdir, readlink, realpath, rename, rm, stat, writeFile } from "node:fs/promises";
59
61
  import WebSocket$1, { WebSocket, WebSocketServer } from "ws";
@@ -985,20 +987,20 @@ function codexMcpServers(mcpListOutput) {
985
987
  const enabledServers = mcpListOutput.filter((server) => isRecord$2(server) && server.enabled === true && typeof server.name === "string" && isRecord$2(server.transport));
986
988
  return Object.fromEntries(enabledServers.map((server) => [server.name, server.transport]));
987
989
  }
988
- function gatedPosthogTool({ server, gatePath, interpreterPath }) {
989
- if (![gatePath, interpreterPath].every((commandPath) => HOOK_COMMAND_SAFE_PATH_RE.test(commandPath))) return null;
990
+ function gatedPosthogTool({ server, gatePath, gateLaunch }) {
991
+ if (![gatePath, ...gateLaunch].every((commandPart) => HOOK_COMMAND_SAFE_PATH_RE.test(commandPart))) return null;
990
992
  return {
991
993
  id: "posthogReadGate",
992
994
  binPath: gatePath,
993
- serverName: server.name,
994
- interpreterPath
995
+ launch: gateLaunch,
996
+ serverName: server.name
995
997
  };
996
998
  }
997
- function laneMcpPosture({ server, mcpConfigPath, gatePath, interpreterPath, laneArgs }) {
999
+ function laneMcpPosture({ server, mcpConfigPath, gatePath, gateLaunch, laneArgs }) {
998
1000
  const hookTool = gatedPosthogTool({
999
1001
  server,
1000
1002
  gatePath,
1001
- interpreterPath
1003
+ gateLaunch
1002
1004
  });
1003
1005
  if (!hookTool) return null;
1004
1006
  return {
@@ -1009,11 +1011,11 @@ function laneMcpPosture({ server, mcpConfigPath, gatePath, interpreterPath, lane
1009
1011
  laneHome: null
1010
1012
  };
1011
1013
  }
1012
- function codexLaneMcpPosture({ server, otherServerNames, gatePath, interpreterPath }) {
1014
+ function codexLaneMcpPosture({ server, otherServerNames, gatePath, gateLaunch }) {
1013
1015
  const hookTool = gatedPosthogTool({
1014
1016
  server,
1015
1017
  gatePath,
1016
- interpreterPath
1018
+ gateLaunch
1017
1019
  });
1018
1020
  if (!hookTool || !otherServerNames.every((name) => CODEX_MCP_SERVER_NAME_RE.test(name))) return null;
1019
1021
  const disabledServerArgs = otherServerNames.flatMap((name) => ["-c", `mcp_servers.${name}.enabled=false`]);
@@ -1042,15 +1044,15 @@ function kimiGateHookTable(gateHook) {
1042
1044
  function keepsKimiToolName(serverName) {
1043
1045
  return !serverName.includes("__") && `mcp__${serverName}__exec`.length <= KIMI_QUALIFIED_TOOL_NAME_MAX_LENGTH;
1044
1046
  }
1045
- function kimiLaneMcpPosture({ server, gatePath, interpreterPath }) {
1047
+ function kimiLaneMcpPosture({ server, gatePath, gateLaunch }) {
1046
1048
  if (!keepsKimiToolName(server.name)) return null;
1047
1049
  const hookTool = gatedPosthogTool({
1048
1050
  server,
1049
1051
  gatePath,
1050
- interpreterPath
1052
+ gateLaunch
1051
1053
  });
1052
1054
  if (!hookTool) return null;
1053
- const gateHook = HOOK_TOOLS.posthogReadGate.claudeEntry(hookTool, "");
1055
+ const gateHook = HOOK_TOOLS.posthogReadGate.claudeEntry(hookTool);
1054
1056
  const gateHookTable = kimiGateHookTable({
1055
1057
  matcher: gateHook.matcher,
1056
1058
  command: gateHook.hooks[0]?.command ?? ""
@@ -2137,27 +2139,6 @@ function summarizeStopOutcomes(entries, { timedOut, settled }) {
2137
2139
  failed
2138
2140
  };
2139
2141
  }
2140
- // server/stable-node-path.ts
2141
- function realpathOrNull(candidate) {
2142
- try {
2143
- return fs.realpathSync(candidate);
2144
- } catch {
2145
- return null;
2146
- }
2147
- }
2148
- function findStableNodePath() {
2149
- const runningNodeRealpath = realpathOrNull(process.execPath);
2150
- if (runningNodeRealpath === null) return process.execPath;
2151
- return resolveArgvCommandMatches("node", {
2152
- platform: process.platform,
2153
- execFile: execFileSync
2154
- }).find((candidate) => realpathOrNull(candidate) === runningNodeRealpath) ?? process.execPath;
2155
- }
2156
- var stableNodePath = findStableNodePath();
2157
- function refuseRunningNodeLaunches() {
2158
- if (stableNodePath === process.execPath) return;
2159
- refuseLaunchesOf(process.execPath);
2160
- }
2161
2142
  // server/server-lifecycle.ts
2162
2143
  function awaitReaps(pendingReaps, options = {}) {
2163
2144
  return awaitBounded(pendingReaps, options).then(() => {});
@@ -2268,7 +2249,8 @@ function createLifecycle({ shutdown, httpServer, extraServers = [], onRestart =
2268
2249
  exit(0);
2269
2250
  }
2270
2251
  async function spawnReplacement() {
2271
- const replacement = spawn(stableNodePath, getArgv().slice(1), {
2252
+ const [launcher, ...relaunchArguments] = selfRelaunch(getArgv());
2253
+ const replacement = spawn(launcher, relaunchArguments, {
2272
2254
  cwd: cwd(),
2273
2255
  stdio: "ignore",
2274
2256
  detached: true,
@@ -2279,7 +2261,7 @@ function createLifecycle({ shutdown, httpServer, extraServers = [], onRestart =
2279
2261
  replacement.once("error", resolve);
2280
2262
  });
2281
2263
  if (!spawnError) return replacement;
2282
- log(`[lifecycle] could not start the replacement server with ${stableNodePath}: ${stopFailureText(spawnError)}`);
2264
+ log(`[lifecycle] could not start the replacement server with ${launcher}: ${stopFailureText(spawnError)}`);
2283
2265
  exit(1);
2284
2266
  return null;
2285
2267
  }
@@ -8656,193 +8638,6 @@ function createAgentApiWiring({ config, agentSessions, listAllSessions, listBoar
8656
8638
  markChildWorktreeDiscard
8657
8639
  };
8658
8640
  }
8659
- // server/whiteboard/layout-client.ts
8660
- var WORKER_HEAP_SHARE = .5;
8661
- var BYTES_PER_MB = 2 ** 20;
8662
- function createLayoutClient({ cachePath, onSavedLayoutWritten }) {
8663
- const pendingByRequestId = /* @__PURE__ */ new Map();
8664
- const syncByBoardId = /* @__PURE__ */ new Map();
8665
- let nextRequestId = 1;
8666
- let nextSyncId = 1;
8667
- let worker = null;
8668
- function failAll(failedWorker, error) {
8669
- if (worker !== failedWorker) return;
8670
- worker = null;
8671
- syncByBoardId.clear();
8672
- for (const pending of pendingByRequestId.values()) pending.reject(error);
8673
- pendingByRequestId.clear();
8674
- }
8675
- function startWorker() {
8676
- const maxOldGenerationSizeMb = Math.floor(os.totalmem() * WORKER_HEAP_SHARE / BYTES_PER_MB);
8677
- const started = new Worker(layoutWorkerPath, {
8678
- workerData: cachePath,
8679
- resourceLimits: { maxOldGenerationSizeMb }
8680
- });
8681
- started.on("error", (error) => failAll(started, error instanceof Error ? error : new Error(String(error))));
8682
- started.on("exit", (exitCode) => failAll(started, /* @__PURE__ */ new Error(`the whiteboard layout stopped with exit code ${exitCode}`)));
8683
- started.on("message", (message) => {
8684
- const written = SavedLayoutWritten.safeParse(message);
8685
- if (written.success) {
8686
- onSavedLayoutWritten(written.data.savedLayoutWritten);
8687
- return;
8688
- }
8689
- const reply = LayoutReply.safeParse(message);
8690
- if (!reply.success) return;
8691
- const pending = pendingByRequestId.get(reply.data.requestId);
8692
- if (!pending) return;
8693
- pendingByRequestId.delete(reply.data.requestId);
8694
- if (pendingByRequestId.size === 0) started.unref();
8695
- if (reply.data.ok) {
8696
- pending.resolve(reply.data);
8697
- return;
8698
- }
8699
- pending.reject(new Error(reply.data.error));
8700
- });
8701
- return started;
8702
- }
8703
- function post(body) {
8704
- const running = worker ?? startWorker();
8705
- worker = running;
8706
- const requestId = nextRequestId;
8707
- nextRequestId += 1;
8708
- return new Promise((resolve, reject) => {
8709
- pendingByRequestId.set(requestId, {
8710
- resolve,
8711
- reject
8712
- });
8713
- running.ref();
8714
- running.postMessage({
8715
- ...body,
8716
- requestId
8717
- });
8718
- });
8719
- }
8720
- function forgetSyncOnFailure(boardId, sync, answer) {
8721
- answer.catch(() => {
8722
- if (isCurrentSync(boardId, sync)) syncByBoardId.delete(boardId);
8723
- });
8724
- }
8725
- function isCurrentSync(boardId, sync) {
8726
- return syncByBoardId.get(boardId)?.syncId === sync.syncId;
8727
- }
8728
- async function elementsTheWorkerLacks(board, after, sync) {
8729
- await after;
8730
- if (!isCurrentSync(board.id, sync)) return [];
8731
- const { elements: _elements, ...head } = board;
8732
- const started = post({
8733
- kind: "sync-start",
8734
- syncId: sync.syncId,
8735
- head,
8736
- elementCount: board.elements.size
8737
- });
8738
- forgetSyncOnFailure(board.id, sync, started);
8739
- if (!(await started.catch(() => null))?.isCacheMiss || !isCurrentSync(board.id, sync)) return [];
8740
- return [...board.elements.values()];
8741
- }
8742
- function postBoard(board, after, sync) {
8743
- const started = elementsTheWorkerLacks(board, after, sync);
8744
- return {
8745
- held: started.then(() => void 0),
8746
- posted: started.then((elements) => postPages(board, elements, sync))
8747
- };
8748
- }
8749
- async function postPages(board, elements, sync) {
8750
- const { syncId } = sync;
8751
- const syncWorker = worker;
8752
- for (let start = 0; start < elements.length; start += ELEMENT_PAGE_SIZE) {
8753
- await setImmediate$1();
8754
- if (!isCurrentSync(board.id, sync) || worker !== syncWorker) return;
8755
- forgetSyncOnFailure(board.id, sync, post({
8756
- kind: "sync-elements",
8757
- syncId,
8758
- boardId: board.id,
8759
- elements: elements.slice(start, start + ELEMENT_PAGE_SIZE)
8760
- }));
8761
- }
8762
- }
8763
- function syncFor(board) {
8764
- const held = syncByBoardId.get(board.id);
8765
- if (held?.version === board.version) return held;
8766
- const sync = {
8767
- syncId: nextSyncId,
8768
- version: board.version,
8769
- held: Promise.resolve(),
8770
- posted: Promise.resolve()
8771
- };
8772
- nextSyncId += 1;
8773
- syncByBoardId.set(board.id, sync);
8774
- const postedBoard = postBoard(board, held?.posted ?? Promise.resolve(), sync);
8775
- sync.held = postedBoard.held;
8776
- sync.posted = postedBoard.posted;
8777
- return sync;
8778
- }
8779
- async function ask(board, body) {
8780
- const sync = syncFor(board);
8781
- await sync.posted;
8782
- if (!isCurrentSync(board.id, sync)) throw new Error(`the whiteboard layout lost board ${board.id} while this request waited; try again`);
8783
- return post(body);
8784
- }
8785
- function hold(board) {
8786
- return syncFor(board).held;
8787
- }
8788
- function refresh(board, viewers) {
8789
- return ask(board, {
8790
- kind: "refresh",
8791
- boardId: board.id,
8792
- viewers: [...viewers]
8793
- });
8794
- }
8795
- function advance(board, changes, viewers) {
8796
- const held = syncByBoardId.get(board.id);
8797
- if (held?.version !== board.version - 1) return refresh(board, viewers);
8798
- const { elements: _elements, ...head } = board;
8799
- const sync = {
8800
- syncId: held.syncId,
8801
- version: board.version,
8802
- held: held.held,
8803
- posted: held.posted
8804
- };
8805
- syncByBoardId.set(board.id, sync);
8806
- const answer = held.posted.then(() => {
8807
- if (!isCurrentSync(board.id, sync)) throw new Error(`the whiteboard layout lost board ${board.id} while this put waited`);
8808
- return post({
8809
- kind: "advance",
8810
- head,
8811
- changes: [...changes],
8812
- viewers: [...viewers]
8813
- });
8814
- });
8815
- forgetSyncOnFailure(board.id, sync, answer);
8816
- return answer;
8817
- }
8818
- function forget(boardId) {
8819
- const held = syncByBoardId.get(boardId);
8820
- syncByBoardId.delete(boardId);
8821
- if (!worker) return;
8822
- (held?.posted ?? Promise.resolve()).then(() => post({
8823
- kind: "forget",
8824
- boardId
8825
- })).catch(() => {});
8826
- }
8827
- function cachedTiles(boardId, stamp, keys, withChrome) {
8828
- return post({
8829
- kind: "cached-tiles",
8830
- boardId,
8831
- version: stamp.version,
8832
- updatedAt: stamp.updatedAt,
8833
- keys: [...keys],
8834
- withChrome
8835
- });
8836
- }
8837
- return {
8838
- hold,
8839
- advance,
8840
- refresh,
8841
- ask,
8842
- cachedTiles,
8843
- forget
8844
- };
8845
- }
8846
8641
  // server/whiteboard/board-tile-service.ts
8847
8642
  function headOf(board) {
8848
8643
  const { elements, ...head } = board;
@@ -9551,164 +9346,6 @@ async function readChangeFacts(buildChangeMap) {
9551
9346
  };
9552
9347
  }
9553
9348
  }
9554
- // server/whiteboard/board-store-client.ts
9555
- function createBoardStore(boardsRoot) {
9556
- const databasePath = path.join(boardsRoot, BOARD_STORE_FILENAME);
9557
- const pendingByRequestId = /* @__PURE__ */ new Map();
9558
- let nextRequestId = 1;
9559
- let worker = null;
9560
- function failAll(failedWorker, error) {
9561
- if (worker !== failedWorker) return;
9562
- worker = null;
9563
- for (const pending of pendingByRequestId.values()) pending.reject(error);
9564
- pendingByRequestId.clear();
9565
- }
9566
- function startWorker() {
9567
- const started = new Worker(boardStoreWorkerPath, { workerData: databasePath });
9568
- started.on("error", (error) => failAll(started, error instanceof Error ? error : new Error(String(error))));
9569
- started.on("exit", (exitCode) => failAll(started, /* @__PURE__ */ new Error(`the board store stopped with exit code ${exitCode}`)));
9570
- started.on("message", (message) => {
9571
- const reply = StoreReply.safeParse(message);
9572
- if (!reply.success) return;
9573
- const pending = pendingByRequestId.get(reply.data.requestId);
9574
- if (!pending) return;
9575
- pendingByRequestId.delete(reply.data.requestId);
9576
- if (pendingByRequestId.size === 0) started.unref();
9577
- if (reply.data.ok) {
9578
- pending.resolve(reply.data);
9579
- return;
9580
- }
9581
- pending.reject(new Error(reply.data.error));
9582
- });
9583
- return started;
9584
- }
9585
- function request(body) {
9586
- const running = worker ?? startWorker();
9587
- worker = running;
9588
- const requestId = nextRequestId;
9589
- nextRequestId += 1;
9590
- return new Promise((resolve, reject) => {
9591
- pendingByRequestId.set(requestId, {
9592
- resolve,
9593
- reject
9594
- });
9595
- running.ref();
9596
- running.postMessage({
9597
- ...body,
9598
- requestId
9599
- });
9600
- });
9601
- }
9602
- async function loadHeads() {
9603
- const answer = await request({ kind: "load-heads" });
9604
- const records = [];
9605
- const unreadableBoardIds = [];
9606
- for (const rows of answer.heads ?? []) {
9607
- const record = recordOfRows(rows, elementTableOf());
9608
- if (record) records.push(record);
9609
- if (!record) unreadableBoardIds.push(rows.boardId);
9610
- }
9611
- return {
9612
- records,
9613
- unreadableBoardIds
9614
- };
9615
- }
9616
- async function isEveryElementIndexed(elements) {
9617
- try {
9618
- await indexBoardInSlices(elements, ELEMENT_PAGE_SIZE, setImmediate$1);
9619
- return true;
9620
- } catch {
9621
- return false;
9622
- }
9623
- }
9624
- async function loadElements(head, markStep) {
9625
- const storedRows = [];
9626
- const startedAt = performance$1.now();
9627
- let pageCount = 0;
9628
- let afterSlot = 0;
9629
- let isLastPage = false;
9630
- while (!isLastPage) {
9631
- const page = await request({
9632
- kind: "load-board",
9633
- boardId: head.board.id,
9634
- afterSlot,
9635
- limit: ELEMENT_PAGE_SIZE
9636
- });
9637
- if (page.isDamaged) return null;
9638
- const elementIds = page.elementIds ?? [];
9639
- const elementKinds = page.elementKinds ?? [];
9640
- const elementBodies = page.elementBodies ?? [];
9641
- for (const [index, id] of elementIds.entries()) {
9642
- const kind = elementKinds[index];
9643
- const body = elementBodies[index];
9644
- if (kind === void 0 || body === void 0) return null;
9645
- storedRows.push({
9646
- id,
9647
- kind,
9648
- body
9649
- });
9650
- }
9651
- pageCount += 1;
9652
- isLastPage = elementIds.length < 5e3 || page.lastSlot === void 0;
9653
- afterSlot = page.lastSlot ?? afterSlot;
9654
- }
9655
- const elements = elementTableOfStoredRows(storedRows);
9656
- markStep?.("store pages read", {
9657
- pages: pageCount,
9658
- readMs: Math.round(performance$1.now() - startedAt)
9659
- });
9660
- if (elements.size > WHITEBOARD_LIMITS.elements) return null;
9661
- if (!await isEveryElementIndexed(elements)) return null;
9662
- return recordOfRows(headRowsOf(head), elements);
9663
- }
9664
- return {
9665
- loadHeads,
9666
- loadElements,
9667
- assetIds: async () => new Set((await request({ kind: "asset-ids" })).assetIds ?? []),
9668
- boardsLinkingTo: async (boardId) => (await request({
9669
- kind: "boards-linking-to",
9670
- boardId
9671
- })).boardIds ?? [],
9672
- boardIds: async () => new Set((await request({ kind: "board-ids" })).boardIds ?? []),
9673
- save: async (before, after, staged = null) => {
9674
- await request({
9675
- kind: "write",
9676
- deltas: [boardDeltaOf(before, after, staged)]
9677
- });
9678
- },
9679
- saveMany: async (records) => {
9680
- await request({
9681
- kind: "write",
9682
- deltas: records.map((record) => boardDeltaOf(null, record))
9683
- });
9684
- },
9685
- remove: async (boardId) => {
9686
- await request({
9687
- kind: "delete",
9688
- boardId
9689
- });
9690
- },
9691
- setRects: async (boardId, rectsByElementId) => {
9692
- await request({
9693
- kind: "set-rects",
9694
- boardId,
9695
- rectsByElementId
9696
- });
9697
- },
9698
- queryRegion: async (boardId, region, limit) => (await request({
9699
- kind: "query-region",
9700
- boardId,
9701
- region,
9702
- limit
9703
- })).elementIds ?? [],
9704
- searchText: async (boardId, query, limit) => (await request({
9705
- kind: "search-text",
9706
- boardId,
9707
- query,
9708
- limit
9709
- })).elementIds ?? []
9710
- };
9711
- }
9712
9349
  // server/whiteboard/whiteboard-wiring.ts
9713
9350
  var WHITEBOARDS_FOLDER_NAME = "whiteboards";
9714
9351
  var BOARD_FILE_EXTENSION = ".json";
@@ -21558,7 +21195,8 @@ function resolveHookTools(config, { warn = console.warn } = {}) {
21558
21195
  writeSaneYoloPolicy(saneYoloHomeDir(), config.saneYoloUnreadablePaths ?? []);
21559
21196
  hookTools.push({
21560
21197
  id: "saneYolo",
21561
- binPath
21198
+ binPath,
21199
+ launch: scriptLaunch(binPath, "cc-safety-net")
21562
21200
  });
21563
21201
  } catch (error) {
21564
21202
  warnOnce("saneYolo", `[sane-yolo] Policy could not be written: ${String(error)}. Sessions will spawn without Sane YOLO hooks.`, warn);
@@ -21685,10 +21323,10 @@ function createSessionHookLifecycle(options) {
21685
21323
  return NO_HOOK_INJECTION;
21686
21324
  }
21687
21325
  }
21688
- function argvCarriesSaneYoloHook(args, relayPath) {
21326
+ function argvCarriesSaneYoloHook(args) {
21689
21327
  const tool = saneYoloTool();
21690
21328
  if (!tool) return false;
21691
- const saneYoloGroup = HOOK_TOOLS.saneYolo.codexGroup(tool, relayPath);
21329
+ const saneYoloGroup = HOOK_TOOLS.saneYolo.codexGroup(tool);
21692
21330
  if (!saneYoloGroup) return false;
21693
21331
  return args.some((arg) => arg.includes(saneYoloGroup));
21694
21332
  }
@@ -21726,7 +21364,7 @@ function createSessionHookLifecycle(options) {
21726
21364
  return NO_HOOK_INJECTION;
21727
21365
  }
21728
21366
  const doesHomeRunHooks = hookedHome !== null && (hookedHome.isTrusted || isTrustBypassed);
21729
- const doesArgvRunSaneYolo = isTrustBypassed && argvCarriesSaneYoloHook(args, injection.relayPath);
21367
+ const doesArgvRunSaneYolo = isTrustBypassed && argvCarriesSaneYoloHook(args);
21730
21368
  const relayHooks = registerRelayHooks(port, args, saneYoloTool() !== void 0 && (doesHomeRunHooks || doesArgvRunSaneYolo));
21731
21369
  if (relayHooks === NO_HOOK_INJECTION) {
21732
21370
  releaseGeneratedHome();
@@ -27933,7 +27571,7 @@ async function listOperatorCodexServers() {
27933
27571
  return JSON.parse(stdout);
27934
27572
  }
27935
27573
  async function gateSelfTestFailure(gateTool) {
27936
- const hookCommand = HOOK_TOOLS.posthogReadGate.claudeEntry(gateTool, "").hooks[0]?.command ?? "";
27574
+ const hookCommand = HOOK_TOOLS.posthogReadGate.claudeEntry(gateTool).hooks[0]?.command ?? "";
27937
27575
  try {
27938
27576
  await execFileAsync(HOOK_SHELL, ["-c", hookCommand], {
27939
27577
  input: knownWriteHookInput(gateTool.serverName ?? ""),
@@ -27963,7 +27601,7 @@ async function prepareCodexLaneMcp(listCodexServers, gatePath, warn) {
27963
27601
  server,
27964
27602
  otherServerNames: Object.keys(servers).filter((name) => name !== server.name),
27965
27603
  gatePath,
27966
- interpreterPath: process.execPath
27604
+ gateLaunch: scriptLaunch(gatePath, "posthog-read-gate", stableLauncherPath())
27967
27605
  });
27968
27606
  if (!posture || !await gateRefusesWrites(posture.hookTool, warn)) return null;
27969
27607
  return {
@@ -27978,7 +27616,7 @@ async function prepareKimiLaneMcp(kimiHome, gatePath, warn) {
27978
27616
  const posture = kimiLaneMcpPosture({
27979
27617
  server,
27980
27618
  gatePath,
27981
- interpreterPath: process.execPath
27619
+ gateLaunch: scriptLaunch(gatePath, "posthog-read-gate", stableLauncherPath())
27982
27620
  });
27983
27621
  if (!posture?.laneHome || !await gateRefusesWrites(posture.hookTool, warn)) return null;
27984
27622
  const homeParent = await makeHostScratchDirectory(LANE_MCP_DIR_PREFIX);
@@ -28017,7 +27655,7 @@ async function prepareLaneMcp({ laneArgs, agent }, { readClaudeConfig = readOper
28017
27655
  server,
28018
27656
  mcpConfigPath,
28019
27657
  gatePath,
28020
- interpreterPath: process.execPath,
27658
+ gateLaunch: scriptLaunch(gatePath, "posthog-read-gate", stableLauncherPath()),
28021
27659
  laneArgs
28022
27660
  });
28023
27661
  if (!posture || !await gateRefusesWrites(posture.hookTool, warn)) {
@@ -45685,13 +45323,10 @@ function readTextOrNull$3(filePath) {
45685
45323
  return null;
45686
45324
  }
45687
45325
  }
45688
- function installCommitSigningShim({ binDir, nodePath, cliPath, platform = process.platform, log = console }) {
45326
+ function installCommitSigningShim({ binDir, cliLaunch, platform = process.platform, log = console }) {
45689
45327
  if (platform === "win32") return null;
45690
45328
  const shimPath = path.join(binDir, COMMIT_SIGNING_SHIM_NAME);
45691
- const shimText = commitSigningShimText({
45692
- nodePath,
45693
- cliPath
45694
- });
45329
+ const shimText = commitSigningShimText(cliLaunch);
45695
45330
  try {
45696
45331
  if (readTextOrNull$3(shimPath) !== shimText) writeTextAtomicSync(shimPath, shimText, {
45697
45332
  mode: 493,
@@ -53090,7 +52725,8 @@ function createWatcherSupervisor({ linkSecret, serverUrl, watcherHome, onListeni
53090
52725
  }
53091
52726
  function spawnWatcherChild() {
53092
52727
  try {
53093
- return spawn(stableNodePath, [cliPath, "watch"], {
52728
+ const [launcher, ...launchArguments] = selfLaunch("cli");
52729
+ return spawn(launcher, [...launchArguments, "watch"], {
53094
52730
  stdio: [
53095
52731
  "ignore",
53096
52732
  "inherit",
@@ -58101,7 +57737,8 @@ function createSettingsHandlers(_context, deps) {
58101
57737
  const saneYoloPath = config.saneYolo !== false ? resolvePackageBin("cc-safety-net", "cc-safety-net") : null;
58102
57738
  if (saneYoloPath) hookTools.push({
58103
57739
  id: "saneYolo",
58104
- binPath: saneYoloPath
57740
+ binPath: saneYoloPath,
57741
+ launch: scriptLaunch(saneYoloPath, "cc-safety-net")
58105
57742
  });
58106
57743
  const flags = {
58107
57744
  detectScheduledWakeups: config.detectScheduledWakeups !== false,
@@ -58910,6 +58547,11 @@ var SUPPORTED_UPDATE_REMOTE = "origin";
58910
58547
  var LOWEST_SCHEDULING_PRIORITY = "19";
58911
58548
  var NPM_PACKAGE_FOLDER_NAME = "glimmervoid";
58912
58549
  var NPM_GLOBAL_UPDATE_FOLDER_NAME = ".glimmervoid-update";
58550
+ var DASHBOARD_UPDATABLE_FLAVORS = /* @__PURE__ */ new Set([
58551
+ "clone",
58552
+ "npm-global",
58553
+ "binary"
58554
+ ]);
58913
58555
  var TRANSITIONS_ALLOWED_BY_STATE = Object.freeze({
58914
58556
  idle: Object.freeze(["begin-run"]),
58915
58557
  running: Object.freeze([
@@ -58965,10 +58607,15 @@ function decidePreflight(facts) {
58965
58607
  reason: "unsupported-flavor",
58966
58608
  message: "Glimmervoid runs from the npx cache. Stop Glimmervoid and run the command shown."
58967
58609
  };
58968
- if (facts.flavor !== "clone" && facts.flavor !== "npm-global") return {
58610
+ if (facts.flavor === "homebrew") return {
58611
+ ok: false,
58612
+ reason: "unsupported-flavor",
58613
+ message: `Glimmervoid was installed with Homebrew. Run ${HOMEBREW_COMMAND}, then restart Glimmervoid.`
58614
+ };
58615
+ if (!DASHBOARD_UPDATABLE_FLAVORS.has(facts.flavor)) return {
58969
58616
  ok: false,
58970
58617
  reason: "unsupported-flavor",
58971
- message: "Use the install command because dashboard updates need a clone or an npm global install."
58618
+ message: "Use the install command because dashboard updates need a clone, an npm global install or a standalone binary."
58972
58619
  };
58973
58620
  if (facts.platform === "win32") return {
58974
58621
  ok: false,
@@ -58986,8 +58633,22 @@ function decidePreflight(facts) {
58986
58633
  message: "No update is available."
58987
58634
  };
58988
58635
  if (facts.flavor === "npm-global") return decideNpmGlobalPreflight(facts);
58636
+ if (facts.flavor === "binary") return decideBinaryPreflight(facts);
58989
58637
  return decideClonePreflight(facts);
58990
58638
  }
58639
+ function decideBinaryPreflight(facts) {
58640
+ if (!facts.binaryUpdaterPath) return {
58641
+ ok: false,
58642
+ reason: "unsupported-flavor",
58643
+ message: `Use the install command because no ${BINARY_UPDATER_NAME} sits beside this binary.`
58644
+ };
58645
+ if (isExperimentalBuild(facts.targetVersion)) return {
58646
+ ok: false,
58647
+ reason: "unsupported-channel",
58648
+ message: "Standalone binaries ship only for releases. Switch the update channel to release to update this binary."
58649
+ };
58650
+ return decideRunPreflight(facts);
58651
+ }
58991
58652
  function decideRunPreflight(facts) {
58992
58653
  if (facts.journalState === "running") return {
58993
58654
  ok: false,
@@ -59392,8 +59053,17 @@ async function cloneIdentity(packageRoot, runCommand, signal) {
59392
59053
  isTreeClean: status.ok ? status.out === "" : null
59393
59054
  };
59394
59055
  }
59395
- function detectInstallFlavor(packageRoot) {
59056
+ function standaloneExecutableRealpath() {
59057
+ if (!isSea()) return null;
59058
+ try {
59059
+ return fs.realpathSync(process.execPath);
59060
+ } catch {
59061
+ return process.execPath;
59062
+ }
59063
+ }
59064
+ function detectInstallFlavor(packageRoot, standaloneExecutablePath = standaloneExecutableRealpath()) {
59396
59065
  return decideInstallFlavor({
59066
+ standaloneExecutablePath,
59397
59067
  packageRoot,
59398
59068
  lockfileSha: readLockfileSha(packageRoot),
59399
59069
  gitHeadSha: readPackageGitHead(packageRoot),
@@ -59598,7 +59268,9 @@ function createBackendUpdateCheck(dependencies) {
59598
59268
  targetSha: recorded.latestSha,
59599
59269
  journalState: journal?.state || "idle",
59600
59270
  restartRequested: dependencies.isRestartRequested?.() === true,
59601
- npmGlobalInstall: dependencies.getNpmGlobalInstall?.() ?? null
59271
+ npmGlobalInstall: dependencies.getNpmGlobalInstall?.() ?? null,
59272
+ binaryUpdaterPath: dependencies.getBinaryUpdaterPath?.() ?? null,
59273
+ targetVersion: recorded.latest
59602
59274
  });
59603
59275
  if (!decision.ok) return {
59604
59276
  reason: decision.reason,
@@ -60137,6 +59809,7 @@ function judgeCoherenceSupport(output) {
60137
59809
  };
60138
59810
  }
60139
59811
  // server/coherence/coherence-runtime.ts
59812
+ var NO_NODE_ON_PATH = "needs node on PATH";
60140
59813
  async function isRepositoryConfigured(worktree) {
60141
59814
  return stat(path.join(worktree, "coherence.config.json")).then((entry) => entry.isFile(), () => false);
60142
59815
  }
@@ -60150,8 +59823,10 @@ async function resolveCoherence({ worktree, host, isSettingOn, timeoutMs = 2e4,
60150
59823
  let cliScript = null;
60151
59824
  let version = null;
60152
59825
  let unavailable = null;
59826
+ let nodePath = null;
60153
59827
  async function runScript(script, args, timeout = timeoutMs) {
60154
- return (await execFileAsync(stableNodePath, [script, ...args], {
59828
+ if (!nodePath) throw new Error(NO_NODE_ON_PATH);
59829
+ return (await execFileAsync(nodePath, [script, ...args], {
60155
59830
  cwd: worktree,
60156
59831
  env,
60157
59832
  timeout,
@@ -60237,6 +59912,15 @@ async function resolveCoherence({ worktree, host, isSettingOn, timeoutMs = 2e4,
60237
59912
  };
60238
59913
  return;
60239
59914
  }
59915
+ nodePath = await findNodeLauncherPath();
59916
+ if (!nodePath) {
59917
+ cliScript = null;
59918
+ unavailable = {
59919
+ active: false,
59920
+ reason: NO_NODE_ON_PATH
59921
+ };
59922
+ return;
59923
+ }
60240
59924
  const judged = await judgeInstallation(script);
60241
59925
  cliScript = script;
60242
59926
  version = judged.version ?? version;
@@ -61706,8 +61390,7 @@ function createBackendSessionRuntime(dependencies) {
61706
61390
  } catch {}
61707
61391
  const commitSigningProgram = installCommitSigningShim({
61708
61392
  binDir: configSiblingPath(dependencies.configStore.configPath, "bin"),
61709
- nodePath: stableNodePath,
61710
- cliPath,
61393
+ cliLaunch: selfLaunch("cli"),
61711
61394
  log: dependencies.logger
61712
61395
  });
61713
61396
  const sshSigner = commitSigningProgram ? createSshSigner() : null;
@@ -62035,6 +61718,7 @@ var SUCCESSOR_LISTEN_TIMEOUT_MS = 3e4;
62035
61718
  var SUCCESSOR_POLL_INTERVAL_MS = 500;
62036
61719
  var COMMAND_MAX_BUFFER = 16777216;
62037
61720
  var RESTORE_MARKER_NAME = "restore.json";
61721
+ var RELEASE_VERSION_LINE = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?$/;
62038
61722
  function errorText(error) {
62039
61723
  const commandError = error;
62040
61724
  return String(commandError?.stderr || commandError?.stdout || commandError?.message || error || "command failed").trim();
@@ -62063,8 +61747,23 @@ function createUpdateApplyLane(dependencies) {
62063
61747
  const updatePath = path.join(dependencies.packageRoot, ".glimmervoid", "update");
62064
61748
  const stagingPath = path.join(updatePath, "next");
62065
61749
  const npmGlobalLayout = decideNpmGlobalLayout(dependencies.packageRoot);
62066
- const nodePath = dependencies.nodePath || stableNodePath;
61750
+ const nodePath = dependencies.nodePath || stableLauncherPathFor("node");
62067
61751
  const npmPath = path.join(path.dirname(nodePath), "npm");
61752
+ const standaloneExecutablePath = dependencies.standaloneExecutablePath === void 0 ? standaloneExecutableRealpath() : dependencies.standaloneExecutablePath;
61753
+ let knownBinaryUpdaterPath = standaloneExecutablePath ? executableUpdaterOrNull(standaloneExecutablePath) : null;
61754
+ function binaryUpdaterPathBeside(executablePath) {
61755
+ const updaterFileName = (dependencies.platform || process.platform) === "win32" ? `${BINARY_UPDATER_NAME}.exe` : BINARY_UPDATER_NAME;
61756
+ return path.join(path.dirname(executablePath), updaterFileName);
61757
+ }
61758
+ function executableUpdaterOrNull(executablePath) {
61759
+ const updaterPath = binaryUpdaterPathBeside(executablePath);
61760
+ try {
61761
+ fs.accessSync(updaterPath, fs.constants.X_OK);
61762
+ return updaterPath;
61763
+ } catch {
61764
+ return null;
61765
+ }
61766
+ }
62068
61767
  let isInstallWritable = null;
62069
61768
  let hasSwappedNpmGlobalPackage = false;
62070
61769
  let journal = idleJournal(dependencies.getUpdateChannel());
@@ -62246,6 +61945,7 @@ function createUpdateApplyLane(dependencies) {
62246
61945
  if (journal.state === "staged" || stagedDescriptor?.state === "staged") return refusal("already-staged", "Restart to apply the staged update.");
62247
61946
  if (restartRequested) return refusal("restart-requested", "Wait for the requested restart to finish.");
62248
61947
  if (status.flavor === "npm-global") return stageNpmGlobalUpdate(status, channel);
61948
+ if (standaloneExecutablePath) return stageBinaryUpdate(status, channel, standaloneExecutablePath);
62249
61949
  const tree = await dependencies.gitWorkspace.probeWorktreeDirty({
62250
61950
  projectPath: dependencies.packageRoot,
62251
61951
  cwd: dependencies.packageRoot
@@ -62413,6 +62113,84 @@ function createUpdateApplyLane(dependencies) {
62413
62113
  return failAndCleanNpmGlobal(layout, errorText(error));
62414
62114
  }
62415
62115
  }
62116
+ async function findBinaryUpdater(executablePath) {
62117
+ const updaterPath = binaryUpdaterPathBeside(executablePath);
62118
+ try {
62119
+ await fsPromises.access(updaterPath, fs.constants.X_OK);
62120
+ knownBinaryUpdaterPath = updaterPath;
62121
+ return updaterPath;
62122
+ } catch {
62123
+ knownBinaryUpdaterPath = null;
62124
+ return null;
62125
+ }
62126
+ }
62127
+ function getBinaryUpdaterPath() {
62128
+ return knownBinaryUpdaterPath;
62129
+ }
62130
+ async function stageBinaryUpdate(status, channel, executablePath) {
62131
+ const updaterPath = await findBinaryUpdater(executablePath);
62132
+ const decision = decidePreflight({
62133
+ flavor: status.flavor,
62134
+ platform: dependencies.platform || process.platform,
62135
+ statusChannel: status.channel,
62136
+ configuredChannel: channel,
62137
+ updateAvailable: status.updateAvailable,
62138
+ isTreeClean: false,
62139
+ branch: null,
62140
+ upstream: null,
62141
+ statusBranch: null,
62142
+ statusUpstream: null,
62143
+ headSha: null,
62144
+ targetSha: null,
62145
+ journalState: journal.state,
62146
+ restartRequested,
62147
+ binaryUpdaterPath: updaterPath,
62148
+ targetVersion: status.latest
62149
+ });
62150
+ if (!decision.ok) return refusal(decision.reason, decision.message);
62151
+ if (!updaterPath || !status.latest) return refusal("missing-target-version", "The target version is unknown. Check for updates again.");
62152
+ const targetVersion = status.latest;
62153
+ const executableDirectory = path.dirname(executablePath);
62154
+ try {
62155
+ await publish(beginRun(journal, {
62156
+ stepIds: ["install"],
62157
+ fromSha: status.currentSha,
62158
+ toSha: status.latestSha,
62159
+ toVersion: targetVersion,
62160
+ channel,
62161
+ now: clock()
62162
+ }));
62163
+ await publish(beginStep(journal, {
62164
+ stepId: "install",
62165
+ now: clock()
62166
+ }));
62167
+ await runInstallCommand(updaterPath, [], executableDirectory, INSTALL_TIMEOUT_MS);
62168
+ const installedVersion = (await runInstallCommand(executablePath, ["--version"], executableDirectory, VERIFY_TIMEOUT_MS)).split(/\r?\n/).map((line) => line.trim()).find((line) => RELEASE_VERSION_LINE.test(line)) ?? "";
62169
+ if (!installedVersion || compareReleaseVersions(installedVersion, targetVersion) < 0) throw new Error(`release-binaries-pending: ${BINARY_UPDATER_NAME} left ${installedVersion || "an unknown version"} in place because the ${targetVersion} binaries are not published yet; try again in a few minutes`);
62170
+ await publish(finishStep(journal, {
62171
+ stepId: "install",
62172
+ now: clock()
62173
+ }));
62174
+ await publish(markStaged(journal, { now: clock() }));
62175
+ stagedDescriptor = {
62176
+ state: "staged",
62177
+ kind: "binary"
62178
+ };
62179
+ dependencies.logger.log(`[update] ${BINARY_UPDATER_NAME} installed ${installedVersion} at ${executablePath}`);
62180
+ return {
62181
+ ok: true,
62182
+ reason: null,
62183
+ message: "Update installed. Restart to apply it."
62184
+ };
62185
+ } catch (error) {
62186
+ stagedDescriptor = null;
62187
+ await publish(failRun(journal, {
62188
+ reason: errorText(error),
62189
+ now: clock()
62190
+ }), false);
62191
+ return refusal(errorText(error), errorText(error));
62192
+ }
62193
+ }
62416
62194
  async function runInstallCommand(file, args, cwd, timeout) {
62417
62195
  const outcome = await command(file, args, cwd, timeout);
62418
62196
  journal = appendStepOutput(journal, "install", outcome.output);
@@ -62735,6 +62513,10 @@ function createUpdateApplyLane(dependencies) {
62735
62513
  async function handOffStagedUpdate() {
62736
62514
  await bootRun;
62737
62515
  const descriptor = stagedDescriptor;
62516
+ if (standaloneExecutablePath) {
62517
+ await handOffBinaryUpdate(descriptor);
62518
+ return;
62519
+ }
62738
62520
  if (npmGlobalLayout) {
62739
62521
  await handOffNpmGlobalUpdate(npmGlobalLayout, descriptor);
62740
62522
  return;
@@ -62755,6 +62537,11 @@ function createUpdateApplyLane(dependencies) {
62755
62537
  activeRun = run;
62756
62538
  await run;
62757
62539
  }
62540
+ async function handOffBinaryUpdate(descriptor) {
62541
+ if (descriptor?.kind !== "binary" || inFlight) return;
62542
+ stagedDescriptor = null;
62543
+ await publish(markSucceeded(journal, { now: clock() }), false);
62544
+ }
62758
62545
  async function handOffNpmGlobalUpdate(layout, descriptor) {
62759
62546
  if (descriptor?.kind !== "npm-global" || inFlight) {
62760
62547
  await fsPromises.rm(layout.stagePrefix, {
@@ -62829,6 +62616,7 @@ function createUpdateApplyLane(dependencies) {
62829
62616
  reason: "interrupted",
62830
62617
  now: clock()
62831
62618
  }), false);
62619
+ if (standaloneExecutablePath) return;
62832
62620
  if (npmGlobalLayout) {
62833
62621
  await fsPromises.rm(npmGlobalLayout.stagePrefix, {
62834
62622
  recursive: true,
@@ -62901,6 +62689,7 @@ function createUpdateApplyLane(dependencies) {
62901
62689
  applyUpdate,
62902
62690
  getJournal,
62903
62691
  getNpmGlobalInstall,
62692
+ getBinaryUpdaterPath,
62904
62693
  handOffStagedUpdate,
62905
62694
  superviseSuccessor,
62906
62695
  isRestartRequested,
@@ -65438,7 +65227,7 @@ function createHostLinksWiring({ hosts, hubBuild, broadcast, relayPhoneAlert, sp
65438
65227
  var AGENT_INGRESS_HOST = "127.0.0.1";
65439
65228
  function createBackend(httpServer, options = {}) {
65440
65229
  if (isOperatorHomeUnderTest(os.homedir(), process.env)) throw new Error("createBackend refused to boot on the operator's Glimmervoid home under node:test; run tests through npm test or npm run test:files, which isolate GLIMMERVOID_HOME");
65441
- refuseRunningNodeLaunches();
65230
+ refuseUnstableSelfLaunches();
65442
65231
  const { staticDir = "auto", settingsDefaults } = options;
65443
65232
  const packageJson = JSON.parse(fs.readFileSync(path.join(packageRoot, "package.json"), "utf8"));
65444
65233
  const configStore = createConfigStore({
@@ -65737,7 +65526,7 @@ function createBackend(httpServer, options = {}) {
65737
65526
  recordLane,
65738
65527
  setupRootDir: path.join(glimmervoidHomeDir(), "remote-setup"),
65739
65528
  skillSourceDir: path.join(assetRoot, "session", "remote-setup"),
65740
- hubCliCommand: `${shellQuote(process.execPath)} ${shellQuote(cliPath)} --config ${shellQuote(configStore.configPath)}`
65529
+ hubCliCommand: `${selfLaunch("cli").map(shellQuote).join(" ")} --config ${shellQuote(configStore.configPath)}`
65741
65530
  });
65742
65531
  const wireSessionEvents = createSessionEventWiring({
65743
65532
  configStore,
@@ -65863,6 +65652,7 @@ function createBackend(httpServer, options = {}) {
65863
65652
  getUpdateJournal: () => updateApply.getJournal(),
65864
65653
  isRestartRequested: () => updateApply.isRestartRequested(),
65865
65654
  getNpmGlobalInstall: () => updateApply.getNpmGlobalInstall(),
65655
+ getBinaryUpdaterPath: () => updateApply.getBinaryUpdaterPath(),
65866
65656
  getControlClientCount: viewerControlClientCount,
65867
65657
  broadcastControl,
65868
65658
  logger: console,