@organizaone/o1-code 0.21.8 → 0.21.10

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 (276) hide show
  1. package/chunks/{MaxSizedBox-5JDIZGRI.js → MaxSizedBox-FJ6C2KZK.js} +26 -27
  2. package/chunks/{StandaloneSessionPicker-337W36MR.js → StandaloneSessionPicker-CWXWHXGS.js} +41 -42
  3. package/chunks/{acp-subagent-executor-AZWIITY3.js → acp-subagent-executor-FNXCNLE4.js} +24 -24
  4. package/chunks/{acpAgent-PEHT7573.js → acpAgent-SV63EP4F.js} +109 -110
  5. package/chunks/{agent-WEPKBCCS.js → agent-7YR4AKUE.js} +13 -13
  6. package/chunks/{agent-headless-LXH6LAJ4.js → agent-headless-PA5EHZLH.js} +13 -13
  7. package/chunks/{all-providers-R7MFQTE7.js → all-providers-IRY4MO56.js} +3 -3
  8. package/chunks/{anthropicContentGenerator-WZ3YSYDF.js → anthropicContentGenerator-BK3JPNMQ.js} +7 -7
  9. package/chunks/{bridge-TVSETA7K.js → bridge-X4L7QZHF.js} +25 -25
  10. package/chunks/{build-MAJLYX7D.js → build-U7CYF476.js} +3 -1
  11. package/chunks/{chunk-JMDM6FHI.js → chunk-2AS35LME.js} +4 -4
  12. package/chunks/{chunk-HMOUS4QB.js → chunk-2J5KVLHY.js} +2 -2
  13. package/chunks/{chunk-LHDFH54F.js → chunk-2VBHBRZZ.js} +5 -5
  14. package/chunks/{chunk-HIGJHRG5.js → chunk-37HZ4W24.js} +1 -1
  15. package/chunks/{chunk-37VDIIHU.js → chunk-3DOSV7VB.js} +2 -2
  16. package/chunks/{chunk-R7SPXY4A.js → chunk-3MYKJC6P.js} +1 -1
  17. package/chunks/{chunk-IE4RH3YW.js → chunk-4ABCTDVK.js} +1 -1
  18. package/chunks/{chunk-YC6PZUFV.js → chunk-5GSWMIDF.js} +2 -2
  19. package/chunks/{chunk-PWCTX66B.js → chunk-5RHVEZCT.js} +2 -2
  20. package/chunks/{chunk-6VFNWYWN.js → chunk-5YWGYTY5.js} +4 -4
  21. package/chunks/{chunk-D2RK5447.js → chunk-6G2QCKHE.js} +40 -42
  22. package/chunks/{chunk-GXYKKO5F.js → chunk-77C6SJX6.js} +1 -1
  23. package/chunks/{chunk-TEEKFZLV.js → chunk-7EZKXBZF.js} +24897 -31464
  24. package/chunks/{chunk-P7RO4QSF.js → chunk-7HN3RHKV.js} +998 -87
  25. package/chunks/{chunk-KXCRSEZN.js → chunk-A4PPT6FK.js} +2 -2
  26. package/chunks/{chunk-7BQPZQP7.js → chunk-A5M4PU7C.js} +1 -1
  27. package/chunks/{chunk-BTPTME2B.js → chunk-A6QLPS5V.js} +3 -3
  28. package/chunks/{chunk-SMO5AGRH.js → chunk-AAJUSHR6.js} +1 -1
  29. package/chunks/{chunk-HIMOZPLA.js → chunk-AAW2TG66.js} +1 -0
  30. package/chunks/{chunk-MREQOAW7.js → chunk-AIPLJV3Z.js} +8 -8
  31. package/chunks/{chunk-7DQWDZUQ.js → chunk-AZMVJ5C3.js} +1 -1
  32. package/chunks/{chunk-4Q3WNTP3.js → chunk-AZW3MOGG.js} +1 -1
  33. package/chunks/{chunk-W453GJ7M.js → chunk-BDB73PON.js} +254 -238
  34. package/chunks/{chunk-UMI3KYEG.js → chunk-CHKOOGOG.js} +8 -8
  35. package/chunks/{chunk-JVG7Y6QE.js → chunk-CRZLYMW5.js} +1 -1
  36. package/chunks/{chunk-S2B2454D.js → chunk-CZFWZRC5.js} +1 -1
  37. package/chunks/{chunk-2KHVBXZ3.js → chunk-D45V5VQP.js} +1 -1
  38. package/chunks/{chunk-WUFRJBFC.js → chunk-DPMMO2N7.js} +1 -1
  39. package/chunks/{chunk-TJQTTY4F.js → chunk-DQORDG4A.js} +2 -2
  40. package/chunks/{chunk-TBJKCOB6.js → chunk-DTJG43NT.js} +4 -4
  41. package/chunks/{chunk-R5HO4EJV.js → chunk-E2NTOSGU.js} +1 -1
  42. package/chunks/{chunk-ZA3QP7UG.js → chunk-EI3BQUUV.js} +3 -3
  43. package/chunks/{chunk-RVRJZT5M.js → chunk-EVIGOLAL.js} +1 -1
  44. package/chunks/{chunk-NVI4SRJU.js → chunk-F6E5OEF4.js} +1 -1
  45. package/chunks/{chunk-XRY6XLJD.js → chunk-FGRVF6H3.js} +1350 -168
  46. package/chunks/{chunk-JOUK4R23.js → chunk-FLQMNGAF.js} +3 -3
  47. package/chunks/{chunk-QFEZGB3Y.js → chunk-G3IKG3HV.js} +2 -2
  48. package/chunks/{chunk-JSY4J2FE.js → chunk-GC2ERDQL.js} +3 -3
  49. package/chunks/{chunk-TC2TJAOF.js → chunk-GM2WNDZ5.js} +1 -1
  50. package/chunks/{chunk-YSZVDMBR.js → chunk-GVCGYCCE.js} +2 -2
  51. package/chunks/{chunk-IG4SI7D6.js → chunk-HEELTUTL.js} +1 -1
  52. package/chunks/{chunk-NLTUEC5Q.js → chunk-IHOWB2BG.js} +6 -6
  53. package/chunks/{chunk-D2PPGNSH.js → chunk-ILSK2K5P.js} +1 -1
  54. package/chunks/{chunk-VCV7AYPL.js → chunk-JB5RH2RR.js} +2 -2
  55. package/chunks/{chunk-3ZJUMBOS.js → chunk-JD2XBV4H.js} +7 -7
  56. package/chunks/{chunk-642PIR4M.js → chunk-JS723QZ3.js} +4 -4
  57. package/chunks/{chunk-AHI6EFWS.js → chunk-KAKF4XJG.js} +4 -4
  58. package/chunks/{chunk-ZEJQB32M.js → chunk-KBL56IWK.js} +1 -1
  59. package/chunks/{chunk-5VXMTGPV.js → chunk-KEKBYXC3.js} +4 -4
  60. package/chunks/{chunk-KIKQVSGH.js → chunk-LPQZYMAP.js} +2 -2
  61. package/chunks/{chunk-VGMNG7VW.js → chunk-M7UZ3MU6.js} +2 -2
  62. package/chunks/{chunk-NRBB6WW6.js → chunk-MSWEGIQG.js} +1 -1
  63. package/chunks/{chunk-JN4REMRH.js → chunk-NCGQPRHQ.js} +12 -12
  64. package/chunks/{chunk-IS5IIFV3.js → chunk-NHTNE6KQ.js} +1 -1
  65. package/chunks/{chunk-TDZFKR2H.js → chunk-NLU5GWN2.js} +2 -2
  66. package/chunks/{chunk-HVQQIKDI.js → chunk-NUF3FLRS.js} +1 -1
  67. package/chunks/{chunk-PHD4B34J.js → chunk-NXEXWZLN.js} +6 -6
  68. package/chunks/{chunk-YK63USRK.js → chunk-OCLOTHK2.js} +1 -1
  69. package/chunks/{chunk-6VF7EU56.js → chunk-P4JFO6QK.js} +5 -2
  70. package/chunks/{chunk-HL32D3FC.js → chunk-P6NZWNQV.js} +4 -4
  71. package/chunks/{chunk-5WDVZJDQ.js → chunk-PAUZVMDC.js} +2 -2
  72. package/chunks/{chunk-2C5GYVPR.js → chunk-PC7DSMKL.js} +1 -1
  73. package/chunks/{chunk-AZ4ZCY3E.js → chunk-PKKMIKJY.js} +4 -4
  74. package/chunks/{chunk-7W6HMRGG.js → chunk-PN3OU2HT.js} +7 -7
  75. package/chunks/{chunk-O7OCJ6MQ.js → chunk-PTOAGZBC.js} +3 -3
  76. package/chunks/{chunk-RFIKBXKI.js → chunk-Q76KPZ6F.js} +7 -7
  77. package/chunks/{chunk-A32TOFXI.js → chunk-QAJJA76Y.js} +2 -2
  78. package/chunks/{chunk-MRTHM5GF.js → chunk-R5AMOGLJ.js} +13 -4
  79. package/chunks/{chunk-YMUJVUDI.js → chunk-RGQ47LIC.js} +11 -11
  80. package/chunks/{chunk-YZHGNS36.js → chunk-RWOFJXCI.js} +37 -37
  81. package/chunks/{chunk-QYBFVUU2.js → chunk-S4PWRZB6.js} +2 -2
  82. package/chunks/{chunk-KMWAEX43.js → chunk-S6F7ZE4T.js} +5898 -931
  83. package/chunks/{chunk-HDGYCLNB.js → chunk-S6HB6BVJ.js} +1 -1
  84. package/chunks/{chunk-5RYP7RZG.js → chunk-S7L7UWX7.js} +1 -1
  85. package/chunks/{chunk-JOBZWTVK.js → chunk-SLH747HE.js} +2 -2
  86. package/chunks/{chunk-GROV3BFX.js → chunk-SLXNWEFC.js} +5 -5
  87. package/chunks/{chunk-XL5ZRHQA.js → chunk-SMJRDORP.js} +1 -1
  88. package/chunks/{chunk-OGJ4MVXX.js → chunk-T224WOVX.js} +2 -2
  89. package/chunks/{chunk-SADH4MG3.js → chunk-UKFESCEI.js} +2 -2
  90. package/chunks/{chunk-RA3QWZZQ.js → chunk-UMI446BY.js} +1 -1
  91. package/chunks/{chunk-XT5JXHVL.js → chunk-UTWS2ZCR.js} +1 -1
  92. package/chunks/{chunk-Z7R3ZHC6.js → chunk-UU3BV6SB.js} +1 -1
  93. package/chunks/{chunk-N3TIE57S.js → chunk-VFN6U5I2.js} +2 -2
  94. package/chunks/{chunk-YFWMLF7Y.js → chunk-VHHVDB5F.js} +1 -1
  95. package/chunks/{chunk-5JBX43I3.js → chunk-VY2R32ZP.js} +5 -5
  96. package/chunks/{chunk-WRB3UNB5.js → chunk-WMH3SYFF.js} +3 -3
  97. package/chunks/{chunk-566GYHAE.js → chunk-WOEB2UQY.js} +3 -3
  98. package/chunks/{chunk-BH6ETFAI.js → chunk-XDUTL6ZZ.js} +4 -4
  99. package/chunks/{chunk-A6445NIL.js → chunk-XT3S375S.js} +5 -5
  100. package/chunks/{chunk-N7R6Z4QV.js → chunk-XV4KEHP2.js} +2 -2
  101. package/chunks/{chunk-KKENXQEQ.js → chunk-YA7ULYER.js} +12 -12
  102. package/chunks/{chunk-CAVFN5I5.js → chunk-YKVRRLWF.js} +3 -3
  103. package/chunks/{chunk-S733EYWX.js → chunk-Z7UCHNEI.js} +3 -3
  104. package/chunks/{chunk-WIYLWOCP.js → chunk-ZCX6KV2Q.js} +552 -553
  105. package/chunks/{codex-subagent-executor-FVOOXTD2.js → codex-subagent-executor-BAF5CFEM.js} +24 -24
  106. package/chunks/{contextCommand-DDMF36IO.js → contextCommand-IVSOHLW5.js} +23 -23
  107. package/chunks/{core-runtime-VDEXQQ3W.js → core-runtime-5UV3KSLE.js} +22 -22
  108. package/chunks/{create-sub-session-VCVMK3TY.js → create-sub-session-OAMGFOTT.js} +23 -23
  109. package/chunks/{daemon-git-worktree-guard-XKFWZEYY.js → daemon-git-worktree-guard-5CT5ACGZ.js} +22 -22
  110. package/chunks/{daemon-status-provider-AU5LGZYL.js → daemon-status-provider-4O5GUQXO.js} +30 -30
  111. package/chunks/{daemon-trust-policy-ETD5TBWN.js → daemon-trust-policy-ZTONW2EF.js} +27 -27
  112. package/chunks/{daemon-trust-policy-monitor-5FGLZXEL.js → daemon-trust-policy-monitor-AH3MSX6S.js} +27 -27
  113. package/chunks/{deferred-core-runtime-2UIGRE2M.js → deferred-core-runtime-EZELEJEB.js} +22 -22
  114. package/chunks/{edit-IMZBRFRB.js → edit-5E7R4FGC.js} +15 -15
  115. package/chunks/{enterPlanMode-LJCSRD4Y.js → enterPlanMode-2ZA3VKE5.js} +13 -13
  116. package/chunks/{environment-M5U2L6VP.js → environment-PZC2VS6I.js} +24 -24
  117. package/chunks/{errors-GA3VDNIT.js → errors-PCDU7EH5.js} +24 -24
  118. package/chunks/{execution-tool-57H5EQKA.js → execution-tool-VOKPN4R3.js} +15 -15
  119. package/chunks/{execution-worker-U7374LKH.js → execution-worker-IBFJY6CH.js} +18 -18
  120. package/chunks/{exitPlanMode-NSG5E7RE.js → exitPlanMode-3KEJ5X4V.js} +13 -13
  121. package/chunks/{fast-path-HJTILAVY.js → fast-path-SWIIYG2P.js} +2 -2
  122. package/chunks/{foreground-runner-VMNIA55V.js → foreground-runner-SQ4PZZRO.js} +77 -40
  123. package/chunks/{glob-E4PL2FJY.js → glob-OESTKXLC.js} +13 -13
  124. package/chunks/{goal-tools-UX6J7MMW.js → goal-tools-BOLGH57J.js} +13 -13
  125. package/chunks/{handleAutoUpdate-X3Q3Q3ZZ.js → handleAutoUpdate-Q4PZA3AF.js} +25 -25
  126. package/chunks/{i18n-LAT3RPLP.js → i18n-NREBC77M.js} +22 -22
  127. package/chunks/{image-gen-27Q5XGGZ.js → image-gen-KX5VPAGI.js} +3 -3
  128. package/chunks/{initializer-TSHTVKWG.js → initializer-AZDTSPLB.js} +28 -29
  129. package/chunks/{installationInfo-WWWJ2BSH.js → installationInfo-MIBZV3CK.js} +22 -22
  130. package/chunks/{list-FEYX463Q.js → list-G3F6YMX3.js} +29 -29
  131. package/chunks/{llm-DZ67ZBGE.js → llm-2ZTGYBSH.js} +58 -58
  132. package/chunks/{llm-content-generator-LJFLHUI4.js → llm-content-generator-J7URYLZ7.js} +5 -5
  133. package/chunks/{loadedSettingsAdapter-PE4EHJAG.js → loadedSettingsAdapter-T5K3RK6B.js} +27 -27
  134. package/chunks/{local-execution-environment-NVTEBXRI.js → local-execution-environment-VZZ6GAFG.js} +18 -18
  135. package/chunks/{loggingContentGenerator-XYJSX5U7.js → loggingContentGenerator-3TU53NDQ.js} +15 -15
  136. package/chunks/{managed-npm-update-I4V2CZBT.js → managed-npm-update-SZ7V4ZXK.js} +22 -22
  137. package/chunks/{mcp-RQRENAYR.js → mcp-JOYX3TT5.js} +27 -27
  138. package/chunks/{model-call-collection-KMSHM63U.js → model-call-collection-YABIWR5B.js} +1 -1
  139. package/chunks/{model-configuration-AEZJTLZ2.js → model-configuration-CJKGPW2E.js} +28 -28
  140. package/chunks/{modelConfigUtils-S3YKJBPJ.js → modelConfigUtils-EZMPC47D.js} +24 -24
  141. package/chunks/{monitor-5JZFPFXF.js → monitor-SG5LYTI4.js} +13 -13
  142. package/chunks/{nonInteractiveCli-G77J2SPF.js → nonInteractiveCli-KKENBKF7.js} +58 -59
  143. package/chunks/{nonInteractiveToolExecutor-CAF2D3IE.js → nonInteractiveToolExecutor-4CS4TEMJ.js} +14 -14
  144. package/chunks/{notebook-edit-KASVFOUZ.js → notebook-edit-57PXAYZN.js} +14 -14
  145. package/chunks/{omni-ZWYNO7DO.js → omni-FUNBK2BA.js} +12 -12
  146. package/chunks/{openai-44SFHTR2.js → openai-XJV7KGB7.js} +11 -3
  147. package/chunks/{openaiContentGenerator-6W7NNSML.js → openaiContentGenerator-VSMKP2PK.js} +11 -11
  148. package/chunks/{openaiResponsesContentGenerator-YPVT5IPV.js → openaiResponsesContentGenerator-HKMETP6V.js} +7 -7
  149. package/chunks/{processUtils-B335BOHB.js → processUtils-QMGAKTAD.js} +2 -2
  150. package/chunks/{prompt-terminal-ledger-SZPB5TQ7.js → prompt-terminal-ledger-26V5OPOY.js} +23 -23
  151. package/chunks/{pty-host-process-Y4BPXZFM.js → pty-host-process-UP752FWV.js} +1 -1
  152. package/chunks/{reactive-degrade-T3LRI72F.js → reactive-degrade-J7RMY47P.js} +11 -11
  153. package/chunks/{read-file-WKMDZ4AA.js → read-file-NOSU4AB6.js} +2 -2
  154. package/chunks/{resumeHistoryUtils-54CUO66A.js → resumeHistoryUtils-KQDIT4GG.js} +27 -28
  155. package/chunks/{ripGrep-C5LMCFOH.js → ripGrep-X5XFME7P.js} +2 -2
  156. package/chunks/{run-o1-code-serve-WA6DJOGP.js → run-o1-code-serve-LBX526TI.js} +43 -43
  157. package/chunks/{sandboxConfig-7COZTQZP.js → sandboxConfig-XSQ3WWPO.js} +22 -22
  158. package/chunks/{scheduled-tasks-SVOYVXPL.js → scheduled-tasks-2C2BJKKF.js} +28 -28
  159. package/chunks/{scheduler-JB622CYT.js → scheduler-MYI7M6ZV.js} +24 -24
  160. package/chunks/{serve-ZQ4S5CZ6.js → serve-I4442E26.js} +27 -27
  161. package/chunks/{server-FEUPFXKE.js → server-QYP5Y5X7.js} +134 -134
  162. package/chunks/{session-ZKEPJVDM.js → session-OIFZMGIG.js} +59 -60
  163. package/chunks/{session-KUQTUHIS.js → session-OYM3OHGL.js} +2 -2
  164. package/chunks/{session-attachments-root-76MMYRJZ.js → session-attachments-root-MRIKLMKD.js} +22 -22
  165. package/chunks/{session-pr-refresh-HMSBPUAT.js → session-pr-refresh-6GHYSKLU.js} +27 -27
  166. package/chunks/{settings-37VAWY5T.js → settings-CTNVOXKI.js} +26 -26
  167. package/chunks/{shell-P6FLTO46.js → shell-PYQDIUC3.js} +13 -13
  168. package/chunks/{skill-4E3KLKYE.js → skill-6PVIODCP.js} +2 -2
  169. package/chunks/{skill-settings-2XSTQS7N.js → skill-settings-TJTEFJ2P.js} +26 -26
  170. package/chunks/{spawnChannel-636YP5DD.js → spawnChannel-73QZTEZU.js} +23 -23
  171. package/chunks/{standalone-update-JIO6PT5Q.js → standalone-update-I7B4HYFF.js} +24 -24
  172. package/chunks/{startInteractiveUI-PNQ24YTR.js → startInteractiveUI-2IHBYFXY.js} +207 -167
  173. package/chunks/{supervisor-runner-YD27MXSJ.js → supervisor-runner-MDQEC376.js} +2 -2
  174. package/chunks/{team-create-DFCGOGXH.js → team-create-NUDDVJB3.js} +13 -13
  175. package/chunks/{team-plan-approval-QGUMDHBR.js → team-plan-approval-HSZUKHPE.js} +13 -13
  176. package/chunks/{terminal-image-renderer-DSGAMRMC.js → terminal-image-renderer-HWTISMNL.js} +22 -22
  177. package/chunks/{theme-manager-FD5Z5E5S.js → theme-manager-MROOV6VP.js} +23 -24
  178. package/chunks/{tool-result-media-EEGRFXMA.js → tool-result-media-MX55ROPV.js} +12 -12
  179. package/chunks/{tool-search-NFNCJDE3.js → tool-search-AQFQKLVO.js} +2 -2
  180. package/chunks/{total-session-admission-ZM2EQYG3.js → total-session-admission-KVWPGZPG.js} +25 -25
  181. package/chunks/{trustedFolders-DFB3QCCB.js → trustedFolders-QJG5VHDQ.js} +23 -23
  182. package/chunks/{undici-I7LHD7IT.js → undici-M5SHDWIM.js} +659 -230
  183. package/chunks/{update-relaunch-73MKVCSJ.js → update-relaunch-2JR5JPF2.js} +5 -5
  184. package/chunks/{updateCheck-QB6J5MFF.js → updateCheck-YMZA57UC.js} +22 -22
  185. package/chunks/{upload-config-HYKEF2MB.js → upload-config-FAYLOGRK.js} +9 -9
  186. package/chunks/{useAutoAcceptIndicator-IG5DFG7J.js → useAutoAcceptIndicator-YP5XVQYG.js} +30 -30
  187. package/chunks/{validateNonInterActiveAuth-2X2ENWCH.js → validateNonInterActiveAuth-4EB6LXQY.js} +56 -57
  188. package/chunks/{version-OJVLJFMR.js → version-ZN2GS3CQ.js} +1 -1
  189. package/chunks/{web-fetch-NCB23225.js → web-fetch-ICZ3KY5Z.js} +3 -3
  190. package/chunks/{web-search-NA5AEA6Q.js → web-search-UTZSXUV5.js} +10 -10
  191. package/chunks/{web-shell-static-OOIIII74.js → web-shell-static-LITKZKQN.js} +2 -2
  192. package/chunks/{workflow-TWXEI7ZN.js → workflow-X6BKVUYT.js} +14 -14
  193. package/chunks/{workspace-providers-status-QVILUFRO.js → workspace-providers-status-4BAUYRPL.js} +32 -32
  194. package/chunks/{workspace-registration-store-V5DN7Z2M.js → workspace-registration-store-6LZKX2RB.js} +1 -1
  195. package/chunks/{workspace-registry-KDWRXKZV.js → workspace-registry-M3HEVDT5.js} +25 -25
  196. package/chunks/{workspace-runtime-coordinator-MDJUA5TU.js → workspace-runtime-coordinator-4VTVVFTK.js} +25 -25
  197. package/chunks/{workspace-service-K465AJAX.js → workspace-service-QMGQB3OE.js} +29 -29
  198. package/chunks/{workspace-skills-status-RUNJMWUV.js → workspace-skills-status-ZY3N5ZUH.js} +28 -28
  199. package/chunks/{workspace-trust-reconciler-DCJ523JB.js → workspace-trust-reconciler-BFW5OR5C.js} +30 -30
  200. package/chunks/{write-file-4G4KA5RN.js → write-file-KLEVHL3D.js} +15 -15
  201. package/chunks/{zoom-image-UPJRIJCG.js → zoom-image-PXWPZ35Z.js} +2 -2
  202. package/cli.js +16 -16
  203. package/examples/mcp-server/example.ts +4 -4
  204. package/examples/mcp-server/package.json +2 -2
  205. package/examples/starter/example.ts +4 -4
  206. package/examples/starter/package.json +2 -2
  207. package/execution-worker.js +1 -1
  208. package/export-transcript-document.js +136 -199
  209. package/package.json +2 -2
  210. package/release-notes.json +8 -0
  211. package/web-shell/assets/{abnfDiagram-VCTEODGH-Dkrk74MS.js → abnfDiagram-VCTEODGH-CyS097jd.js} +1 -1
  212. package/web-shell/assets/{arc-CnUa5VxI.js → arc-C5ag-p3N.js} +1 -1
  213. package/web-shell/assets/{architectureDiagram-5GKGNRK7-BRSOyYI6.js → architectureDiagram-5GKGNRK7-BdMkuHkQ.js} +1 -1
  214. package/web-shell/assets/{blockDiagram-NRAW4CY4-BbTkFWts.js → blockDiagram-NRAW4CY4-C3UYLyTT.js} +1 -1
  215. package/web-shell/assets/{c4Diagram-UCG6FXSJ-BXRx3VRL.js → c4Diagram-UCG6FXSJ-DFtJftTV.js} +1 -1
  216. package/web-shell/assets/channel-oDZ5nd9A.js +1 -0
  217. package/web-shell/assets/{chunk-2Q5K7J3B-yW4fzUWC.js → chunk-2Q5K7J3B-C2aFjqep.js} +1 -1
  218. package/web-shell/assets/{chunk-5VM5RSS4-C7j7gy3X.js → chunk-5VM5RSS4-tYH7pzRt.js} +1 -1
  219. package/web-shell/assets/{chunk-F27PBJKO-gg8Wggfc.js → chunk-F27PBJKO-DwY_ngVY.js} +1 -1
  220. package/web-shell/assets/{chunk-G27WJ6UU-BIXiafrY.js → chunk-G27WJ6UU-CW5E-aG-.js} +1 -1
  221. package/web-shell/assets/{chunk-JWPE2WC7-CT4Zio6z.js → chunk-JWPE2WC7-UhCqXW5N.js} +1 -1
  222. package/web-shell/assets/{chunk-LCL6LL3I-B-4wf3Z6.js → chunk-LCL6LL3I-KnzQ1zLY.js} +1 -1
  223. package/web-shell/assets/{chunk-POPQ4Y6H-C-hsbjMq.js → chunk-POPQ4Y6H-DDzG7AYc.js} +1 -1
  224. package/web-shell/assets/{chunk-SVP7TREG-esRKmQXQ.js → chunk-SVP7TREG-DsNsZgNu.js} +1 -1
  225. package/web-shell/assets/{chunk-XXDRQBXY-DldWZluv.js → chunk-XXDRQBXY-DsN_-dPN.js} +1 -1
  226. package/web-shell/assets/classDiagram-DTDB5LWJ-DqPncmiN.js +1 -0
  227. package/web-shell/assets/classDiagram-v2-JRS7N3AN-DqPncmiN.js +1 -0
  228. package/web-shell/assets/{cose-bilkent-JH36ORCC-Cg_Hkegg.js → cose-bilkent-JH36ORCC-DFcKfzfA.js} +1 -1
  229. package/web-shell/assets/{cynefin-OW5HDTMX-BD4NjKO1.js → cynefin-OW5HDTMX-ByKijDw9.js} +1 -1
  230. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-7OiuFm2e.js → cynefinDiagram-5FMLGOSQ-B4kGwEej.js} +1 -1
  231. package/web-shell/assets/{dagre-3AP2YEHR-BY2cDSvK.js → dagre-3AP2YEHR-CRV8UYTU.js} +1 -1
  232. package/web-shell/assets/{diagram-S7CK7UJ4-DcQpei6o.js → diagram-S7CK7UJ4-DKTiyERa.js} +1 -1
  233. package/web-shell/assets/{diagram-UQ7AKVKN-CSOpgeLd.js → diagram-UQ7AKVKN-D5mn_Nku.js} +1 -1
  234. package/web-shell/assets/{diagram-VSXAHHWV-BIxEPq8f.js → diagram-VSXAHHWV-Dh_rhvjS.js} +1 -1
  235. package/web-shell/assets/{diagram-VX7I27RA-Mulf5VDd.js → diagram-VX7I27RA-hUvldCLj.js} +1 -1
  236. package/web-shell/assets/{diagram-Z3DM3KII-oTPPUV-h.js → diagram-Z3DM3KII-w_Fbc1_z.js} +1 -1
  237. package/web-shell/assets/{ebnfDiagram-PWID7BFC-BsncOXfu.js → ebnfDiagram-PWID7BFC-DiNETIFd.js} +1 -1
  238. package/web-shell/assets/{erDiagram-SSCWMZ5O-DkxQVTV8.js → erDiagram-SSCWMZ5O-C4AcmrAq.js} +1 -1
  239. package/web-shell/assets/{flowDiagram-A5DVABFB-YUsa6wZO.js → flowDiagram-A5DVABFB-D9mOOdFA.js} +1 -1
  240. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-Cnqm7Bik.js → ganttDiagram-EL5Y4UJY-CN6niq6J.js} +1 -1
  241. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Dd8e40AY.js → gitGraphDiagram-WWUBYQGX-D5AoFWfE.js} +1 -1
  242. package/web-shell/assets/{index-CZCfLqp_.js → index-CS8CwW9f.js} +516 -485
  243. package/web-shell/assets/{index-DDT8pqbp.js → index-DOw9K3Bq.js} +1 -1
  244. package/web-shell/assets/{infoDiagram-RXCK75RN-8MF9FKjM.js → infoDiagram-RXCK75RN-BMmTZffy.js} +1 -1
  245. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DQ-ktH4y.js → ishikawaDiagram-5VMMS53U-DEKpvoPS.js} +1 -1
  246. package/web-shell/assets/{journeyDiagram-EYS64GPL-BCHFI2vN.js → journeyDiagram-EYS64GPL-DlCviwKj.js} +1 -1
  247. package/web-shell/assets/{kanban-definition-3QL26DDD-DWzXuuVu.js → kanban-definition-3QL26DDD-BkVlPyRx.js} +1 -1
  248. package/web-shell/assets/{layout-I40DGxKz.js → layout-CJPeVll6.js} +1 -1
  249. package/web-shell/assets/{linear-CJ4Hss20.js → linear-B09bulGi.js} +1 -1
  250. package/web-shell/assets/mermaid.core-CiMLBEnS.js +312 -0
  251. package/web-shell/assets/{mindmap-definition-FBJOCRG2-C6DKnyuH.js → mindmap-definition-FBJOCRG2-VMATJEz6.js} +1 -1
  252. package/web-shell/assets/{pegDiagram-XKGWAZYB-zomV7Ng0.js → pegDiagram-XKGWAZYB-BBteqi33.js} +1 -1
  253. package/web-shell/assets/{pieDiagram-E7YTZNPT-CO-uix-_.js → pieDiagram-E7YTZNPT-CfYDtWH-.js} +1 -1
  254. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-Dg1whrAZ.js → quadrantDiagram-AXDQQJYC-B4NTRdT0.js} +1 -1
  255. package/web-shell/assets/{railroadDiagram-O6MQD6OU-cHZU3Gch.js → railroadDiagram-O6MQD6OU-DpvXXjTt.js} +1 -1
  256. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C6DsWhMZ.js → requirementDiagram-EFPCY7ZU-Uj9T6A6X.js} +1 -1
  257. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-C9ILyOS0.js → sankeyDiagram-P5KCCOFB-PjVo1Bfo.js} +1 -1
  258. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CVvYgJCg.js → sequenceDiagram-WJ2MYXX4-CW2KqqvI.js} +1 -1
  259. package/web-shell/assets/{sizeCapture-X5ZJPWSS-B8TDIlSl.js → sizeCapture-X5ZJPWSS-BSxJAFlW.js} +1 -1
  260. package/web-shell/assets/{stateDiagram-HBIQ2CUA-CTKxsECh.js → stateDiagram-HBIQ2CUA-Cx2NCYF1.js} +1 -1
  261. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BGcfdFqB.js +1 -0
  262. package/web-shell/assets/{swimlanes-XN3QIQJK-Blfs3x7y.js → swimlanes-XN3QIQJK-BqbjLLi8.js} +1 -1
  263. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-DHmBybUx.js +8 -0
  264. package/web-shell/assets/{timeline-definition-24CTP7MA-D-VBOqpM.js → timeline-definition-24CTP7MA-Dua9VLHV.js} +1 -1
  265. package/web-shell/assets/{vennDiagram-4TSXK5OY-BXfVcLxa.js → vennDiagram-4TSXK5OY-C8PCMTKz.js} +1 -1
  266. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-B7kNnroZ.js → wardleyDiagram-VM6X3IG4-Bcs1T3GE.js} +1 -1
  267. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-CQxBdR6i.js → xychartDiagram-S5SC5T6Z-CkNyXMHd.js} +1 -1
  268. package/web-shell/index.html +1 -1
  269. package/web-shell/sw.js +1 -1
  270. package/chunks/chunk-YQQ7QFC5.js +0 -945
  271. package/web-shell/assets/channel-BJm6co8h.js +0 -1
  272. package/web-shell/assets/classDiagram-DTDB5LWJ-BEYla04O.js +0 -1
  273. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BEYla04O.js +0 -1
  274. package/web-shell/assets/mermaid.core-CyYLnEfA.js +0 -312
  275. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-DV77q__d.js +0 -1
  276. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-gVyWcYvC.js +0 -8
@@ -6,7 +6,7 @@ import {
6
6
  enableMouseEvents,
7
7
  useKeypress,
8
8
  useKeypressContext
9
- } from "./chunk-HMOUS4QB.js";
9
+ } from "./chunk-2J5KVLHY.js";
10
10
  import {
11
11
  INLINE_CODE_SPAN_PATTERN_SOURCE,
12
12
  calculateAverageLatency,
@@ -28,11 +28,11 @@ import {
28
28
  readInlineMathSpanAt,
29
29
  unescapeMarkdownBeforeMath,
30
30
  unescapeMarkdownDollars
31
- } from "./chunk-SADH4MG3.js";
31
+ } from "./chunk-UKFESCEI.js";
32
32
  import {
33
33
  MINIMUM_MAX_HEIGHT,
34
34
  MaxSizedBox
35
- } from "./chunk-TJQTTY4F.js";
35
+ } from "./chunk-DQORDG4A.js";
36
36
  import {
37
37
  CompactToolGroupDisplay,
38
38
  ICON,
@@ -53,7 +53,7 @@ import {
53
53
  isCollapsibleTool,
54
54
  isFindingsListDisplay,
55
55
  showsToolLabel
56
- } from "./chunk-RFIKBXKI.js";
56
+ } from "./chunk-Q76KPZ6F.js";
57
57
  import {
58
58
  formatDuration,
59
59
  formatRelativeTime,
@@ -62,7 +62,7 @@ import {
62
62
  import {
63
63
  extendedTheme,
64
64
  theme
65
- } from "./chunk-R5HO4EJV.js";
65
+ } from "./chunk-E2NTOSGU.js";
66
66
  import {
67
67
  require_jsx_runtime
68
68
  } from "./chunk-SKTOH6US.js";
@@ -77,20 +77,10 @@ import {
77
77
  use_stdin_default,
78
78
  use_stdout_default,
79
79
  wrapAnsi
80
- } from "./chunk-MRTHM5GF.js";
80
+ } from "./chunk-R5AMOGLJ.js";
81
81
  import {
82
82
  require_react
83
83
  } from "./chunk-2KK65OQ6.js";
84
- import {
85
- themeManager
86
- } from "./chunk-P7RO4QSF.js";
87
- import {
88
- TOP_FRAME,
89
- glyphs
90
- } from "./chunk-U6ZAL4MF.js";
91
- import {
92
- relaunchApp
93
- } from "./chunk-ZEJQB32M.js";
94
84
  import {
95
85
  markKittyImageWritten,
96
86
  prepareInlineTerminalImage,
@@ -101,12 +91,19 @@ import {
101
91
  import {
102
92
  formatInlineImageOverflow
103
93
  } from "./chunk-KIN34HCU.js";
94
+ import {
95
+ TOP_FRAME,
96
+ glyphs
97
+ } from "./chunk-U6ZAL4MF.js";
104
98
  import {
105
99
  require_source
106
100
  } from "./chunk-XZ3MQL2U.js";
101
+ import {
102
+ relaunchApp
103
+ } from "./chunk-KBL56IWK.js";
107
104
  import {
108
105
  getErrorMessage
109
- } from "./chunk-CAVFN5I5.js";
106
+ } from "./chunk-YKVRRLWF.js";
110
107
  import {
111
108
  cpLen,
112
109
  cpSlice,
@@ -120,18 +117,19 @@ import {
120
117
  toCodePoints,
121
118
  truncateToWidth
122
119
  } from "./chunk-PJF3WRYZ.js";
123
- import {
124
- resolveColor
125
- } from "./chunk-YQQ7QFC5.js";
126
120
  import {
127
121
  stringWidth
128
122
  } from "./chunk-F5IN4KK7.js";
123
+ import {
124
+ resolveColor,
125
+ themeManager
126
+ } from "./chunk-7HN3RHKV.js";
129
127
  import {
130
128
  createLoadedSettingsAdapter
131
- } from "./chunk-BH6ETFAI.js";
129
+ } from "./chunk-XDUTL6ZZ.js";
132
130
  import {
133
131
  getPersistScopeForModelSelection
134
- } from "./chunk-7W6HMRGG.js";
132
+ } from "./chunk-PN3OU2HT.js";
135
133
  import {
136
134
  getCurrentLanguage,
137
135
  localizeToolDisplayName,
@@ -139,12 +137,12 @@ import {
139
137
  } from "./chunk-TADRPMGC.js";
140
138
  import {
141
139
  isWorkspaceTrusted
142
- } from "./chunk-SMO5AGRH.js";
140
+ } from "./chunk-AAJUSHR6.js";
143
141
  import {
144
142
  sanitizeForOsc,
145
143
  supportsHyperlinks,
146
144
  wrapForMultiplexer
147
- } from "./chunk-AZ4ZCY3E.js";
145
+ } from "./chunk-PKKMIKJY.js";
148
146
  import {
149
147
  IdeClient,
150
148
  allowEditorTypeInSandbox,
@@ -154,7 +152,7 @@ import {
154
152
  ideContextStore,
155
153
  isEditorAvailable,
156
154
  isValidEditorType
157
- } from "./chunk-TEEKFZLV.js";
155
+ } from "./chunk-7EZKXBZF.js";
158
156
  import {
159
157
  ShellExecutionService
160
158
  } from "./chunk-PHCY2DQ2.js";
@@ -202,7 +200,7 @@ import {
202
200
  resolveMetadataKey,
203
201
  resolveOwnsModel,
204
202
  tryResolveModelProtocol
205
- } from "./chunk-O7OCJ6MQ.js";
203
+ } from "./chunk-PTOAGZBC.js";
206
204
  import {
207
205
  require_has_flag,
208
206
  require_supports_color
@@ -2672,11 +2670,11 @@ __name(useTerminalSize, "useTerminalSize");
2672
2670
 
2673
2671
  // packages/cli/src/ui/components/SessionPreview.tsx
2674
2672
  init_esbuild_shims();
2675
- var import_react56 = __toESM(require_react(), 1);
2673
+ var import_react57 = __toESM(require_react(), 1);
2676
2674
 
2677
2675
  // packages/cli/src/ui/components/HistoryItemDisplay.tsx
2678
2676
  init_esbuild_shims();
2679
- var import_react55 = __toESM(require_react(), 1);
2677
+ var import_react56 = __toESM(require_react(), 1);
2680
2678
 
2681
2679
  // packages/cli/src/ui/components/messages/ProviderRetryBox.tsx
2682
2680
  init_esbuild_shims();
@@ -6859,11 +6857,11 @@ var ThinkMessageContent = /* @__PURE__ */ __name(({
6859
6857
 
6860
6858
  // packages/cli/src/ui/components/messages/ToolGroupMessage.tsx
6861
6859
  init_esbuild_shims();
6862
- var import_react40 = __toESM(require_react(), 1);
6860
+ var import_react41 = __toESM(require_react(), 1);
6863
6861
 
6864
6862
  // packages/cli/src/ui/components/messages/ToolMessage.tsx
6865
6863
  init_esbuild_shims();
6866
- var import_react37 = __toESM(require_react(), 1);
6864
+ var import_react38 = __toESM(require_react(), 1);
6867
6865
 
6868
6866
  // packages/cli/src/ui/components/messages/DiffRenderer.tsx
6869
6867
  init_esbuild_shims();
@@ -7334,7 +7332,7 @@ var AGENT_TOOL_NAMES = /* @__PURE__ */ new Set([
7334
7332
 
7335
7333
  // packages/cli/src/ui/components/messages/ToolConfirmationMessage.tsx
7336
7334
  init_esbuild_shims();
7337
- var import_react35 = __toESM(require_react(), 1);
7335
+ var import_react36 = __toESM(require_react(), 1);
7338
7336
  import { promises as fs2 } from "node:fs";
7339
7337
  import * as os2 from "node:os";
7340
7338
  import * as path3 from "node:path";
@@ -8478,7 +8476,7 @@ __name(sideMargin, "sideMargin");
8478
8476
 
8479
8477
  // packages/cli/src/ui/components/messages/AskUserQuestionDialog.tsx
8480
8478
  init_esbuild_shims();
8481
- var import_react34 = __toESM(require_react(), 1);
8479
+ var import_react35 = __toESM(require_react(), 1);
8482
8480
 
8483
8481
  // packages/cli/src/ui/components/shared/TextInput.tsx
8484
8482
  init_esbuild_shims();
@@ -11209,7 +11207,7 @@ function usePreferredEditor() {
11209
11207
  __name(usePreferredEditor, "usePreferredEditor");
11210
11208
 
11211
11209
  // packages/cli/src/ui/components/shared/TextInput.tsx
11212
- var import_react27 = __toESM(require_react(), 1);
11210
+ var import_react28 = __toESM(require_react(), 1);
11213
11211
 
11214
11212
  // packages/cli/src/ui/utils/software-cursor.ts
11215
11213
  init_esbuild_shims();
@@ -11285,12 +11283,22 @@ function terminalShowsInputCursor(platform = process.platform) {
11285
11283
  return platform === "win32";
11286
11284
  }
11287
11285
  __name(terminalShowsInputCursor, "terminalShowsInputCursor");
11288
- function renderSoftwareCursor(text) {
11286
+ function renderSoftwareCursor(text, backgroundColor) {
11289
11287
  const cursorText = text || " ";
11290
- return compositionOverlaysSoftwareCursor() ? import_chalk.default.underline(cursorText) : import_chalk.default.bgHex(getSoftwareCursorBackground())(cursorText);
11288
+ if (compositionOverlaysSoftwareCursor()) return import_chalk.default.underline(cursorText);
11289
+ const cursorBackground = getSoftwareCursorBackground(backgroundColor);
11290
+ const cursor = import_chalk.default.bgHex(cursorBackground);
11291
+ if (!backgroundColor) return cursor(cursorText);
11292
+ const foreground = cursorBackground === DARK_CURSOR_BACKGROUND ? "#ffffff" : "#000000";
11293
+ return cursor.hex(foreground)(cursorText);
11291
11294
  }
11292
11295
  __name(renderSoftwareCursor, "renderSoftwareCursor");
11293
11296
 
11297
+ // packages/cli/src/ui/contexts/theme-canvas-context.ts
11298
+ init_esbuild_shims();
11299
+ var import_react27 = __toESM(require_react(), 1);
11300
+ var ThemeCanvasContext = (0, import_react27.createContext)(void 0);
11301
+
11294
11302
  // packages/cli/src/ui/components/shared/TextInput.tsx
11295
11303
  var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
11296
11304
  function ellipsizeMiddle(text, width) {
@@ -11324,13 +11332,14 @@ function TextInput({
11324
11332
  allowExternalEditor = true,
11325
11333
  mask
11326
11334
  }) {
11335
+ const canvasBackground = (0, import_react28.useContext)(ThemeCanvasContext);
11327
11336
  const allowMultiline = height > 1;
11328
- const [cursorVisible, setCursorVisible] = (0, import_react27.useState)(isActive);
11329
- const onChangeRef = (0, import_react27.useRef)(onChange);
11330
- (0, import_react27.useEffect)(() => {
11337
+ const [cursorVisible, setCursorVisible] = (0, import_react28.useState)(isActive);
11338
+ const onChangeRef = (0, import_react28.useRef)(onChange);
11339
+ (0, import_react28.useEffect)(() => {
11331
11340
  onChangeRef.current = onChange;
11332
11341
  }, [onChange]);
11333
- const stableOnChange = (0, import_react27.useCallback)((text) => {
11342
+ const stableOnChange = (0, import_react28.useCallback)((text) => {
11334
11343
  onChangeRef.current?.(text);
11335
11344
  }, []);
11336
11345
  const preferredEditor = usePreferredEditor();
@@ -11345,7 +11354,7 @@ function TextInput({
11345
11354
  onChange: stableOnChange,
11346
11355
  preferredEditor
11347
11356
  });
11348
- (0, import_react27.useEffect)(() => {
11357
+ (0, import_react28.useEffect)(() => {
11349
11358
  if (!isActive) {
11350
11359
  setCursorVisible(false);
11351
11360
  return;
@@ -11433,7 +11442,10 @@ function TextInput({
11433
11442
  /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Box_default, { children: [
11434
11443
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Text, { color: theme.text.accent, children: "> " }),
11435
11444
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Box_default, { flexGrow: 1, flexDirection: "column", children: buffer.text.length === 0 && placeholder ? shouldRenderCursor ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(Text, { children: [
11436
- renderSoftwareCursor(placeholder.slice(0, 1)),
11445
+ renderSoftwareCursor(
11446
+ placeholder.slice(0, 1),
11447
+ canvasBackground
11448
+ ),
11437
11449
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Text, { color: Colors.Gray, children: placeholder.slice(1) })
11438
11450
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Text, { color: Colors.Gray, children: placeholder }) : ellipsizeOverflow && stringWidth(buffer.text) > inputWidth ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Text, { children: ellipsizeMiddle(
11439
11451
  mask ? mask(buffer.text) : buffer.text,
@@ -11461,10 +11473,13 @@ function TextInput({
11461
11473
  relativeVisualColForHighlight,
11462
11474
  relativeVisualColForHighlight + 1
11463
11475
  ) || " ";
11464
- const highlighted = renderSoftwareCursor(charToHighlight);
11476
+ const highlighted = renderSoftwareCursor(
11477
+ charToHighlight,
11478
+ canvasBackground
11479
+ );
11465
11480
  display = cpSlice(display, 0, relativeVisualColForHighlight) + highlighted + cpSlice(display, relativeVisualColForHighlight + 1);
11466
11481
  } else if (relativeVisualColForHighlight === cpLen(display) && cpLen(display) === inputWidth) {
11467
- display = display + renderSoftwareCursor(" ");
11482
+ display = display + renderSoftwareCursor(" ", canvasBackground);
11468
11483
  }
11469
11484
  }
11470
11485
  }
@@ -11490,27 +11505,27 @@ __name(TextInput, "TextInput");
11490
11505
 
11491
11506
  // packages/cli/src/ui/components/shared/ScrollableList.tsx
11492
11507
  init_esbuild_shims();
11493
- var import_react33 = __toESM(require_react(), 1);
11508
+ var import_react34 = __toESM(require_react(), 1);
11494
11509
 
11495
11510
  // packages/cli/src/ui/components/shared/VirtualizedList.tsx
11496
11511
  init_esbuild_shims();
11497
- var import_react31 = __toESM(require_react(), 1);
11512
+ var import_react32 = __toESM(require_react(), 1);
11498
11513
 
11499
11514
  // packages/cli/src/ui/hooks/useBatchedScroll.ts
11500
11515
  init_esbuild_shims();
11501
- var import_react28 = __toESM(require_react(), 1);
11516
+ var import_react29 = __toESM(require_react(), 1);
11502
11517
  function useBatchedScroll(currentScrollTop) {
11503
- const pendingScrollTopRef = (0, import_react28.useRef)(null);
11504
- const currentScrollTopRef = (0, import_react28.useRef)(currentScrollTop);
11505
- (0, import_react28.useLayoutEffect)(() => {
11518
+ const pendingScrollTopRef = (0, import_react29.useRef)(null);
11519
+ const currentScrollTopRef = (0, import_react29.useRef)(currentScrollTop);
11520
+ (0, import_react29.useLayoutEffect)(() => {
11506
11521
  currentScrollTopRef.current = currentScrollTop;
11507
11522
  pendingScrollTopRef.current = null;
11508
11523
  });
11509
- const getScrollTop = (0, import_react28.useCallback)(
11524
+ const getScrollTop = (0, import_react29.useCallback)(
11510
11525
  () => pendingScrollTopRef.current ?? currentScrollTopRef.current,
11511
11526
  []
11512
11527
  );
11513
- const setPendingScrollTop = (0, import_react28.useCallback)((newScrollTop) => {
11528
+ const setPendingScrollTop = (0, import_react29.useCallback)((newScrollTop) => {
11514
11529
  pendingScrollTopRef.current = newScrollTop;
11515
11530
  }, []);
11516
11531
  return { getScrollTop, setPendingScrollTop };
@@ -11519,12 +11534,12 @@ __name(useBatchedScroll, "useBatchedScroll");
11519
11534
 
11520
11535
  // packages/cli/src/ui/hooks/useAnimatedScrollbar.ts
11521
11536
  init_esbuild_shims();
11522
- var import_react29 = __toESM(require_react(), 1);
11537
+ var import_react30 = __toESM(require_react(), 1);
11523
11538
  function useAnimatedScrollbar(options = {}) {
11524
11539
  const { idleHideMs = 1500 } = options;
11525
- const [isVisible, setIsVisible] = (0, import_react29.useState)(false);
11526
- const timerRef = (0, import_react29.useRef)(null);
11527
- const flashScrollbar = (0, import_react29.useCallback)(() => {
11540
+ const [isVisible, setIsVisible] = (0, import_react30.useState)(false);
11541
+ const timerRef = (0, import_react30.useRef)(null);
11542
+ const flashScrollbar = (0, import_react30.useCallback)(() => {
11528
11543
  setIsVisible(true);
11529
11544
  if (timerRef.current !== null) {
11530
11545
  clearTimeout(timerRef.current);
@@ -11538,7 +11553,7 @@ function useAnimatedScrollbar(options = {}) {
11538
11553
  timerRef.current = null;
11539
11554
  }, idleHideMs);
11540
11555
  }, [idleHideMs]);
11541
- (0, import_react29.useEffect)(
11556
+ (0, import_react30.useEffect)(
11542
11557
  () => () => {
11543
11558
  if (timerRef.current !== null) {
11544
11559
  clearTimeout(timerRef.current);
@@ -11553,9 +11568,9 @@ __name(useAnimatedScrollbar, "useAnimatedScrollbar");
11553
11568
 
11554
11569
  // packages/cli/src/ui/components/shared/StaticRender.tsx
11555
11570
  init_esbuild_shims();
11556
- var import_react30 = __toESM(require_react(), 1);
11571
+ var import_react31 = __toESM(require_react(), 1);
11557
11572
  var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
11558
- var StaticRender = (0, import_react30.memo)(
11573
+ var StaticRender = (0, import_react31.memo)(
11559
11574
  ({ children, width }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Box_default, { width, flexDirection: "column", flexShrink: 0, children }),
11560
11575
  (prev, next) => prev.children === next.children && prev.width === next.width
11561
11576
  );
@@ -11588,7 +11603,7 @@ function firstIndexOfOffsetRun(offsets, index) {
11588
11603
  return i;
11589
11604
  }
11590
11605
  __name(firstIndexOfOffsetRun, "firstIndexOfOffsetRun");
11591
- var VirtualizedListItem = (0, import_react31.memo)(
11606
+ var VirtualizedListItem = (0, import_react32.memo)(
11592
11607
  ({
11593
11608
  content,
11594
11609
  shouldBeStatic,
@@ -11598,13 +11613,13 @@ var VirtualizedListItem = (0, import_react31.memo)(
11598
11613
  onHeightChange,
11599
11614
  isHidden
11600
11615
  }) => {
11601
- const itemRef = (0, import_react31.useRef)(null);
11616
+ const itemRef = (0, import_react32.useRef)(null);
11602
11617
  const { height, hasMeasured } = use_box_metrics_default(
11603
11618
  itemRef
11604
11619
  );
11605
- const onHeightChangeRef = (0, import_react31.useRef)(onHeightChange);
11620
+ const onHeightChangeRef = (0, import_react32.useRef)(onHeightChange);
11606
11621
  onHeightChangeRef.current = onHeightChange;
11607
- (0, import_react31.useLayoutEffect)(() => {
11622
+ (0, import_react32.useLayoutEffect)(() => {
11608
11623
  const measuredHeight = itemRef.current?.yogaNode?.getComputedHeight() ?? height;
11609
11624
  if (hasMeasured && !isHidden) {
11610
11625
  onHeightChangeRef.current(itemKey, measuredHeight);
@@ -11644,7 +11659,7 @@ function VirtualizedList(props, ref) {
11644
11659
  keepMountedIndices,
11645
11660
  width
11646
11661
  } = props;
11647
- const [scrollAnchor, setScrollAnchor] = (0, import_react31.useState)(() => {
11662
+ const [scrollAnchor, setScrollAnchor] = (0, import_react32.useState)(() => {
11648
11663
  const scrollToEnd = initialScrollIndex === SCROLL_TO_ITEM_END || typeof initialScrollIndex === "number" && initialScrollIndex >= data.length - 1 && initialScrollOffsetInIndex === SCROLL_TO_ITEM_END;
11649
11664
  if (scrollToEnd) {
11650
11665
  return {
@@ -11666,19 +11681,19 @@ function VirtualizedList(props, ref) {
11666
11681
  }
11667
11682
  return { index: 0, offset: 0 };
11668
11683
  });
11669
- const [isStickingToBottom, setIsStickingToBottom] = (0, import_react31.useState)(() => {
11684
+ const [isStickingToBottom, setIsStickingToBottom] = (0, import_react32.useState)(() => {
11670
11685
  const scrollToEnd = initialScrollIndex === SCROLL_TO_ITEM_END || typeof initialScrollIndex === "number" && initialScrollIndex >= data.length - 1 && initialScrollOffsetInIndex === SCROLL_TO_ITEM_END;
11671
11686
  return scrollToEnd;
11672
11687
  });
11673
- const containerRef = (0, import_react31.useRef)(null);
11674
- const rootRef = (0, import_react31.useRef)(null);
11688
+ const containerRef = (0, import_react32.useRef)(null);
11689
+ const rootRef = (0, import_react32.useRef)(null);
11675
11690
  const { width: measuredContainerWidth, height: measuredContainerHeight } = use_box_metrics_default(containerRef);
11676
11691
  const containerHeight = props.containerHeight ?? measuredContainerHeight;
11677
11692
  const containerWidth = measuredContainerWidth;
11678
- const [heights, setHeights] = (0, import_react31.useState)({});
11693
+ const [heights, setHeights] = (0, import_react32.useState)({});
11679
11694
  const measureAtFullHeight = props.measureAtFullHeight === true;
11680
- const [fullHeightMeasurementPending, setFullHeightMeasurementPending] = (0, import_react31.useState)(measureAtFullHeight);
11681
- const [previousMeasurementInputs, setPreviousMeasurementInputs] = (0, import_react31.useState)({
11695
+ const [fullHeightMeasurementPending, setFullHeightMeasurementPending] = (0, import_react32.useState)(measureAtFullHeight);
11696
+ const [previousMeasurementInputs, setPreviousMeasurementInputs] = (0, import_react32.useState)({
11682
11697
  enabled: measureAtFullHeight,
11683
11698
  data,
11684
11699
  renderItem
@@ -11691,15 +11706,15 @@ function VirtualizedList(props, ref) {
11691
11706
  });
11692
11707
  setFullHeightMeasurementPending(measureAtFullHeight);
11693
11708
  }
11694
- const isInitialScrollSet = (0, import_react31.useRef)(false);
11695
- const onHeightChange = (0, import_react31.useCallback)((key, height) => {
11709
+ const isInitialScrollSet = (0, import_react32.useRef)(false);
11710
+ const onHeightChange = (0, import_react32.useCallback)((key, height) => {
11696
11711
  setHeights((prev) => {
11697
11712
  if (prev[key] === height) return prev;
11698
11713
  return { ...prev, [key]: height };
11699
11714
  });
11700
11715
  setFullHeightMeasurementPending(false);
11701
11716
  }, []);
11702
- (0, import_react31.useLayoutEffect)(() => {
11717
+ (0, import_react32.useLayoutEffect)(() => {
11703
11718
  setHeights((prev) => {
11704
11719
  const prevKeys = Object.keys(prev);
11705
11720
  if (prevKeys.length <= Math.max(8, 2 * data.length)) return prev;
@@ -11722,7 +11737,7 @@ function VirtualizedList(props, ref) {
11722
11737
  return next;
11723
11738
  });
11724
11739
  }, [data, keyExtractor]);
11725
- const { totalHeight, offsets } = (0, import_react31.useMemo)(() => {
11740
+ const { totalHeight, offsets } = (0, import_react32.useMemo)(() => {
11726
11741
  const offsets2 = [0];
11727
11742
  let totalHeight2 = 0;
11728
11743
  for (let i = 0; i < data.length; i++) {
@@ -11735,7 +11750,7 @@ function VirtualizedList(props, ref) {
11735
11750
  return { totalHeight: totalHeight2, offsets: offsets2 };
11736
11751
  }, [heights, data, estimatedItemHeight, keyExtractor]);
11737
11752
  const scrollableContainerHeight = containerHeight;
11738
- const getAnchorForScrollTop = (0, import_react31.useCallback)(
11753
+ const getAnchorForScrollTop = (0, import_react32.useCallback)(
11739
11754
  (scrollTop2, offsets2) => {
11740
11755
  const found = findLastLE(offsets2, scrollTop2);
11741
11756
  if (found === -1) {
@@ -11746,10 +11761,10 @@ function VirtualizedList(props, ref) {
11746
11761
  },
11747
11762
  []
11748
11763
  );
11749
- const [prevTargetScrollIndex, setPrevTargetScrollIndex] = (0, import_react31.useState)(
11764
+ const [prevTargetScrollIndex, setPrevTargetScrollIndex] = (0, import_react32.useState)(
11750
11765
  props.targetScrollIndex
11751
11766
  );
11752
- const prevOffsetsLength = (0, import_react31.useRef)(1);
11767
+ const prevOffsetsLength = (0, import_react32.useRef)(1);
11753
11768
  const target = props.targetScrollIndex;
11754
11769
  if (target !== void 0 && offsets.length > 1) {
11755
11770
  const targetChanged = target !== prevTargetScrollIndex;
@@ -11771,7 +11786,7 @@ function VirtualizedList(props, ref) {
11771
11786
  }
11772
11787
  }
11773
11788
  prevOffsetsLength.current = offsets.length;
11774
- const actualScrollTop = (0, import_react31.useMemo)(() => {
11789
+ const actualScrollTop = (0, import_react32.useMemo)(() => {
11775
11790
  const offset = offsets[scrollAnchor.index];
11776
11791
  if (typeof offset !== "number") {
11777
11792
  return 0;
@@ -11792,11 +11807,11 @@ function VirtualizedList(props, ref) {
11792
11807
  keyExtractor
11793
11808
  ]);
11794
11809
  const scrollTop = isStickingToBottom ? Number.MAX_SAFE_INTEGER : actualScrollTop;
11795
- const prevDataLength = (0, import_react31.useRef)(data.length);
11796
- const prevTotalHeight = (0, import_react31.useRef)(totalHeight);
11797
- const prevScrollTop = (0, import_react31.useRef)(actualScrollTop);
11798
- const prevContainerHeight = (0, import_react31.useRef)(scrollableContainerHeight);
11799
- (0, import_react31.useLayoutEffect)(() => {
11810
+ const prevDataLength = (0, import_react32.useRef)(data.length);
11811
+ const prevTotalHeight = (0, import_react32.useRef)(totalHeight);
11812
+ const prevScrollTop = (0, import_react32.useRef)(actualScrollTop);
11813
+ const prevContainerHeight = (0, import_react32.useRef)(scrollableContainerHeight);
11814
+ (0, import_react32.useLayoutEffect)(() => {
11800
11815
  const contentPreviouslyFit = prevTotalHeight.current <= prevContainerHeight.current;
11801
11816
  const wasScrolledToBottomPixels = prevScrollTop.current >= prevTotalHeight.current - prevContainerHeight.current - 1;
11802
11817
  const wasAtBottom = contentPreviouslyFit || wasScrolledToBottomPixels;
@@ -11846,7 +11861,7 @@ function VirtualizedList(props, ref) {
11846
11861
  isStickingToBottom,
11847
11862
  props.targetScrollIndex
11848
11863
  ]);
11849
- (0, import_react31.useLayoutEffect)(() => {
11864
+ (0, import_react32.useLayoutEffect)(() => {
11850
11865
  if (isInitialScrollSet.current || offsets.length <= 1 || totalHeight <= 0 || scrollableContainerHeight <= 0) {
11851
11866
  return;
11852
11867
  }
@@ -11911,7 +11926,7 @@ function VirtualizedList(props, ref) {
11911
11926
  }
11912
11927
  const renderRangeStart = renderStatic ? 0 : startIndex;
11913
11928
  const renderRangeEnd = renderStatic ? data.length - 1 : endIndex;
11914
- const renderedItems = (0, import_react31.useMemo)(() => {
11929
+ const renderedItems = (0, import_react32.useMemo)(() => {
11915
11930
  if (!isReady) {
11916
11931
  return [];
11917
11932
  }
@@ -11972,7 +11987,7 @@ function VirtualizedList(props, ref) {
11972
11987
  keepMountedIndices
11973
11988
  ]);
11974
11989
  const { getScrollTop, setPendingScrollTop } = useBatchedScroll(scrollTop);
11975
- const getScrollbarGeometry = (0, import_react31.useCallback)(() => {
11990
+ const getScrollbarGeometry = (0, import_react32.useCallback)(() => {
11976
11991
  const shouldShowScrollbar = (props.showScrollbar ?? true) && maxScroll > 0;
11977
11992
  if (!shouldShowScrollbar || !rootRef.current || scrollableContainerHeight <= 0) {
11978
11993
  return null;
@@ -11985,7 +12000,7 @@ function VirtualizedList(props, ref) {
11985
12000
  height: scrollableContainerHeight
11986
12001
  };
11987
12002
  }, [props.showScrollbar, maxScroll, scrollableContainerHeight]);
11988
- const hitTestScrollbar = (0, import_react31.useCallback)(
12003
+ const hitTestScrollbar = (0, import_react32.useCallback)(
11989
12004
  ({ col, row }) => {
11990
12005
  const geometry = getScrollbarGeometry();
11991
12006
  if (!geometry) return false;
@@ -11995,8 +12010,8 @@ function VirtualizedList(props, ref) {
11995
12010
  },
11996
12011
  [getScrollbarGeometry]
11997
12012
  );
11998
- const userScrollPending = (0, import_react31.useRef)(false);
11999
- const scrollToScrollbarRow = (0, import_react31.useCallback)(
12013
+ const userScrollPending = (0, import_react32.useRef)(false);
12014
+ const scrollToScrollbarRow = (0, import_react32.useCallback)(
12000
12015
  (row) => {
12001
12016
  const geometry = getScrollbarGeometry();
12002
12017
  if (!geometry) return;
@@ -12032,7 +12047,7 @@ function VirtualizedList(props, ref) {
12032
12047
  setPendingScrollTop
12033
12048
  ]
12034
12049
  );
12035
- (0, import_react31.useImperativeHandle)(
12050
+ (0, import_react32.useImperativeHandle)(
12036
12051
  ref,
12037
12052
  () => ({
12038
12053
  scrollBy: /* @__PURE__ */ __name((delta) => {
@@ -12167,8 +12182,8 @@ function VirtualizedList(props, ref) {
12167
12182
  );
12168
12183
  const showScrollbar = (props.showScrollbar ?? true) && maxScroll > 0;
12169
12184
  const { isVisible: scrollbarThumbActive, flashScrollbar } = useAnimatedScrollbar();
12170
- const isInitialScrollFlash = (0, import_react31.useRef)(true);
12171
- (0, import_react31.useLayoutEffect)(() => {
12185
+ const isInitialScrollFlash = (0, import_react32.useRef)(true);
12186
+ (0, import_react32.useLayoutEffect)(() => {
12172
12187
  if (isInitialScrollFlash.current) {
12173
12188
  isInitialScrollFlash.current = false;
12174
12189
  return;
@@ -12179,7 +12194,7 @@ function VirtualizedList(props, ref) {
12179
12194
  userScrollPending.current = false;
12180
12195
  flashScrollbar();
12181
12196
  }, [clampedScrollTop, flashScrollbar]);
12182
- const scrollbarContent = (0, import_react31.useMemo)(() => {
12197
+ const scrollbarContent = (0, import_react32.useMemo)(() => {
12183
12198
  if (!showScrollbar || scrollableContainerHeight <= 0) return null;
12184
12199
  const trackLen = scrollableContainerHeight;
12185
12200
  const thumbLen = Math.max(
@@ -12237,19 +12252,19 @@ function VirtualizedList(props, ref) {
12237
12252
  ] });
12238
12253
  }
12239
12254
  __name(VirtualizedList, "VirtualizedList");
12240
- var VirtualizedListWithForwardRef = (0, import_react31.forwardRef)(VirtualizedList);
12255
+ var VirtualizedListWithForwardRef = (0, import_react32.forwardRef)(VirtualizedList);
12241
12256
  VirtualizedList.displayName = "VirtualizedList";
12242
12257
 
12243
12258
  // packages/cli/src/ui/hooks/use-frame-coalesced-flush.ts
12244
12259
  init_esbuild_shims();
12245
- var import_react32 = __toESM(require_react(), 1);
12260
+ var import_react33 = __toESM(require_react(), 1);
12246
12261
  var SCROLL_FRAME_MS = 16;
12247
12262
  function useFrameCoalescedFlush(flush, frameMs = SCROLL_FRAME_MS) {
12248
- const timer = (0, import_react32.useRef)(null);
12249
- const dirty = (0, import_react32.useRef)(false);
12250
- const flushRef = (0, import_react32.useRef)(flush);
12263
+ const timer = (0, import_react33.useRef)(null);
12264
+ const dirty = (0, import_react33.useRef)(false);
12265
+ const flushRef = (0, import_react33.useRef)(flush);
12251
12266
  flushRef.current = flush;
12252
- const closeWindow = (0, import_react32.useCallback)(() => {
12267
+ const closeWindow = (0, import_react33.useCallback)(() => {
12253
12268
  timer.current = null;
12254
12269
  if (!dirty.current) {
12255
12270
  return;
@@ -12258,7 +12273,7 @@ function useFrameCoalescedFlush(flush, frameMs = SCROLL_FRAME_MS) {
12258
12273
  flushRef.current();
12259
12274
  timer.current = setTimeout(closeWindow, frameMs);
12260
12275
  }, [frameMs]);
12261
- const schedule = (0, import_react32.useCallback)(() => {
12276
+ const schedule = (0, import_react33.useCallback)(() => {
12262
12277
  if (timer.current !== null) {
12263
12278
  dirty.current = true;
12264
12279
  return;
@@ -12266,21 +12281,21 @@ function useFrameCoalescedFlush(flush, frameMs = SCROLL_FRAME_MS) {
12266
12281
  flushRef.current();
12267
12282
  timer.current = setTimeout(closeWindow, frameMs);
12268
12283
  }, [closeWindow, frameMs]);
12269
- const cancel = (0, import_react32.useCallback)(() => {
12284
+ const cancel = (0, import_react33.useCallback)(() => {
12270
12285
  dirty.current = false;
12271
12286
  if (timer.current !== null) {
12272
12287
  clearTimeout(timer.current);
12273
12288
  timer.current = null;
12274
12289
  }
12275
12290
  }, []);
12276
- (0, import_react32.useEffect)(() => cancel, [cancel]);
12291
+ (0, import_react33.useEffect)(() => cancel, [cancel]);
12277
12292
  return { schedule, cancel };
12278
12293
  }
12279
12294
  __name(useFrameCoalescedFlush, "useFrameCoalescedFlush");
12280
12295
 
12281
12296
  // packages/cli/src/ui/components/shared/ScrollableList.tsx
12282
12297
  var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
12283
- var ScrollRegionContext = (0, import_react33.createContext)(null);
12298
+ var ScrollRegionContext = (0, import_react34.createContext)(null);
12284
12299
  function getScrollOwner(region, event, direction, pointer) {
12285
12300
  let root = region;
12286
12301
  while (root.parent) root = root.parent;
@@ -12306,9 +12321,9 @@ function getScrollOwner(region, event, direction, pointer) {
12306
12321
  __name(getScrollOwner, "getScrollOwner");
12307
12322
  function ScrollableList(props, ref) {
12308
12323
  const { hasFocus, ...virtualizedListProps } = props;
12309
- const virtualizedListRef = (0, import_react33.useRef)(null);
12310
- const isDraggingScrollbar = (0, import_react33.useRef)(false);
12311
- const getScrollState = (0, import_react33.useCallback)(
12324
+ const virtualizedListRef = (0, import_react34.useRef)(null);
12325
+ const isDraggingScrollbar = (0, import_react34.useRef)(false);
12326
+ const getScrollState = (0, import_react34.useCallback)(
12312
12327
  () => virtualizedListRef.current?.getScrollState() ?? {
12313
12328
  scrollTop: 0,
12314
12329
  scrollHeight: 0,
@@ -12316,9 +12331,9 @@ function ScrollableList(props, ref) {
12316
12331
  },
12317
12332
  []
12318
12333
  );
12319
- const parentRegion = (0, import_react33.useContext)(ScrollRegionContext);
12334
+ const parentRegion = (0, import_react34.useContext)(ScrollRegionContext);
12320
12335
  const { inputEnabled } = useKeypressContext();
12321
- const region = (0, import_react33.useMemo)(
12336
+ const region = (0, import_react34.useMemo)(
12322
12337
  () => ({
12323
12338
  parent: null,
12324
12339
  children: /* @__PURE__ */ new Set(),
@@ -12331,16 +12346,16 @@ function ScrollableList(props, ref) {
12331
12346
  );
12332
12347
  region.parent = parentRegion;
12333
12348
  region.active = hasFocus && inputEnabled !== false;
12334
- (0, import_react33.useEffect)(() => {
12349
+ (0, import_react34.useEffect)(() => {
12335
12350
  parentRegion?.children.add(region);
12336
12351
  return () => {
12337
12352
  parentRegion?.children.delete(region);
12338
12353
  };
12339
12354
  }, [parentRegion, region]);
12340
12355
  const WHEEL_LINES_PER_TICK = 3;
12341
- const pendingWheelDelta = (0, import_react33.useRef)(0);
12342
- const pendingDragRow = (0, import_react33.useRef)(null);
12343
- const applyPendingScroll = (0, import_react33.useCallback)(() => {
12356
+ const pendingWheelDelta = (0, import_react34.useRef)(0);
12357
+ const pendingDragRow = (0, import_react34.useRef)(null);
12358
+ const applyPendingScroll = (0, import_react34.useCallback)(() => {
12344
12359
  const list = virtualizedListRef.current;
12345
12360
  const dragRow = pendingDragRow.current;
12346
12361
  const wheelDelta = pendingWheelDelta.current;
@@ -12356,19 +12371,19 @@ function ScrollableList(props, ref) {
12356
12371
  }
12357
12372
  }, []);
12358
12373
  const { schedule: scheduleScrollFlush, cancel: cancelScrollFlush } = useFrameCoalescedFlush(applyPendingScroll);
12359
- const cancelPendingScroll = (0, import_react33.useCallback)(() => {
12374
+ const cancelPendingScroll = (0, import_react34.useCallback)(() => {
12360
12375
  pendingWheelDelta.current = 0;
12361
12376
  pendingDragRow.current = null;
12362
12377
  cancelScrollFlush();
12363
12378
  }, [cancelScrollFlush]);
12364
- const queueKeyboardScroll = (0, import_react33.useCallback)(
12379
+ const queueKeyboardScroll = (0, import_react34.useCallback)(
12365
12380
  (delta) => {
12366
12381
  pendingWheelDelta.current += delta;
12367
12382
  scheduleScrollFlush();
12368
12383
  },
12369
12384
  [scheduleScrollFlush]
12370
12385
  );
12371
- (0, import_react33.useImperativeHandle)(
12386
+ (0, import_react34.useImperativeHandle)(
12372
12387
  ref,
12373
12388
  () => ({
12374
12389
  scrollBy: /* @__PURE__ */ __name((delta) => queueKeyboardScroll(delta), "scrollBy"),
@@ -12400,7 +12415,7 @@ function ScrollableList(props, ref) {
12400
12415
  [queueKeyboardScroll, cancelPendingScroll, getScrollState]
12401
12416
  );
12402
12417
  useKeypress(
12403
- (0, import_react33.useCallback)(
12418
+ (0, import_react34.useCallback)(
12404
12419
  (key) => {
12405
12420
  const direction = keyMatchers["scrollUp" /* SCROLL_UP */](key) || keyMatchers["pageUp" /* PAGE_UP */](key) || keyMatchers["scrollHome" /* SCROLL_HOME */](key) ? -1 : keyMatchers["scrollDown" /* SCROLL_DOWN */](key) || keyMatchers["pageDown" /* PAGE_DOWN */](key) || keyMatchers["scrollEnd" /* SCROLL_END */](key) ? 1 : 0;
12406
12421
  if (!direction || getScrollOwner(region, key, direction) !== region)
@@ -12429,7 +12444,7 @@ function ScrollableList(props, ref) {
12429
12444
  ),
12430
12445
  { isActive: hasFocus }
12431
12446
  );
12432
- const handleMouseEvent = (0, import_react33.useCallback)(
12447
+ const handleMouseEvent = (0, import_react34.useCallback)(
12433
12448
  (event) => {
12434
12449
  if (!virtualizedListRef.current) return;
12435
12450
  if (event.name === "scroll-up" || event.name === "scroll-down") {
@@ -12467,7 +12482,7 @@ function ScrollableList(props, ref) {
12467
12482
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ScrollRegionContext.Provider, { value: region, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(VirtualizedListWithForwardRef, { ref: virtualizedListRef, ...virtualizedListProps }) });
12468
12483
  }
12469
12484
  __name(ScrollableList, "ScrollableList");
12470
- var ScrollableListWithForwardRef = (0, import_react33.forwardRef)(ScrollableList);
12485
+ var ScrollableListWithForwardRef = (0, import_react34.forwardRef)(ScrollableList);
12471
12486
 
12472
12487
  // packages/cli/src/ui/components/messages/AskUserQuestionDialog.tsx
12473
12488
  var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
@@ -12489,12 +12504,12 @@ function QuestionDialogLayout({
12489
12504
  children,
12490
12505
  renderOverflow
12491
12506
  }) {
12492
- const naturalRef = (0, import_react34.useRef)(null);
12507
+ const naturalRef = (0, import_react35.useRef)(null);
12493
12508
  const { height, hasMeasured } = use_box_metrics_default(
12494
12509
  naturalRef
12495
12510
  );
12496
- const [naturalHeight, setNaturalHeight] = (0, import_react34.useState)(null);
12497
- (0, import_react34.useLayoutEffect)(() => {
12511
+ const [naturalHeight, setNaturalHeight] = (0, import_react35.useState)(null);
12512
+ (0, import_react35.useLayoutEffect)(() => {
12498
12513
  if (hasMeasured && naturalRef.current && height > 0) {
12499
12514
  setNaturalHeight(height);
12500
12515
  }
@@ -12513,14 +12528,14 @@ var AskUserQuestionDialog = /* @__PURE__ */ __name(({
12513
12528
  availableHeight,
12514
12529
  onConfirm
12515
12530
  }) => {
12516
- const [currentQuestionIndex, setCurrentQuestionIndex] = (0, import_react34.useState)(0);
12517
- const [selectedOptions, setSelectedOptions] = (0, import_react34.useState)({});
12518
- const [customInputValues, setCustomInputValues] = (0, import_react34.useState)({});
12519
- const customInputValuesRef = (0, import_react34.useRef)({});
12520
- const [selectedIndex, setSelectedIndex] = (0, import_react34.useState)(0);
12521
- const [isCompactContentVisible, setIsCompactContentVisible] = (0, import_react34.useState)(false);
12522
- const [multiSelectedOptions, setMultiSelectedOptions] = (0, import_react34.useState)({});
12523
- const [customInputChecked, setCustomInputChecked] = (0, import_react34.useState)({});
12531
+ const [currentQuestionIndex, setCurrentQuestionIndex] = (0, import_react35.useState)(0);
12532
+ const [selectedOptions, setSelectedOptions] = (0, import_react35.useState)({});
12533
+ const [customInputValues, setCustomInputValues] = (0, import_react35.useState)({});
12534
+ const customInputValuesRef = (0, import_react35.useRef)({});
12535
+ const [selectedIndex, setSelectedIndex] = (0, import_react35.useState)(0);
12536
+ const [isCompactContentVisible, setIsCompactContentVisible] = (0, import_react35.useState)(false);
12537
+ const [multiSelectedOptions, setMultiSelectedOptions] = (0, import_react35.useState)({});
12538
+ const [customInputChecked, setCustomInputChecked] = (0, import_react35.useState)({});
12524
12539
  const hasMultipleQuestions = confirmationDetails.questions.length > 1;
12525
12540
  const totalTabs = hasMultipleQuestions ? confirmationDetails.questions.length + 1 : confirmationDetails.questions.length;
12526
12541
  const isSubmitTab = hasMultipleQuestions && currentQuestionIndex === totalTabs - 1;
@@ -13199,20 +13214,20 @@ var ToolConfirmationMessage = /* @__PURE__ */ __name(({
13199
13214
  const { onConfirm } = confirmationDetails;
13200
13215
  const summarize = useDisplayMode().summaryActive && !compactMode;
13201
13216
  const intentSentence = intent ? oneLine(intent) : "";
13202
- const [showChanges, setShowChanges] = (0, import_react35.useState)(false);
13217
+ const [showChanges, setShowChanges] = (0, import_react36.useState)(false);
13203
13218
  const autoModeFallback = confirmationDetails.autoModeFallback;
13204
13219
  const offersSwitchToDefault = autoModeFallback?.reason === "classifier_unavailable" || autoModeFallback?.reason === "consecutive_unavailable";
13205
13220
  const hidesAlwaysAllow = "hideAlwaysAllow" in confirmationDetails && confirmationDetails.hideAlwaysAllow === true;
13206
13221
  const settings = useSettings();
13207
13222
  const preferredEditor = settings.merged.general?.preferredEditor;
13208
13223
  const hideModify = confirmationDetails.type === "edit" ? confirmationDetails.hideModify : false;
13209
- const editorAvailable = (0, import_react35.useMemo)(
13224
+ const editorAvailable = (0, import_react36.useMemo)(
13210
13225
  () => !compactMode && confirmationDetails.type === "edit" && !hideModify && preferredEditor !== void 0 && isEditorAvailable(preferredEditor),
13211
13226
  [compactMode, confirmationDetails.type, hideModify, preferredEditor]
13212
13227
  );
13213
- const [ideClient, setIdeClient] = (0, import_react35.useState)(null);
13214
- const [isDiffingEnabled, setIsDiffingEnabled] = (0, import_react35.useState)(false);
13215
- (0, import_react35.useEffect)(() => {
13228
+ const [ideClient, setIdeClient] = (0, import_react36.useState)(null);
13229
+ const [isDiffingEnabled, setIsDiffingEnabled] = (0, import_react36.useState)(false);
13230
+ (0, import_react36.useEffect)(() => {
13216
13231
  let isMounted = true;
13217
13232
  if (config.getIdeMode()) {
13218
13233
  const getIdeClient = /* @__PURE__ */ __name(async () => {
@@ -13245,7 +13260,7 @@ var ToolConfirmationMessage = /* @__PURE__ */ __name(({
13245
13260
  }, "handleConfirm");
13246
13261
  const isTrustedFolder = config.isTrustedFolder();
13247
13262
  const launchEditor = useLaunchEditor();
13248
- const [planViewError, setPlanViewError] = (0, import_react35.useState)(null);
13263
+ const [planViewError, setPlanViewError] = (0, import_react36.useState)(null);
13249
13264
  const openFullPlanInEditor = /* @__PURE__ */ __name(() => {
13250
13265
  if (confirmationDetails.type !== "plan") return;
13251
13266
  setPlanViewError(null);
@@ -13818,7 +13833,7 @@ var PlanSummaryDisplay = /* @__PURE__ */ __name(({
13818
13833
 
13819
13834
  // packages/cli/src/ui/components/ShellInputPrompt.tsx
13820
13835
  init_esbuild_shims();
13821
- var import_react36 = __toESM(require_react(), 1);
13836
+ var import_react37 = __toESM(require_react(), 1);
13822
13837
 
13823
13838
  // packages/cli/src/ui/hooks/keyToAnsi.ts
13824
13839
  init_esbuild_shims();
@@ -13881,7 +13896,7 @@ var ShellInputPrompt = /* @__PURE__ */ __name(({
13881
13896
  activeShellPtyId,
13882
13897
  focus = true
13883
13898
  }) => {
13884
- const handleShellInputSubmit = (0, import_react36.useCallback)(
13899
+ const handleShellInputSubmit = (0, import_react37.useCallback)(
13885
13900
  (input) => {
13886
13901
  if (activeShellPtyId) {
13887
13902
  ShellExecutionService.writeToPty(activeShellPtyId, input);
@@ -13889,7 +13904,7 @@ var ShellInputPrompt = /* @__PURE__ */ __name(({
13889
13904
  },
13890
13905
  [activeShellPtyId]
13891
13906
  );
13892
- const handleInput = (0, import_react36.useCallback)(
13907
+ const handleInput = (0, import_react37.useCallback)(
13893
13908
  (key) => {
13894
13909
  if (!focus || !activeShellPtyId) {
13895
13910
  return;
@@ -13980,7 +13995,7 @@ function sliceTextForMaxHeight(text, maxHeight, maxWidth) {
13980
13995
  };
13981
13996
  }
13982
13997
  __name(sliceTextForMaxHeight, "sliceTextForMaxHeight");
13983
- var useResultDisplayRenderer = /* @__PURE__ */ __name((resultDisplay) => import_react37.default.useMemo(() => {
13998
+ var useResultDisplayRenderer = /* @__PURE__ */ __name((resultDisplay) => import_react38.default.useMemo(() => {
13984
13999
  if (!resultDisplay) {
13985
14000
  return { type: "none" };
13986
14001
  }
@@ -14259,21 +14274,21 @@ var ToolMessage = /* @__PURE__ */ __name(({
14259
14274
  }) => {
14260
14275
  const settings = useSettings();
14261
14276
  const isThisShellFocused = (name === SHELL_COMMAND_NAME || name === SHELL_NAME) && status === "Executing" /* Executing */ && ptyId === activeShellPtyId && embeddedShellFocused;
14262
- const [lastUpdateTime, setLastUpdateTime] = import_react37.default.useState(null);
14263
- const [userHasFocused, setUserHasFocused] = import_react37.default.useState(false);
14264
- const [showFocusHint, setShowFocusHint] = import_react37.default.useState(false);
14265
- import_react37.default.useEffect(() => {
14277
+ const [lastUpdateTime, setLastUpdateTime] = import_react38.default.useState(null);
14278
+ const [userHasFocused, setUserHasFocused] = import_react38.default.useState(false);
14279
+ const [showFocusHint, setShowFocusHint] = import_react38.default.useState(false);
14280
+ import_react38.default.useEffect(() => {
14266
14281
  if (resultDisplay) {
14267
14282
  setLastUpdateTime(/* @__PURE__ */ new Date());
14268
14283
  }
14269
14284
  }, [resultDisplay]);
14270
- const shellTimeoutMs = import_react37.default.useMemo(() => {
14285
+ const shellTimeoutMs = import_react38.default.useMemo(() => {
14271
14286
  if (typeof resultDisplay === "object" && resultDisplay !== null && "ansiOutput" in resultDisplay) {
14272
14287
  return resultDisplay.timeoutMs;
14273
14288
  }
14274
14289
  return void 0;
14275
14290
  }, [resultDisplay]);
14276
- import_react37.default.useEffect(() => {
14291
+ import_react38.default.useEffect(() => {
14277
14292
  if (!lastUpdateTime) {
14278
14293
  return;
14279
14294
  }
@@ -14282,7 +14297,7 @@ var ToolMessage = /* @__PURE__ */ __name(({
14282
14297
  }, 5e3);
14283
14298
  return () => clearTimeout(timer);
14284
14299
  }, [lastUpdateTime]);
14285
- import_react37.default.useEffect(() => {
14300
+ import_react38.default.useEffect(() => {
14286
14301
  if (isThisShellFocused) {
14287
14302
  setUserHasFocused(true);
14288
14303
  }
@@ -14307,7 +14322,7 @@ var ToolMessage = /* @__PURE__ */ __name(({
14307
14322
  renderOutputAsMarkdown = false;
14308
14323
  }
14309
14324
  const usingDetailedDisplay = fullDetail && isCollapsibleTool(name) && typeof detailedDisplay === "string" && detailedDisplay.length > 0;
14310
- const sanitizedDetailedDisplay = import_react37.default.useMemo(
14325
+ const sanitizedDetailedDisplay = import_react38.default.useMemo(
14311
14326
  () => usingDetailedDisplay && typeof detailedDisplay === "string" ? sanitizeTerminalText(detailedDisplay) : detailedDisplay,
14312
14327
  [detailedDisplay, usingDetailedDisplay]
14313
14328
  );
@@ -14324,7 +14339,7 @@ var ToolMessage = /* @__PURE__ */ __name(({
14324
14339
  effectiveResultDisplay
14325
14340
  );
14326
14341
  const shouldCollapseResult = !forceShowResult && status === "Success" /* Success */ && isCollapsibleTool(name) && (effectiveDisplayRenderer.type === "string" || effectiveDisplayRenderer.type === "ansi");
14327
- const inlineToolArgs = import_react37.default.useMemo(
14342
+ const inlineToolArgs = import_react38.default.useMemo(
14328
14343
  () => showToolCallArgs ? formatInlineToolArgs(
14329
14344
  args,
14330
14345
  description,
@@ -14572,7 +14587,7 @@ var ToolInfo = /* @__PURE__ */ __name(({
14572
14587
  hideDescription,
14573
14588
  truncate: truncate2
14574
14589
  }) => {
14575
- const nameColor = import_react37.default.useMemo(() => {
14590
+ const nameColor = import_react38.default.useMemo(() => {
14576
14591
  switch (emphasis) {
14577
14592
  case "high":
14578
14593
  return theme.text.primary;
@@ -14608,7 +14623,7 @@ var TrailingIndicator = /* @__PURE__ */ __name(() => /* @__PURE__ */ (0, import_
14608
14623
 
14609
14624
  // packages/cli/src/ui/components/messages/InlineParallelAgentsDisplay.tsx
14610
14625
  init_esbuild_shims();
14611
- var import_react38 = __toESM(require_react(), 1);
14626
+ var import_react39 = __toESM(require_react(), 1);
14612
14627
  var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
14613
14628
  function deriveAgentId(toolCall, resultDisplay) {
14614
14629
  return `${resultDisplay.subagentName}-${toolCall.callId}`;
@@ -14669,8 +14684,8 @@ function truncateMiddle(input, max) {
14669
14684
  }
14670
14685
  __name(truncateMiddle, "truncateMiddle");
14671
14686
  var InlineParallelAgentsDisplay = /* @__PURE__ */ __name(({ toolCalls, contentWidth, totalAgentCount, availableTerminalHeight }) => {
14672
- const config = (0, import_react38.useContext)(ConfigContext);
14673
- const agentEntries = (0, import_react38.useMemo)(() => {
14687
+ const config = (0, import_react39.useContext)(ConfigContext);
14688
+ const agentEntries = (0, import_react39.useMemo)(() => {
14674
14689
  const out = [];
14675
14690
  for (const tc of toolCalls) {
14676
14691
  if (isAgentResult(tc.resultDisplay)) {
@@ -14679,19 +14694,19 @@ var InlineParallelAgentsDisplay = /* @__PURE__ */ __name(({ toolCalls, contentWi
14679
14694
  }
14680
14695
  return out;
14681
14696
  }, [toolCalls]);
14682
- const [now, setNow] = (0, import_react38.useState)(() => Date.now());
14683
- const hasLiveAgent = (0, import_react38.useMemo)(
14697
+ const [now, setNow] = (0, import_react39.useState)(() => Date.now());
14698
+ const hasLiveAgent = (0, import_react39.useMemo)(
14684
14699
  () => agentEntries.some(
14685
14700
  (e) => e.result.status === "running" || e.result.status === "background"
14686
14701
  ),
14687
14702
  [agentEntries]
14688
14703
  );
14689
- (0, import_react38.useEffect)(() => {
14704
+ (0, import_react39.useEffect)(() => {
14690
14705
  if (!hasLiveAgent) return;
14691
14706
  const id = setInterval(() => setNow(Date.now()), 1e3);
14692
14707
  return () => clearInterval(id);
14693
14708
  }, [hasLiveAgent]);
14694
- const rows = (0, import_react38.useMemo)(() => {
14709
+ const rows = (0, import_react39.useMemo)(() => {
14695
14710
  const registry = config?.getBackgroundTaskRegistry();
14696
14711
  void now;
14697
14712
  return agentEntries.map(({ toolCall, result }) => {
@@ -14879,9 +14894,9 @@ var SummaryToolGroupDisplay = /* @__PURE__ */ __name(({ toolCalls, contentWidth
14879
14894
 
14880
14895
  // packages/cli/src/ui/hooks/use-show-tool-call-args.ts
14881
14896
  init_esbuild_shims();
14882
- var import_react39 = __toESM(require_react(), 1);
14897
+ var import_react40 = __toESM(require_react(), 1);
14883
14898
  function useShowToolCallArgs() {
14884
- return (0, import_react39.useContext)(SettingsContext)?.merged.ui?.showToolCallArgs === true;
14899
+ return (0, import_react40.useContext)(SettingsContext)?.merged.ui?.showToolCallArgs === true;
14885
14900
  }
14886
14901
  __name(useShowToolCallArgs, "useShowToolCallArgs");
14887
14902
 
@@ -14981,33 +14996,33 @@ var ToolGroupMessage = /* @__PURE__ */ __name(({
14981
14996
  const isEmbeddedShellFocused = embeddedShellFocused && toolCalls.some(
14982
14997
  (t2) => t2.ptyId === activeShellPtyId && t2.status === "Executing" /* Executing */
14983
14998
  );
14984
- const toolAwaitingApproval = (0, import_react40.useMemo)(
14999
+ const toolAwaitingApproval = (0, import_react41.useMemo)(
14985
15000
  () => toolCalls.find((tc) => tc.status === "Confirming" /* Confirming */),
14986
15001
  [toolCalls]
14987
15002
  );
14988
- const isMemoryOnlyGroup = (0, import_react40.useMemo)(
15003
+ const isMemoryOnlyGroup = (0, import_react41.useMemo)(
14989
15004
  () => toolCalls.length > 0 && toolCalls.every((t2) => t2.isMemoryOp != null),
14990
15005
  [toolCalls]
14991
15006
  );
14992
- const inlineToolCalls = (0, import_react40.useMemo)(
15007
+ const inlineToolCalls = (0, import_react41.useMemo)(
14993
15008
  () => isPending ? toolCalls.filter(
14994
15009
  (tool) => !isPanelOwnedSubagentTool(tool) || isAgentWithPendingConfirmation(tool.resultDisplay)
14995
15010
  ) : toolCalls,
14996
15011
  [isPending, toolCalls]
14997
15012
  );
14998
- const hasRenderableToolCallArgs = (0, import_react40.useMemo)(
15013
+ const hasRenderableToolCallArgs = (0, import_react41.useMemo)(
14999
15014
  () => showToolCallArgs && inlineToolCalls.some(
15000
15015
  (t2) => t2.args != null && Object.keys(t2.args).length > 0
15001
15016
  ),
15002
15017
  [showToolCallArgs, inlineToolCalls]
15003
15018
  );
15004
- const subagentsAwaitingApproval = (0, import_react40.useMemo)(
15019
+ const subagentsAwaitingApproval = (0, import_react41.useMemo)(
15005
15020
  () => toolCalls.filter(
15006
15021
  (tc) => isAgentWithPendingConfirmation(tc.resultDisplay)
15007
15022
  ),
15008
15023
  [toolCalls]
15009
15024
  );
15010
- const focusedSubagentRef = (0, import_react40.useRef)(null);
15025
+ const focusedSubagentRef = (0, import_react41.useRef)(null);
15011
15026
  const stillPending = subagentsAwaitingApproval.some(
15012
15027
  (tc) => tc.callId === focusedSubagentRef.current
15013
15028
  );
@@ -15015,7 +15030,7 @@ var ToolGroupMessage = /* @__PURE__ */ __name(({
15015
15030
  focusedSubagentRef.current = subagentsAwaitingApproval[0]?.callId ?? null;
15016
15031
  }
15017
15032
  const focusedSubagentCallId = focusedSubagentRef.current;
15018
- const runningSubagentCallId = (0, import_react40.useMemo)(
15033
+ const runningSubagentCallId = (0, import_react41.useMemo)(
15019
15034
  () => toolCalls.find((tc) => isRunningAgent(tc.resultDisplay))?.callId ?? null,
15020
15035
  [toolCalls]
15021
15036
  );
@@ -15263,7 +15278,7 @@ init_esbuild_shims();
15263
15278
 
15264
15279
  // node_modules/ink-link/dist/index.js
15265
15280
  init_esbuild_shims();
15266
- var import_react41 = __toESM(require_react(), 1);
15281
+ var import_react42 = __toESM(require_react(), 1);
15267
15282
  var import_prop_types = __toESM(require_prop_types(), 1);
15268
15283
 
15269
15284
  // node_modules/terminal-link/index.js
@@ -15411,10 +15426,10 @@ terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
15411
15426
  // node_modules/ink-link/dist/index.js
15412
15427
  var Link = /* @__PURE__ */ __name(({ children, url, fallback = true }) => (
15413
15428
  // eslint-disable-line react/function-component-definition
15414
- import_react41.default.createElement(
15429
+ import_react42.default.createElement(
15415
15430
  Transform,
15416
15431
  { transform: /* @__PURE__ */ __name((children2) => terminalLink(children2, url, { fallback }), "transform") },
15417
- import_react41.default.createElement(Text, null, children)
15432
+ import_react42.default.createElement(Text, null, children)
15418
15433
  )
15419
15434
  ), "Link");
15420
15435
  Link.propTypes = {
@@ -15568,7 +15583,7 @@ init_esbuild_shims();
15568
15583
 
15569
15584
  // node_modules/ink-gradient/dist/index.js
15570
15585
  init_esbuild_shims();
15571
- var import_react42 = __toESM(require_react(), 1);
15586
+ var import_react43 = __toESM(require_react(), 1);
15572
15587
  var import_prop_types2 = __toESM(require_prop_types(), 1);
15573
15588
  var import_gradient_string = __toESM(require_gradient_string(), 1);
15574
15589
  var Gradient = /* @__PURE__ */ __name((props) => {
@@ -15584,7 +15599,7 @@ var Gradient = /* @__PURE__ */ __name((props) => {
15584
15599
  throw new Error("Either `name` or `colors` prop must be provided");
15585
15600
  }
15586
15601
  const applyGradient = /* @__PURE__ */ __name((text) => gradient.multiline(stripAnsi(text)), "applyGradient");
15587
- return import_react42.default.createElement(Transform, { transform: applyGradient }, props.children);
15602
+ return import_react43.default.createElement(Transform, { transform: applyGradient }, props.children);
15588
15603
  }, "Gradient");
15589
15604
  Gradient.propTypes = {
15590
15605
  children: import_prop_types2.default.oneOfType([
@@ -16447,7 +16462,7 @@ var SessionSummaryDisplay = /* @__PURE__ */ __name(({
16447
16462
 
16448
16463
  // packages/cli/src/ui/components/Help.tsx
16449
16464
  init_esbuild_shims();
16450
- var import_react43 = __toESM(require_react(), 1);
16465
+ var import_react44 = __toESM(require_react(), 1);
16451
16466
  var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1);
16452
16467
  var DEFAULT_WIDTH = 100;
16453
16468
  var KEY_COL_WIDTH = 20;
@@ -16468,7 +16483,7 @@ var Help = /* @__PURE__ */ __name(({
16468
16483
  }) => {
16469
16484
  const safeWidth = Math.max(72, width);
16470
16485
  const bodyWidth = safeWidth - 6;
16471
- const handleTabChange = (0, import_react43.useCallback)(
16486
+ const handleTabChange = (0, import_react44.useCallback)(
16472
16487
  (direction) => {
16473
16488
  const currentIndex = TAB_DEFS.findIndex((tab) => tab.tab === activeTab);
16474
16489
  const nextIndex = (currentIndex + direction + TAB_DEFS.length) % TAB_DEFS.length;
@@ -16607,20 +16622,20 @@ var ShortcutRow = /* @__PURE__ */ __name(({ shortcutKey, desc, width }) => /* @_
16607
16622
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Text, { color: theme.text.primary, wrap: "truncate", children: truncateText2(desc, width - KEY_COL_WIDTH - 1) })
16608
16623
  ] }), "ShortcutRow");
16609
16624
  var CommandsHelp = /* @__PURE__ */ __name(({ commands, width, customOnly, isInteractive }) => {
16610
- const groups = (0, import_react43.useMemo)(
16625
+ const groups = (0, import_react44.useMemo)(
16611
16626
  () => groupCommands(commands, customOnly),
16612
16627
  [commands, customOnly]
16613
16628
  );
16614
- const lines = (0, import_react43.useMemo)(
16629
+ const lines = (0, import_react44.useMemo)(
16615
16630
  () => renderCommandLines(groups, width),
16616
16631
  [groups, width]
16617
16632
  );
16618
16633
  const maxScroll = Math.max(0, lines.length - COMMAND_LIST_VISIBLE_LINES);
16619
- const [scrollOffset, setScrollOffset] = (0, import_react43.useState)(0);
16620
- (0, import_react43.useEffect)(() => {
16634
+ const [scrollOffset, setScrollOffset] = (0, import_react44.useState)(0);
16635
+ (0, import_react44.useEffect)(() => {
16621
16636
  setScrollOffset(0);
16622
16637
  }, [customOnly, commands]);
16623
- (0, import_react43.useEffect)(() => {
16638
+ (0, import_react44.useEffect)(() => {
16624
16639
  setScrollOffset((offset) => Math.min(offset, maxScroll));
16625
16640
  }, [maxScroll]);
16626
16641
  useKeypress(
@@ -16808,21 +16823,21 @@ init_esbuild_shims();
16808
16823
 
16809
16824
  // packages/cli/src/ui/contexts/UIStateContext.tsx
16810
16825
  init_esbuild_shims();
16811
- var import_react50 = __toESM(require_react(), 1);
16826
+ var import_react51 = __toESM(require_react(), 1);
16812
16827
 
16813
16828
  // packages/cli/src/ui/hooks/useHistoryManager.ts
16814
16829
  init_esbuild_shims();
16815
- var import_react44 = __toESM(require_react(), 1);
16830
+ var import_react45 = __toESM(require_react(), 1);
16816
16831
  import process2 from "node:process";
16817
16832
  var debugLogger8 = createDebugLogger("HISTORY_MANAGER");
16818
16833
  var UI_COMPACT_CLEARED_MESSAGE = "[Old tool result content cleared]";
16819
16834
  var UI_COMPACT_CLEARED_IMAGE_MESSAGE = "[Old assistant image content cleared]";
16820
16835
  var UI_COMPACT_KEEP_RECENT = 20;
16821
16836
  function useHistory() {
16822
- const [history, setHistory] = (0, import_react44.useState)([]);
16823
- const messageIdCounterRef = (0, import_react44.useRef)(0);
16824
- const lastMessageIdRef = (0, import_react44.useRef)(0);
16825
- const getNextMessageId = (0, import_react44.useCallback)((baseTimestamp) => {
16837
+ const [history, setHistory] = (0, import_react45.useState)([]);
16838
+ const messageIdCounterRef = (0, import_react45.useRef)(0);
16839
+ const lastMessageIdRef = (0, import_react45.useRef)(0);
16840
+ const getNextMessageId = (0, import_react45.useCallback)((baseTimestamp) => {
16826
16841
  messageIdCounterRef.current += 1;
16827
16842
  const id = Math.max(
16828
16843
  baseTimestamp + messageIdCounterRef.current,
@@ -16831,7 +16846,7 @@ function useHistory() {
16831
16846
  lastMessageIdRef.current = id;
16832
16847
  return id;
16833
16848
  }, []);
16834
- const loadHistory = (0, import_react44.useCallback)((newHistory) => {
16849
+ const loadHistory = (0, import_react45.useCallback)((newHistory) => {
16835
16850
  setHistory(newHistory);
16836
16851
  let maxLoadedId = 0;
16837
16852
  for (const item of newHistory) {
@@ -16845,7 +16860,7 @@ function useHistory() {
16845
16860
  );
16846
16861
  lastMessageIdRef.current = Math.max(lastMessageIdRef.current, maxLoadedId);
16847
16862
  }, []);
16848
- const addItem = (0, import_react44.useCallback)(
16863
+ const addItem = (0, import_react45.useCallback)(
16849
16864
  (itemData, baseTimestamp) => {
16850
16865
  const id = getNextMessageId(baseTimestamp);
16851
16866
  const newItem = { ...itemData, id };
@@ -16874,7 +16889,7 @@ function useHistory() {
16874
16889
  },
16875
16890
  [getNextMessageId]
16876
16891
  );
16877
- const updateItem = (0, import_react44.useCallback)(
16892
+ const updateItem = (0, import_react45.useCallback)(
16878
16893
  (id, updates) => {
16879
16894
  setHistory((prevHistory) => {
16880
16895
  let updated = false;
@@ -16897,7 +16912,7 @@ function useHistory() {
16897
16912
  },
16898
16913
  []
16899
16914
  );
16900
- const clearItems = (0, import_react44.useCallback)(() => {
16915
+ const clearItems = (0, import_react45.useCallback)(() => {
16901
16916
  if (debugLogger8.isEnabled()) {
16902
16917
  debugLogger8.debug(
16903
16918
  `[CLEAR_HISTORY] Clearing history, memory before=${(process2.memoryUsage().heapUsed / 1024 / 1024).toFixed(1)}MB`
@@ -16907,13 +16922,13 @@ function useHistory() {
16907
16922
  messageIdCounterRef.current = 0;
16908
16923
  lastMessageIdRef.current = 0;
16909
16924
  }, []);
16910
- const truncateToItem = (0, import_react44.useCallback)((itemId) => {
16925
+ const truncateToItem = (0, import_react45.useCallback)((itemId) => {
16911
16926
  setHistory((prev) => {
16912
16927
  const index = prev.findIndex((h) => h.id === itemId);
16913
16928
  return index === -1 ? prev : prev.slice(0, index);
16914
16929
  });
16915
16930
  }, []);
16916
- const compactOldItems = (0, import_react44.useCallback)(() => {
16931
+ const compactOldItems = (0, import_react45.useCallback)(() => {
16917
16932
  setHistory((prev) => {
16918
16933
  if (prev.length === 0) return prev;
16919
16934
  let thoughtRemoved = 0;
@@ -17007,7 +17022,7 @@ ${UI_COMPACT_CLEARED_IMAGE_MESSAGE}` : UI_COMPACT_CLEARED_IMAGE_MESSAGE,
17007
17022
  return thoughtRemoved > 0 || toolGroupsCompacted > 0 || assistantImageItemsCompacted > 0 ? next : prev;
17008
17023
  });
17009
17024
  }, []);
17010
- return (0, import_react44.useMemo)(
17025
+ return (0, import_react45.useMemo)(
17011
17026
  () => ({
17012
17027
  history,
17013
17028
  addItem,
@@ -17032,7 +17047,7 @@ __name(useHistory, "useHistory");
17032
17047
 
17033
17048
  // packages/cli/src/ui/contexts/UIActionsContext.tsx
17034
17049
  init_esbuild_shims();
17035
- var import_react47 = __toESM(require_react(), 1);
17050
+ var import_react48 = __toESM(require_react(), 1);
17036
17051
 
17037
17052
  // packages/cli/src/ui/IdeIntegrationNudge.tsx
17038
17053
  init_esbuild_shims();
@@ -17174,7 +17189,7 @@ __name(CommandFormatMigrationNudge, "CommandFormatMigrationNudge");
17174
17189
 
17175
17190
  // packages/cli/src/ui/components/FolderTrustDialog.tsx
17176
17191
  init_esbuild_shims();
17177
- var import_react45 = __toESM(require_react(), 1);
17192
+ var import_react46 = __toESM(require_react(), 1);
17178
17193
  import * as process3 from "node:process";
17179
17194
  import * as path4 from "node:path";
17180
17195
  var import_jsx_runtime42 = __toESM(require_jsx_runtime(), 1);
@@ -17182,7 +17197,7 @@ var FolderTrustDialog = /* @__PURE__ */ __name(({
17182
17197
  onSelect,
17183
17198
  isRestarting
17184
17199
  }) => {
17185
- (0, import_react45.useEffect)(() => {
17200
+ (0, import_react46.useEffect)(() => {
17186
17201
  const doRelaunch = /* @__PURE__ */ __name(async () => {
17187
17202
  if (isRestarting) {
17188
17203
  setTimeout(async () => {
@@ -17310,16 +17325,16 @@ var MCPServerApprovalDialog = /* @__PURE__ */ __name(({ serverName, summary, sou
17310
17325
 
17311
17326
  // packages/cli/src/ui/hooks/useArenaCommand.ts
17312
17327
  init_esbuild_shims();
17313
- var import_react46 = __toESM(require_react(), 1);
17328
+ var import_react47 = __toESM(require_react(), 1);
17314
17329
  function useArenaCommand() {
17315
- const [activeArenaDialog, setActiveArenaDialog] = (0, import_react46.useState)(null);
17316
- const openArenaDialog = (0, import_react46.useCallback)(
17330
+ const [activeArenaDialog, setActiveArenaDialog] = (0, import_react47.useState)(null);
17331
+ const openArenaDialog = (0, import_react47.useCallback)(
17317
17332
  (type) => {
17318
17333
  setActiveArenaDialog(type);
17319
17334
  },
17320
17335
  []
17321
17336
  );
17322
- const closeArenaDialog = (0, import_react46.useCallback)(() => {
17337
+ const closeArenaDialog = (0, import_react47.useCallback)(() => {
17323
17338
  setActiveArenaDialog(null);
17324
17339
  }, []);
17325
17340
  return {
@@ -17331,9 +17346,9 @@ function useArenaCommand() {
17331
17346
  __name(useArenaCommand, "useArenaCommand");
17332
17347
 
17333
17348
  // packages/cli/src/ui/contexts/UIActionsContext.tsx
17334
- var UIActionsContext = (0, import_react47.createContext)(null);
17349
+ var UIActionsContext = (0, import_react48.createContext)(null);
17335
17350
  var useUIActions = /* @__PURE__ */ __name(() => {
17336
- const context = (0, import_react47.useContext)(UIActionsContext);
17351
+ const context = (0, import_react48.useContext)(UIActionsContext);
17337
17352
  if (!context) {
17338
17353
  throw new Error("useUIActions must be used within a UIActionsProvider");
17339
17354
  }
@@ -17342,16 +17357,16 @@ var useUIActions = /* @__PURE__ */ __name(() => {
17342
17357
 
17343
17358
  // packages/cli/src/ui/hooks/useIdeTrustListener.ts
17344
17359
  init_esbuild_shims();
17345
- var import_react48 = __toESM(require_react(), 1);
17360
+ var import_react49 = __toESM(require_react(), 1);
17346
17361
  function useIdeTrustListener(enabled = true) {
17347
17362
  const settings = useSettings();
17348
- const [connectionStatus, setConnectionStatus] = (0, import_react48.useState)(
17363
+ const [connectionStatus, setConnectionStatus] = (0, import_react49.useState)(
17349
17364
  "disconnected" /* Disconnected */
17350
17365
  );
17351
- const previousTrust = (0, import_react48.useRef)(void 0);
17352
- const [restartReason, setRestartReason] = (0, import_react48.useState)("NONE");
17353
- const [needsRestart, setNeedsRestart] = (0, import_react48.useState)(false);
17354
- const subscribe2 = (0, import_react48.useCallback)(
17366
+ const previousTrust = (0, import_react49.useRef)(void 0);
17367
+ const [restartReason, setRestartReason] = (0, import_react49.useState)("NONE");
17368
+ const [needsRestart, setNeedsRestart] = (0, import_react49.useState)(false);
17369
+ const subscribe2 = (0, import_react49.useCallback)(
17355
17370
  (onStoreChange) => {
17356
17371
  if (!enabled) return () => {
17357
17372
  };
@@ -17386,8 +17401,8 @@ function useIdeTrustListener(enabled = true) {
17386
17401
  }
17387
17402
  return ideContextStore.get()?.workspaceState?.isTrusted;
17388
17403
  }, "getSnapshot");
17389
- const isIdeTrusted = (0, import_react48.useSyncExternalStore)(subscribe2, getSnapshot);
17390
- (0, import_react48.useEffect)(() => {
17404
+ const isIdeTrusted = (0, import_react49.useSyncExternalStore)(subscribe2, getSnapshot);
17405
+ (0, import_react49.useEffect)(() => {
17391
17406
  const currentTrust = isWorkspaceTrusted(settings.merged).isTrusted;
17392
17407
  if (previousTrust.current !== void 0 && previousTrust.current !== currentTrust) {
17393
17408
  setNeedsRestart(true);
@@ -17400,7 +17415,7 @@ __name(useIdeTrustListener, "useIdeTrustListener");
17400
17415
 
17401
17416
  // packages/cli/src/ui/hooks/useProviderUpdates.ts
17402
17417
  init_esbuild_shims();
17403
- var import_react49 = __toESM(require_react(), 1);
17418
+ var import_react50 = __toESM(require_react(), 1);
17404
17419
  var LATER_COOLDOWN_MS = 24 * 60 * 60 * 1e3;
17405
17420
  function getProviderMetadata(settings, metadataKey) {
17406
17421
  const mergedSettings = settings.merged;
@@ -17505,9 +17520,9 @@ function findAllPendingUpdates(settings, currentModel) {
17505
17520
  }
17506
17521
  __name(findAllPendingUpdates, "findAllPendingUpdates");
17507
17522
  function useProviderUpdates(settings, config, addItem) {
17508
- const [updateRequest, setUpdateRequest] = (0, import_react49.useState)();
17509
- const migrated = (0, import_react49.useRef)(false);
17510
- const executeUpdate = (0, import_react49.useCallback)(
17523
+ const [updateRequest, setUpdateRequest] = (0, import_react50.useState)();
17524
+ const migrated = (0, import_react50.useRef)(false);
17525
+ const executeUpdate = (0, import_react50.useCallback)(
17511
17526
  async (pending) => {
17512
17527
  try {
17513
17528
  const providerCfg = pending.provider;
@@ -17608,7 +17623,7 @@ function useProviderUpdates(settings, config, addItem) {
17608
17623
  },
17609
17624
  [settings, config, addItem]
17610
17625
  );
17611
- const checkForUpdates = (0, import_react49.useCallback)(() => {
17626
+ const checkForUpdates = (0, import_react50.useCallback)(() => {
17612
17627
  if (!migrated.current) {
17613
17628
  migrated.current = true;
17614
17629
  migrateProviderMetadata(settings);
@@ -17670,10 +17685,10 @@ function useProviderUpdates(settings, config, addItem) {
17670
17685
  }, "onConfirm")
17671
17686
  });
17672
17687
  }, [settings, config, executeUpdate, addItem]);
17673
- (0, import_react49.useEffect)(() => {
17688
+ (0, import_react50.useEffect)(() => {
17674
17689
  checkForUpdates();
17675
17690
  }, [checkForUpdates]);
17676
- const dismissProviderUpdate = (0, import_react49.useCallback)(() => {
17691
+ const dismissProviderUpdate = (0, import_react50.useCallback)(() => {
17677
17692
  setUpdateRequest(void 0);
17678
17693
  }, []);
17679
17694
  return {
@@ -17684,9 +17699,9 @@ function useProviderUpdates(settings, config, addItem) {
17684
17699
  __name(useProviderUpdates, "useProviderUpdates");
17685
17700
 
17686
17701
  // packages/cli/src/ui/contexts/UIStateContext.tsx
17687
- var UIStateContext = (0, import_react50.createContext)(null);
17702
+ var UIStateContext = (0, import_react51.createContext)(null);
17688
17703
  var useUIState = /* @__PURE__ */ __name(() => {
17689
- const context = (0, import_react50.useContext)(UIStateContext);
17704
+ const context = (0, import_react51.useContext)(UIStateContext);
17690
17705
  if (!context) {
17691
17706
  throw new Error("useUIState must be used within a UIStateProvider");
17692
17707
  }
@@ -18923,7 +18938,7 @@ var InsightProgressMessage = /* @__PURE__ */ __name(({
18923
18938
 
18924
18939
  // packages/cli/src/ui/components/messages/BtwMessage.tsx
18925
18940
  init_esbuild_shims();
18926
- var import_react51 = __toESM(require_react(), 1);
18941
+ var import_react52 = __toESM(require_react(), 1);
18927
18942
  var import_jsx_runtime52 = __toESM(require_jsx_runtime(), 1);
18928
18943
  var BTW_SELF_CHROME = 4;
18929
18944
  function normalizeCodeFences(text) {
@@ -18971,11 +18986,11 @@ var BtwMessageInternal = /* @__PURE__ */ __name(({
18971
18986
  }
18972
18987
  );
18973
18988
  }, "BtwMessageInternal");
18974
- var BtwMessage = import_react51.default.memo(BtwMessageInternal);
18989
+ var BtwMessage = import_react52.default.memo(BtwMessageInternal);
18975
18990
 
18976
18991
  // packages/cli/src/ui/components/messages/AdvisorMessage.tsx
18977
18992
  init_esbuild_shims();
18978
- var import_react52 = __toESM(require_react(), 1);
18993
+ var import_react53 = __toESM(require_react(), 1);
18979
18994
  var import_jsx_runtime53 = __toESM(require_jsx_runtime(), 1);
18980
18995
  var ADVISOR_SELF_CHROME = 4;
18981
18996
  var AdvisorMessageInternal = /* @__PURE__ */ __name(({
@@ -19011,7 +19026,7 @@ var AdvisorMessageInternal = /* @__PURE__ */ __name(({
19011
19026
  }
19012
19027
  );
19013
19028
  }, "AdvisorMessageInternal");
19014
- var AdvisorMessage = import_react52.default.memo(AdvisorMessageInternal);
19029
+ var AdvisorMessage = import_react53.default.memo(AdvisorMessageInternal);
19015
19030
 
19016
19031
  // packages/cli/src/ui/components/messages/MemorySavedMessage.tsx
19017
19032
  init_esbuild_shims();
@@ -19140,7 +19155,7 @@ __name(padRight, "padRight");
19140
19155
 
19141
19156
  // packages/cli/src/ui/components/messages/GoalStatusMessage.tsx
19142
19157
  init_esbuild_shims();
19143
- var import_react53 = __toESM(require_react(), 1);
19158
+ var import_react54 = __toESM(require_react(), 1);
19144
19159
 
19145
19160
  // packages/cli/src/ui/utils/goal-card-view.ts
19146
19161
  init_esbuild_shims();
@@ -19722,18 +19737,18 @@ var GoalStatusMessageInternal = /* @__PURE__ */ __name((props) => {
19722
19737
  ] })
19723
19738
  ] });
19724
19739
  }, "GoalStatusMessageInternal");
19725
- var GoalStatusMessage = import_react53.default.memo(GoalStatusMessageInternal);
19740
+ var GoalStatusMessage = import_react54.default.memo(GoalStatusMessageInternal);
19726
19741
 
19727
19742
  // packages/cli/src/ui/contexts/ToolDetailsExpandedContext.tsx
19728
19743
  init_esbuild_shims();
19729
- var import_react54 = __toESM(require_react(), 1);
19744
+ var import_react55 = __toESM(require_react(), 1);
19730
19745
  var EMPTY_IDS2 = /* @__PURE__ */ new Set();
19731
- var ToolDetailsExpandedContext = (0, import_react54.createContext)({
19746
+ var ToolDetailsExpandedContext = (0, import_react55.createContext)({
19732
19747
  expandedBatchIds: EMPTY_IDS2,
19733
19748
  expandBatch: /* @__PURE__ */ __name(() => {
19734
19749
  }, "expandBatch")
19735
19750
  });
19736
- var useToolDetailsExpanded = /* @__PURE__ */ __name(() => (0, import_react54.useContext)(ToolDetailsExpandedContext), "useToolDetailsExpanded");
19751
+ var useToolDetailsExpanded = /* @__PURE__ */ __name(() => (0, import_react55.useContext)(ToolDetailsExpandedContext), "useToolDetailsExpanded");
19737
19752
  var ToolDetailsExpandedProvider = ToolDetailsExpandedContext.Provider;
19738
19753
 
19739
19754
  // packages/cli/src/ui/utils/hyperlink-at.ts
@@ -19902,8 +19917,8 @@ var ClickableThinkMessage = /* @__PURE__ */ __name(({
19902
19917
  durationMs,
19903
19918
  onToggle
19904
19919
  }) => {
19905
- const ref = (0, import_react55.useRef)(null);
19906
- const pressRef = (0, import_react55.useRef)(null);
19920
+ const ref = (0, import_react56.useRef)(null);
19921
+ const pressRef = (0, import_react56.useRef)(null);
19907
19922
  const { rows: terminalHeight } = useTerminalSize();
19908
19923
  const { stdout } = use_stdout_default();
19909
19924
  const settings = useSettings();
@@ -19912,7 +19927,7 @@ var ClickableThinkMessage = /* @__PURE__ */ __name(({
19912
19927
  const { menu: contextMenu } = useContextMenu();
19913
19928
  const isActive = !isPending && contextMenu === null;
19914
19929
  useMouseEvents(
19915
- (0, import_react55.useCallback)(
19930
+ (0, import_react56.useCallback)(
19916
19931
  (event) => {
19917
19932
  if (!ref.current) return;
19918
19933
  if (event.name === "move") {
@@ -19979,16 +19994,16 @@ function hasRequiredToolInteraction(props) {
19979
19994
  __name(hasRequiredToolInteraction, "hasRequiredToolInteraction");
19980
19995
  var CollapsibleToolGroupMessage = /* @__PURE__ */ __name(({ expansionKey, ...props }) => {
19981
19996
  const settings = useSettings();
19982
- const [locallyExpanded, setLocallyExpanded] = (0, import_react55.useState)(false);
19997
+ const [locallyExpanded, setLocallyExpanded] = (0, import_react56.useState)(false);
19983
19998
  const { expandedBatchIds, expandBatch } = useToolDetailsExpanded();
19984
- const ref = (0, import_react55.useRef)(null);
19985
- const pressRef = (0, import_react55.useRef)(null);
19999
+ const ref = (0, import_react56.useRef)(null);
20000
+ const pressRef = (0, import_react56.useRef)(null);
19986
20001
  const { rows: terminalHeight } = useTerminalSize();
19987
20002
  const mouseTrackingEnabled = useMouseTrackingEnabled();
19988
20003
  const clickable = useVirtualViewport(settings.merged.ui?.useTerminalBuffer) && mouseTrackingEnabled;
19989
20004
  const collapsed = settings.merged.ui?.showToolCallDetails === false && !locallyExpanded && !(expansionKey && expandedBatchIds.has(expansionKey)) && !props.fullDetail && !hasRequiredToolInteraction(props);
19990
20005
  useMouseEvents(
19991
- (0, import_react55.useCallback)(
20006
+ (0, import_react56.useCallback)(
19992
20007
  (event) => {
19993
20008
  if (!collapsed || !ref.current) return;
19994
20009
  if (event.name === "move") {
@@ -20096,7 +20111,7 @@ var HistoryItemDisplayComponent = /* @__PURE__ */ __name(({
20096
20111
  const resolvedThoughtExpanded = fullDetail || (thoughtExpanded ?? (allExpanded || expandedHeadIds.has(thoughtGroupHeadId)));
20097
20112
  const settings = useSettings();
20098
20113
  const showTimestamps = settings.merged.output?.showTimestamps === true;
20099
- const itemForDisplay = (0, import_react55.useMemo)(() => escapeAnsiCtrlCodes(item), [item]);
20114
+ const itemForDisplay = (0, import_react56.useMemo)(() => escapeAnsiCtrlCodes(item), [item]);
20100
20115
  const contentWidth = terminalWidth - 4;
20101
20116
  const boxWidth = mainAreaWidth || contentWidth;
20102
20117
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
@@ -20327,7 +20342,7 @@ Original prompt: ${sanitizeSensitiveText(itemForDisplay.originalPrompt)}` }) }),
20327
20342
  itemForDisplay.id
20328
20343
  );
20329
20344
  }, "HistoryItemDisplayComponent");
20330
- var HistoryItemDisplay = (0, import_react55.memo)(HistoryItemDisplayComponent);
20345
+ var HistoryItemDisplay = (0, import_react56.memo)(HistoryItemDisplayComponent);
20331
20346
  HistoryItemDisplay.displayName = "HistoryItemDisplay";
20332
20347
 
20333
20348
  // packages/cli/src/ui/components/SessionPreview.tsx
@@ -20344,9 +20359,9 @@ function SessionPreview(props) {
20344
20359
  onResume
20345
20360
  } = props;
20346
20361
  const { columns } = useTerminalSize();
20347
- const [data, setData] = (0, import_react56.useState)(null);
20348
- const [error, setError] = (0, import_react56.useState)(null);
20349
- (0, import_react56.useEffect)(() => {
20362
+ const [data, setData] = (0, import_react57.useState)(null);
20363
+ const [error, setError] = (0, import_react57.useState)(null);
20364
+ (0, import_react57.useEffect)(() => {
20350
20365
  let cancelled = false;
20351
20366
  setData(null);
20352
20367
  setError(null);
@@ -20365,11 +20380,11 @@ function SessionPreview(props) {
20365
20380
  cancelled = true;
20366
20381
  };
20367
20382
  }, [sessionService, sessionId]);
20368
- const items = (0, import_react56.useMemo)(() => {
20383
+ const items = (0, import_react57.useMemo)(() => {
20369
20384
  if (!data) return [];
20370
20385
  return buildResumedHistoryItems(data, null);
20371
20386
  }, [data]);
20372
- const computedMessageCount = (0, import_react56.useMemo)(() => {
20387
+ const computedMessageCount = (0, import_react57.useMemo)(() => {
20373
20388
  if (!data) return void 0;
20374
20389
  const seen = /* @__PURE__ */ new Set();
20375
20390
  for (const msg of data.conversation.messages) {
@@ -20735,6 +20750,7 @@ export {
20735
20750
  usePreferredEditor,
20736
20751
  terminalShowsInputCursor,
20737
20752
  renderSoftwareCursor,
20753
+ ThemeCanvasContext,
20738
20754
  TextInput,
20739
20755
  SCROLL_TO_ITEM_END,
20740
20756
  ScrollableListWithForwardRef,