@namzu/cli 41.1.1 → 41.2.1

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 (254) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-ZNDDGL4A.js → acp-MCDCWJ45.js} +39 -39
  4. package/dist/chunks/{activity-command-IGRDHYFY.js → activity-command-AYLW5EEX.js} +12 -12
  5. package/dist/chunks/{add-DKDPH2O7.js → add-VNM5QPTX.js} +15 -15
  6. package/dist/chunks/{agent-5MAZW7PD.js → agent-4IMOBJR5.js} +30 -30
  7. package/dist/chunks/agent-session-44AYNTQJ.js +59 -0
  8. package/dist/chunks/{archive-3PH42KH6.js → archive-VXJWPZBA.js} +10 -10
  9. package/dist/chunks/{bin-main-YJBHUBGV.js → bin-main-BMCDNDGC.js} +3 -3
  10. package/dist/chunks/{browser-DYA5FWWB.js → browser-7MVCQL2G.js} +6 -6
  11. package/dist/chunks/{chat-W7G4NIMV.js → chat-M2WFCRYV.js} +15 -15
  12. package/dist/chunks/{chunk-M7TGNC4F.js → chunk-2LLNCAZS.js} +2 -2
  13. package/dist/chunks/{chunk-2F4BARJH.js → chunk-2Q6PBTPY.js} +2 -2
  14. package/dist/chunks/{chunk-5ND5QQDO.js → chunk-3ZMECJLN.js} +13 -13
  15. package/dist/chunks/{chunk-VEB3EYJK.js → chunk-4I5FGMVR.js} +2 -2
  16. package/dist/chunks/{chunk-ITSVWCSR.js → chunk-5L7ZQ37R.js} +6 -6
  17. package/dist/chunks/{chunk-MOUJITK2.js → chunk-5LGZUFDJ.js} +3 -3
  18. package/dist/chunks/{chunk-GR7FEYP5.js → chunk-5XWYY63Z.js} +4 -4
  19. package/dist/chunks/{chunk-NWTFQJZI.js → chunk-6FSVNUBA.js} +375 -230
  20. package/dist/chunks/chunk-6FSVNUBA.js.map +6 -0
  21. package/dist/chunks/{chunk-KSWPRDI2.js → chunk-7A5TVBGS.js} +2 -2
  22. package/dist/chunks/{chunk-3RSNEZOX.js → chunk-7RBZS3TN.js} +4 -4
  23. package/dist/chunks/{chunk-DSW5QXUB.js → chunk-AGRFKHS2.js} +4 -4
  24. package/dist/chunks/{chunk-R5FI7ST2.js → chunk-AVSE45ED.js} +4 -4
  25. package/dist/chunks/{chunk-RVEF2EUC.js → chunk-AYCKJIVD.js} +2 -2
  26. package/dist/chunks/{chunk-S7L7KHGT.js → chunk-C4CVM56Z.js} +4 -4
  27. package/dist/chunks/{chunk-VJZ4NHWX.js → chunk-CN6EFAK5.js} +2 -2
  28. package/dist/chunks/{chunk-P7PEG3T2.js → chunk-DAJBZ4B7.js} +2 -2
  29. package/dist/chunks/{chunk-HPBQLE3Y.js → chunk-DAUWDTZI.js} +2 -2
  30. package/dist/chunks/{chunk-6DY377DD.js → chunk-DTNJTMWP.js} +90 -30
  31. package/dist/chunks/chunk-DTNJTMWP.js.map +6 -0
  32. package/dist/chunks/{chunk-FVHJPEJU.js → chunk-DVRRRNSA.js} +8 -8
  33. package/dist/chunks/{chunk-ZZIK6J3Q.js → chunk-EYBTANG5.js} +6 -6
  34. package/dist/chunks/{chunk-VYJUJQ4H.js → chunk-F2UUHEPY.js} +2 -2
  35. package/dist/chunks/{chunk-VHSRFBTI.js → chunk-G7JH3PMC.js} +2 -2
  36. package/dist/chunks/{chunk-Z37S7NJH.js → chunk-GD6LOX4A.js} +13 -13
  37. package/dist/chunks/{chunk-HKY44MS7.js → chunk-H3ALHXFV.js} +12 -12
  38. package/dist/chunks/{chunk-FTBXHPCM.js → chunk-HV7PRPHJ.js} +7 -7
  39. package/dist/chunks/{chunk-LSHPFJKI.js → chunk-HWAPKOAW.js} +4 -4
  40. package/dist/chunks/{chunk-ABTQVE2K.js → chunk-IBCA2WDM.js} +3 -3
  41. package/dist/chunks/{chunk-7Y6IIRSM.js → chunk-IBUFD2HH.js} +2 -2
  42. package/dist/chunks/{chunk-XTSD7XEF.js → chunk-IMFIQJM6.js} +3 -3
  43. package/dist/chunks/{chunk-UJVN6557.js → chunk-IQBKDY6G.js} +3 -3
  44. package/dist/chunks/{chunk-EAQJSEKA.js → chunk-KDZ6GM2A.js} +2 -2
  45. package/dist/chunks/{chunk-E5FAPPFH.js → chunk-KEKFOEEP.js} +2 -2
  46. package/dist/chunks/{chunk-TBQRTGCQ.js → chunk-KGKRKFB7.js} +2 -2
  47. package/dist/chunks/{chunk-TTEKFLTN.js → chunk-KTF5NW2V.js} +8 -8
  48. package/dist/chunks/{chunk-BO4VL25F.js → chunk-L2MEW4AZ.js} +2 -2
  49. package/dist/chunks/{chunk-G5747QGU.js → chunk-LETTT4ZZ.js} +2 -2
  50. package/dist/chunks/{chunk-LXGH4QBJ.js → chunk-LRDLJTYP.js} +9 -9
  51. package/dist/chunks/{chunk-PJQJZFYF.js → chunk-MCUV6EI7.js} +2 -2
  52. package/dist/chunks/{chunk-ELVAEMBF.js → chunk-MSKJK6NZ.js} +3 -3
  53. package/dist/chunks/{chunk-L3NHCRUZ.js → chunk-N457UJQL.js} +2 -2
  54. package/dist/chunks/{chunk-7AAONVMX.js → chunk-O3CIRAYD.js} +5 -5
  55. package/dist/chunks/{chunk-5CF5NKWH.js → chunk-O7VKAFEU.js} +2 -2
  56. package/dist/chunks/{chunk-P4BH5CLU.js → chunk-PWGJB2WA.js} +4 -4
  57. package/dist/chunks/{chunk-RT7XM57Q.js → chunk-PXEHKMLO.js} +4 -4
  58. package/dist/chunks/{chunk-4OHKGKUE.js → chunk-QWFD2LFU.js} +4 -4
  59. package/dist/chunks/{chunk-BPLY6HCD.js → chunk-QYA34YM5.js} +4 -4
  60. package/dist/chunks/{chunk-VXJFOQIO.js → chunk-RI57PEYF.js} +4 -4
  61. package/dist/chunks/{chunk-XKFG3473.js → chunk-RPKRLR3O.js} +3 -3
  62. package/dist/chunks/{chunk-PUXPTJMD.js → chunk-TIFSH2BH.js} +7 -7
  63. package/dist/chunks/{chunk-OS33YOPX.js → chunk-TSKCIC5T.js} +2 -2
  64. package/dist/chunks/{chunk-GFBEQZGH.js → chunk-TZDYMWYP.js} +3 -3
  65. package/dist/chunks/{chunk-TRX6W6TD.js → chunk-UHDKUVR5.js} +2 -2
  66. package/dist/chunks/{chunk-56MTJMCE.js → chunk-VD4D37MT.js} +3 -3
  67. package/dist/chunks/{chunk-YL2SBQDK.js → chunk-VHXXNM6W.js} +3 -3
  68. package/dist/chunks/{chunk-72SF2UK7.js → chunk-WYUJ4USW.js} +2 -2
  69. package/dist/chunks/{chunk-64BXKXCY.js → chunk-X4BCXODL.js} +5 -5
  70. package/dist/chunks/{chunk-2X5QU773.js → chunk-XSAS6TS2.js} +3 -3
  71. package/dist/chunks/{chunk-MIPMLOJ4.js → chunk-Y37JJJVY.js} +3 -3
  72. package/dist/chunks/{chunk-24CZYMWP.js → chunk-YAOKLAUU.js} +2 -2
  73. package/dist/chunks/{chunk-XBEW7SQB.js → chunk-YBOKKRHB.js} +6 -6
  74. package/dist/chunks/{chunk-7UHIIE6W.js → chunk-YZW6H2LD.js} +30 -30
  75. package/dist/chunks/{chunk-KES7QU4W.js → chunk-Z2WGX7UM.js} +3 -3
  76. package/dist/chunks/{chunk-UOPSAWJE.js → chunk-ZPNX25RU.js} +5 -5
  77. package/dist/chunks/{cli-runtime-CBVA2QU3.js → cli-runtime-Q6BW37I2.js} +10 -10
  78. package/dist/chunks/{commands-7KVEJYKS.js → commands-C5I7PC7W.js} +5 -5
  79. package/dist/chunks/{crash-report-NXFD4VH5.js → crash-report-DRT5OCHO.js} +6 -6
  80. package/dist/chunks/{dist-FRHHWOOW.js → dist-2NWJAAJM.js} +2 -2
  81. package/dist/chunks/{dist-CUCXA33N.js → dist-5JM4UMVC.js} +2 -2
  82. package/dist/chunks/{dist-VQIK2TS3.js → dist-D7WSQBE7.js} +2 -2
  83. package/dist/chunks/{dist-KURG5KLO.js → dist-PRTI23W3.js} +2 -2
  84. package/dist/chunks/{dist-JZXBY5D3.js → dist-T2N57REG.js} +2 -2
  85. package/dist/chunks/{dist-6LIEN5YB.js → dist-VJC5RCYZ.js} +2 -2
  86. package/dist/chunks/{dist-HTMWZWBC.js → dist-WO56PFGZ.js} +2 -2
  87. package/dist/chunks/{doctor-B3TR2C6U.js → doctor-HXKU6QKJ.js} +8 -8
  88. package/dist/chunks/{drain-YWRSLFBO.js → drain-MLRRMEGK.js} +10 -10
  89. package/dist/chunks/{eval-BP6U5TEX.js → eval-ECOECG74.js} +2 -2
  90. package/dist/chunks/{exec-Y6TR57J4.js → exec-JLB6F5ZR.js} +28 -28
  91. package/dist/chunks/{home-HVHU4PVC.js → home-G65CC45B.js} +3 -3
  92. package/dist/chunks/{host-queries-W7ATBLK2.js → host-queries-7LKGEBO5.js} +15 -15
  93. package/dist/chunks/{learn-WM5TTHUD.js → learn-NRY6X2K6.js} +13 -13
  94. package/dist/chunks/{learn-builtin-RXNSBTBC.js → learn-builtin-QOM4KLT2.js} +16 -16
  95. package/dist/chunks/{lifecycle-SHRBIHQV.js → lifecycle-BI2PMV4Q.js} +24 -24
  96. package/dist/chunks/{list-WB7ULXJM.js → list-QTWALT6F.js} +11 -11
  97. package/dist/chunks/{login-PDYMJ6JR.js → login-7LJG7D3F.js} +8 -8
  98. package/dist/chunks/{logs-5X7RTN2P.js → logs-UGMCEFAZ.js} +4 -4
  99. package/dist/chunks/{mcp-R4ZVPY23.js → mcp-KOZOXU6J.js} +16 -16
  100. package/dist/chunks/{message-command-PHYRUQCA.js → message-command-7B5OFSGL.js} +36 -36
  101. package/dist/chunks/{operator-tools-VBLGZWBL.js → operator-tools-PWBZHKXO.js} +13 -13
  102. package/dist/chunks/{output-schema-4H5YYW34.js → output-schema-QPHXNRKI.js} +3 -3
  103. package/dist/chunks/{pal-7LGE7ORS.js → pal-XSD45IR6.js} +11 -11
  104. package/dist/chunks/{providers-APLUKR7Z.js → providers-ULPGYRWC.js} +6 -6
  105. package/dist/chunks/{resident-COJTHT7K.js → resident-NY7XSEK7.js} +24 -24
  106. package/dist/chunks/resume-4FV66TEK.js +23 -0
  107. package/dist/chunks/{resume-command-CCEBJXTF.js → resume-command-DLOW7MYW.js} +4 -4
  108. package/dist/chunks/{schedule-3MVCIZZS.js → schedule-QR7JOA4F.js} +8 -8
  109. package/dist/chunks/{service-OAKQZBBF.js → service-CLLR5VUD.js} +23 -23
  110. package/dist/chunks/session-step-IEMT6LRR.js +30 -0
  111. package/dist/chunks/{skills-ZXEEIGHF.js → skills-OZZLTH6P.js} +8 -8
  112. package/dist/chunks/{state-ETXYDF3L.js → state-EROTPJRH.js} +2 -2
  113. package/dist/chunks/{store-MKUMQQBF.js → store-C24DXKO4.js} +6 -6
  114. package/dist/chunks/{store-ODVHN3VE.js → store-ROEYUKBM.js} +4 -4
  115. package/dist/chunks/{store-HJFAIW4G.js → store-VDQRT2KF.js} +10 -10
  116. package/dist/chunks/{tui-WTLNGZ3U.js → tui-XBQCRSIJ.js} +171 -84
  117. package/dist/chunks/tui-XBQCRSIJ.js.map +6 -0
  118. package/dist/chunks/{upgrade-OV2AFIZR.js → upgrade-ZRQZD2N2.js} +2 -2
  119. package/dist/chunks/{worktree-3QCDPF3N.js → worktree-XMJ355ND.js} +12 -12
  120. package/dist/index.js +12 -12
  121. package/dist/integrations/resident/runner-worker.js +20 -20
  122. package/dist/tui/App.d.ts.map +1 -1
  123. package/dist/tui/PlanApprovalOverlay.d.ts.map +1 -1
  124. package/dist/tui/agent.d.ts.map +1 -1
  125. package/dist/tui/compaction-rows.d.ts +13 -0
  126. package/dist/tui/compaction-rows.d.ts.map +1 -1
  127. package/dist/tui/display-path.d.ts +12 -0
  128. package/dist/tui/display-path.d.ts.map +1 -1
  129. package/dist/tui/per-call-review.d.ts.map +1 -1
  130. package/dist/tui/permission-review.d.ts +9 -0
  131. package/dist/tui/permission-review.d.ts.map +1 -1
  132. package/dist/tui/resume-empty.d.ts +14 -0
  133. package/dist/tui/resume-empty.d.ts.map +1 -0
  134. package/dist/tui/tidy-tool-output.d.ts +2 -0
  135. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  136. package/dist/tui/tool-end-rows.d.ts.map +1 -1
  137. package/package.json +6 -6
  138. package/dist/chunks/agent-session-SY5BWKNS.js +0 -59
  139. package/dist/chunks/chunk-6DY377DD.js.map +0 -6
  140. package/dist/chunks/chunk-NWTFQJZI.js.map +0 -6
  141. package/dist/chunks/resume-DL73LUH6.js +0 -23
  142. package/dist/chunks/session-step-HOLKYCG2.js +0 -30
  143. package/dist/chunks/tui-WTLNGZ3U.js.map +0 -6
  144. /package/dist/chunks/{acp-ZNDDGL4A.js.map → acp-MCDCWJ45.js.map} +0 -0
  145. /package/dist/chunks/{activity-command-IGRDHYFY.js.map → activity-command-AYLW5EEX.js.map} +0 -0
  146. /package/dist/chunks/{add-DKDPH2O7.js.map → add-VNM5QPTX.js.map} +0 -0
  147. /package/dist/chunks/{agent-5MAZW7PD.js.map → agent-4IMOBJR5.js.map} +0 -0
  148. /package/dist/chunks/{agent-session-SY5BWKNS.js.map → agent-session-44AYNTQJ.js.map} +0 -0
  149. /package/dist/chunks/{archive-3PH42KH6.js.map → archive-VXJWPZBA.js.map} +0 -0
  150. /package/dist/chunks/{bin-main-YJBHUBGV.js.map → bin-main-BMCDNDGC.js.map} +0 -0
  151. /package/dist/chunks/{browser-DYA5FWWB.js.map → browser-7MVCQL2G.js.map} +0 -0
  152. /package/dist/chunks/{chat-W7G4NIMV.js.map → chat-M2WFCRYV.js.map} +0 -0
  153. /package/dist/chunks/{chunk-M7TGNC4F.js.map → chunk-2LLNCAZS.js.map} +0 -0
  154. /package/dist/chunks/{chunk-2F4BARJH.js.map → chunk-2Q6PBTPY.js.map} +0 -0
  155. /package/dist/chunks/{chunk-5ND5QQDO.js.map → chunk-3ZMECJLN.js.map} +0 -0
  156. /package/dist/chunks/{chunk-VEB3EYJK.js.map → chunk-4I5FGMVR.js.map} +0 -0
  157. /package/dist/chunks/{chunk-ITSVWCSR.js.map → chunk-5L7ZQ37R.js.map} +0 -0
  158. /package/dist/chunks/{chunk-MOUJITK2.js.map → chunk-5LGZUFDJ.js.map} +0 -0
  159. /package/dist/chunks/{chunk-GR7FEYP5.js.map → chunk-5XWYY63Z.js.map} +0 -0
  160. /package/dist/chunks/{chunk-KSWPRDI2.js.map → chunk-7A5TVBGS.js.map} +0 -0
  161. /package/dist/chunks/{chunk-3RSNEZOX.js.map → chunk-7RBZS3TN.js.map} +0 -0
  162. /package/dist/chunks/{chunk-DSW5QXUB.js.map → chunk-AGRFKHS2.js.map} +0 -0
  163. /package/dist/chunks/{chunk-R5FI7ST2.js.map → chunk-AVSE45ED.js.map} +0 -0
  164. /package/dist/chunks/{chunk-RVEF2EUC.js.map → chunk-AYCKJIVD.js.map} +0 -0
  165. /package/dist/chunks/{chunk-S7L7KHGT.js.map → chunk-C4CVM56Z.js.map} +0 -0
  166. /package/dist/chunks/{chunk-VJZ4NHWX.js.map → chunk-CN6EFAK5.js.map} +0 -0
  167. /package/dist/chunks/{chunk-P7PEG3T2.js.map → chunk-DAJBZ4B7.js.map} +0 -0
  168. /package/dist/chunks/{chunk-HPBQLE3Y.js.map → chunk-DAUWDTZI.js.map} +0 -0
  169. /package/dist/chunks/{chunk-FVHJPEJU.js.map → chunk-DVRRRNSA.js.map} +0 -0
  170. /package/dist/chunks/{chunk-ZZIK6J3Q.js.map → chunk-EYBTANG5.js.map} +0 -0
  171. /package/dist/chunks/{chunk-VYJUJQ4H.js.map → chunk-F2UUHEPY.js.map} +0 -0
  172. /package/dist/chunks/{chunk-VHSRFBTI.js.map → chunk-G7JH3PMC.js.map} +0 -0
  173. /package/dist/chunks/{chunk-Z37S7NJH.js.map → chunk-GD6LOX4A.js.map} +0 -0
  174. /package/dist/chunks/{chunk-HKY44MS7.js.map → chunk-H3ALHXFV.js.map} +0 -0
  175. /package/dist/chunks/{chunk-FTBXHPCM.js.map → chunk-HV7PRPHJ.js.map} +0 -0
  176. /package/dist/chunks/{chunk-LSHPFJKI.js.map → chunk-HWAPKOAW.js.map} +0 -0
  177. /package/dist/chunks/{chunk-ABTQVE2K.js.map → chunk-IBCA2WDM.js.map} +0 -0
  178. /package/dist/chunks/{chunk-7Y6IIRSM.js.map → chunk-IBUFD2HH.js.map} +0 -0
  179. /package/dist/chunks/{chunk-XTSD7XEF.js.map → chunk-IMFIQJM6.js.map} +0 -0
  180. /package/dist/chunks/{chunk-UJVN6557.js.map → chunk-IQBKDY6G.js.map} +0 -0
  181. /package/dist/chunks/{chunk-EAQJSEKA.js.map → chunk-KDZ6GM2A.js.map} +0 -0
  182. /package/dist/chunks/{chunk-E5FAPPFH.js.map → chunk-KEKFOEEP.js.map} +0 -0
  183. /package/dist/chunks/{chunk-TBQRTGCQ.js.map → chunk-KGKRKFB7.js.map} +0 -0
  184. /package/dist/chunks/{chunk-TTEKFLTN.js.map → chunk-KTF5NW2V.js.map} +0 -0
  185. /package/dist/chunks/{chunk-BO4VL25F.js.map → chunk-L2MEW4AZ.js.map} +0 -0
  186. /package/dist/chunks/{chunk-G5747QGU.js.map → chunk-LETTT4ZZ.js.map} +0 -0
  187. /package/dist/chunks/{chunk-LXGH4QBJ.js.map → chunk-LRDLJTYP.js.map} +0 -0
  188. /package/dist/chunks/{chunk-PJQJZFYF.js.map → chunk-MCUV6EI7.js.map} +0 -0
  189. /package/dist/chunks/{chunk-ELVAEMBF.js.map → chunk-MSKJK6NZ.js.map} +0 -0
  190. /package/dist/chunks/{chunk-L3NHCRUZ.js.map → chunk-N457UJQL.js.map} +0 -0
  191. /package/dist/chunks/{chunk-7AAONVMX.js.map → chunk-O3CIRAYD.js.map} +0 -0
  192. /package/dist/chunks/{chunk-5CF5NKWH.js.map → chunk-O7VKAFEU.js.map} +0 -0
  193. /package/dist/chunks/{chunk-P4BH5CLU.js.map → chunk-PWGJB2WA.js.map} +0 -0
  194. /package/dist/chunks/{chunk-RT7XM57Q.js.map → chunk-PXEHKMLO.js.map} +0 -0
  195. /package/dist/chunks/{chunk-4OHKGKUE.js.map → chunk-QWFD2LFU.js.map} +0 -0
  196. /package/dist/chunks/{chunk-BPLY6HCD.js.map → chunk-QYA34YM5.js.map} +0 -0
  197. /package/dist/chunks/{chunk-VXJFOQIO.js.map → chunk-RI57PEYF.js.map} +0 -0
  198. /package/dist/chunks/{chunk-XKFG3473.js.map → chunk-RPKRLR3O.js.map} +0 -0
  199. /package/dist/chunks/{chunk-PUXPTJMD.js.map → chunk-TIFSH2BH.js.map} +0 -0
  200. /package/dist/chunks/{chunk-OS33YOPX.js.map → chunk-TSKCIC5T.js.map} +0 -0
  201. /package/dist/chunks/{chunk-GFBEQZGH.js.map → chunk-TZDYMWYP.js.map} +0 -0
  202. /package/dist/chunks/{chunk-TRX6W6TD.js.map → chunk-UHDKUVR5.js.map} +0 -0
  203. /package/dist/chunks/{chunk-56MTJMCE.js.map → chunk-VD4D37MT.js.map} +0 -0
  204. /package/dist/chunks/{chunk-YL2SBQDK.js.map → chunk-VHXXNM6W.js.map} +0 -0
  205. /package/dist/chunks/{chunk-72SF2UK7.js.map → chunk-WYUJ4USW.js.map} +0 -0
  206. /package/dist/chunks/{chunk-64BXKXCY.js.map → chunk-X4BCXODL.js.map} +0 -0
  207. /package/dist/chunks/{chunk-2X5QU773.js.map → chunk-XSAS6TS2.js.map} +0 -0
  208. /package/dist/chunks/{chunk-MIPMLOJ4.js.map → chunk-Y37JJJVY.js.map} +0 -0
  209. /package/dist/chunks/{chunk-24CZYMWP.js.map → chunk-YAOKLAUU.js.map} +0 -0
  210. /package/dist/chunks/{chunk-XBEW7SQB.js.map → chunk-YBOKKRHB.js.map} +0 -0
  211. /package/dist/chunks/{chunk-7UHIIE6W.js.map → chunk-YZW6H2LD.js.map} +0 -0
  212. /package/dist/chunks/{chunk-KES7QU4W.js.map → chunk-Z2WGX7UM.js.map} +0 -0
  213. /package/dist/chunks/{chunk-UOPSAWJE.js.map → chunk-ZPNX25RU.js.map} +0 -0
  214. /package/dist/chunks/{cli-runtime-CBVA2QU3.js.map → cli-runtime-Q6BW37I2.js.map} +0 -0
  215. /package/dist/chunks/{commands-7KVEJYKS.js.map → commands-C5I7PC7W.js.map} +0 -0
  216. /package/dist/chunks/{crash-report-NXFD4VH5.js.map → crash-report-DRT5OCHO.js.map} +0 -0
  217. /package/dist/chunks/{dist-FRHHWOOW.js.map → dist-2NWJAAJM.js.map} +0 -0
  218. /package/dist/chunks/{dist-CUCXA33N.js.map → dist-5JM4UMVC.js.map} +0 -0
  219. /package/dist/chunks/{dist-VQIK2TS3.js.map → dist-D7WSQBE7.js.map} +0 -0
  220. /package/dist/chunks/{dist-KURG5KLO.js.map → dist-PRTI23W3.js.map} +0 -0
  221. /package/dist/chunks/{dist-JZXBY5D3.js.map → dist-T2N57REG.js.map} +0 -0
  222. /package/dist/chunks/{dist-6LIEN5YB.js.map → dist-VJC5RCYZ.js.map} +0 -0
  223. /package/dist/chunks/{dist-HTMWZWBC.js.map → dist-WO56PFGZ.js.map} +0 -0
  224. /package/dist/chunks/{doctor-B3TR2C6U.js.map → doctor-HXKU6QKJ.js.map} +0 -0
  225. /package/dist/chunks/{drain-YWRSLFBO.js.map → drain-MLRRMEGK.js.map} +0 -0
  226. /package/dist/chunks/{eval-BP6U5TEX.js.map → eval-ECOECG74.js.map} +0 -0
  227. /package/dist/chunks/{exec-Y6TR57J4.js.map → exec-JLB6F5ZR.js.map} +0 -0
  228. /package/dist/chunks/{home-HVHU4PVC.js.map → home-G65CC45B.js.map} +0 -0
  229. /package/dist/chunks/{host-queries-W7ATBLK2.js.map → host-queries-7LKGEBO5.js.map} +0 -0
  230. /package/dist/chunks/{learn-WM5TTHUD.js.map → learn-NRY6X2K6.js.map} +0 -0
  231. /package/dist/chunks/{learn-builtin-RXNSBTBC.js.map → learn-builtin-QOM4KLT2.js.map} +0 -0
  232. /package/dist/chunks/{lifecycle-SHRBIHQV.js.map → lifecycle-BI2PMV4Q.js.map} +0 -0
  233. /package/dist/chunks/{list-WB7ULXJM.js.map → list-QTWALT6F.js.map} +0 -0
  234. /package/dist/chunks/{login-PDYMJ6JR.js.map → login-7LJG7D3F.js.map} +0 -0
  235. /package/dist/chunks/{logs-5X7RTN2P.js.map → logs-UGMCEFAZ.js.map} +0 -0
  236. /package/dist/chunks/{mcp-R4ZVPY23.js.map → mcp-KOZOXU6J.js.map} +0 -0
  237. /package/dist/chunks/{message-command-PHYRUQCA.js.map → message-command-7B5OFSGL.js.map} +0 -0
  238. /package/dist/chunks/{operator-tools-VBLGZWBL.js.map → operator-tools-PWBZHKXO.js.map} +0 -0
  239. /package/dist/chunks/{output-schema-4H5YYW34.js.map → output-schema-QPHXNRKI.js.map} +0 -0
  240. /package/dist/chunks/{pal-7LGE7ORS.js.map → pal-XSD45IR6.js.map} +0 -0
  241. /package/dist/chunks/{providers-APLUKR7Z.js.map → providers-ULPGYRWC.js.map} +0 -0
  242. /package/dist/chunks/{resident-COJTHT7K.js.map → resident-NY7XSEK7.js.map} +0 -0
  243. /package/dist/chunks/{resume-DL73LUH6.js.map → resume-4FV66TEK.js.map} +0 -0
  244. /package/dist/chunks/{resume-command-CCEBJXTF.js.map → resume-command-DLOW7MYW.js.map} +0 -0
  245. /package/dist/chunks/{schedule-3MVCIZZS.js.map → schedule-QR7JOA4F.js.map} +0 -0
  246. /package/dist/chunks/{service-OAKQZBBF.js.map → service-CLLR5VUD.js.map} +0 -0
  247. /package/dist/chunks/{session-step-HOLKYCG2.js.map → session-step-IEMT6LRR.js.map} +0 -0
  248. /package/dist/chunks/{skills-ZXEEIGHF.js.map → skills-OZZLTH6P.js.map} +0 -0
  249. /package/dist/chunks/{state-ETXYDF3L.js.map → state-EROTPJRH.js.map} +0 -0
  250. /package/dist/chunks/{store-HJFAIW4G.js.map → store-C24DXKO4.js.map} +0 -0
  251. /package/dist/chunks/{store-MKUMQQBF.js.map → store-ROEYUKBM.js.map} +0 -0
  252. /package/dist/chunks/{store-ODVHN3VE.js.map → store-VDQRT2KF.js.map} +0 -0
  253. /package/dist/chunks/{upgrade-OV2AFIZR.js.map → upgrade-ZRQZD2N2.js.map} +0 -0
  254. /package/dist/chunks/{worktree-3QCDPF3N.js.map → worktree-XMJ355ND.js.map} +0 -0
@@ -5,29 +5,29 @@ import {
5
5
  BYPASS_CONSENT_TITLE,
6
6
  acknowledgeBypass,
7
7
  hasAcknowledgedBypass
8
- } from "./chunk-72SF2UK7.js";
8
+ } from "./chunk-WYUJ4USW.js";
9
9
  import {
10
10
  reportCrash
11
- } from "./chunk-RVEF2EUC.js";
11
+ } from "./chunk-AYCKJIVD.js";
12
12
  import {
13
13
  changesBlock,
14
14
  changesSinceConfirmed,
15
15
  confirmationView,
16
16
  describeChanges,
17
17
  permissionsChanged
18
- } from "./chunk-KSWPRDI2.js";
18
+ } from "./chunk-7A5TVBGS.js";
19
19
  import {
20
20
  visibleScheduleMessage
21
21
  } from "./chunk-NADQQMMG.js";
22
22
  import {
23
23
  settleAnsweredPark
24
- } from "./chunk-FTBXHPCM.js";
24
+ } from "./chunk-HV7PRPHJ.js";
25
25
  import "./chunk-GWQEMJFS.js";
26
26
  import {
27
27
  DELIVERY_READ_LIMIT,
28
28
  readSourceDeliveryPage,
29
29
  takeSuppressedCount
30
- } from "./chunk-Z37S7NJH.js";
30
+ } from "./chunk-GD6LOX4A.js";
31
31
  import {
32
32
  DEFAULT_MAX_ITERATIONS,
33
33
  DEFAULT_TIMEOUT_MS,
@@ -40,7 +40,7 @@ import {
40
40
  runsPerDay,
41
41
  scriptShellUnavailableReason,
42
42
  verifyScheduledScript
43
- } from "./chunk-R5FI7ST2.js";
43
+ } from "./chunk-AVSE45ED.js";
44
44
  import {
45
45
  callsCount
46
46
  } from "./chunk-E5VLANCO.js";
@@ -49,19 +49,19 @@ import {
49
49
  compileJobPolicy,
50
50
  compileScriptCheckPolicy,
51
51
  isPresetName
52
- } from "./chunk-VXJFOQIO.js";
52
+ } from "./chunk-RI57PEYF.js";
53
53
  import {
54
54
  formatResumeShellCommand,
55
55
  parkedRunWords,
56
56
  resumeCommand
57
- } from "./chunk-7Y6IIRSM.js";
57
+ } from "./chunk-IBUFD2HH.js";
58
58
  import {
59
59
  appendHistory,
60
60
  nextFireOf,
61
61
  readHistory,
62
62
  readState
63
- } from "./chunk-P7PEG3T2.js";
64
- import "./chunk-PJQJZFYF.js";
63
+ } from "./chunk-DAJBZ4B7.js";
64
+ import "./chunk-MCUV6EI7.js";
65
65
  import {
66
66
  callEndpoint,
67
67
  readEndpoint
@@ -108,7 +108,7 @@ import {
108
108
  useReducedMotion,
109
109
  useThemeEpoch,
110
110
  useThemeSubscription
111
- } from "./chunk-PUXPTJMD.js";
111
+ } from "./chunk-TIFSH2BH.js";
112
112
  import {
113
113
  capChoiceLines,
114
114
  choiceDisplayText,
@@ -121,12 +121,12 @@ import {
121
121
  } from "./chunk-LFI6O7WL.js";
122
122
  import {
123
123
  handleTerminationSignals
124
- } from "./chunk-24CZYMWP.js";
124
+ } from "./chunk-YAOKLAUU.js";
125
125
  import "./chunk-TBIX6JRE.js";
126
126
  import {
127
127
  deleteUserConfigValue,
128
128
  setUserConfigValue
129
- } from "./chunk-YL2SBQDK.js";
129
+ } from "./chunk-VHXXNM6W.js";
130
130
  import {
131
131
  describeAllCredentialsLogout,
132
132
  describeCodexDeviceLoginStart,
@@ -148,20 +148,19 @@ import {
148
148
  sectionHeading,
149
149
  withAutoChoice,
150
150
  writeConversationExport
151
- } from "./chunk-MIPMLOJ4.js";
151
+ } from "./chunk-Y37JJJVY.js";
152
152
  import {
153
153
  tuiPalDefinition,
154
154
  tuiPalEnvironment,
155
155
  tuiPalOwner,
156
156
  tuiPalPreferences
157
- } from "./chunk-64BXKXCY.js";
158
- import "./chunk-TTEKFLTN.js";
157
+ } from "./chunk-X4BCXODL.js";
158
+ import "./chunk-KTF5NW2V.js";
159
159
  import {
160
160
  COMPACTED_HINT,
161
161
  COMPACTING_LABEL,
162
162
  COMPACT_NOT_SAVED_TEXT,
163
163
  COMPACT_RESULT_HINT,
164
- COMPACT_RESULT_TEXT,
165
164
  DEFAULT_AGENT_PHASE,
166
165
  DEFAULT_AGENT_WORKFLOW,
167
166
  EMPTY_GROUP,
@@ -174,6 +173,7 @@ import {
174
173
  NOTHING_TO_COMPACT_TEXT,
175
174
  NOT_SHOWN_LINE,
176
175
  NO_BATCHES_MESSAGE,
176
+ TURN_STOPPED_LINE,
177
177
  WORKFLOW_BACKGROUND_NOTE,
178
178
  WORKFLOW_TOOL_NAME,
179
179
  WORKSPACE_PREVIEW_ROWS,
@@ -184,6 +184,7 @@ import {
184
184
  builtinToolPresenter,
185
185
  clipText,
186
186
  combineBatches,
187
+ compactResultLine,
187
188
  compactionSummaryLines,
188
189
  connectorToolLabel,
189
190
  createAgentSession,
@@ -197,11 +198,13 @@ import {
197
198
  diffViewRows,
198
199
  discoverAgentDefinitions,
199
200
  displayPath as displayPath2,
201
+ estimateHistoryTokens,
200
202
  foldOp,
201
203
  groupSegments,
202
204
  groupText,
203
205
  hiddenLinesHint,
204
206
  hintRows,
207
+ isSessionPlanPath,
205
208
  liveBatches,
206
209
  mergeGroups,
207
210
  modelListingCause,
@@ -232,15 +235,15 @@ import {
232
235
  webLiveStatus,
233
236
  webSettledLine,
234
237
  withDebugDetail
235
- } from "./chunk-6DY377DD.js";
238
+ } from "./chunk-DTNJTMWP.js";
236
239
  import {
237
240
  openManagedWorktrees,
238
241
  worktreeOpenHint
239
- } from "./chunk-4OHKGKUE.js";
242
+ } from "./chunk-QWFD2LFU.js";
240
243
  import {
241
244
  describeBrowserStatus
242
245
  } from "./chunk-WHODOMXA.js";
243
- import "./chunk-2X5QU773.js";
246
+ import "./chunk-XSAS6TS2.js";
244
247
  import {
245
248
  SAVE_SKILL_TOOL_NAME,
246
249
  SKILL_CREATOR_SKILL,
@@ -264,24 +267,24 @@ import {
264
267
  settledElapsed,
265
268
  theme,
266
269
  tokenColor
267
- } from "./chunk-P4BH5CLU.js";
270
+ } from "./chunk-PWGJB2WA.js";
268
271
  import {
269
272
  describePlainInterruption,
270
273
  describeProviderWait,
271
274
  describeProviderWaitClock
272
- } from "./chunk-56MTJMCE.js";
273
- import "./chunk-XTSD7XEF.js";
274
- import "./chunk-7AAONVMX.js";
275
- import "./chunk-DSW5QXUB.js";
275
+ } from "./chunk-VD4D37MT.js";
276
+ import "./chunk-IMFIQJM6.js";
277
+ import "./chunk-O3CIRAYD.js";
278
+ import "./chunk-AGRFKHS2.js";
276
279
  import {
277
280
  openInBrowser
278
- } from "./chunk-VYJUJQ4H.js";
281
+ } from "./chunk-F2UUHEPY.js";
279
282
  import "./chunk-NUGPLXVK.js";
280
283
  import {
281
284
  beginCodexDeviceLogin,
282
285
  beginSubscriptionLogin,
283
286
  parsePastedInput
284
- } from "./chunk-RT7XM57Q.js";
287
+ } from "./chunk-PXEHKMLO.js";
285
288
  import {
286
289
  NO_SKILLS_FOUND,
287
290
  composeSkillsPrompt,
@@ -289,13 +292,13 @@ import {
289
292
  loadSkillBody,
290
293
  renderSkillRoster,
291
294
  skillTierLabel
292
- } from "./chunk-XKFG3473.js";
293
- import "./chunk-ELVAEMBF.js";
294
- import "./chunk-XBEW7SQB.js";
295
+ } from "./chunk-RPKRLR3O.js";
296
+ import "./chunk-MSKJK6NZ.js";
297
+ import "./chunk-YBOKKRHB.js";
295
298
  import {
296
299
  claimPalConversation,
297
300
  listPalConversations
298
- } from "./chunk-BPLY6HCD.js";
301
+ } from "./chunk-QYA34YM5.js";
299
302
  import "./chunk-ZWA2JRJV.js";
300
303
  import {
301
304
  pinTrustedProjectPath,
@@ -316,12 +319,12 @@ import {
316
319
  loadConfigWithProvenance,
317
320
  readPermissionLayers,
318
321
  resolveComposerTriggers
319
- } from "./chunk-LSHPFJKI.js";
322
+ } from "./chunk-HWAPKOAW.js";
320
323
  import "./chunk-XSCT3DLE.js";
321
324
  import {
322
325
  THEME_CHOICES,
323
326
  formatConfigSource
324
- } from "./chunk-VJZ4NHWX.js";
327
+ } from "./chunk-CN6EFAK5.js";
325
328
  import {
326
329
  displayPath,
327
330
  formatSize,
@@ -348,7 +351,7 @@ import {
348
351
  writeJsonAtomic
349
352
  } from "./chunk-OEW7CJKK.js";
350
353
  import "./chunk-HE7WUOX2.js";
351
- import "./chunk-HPBQLE3Y.js";
354
+ import "./chunk-DAUWDTZI.js";
352
355
  import {
353
356
  EXIT_INTERNAL_ERROR
354
357
  } from "./chunk-Y7B67G22.js";
@@ -366,7 +369,7 @@ import {
366
369
  primaryProvider,
367
370
  signedInSubscriptionProviders,
368
371
  writePreferences
369
- } from "./chunk-5ND5QQDO.js";
372
+ } from "./chunk-3ZMECJLN.js";
370
373
  import {
371
374
  ALL_PROVIDER_IDS,
372
375
  PROVIDER_REGISTRY,
@@ -376,22 +379,22 @@ import {
376
379
  } from "./chunk-6LLJQ3KY.js";
377
380
  import {
378
381
  applyProviderFlags
379
- } from "./chunk-GFBEQZGH.js";
382
+ } from "./chunk-TZDYMWYP.js";
380
383
  import "./chunk-XEUQN4JC.js";
381
384
  import {
382
385
  PAUSED_TURN_LINES,
383
386
  currentTimeLine,
384
387
  describeTurnStop,
385
388
  handoffContinuationNote
386
- } from "./chunk-OS33YOPX.js";
389
+ } from "./chunk-TSKCIC5T.js";
387
390
  import {
388
391
  autoAvailable,
389
392
  nextCycleMode,
390
393
  permissionModeDescription,
391
394
  permissionModeLabel,
392
395
  permissionModeName
393
- } from "./chunk-TRX6W6TD.js";
394
- import "./chunk-ITSVWCSR.js";
396
+ } from "./chunk-UHDKUVR5.js";
397
+ import "./chunk-5L7ZQ37R.js";
395
398
  import {
396
399
  expandTabs,
397
400
  terminalDisplayText
@@ -418,22 +421,22 @@ import {
418
421
  titlesOf,
419
422
  typedTextOf,
420
423
  unarchiveConversation
421
- } from "./chunk-UOPSAWJE.js";
422
- import "./chunk-KES7QU4W.js";
424
+ } from "./chunk-ZPNX25RU.js";
425
+ import "./chunk-Z2WGX7UM.js";
423
426
  import "./chunk-H6B6AROX.js";
424
- import "./chunk-BO4VL25F.js";
425
- import "./chunk-GR7FEYP5.js";
427
+ import "./chunk-L2MEW4AZ.js";
428
+ import "./chunk-5XWYY63Z.js";
426
429
  import {
427
430
  isTrusted,
428
431
  trustDir
429
- } from "./chunk-E5FAPPFH.js";
432
+ } from "./chunk-KEKFOEEP.js";
430
433
  import "./chunk-LXB3S4IC.js";
431
- import "./chunk-ABTQVE2K.js";
434
+ import "./chunk-IBCA2WDM.js";
432
435
  import "./chunk-WMEZTDLT.js";
433
436
  import {
434
437
  contextLogging,
435
438
  installCliLogging
436
- } from "./chunk-L3NHCRUZ.js";
439
+ } from "./chunk-N457UJQL.js";
437
440
  import {
438
441
  isFullWidth,
439
442
  isWide,
@@ -443,7 +446,7 @@ import {
443
446
  import "./chunk-OH6TB27S.js";
444
447
  import "./chunk-IE5XIE4W.js";
445
448
  import "./chunk-B73OIFL6.js";
446
- import "./chunk-2F4BARJH.js";
449
+ import "./chunk-2Q6PBTPY.js";
447
450
  import "./chunk-JORONMD3.js";
448
451
  import {
449
452
  clearAllStoredCredentials,
@@ -457,10 +460,10 @@ import {
457
460
  readStoredSubscriptionCredential,
458
461
  restrictToOwner,
459
462
  writeStoredGeminiApiKey
460
- } from "./chunk-M7TGNC4F.js";
463
+ } from "./chunk-2LLNCAZS.js";
461
464
  import {
462
465
  namzuHomePath
463
- } from "./chunk-VEB3EYJK.js";
466
+ } from "./chunk-4I5FGMVR.js";
464
467
  import {
465
468
  ACCEPT_EDITS_TOOLS,
466
469
  DECLINED_TOOL_CALL_FEEDBACK,
@@ -521,7 +524,7 @@ import {
521
524
  validateTimeZone,
522
525
  wrapUntrusted,
523
526
  writePeerRecord
524
- } from "./chunk-NWTFQJZI.js";
527
+ } from "./chunk-6FSVNUBA.js";
525
528
  import {
526
529
  __commonJS,
527
530
  __export,
@@ -34246,6 +34249,7 @@ __name(buildPeerTools, "buildPeerTools");
34246
34249
 
34247
34250
  // src/tui/permission-review.ts
34248
34251
  import { createHash as createHash2 } from "node:crypto";
34252
+ import { readFileSync as readFileSync2, statSync } from "node:fs";
34249
34253
  var MAX_REVIEW_VALUE_CHARS = 2e5;
34250
34254
  var REVIEW_ALLOCATION_BYTES = 1024 * 1024;
34251
34255
  var MAX_WORKFLOW_REVIEW_BYTES = 640 * 1024;
@@ -34645,7 +34649,7 @@ function summarizeKnownCall(name, input, context = {}) {
34645
34649
  }
34646
34650
  }
34647
34651
  if (name === "edit" && isRecord(input)) {
34648
- const summary2 = summarizeEdit(input);
34652
+ const summary2 = summarizeEdit(input, context);
34649
34653
  if (summary2) return summary2;
34650
34654
  }
34651
34655
  if (name === "write" && isRecord(input)) {
@@ -35008,7 +35012,7 @@ function diffLines(sign, lines) {
35008
35012
  return hidden > 0 ? [...shown, `${sign} \u2026 ${hidden} more line${hidden === 1 ? "" : "s"}`] : shown;
35009
35013
  }
35010
35014
  __name(diffLines, "diffLines");
35011
- function summarizeEdit(input) {
35015
+ function summarizeEdit(input, context = {}) {
35012
35016
  const allowed = /* @__PURE__ */ new Set([
35013
35017
  "path",
35014
35018
  "old_string",
@@ -35032,6 +35036,7 @@ function summarizeEdit(input) {
35032
35036
  const lines = [
35033
35037
  `${path} \xB7 ${input.edits.length} replacement${input.edits.length === 1 ? "" : "s"}`
35034
35038
  ];
35039
+ let disk = diskTextOf(context, path);
35035
35040
  for (const [index, edit] of input.edits.entries()) {
35036
35041
  if (!isRecord(edit) || typeof edit.old_string !== "string" || typeof edit.new_string !== "string") {
35037
35042
  return null;
@@ -35043,8 +35048,9 @@ function summarizeEdit(input) {
35043
35048
  return null;
35044
35049
  }
35045
35050
  lines.push(`@ ${index + 1}${edit.replace_all ? " \xB7 every occurrence" : ""}`);
35046
- lines.push(...diffLines("-", edit.old_string.split("\n")));
35047
- lines.push(...diffLines("+", edit.new_string.split("\n")));
35051
+ const shown2 = showOnDisk(disk, edit.old_string, edit.new_string, edit.replace_all === true);
35052
+ lines.push(...shown2.notes, ...diffLines("-", shown2.before), ...diffLines("+", shown2.after));
35053
+ disk = shown2.next;
35048
35054
  }
35049
35055
  return { lines, complete: true };
35050
35056
  }
@@ -35061,16 +35067,76 @@ function summarizeEdit(input) {
35061
35067
  };
35062
35068
  }
35063
35069
  if (oldText.value === null || newText.value === null) return null;
35070
+ const shown = showOnDisk(
35071
+ diskTextOf(context, path),
35072
+ oldText.value,
35073
+ newText.value,
35074
+ replaceAll2 === true
35075
+ );
35064
35076
  return {
35065
35077
  lines: [
35066
35078
  `${path}${replaceAll2 ? " \xB7 every occurrence" : ""}`,
35067
- ...diffLines("-", oldText.value.split("\n")),
35068
- ...diffLines("+", newText.value.split("\n"))
35079
+ ...shown.notes,
35080
+ ...diffLines("-", shown.before),
35081
+ ...diffLines("+", shown.after)
35069
35082
  ],
35070
35083
  complete: true
35071
35084
  };
35072
35085
  }
35073
35086
  __name(summarizeEdit, "summarizeEdit");
35087
+ var MAX_REVIEWED_FILE_BYTES = 2 * 1024 * 1024;
35088
+ function readReviewedFile(absolutePath) {
35089
+ try {
35090
+ if (statSync(absolutePath).size > MAX_REVIEWED_FILE_BYTES) return void 0;
35091
+ return readFileSync2(absolutePath, "utf8");
35092
+ } catch {
35093
+ return void 0;
35094
+ }
35095
+ }
35096
+ __name(readReviewedFile, "readReviewedFile");
35097
+ function diskTextOf(context, path) {
35098
+ try {
35099
+ return context.readText?.(path);
35100
+ } catch {
35101
+ return void 0;
35102
+ }
35103
+ }
35104
+ __name(diskTextOf, "diskTextOf");
35105
+ function showOnDisk(disk, oldText, newText, replaceAll2) {
35106
+ const asGiven = {
35107
+ before: oldText.split("\n"),
35108
+ after: newText.split("\n")
35109
+ };
35110
+ if (disk === void 0 || oldText === "") return { ...asGiven, notes: [], next: void 0 };
35111
+ const first = disk.indexOf(oldText);
35112
+ if (first === -1) {
35113
+ return {
35114
+ ...asGiven,
35115
+ notes: ["The text to replace is no longer in the file as the edit has it."],
35116
+ next: void 0
35117
+ };
35118
+ }
35119
+ if (!replaceAll2 && disk.indexOf(oldText, first + oldText.length) !== -1) {
35120
+ return {
35121
+ ...asGiven,
35122
+ notes: ["The text to replace now appears more than once in the file."],
35123
+ next: void 0
35124
+ };
35125
+ }
35126
+ const lineStart2 = disk.lastIndexOf("\n", first - 1) + 1;
35127
+ const afterMatch = first + oldText.length;
35128
+ const newline = disk.indexOf("\n", afterMatch);
35129
+ const lineEnd2 = newline === -1 ? disk.length : newline;
35130
+ const head = disk.slice(lineStart2, first);
35131
+ const tail = disk.slice(afterMatch, lineEnd2);
35132
+ return {
35133
+ before: `${head}${oldText}${tail}`.split("\n"),
35134
+ after: `${head}${newText}${tail}`.split("\n"),
35135
+ notes: [],
35136
+ next: replaceAll2 ? disk.split(oldText).join(newText) : disk.slice(0, first) + newText + disk.slice(afterMatch)
35137
+ };
35138
+ }
35139
+ __name(showOnDisk, "showOnDisk");
35074
35140
  function pickString(input, name, alias) {
35075
35141
  const a = input[name];
35076
35142
  const b = input[alias];
@@ -38126,13 +38192,13 @@ function usage() {
38126
38192
  __name(usage, "usage");
38127
38193
 
38128
38194
  // src/integrations/trust/folder-grants.ts
38129
- import { readFileSync as readFileSync2 } from "node:fs";
38195
+ import { readFileSync as readFileSync3 } from "node:fs";
38130
38196
  import { resolve } from "node:path";
38131
38197
  var FILES = ["namzu.config.json", "namzu.config.local.json"];
38132
38198
  var MAX_SHOWN_GRANT_RULES = 8;
38133
38199
  function readObject(path) {
38134
38200
  try {
38135
- const parsed = JSON.parse(readFileSync2(path, "utf8"));
38201
+ const parsed = JSON.parse(readFileSync3(path, "utf8"));
38136
38202
  return parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : void 0;
38137
38203
  } catch {
38138
38204
  return void 0;
@@ -39967,7 +40033,7 @@ var import_react40 = __toESM(require_react(), 1);
39967
40033
 
39968
40034
  // src/integrations/clipboard/image.ts
39969
40035
  import { execFileSync as execFileSync2 } from "node:child_process";
39970
- import { readFileSync as readFileSync3, rmSync } from "node:fs";
40036
+ import { readFileSync as readFileSync4, rmSync } from "node:fs";
39971
40037
  import { tmpdir } from "node:os";
39972
40038
  import { platform as platform2 } from "node:os";
39973
40039
  import { join as join2 } from "node:path";
@@ -39978,7 +40044,7 @@ function readClipboardImage() {
39978
40044
  const file = join2(tmpdir(), `namzu-clip-${Date.now()}.png`);
39979
40045
  try {
39980
40046
  if (!saveClipboardImageTo(file)) return { kind: "empty" };
39981
- const buf = readFileSync3(file);
40047
+ const buf = readFileSync4(file);
39982
40048
  if (buf.length === 0) return { kind: "empty" };
39983
40049
  return { kind: "image", image: { data: buf.toString("base64"), mediaType: "image/png" } };
39984
40050
  } catch {
@@ -40071,7 +40137,7 @@ __name(nextQueuedHintEpisode, "nextQueuedHintEpisode");
40071
40137
 
40072
40138
  // src/tui/mentions.ts
40073
40139
  import { execFile as execFile2 } from "node:child_process";
40074
- import { readFileSync as readFileSync4, realpathSync as realpathSync2, statSync } from "node:fs";
40140
+ import { readFileSync as readFileSync5, realpathSync as realpathSync2, statSync as statSync2 } from "node:fs";
40075
40141
  import { resolve as resolve2, sep } from "node:path";
40076
40142
  import { promisify } from "node:util";
40077
40143
  var PATH_CHARS = String.raw`\p{L}\p{N}\p{M}_\-./\\()[\]~:`;
@@ -40235,8 +40301,8 @@ function safeReadInCwd(cwd2, rel) {
40235
40301
  const root = realpathSync2(resolve2(cwd2));
40236
40302
  const abs = realpathSync2(resolve2(root, rel));
40237
40303
  if (abs !== root && !abs.startsWith(root + sep)) return null;
40238
- if (!statSync(abs).isFile()) return null;
40239
- return readFileSync4(abs, "utf8");
40304
+ if (!statSync2(abs).isFile()) return null;
40305
+ return readFileSync5(abs, "utf8");
40240
40306
  } catch {
40241
40307
  return null;
40242
40308
  }
@@ -43396,7 +43462,7 @@ function permissionAnswers(toolCalls, options = {}) {
43396
43462
  __name(permissionAnswers, "permissionAnswers");
43397
43463
  function extraAnswer(toolCalls, options) {
43398
43464
  if (options.mode === "prompt" && toolCalls.length > 0 && toolCalls.every(
43399
- (call) => ACCEPT_EDITS_TOOLS.has(call.name) && call.escalation === void 0 && call.isDestructive !== true && call.requiresApproval !== true && call.authorization?.explicitReview !== true
43465
+ (call) => ACCEPT_EDITS_TOOLS.has(call.name) && call.escalation === void 0 && (call.isDestructive !== true || call.name === "write") && call.requiresApproval !== true && call.authorization?.explicitReview !== true
43400
43466
  ))
43401
43467
  return { label: "Yes, and switch to accept edits for this session", kind: "approve-edits" };
43402
43468
  if (options.commandArguments === void 0) return void 0;
@@ -45273,7 +45339,7 @@ function PlanApprovalOverlay({
45273
45339
  marginTop: 1,
45274
45340
  children: [
45275
45341
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { color: theme.accent.plan, bold: true, children: "Plan ready for review" }),
45276
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-start", children: terminalDisplayText(request.planPath) }),
45342
+ isSessionPlanPath(request.planPath) ? null : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { color: theme.text.secondary, wrap: "truncate-start", children: terminalDisplayText(request.planPath) }),
45277
45343
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Box_default, { flexDirection: "column", paddingLeft: 2, paddingTop: 1, children: visible.map((row) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Box_default, { width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { color: theme.text.primary, bold: !row.continuation && /^#{1,6}\s/.test(row.text), children: row.continuation ? `\u21B3 ${row.text}` : row.text.length > 0 ? row.text : " " }) }, row.index)) }),
45278
45344
  paged ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Text, { color: theme.text.muted, children: [
45279
45345
  "rows ",
@@ -48515,7 +48581,7 @@ function createTerminalPerCallReview(host) {
48515
48581
  case "bypass":
48516
48582
  return true;
48517
48583
  case "accept-edits":
48518
- return ACCEPT_EDITS_TOOLS.has(call.name) && call.isDestructive !== true;
48584
+ return ACCEPT_EDITS_TOOLS.has(call.name) && (call.isDestructive !== true || call.name === "write");
48519
48585
  default:
48520
48586
  return false;
48521
48587
  }
@@ -49090,7 +49156,8 @@ function failedCallRows(event, start) {
49090
49156
  content: event.plainFailure,
49091
49157
  glyph: "\u23BF",
49092
49158
  contentColor: event.plainFailureTone === "muted" ? tokenColor("text.muted") : tokenColor("status.error"),
49093
- ...said !== void 0 && said.trim().length > 0 ? { detail: full, meta: EXPAND_HINT, activity: "agent-result" } : {}
49159
+ // A call that never started has nothing behind its sentence.
49160
+ ...said !== void 0 && said.trim().length > 0 && event.plainFailure !== TURN_STOPPED_LINE ? { detail: full, meta: EXPAND_HINT, activity: "agent-result" } : {}
49094
49161
  }
49095
49162
  ];
49096
49163
  }
@@ -49198,7 +49265,7 @@ function toolEndRows(event, start, ctx) {
49198
49265
  ]);
49199
49266
  }
49200
49267
  if (event.declined) {
49201
- const refused = proposedBody(start?.proposed, ctx.cwd);
49268
+ const refused = start?.proposed?.kind === "edit" ? proposedBody(start.proposed, ctx.cwd) : void 0;
49202
49269
  return rows([
49203
49270
  {
49204
49271
  role: "tool",
@@ -49389,12 +49456,21 @@ function withTakenOverRow(rows, started) {
49389
49456
  }
49390
49457
  __name(withTakenOverRow, "withTakenOverRow");
49391
49458
 
49459
+ // src/tui/resume-empty.ts
49460
+ function noResumeText(input) {
49461
+ if (input.query.length > 0) {
49462
+ return `No other conversation in this folder matches "${input.query}". /resume lists them all.`;
49463
+ }
49464
+ return input.anyHere ? "The only conversation in this folder is the one already open." : "No past conversations to resume in this folder yet.";
49465
+ }
49466
+ __name(noResumeText, "noResumeText");
49467
+
49392
49468
  // src/tui/schedule/host-commands.ts
49393
49469
  import { isAbsolute, relative, resolve as resolve3 } from "node:path";
49394
49470
 
49395
49471
  // src/tui/schedule/loop-host.ts
49396
49472
  import { randomBytes as randomBytes2 } from "node:crypto";
49397
- import { readFileSync as readFileSync5 } from "node:fs";
49473
+ import { readFileSync as readFileSync6 } from "node:fs";
49398
49474
  var MAX_LOOPS = 20;
49399
49475
  var LOOP_LIFETIME_MS = 7 * 24 * 60 * 60 * 1e3;
49400
49476
  function loopSpec(interval, now) {
@@ -49426,7 +49502,7 @@ var SessionLoopScheduler = class {
49426
49502
  this.#loops = [];
49427
49503
  if (!file) return;
49428
49504
  try {
49429
- const parsed = JSON.parse(readFileSync5(file, "utf8"));
49505
+ const parsed = JSON.parse(readFileSync6(file, "utf8"));
49430
49506
  if (parsed.kind === "session-loops" && Array.isArray(parsed.loops)) {
49431
49507
  const now = this.#now();
49432
49508
  this.#loops = parsed.loops.filter(
@@ -50189,7 +50265,7 @@ async function prepareScheduledResume(input) {
50189
50265
  __name(prepareScheduledResume, "prepareScheduledResume");
50190
50266
 
50191
50267
  // src/tui/schedule/startup.ts
50192
- import { readFileSync as readFileSync6 } from "node:fs";
50268
+ import { readFileSync as readFileSync7 } from "node:fs";
50193
50269
  import { join as join5 } from "node:path";
50194
50270
  function ago(ms) {
50195
50271
  if (ms < 36e5) return `${Math.max(1, Math.round(ms / 6e4))} min`;
@@ -50203,7 +50279,7 @@ function scheduleStartupLine(home, cwd2, now = Date.now()) {
50203
50279
  if (jobs.length === 0) return void 0;
50204
50280
  let since = now - 24 * 36e5;
50205
50281
  try {
50206
- const seen = JSON.parse(readFileSync6(paths.seen, "utf8"));
50282
+ const seen = JSON.parse(readFileSync7(paths.seen, "utf8"));
50207
50283
  if (seen.lastSummaryAt) since = Date.parse(seen.lastSummaryAt);
50208
50284
  } catch {
50209
50285
  }
@@ -50262,7 +50338,7 @@ function scheduleStartupLine(home, cwd2, now = Date.now()) {
50262
50338
  parts.push("Scheduled jobs exist but the scheduler is not installed \u2014 namzu schedule install");
50263
50339
  } else if (manifest) {
50264
50340
  try {
50265
- const beat = JSON.parse(readFileSync6(paths.heartbeat, "utf8"));
50341
+ const beat = JSON.parse(readFileSync7(paths.heartbeat, "utf8"));
50266
50342
  const age = beat.at ? now - Date.parse(beat.at) : Number.POSITIVE_INFINITY;
50267
50343
  if (age > 9e4)
50268
50344
  parts.push(
@@ -51306,7 +51382,7 @@ function setSkillSuggestions(on, opts = {}) {
51306
51382
  __name(setSkillSuggestions, "setSkillSuggestions");
51307
51383
 
51308
51384
  // src/tui/skills/suggestion-ledger.ts
51309
- import { mkdirSync, readFileSync as readFileSync7, renameSync, writeFileSync } from "node:fs";
51385
+ import { mkdirSync, readFileSync as readFileSync8, renameSync, writeFileSync } from "node:fs";
51310
51386
  import { dirname, join as join6 } from "node:path";
51311
51387
  var SUGGESTION_IGNORE_LIMIT = 3;
51312
51388
  var FRESH_LEDGER = { v: 1, unanswered: 0, stopped: false };
@@ -51316,7 +51392,7 @@ function suggestionLedgerPath(namzuHome) {
51316
51392
  __name(suggestionLedgerPath, "suggestionLedgerPath");
51317
51393
  function readSuggestionLedger(namzuHome) {
51318
51394
  try {
51319
- const raw = JSON.parse(readFileSync7(suggestionLedgerPath(namzuHome), "utf8"));
51395
+ const raw = JSON.parse(readFileSync8(suggestionLedgerPath(namzuHome), "utf8"));
51320
51396
  const unanswered = typeof raw.unanswered === "number" && Number.isInteger(raw.unanswered) && raw.unanswered >= 0 ? raw.unanswered : 0;
51321
51397
  return { v: 1, unanswered, stopped: raw.stopped === true };
51322
51398
  } catch {
@@ -57808,7 +57884,7 @@ ${blocks.join("\n\n")}`;
57808
57884
  if (others.length === 0) {
57809
57885
  pushMessage(
57810
57886
  "system",
57811
- needle ? `No conversation in this folder matches "${query?.trim()}". /resume lists them all.` : "No past conversations to resume in this folder yet."
57887
+ noResumeText({ query: query?.trim() ?? "", anyHere: recent.length > 0 })
57812
57888
  );
57813
57889
  return;
57814
57890
  }
@@ -58814,6 +58890,7 @@ ${plain(err)}`
58814
58890
  const summary2 = buildPermissionSummary(review.text, {
58815
58891
  describeUiRef: /* @__PURE__ */ __name((ref) => reviewSessionRef.current?.describeComputerUseRef?.(ref), "describeUiRef"),
58816
58892
  fileExists: /* @__PURE__ */ __name((path) => existsSync2(resolve7(ctxRef.current.cwd, path)), "fileExists"),
58893
+ readText: /* @__PURE__ */ __name((path) => readReviewedFile(resolve7(ctxRef.current.cwd, path)), "readText"),
58817
58894
  workflowLimits: resolveWorkflowLimits(ctxRef.current.workflow),
58818
58895
  withheld: review.withheld
58819
58896
  });
@@ -58958,7 +59035,11 @@ ${plain(err)}`
58958
59035
  `Plan approved \xB7 ${permissionModeLabel(answer.mode)}`,
58959
59036
  false,
58960
59037
  "\u2713",
58961
- [`Saved to ${request.planPath}`, "", ...request.plan.trimEnd().split("\n")]
59038
+ [
59039
+ isSessionPlanPath(request.planPath) ? "Saved as the plan" : `Saved to ${request.planPath}`,
59040
+ "",
59041
+ ...request.plan.trimEnd().split("\n")
59042
+ ]
58962
59043
  );
58963
59044
  } else if (answer.feedback) {
58964
59045
  pushMessage("system", `Changes asked for \xB7 ${answer.feedback}`);
@@ -61580,7 +61661,8 @@ ${plugins.map((plugin) => {
61580
61661
  setState("thinking");
61581
61662
  void (async () => {
61582
61663
  try {
61583
- const result = await session.compact(modelHistoryRef.current, slash.instructions);
61664
+ const historyBefore = modelHistoryRef.current;
61665
+ const result = await session.compact(historyBefore, slash.instructions);
61584
61666
  if (!result) {
61585
61667
  pushSystem("notice", NOTHING_TO_COMPACT_TEXT);
61586
61668
  return;
@@ -61592,13 +61674,18 @@ ${plugins.map((plugin) => {
61592
61674
  const keptTurns = result.messages.filter(
61593
61675
  (m) => m.role === "user" || m.role === "assistant"
61594
61676
  ).length;
61677
+ const resultLine = compactResultLine({
61678
+ shed: result.shed,
61679
+ tokensBefore: estimateHistoryTokens(historyBefore),
61680
+ tokensAfter: estimateHistoryTokens(result.messages)
61681
+ });
61595
61682
  resetTranscript();
61596
61683
  setMessages((prev) => {
61597
61684
  const kept = keepRecentRows(prev, keptTurns);
61598
61685
  const summaryRow = {
61599
61686
  id: `compact-${Date.now()}`,
61600
61687
  role: "system",
61601
- content: durable ? COMPACT_RESULT_TEXT : `${COMPACT_RESULT_TEXT}. ${COMPACT_NOT_SAVED_TEXT}`,
61688
+ content: durable ? resultLine : `${resultLine}. ${COMPACT_NOT_SAVED_TEXT}`,
61602
61689
  glyph: CLOSING_GLYPH,
61603
61690
  glyphColor: tokenColor("text.muted"),
61604
61691
  meta: COMPACT_RESULT_HINT,
@@ -64157,7 +64244,7 @@ __name(installFocusReporting, "installFocusReporting");
64157
64244
 
64158
64245
  // src/tui/hint-counts.ts
64159
64246
  import { randomUUID } from "node:crypto";
64160
- import { mkdirSync as mkdirSync2, readFileSync as readFileSync8, renameSync as renameSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
64247
+ import { mkdirSync as mkdirSync2, readFileSync as readFileSync9, renameSync as renameSync2, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
64161
64248
  import { dirname as dirname2, join as join8 } from "node:path";
64162
64249
  var FILE_MODE = 384;
64163
64250
  var DIR_MODE = 448;
@@ -64167,7 +64254,7 @@ function hintCountsPath(home) {
64167
64254
  __name(hintCountsPath, "hintCountsPath");
64168
64255
  function readAll(path) {
64169
64256
  try {
64170
- const parsed = JSON.parse(readFileSync8(path, "utf8"));
64257
+ const parsed = JSON.parse(readFileSync9(path, "utf8"));
64171
64258
  if (typeof parsed !== "object" || parsed === null) return {};
64172
64259
  const counts2 = {};
64173
64260
  for (const [key, value] of Object.entries(parsed)) {
@@ -64326,7 +64413,7 @@ __name(askTerminal, "askTerminal");
64326
64413
 
64327
64414
  // src/tui/tip-history.ts
64328
64415
  import { randomUUID as randomUUID2 } from "node:crypto";
64329
- import { mkdirSync as mkdirSync3, readFileSync as readFileSync9, renameSync as renameSync3, rmSync as rmSync3, writeFileSync as writeFileSync3 } from "node:fs";
64416
+ import { mkdirSync as mkdirSync3, readFileSync as readFileSync10, renameSync as renameSync3, rmSync as rmSync3, writeFileSync as writeFileSync3 } from "node:fs";
64330
64417
  import { dirname as dirname3, join as join9 } from "node:path";
64331
64418
  var FILE_MODE2 = 384;
64332
64419
  var DIR_MODE2 = 448;
@@ -64341,7 +64428,7 @@ function wholeNumber(value) {
64341
64428
  __name(wholeNumber, "wholeNumber");
64342
64429
  function readTipHistory(path) {
64343
64430
  try {
64344
- const parsed = JSON.parse(readFileSync9(path, "utf8"));
64431
+ const parsed = JSON.parse(readFileSync10(path, "utf8"));
64345
64432
  if (typeof parsed !== "object" || parsed === null) return EMPTY_TIP_HISTORY;
64346
64433
  const raw = parsed;
64347
64434
  const shown = {};
@@ -64569,4 +64656,4 @@ react/cjs/react-jsx-runtime.development.js:
64569
64656
  * LICENSE file in the root directory of this source tree.
64570
64657
  *)
64571
64658
  */
64572
- //# sourceMappingURL=tui-WTLNGZ3U.js.map
64659
+ //# sourceMappingURL=tui-XBQCRSIJ.js.map