@namzu/cli 39.2.0 → 40.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (419) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/checkpoints/manifest.d.ts +7 -0
  4. package/dist/checkpoints/manifest.d.ts.map +1 -1
  5. package/dist/checkpoints/rewind-stats.d.ts +31 -0
  6. package/dist/checkpoints/rewind-stats.d.ts.map +1 -0
  7. package/dist/checkpoints/store.d.ts +24 -3
  8. package/dist/checkpoints/store.d.ts.map +1 -1
  9. package/dist/chunks/{acp-OOJ6EBDV.js → acp-E7XNZWFV.js} +40 -39
  10. package/dist/chunks/acp-E7XNZWFV.js.map +6 -0
  11. package/dist/chunks/{activity-command-H7YPFJXX.js → activity-command-QANVT2PA.js} +13 -12
  12. package/dist/chunks/activity-command-QANVT2PA.js.map +6 -0
  13. package/dist/chunks/{add-E46I4MLS.js → add-VDRMBSNZ.js} +20 -18
  14. package/dist/chunks/add-VDRMBSNZ.js.map +6 -0
  15. package/dist/chunks/{agent-A3IFU43K.js → agent-PPQJZWBO.js} +31 -30
  16. package/dist/chunks/agent-session-PISYPFO2.js +54 -0
  17. package/dist/chunks/{archive-FWKUN3JD.js → archive-SH4IG6KC.js} +11 -10
  18. package/dist/chunks/archive-SH4IG6KC.js.map +6 -0
  19. package/dist/chunks/{bin-main-YOWKMTAT.js → bin-main-D45Q7FMM.js} +5 -4
  20. package/dist/chunks/bin-main-D45Q7FMM.js.map +6 -0
  21. package/dist/chunks/{browser-ZISCIIZG.js → browser-EUFWHKYD.js} +6 -6
  22. package/dist/chunks/{chat-JNYLC4XC.js → chat-QDWGHEEL.js} +14 -14
  23. package/dist/chunks/{chunk-D24BFQ2R.js → chunk-2I3Z65TV.js} +13 -13
  24. package/dist/chunks/{chunk-62GB6STC.js → chunk-4HUZHYCY.js} +4 -4
  25. package/dist/chunks/{chunk-2SPJH5HF.js → chunk-53GEER6F.js} +3 -3
  26. package/dist/chunks/{chunk-7T6O6HZO.js → chunk-5HSG2XFD.js} +2 -2
  27. package/dist/chunks/{chunk-JPWIGZJ4.js → chunk-6PAE7AWD.js} +2 -2
  28. package/dist/chunks/{chunk-SN4RRU3A.js → chunk-6UDJ3PVE.js} +7 -7
  29. package/dist/chunks/{chunk-D57LFZYV.js → chunk-73G5WDGM.js} +3 -3
  30. package/dist/chunks/{chunk-BD7DGINR.js → chunk-7M6IZGAK.js} +58 -12
  31. package/dist/chunks/chunk-7M6IZGAK.js.map +6 -0
  32. package/dist/chunks/{chunk-JBI7VU5W.js → chunk-AHPIP5IE.js} +2 -2
  33. package/dist/chunks/{chunk-JC37Z4C2.js → chunk-AQL5A442.js} +10 -4
  34. package/dist/chunks/{chunk-JC37Z4C2.js.map → chunk-AQL5A442.js.map} +1 -1
  35. package/dist/chunks/{chunk-FEANPQH4.js → chunk-AUFSSABF.js} +3 -3
  36. package/dist/chunks/{chunk-5ED3H3C7.js → chunk-BJNHDKU6.js} +2 -2
  37. package/dist/chunks/{chunk-ARILZQYC.js → chunk-BQ7PN64G.js} +10 -10
  38. package/dist/chunks/{chunk-ARILZQYC.js.map → chunk-BQ7PN64G.js.map} +1 -1
  39. package/dist/chunks/{chunk-5Y3XJ2QD.js → chunk-BZ4U5L7N.js} +9 -9
  40. package/dist/chunks/{chunk-XJMHPZGJ.js → chunk-BZJNXGWW.js} +5 -5
  41. package/dist/chunks/{chunk-K2WHGUA7.js → chunk-C3APHRQB.js} +2 -2
  42. package/dist/chunks/{chunk-5WZ63LBF.js → chunk-C3ZJQLUX.js} +2 -2
  43. package/dist/chunks/{chunk-J3JUC6J6.js → chunk-C723P7SP.js} +6 -6
  44. package/dist/chunks/{chunk-RKMGVFLZ.js → chunk-D63T5UQN.js} +584 -45
  45. package/dist/chunks/chunk-D63T5UQN.js.map +6 -0
  46. package/dist/chunks/{chunk-YN5PDLFB.js → chunk-DGV5W2BU.js} +3 -3
  47. package/dist/chunks/{chunk-DJCBJ4D2.js → chunk-DWSATEAY.js} +2 -2
  48. package/dist/chunks/{chunk-ZGL3HYDE.js → chunk-EKFNDKPO.js} +3 -3
  49. package/dist/chunks/{chunk-KONYGNG6.js → chunk-EUBCYTOK.js} +3 -152
  50. package/dist/chunks/chunk-EUBCYTOK.js.map +6 -0
  51. package/dist/chunks/{chunk-LNANLHGE.js → chunk-FBY4LGL7.js} +3 -3
  52. package/dist/chunks/chunk-G6LK7V7F.js +440 -0
  53. package/dist/chunks/chunk-G6LK7V7F.js.map +6 -0
  54. package/dist/chunks/{chunk-XRLM7PL2.js → chunk-GDVYFXOR.js} +12 -12
  55. package/dist/chunks/{chunk-P5GCOEET.js → chunk-GTWNJ7GL.js} +4 -4
  56. package/dist/chunks/{chunk-UJ7NTALX.js → chunk-HBDBVQ3R.js} +12 -12
  57. package/dist/chunks/{chunk-BTSYFCBK.js → chunk-HLYTSH5W.js} +2 -2
  58. package/dist/chunks/{chunk-TAWI7GF2.js → chunk-HPLVGTBH.js} +2 -2
  59. package/dist/chunks/{chunk-FCM3BH55.js → chunk-I7LUF577.js} +11 -5
  60. package/dist/chunks/chunk-I7LUF577.js.map +6 -0
  61. package/dist/chunks/{chunk-KG5YQMJ7.js → chunk-IAL3F2OI.js} +8 -8
  62. package/dist/chunks/{chunk-KYEHKRUB.js → chunk-ILTHOMHL.js} +4 -4
  63. package/dist/chunks/{chunk-EEDZOGV4.js → chunk-IYUW2RAA.js} +27 -2
  64. package/dist/chunks/chunk-IYUW2RAA.js.map +6 -0
  65. package/dist/chunks/{chunk-CWFDC3IX.js → chunk-JAHVXTO4.js} +2 -2
  66. package/dist/chunks/{chunk-L4M6ZSF6.js → chunk-KKYIGLKI.js} +4 -4
  67. package/dist/chunks/{chunk-A2PPMNCN.js → chunk-KOYEUNX7.js} +5 -5
  68. package/dist/chunks/{chunk-S7HFDW5W.js → chunk-KWRJTEV5.js} +3 -3
  69. package/dist/chunks/{chunk-EWD65LWA.js → chunk-L2GX4GAQ.js} +2 -2
  70. package/dist/chunks/{chunk-M3TJHQF7.js → chunk-LFI6O7WL.js} +5 -5
  71. package/dist/chunks/{chunk-6E2F73CY.js → chunk-LM3W6AEK.js} +2 -2
  72. package/dist/chunks/{chunk-IYPP6HSK.js → chunk-O2B3B2TM.js} +1 -6
  73. package/dist/chunks/chunk-O2B3B2TM.js.map +6 -0
  74. package/dist/chunks/{chunk-DEYB7GQW.js → chunk-O3L5C2WT.js} +2 -2
  75. package/dist/chunks/{chunk-AJMJHLWZ.js → chunk-PXKXXNFU.js} +2 -2
  76. package/dist/chunks/{chunk-KVYTZCCO.js → chunk-QPEGCKRA.js} +2 -2
  77. package/dist/chunks/{chunk-TQ2PH66J.js → chunk-R7XQP4PZ.js} +3 -3
  78. package/dist/chunks/{chunk-COI6QKBD.js → chunk-RAS4ZA5C.js} +5 -5
  79. package/dist/chunks/chunk-RLMKDLGK.js +3604 -0
  80. package/dist/chunks/chunk-RLMKDLGK.js.map +6 -0
  81. package/dist/chunks/{chunk-FZZU6FGO.js → chunk-RVNLS4BN.js} +2 -2
  82. package/dist/chunks/{chunk-DQIPEDOM.js → chunk-RVSGU3JS.js} +2 -2
  83. package/dist/chunks/{chunk-MD7SYK6K.js → chunk-SOE4Q55L.js} +2 -2
  84. package/dist/chunks/{chunk-2ZRQG2PH.js → chunk-SUDXOGE6.js} +29 -29
  85. package/dist/chunks/{chunk-DK6MIKJ5.js → chunk-T6INV7EZ.js} +7 -7
  86. package/dist/chunks/{chunk-AZCFI7C6.js → chunk-TTDBVPB2.js} +4240 -3641
  87. package/dist/chunks/chunk-TTDBVPB2.js.map +6 -0
  88. package/dist/chunks/{chunk-OIRKBC2L.js → chunk-U5KONGAN.js} +3 -3
  89. package/dist/chunks/{chunk-RGCA3YZA.js → chunk-U5PL5D27.js} +3 -3
  90. package/dist/chunks/{chunk-AXCOWIIH.js → chunk-U5UV2YRE.js} +2 -139
  91. package/dist/chunks/chunk-U5UV2YRE.js.map +6 -0
  92. package/dist/chunks/{chunk-65L26A6S.js → chunk-WYULBUCG.js} +4 -4
  93. package/dist/chunks/{chunk-AWDFNOGP.js → chunk-X54VNEWE.js} +2 -2
  94. package/dist/chunks/{chunk-VPDXH3ZZ.js → chunk-XDGIOXTU.js} +156 -3
  95. package/dist/chunks/chunk-XDGIOXTU.js.map +6 -0
  96. package/dist/chunks/{chunk-Q733LA67.js → chunk-XLGTH7JD.js} +4 -4
  97. package/dist/chunks/chunk-XPS3W7FC.js +147 -0
  98. package/dist/chunks/chunk-XPS3W7FC.js.map +6 -0
  99. package/dist/chunks/chunk-XSCT3DLE.js +161 -0
  100. package/dist/chunks/chunk-XSCT3DLE.js.map +6 -0
  101. package/dist/chunks/{chunk-52NW6KXV.js → chunk-YTEGBYGL.js} +4 -4
  102. package/dist/chunks/{chunk-U4A4C4GE.js → chunk-ZPIHARMI.js} +4 -4
  103. package/dist/chunks/{cli-runtime-KFHNZS4M.js → cli-runtime-YD7OZGEU.js} +16 -14
  104. package/dist/chunks/cli-runtime-YD7OZGEU.js.map +6 -0
  105. package/dist/chunks/{commands-7FSE67S7.js → commands-5P4RLRXG.js} +5 -5
  106. package/dist/chunks/{crash-report-5S6I2H4P.js → crash-report-F5G32A7S.js} +9 -8
  107. package/dist/chunks/{dist-BMP4NVQA.js → dist-6O3HSFZP.js} +2 -2
  108. package/dist/chunks/{dist-VMJECBAZ.js → dist-7B6PZO7C.js} +2 -2
  109. package/dist/chunks/{dist-ZHD7MSXC.js → dist-DFLFYX3A.js} +2 -2
  110. package/dist/chunks/{dist-MLM3PBXB.js → dist-SX66KAH4.js} +2 -2
  111. package/dist/chunks/{dist-KGS4QDJL.js → dist-WB355CNL.js} +44 -16
  112. package/dist/chunks/dist-WB355CNL.js.map +6 -0
  113. package/dist/chunks/{dist-2QEEO2BO.js → dist-Y6SGSSMO.js} +2 -2
  114. package/dist/chunks/{dist-EC2S5MA6.js → dist-ZAGIMP7N.js} +2 -2
  115. package/dist/chunks/{doctor-P67RCEDL.js → doctor-2AOB47IO.js} +8 -8
  116. package/dist/chunks/{drain-GXTL5M2V.js → drain-M6AGCMJX.js} +10 -10
  117. package/dist/chunks/{eval-TGCAUXM6.js → eval-YHY3VO7B.js} +2 -2
  118. package/dist/chunks/{exec-KGTWE4LA.js → exec-KCISQ4M7.js} +33 -28
  119. package/dist/chunks/exec-KCISQ4M7.js.map +6 -0
  120. package/dist/chunks/{home-PZO47UU7.js → home-AC5LQKDR.js} +3 -3
  121. package/dist/chunks/{host-queries-QOFBCKMJ.js → host-queries-YQVRKUWC.js} +14 -14
  122. package/dist/chunks/{lifecycle-DPH2KOCH.js → lifecycle-CQXCTLAZ.js} +28 -26
  123. package/dist/chunks/{list-ILFBHQS7.js → list-LNKKJZSZ.js} +16 -14
  124. package/dist/chunks/list-LNKKJZSZ.js.map +6 -0
  125. package/dist/chunks/{login-EUEB5HLK.js → login-YA652CIL.js} +8 -8
  126. package/dist/chunks/{logs-F2II4CCT.js → logs-2PREHSOD.js} +4 -4
  127. package/dist/chunks/{mcp-KPJ7KVE4.js → mcp-WJB2UVQW.js} +21 -19
  128. package/dist/chunks/mcp-WJB2UVQW.js.map +6 -0
  129. package/dist/chunks/{message-command-I3J5NA35.js → message-command-IXUASFZO.js} +37 -36
  130. package/dist/chunks/message-command-IXUASFZO.js.map +6 -0
  131. package/dist/chunks/{operator-tools-2SI6AFFF.js → operator-tools-QOZZZVEC.js} +12 -12
  132. package/dist/chunks/{output-schema-PJNYSOO5.js → output-schema-JTPOC3NL.js} +3 -3
  133. package/dist/chunks/{pal-7ILZQGYB.js → pal-FNSNP47Q.js} +13 -12
  134. package/dist/chunks/pal-FNSNP47Q.js.map +6 -0
  135. package/dist/chunks/{providers-MD4HAS6J.js → providers-M5HWW7DH.js} +6 -6
  136. package/dist/chunks/{resident-HVI3YGHH.js → resident-R2RCAHYR.js} +24 -22
  137. package/dist/chunks/resident-R2RCAHYR.js.map +6 -0
  138. package/dist/chunks/resume-UKK4HVCO.js +22 -0
  139. package/dist/chunks/{resume-command-EVY3VMMM.js → resume-command-LPN33FIF.js} +6 -5
  140. package/dist/chunks/{schedule-QCGOB5T2.js → schedule-J2IY3SVE.js} +8 -8
  141. package/dist/chunks/{service-MVQA56RE.js → service-LEAVOYGP.js} +27 -25
  142. package/dist/chunks/service-LEAVOYGP.js.map +6 -0
  143. package/dist/chunks/session-step-2B46NVE7.js +30 -0
  144. package/dist/chunks/{skills-MTR3YGWW.js → skills-X2V3TNTK.js} +10 -9
  145. package/dist/chunks/skills-X2V3TNTK.js.map +6 -0
  146. package/dist/chunks/{state-5GSLSGR2.js → state-VDTYWZ5S.js} +4 -3
  147. package/dist/chunks/state-VDTYWZ5S.js.map +6 -0
  148. package/dist/chunks/{store-P2I5OF2S.js → store-C27Q22UV.js} +4 -4
  149. package/dist/chunks/{store-SQUUV4YQ.js → store-DRPRQLDD.js} +9 -9
  150. package/dist/chunks/{store-UMSGE2UE.js → store-S4QRR5DH.js} +6 -6
  151. package/dist/chunks/{tui-5EKXXN5S.js → tui-RU6CRMLX.js} +13396 -11956
  152. package/dist/chunks/tui-RU6CRMLX.js.map +6 -0
  153. package/dist/chunks/{upgrade-OZE2Z2OV.js → upgrade-I2GMLDWZ.js} +3 -4
  154. package/dist/chunks/upgrade-I2GMLDWZ.js.map +6 -0
  155. package/dist/chunks/{worktree-452AXJPV.js → worktree-F632OJNE.js} +13 -12
  156. package/dist/chunks/worktree-F632OJNE.js.map +6 -0
  157. package/dist/config/load.d.ts +6 -1
  158. package/dist/config/load.d.ts.map +1 -1
  159. package/dist/config/schema.d.ts +45 -0
  160. package/dist/config/schema.d.ts.map +1 -1
  161. package/dist/config/user-config.d.ts.map +1 -1
  162. package/dist/index.js +16 -14
  163. package/dist/integrations/compaction/idle-compaction.d.ts +84 -0
  164. package/dist/integrations/compaction/idle-compaction.d.ts.map +1 -0
  165. package/dist/integrations/providers/prompt-cache-ttl.d.ts +14 -0
  166. package/dist/integrations/providers/prompt-cache-ttl.d.ts.map +1 -0
  167. package/dist/integrations/resident/runner-worker.js +20 -19
  168. package/dist/integrations/resident/runner-worker.js.map +1 -1
  169. package/dist/integrations/sessions/recap.d.ts +56 -0
  170. package/dist/integrations/sessions/recap.d.ts.map +1 -0
  171. package/dist/integrations/sessions/store.d.ts +7 -1
  172. package/dist/integrations/sessions/store.d.ts.map +1 -1
  173. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  174. package/dist/memory/typed.d.ts +11 -0
  175. package/dist/memory/typed.d.ts.map +1 -1
  176. package/dist/tui/App.d.ts +17 -1
  177. package/dist/tui/App.d.ts.map +1 -1
  178. package/dist/tui/BrandHeader.d.ts.map +1 -1
  179. package/dist/tui/Checklist.d.ts +2 -0
  180. package/dist/tui/Checklist.d.ts.map +1 -1
  181. package/dist/tui/ChoicePicker.d.ts +4 -1
  182. package/dist/tui/ChoicePicker.d.ts.map +1 -1
  183. package/dist/tui/Composer.d.ts +15 -3
  184. package/dist/tui/Composer.d.ts.map +1 -1
  185. package/dist/tui/ComposerFrame.d.ts.map +1 -1
  186. package/dist/tui/ContextGridRow.d.ts +6 -0
  187. package/dist/tui/ContextGridRow.d.ts.map +1 -0
  188. package/dist/tui/LiveActivity.d.ts +9 -1
  189. package/dist/tui/LiveActivity.d.ts.map +1 -1
  190. package/dist/tui/Markdown.d.ts.map +1 -1
  191. package/dist/tui/ReadSearchGroup.d.ts +14 -0
  192. package/dist/tui/ReadSearchGroup.d.ts.map +1 -0
  193. package/dist/tui/RewindPicker.d.ts +14 -0
  194. package/dist/tui/RewindPicker.d.ts.map +1 -0
  195. package/dist/tui/StatusBar.d.ts +31 -12
  196. package/dist/tui/StatusBar.d.ts.map +1 -1
  197. package/dist/tui/ThemeSample.d.ts +5 -0
  198. package/dist/tui/ThemeSample.d.ts.map +1 -0
  199. package/dist/tui/Transcript.d.ts +13 -0
  200. package/dist/tui/Transcript.d.ts.map +1 -1
  201. package/dist/tui/TranscriptScreen.d.ts +24 -0
  202. package/dist/tui/TranscriptScreen.d.ts.map +1 -0
  203. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  204. package/dist/tui/agent-view-commands.d.ts.map +1 -1
  205. package/dist/tui/agent.d.ts +62 -1
  206. package/dist/tui/agent.d.ts.map +1 -1
  207. package/dist/tui/away-recap.d.ts +73 -0
  208. package/dist/tui/away-recap.d.ts.map +1 -0
  209. package/dist/tui/context-grid.d.ts +121 -0
  210. package/dist/tui/context-grid.d.ts.map +1 -0
  211. package/dist/tui/context-meter.d.ts +9 -0
  212. package/dist/tui/context-meter.d.ts.map +1 -1
  213. package/dist/tui/context-usage.d.ts +70 -0
  214. package/dist/tui/context-usage.d.ts.map +1 -0
  215. package/dist/tui/diff-view.d.ts +1 -1
  216. package/dist/tui/edit-prompts.d.ts.map +1 -1
  217. package/dist/tui/focus-reporting.d.ts +45 -0
  218. package/dist/tui/focus-reporting.d.ts.map +1 -0
  219. package/dist/tui/group-rows.d.ts +10 -0
  220. package/dist/tui/group-rows.d.ts.map +1 -0
  221. package/dist/tui/index.d.ts.map +1 -1
  222. package/dist/tui/live-window.d.ts +5 -8
  223. package/dist/tui/live-window.d.ts.map +1 -1
  224. package/dist/tui/logo.d.ts +0 -1
  225. package/dist/tui/logo.d.ts.map +1 -1
  226. package/dist/tui/motion.d.ts +14 -0
  227. package/dist/tui/motion.d.ts.map +1 -0
  228. package/dist/tui/next-task.d.ts +11 -0
  229. package/dist/tui/next-task.d.ts.map +1 -0
  230. package/dist/tui/notifications.d.ts +69 -0
  231. package/dist/tui/notifications.d.ts.map +1 -0
  232. package/dist/tui/plain-interruption.d.ts +1 -1
  233. package/dist/tui/plain-interruption.d.ts.map +1 -1
  234. package/dist/tui/read-search-group.d.ts +97 -0
  235. package/dist/tui/read-search-group.d.ts.map +1 -0
  236. package/dist/tui/recap-setting.d.ts +36 -0
  237. package/dist/tui/recap-setting.d.ts.map +1 -0
  238. package/dist/tui/recap-turns.d.ts +13 -0
  239. package/dist/tui/recap-turns.d.ts.map +1 -0
  240. package/dist/tui/restored-rows.d.ts.map +1 -1
  241. package/dist/tui/rewind.d.ts +142 -0
  242. package/dist/tui/rewind.d.ts.map +1 -0
  243. package/dist/tui/slashCommands.d.ts +45 -0
  244. package/dist/tui/slashCommands.d.ts.map +1 -1
  245. package/dist/tui/spinner-tips-setting.d.ts +10 -0
  246. package/dist/tui/spinner-tips-setting.d.ts.map +1 -0
  247. package/dist/tui/spinner-tips.d.ts +39 -0
  248. package/dist/tui/spinner-tips.d.ts.map +1 -0
  249. package/dist/tui/stale-history-retry.d.ts +17 -0
  250. package/dist/tui/stale-history-retry.d.ts.map +1 -0
  251. package/dist/tui/system-rows.d.ts +4 -0
  252. package/dist/tui/system-rows.d.ts.map +1 -1
  253. package/dist/tui/terminal-display.d.ts +7 -0
  254. package/dist/tui/terminal-display.d.ts.map +1 -1
  255. package/dist/tui/terminal-focus.d.ts +29 -0
  256. package/dist/tui/terminal-focus.d.ts.map +1 -0
  257. package/dist/tui/terminal-title.d.ts +19 -0
  258. package/dist/tui/terminal-title.d.ts.map +1 -1
  259. package/dist/tui/theme-command.d.ts +20 -0
  260. package/dist/tui/theme-command.d.ts.map +1 -0
  261. package/dist/tui/theme-detect.d.ts +41 -0
  262. package/dist/tui/theme-detect.d.ts.map +1 -0
  263. package/dist/tui/theme-launch.d.ts +16 -0
  264. package/dist/tui/theme-launch.d.ts.map +1 -0
  265. package/dist/tui/theme-palettes.d.ts +121 -0
  266. package/dist/tui/theme-palettes.d.ts.map +1 -0
  267. package/dist/tui/theme-store.d.ts +35 -0
  268. package/dist/tui/theme-store.d.ts.map +1 -0
  269. package/dist/tui/theme.d.ts +35 -64
  270. package/dist/tui/theme.d.ts.map +1 -1
  271. package/dist/tui/tidy-tool-output.d.ts +17 -0
  272. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  273. package/dist/tui/tip-history.d.ts +25 -0
  274. package/dist/tui/tip-history.d.ts.map +1 -0
  275. package/dist/tui/title-frame.d.ts +7 -0
  276. package/dist/tui/title-frame.d.ts.map +1 -0
  277. package/dist/tui/tool-end-rows.d.ts +4 -1
  278. package/dist/tui/tool-end-rows.d.ts.map +1 -1
  279. package/dist/tui/tool-failure-text.d.ts.map +1 -1
  280. package/dist/tui/transcript-screen.d.ts +31 -0
  281. package/dist/tui/transcript-screen.d.ts.map +1 -0
  282. package/dist/tui/transcript-scroll.d.ts.map +1 -1
  283. package/dist/tui/types.d.ts +26 -1
  284. package/dist/tui/types.d.ts.map +1 -1
  285. package/dist/tui/update-notice.d.ts +12 -0
  286. package/dist/tui/update-notice.d.ts.map +1 -0
  287. package/dist/tui/use-idle-compaction.d.ts +29 -0
  288. package/dist/tui/use-idle-compaction.d.ts.map +1 -0
  289. package/dist/tui/use-spinner-tip.d.ts +23 -0
  290. package/dist/tui/use-spinner-tip.d.ts.map +1 -0
  291. package/dist/tui/useNotifications.d.ts +14 -0
  292. package/dist/tui/useNotifications.d.ts.map +1 -0
  293. package/dist/tui/useReadSearchGroup.d.ts +21 -0
  294. package/dist/tui/useReadSearchGroup.d.ts.map +1 -0
  295. package/package.json +8 -8
  296. package/skills/browser-automation/SKILL.md +2 -2
  297. package/skills/schedule-task/SKILL.md +7 -7
  298. package/skills/skill-creator/SKILL.md +1 -1
  299. package/dist/chunks/acp-OOJ6EBDV.js.map +0 -6
  300. package/dist/chunks/activity-command-H7YPFJXX.js.map +0 -6
  301. package/dist/chunks/add-E46I4MLS.js.map +0 -6
  302. package/dist/chunks/agent-session-V7NDZWPF.js +0 -53
  303. package/dist/chunks/archive-FWKUN3JD.js.map +0 -6
  304. package/dist/chunks/bin-main-YOWKMTAT.js.map +0 -6
  305. package/dist/chunks/chunk-AXCOWIIH.js.map +0 -6
  306. package/dist/chunks/chunk-AZCFI7C6.js.map +0 -6
  307. package/dist/chunks/chunk-BD7DGINR.js.map +0 -6
  308. package/dist/chunks/chunk-BVUYBGWV.js +0 -1796
  309. package/dist/chunks/chunk-BVUYBGWV.js.map +0 -6
  310. package/dist/chunks/chunk-CDYUGK7F.js +0 -70
  311. package/dist/chunks/chunk-CDYUGK7F.js.map +0 -6
  312. package/dist/chunks/chunk-EEDZOGV4.js.map +0 -6
  313. package/dist/chunks/chunk-FCM3BH55.js.map +0 -6
  314. package/dist/chunks/chunk-IYPP6HSK.js.map +0 -6
  315. package/dist/chunks/chunk-KONYGNG6.js.map +0 -6
  316. package/dist/chunks/chunk-QGU3QOXI.js +0 -111
  317. package/dist/chunks/chunk-QGU3QOXI.js.map +0 -6
  318. package/dist/chunks/chunk-RKMGVFLZ.js.map +0 -6
  319. package/dist/chunks/chunk-VPDXH3ZZ.js.map +0 -6
  320. package/dist/chunks/cli-runtime-KFHNZS4M.js.map +0 -6
  321. package/dist/chunks/dist-KGS4QDJL.js.map +0 -6
  322. package/dist/chunks/exec-KGTWE4LA.js.map +0 -6
  323. package/dist/chunks/list-ILFBHQS7.js.map +0 -6
  324. package/dist/chunks/mcp-KPJ7KVE4.js.map +0 -6
  325. package/dist/chunks/message-command-I3J5NA35.js.map +0 -6
  326. package/dist/chunks/pal-7ILZQGYB.js.map +0 -6
  327. package/dist/chunks/resident-HVI3YGHH.js.map +0 -6
  328. package/dist/chunks/resume-R2OYMKYY.js +0 -22
  329. package/dist/chunks/service-MVQA56RE.js.map +0 -6
  330. package/dist/chunks/session-step-XAOTLL4U.js +0 -29
  331. package/dist/chunks/skills-MTR3YGWW.js.map +0 -6
  332. package/dist/chunks/state-5GSLSGR2.js.map +0 -6
  333. package/dist/chunks/tui-5EKXXN5S.js.map +0 -6
  334. package/dist/chunks/upgrade-OZE2Z2OV.js.map +0 -6
  335. package/dist/chunks/worktree-452AXJPV.js.map +0 -6
  336. package/dist/tui/EditPromptPicker.d.ts +0 -8
  337. package/dist/tui/EditPromptPicker.d.ts.map +0 -1
  338. package/dist/tui/ToolOutputViewer.d.ts +0 -11
  339. package/dist/tui/ToolOutputViewer.d.ts.map +0 -1
  340. /package/dist/chunks/{agent-A3IFU43K.js.map → agent-PPQJZWBO.js.map} +0 -0
  341. /package/dist/chunks/{agent-session-V7NDZWPF.js.map → agent-session-PISYPFO2.js.map} +0 -0
  342. /package/dist/chunks/{browser-ZISCIIZG.js.map → browser-EUFWHKYD.js.map} +0 -0
  343. /package/dist/chunks/{chat-JNYLC4XC.js.map → chat-QDWGHEEL.js.map} +0 -0
  344. /package/dist/chunks/{chunk-D24BFQ2R.js.map → chunk-2I3Z65TV.js.map} +0 -0
  345. /package/dist/chunks/{chunk-62GB6STC.js.map → chunk-4HUZHYCY.js.map} +0 -0
  346. /package/dist/chunks/{chunk-2SPJH5HF.js.map → chunk-53GEER6F.js.map} +0 -0
  347. /package/dist/chunks/{chunk-7T6O6HZO.js.map → chunk-5HSG2XFD.js.map} +0 -0
  348. /package/dist/chunks/{chunk-JPWIGZJ4.js.map → chunk-6PAE7AWD.js.map} +0 -0
  349. /package/dist/chunks/{chunk-SN4RRU3A.js.map → chunk-6UDJ3PVE.js.map} +0 -0
  350. /package/dist/chunks/{chunk-D57LFZYV.js.map → chunk-73G5WDGM.js.map} +0 -0
  351. /package/dist/chunks/{chunk-JBI7VU5W.js.map → chunk-AHPIP5IE.js.map} +0 -0
  352. /package/dist/chunks/{chunk-FEANPQH4.js.map → chunk-AUFSSABF.js.map} +0 -0
  353. /package/dist/chunks/{chunk-5ED3H3C7.js.map → chunk-BJNHDKU6.js.map} +0 -0
  354. /package/dist/chunks/{chunk-5Y3XJ2QD.js.map → chunk-BZ4U5L7N.js.map} +0 -0
  355. /package/dist/chunks/{chunk-XJMHPZGJ.js.map → chunk-BZJNXGWW.js.map} +0 -0
  356. /package/dist/chunks/{chunk-K2WHGUA7.js.map → chunk-C3APHRQB.js.map} +0 -0
  357. /package/dist/chunks/{chunk-5WZ63LBF.js.map → chunk-C3ZJQLUX.js.map} +0 -0
  358. /package/dist/chunks/{chunk-J3JUC6J6.js.map → chunk-C723P7SP.js.map} +0 -0
  359. /package/dist/chunks/{chunk-YN5PDLFB.js.map → chunk-DGV5W2BU.js.map} +0 -0
  360. /package/dist/chunks/{chunk-DJCBJ4D2.js.map → chunk-DWSATEAY.js.map} +0 -0
  361. /package/dist/chunks/{chunk-ZGL3HYDE.js.map → chunk-EKFNDKPO.js.map} +0 -0
  362. /package/dist/chunks/{chunk-LNANLHGE.js.map → chunk-FBY4LGL7.js.map} +0 -0
  363. /package/dist/chunks/{chunk-XRLM7PL2.js.map → chunk-GDVYFXOR.js.map} +0 -0
  364. /package/dist/chunks/{chunk-P5GCOEET.js.map → chunk-GTWNJ7GL.js.map} +0 -0
  365. /package/dist/chunks/{chunk-UJ7NTALX.js.map → chunk-HBDBVQ3R.js.map} +0 -0
  366. /package/dist/chunks/{chunk-BTSYFCBK.js.map → chunk-HLYTSH5W.js.map} +0 -0
  367. /package/dist/chunks/{chunk-TAWI7GF2.js.map → chunk-HPLVGTBH.js.map} +0 -0
  368. /package/dist/chunks/{chunk-KG5YQMJ7.js.map → chunk-IAL3F2OI.js.map} +0 -0
  369. /package/dist/chunks/{chunk-KYEHKRUB.js.map → chunk-ILTHOMHL.js.map} +0 -0
  370. /package/dist/chunks/{chunk-CWFDC3IX.js.map → chunk-JAHVXTO4.js.map} +0 -0
  371. /package/dist/chunks/{chunk-L4M6ZSF6.js.map → chunk-KKYIGLKI.js.map} +0 -0
  372. /package/dist/chunks/{chunk-A2PPMNCN.js.map → chunk-KOYEUNX7.js.map} +0 -0
  373. /package/dist/chunks/{chunk-S7HFDW5W.js.map → chunk-KWRJTEV5.js.map} +0 -0
  374. /package/dist/chunks/{chunk-EWD65LWA.js.map → chunk-L2GX4GAQ.js.map} +0 -0
  375. /package/dist/chunks/{chunk-M3TJHQF7.js.map → chunk-LFI6O7WL.js.map} +0 -0
  376. /package/dist/chunks/{chunk-6E2F73CY.js.map → chunk-LM3W6AEK.js.map} +0 -0
  377. /package/dist/chunks/{chunk-DEYB7GQW.js.map → chunk-O3L5C2WT.js.map} +0 -0
  378. /package/dist/chunks/{chunk-AJMJHLWZ.js.map → chunk-PXKXXNFU.js.map} +0 -0
  379. /package/dist/chunks/{chunk-KVYTZCCO.js.map → chunk-QPEGCKRA.js.map} +0 -0
  380. /package/dist/chunks/{chunk-TQ2PH66J.js.map → chunk-R7XQP4PZ.js.map} +0 -0
  381. /package/dist/chunks/{chunk-COI6QKBD.js.map → chunk-RAS4ZA5C.js.map} +0 -0
  382. /package/dist/chunks/{chunk-FZZU6FGO.js.map → chunk-RVNLS4BN.js.map} +0 -0
  383. /package/dist/chunks/{chunk-DQIPEDOM.js.map → chunk-RVSGU3JS.js.map} +0 -0
  384. /package/dist/chunks/{chunk-MD7SYK6K.js.map → chunk-SOE4Q55L.js.map} +0 -0
  385. /package/dist/chunks/{chunk-2ZRQG2PH.js.map → chunk-SUDXOGE6.js.map} +0 -0
  386. /package/dist/chunks/{chunk-DK6MIKJ5.js.map → chunk-T6INV7EZ.js.map} +0 -0
  387. /package/dist/chunks/{chunk-OIRKBC2L.js.map → chunk-U5KONGAN.js.map} +0 -0
  388. /package/dist/chunks/{chunk-RGCA3YZA.js.map → chunk-U5PL5D27.js.map} +0 -0
  389. /package/dist/chunks/{chunk-65L26A6S.js.map → chunk-WYULBUCG.js.map} +0 -0
  390. /package/dist/chunks/{chunk-AWDFNOGP.js.map → chunk-X54VNEWE.js.map} +0 -0
  391. /package/dist/chunks/{chunk-Q733LA67.js.map → chunk-XLGTH7JD.js.map} +0 -0
  392. /package/dist/chunks/{chunk-52NW6KXV.js.map → chunk-YTEGBYGL.js.map} +0 -0
  393. /package/dist/chunks/{chunk-U4A4C4GE.js.map → chunk-ZPIHARMI.js.map} +0 -0
  394. /package/dist/chunks/{commands-7FSE67S7.js.map → commands-5P4RLRXG.js.map} +0 -0
  395. /package/dist/chunks/{crash-report-5S6I2H4P.js.map → crash-report-F5G32A7S.js.map} +0 -0
  396. /package/dist/chunks/{dist-BMP4NVQA.js.map → dist-6O3HSFZP.js.map} +0 -0
  397. /package/dist/chunks/{dist-VMJECBAZ.js.map → dist-7B6PZO7C.js.map} +0 -0
  398. /package/dist/chunks/{dist-ZHD7MSXC.js.map → dist-DFLFYX3A.js.map} +0 -0
  399. /package/dist/chunks/{dist-MLM3PBXB.js.map → dist-SX66KAH4.js.map} +0 -0
  400. /package/dist/chunks/{dist-2QEEO2BO.js.map → dist-Y6SGSSMO.js.map} +0 -0
  401. /package/dist/chunks/{dist-EC2S5MA6.js.map → dist-ZAGIMP7N.js.map} +0 -0
  402. /package/dist/chunks/{doctor-P67RCEDL.js.map → doctor-2AOB47IO.js.map} +0 -0
  403. /package/dist/chunks/{drain-GXTL5M2V.js.map → drain-M6AGCMJX.js.map} +0 -0
  404. /package/dist/chunks/{eval-TGCAUXM6.js.map → eval-YHY3VO7B.js.map} +0 -0
  405. /package/dist/chunks/{home-PZO47UU7.js.map → home-AC5LQKDR.js.map} +0 -0
  406. /package/dist/chunks/{host-queries-QOFBCKMJ.js.map → host-queries-YQVRKUWC.js.map} +0 -0
  407. /package/dist/chunks/{lifecycle-DPH2KOCH.js.map → lifecycle-CQXCTLAZ.js.map} +0 -0
  408. /package/dist/chunks/{login-EUEB5HLK.js.map → login-YA652CIL.js.map} +0 -0
  409. /package/dist/chunks/{logs-F2II4CCT.js.map → logs-2PREHSOD.js.map} +0 -0
  410. /package/dist/chunks/{operator-tools-2SI6AFFF.js.map → operator-tools-QOZZZVEC.js.map} +0 -0
  411. /package/dist/chunks/{output-schema-PJNYSOO5.js.map → output-schema-JTPOC3NL.js.map} +0 -0
  412. /package/dist/chunks/{providers-MD4HAS6J.js.map → providers-M5HWW7DH.js.map} +0 -0
  413. /package/dist/chunks/{resume-R2OYMKYY.js.map → resume-UKK4HVCO.js.map} +0 -0
  414. /package/dist/chunks/{resume-command-EVY3VMMM.js.map → resume-command-LPN33FIF.js.map} +0 -0
  415. /package/dist/chunks/{schedule-QCGOB5T2.js.map → schedule-J2IY3SVE.js.map} +0 -0
  416. /package/dist/chunks/{session-step-XAOTLL4U.js.map → session-step-2B46NVE7.js.map} +0 -0
  417. /package/dist/chunks/{store-P2I5OF2S.js.map → store-C27Q22UV.js.map} +0 -0
  418. /package/dist/chunks/{store-SQUUV4YQ.js.map → store-DRPRQLDD.js.map} +0 -0
  419. /package/dist/chunks/{store-UMSGE2UE.js.map → store-S4QRR5DH.js.map} +0 -0
@@ -1,73 +1,44 @@
1
1
  /**
2
- * Theme tokens for the TUI — phosphor green, neutral text and quiet graphite. We inherit the
3
- * terminal's own background rather than painting one, and only theme the
4
- * foreground. Explicit ANSI indices avoid Chalk's RGB cube approximation,
5
- * which can turn an intended palette color into a different hue.
6
- * `background` is kept for reference / a future light theme but is not
7
- * forced onto the canvas. A theme registry/picker is a follow-up.
2
+ * Theme tokens for the TUI. The default is `dark`: phosphor green, neutral
3
+ * text and quiet graphite. We inherit the terminal's own background rather
4
+ * than painting one, and only theme the foreground. Explicit ANSI indices
5
+ * avoid Chalk's RGB cube approximation, which can turn an intended palette
6
+ * color into a different hue.
7
+ *
8
+ * `theme` is read at render time (`theme.text.muted`), never copied into a
9
+ * module-level constant: the active theme can change while the TUI runs (see
10
+ * `theme-store.ts`), and a constant would keep the old colours. The palettes
11
+ * themselves live in `theme-palettes.ts`.
8
12
  */
9
- export interface SemanticColors {
10
- /** Canvas background — the whole UI sits on this. */
11
- readonly background: string;
12
- readonly text: {
13
- readonly primary: string;
14
- readonly secondary: string;
15
- readonly muted: string;
16
- };
17
- readonly accent: {
18
- readonly user: string;
19
- readonly assistant: string;
20
- readonly system: string;
21
- readonly tool: string;
22
- /**
23
- * The hypermode session mode's own colour (violet), used wherever the
24
- * mode is named: the effort slider's last stop and the composer tag.
25
- * Never a status colour.
26
- */
27
- readonly hypermode: string;
28
- /**
29
- * An armed composer trigger (sky): its words in the draft and its tag
30
- * row. Kept apart from the session mode's violet, which names what lasts
31
- * for the session; a trigger lasts one message.
32
- */
33
- readonly trigger: string;
34
- /** Plan mode in the footer's mode item (teal). */
35
- readonly plan: string;
36
- /** Background shells in the footer pill (cyan). */
37
- readonly shells: string;
38
- };
39
- readonly status: {
40
- readonly ok: string;
41
- readonly warn: string;
42
- readonly error: string;
43
- /** A merged pull request (purple). */
44
- readonly merged: string;
45
- };
46
- readonly border: {
47
- readonly default: string;
48
- readonly focus: string;
49
- };
50
- }
13
+ import { type DiffColors, type SemanticColors, type ThemeName } from './theme-palettes.js';
14
+ export type { DiffColors, SemanticColors, ThemeName };
15
+ /** The active palette. Mutated in place by `applyPalette`; read, never written, elsewhere. */
51
16
  export declare const theme: SemanticColors;
52
- /**
53
- * The backgrounds a diff row is drawn on. Six tokens: a whole added or removed row, the same dimmed
54
- * for a change that was
55
- * refused, and the words that differ inside a changed pair of rows.
56
- */
57
- export interface DiffColors {
58
- readonly added: string;
59
- readonly removed: string;
60
- readonly addedDimmed: string;
61
- readonly removedDimmed: string;
62
- readonly addedWord: string;
63
- readonly removedWord: string;
64
- }
65
- /** For a terminal that reports 24-bit colour: the dark-theme values. */
17
+ /** Make `name` the active palette. The store calls this and then tells the screen to redraw. */
18
+ export declare function applyPalette(name: ThemeName): void;
19
+ /** The name of the palette currently applied. */
20
+ export declare function activeThemeName(): ThemeName;
21
+ /** The dark theme's diff colours for a terminal that reports 24-bit colour. */
66
22
  export declare const DIFF_COLORS_TRUECOLOR: DiffColors;
67
- /** For every other terminal: the named ANSI colours, words in the bright variant. */
23
+ /** The dark theme's diff colours for every other terminal: named ANSI colours, words in the bright variant. */
68
24
  export declare const DIFF_COLORS_ANSI: DiffColors;
69
25
  /** Whether the terminal says it draws 24-bit colour. */
70
26
  export declare function reportsTruecolor(env?: NodeJS.ProcessEnv): boolean;
71
- /** The diff colours this terminal can draw. */
27
+ /** The diff colours the active theme draws on this terminal. */
72
28
  export declare function diffColors(env?: NodeJS.ProcessEnv): DiffColors;
29
+ /** The colour groups a row may name by token. */
30
+ type RowTokenGroup = 'text' | 'accent' | 'status' | 'border' | 'context';
31
+ /** A theme colour a row is allowed to carry, as `group.name` (`status.error`). */
32
+ export type ThemeToken = {
33
+ [G in RowTokenGroup]: `${G}.${keyof SemanticColors[G] & string}`;
34
+ }[RowTokenGroup];
35
+ /**
36
+ * A colour for a row that is stored and drawn later. It is the token's name,
37
+ * not its value, so a row already on screen is drawn in the colours of the theme
38
+ * that is active when it is drawn, not the one it was written under.
39
+ */
40
+ export declare function tokenColor(token: ThemeToken): string;
41
+ /** The colour to draw: a stored token is looked up in the active theme, any other colour is kept. */
42
+ export declare function paint(color: string): string;
43
+ export declare function paint(color: string | undefined): string | undefined;
73
44
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/tui/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,cAAc;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE;QACd,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KACtB,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;QACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB;;;;WAIG;QACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;QAC1B;;;;WAIG;QACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;QACxB,kDAAkD;QAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,mDAAmD;QACnD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KACvB,CAAA;IACD,QAAQ,CAAC,MAAM,EAAE;QAChB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;QACrB,QAAQ,CAAC,KAAK,EAA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AAE,SAAS,GAAG,IAAI,CAalD;AAED,iDAAiD;AACjD,wBAAgB,eAAe,IAAI,SAAS,CAE3C;AAED,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,UAAyC,CAAA;AAE7E,+GAA+G;AAC/G,eAAO,MAAM,gBAAgB,EAAE,UAAqC,CAAA;AAIpE,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAM9E;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,UAAU,CAE3E;AAED,iDAAiD;AACjD,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;AAExE,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG;KACvB,CAAC,IAAI,aAAa,GAAG,GAAG,CAAC,IAAI,MAAM,cAAc,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE;CAChE,CAAC,aAAa,CAAC,CAAA;AAIhB;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEpD;AAED,qGAAqG;AACrG,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;AAC5C,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA"}
@@ -52,6 +52,8 @@ export declare function tidyCommandOutput(facts: CommandFacts, raw: string): Tid
52
52
  * every internal tool name; the person needs one sentence.
53
53
  */
54
54
  export declare function unknownToolNotice(result: string): string | undefined;
55
+ /** The short row for a call whose arguments did not fit the tool's schema; the full text is in the detailed transcript. */
56
+ export declare const INVALID_PARAMETERS = "Invalid tool parameters";
55
57
  /** What the transcript says under a call the person answered No to. */
56
58
  export declare function declinedLine(note: string | undefined): string;
57
59
  /**
@@ -63,6 +65,21 @@ export declare function declinedLine(note: string | undefined): string;
63
65
  export declare function failureFactsLine(facts: Extract<ToolFacts, {
64
66
  kind: 'failure';
65
67
  }>, cwd?: string): string;
68
+ /**
69
+ * The short text a refused call of a file, search or language tool reads as,
70
+ * only where a refusal is worth a label of its own: a missing file, a file
71
+ * that has to be read first, and a refusal made before the tool did its work
72
+ * (input it could not use, text that is not there, a copy gone stale). Every
73
+ * other failure, a permission error, a timeout or a directory read as a file,
74
+ * has no label and is drawn as the tool's own message. The full message stays
75
+ * behind ctrl+o. A file that has to be read first is advice, so it is drawn dim.
76
+ */
77
+ export declare function shortToolFailure(toolName: string, facts: Extract<ToolFacts, {
78
+ kind: 'failure';
79
+ }>): {
80
+ readonly text: string;
81
+ readonly tone: 'error' | 'muted';
82
+ } | undefined;
66
83
  /**
67
84
  * The one-line account of a finished read, search, write or edit, from the typed
68
85
  * facts the kernel reports (`ToolResult.facts`), not from the model's receipt:
@@ -1 +1 @@
1
- {"version":3,"file":"tidy-tool-output.d.ts","sourceRoot":"","sources":["../../src/tui/tidy-tool-output.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAkB,MAAM,YAAY,CAAA;AAI3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGlD,MAAM,WAAW,UAAU;IAC1B,sFAAsF;IACtF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,sFAAsF;IACtF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,kFAAkF;IAClF,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAC5B;AAED,wEAAwE;AACxE,eAAO,MAAM,eAAe,iDAA4C,CAAA;AAExE,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CASjD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CA+B1D;AAED,KAAK,YAAY,GA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+ readonly total: number;
4
+ }
5
+ export interface TipHistory {
6
+ readonly launches: number;
7
+ readonly shown: Readonly<Record<string, TipShown>>;
8
+ /** How many times each command was run, by name without the slash. */
9
+ readonly used: Readonly<Record<string, number>>;
10
+ }
11
+ /** The store the terminal and the picker share; the file one below is the real one. */
12
+ export interface TipHistoryStore {
13
+ read(): TipHistory;
14
+ /** Count one process start. Called once, by the interactive entry only. */
15
+ recordLaunch(): void;
16
+ /** A tip was picked: remember it at the current launch and count the showing. */
17
+ recordShown(id: string): void;
18
+ /** A command ran: count it. */
19
+ recordUse(command: string): void;
20
+ }
21
+ export declare const EMPTY_TIP_HISTORY: TipHistory;
22
+ export declare function tipHistoryPath(home?: string): string;
23
+ export declare function readTipHistory(path: string): TipHistory;
24
+ export declare function fileTipHistory(home?: string): TipHistoryStore;
25
+ //# sourceMappingURL=tip-history.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tip-history.d.ts","sourceRoot":"","sources":["../../src/tui/tip-history.ts"],"names":[],"mappings":"AAqBA,MAAM,WAAW,QAAQ;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAA;IAClD,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;CAC/C;AAED,uFAAuF;AACvF,MAAM,WAAW,eAAe;IAC/B,IAAI,IAAI,UAAU,CAAA;IAClB,2EAA2E;IAC3E,YAAY,IAAI,IAAI,CAAA;IACpB,iFAAiF;IACjF,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,+BAA+B;IAC/B,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AAED,eAAO,MAAM,iBAAiB,EAAE,UAAiD,CAAA;AAEjF,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEpD;AAMD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAsBvD;AAiBD,wBAAgB,cAAc,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAuB7D"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The frame counter behind the animated busy glyph in the terminal title.
3
+ * Advances every `TITLE_ANIMATION_MS` while `active`; when it stops the count
4
+ * stays where it was, so the title freezes on the frame it showed.
5
+ */
6
+ export declare function useTitleFrame(active: boolean): number;
7
+ //# sourceMappingURL=title-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"title-frame.d.ts","sourceRoot":"","sources":["../../src/tui/title-frame.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAQrD"}
@@ -1,5 +1,6 @@
1
1
  import type { AgentEvent } from './agent.js';
2
2
  import { type ProposedChange } from './diff-rows.js';
3
+ import { type FoldOp } from './read-search-group.js';
3
4
  import type { TranscriptMessage } from './types.js';
4
5
  import { type WebActivity } from './web-activity.js';
5
6
  /**
@@ -20,11 +21,13 @@ export interface ToolEndStart {
20
21
  readonly command?: string;
21
22
  readonly web?: WebActivity;
22
23
  readonly activity?: 'exploration';
24
+ /** The call only looks; it folds into a counted line with its neighbours. */
25
+ readonly fold?: FoldOp;
23
26
  /** What an edit or write asked for, drawn dimmed if the person refuses it. */
24
27
  readonly proposed?: ProposedChange;
25
28
  }
26
29
  /** One row to add, in the order of `pushMessage`'s arguments that matter. */
27
- export type ToolRow = Pick<TranscriptMessage, 'role' | 'content'> & Partial<Pick<TranscriptMessage, 'glyph' | 'glyphColor' | 'meta' | 'detail' | 'activity' | 'shell' | 'diff'>>;
30
+ export type ToolRow = Pick<TranscriptMessage, 'role' | 'content'> & Partial<Pick<TranscriptMessage, 'glyph' | 'glyphColor' | 'contentColor' | 'meta' | 'detail' | 'activity' | 'shell' | 'diff' | 'group'>>;
28
31
  export type ToolEndRows =
29
32
  /** Add these rows. */
30
33
  {
@@ -1 +1 @@
1
- {"version":3,"file":"tool-end-rows.d.ts","sourceRoot":"","sources":["../../src/tui/tool-end-rows.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,OAAO,EAAE,KAAK,cAAc,EAAgB,MAAM,gBAAgB,CAAA;AASlE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,EAAE,KAAK,WAAW,EAAgC,MAAM,mBAAmB,CAAA;AAElF;;;;;;;GAOG;AAEH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAA;AAEpE,sDAAsD;AACtD,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,WAAW,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,CAAA;IACjC,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,CAAC,EAAE,cAAc,CAAA;CAClC;AAED,6EAA6E;AAC7E,MAAM,MAAM,OAAO,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC,GAChE,OAAO,CACN,IAAI,CACH,iBAAiB,EACjB,OAAO,GAAG,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,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AkG;IAClG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,0EAA0E;IAC1E,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CACrB;AAKD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,UAAQ,GAAG,MAAM,CAO5F;AAED,+GAA+G;AAC/G,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAiED,iGAAiG;AACjG,wBAAgB,WAAW,CAC1B,KAAK,EAAE,YAAY,EACnB,KAAK,EAAE,YAAY,GAAG,SAAS,EAC/B,GAAG,EAAE,cAAc,GACjB,WAAW,CAsRb"}
@@ -1 +1 @@
1
- {"version":3,"file":"tool-failure-text.d.ts","sourceRoot":"","sources":["../../src/tui/tool-failure-text.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,uFAAuF;AACvF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAUrF;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD"}
1
+ {"version":3,"file":"tool-failure-text.d.ts","sourceRoot":"","sources":["../../src/tui/tool-failure-text.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AASH,uFAAuF;AACvF,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,OAAO,GAAG,MAAM,CAUrF;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The detailed transcript screen: which rows it shows and what its footer says.
3
+ *
4
+ * Pure functions, so the window rule, the divider and the footer line can be
5
+ * driven without a terminal. `TranscriptScreen.tsx` draws what these return.
6
+ */
7
+ import type { TranscriptMessage } from './types.js';
8
+ /** Rows the screen shows before the person asks for all of them. */
9
+ export declare const TRANSCRIPT_SCREEN_TAIL = 30;
10
+ /** The rows to draw, and how many older ones the window leaves out. */
11
+ export interface ScreenWindow {
12
+ readonly hiddenCount: number;
13
+ readonly shown: readonly TranscriptMessage[];
14
+ }
15
+ /** The last {@link TRANSCRIPT_SCREEN_TAIL} rows, or every row once `showAll` is on. */
16
+ export declare function screenWindow(messages: readonly TranscriptMessage[], showAll: boolean): ScreenWindow;
17
+ /**
18
+ * The divider above the window: `[before, count, after]`, where `count` is drawn
19
+ * bold. Null when the conversation fits and there is nothing to show or hide.
20
+ */
21
+ export declare function screenDivider(hiddenCount: number, showAll: boolean): readonly [string, string, string] | null;
22
+ /** The footer line's left side, cut to `columns` with an ellipsis. */
23
+ export declare function screenFooter(options: {
24
+ readonly showAll: boolean;
25
+ readonly dialogWaiting: boolean;
26
+ readonly columns: number;
27
+ }): {
28
+ readonly prefix: string;
29
+ readonly text: string;
30
+ };
31
+ //# sourceMappingURL=transcript-screen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcript-screen.d.ts","sourceRoot":"","sources":["../../src/tui/transcript-screen.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,oEAAoE;AACpE,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAExC,uEAAuE;AACvE,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAA;CAC5C;AAED,uFAAuF;AACvF,wBAAgB,YAAY,CAC3B,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EACtC,OAAO,EAAE,OAAO,GACd,YAAY,CAWd;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC5B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,OAA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;;;;GAQG;AACH,wBAAgB,UAAU,CACzB,KAAK,EAAE,WAAW,EAClB,IAAI,EAAE,SAAS,SAAS,EAAE,EAC1B,MAAM,EAAE,MAAM,GACZ,YAAY,CAUd;AAWD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAG1E"}
@@ -10,7 +10,9 @@ import type { ToolResultScreenConfig } from '../config/tool-result-screens.js';
10
10
  import type { McpServersConfig } from '../integrations/mcp/servers.js';
11
11
  import type { ResolvedLogging } from '../logging.js';
12
12
  import type { ChecklistItem } from './Checklist.js';
13
+ import type { ContextView } from './context-grid.js';
13
14
  import type { DiffInfo } from './diff-view.js';
15
+ import type { GroupState } from './read-search-group.js';
14
16
  import type { ShellOutput } from './shell-cell.js';
15
17
  import type { TaskOperation } from './task-activity.js';
16
18
  export type MessageRole = 'user' | 'assistant' | 'system' | 'tool';
@@ -18,10 +20,19 @@ export interface TranscriptMessage {
18
20
  readonly id: string;
19
21
  readonly role: MessageRole;
20
22
  readonly content: string;
23
+ /**
24
+ * `recap`: the away recap, a display-only row (`※ recap: …`). Never sent to
25
+ * the model and never counted as something the person typed. `shell`: the
26
+ * echo of a `!command` the person ran themselves; a user row, but not a
27
+ * prompt (no reply follows it and no rewind point stands at it).
28
+ */
29
+ readonly kind?: 'recap' | 'shell';
21
30
  /** Host-only schedule result from the active conversation's sidecar inbox. */
22
31
  readonly sourceDelivery?: true;
23
32
  /** Structured operator status snapshot; plain content remains available for raw/export. */
24
33
  readonly statusRows?: readonly (readonly [string, string])[];
34
+ /** The `/context` grid and lists; `content` carries the same as plain text. */
35
+ readonly contextView?: ContextView;
25
36
  readonly pending?: boolean;
26
37
  /**
27
38
  * Compact successful observation, with full output available on expansion.
@@ -30,10 +41,19 @@ export interface TranscriptMessage {
30
41
  * the terminal's width with an ellipsis.
31
42
  */
32
43
  readonly activity?: 'exploration' | 'catalogue' | 'evidence' | 'agent-result' | 'web' | 'summary';
44
+ /**
45
+ * Reads, searches, listings and connector calls folded into one counted line.
46
+ * `content` is the line as plain text, `detail` holds every call it covers
47
+ * (each call's headline, then its output) for expansion, and `pending` means
48
+ * more calls may still join it.
49
+ */
50
+ readonly group?: GroupState;
33
51
  /** Overrides the role's default gutter glyph (e.g. a per-tool icon). */
34
52
  readonly glyph?: string;
35
53
  /** Overrides the glyph color (e.g. red for a failed tool). */
36
54
  readonly glyphColor?: string;
55
+ /** Overrides the colour of the row's text (the glyph keeps `glyphColor`). */
56
+ readonly contentColor?: string;
37
57
  /** Dim suffix after the content (e.g. a tool's elapsed time). */
38
58
  readonly meta?: string;
39
59
  /** Collapsible body under the line (tool diff / output). */
@@ -55,9 +75,14 @@ export interface TranscriptMessage {
55
75
  readonly detailRef?: number;
56
76
  /**
57
77
  * Print the complete retained body, without clipping or omission markers.
58
- * Ctrl+O toggles this on live rows; a settled body is reprinted in a new row.
78
+ * The detailed transcript screen (Ctrl+O) draws every row this way.
59
79
  */
60
80
  readonly detailExpanded?: boolean;
81
+ /**
82
+ * What the model reasoned before this row. Kept so the detailed transcript
83
+ * screen can draw it; no other view shows it.
84
+ */
85
+ readonly thinking?: string;
61
86
  /**
62
87
  * A shell call's output, drawn as the command cell: this row is the header
63
88
  * (`content`) and the `⎿` result under it, elided to a preview until
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/tui/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,KAAK,EACX,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,sBAAsB,EACtB,cAAc,EACd,WAAW,EACX,eAAe,EACf,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,gBAAgB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run.
3
+ * It stays at the right end while the check found one; nothing else claims the
4
+ * end of the row except a hint, a notice or a goal.
5
+ */
6
+ import type { UpdateInfo } from '../integrations/updates.js';
7
+ export declare function updateAmbient(update: UpdateInfo): {
8
+ readonly text: string;
9
+ readonly tone: 'warn';
10
+ readonly strong: string;
11
+ };
12
+ //# sourceMappingURL=update-notice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-notice.d.ts","sourceRoot":"","sources":["../../src/tui/update-notice.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACvB,CAEA"}
@@ -0,0 +1,29 @@
1
+ import { IdleCompactor } from '../integrations/compaction/idle-compaction.js';
2
+ /**
3
+ * What the screen knows that the idle compactor needs. Read through a ref at
4
+ * fire time, so a value that changed since the timer was armed is the one used.
5
+ */
6
+ export interface IdleCompactionHost {
7
+ /** Names the conversation and model; a change cancels the attempt. */
8
+ readonly conversationKey: () => string;
9
+ /** Undefined while idle compaction is off. */
10
+ readonly settings: () => {
11
+ readonly minTokens: number;
12
+ } | undefined;
13
+ readonly lastInteractionAt: () => number;
14
+ readonly isTurnRunning: () => boolean;
15
+ readonly isDialogOpen: () => boolean;
16
+ readonly hasPendingWake: () => boolean;
17
+ readonly hasBackgroundWork: () => boolean;
18
+ /** Run the compaction and show its result; true when something was compacted. */
19
+ readonly compact: () => Promise<boolean>;
20
+ }
21
+ /** One compactor for the life of the screen; its timer is cleared on unmount. */
22
+ export declare function useIdleCompaction(host: IdleCompactionHost): {
23
+ readonly compactor: IdleCompactor;
24
+ /** The latest context size the kernel reported, or undefined after a rewrite. */
25
+ readonly contextTokens: {
26
+ current: number | undefined;
27
+ };
28
+ };
29
+ //# sourceMappingURL=use-idle-compaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-idle-compaction.d.ts","sourceRoot":"","sources":["../../src/tui/use-idle-compaction.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAA;AAE7E;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAClC,sEAAsE;IACtE,QAAQ,CAAC,eAAe,EAAE,MAAM,MAAM,CAAA;IACtC,8CAA8C;IAC9C,QAAQ,CAAC,QAAQ,EAAE,MAAM;QAAE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;IACnE,QAAQ,CAAC,iBAAiB,EAAE,MAAM,MAAM,CAAA;IACxC,QAAQ,CAAC,aAAa,EAAE,MAAM,OAAO,CAAA;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,OAAO,CAAA;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,OAAO,CAAA;IACtC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,OAAO,CAAA;IACzC,iFAAiF;IACjF,QAAQ,CAAC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;CACxC;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,kBAAkB,GAAG;IAC5D,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAA;IACjC,iFAAiF;IACjF,QAAQ,CAAC,aAAa,EAAE;QAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAA;CACvD,CAgCA"}
@@ -0,0 +1,23 @@
1
+ import { type Tip } from './spinner-tips.js';
2
+ import type { TipHistoryStore } from './tip-history.js';
3
+ export interface SpinnerTipInput {
4
+ readonly store: TipHistoryStore | undefined;
5
+ /** `tui.spinnerTips`, with this session's `/config tips` choice applied. */
6
+ readonly enabled: boolean;
7
+ /** True while a reply is in flight (thinking, running a tool or waiting on a permission). */
8
+ readonly busy: boolean;
9
+ readonly statusLineSet: boolean;
10
+ readonly notificationsSet: boolean;
11
+ /** Tool calls the reply that just ended made. */
12
+ readonly lastTurnToolCalls: () => number;
13
+ readonly env?: Readonly<Record<string, string | undefined>>;
14
+ readonly tips?: readonly Tip[];
15
+ }
16
+ /**
17
+ * The tip for the next reply's working row. It is picked once, when a reply
18
+ * ends, and recorded then (not when it is shown); it does not change while
19
+ * the next reply runs. A launch's first reply shows none: nothing has ended
20
+ * yet. Turning tips off clears it at once.
21
+ */
22
+ export declare function useSpinnerTip(input: SpinnerTipInput): string | undefined;
23
+ //# sourceMappingURL=use-spinner-tip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-spinner-tip.d.ts","sourceRoot":"","sources":["../../src/tui/use-spinner-tip.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,KAAK,GAAG,EAA4B,MAAM,mBAAmB,CAAA;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvD,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,CAAA;IAC3C,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,6FAA6F;IAC7F,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;IAClC,iDAAiD;IACjD,QAAQ,CAAC,iBAAiB,EAAE,MAAM,MAAM,CAAA;IACxC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC3D,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,GAAG,EAAE,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CA+BxE"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Runs `notifications.ts`: holds the state, owns the one timer, and hands the
3
+ * footer the notice that is up. `add` and `remove` are stable and synchronous
4
+ * (they read the latest state from a ref), so a key handler can call them and
5
+ * the next key sees the result.
6
+ */
7
+ import { type Notice } from './notifications.js';
8
+ export interface NoticeSlot {
9
+ readonly current: Notice | null;
10
+ readonly add: (notice: Notice) => void;
11
+ readonly remove: (key: string) => void;
12
+ }
13
+ export declare function useNotifications(): NoticeSlot;
14
+ //# sourceMappingURL=useNotifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNotifications.d.ts","sourceRoot":"","sources":["../../src/tui/useNotifications.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAEN,KAAK,MAAM,EAIX,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IAC/B,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAED,wBAAgB,gBAAgB,IAAI,UAAU,CAkC7C"}
@@ -0,0 +1,21 @@
1
+ import { type Dispatch, type SetStateAction } from 'react';
2
+ import { type FoldOp } from './read-search-group.js';
3
+ import type { TranscriptMessage } from './types.js';
4
+ export interface ReadSearchGroupControls {
5
+ /** A read, search, listing or connector call started: open the group or add to it. */
6
+ readonly start: (memberKey: string, op: FoldOp) => void;
7
+ /** A member ended, whether it worked or failed: keep its text in the group. False when it is not a member of an open group. */
8
+ readonly finish: (memberKey: string, section: readonly string[]) => boolean;
9
+ /** Settle the open group into its past-tense line. Does nothing when none is open. */
10
+ readonly close: () => void;
11
+ }
12
+ /**
13
+ * The one group of consecutive reads, searches and listings a live run keeps
14
+ * open. The row is pending while it is open (present tense, counting up) and is
15
+ * settled by the first thing that is not one of those calls: the model's text,
16
+ * another kind of call, a notice, the person's message or the end of the turn.
17
+ */
18
+ export declare function useReadSearchGroup(setMessages: Dispatch<SetStateAction<readonly TranscriptMessage[]>>, nextId: () => string,
19
+ /** Hands over the reasoning that came before this row, once, or nothing. */
20
+ takeThinking?: () => string | undefined): ReadSearchGroupControls;
21
+ //# sourceMappingURL=useReadSearchGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useReadSearchGroup.d.ts","sourceRoot":"","sources":["../../src/tui/useReadSearchGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,cAAc,EAAgC,MAAM,OAAO,CAAA;AAGxF,OAAO,EAEN,KAAK,MAAM,EAIX,MAAM,wBAAwB,CAAA;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAUnD,MAAM,WAAW,uBAAuB;IACvC,sFAAsF;IACtF,QAAQ,CAAC,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACvD,+HAA+H;IAC/H,QAAQ,CAAC,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAA;IAC3E,sFAAsF;IACtF,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAA;CAC1B;AAQD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CACjC,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,iBAAiB,EAAE,CAAC,CAAC,EACnE,MAAM,EAAE,MAAM,MAAM;AACpB,4EAA4E;AAC5E,YAAY,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,GACrC,uBAAuB,CA0FzB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namzu/cli",
3
- "version": "39.2.0",
3
+ "version": "40.0.0",
4
4
  "description": "Interactive and headless terminal agent for Namzu, with provider discovery, durable sessions, tools and diagnostics.",
5
5
  "keywords": [
6
6
  "namzu",
@@ -57,18 +57,18 @@
57
57
  "react": "19.2.6",
58
58
  "string-width": "8.2.1",
59
59
  "yaml": "^2.9.0",
60
+ "@namzu/anthropic": "6.4.0",
60
61
  "@namzu/browser": "2.0.1",
61
- "@namzu/anthropic": "6.3.0",
62
+ "@namzu/computer-use": "3.1.0",
63
+ "@namzu/deepseek": "^2.1.0",
62
64
  "@namzu/files": "1.1.2",
65
+ "@namzu/google": "^1.1.3",
63
66
  "@namzu/ollama": "2.2.5",
64
- "@namzu/computer-use": "3.1.0",
65
67
  "@namzu/openai": "4.2.0",
66
- "@namzu/google": "^1.1.3",
67
- "@namzu/sandbox": "^28.0.0",
68
- "@namzu/sdk": "^53.2.0",
69
68
  "@namzu/openrouter": "3.0.4",
70
- "@namzu/zen": "^5.0.2",
71
- "@namzu/deepseek": "^2.1.0"
69
+ "@namzu/sandbox": "^29.0.0",
70
+ "@namzu/sdk": "^54.0.0",
71
+ "@namzu/zen": "^5.0.2"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@biomejs/biome": "^1.9.4",
@@ -19,12 +19,12 @@ Two tools. `browser` looks and moves: `navigate`, `back`, `forward`,
19
19
  `browser` with `action: "snapshot"`. It returns the page as an
20
20
  accessibility tree, each element marked `[ref=eN]`, under a header line:
21
21
 
22
- `Page: https://github.com — "Pull requests" (tab t1)`
22
+ `Page: https://example.com — "Example page" (tab t1)`
23
23
 
24
24
  2. **Act by ref.** Pass the `ref` from the latest snapshot. Refs belong to
25
25
  that snapshot only; after the page changes, take a new one.
26
26
  3. **Copy the origin.** Every `browser_act` call needs `origin`, copied
27
- exactly from the header (`https://github.com` above), never typed from
27
+ exactly from the header (`https://example.com` above), never typed from
28
28
  memory or taken from a link. If the page has moved to another origin the
29
29
  call is refused and nothing happens; a ref from an older snapshot is
30
30
  refused the same way. Take a snapshot and decide again.
@@ -197,7 +197,7 @@ Start from the smallest set that can do the job.
197
197
  waits for the operator. Unmatched calls park.
198
198
  - `rules`: extra rules in the config's `[permissions]` vocabulary, applied
199
199
  over the preset: a tool name mapped to `allow`, `ask` or `deny`, or to
200
- patterns, e.g. `{"bash": {"npm test*": "allow", "*": "ask"}}`. Allow the
200
+ patterns, e.g. `{"bash": {"<command> *": "allow", "*": "ask"}}`. Allow the
201
201
  exact commands the job needs, not `bash` as a whole.
202
202
  - `unmatched` (required): what happens to a call no rule covers. `park`
203
203
  waits for the operator (the job's later runs are skipped until they
@@ -267,10 +267,10 @@ alone:
267
267
  the user reads afterwards. Keep exact values (addresses, commands, text to
268
268
  post) as the user gave them.
269
269
 
270
- Example: "Run `npm outdated --json` in this folder. If any dependency is a
271
- major version behind, write the list with current and latest versions to
272
- `reports/outdated.md`, replacing the file. If the command fails, stop and
273
- report its error. Do not install or change anything."
270
+ Example: "Check the files in this folder. If any file is older than a week, write
271
+ the list with names and dates to `reports/stale.md`, replacing the file. If a
272
+ file cannot be read, stop and report the error. Do not install or change
273
+ anything."
274
274
 
275
275
  ## 5. Propose, then confirm
276
276
 
@@ -302,7 +302,7 @@ the result says none is installed, tell the user to run
302
302
  ## Browser access
303
303
 
304
304
  Grant the browser with `permissions.browser`:
305
- `{ "profile": "social", "sites": { "http://localhost:8123": "act" } }`.
305
+ `{ "profile": "work", "sites": { "http://localhost:8123": "act" } }`.
306
306
 
307
307
  - `profile` is one the operator already signed in to with
308
308
  `namzu browser login <profile> <url>`. Use the one the user named, or ask;
@@ -327,7 +327,7 @@ the user the command to run themselves, for example:
327
327
 
328
328
  and for a browser job
329
329
 
330
- `namzu schedule add morning-post --prompt "…" --when "0 9 * * *" --permissions read-only --unmatched deny --browser social --browser-site http://localhost:8123=act`
330
+ `namzu schedule add morning-report --prompt "…" --when "0 9 * * *" --permissions read-only --unmatched deny --browser work --browser-site http://localhost:8123=act`
331
331
 
332
332
  and for a `script` job:
333
333
 
@@ -52,7 +52,7 @@ Then draft:
52
52
  imperative. Keep it short: under about 150 lines. Link to files by path
53
53
  rather than pasting them.
54
54
  - **language**: write the description and the body in the language the user
55
- writes to you in (a Turkish-speaking user gets a Turkish skill), not in
55
+ writes to you in (a user writing in another language gets a skill in that language), not in
56
56
  English by default. A request namzu itself wrote, such as the one
57
57
  `/skills save` sends, does not count; go by the user's own messages. The
58
58
  name stays lowercase ASCII.