@namzu/cli 52.1.0 → 52.2.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 (266) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-C2H6FGPR.js → acp-QNJODJHL.js} +51 -24
  4. package/dist/chunks/{acp-C2H6FGPR.js.map → acp-QNJODJHL.js.map} +1 -1
  5. package/dist/chunks/{add-VOR5M5BV.js → add-L6FKDP7N.js} +9 -9
  6. package/dist/chunks/{agent-EWZGPBGI.js → agent-VJRVABX2.js} +13 -13
  7. package/dist/chunks/{agent-session-EKTTB7TN.js → agent-session-JO5HEUHN.js} +14 -14
  8. package/dist/chunks/{apply-at-exit-FVOHKVHQ.js → apply-at-exit-OGSLNQHX.js} +4 -4
  9. package/dist/chunks/bash-5556UNOY.js +404 -0
  10. package/dist/chunks/bash-5556UNOY.js.map +6 -0
  11. package/dist/chunks/{bin-main-C5UNGSAQ.js → bin-main-XIAVK2BK.js} +5 -5
  12. package/dist/chunks/c-SMQ2QLVV.js +304 -0
  13. package/dist/chunks/c-SMQ2QLVV.js.map +6 -0
  14. package/dist/chunks/{chat-YQCC2O5F.js → chat-AQICSI4M.js} +2 -2
  15. package/dist/chunks/{chunk-F7LMCISP.js → chunk-33CQRXME.js} +3 -3
  16. package/dist/chunks/{chunk-H6KPEFAR.js → chunk-47E6HKJT.js} +2 -2
  17. package/dist/chunks/{chunk-6KB5XGKP.js → chunk-4XZ67B3M.js} +2 -2
  18. package/dist/chunks/{chunk-FWAUXNV2.js → chunk-625CBBTB.js} +2 -2
  19. package/dist/chunks/{chunk-W7JMWUGD.js → chunk-A54YZM6S.js} +13 -13
  20. package/dist/chunks/{chunk-WK6RNDIK.js → chunk-BCPKC2WP.js} +2 -2
  21. package/dist/chunks/{chunk-YIBJO76L.js → chunk-DMUQFCYZ.js} +2 -2
  22. package/dist/chunks/{chunk-ZNYLVJIS.js → chunk-FTVJAKCW.js} +3 -3
  23. package/dist/chunks/{chunk-WNVU6MMP.js → chunk-IZJ5JESH.js} +2 -2
  24. package/dist/chunks/{chunk-JWS3NQAH.js → chunk-JCIHE3LO.js} +4 -4
  25. package/dist/chunks/{chunk-J2JLP6NV.js → chunk-LJNIEZAF.js} +27 -8
  26. package/dist/chunks/{chunk-J2JLP6NV.js.map → chunk-LJNIEZAF.js.map} +1 -1
  27. package/dist/chunks/{chunk-Y2DDE2WB.js → chunk-NRFNUYVH.js} +3 -3
  28. package/dist/chunks/{chunk-IBTPIZKL.js → chunk-PRTQ2L3O.js} +8 -8
  29. package/dist/chunks/{chunk-MVMWAXEY.js → chunk-PVHTDN4J.js} +2 -2
  30. package/dist/chunks/{chunk-2ZYV3IZA.js → chunk-R3BEW6BX.js} +22 -22
  31. package/dist/chunks/{chunk-QZODMCBW.js → chunk-RX22HLIT.js} +2 -2
  32. package/dist/chunks/{chunk-FMBLLPNE.js → chunk-S2JWPUUH.js} +67 -1
  33. package/dist/chunks/{chunk-FMBLLPNE.js.map → chunk-S2JWPUUH.js.map} +1 -1
  34. package/dist/chunks/{chunk-SFAK4Z6T.js → chunk-SRHEX5JB.js} +3342 -1228
  35. package/dist/chunks/chunk-SRHEX5JB.js.map +6 -0
  36. package/dist/chunks/{chunk-N3LPO5PK.js → chunk-TITSLPYI.js} +11 -11
  37. package/dist/chunks/{chunk-F7MCS63F.js → chunk-UF6F2Z62.js} +3 -3
  38. package/dist/chunks/{chunk-6O5Q6YBP.js → chunk-UKOCGHMU.js} +489 -57
  39. package/dist/chunks/{chunk-6O5Q6YBP.js.map → chunk-UKOCGHMU.js.map} +2 -2
  40. package/dist/chunks/{chunk-4SEHD4ZI.js → chunk-USDNK4TL.js} +2 -2
  41. package/dist/chunks/{chunk-EJCQKJZ2.js → chunk-WD2F6EO3.js} +35 -3
  42. package/dist/chunks/chunk-WD2F6EO3.js.map +6 -0
  43. package/dist/chunks/{chunk-TEBW5NV3.js → chunk-WSEJK4WO.js} +3 -3
  44. package/dist/chunks/{chunk-GFEHVD2U.js → chunk-WZHS724Y.js} +2 -2
  45. package/dist/chunks/{chunk-JBC4TK56.js → chunk-YMMEAXUK.js} +2 -2
  46. package/dist/chunks/{chunk-47R3EA5L.js → chunk-ZDEQIXJX.js} +2 -2
  47. package/dist/chunks/{chunk-OIYJMKAT.js → chunk-ZIFCQKET.js} +2 -2
  48. package/dist/chunks/{cli-runtime-SWBSTK5Y.js → cli-runtime-J5E5XM6I.js} +7 -7
  49. package/dist/chunks/core-6GH4J4QJ.js +1647 -0
  50. package/dist/chunks/core-6GH4J4QJ.js.map +6 -0
  51. package/dist/chunks/cpp-VMCZSFFM.js +553 -0
  52. package/dist/chunks/cpp-VMCZSFFM.js.map +6 -0
  53. package/dist/chunks/csharp-OVPHVEVY.js +410 -0
  54. package/dist/chunks/csharp-OVPHVEVY.js.map +6 -0
  55. package/dist/chunks/css-RIXPOU7U.js +947 -0
  56. package/dist/chunks/css-RIXPOU7U.js.map +6 -0
  57. package/dist/chunks/diff-IP3Y64PF.js +63 -0
  58. package/dist/chunks/diff-IP3Y64PF.js.map +6 -0
  59. package/dist/chunks/dockerfile-DVPABFVZ.js +44 -0
  60. package/dist/chunks/dockerfile-DVPABFVZ.js.map +6 -0
  61. package/dist/chunks/{doctor-BO6742WI.js → doctor-TC5F3XFP.js} +20 -20
  62. package/dist/chunks/{drain-R55GDZ6K.js → drain-VINUZDH4.js} +2 -2
  63. package/dist/chunks/{entry-OIRUHLN6.js → entry-UEPUPWGI.js} +4 -4
  64. package/dist/chunks/{eval-LC2YEQE4.js → eval-YTQCMDNP.js} +5 -5
  65. package/dist/chunks/{exec-MVNCTFY2.js → exec-DGX427HX.js} +32 -32
  66. package/dist/chunks/go-RKN2IZ6A.js +164 -0
  67. package/dist/chunks/go-RKN2IZ6A.js.map +6 -0
  68. package/dist/chunks/graphql-2VQIML4V.js +80 -0
  69. package/dist/chunks/graphql-2VQIML4V.js.map +6 -0
  70. package/dist/chunks/{host-OJRB5UR4.js → host-KTD5OE67.js} +5 -5
  71. package/dist/chunks/{host-queries-BTUGRPDQ.js → host-queries-JPW6LDTA.js} +2 -2
  72. package/dist/chunks/ini-W63MIP5J.js +126 -0
  73. package/dist/chunks/ini-W63MIP5J.js.map +6 -0
  74. package/dist/chunks/java-R4N7OXMG.js +265 -0
  75. package/dist/chunks/java-R4N7OXMG.js.map +6 -0
  76. package/dist/chunks/javascript-26OKUOUQ.js +712 -0
  77. package/dist/chunks/javascript-26OKUOUQ.js.map +6 -0
  78. package/dist/chunks/json-4GADDWNK.js +50 -0
  79. package/dist/chunks/json-4GADDWNK.js.map +6 -0
  80. package/dist/chunks/kotlin-MB7RKXOG.js +265 -0
  81. package/dist/chunks/kotlin-MB7RKXOG.js.map +6 -0
  82. package/dist/chunks/{learn-L7W4AY6F.js → learn-VUJQOB57.js} +2 -2
  83. package/dist/chunks/{learn-builtin-F6D7VG2T.js → learn-builtin-POKSGCNI.js} +3 -3
  84. package/dist/chunks/less-GNSNU2PC.js +1028 -0
  85. package/dist/chunks/less-GNSNU2PC.js.map +6 -0
  86. package/dist/chunks/{lifecycle-VH5JVETC.js → lifecycle-7BOLGSXR.js} +11 -11
  87. package/dist/chunks/{list-O6NVVBVF.js → list-QTYDGVQY.js} +7 -7
  88. package/dist/chunks/{live-VMIC5YSV.js → live-WTDKDIAG.js} +19 -19
  89. package/dist/chunks/lua-RNOSKZ3S.js +71 -0
  90. package/dist/chunks/lua-RNOSKZ3S.js.map +6 -0
  91. package/dist/chunks/makefile-ZK3QWG3U.js +81 -0
  92. package/dist/chunks/makefile-ZK3QWG3U.js.map +6 -0
  93. package/dist/chunks/markdown-JVOBZC3L.js +242 -0
  94. package/dist/chunks/markdown-JVOBZC3L.js.map +6 -0
  95. package/dist/chunks/{mcp-SUQ5VHS3.js → mcp-6QVO6CF6.js} +5 -5
  96. package/dist/chunks/{message-command-D72XMTER.js → message-command-LZDQXRHW.js} +16 -16
  97. package/dist/chunks/objectivec-SSOLSTDI.js +253 -0
  98. package/dist/chunks/objectivec-SSOLSTDI.js.map +6 -0
  99. package/dist/chunks/{pal-IMTWZXWM.js → pal-EHDMM5XR.js} +3 -3
  100. package/dist/chunks/{palette-V2OJ6BIE.js → palette-GXE6GZA5.js} +4 -4
  101. package/dist/chunks/perl-G647IKFY.js +495 -0
  102. package/dist/chunks/perl-G647IKFY.js.map +6 -0
  103. package/dist/chunks/php-KMB36QTV.js +611 -0
  104. package/dist/chunks/php-KMB36QTV.js.map +6 -0
  105. package/dist/chunks/php-template-56RLSWZJ.js +56 -0
  106. package/dist/chunks/php-template-56RLSWZJ.js.map +6 -0
  107. package/dist/chunks/powershell-CPSUXW3K.js +266 -0
  108. package/dist/chunks/powershell-CPSUXW3K.js.map +6 -0
  109. package/dist/chunks/python-OSTRJJHH.js +425 -0
  110. package/dist/chunks/python-OSTRJJHH.js.map +6 -0
  111. package/dist/chunks/python-repl-LLFK2MIA.js +35 -0
  112. package/dist/chunks/python-repl-LLFK2MIA.js.map +6 -0
  113. package/dist/chunks/r-CJCHZ5CO.js +220 -0
  114. package/dist/chunks/r-CJCHZ5CO.js.map +6 -0
  115. package/dist/chunks/ruby-CFOXHYOD.js +423 -0
  116. package/dist/chunks/ruby-CFOXHYOD.js.map +6 -0
  117. package/dist/chunks/rust-2CAQW5OE.js +323 -0
  118. package/dist/chunks/rust-2CAQW5OE.js.map +6 -0
  119. package/dist/chunks/{schedule-CKRLCLZE.js → schedule-BLLPDUT7.js} +5 -5
  120. package/dist/chunks/scss-BWFJU4ST.js +932 -0
  121. package/dist/chunks/scss-BWFJU4ST.js.map +6 -0
  122. package/dist/chunks/{service-X3J6SDE6.js → service-E2JXIOD6.js} +10 -10
  123. package/dist/chunks/shell-DRNHCIHJ.js +34 -0
  124. package/dist/chunks/shell-DRNHCIHJ.js.map +6 -0
  125. package/dist/chunks/sql-QPNQXTYW.js +655 -0
  126. package/dist/chunks/sql-QPNQXTYW.js.map +6 -0
  127. package/dist/chunks/{start-check-U4TZS2VO.js → start-check-NHTTM354.js} +2 -2
  128. package/dist/chunks/swift-VA7FJ27U.js +890 -0
  129. package/dist/chunks/swift-VA7FJ27U.js.map +6 -0
  130. package/dist/chunks/{tui-C2YPD5ZD.js → tui-MYBPZUMK.js} +57 -681
  131. package/dist/chunks/tui-MYBPZUMK.js.map +6 -0
  132. package/dist/chunks/typescript-AD6TOU6X.js +826 -0
  133. package/dist/chunks/typescript-AD6TOU6X.js.map +6 -0
  134. package/dist/chunks/{upgrade-7AKSY32I.js → upgrade-LG2D66IY.js} +3 -3
  135. package/dist/chunks/vbnet-RRNEF3GL.js +143 -0
  136. package/dist/chunks/vbnet-RRNEF3GL.js.map +6 -0
  137. package/dist/chunks/wasm-4AFLPXP5.js +131 -0
  138. package/dist/chunks/wasm-4AFLPXP5.js.map +6 -0
  139. package/dist/chunks/{watch-X7HL77BT.js → watch-E5G5E7SZ.js} +77 -41
  140. package/dist/chunks/watch-E5G5E7SZ.js.map +6 -0
  141. package/dist/chunks/{workspaces-4BNGHUKR.js → workspaces-XNXMVP5C.js} +5 -5
  142. package/dist/chunks/xml-FZC4FVGO.js +236 -0
  143. package/dist/chunks/xml-FZC4FVGO.js.map +6 -0
  144. package/dist/chunks/yaml-KHJI72O5.js +211 -0
  145. package/dist/chunks/yaml-KHJI72O5.js.map +6 -0
  146. package/dist/commands/watch.d.ts.map +1 -1
  147. package/dist/config/load.d.ts +1 -1
  148. package/dist/config/load.d.ts.map +1 -1
  149. package/dist/config/schema.d.ts +27 -0
  150. package/dist/config/schema.d.ts.map +1 -1
  151. package/dist/config/settings-descriptors.d.ts.map +1 -1
  152. package/dist/index.js +22 -22
  153. package/dist/integrations/sessions/watch-view.d.ts +10 -1
  154. package/dist/integrations/sessions/watch-view.d.ts.map +1 -1
  155. package/dist/tui/App.d.ts +4 -0
  156. package/dist/tui/App.d.ts.map +1 -1
  157. package/dist/tui/BackgroundAgentRows.d.ts.map +1 -1
  158. package/dist/tui/Markdown.d.ts +13 -3
  159. package/dist/tui/Markdown.d.ts.map +1 -1
  160. package/dist/tui/Transcript.d.ts +10 -0
  161. package/dist/tui/Transcript.d.ts.map +1 -1
  162. package/dist/tui/TranscriptScrollView.d.ts.map +1 -1
  163. package/dist/tui/agent-calls.d.ts +49 -0
  164. package/dist/tui/agent-calls.d.ts.map +1 -0
  165. package/dist/tui/agent-transcript-rows.d.ts +17 -0
  166. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  167. package/dist/tui/background-agents.d.ts +22 -2
  168. package/dist/tui/background-agents.d.ts.map +1 -1
  169. package/dist/tui/code-highlight.d.ts +222 -0
  170. package/dist/tui/code-highlight.d.ts.map +1 -0
  171. package/dist/tui/copy-targets.d.ts.map +1 -1
  172. package/dist/tui/fullscreen/FullscreenTranscript.d.ts +13 -1
  173. package/dist/tui/fullscreen/FullscreenTranscript.d.ts.map +1 -1
  174. package/dist/tui/fullscreen/glide.d.ts +87 -0
  175. package/dist/tui/fullscreen/glide.d.ts.map +1 -0
  176. package/dist/tui/fullscreen/layout.d.ts +10 -1
  177. package/dist/tui/fullscreen/layout.d.ts.map +1 -1
  178. package/dist/tui/fullscreen/markdown-rows.d.ts.map +1 -1
  179. package/dist/tui/fullscreen/rows.d.ts +6 -0
  180. package/dist/tui/fullscreen/rows.d.ts.map +1 -1
  181. package/dist/tui/fullscreen/selection.d.ts.map +1 -1
  182. package/dist/tui/fullscreen/viewport.d.ts +4 -1
  183. package/dist/tui/fullscreen/viewport.d.ts.map +1 -1
  184. package/dist/tui/index.d.ts.map +1 -1
  185. package/dist/tui/markdown-fence.d.ts +47 -0
  186. package/dist/tui/markdown-fence.d.ts.map +1 -0
  187. package/dist/tui/markdown-structure.d.ts +22 -0
  188. package/dist/tui/markdown-structure.d.ts.map +1 -1
  189. package/dist/tui/markdownParser.d.ts +8 -1
  190. package/dist/tui/markdownParser.d.ts.map +1 -1
  191. package/dist/tui/new-output.d.ts +60 -0
  192. package/dist/tui/new-output.d.ts.map +1 -0
  193. package/dist/tui/paint/live-paint.d.ts +39 -0
  194. package/dist/tui/paint/live-paint.d.ts.map +1 -1
  195. package/dist/tui/read-search-group.d.ts +24 -0
  196. package/dist/tui/read-search-group.d.ts.map +1 -1
  197. package/dist/tui/restored-rows.d.ts +26 -2
  198. package/dist/tui/restored-rows.d.ts.map +1 -1
  199. package/dist/tui/stream-flow.d.ts +24 -0
  200. package/dist/tui/stream-flow.d.ts.map +1 -1
  201. package/dist/tui/theme-launch.d.ts +2 -2
  202. package/dist/tui/theme-launch.d.ts.map +1 -1
  203. package/dist/tui/theme-palettes.d.ts +20 -0
  204. package/dist/tui/theme-palettes.d.ts.map +1 -1
  205. package/dist/tui/theme.d.ts +5 -0
  206. package/dist/tui/theme.d.ts.map +1 -1
  207. package/dist/tui/transcript-scroll.d.ts +7 -2
  208. package/dist/tui/transcript-scroll.d.ts.map +1 -1
  209. package/dist/tui/types.d.ts +9 -0
  210. package/dist/tui/types.d.ts.map +1 -1
  211. package/package.json +5 -4
  212. package/dist/chunks/chunk-EJCQKJZ2.js.map +0 -6
  213. package/dist/chunks/chunk-SFAK4Z6T.js.map +0 -6
  214. package/dist/chunks/tui-C2YPD5ZD.js.map +0 -6
  215. package/dist/chunks/watch-X7HL77BT.js.map +0 -6
  216. /package/dist/chunks/{add-VOR5M5BV.js.map → add-L6FKDP7N.js.map} +0 -0
  217. /package/dist/chunks/{agent-EWZGPBGI.js.map → agent-VJRVABX2.js.map} +0 -0
  218. /package/dist/chunks/{agent-session-EKTTB7TN.js.map → agent-session-JO5HEUHN.js.map} +0 -0
  219. /package/dist/chunks/{apply-at-exit-FVOHKVHQ.js.map → apply-at-exit-OGSLNQHX.js.map} +0 -0
  220. /package/dist/chunks/{bin-main-C5UNGSAQ.js.map → bin-main-XIAVK2BK.js.map} +0 -0
  221. /package/dist/chunks/{chat-YQCC2O5F.js.map → chat-AQICSI4M.js.map} +0 -0
  222. /package/dist/chunks/{chunk-F7LMCISP.js.map → chunk-33CQRXME.js.map} +0 -0
  223. /package/dist/chunks/{chunk-H6KPEFAR.js.map → chunk-47E6HKJT.js.map} +0 -0
  224. /package/dist/chunks/{chunk-6KB5XGKP.js.map → chunk-4XZ67B3M.js.map} +0 -0
  225. /package/dist/chunks/{chunk-FWAUXNV2.js.map → chunk-625CBBTB.js.map} +0 -0
  226. /package/dist/chunks/{chunk-W7JMWUGD.js.map → chunk-A54YZM6S.js.map} +0 -0
  227. /package/dist/chunks/{chunk-WK6RNDIK.js.map → chunk-BCPKC2WP.js.map} +0 -0
  228. /package/dist/chunks/{chunk-YIBJO76L.js.map → chunk-DMUQFCYZ.js.map} +0 -0
  229. /package/dist/chunks/{chunk-ZNYLVJIS.js.map → chunk-FTVJAKCW.js.map} +0 -0
  230. /package/dist/chunks/{chunk-WNVU6MMP.js.map → chunk-IZJ5JESH.js.map} +0 -0
  231. /package/dist/chunks/{chunk-JWS3NQAH.js.map → chunk-JCIHE3LO.js.map} +0 -0
  232. /package/dist/chunks/{chunk-Y2DDE2WB.js.map → chunk-NRFNUYVH.js.map} +0 -0
  233. /package/dist/chunks/{chunk-IBTPIZKL.js.map → chunk-PRTQ2L3O.js.map} +0 -0
  234. /package/dist/chunks/{chunk-MVMWAXEY.js.map → chunk-PVHTDN4J.js.map} +0 -0
  235. /package/dist/chunks/{chunk-2ZYV3IZA.js.map → chunk-R3BEW6BX.js.map} +0 -0
  236. /package/dist/chunks/{chunk-QZODMCBW.js.map → chunk-RX22HLIT.js.map} +0 -0
  237. /package/dist/chunks/{chunk-N3LPO5PK.js.map → chunk-TITSLPYI.js.map} +0 -0
  238. /package/dist/chunks/{chunk-F7MCS63F.js.map → chunk-UF6F2Z62.js.map} +0 -0
  239. /package/dist/chunks/{chunk-4SEHD4ZI.js.map → chunk-USDNK4TL.js.map} +0 -0
  240. /package/dist/chunks/{chunk-TEBW5NV3.js.map → chunk-WSEJK4WO.js.map} +0 -0
  241. /package/dist/chunks/{chunk-GFEHVD2U.js.map → chunk-WZHS724Y.js.map} +0 -0
  242. /package/dist/chunks/{chunk-JBC4TK56.js.map → chunk-YMMEAXUK.js.map} +0 -0
  243. /package/dist/chunks/{chunk-47R3EA5L.js.map → chunk-ZDEQIXJX.js.map} +0 -0
  244. /package/dist/chunks/{chunk-OIYJMKAT.js.map → chunk-ZIFCQKET.js.map} +0 -0
  245. /package/dist/chunks/{cli-runtime-SWBSTK5Y.js.map → cli-runtime-J5E5XM6I.js.map} +0 -0
  246. /package/dist/chunks/{doctor-BO6742WI.js.map → doctor-TC5F3XFP.js.map} +0 -0
  247. /package/dist/chunks/{drain-R55GDZ6K.js.map → drain-VINUZDH4.js.map} +0 -0
  248. /package/dist/chunks/{entry-OIRUHLN6.js.map → entry-UEPUPWGI.js.map} +0 -0
  249. /package/dist/chunks/{eval-LC2YEQE4.js.map → eval-YTQCMDNP.js.map} +0 -0
  250. /package/dist/chunks/{exec-MVNCTFY2.js.map → exec-DGX427HX.js.map} +0 -0
  251. /package/dist/chunks/{host-OJRB5UR4.js.map → host-KTD5OE67.js.map} +0 -0
  252. /package/dist/chunks/{host-queries-BTUGRPDQ.js.map → host-queries-JPW6LDTA.js.map} +0 -0
  253. /package/dist/chunks/{learn-L7W4AY6F.js.map → learn-VUJQOB57.js.map} +0 -0
  254. /package/dist/chunks/{learn-builtin-F6D7VG2T.js.map → learn-builtin-POKSGCNI.js.map} +0 -0
  255. /package/dist/chunks/{lifecycle-VH5JVETC.js.map → lifecycle-7BOLGSXR.js.map} +0 -0
  256. /package/dist/chunks/{list-O6NVVBVF.js.map → list-QTYDGVQY.js.map} +0 -0
  257. /package/dist/chunks/{live-VMIC5YSV.js.map → live-WTDKDIAG.js.map} +0 -0
  258. /package/dist/chunks/{mcp-SUQ5VHS3.js.map → mcp-6QVO6CF6.js.map} +0 -0
  259. /package/dist/chunks/{message-command-D72XMTER.js.map → message-command-LZDQXRHW.js.map} +0 -0
  260. /package/dist/chunks/{pal-IMTWZXWM.js.map → pal-EHDMM5XR.js.map} +0 -0
  261. /package/dist/chunks/{palette-V2OJ6BIE.js.map → palette-GXE6GZA5.js.map} +0 -0
  262. /package/dist/chunks/{schedule-CKRLCLZE.js.map → schedule-BLLPDUT7.js.map} +0 -0
  263. /package/dist/chunks/{service-X3J6SDE6.js.map → service-E2JXIOD6.js.map} +0 -0
  264. /package/dist/chunks/{start-check-U4TZS2VO.js.map → start-check-NHTTM354.js.map} +0 -0
  265. /package/dist/chunks/{upgrade-7AKSY32I.js.map → upgrade-LG2D66IY.js.map} +0 -0
  266. /package/dist/chunks/{workspaces-4BNGHUKR.js.map → workspaces-XNXMVP5C.js.map} +0 -0
@@ -3,6 +3,13 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  openManagedWorktrees
5
5
  } from "./chunk-SZXJSTKM.js";
6
+ import {
7
+ connectMcpServers,
8
+ startMcpServers
9
+ } from "./chunk-ZI7BWTPK.js";
10
+ import {
11
+ openInBrowser
12
+ } from "./chunk-7UTSUGXV.js";
6
13
  import {
7
14
  PluginSettingsStore,
8
15
  listMarkdownNames,
@@ -45,13 +52,6 @@ import {
45
52
  readProjectGuidance,
46
53
  withSessionLearningFeed
47
54
  } from "./chunk-MVVZHKSQ.js";
48
- import {
49
- connectMcpServers,
50
- startMcpServers
51
- } from "./chunk-ZI7BWTPK.js";
52
- import {
53
- openInBrowser
54
- } from "./chunk-7UTSUGXV.js";
55
55
  import {
56
56
  createBrowserControl
57
57
  } from "./chunk-WHODOMXA.js";
@@ -110,12 +110,19 @@ import {
110
110
  import {
111
111
  CHECK_HINT
112
112
  } from "./chunk-BBTPD3DU.js";
113
+ import {
114
+ conversationInUseSentence,
115
+ minutesUntilFree
116
+ } from "./chunk-T6ZUFXGP.js";
117
+ import {
118
+ debugRequested
119
+ } from "./chunk-GNBMKISG.js";
113
120
  import {
114
121
  ensureLocalConfigIgnored,
115
122
  logIgnoreOutcome,
116
123
  probeCapabilities,
117
124
  writeLocalAllows
118
- } from "./chunk-6KB5XGKP.js";
125
+ } from "./chunk-4XZ67B3M.js";
119
126
  import {
120
127
  LOCAL_CONFIG_FILE,
121
128
  configuredPassthroughTools,
@@ -126,22 +133,28 @@ import {
126
133
  takeConfigWarnings,
127
134
  unmatchedPassthroughTools,
128
135
  workflowTokenCeiling
129
- } from "./chunk-J2JLP6NV.js";
130
- import {
131
- resolveGeneratorSettings
132
- } from "./chunk-LCGXWCVU.js";
136
+ } from "./chunk-LJNIEZAF.js";
133
137
  import {
134
138
  compilePermissions,
135
139
  isPathRuleTool,
136
140
  pathRule,
137
141
  pathRuleTools
138
142
  } from "./chunk-TUFFLY74.js";
143
+ import {
144
+ resolveGeneratorSettings
145
+ } from "./chunk-LCGXWCVU.js";
139
146
  import {
140
147
  cliLogger
141
148
  } from "./chunk-CA7QW5JY.js";
142
149
  import {
143
150
  readModelLaunchEnvironment
144
151
  } from "./chunk-LVVD32KJ.js";
152
+ import {
153
+ formatSize,
154
+ homePath,
155
+ plural,
156
+ productName
157
+ } from "./chunk-6PWRKA5T.js";
145
158
  import {
146
159
  require_dist
147
160
  } from "./chunk-KONYGNG6.js";
@@ -152,23 +165,10 @@ import {
152
165
  import {
153
166
  PERMISSION_MODE_NAMES
154
167
  } from "./chunk-WMEZTDLT.js";
155
- import {
156
- conversationInUseSentence,
157
- minutesUntilFree
158
- } from "./chunk-T6ZUFXGP.js";
159
- import {
160
- debugRequested
161
- } from "./chunk-GNBMKISG.js";
162
- import {
163
- formatSize,
164
- homePath,
165
- plural,
166
- productName
167
- } from "./chunk-6PWRKA5T.js";
168
168
  import {
169
169
  diffColors,
170
170
  theme
171
- } from "./chunk-EJCQKJZ2.js";
171
+ } from "./chunk-WD2F6EO3.js";
172
172
  import {
173
173
  stringWidth
174
174
  } from "./chunk-U5UV2YRE.js";
@@ -1321,9 +1321,9 @@ function entryRows(entry, m, width, dim, colors, text2) {
1321
1321
  const bg = backgroundOf(entry.kind, dim, colors);
1322
1322
  const fg = bg === void 0 ? void 0 : text2;
1323
1323
  const marker = MARKER[entry.kind];
1324
- const words2 = wordRuns(entry, dim);
1325
- const room = Math.max(1, width - m - 1 - (words2 ? marker.length : 2));
1326
- const pieces = wrapRuns(words2 ?? [{ text: entry.code, mark: false }], room);
1324
+ const words3 = wordRuns(entry, dim);
1325
+ const room = Math.max(1, width - m - 1 - (words3 ? marker.length : 2));
1326
+ const pieces = wrapRuns(words3 ?? [{ text: entry.code, mark: false }], room);
1327
1327
  const note = entry.cut > 0 ? truncationNote(entry.cut) : "";
1328
1328
  let noteRow = -1;
1329
1329
  if (note) {
@@ -16655,15 +16655,15 @@ function namesCli(value) {
16655
16655
  }
16656
16656
  __name(namesCli, "namesCli");
16657
16657
  function runsSend(command) {
16658
- const words2 = command.words.slice(command.assignments);
16659
- if (words2.length === 0) return null;
16660
- const head = words2[0];
16658
+ const words3 = command.words.slice(command.assignments);
16659
+ if (words3.length === 0) return null;
16660
+ const head = words3[0];
16661
16661
  const headName = head !== void 0 && !head.expands ? commandName(head.value) : "";
16662
16662
  if (TEXT_ONLY_HEADS.has(headName)) return null;
16663
- const cli = words2.findIndex((word2) => !word2.expands && namesCli(word2.value));
16663
+ const cli = words3.findIndex((word2) => !word2.expands && namesCli(word2.value));
16664
16664
  if (cli >= 0) {
16665
- for (let i = cli + 1; i < words2.length; i++) {
16666
- const word2 = words2[i];
16665
+ for (let i = cli + 1; i < words3.length; i++) {
16666
+ const word2 = words3[i];
16667
16667
  if (word2 === void 0) continue;
16668
16668
  if (word2.expands)
16669
16669
  return "it passes the CLI a word that expands at runtime, which could be `send`";
@@ -16674,7 +16674,7 @@ function runsSend(command) {
16674
16674
  return null;
16675
16675
  }
16676
16676
  if (head?.expands) {
16677
- const rest = words2.slice(1);
16677
+ const rest = words3.slice(1);
16678
16678
  if (rest.some((word2) => !word2.expands && lower(word2.value) === "send"))
16679
16679
  return "its program name expands at runtime and it is followed by `send`";
16680
16680
  if (rest.some((word2) => word2.expands))
@@ -16684,10 +16684,10 @@ function runsSend(command) {
16684
16684
  }
16685
16685
  __name(runsSend, "runsSend");
16686
16686
  function runsUnreadText(command) {
16687
- const words2 = command.words.slice(command.assignments);
16688
- const nested = nestedShellCommand(words2);
16687
+ const words3 = command.words.slice(command.assignments);
16688
+ const nested = nestedShellCommand(words3);
16689
16689
  if (nested !== null && "payload" in nested) return false;
16690
- return words2.some((word2) => !word2.expands && UNREAD_RUNNERS.test(commandName(word2.value)));
16690
+ return words3.some((word2) => !word2.expands && UNREAD_RUNNERS.test(commandName(word2.value)));
16691
16691
  }
16692
16692
  __name(runsUnreadText, "runsUnreadText");
16693
16693
  function textVariants(line) {
@@ -16826,9 +16826,9 @@ function programName(word2) {
16826
16826
  }
16827
16827
  __name(programName, "programName");
16828
16828
  function twoWordPrefix(command) {
16829
- const words2 = command.trim().split(/\s+/).filter(Boolean);
16830
- const [program, subcommand] = words2;
16831
- if (words2.length < 2 || program === void 0 || subcommand === void 0) return void 0;
16829
+ const words3 = command.trim().split(/\s+/).filter(Boolean);
16830
+ const [program, subcommand] = words3;
16831
+ if (words3.length < 2 || program === void 0 || subcommand === void 0) return void 0;
16832
16832
  if (ASSIGNMENT.test(program)) return void 0;
16833
16833
  if (!PLAIN_PROGRAM.test(program) || NO_PREFIX_PROGRAMS.has(programName(program))) return void 0;
16834
16834
  if (!SUBCOMMAND.test(subcommand)) return void 0;
@@ -18208,6 +18208,43 @@ var WORDS = {
18208
18208
  run: { live: "running", done: "ran", one: "command", many: "commands" },
18209
18209
  mcp: { live: "calling", done: "called" }
18210
18210
  };
18211
+ var VCS_WORDS = {
18212
+ commit: { live: "making", done: "made", one: "commit", many: "commits" },
18213
+ amend: { live: "amending", done: "amended", one: "commit", many: "commits" },
18214
+ // The line cannot see a command's result, and a push or a merge that found nothing to do ends well
18215
+ // too: once over these say what was run, not what changed.
18216
+ push: {
18217
+ live: "pushing",
18218
+ done: "ran",
18219
+ one: "time",
18220
+ many: "times",
18221
+ doneNouns: ["push", "pushes"]
18222
+ },
18223
+ "create-branch": { live: "creating", done: "created", one: "branch", many: "branches" },
18224
+ "switch-branch": {
18225
+ live: "switching",
18226
+ done: "switched",
18227
+ one: "time",
18228
+ many: "times",
18229
+ names: "branches"
18230
+ },
18231
+ merge: {
18232
+ live: "merging",
18233
+ done: "ran",
18234
+ one: "branch",
18235
+ many: "branches",
18236
+ doneNouns: ["merge", "merges"]
18237
+ },
18238
+ rebase: {
18239
+ live: "rebasing",
18240
+ done: "ran",
18241
+ one: "time",
18242
+ many: "times",
18243
+ doneNouns: ["rebase", "rebases"]
18244
+ },
18245
+ "pr-open": { live: "opening", done: "opened", one: "pull request", many: "pull requests" },
18246
+ "pr-merge": { live: "merging", done: "merged", one: "pull request", many: "pull requests" }
18247
+ };
18211
18248
  function groupParts(state, live) {
18212
18249
  const parts = [];
18213
18250
  if (state.searches > 0) {
@@ -18232,12 +18269,27 @@ function groupParts(state, live) {
18232
18269
  });
18233
18270
  }
18234
18271
  if (state.commands.length > 0) {
18235
- const w = WORDS.run;
18236
- parts.push({
18237
- verb: live ? w.live : w.done,
18238
- count: state.commands.length,
18239
- noun: state.commands.length === 1 ? w.one : w.many
18240
- });
18272
+ const { counts, absorbed } = vcsTally(state.commands);
18273
+ for (const action of VCS_ACTIONS) {
18274
+ const n = counts[action];
18275
+ if (n === 0) continue;
18276
+ const w = VCS_WORDS[action];
18277
+ parts.push({
18278
+ verb: live ? w.live : w.done,
18279
+ ...w.names ? { names: w.names } : {},
18280
+ count: n,
18281
+ noun: live || !w.doneNouns ? n === 1 ? w.one : w.many : n === 1 ? w.doneNouns[0] : w.doneNouns[1]
18282
+ });
18283
+ }
18284
+ const plain2 = state.commands.length - absorbed;
18285
+ if (plain2 > 0) {
18286
+ const w = WORDS.run;
18287
+ parts.push({
18288
+ verb: live ? w.live : w.done,
18289
+ count: plain2,
18290
+ noun: plain2 === 1 ? w.one : w.many
18291
+ });
18292
+ }
18241
18293
  }
18242
18294
  if (state.mcpCalls > 0) {
18243
18295
  const w = WORDS.mcp;
@@ -18330,8 +18382,13 @@ var LIST_COMMANDS = /* @__PURE__ */ new Set(["ls", "tree", "du"]);
18330
18382
  var NEUTRAL_COMMANDS = /* @__PURE__ */ new Set(["echo", "printf", "true", "false", ":"]);
18331
18383
  var SAFE_REDIRECT = /^(?:>&\d|&?>>?\s*\/dev\/null)(?=\s|$|[;|&])/;
18332
18384
  function shellSegments(command) {
18333
- const segments = [];
18385
+ return splitShell(command)?.segments;
18386
+ }
18387
+ __name(shellSegments, "shellSegments");
18388
+ function splitShell(command) {
18389
+ const pieces = [];
18334
18390
  let current = "";
18391
+ let op = "";
18335
18392
  let quote = null;
18336
18393
  for (let i = 0; i < command.length; i++) {
18337
18394
  const ch = command.charAt(i);
@@ -18369,18 +18426,34 @@ function shellSegments(command) {
18369
18426
  return void 0;
18370
18427
  if (ch === "&" && next !== "&") return void 0;
18371
18428
  if (ch === "|" || ch === ";" || ch === "&" || ch === "\n") {
18372
- if ((ch === "|" || ch === "&") && next === ch) i += 1;
18373
- segments.push(current);
18429
+ let found = ch;
18430
+ if ((ch === "|" || ch === "&") && next === ch) {
18431
+ found = ch + ch;
18432
+ i += 1;
18433
+ }
18434
+ pieces.push({ text: current, op });
18374
18435
  current = "";
18436
+ op = found;
18375
18437
  continue;
18376
18438
  }
18377
18439
  current += ch;
18378
18440
  }
18379
18441
  if (quote !== null) return void 0;
18380
- segments.push(current);
18381
- return segments.map((segment) => segment.trim()).filter((segment) => segment.length > 0);
18382
- }
18383
- __name(shellSegments, "shellSegments");
18442
+ pieces.push({ text: current, op });
18443
+ const segments = [];
18444
+ const joins = [];
18445
+ let pending = "";
18446
+ for (const piece of pieces) {
18447
+ if (piece.op !== "" && piece.op !== "&&" && pending === "") pending = piece.op;
18448
+ const text2 = piece.text.trim();
18449
+ if (text2.length === 0) continue;
18450
+ segments.push(text2);
18451
+ joins.push(segments.length === 1 ? "" : pending === "" ? piece.op : pending);
18452
+ pending = "";
18453
+ }
18454
+ return { segments, joins };
18455
+ }
18456
+ __name(splitShell, "splitShell");
18384
18457
  function writesOrRuns(word2, segment) {
18385
18458
  if (word2 === "find")
18386
18459
  return /(^|\s)-(delete|exec|execdir|ok|okdir|fprint\w*|fls)(\s|$)/.test(segment);
@@ -18474,6 +18547,365 @@ function classifyCall(call) {
18474
18547
  }
18475
18548
  }
18476
18549
  __name(classifyCall, "classifyCall");
18550
+ var VCS_ACTIONS = [
18551
+ "commit",
18552
+ "amend",
18553
+ "push",
18554
+ "create-branch",
18555
+ "switch-branch",
18556
+ "merge",
18557
+ "rebase",
18558
+ "pr-open",
18559
+ "pr-merge"
18560
+ ];
18561
+ function words2(segment) {
18562
+ const out = [];
18563
+ let text2 = "";
18564
+ let quoted = false;
18565
+ let plainUntil = -1;
18566
+ let open5 = false;
18567
+ let quote = null;
18568
+ const mark = /* @__PURE__ */ __name(() => {
18569
+ quoted = true;
18570
+ if (plainUntil < 0) plainUntil = text2.length;
18571
+ }, "mark");
18572
+ for (let i = 0; i < segment.length; i++) {
18573
+ const ch = segment.charAt(i);
18574
+ if (quote !== null) {
18575
+ if (ch === quote) quote = null;
18576
+ else if (ch === "\\" && quote === '"' && i + 1 < segment.length) {
18577
+ text2 += segment.charAt(i + 1);
18578
+ i += 1;
18579
+ } else text2 += ch;
18580
+ continue;
18581
+ }
18582
+ if (ch === '"' || ch === "'") {
18583
+ mark();
18584
+ open5 = true;
18585
+ quote = ch;
18586
+ continue;
18587
+ }
18588
+ if (ch === "\\" && i + 1 < segment.length) {
18589
+ mark();
18590
+ open5 = true;
18591
+ text2 += segment.charAt(i + 1);
18592
+ i += 1;
18593
+ continue;
18594
+ }
18595
+ if (/\s/.test(ch)) {
18596
+ if (open5) out.push({ text: text2, quoted, plainUntil: plainUntil < 0 ? text2.length : plainUntil });
18597
+ text2 = "";
18598
+ quoted = false;
18599
+ plainUntil = -1;
18600
+ open5 = false;
18601
+ continue;
18602
+ }
18603
+ open5 = true;
18604
+ text2 += ch;
18605
+ }
18606
+ if (open5) out.push({ text: text2, quoted, plainUntil: plainUntil < 0 ? text2.length : plainUntil });
18607
+ return out;
18608
+ }
18609
+ __name(words2, "words");
18610
+ var ASSIGNMENT2 = /^[A-Za-z_][A-Za-z0-9_]*=/;
18611
+ function isFlag(word2) {
18612
+ return !word2.quoted && word2.text.length > 1 && word2.text.startsWith("-");
18613
+ }
18614
+ __name(isFlag, "isFlag");
18615
+ function longMatches(flag, full, minLength) {
18616
+ const name = flag.split("=")[0] ?? flag;
18617
+ return name.startsWith("--") && name.length >= minLength && full.startsWith(name);
18618
+ }
18619
+ __name(longMatches, "longMatches");
18620
+ var VALUE_OPTIONS = {
18621
+ commit: {
18622
+ short: "mFCct",
18623
+ long: [
18624
+ "--message",
18625
+ "--file",
18626
+ "--author",
18627
+ "--date",
18628
+ "--reuse-message",
18629
+ "--reedit-message",
18630
+ "--fixup",
18631
+ "--squash",
18632
+ "--cleanup",
18633
+ "--template",
18634
+ "--trailer"
18635
+ ]
18636
+ },
18637
+ push: {
18638
+ short: "o",
18639
+ long: ["--push-option", "--repo", "--receive-pack", "--exec"]
18640
+ },
18641
+ merge: { short: "mFsX", long: ["--message", "--file", "--strategy", "--strategy-option"] },
18642
+ rebase: {
18643
+ short: "sXxC",
18644
+ long: ["--onto", "--strategy", "--strategy-option", "--exec"]
18645
+ },
18646
+ switch: { short: "cC", long: ["--conflict", "--create", "--force-create", "--orphan"] },
18647
+ checkout: { short: "bB", long: ["--conflict", "--orphan"] },
18648
+ branch: { short: "", long: [] },
18649
+ "gh-pr-create": {
18650
+ short: "tbBHlaromTpRF",
18651
+ long: [
18652
+ "--title",
18653
+ "--body",
18654
+ "--base",
18655
+ "--head",
18656
+ "--label",
18657
+ "--assignee",
18658
+ "--reviewer",
18659
+ "--milestone",
18660
+ "--project",
18661
+ "--template",
18662
+ "--repo",
18663
+ "--body-file",
18664
+ "--recover"
18665
+ ]
18666
+ },
18667
+ "gh-pr-merge": {
18668
+ short: "tbFR",
18669
+ long: ["--subject", "--body", "--body-file", "--match-head-commit", "--author-email", "--repo"]
18670
+ }
18671
+ };
18672
+ function parseArgs(rest, table) {
18673
+ const spec = VALUE_OPTIONS[table] ?? { short: "", long: [] };
18674
+ const flags = [];
18675
+ const positional = [];
18676
+ const values = /* @__PURE__ */ new Map();
18677
+ let unsure = false;
18678
+ let onlyPaths = false;
18679
+ for (let i = 0; i < rest.length; i++) {
18680
+ const word2 = rest[i];
18681
+ if (!onlyPaths && !word2.quoted && word2.text === "--") {
18682
+ onlyPaths = true;
18683
+ continue;
18684
+ }
18685
+ if (!onlyPaths && isFlag(word2) && word2.text !== "-") {
18686
+ flags.push(word2.text);
18687
+ const long = word2.text.startsWith("--");
18688
+ const takes = long ? !word2.text.includes("=") && spec.long.some((name) => longMatches(word2.text, name, word2.text.length)) : /^-[A-Za-z]*$/.test(word2.text) && spec.short.includes(word2.text.charAt(word2.text.length - 1));
18689
+ if (takes && i + 1 < rest.length) {
18690
+ values.set(word2.text, rest[i + 1].text);
18691
+ i += 1;
18692
+ }
18693
+ continue;
18694
+ }
18695
+ if (/[$*?[]/.test(word2.text) || word2.text.startsWith("~")) unsure = true;
18696
+ positional.push(word2.text);
18697
+ }
18698
+ return { flags, positional, unsure, values };
18699
+ }
18700
+ __name(parseArgs, "parseArgs");
18701
+ function hasFlag(parsed, ...names) {
18702
+ return parsed.flags.some(
18703
+ (flag) => names.some(
18704
+ (name) => name.startsWith("--") ? longMatches(flag, name, 3) : flag === name || shortCluster(flag, name)
18705
+ )
18706
+ );
18707
+ }
18708
+ __name(hasFlag, "hasFlag");
18709
+ function shortCluster(flag, name) {
18710
+ return name.length === 2 && /^-[A-Za-z]+$/.test(flag) && !flag.startsWith("--") && flag.slice(1).includes(name.charAt(1));
18711
+ }
18712
+ __name(shortCluster, "shortCluster");
18713
+ var GIT_FLAGS = /* @__PURE__ */ new Set([
18714
+ "--no-pager",
18715
+ "-P",
18716
+ "--paginate",
18717
+ "-p",
18718
+ "--no-optional-locks",
18719
+ "--no-replace-objects",
18720
+ "--bare",
18721
+ "--literal-pathspecs",
18722
+ "--no-literal-pathspecs",
18723
+ "--glob-pathspecs",
18724
+ "--noglob-pathspecs",
18725
+ "--icase-pathspecs",
18726
+ "--no-advice"
18727
+ ]);
18728
+ function readSegment(segment) {
18729
+ const all = words2(segment);
18730
+ let i = 0;
18731
+ while (i < all.length) {
18732
+ const word2 = all[i];
18733
+ const eq = word2.text.indexOf("=");
18734
+ if (ASSIGNMENT2.test(word2.text) && eq <= word2.plainUntil) i += 1;
18735
+ else break;
18736
+ }
18737
+ const head = all[i];
18738
+ if (head === void 0 || head.quoted) return { explained: false };
18739
+ if (head.text === "cd" || NEUTRAL_COMMANDS.has(head.text)) return { explained: true };
18740
+ if (head.text === "git") return readGit(all.slice(i + 1));
18741
+ if (head.text === "gh") return readGh(all.slice(i + 1));
18742
+ return { explained: false };
18743
+ }
18744
+ __name(readSegment, "readSegment");
18745
+ function readGit(rest) {
18746
+ let i = 0;
18747
+ for (; i < rest.length; i++) {
18748
+ const word2 = rest[i];
18749
+ if (word2.quoted) return { explained: false };
18750
+ if (word2.text === "-C") {
18751
+ i += 1;
18752
+ continue;
18753
+ }
18754
+ if (word2.text === "-c") {
18755
+ const value = rest[i + 1]?.text.toLowerCase() ?? "";
18756
+ if (value.startsWith("alias.")) return { explained: false };
18757
+ i += 1;
18758
+ continue;
18759
+ }
18760
+ if (word2.text === "--git-dir" || word2.text === "--work-tree" || word2.text === "--namespace") {
18761
+ i += 1;
18762
+ continue;
18763
+ }
18764
+ if (/^--(?:git-dir|work-tree|namespace)=/.test(word2.text) || GIT_FLAGS.has(word2.text)) continue;
18765
+ if (word2.text.startsWith("-")) return { explained: false };
18766
+ break;
18767
+ }
18768
+ const sub = rest[i];
18769
+ if (sub === void 0 || sub.quoted || /[$*?[~]/.test(sub.text)) return { explained: false };
18770
+ const parsed = parseArgs(rest.slice(i + 1), sub.text);
18771
+ const unknown = { explained: false };
18772
+ const harmless = { explained: true };
18773
+ if (HARMLESS_GIT.has(sub.text)) return harmless;
18774
+ if (parsed.unsure) return unknown;
18775
+ if (hasFlag(parsed, "--help", "-h")) return harmless;
18776
+ switch (sub.text) {
18777
+ case "commit":
18778
+ if (hasFlag(parsed, "--dry-run")) return harmless;
18779
+ return { action: amendLong(parsed) ? "amend" : "commit", explained: true };
18780
+ case "push":
18781
+ if (hasFlag(parsed, "--dry-run", "-n")) return harmless;
18782
+ if (hasFlag(parsed, "--delete", "-d", "--mirror")) return unknown;
18783
+ return { action: "push", explained: true };
18784
+ case "merge":
18785
+ if (hasFlag(parsed, "--abort", "--quit", "--continue")) return unknown;
18786
+ return { action: "merge", explained: true };
18787
+ case "rebase":
18788
+ if (hasFlag(
18789
+ parsed,
18790
+ "--abort",
18791
+ "--quit",
18792
+ "--continue",
18793
+ "--skip",
18794
+ "--edit-todo",
18795
+ "--show-current-patch"
18796
+ ))
18797
+ return unknown;
18798
+ return { action: "rebase", explained: true };
18799
+ case "switch": {
18800
+ const make = ["-c", "-C", "--create", "--force-create"].find((f) => parsed.values.has(f));
18801
+ if (make !== void 0) return { action: "create-branch", explained: true };
18802
+ if (hasFlag(parsed, "--detach", "-d", "--orphan", "--create", "--force-create"))
18803
+ return unknown;
18804
+ return parsed.positional.length === 1 ? { action: "switch-branch", explained: true } : unknown;
18805
+ }
18806
+ case "checkout":
18807
+ return ["-b", "-B"].some((f) => parsed.values.has(f)) && !hasFlag(parsed, "--orphan") ? { action: "create-branch", explained: true } : unknown;
18808
+ case "branch":
18809
+ if (parsed.flags.length === 0 && parsed.positional.length >= 1 && parsed.positional.length <= 2)
18810
+ return { action: "create-branch", explained: true };
18811
+ return parsed.positional.length === 0 && parsed.flags.every((flag) => BRANCH_LIST_FLAGS.has(flag)) ? harmless : unknown;
18812
+ default:
18813
+ return unknown;
18814
+ }
18815
+ }
18816
+ __name(readGit, "readGit");
18817
+ var HARMLESS_GIT = /* @__PURE__ */ new Set([
18818
+ "add",
18819
+ "status",
18820
+ "diff",
18821
+ "log",
18822
+ "show",
18823
+ "fetch",
18824
+ "rev-parse",
18825
+ "rev-list",
18826
+ "ls-files",
18827
+ "ls-tree",
18828
+ "describe",
18829
+ "blame",
18830
+ "shortlog",
18831
+ "grep",
18832
+ "cat-file",
18833
+ "reflog"
18834
+ ]);
18835
+ var BRANCH_LIST_FLAGS = /* @__PURE__ */ new Set([
18836
+ "-a",
18837
+ "--all",
18838
+ "-r",
18839
+ "--remotes",
18840
+ "-v",
18841
+ "-vv",
18842
+ "--verbose",
18843
+ "--list",
18844
+ "-l",
18845
+ "--show-current"
18846
+ ]);
18847
+ function amendLong(parsed) {
18848
+ return parsed.flags.some((flag) => longMatches(flag, "--amend", 4));
18849
+ }
18850
+ __name(amendLong, "amendLong");
18851
+ function readGh(rest) {
18852
+ const first = rest[0];
18853
+ const second = rest[1];
18854
+ if (first === void 0 || first.quoted || first.text !== "pr") return { explained: false };
18855
+ if (second === void 0 || second.quoted) return { explained: false };
18856
+ const harmless = { explained: true };
18857
+ const unknown = { explained: false };
18858
+ if (GH_PR_HARMLESS.has(second.text)) return harmless;
18859
+ if (second.text !== "create" && second.text !== "merge") return unknown;
18860
+ const parsed = parseArgs(rest.slice(2), second.text === "create" ? "gh-pr-create" : "gh-pr-merge");
18861
+ if (parsed.unsure) return unknown;
18862
+ if (parsed.flags.some((flag) => flag === "--help" || flag === "-h")) return harmless;
18863
+ if (second.text === "create") {
18864
+ if (parsed.flags.includes("--dry-run")) return harmless;
18865
+ if (parsed.flags.some((flag) => flag === "--web" || flag === "-w")) return unknown;
18866
+ return { action: "pr-open", explained: true };
18867
+ }
18868
+ if (parsed.flags.some((flag) => flag === "--auto" || flag === "--disable-auto")) return unknown;
18869
+ return { action: "pr-merge", explained: true };
18870
+ }
18871
+ __name(readGh, "readGh");
18872
+ var GH_PR_HARMLESS = /* @__PURE__ */ new Set(["view", "list", "status", "checks", "diff"]);
18873
+ function vcsActions(command) {
18874
+ const split = splitShell(command);
18875
+ if (!split || split.segments.length === 0) return { actions: [], absorbed: false };
18876
+ if (split.joins.some((join20, index) => index > 0 && join20 !== "&&"))
18877
+ return { actions: [], absorbed: false };
18878
+ const actions = [];
18879
+ let explained = true;
18880
+ for (const segment of split.segments) {
18881
+ const read2 = readSegment(segment);
18882
+ if (read2.action !== void 0) actions.push(read2.action);
18883
+ if (!read2.explained) explained = false;
18884
+ }
18885
+ return { actions, absorbed: actions.length > 0 && explained };
18886
+ }
18887
+ __name(vcsActions, "vcsActions");
18888
+ function vcsTally(commands) {
18889
+ const counts = {
18890
+ commit: 0,
18891
+ amend: 0,
18892
+ push: 0,
18893
+ "create-branch": 0,
18894
+ "switch-branch": 0,
18895
+ merge: 0,
18896
+ rebase: 0,
18897
+ "pr-open": 0,
18898
+ "pr-merge": 0
18899
+ };
18900
+ let absorbed = 0;
18901
+ for (const command of commands) {
18902
+ const read2 = vcsActions(command);
18903
+ for (const action of read2.actions) counts[action] += 1;
18904
+ if (read2.absorbed) absorbed += 1;
18905
+ }
18906
+ return { counts, absorbed };
18907
+ }
18908
+ __name(vcsTally, "vcsTally");
18477
18909
 
18478
18910
  // src/tui/tool-presentation.ts
18479
18911
  var optionalText = /* @__PURE__ */ __name((value) => value === void 0 || typeof value === "string", "optionalText");
@@ -18868,7 +19300,7 @@ __name(clipRequestContext, "clipRequestContext");
18868
19300
  async function createAgentSession(prefs, detectedProviders, options = {}) {
18869
19301
  const modelEnvironment = readModelLaunchEnvironment();
18870
19302
  if (options.palEnvironment) {
18871
- const { createPalAgentSession } = await import("./agent-session-EKTTB7TN.js");
19303
+ const { createPalAgentSession } = await import("./agent-session-JO5HEUHN.js");
18872
19304
  return createPalAgentSession(prefs, detectedProviders, options);
18873
19305
  }
18874
19306
  let detected = detectedProviders;
@@ -23638,4 +24070,4 @@ export {
23638
24070
  RESULT_SUMMARY_WHOLE_MAX,
23639
24071
  resultSummaryLine
23640
24072
  };
23641
- //# sourceMappingURL=chunk-6O5Q6YBP.js.map
24073
+ //# sourceMappingURL=chunk-UKOCGHMU.js.map