@namzu/cli 41.2.0 → 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 (251) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-PBJTGQHA.js → acp-MCDCWJ45.js} +39 -39
  4. package/dist/chunks/{activity-command-JFBLFZSJ.js → activity-command-AYLW5EEX.js} +12 -12
  5. package/dist/chunks/{add-MSMS6QMP.js → add-VNM5QPTX.js} +15 -15
  6. package/dist/chunks/{agent-OEXJQTAS.js → agent-4IMOBJR5.js} +30 -30
  7. package/dist/chunks/agent-session-44AYNTQJ.js +59 -0
  8. package/dist/chunks/{archive-Z4MSUTUS.js → archive-VXJWPZBA.js} +10 -10
  9. package/dist/chunks/{bin-main-3NKAMTSR.js → bin-main-BMCDNDGC.js} +3 -3
  10. package/dist/chunks/{browser-Q7CAR3HM.js → browser-7MVCQL2G.js} +6 -6
  11. package/dist/chunks/{chat-Z5AJZSH6.js → chat-M2WFCRYV.js} +15 -15
  12. package/dist/chunks/{chunk-6C4J5CIK.js → chunk-2LLNCAZS.js} +2 -2
  13. package/dist/chunks/{chunk-ERRNULJ3.js → chunk-2Q6PBTPY.js} +2 -2
  14. package/dist/chunks/{chunk-5IUMQ3HV.js → chunk-3ZMECJLN.js} +13 -13
  15. package/dist/chunks/{chunk-R4KW67FB.js → chunk-4I5FGMVR.js} +2 -2
  16. package/dist/chunks/{chunk-F3MJOWFD.js → chunk-5L7ZQ37R.js} +6 -6
  17. package/dist/chunks/{chunk-ETQIZ5KN.js → chunk-5LGZUFDJ.js} +3 -3
  18. package/dist/chunks/{chunk-H56UWANP.js → chunk-5XWYY63Z.js} +4 -4
  19. package/dist/chunks/{chunk-WJG5O4KK.js → chunk-6FSVNUBA.js} +307 -213
  20. package/dist/chunks/chunk-6FSVNUBA.js.map +6 -0
  21. package/dist/chunks/{chunk-LURD5LEU.js → chunk-7A5TVBGS.js} +2 -2
  22. package/dist/chunks/{chunk-EBM72A56.js → chunk-7RBZS3TN.js} +4 -4
  23. package/dist/chunks/{chunk-GMAVUBKY.js → chunk-AGRFKHS2.js} +4 -4
  24. package/dist/chunks/{chunk-SFOKT7BD.js → chunk-AVSE45ED.js} +4 -4
  25. package/dist/chunks/{chunk-N6YMEARB.js → chunk-AYCKJIVD.js} +2 -2
  26. package/dist/chunks/{chunk-NWNJO347.js → chunk-C4CVM56Z.js} +4 -4
  27. package/dist/chunks/{chunk-IN62T4C7.js → chunk-CN6EFAK5.js} +2 -2
  28. package/dist/chunks/{chunk-NN67WN5F.js → chunk-DAJBZ4B7.js} +2 -2
  29. package/dist/chunks/{chunk-56M5MQ4J.js → chunk-DAUWDTZI.js} +2 -2
  30. package/dist/chunks/{chunk-5UQSACPK.js → chunk-DTNJTMWP.js} +80 -26
  31. package/dist/chunks/chunk-DTNJTMWP.js.map +6 -0
  32. package/dist/chunks/{chunk-R3REKFM3.js → chunk-DVRRRNSA.js} +8 -8
  33. package/dist/chunks/{chunk-NJGAXOWJ.js → chunk-EYBTANG5.js} +6 -6
  34. package/dist/chunks/{chunk-ZA6AX5U4.js → chunk-F2UUHEPY.js} +2 -2
  35. package/dist/chunks/{chunk-NQSQZ2UV.js → chunk-G7JH3PMC.js} +2 -2
  36. package/dist/chunks/{chunk-CEBLRMD4.js → chunk-GD6LOX4A.js} +13 -13
  37. package/dist/chunks/{chunk-7MYFM63X.js → chunk-H3ALHXFV.js} +12 -12
  38. package/dist/chunks/{chunk-I7T3E2GZ.js → chunk-HV7PRPHJ.js} +7 -7
  39. package/dist/chunks/{chunk-YUCU537D.js → chunk-HWAPKOAW.js} +4 -4
  40. package/dist/chunks/{chunk-VMF3FBAG.js → chunk-IBCA2WDM.js} +3 -3
  41. package/dist/chunks/{chunk-XI4FSVO4.js → chunk-IBUFD2HH.js} +2 -2
  42. package/dist/chunks/{chunk-LXGJMPVM.js → chunk-IMFIQJM6.js} +3 -3
  43. package/dist/chunks/{chunk-3UXYK42Z.js → chunk-IQBKDY6G.js} +3 -3
  44. package/dist/chunks/{chunk-DNW5R5BJ.js → chunk-KDZ6GM2A.js} +2 -2
  45. package/dist/chunks/{chunk-LJQKALFW.js → chunk-KEKFOEEP.js} +2 -2
  46. package/dist/chunks/{chunk-FGLIZTK4.js → chunk-KGKRKFB7.js} +2 -2
  47. package/dist/chunks/{chunk-KJBANDDG.js → chunk-KTF5NW2V.js} +8 -8
  48. package/dist/chunks/{chunk-ZNSLNHYH.js → chunk-L2MEW4AZ.js} +2 -2
  49. package/dist/chunks/{chunk-3D6A3HLM.js → chunk-LETTT4ZZ.js} +2 -2
  50. package/dist/chunks/{chunk-M2DUJ2ET.js → chunk-LRDLJTYP.js} +9 -9
  51. package/dist/chunks/{chunk-LKVNTESX.js → chunk-MCUV6EI7.js} +2 -2
  52. package/dist/chunks/{chunk-SK5SRMCT.js → chunk-MSKJK6NZ.js} +3 -3
  53. package/dist/chunks/{chunk-DYV2522W.js → chunk-N457UJQL.js} +2 -2
  54. package/dist/chunks/{chunk-VQTWIVVA.js → chunk-O3CIRAYD.js} +5 -5
  55. package/dist/chunks/{chunk-3XMZDCBX.js → chunk-O7VKAFEU.js} +2 -2
  56. package/dist/chunks/{chunk-Z2EACB4F.js → chunk-PWGJB2WA.js} +4 -4
  57. package/dist/chunks/{chunk-XQUBSIWB.js → chunk-PXEHKMLO.js} +4 -4
  58. package/dist/chunks/{chunk-3ZB55MHY.js → chunk-QWFD2LFU.js} +4 -4
  59. package/dist/chunks/{chunk-TFJNH7ID.js → chunk-QYA34YM5.js} +4 -4
  60. package/dist/chunks/{chunk-WYH6NXPA.js → chunk-RI57PEYF.js} +4 -4
  61. package/dist/chunks/{chunk-MJMA5OHV.js → chunk-RPKRLR3O.js} +3 -3
  62. package/dist/chunks/{chunk-6W42AIQG.js → chunk-TIFSH2BH.js} +7 -7
  63. package/dist/chunks/{chunk-JDD4EWD6.js → chunk-TSKCIC5T.js} +2 -2
  64. package/dist/chunks/{chunk-33NYEJRI.js → chunk-TZDYMWYP.js} +3 -3
  65. package/dist/chunks/{chunk-L6QWM6JH.js → chunk-UHDKUVR5.js} +2 -2
  66. package/dist/chunks/{chunk-LQ6IIEFT.js → chunk-VD4D37MT.js} +3 -3
  67. package/dist/chunks/{chunk-2U3AGHA2.js → chunk-VHXXNM6W.js} +3 -3
  68. package/dist/chunks/{chunk-FDTTJKE2.js → chunk-WYUJ4USW.js} +2 -2
  69. package/dist/chunks/{chunk-74E5AVCZ.js → chunk-X4BCXODL.js} +5 -5
  70. package/dist/chunks/{chunk-5TXHYHGI.js → chunk-XSAS6TS2.js} +3 -3
  71. package/dist/chunks/{chunk-A3NXWBMA.js → chunk-Y37JJJVY.js} +3 -3
  72. package/dist/chunks/{chunk-TX3FNXAO.js → chunk-YAOKLAUU.js} +2 -2
  73. package/dist/chunks/{chunk-FIJIJBVB.js → chunk-YBOKKRHB.js} +6 -6
  74. package/dist/chunks/{chunk-DLLDZEN6.js → chunk-YZW6H2LD.js} +30 -30
  75. package/dist/chunks/{chunk-PPFEI5JA.js → chunk-Z2WGX7UM.js} +3 -3
  76. package/dist/chunks/{chunk-A6YM5FG3.js → chunk-ZPNX25RU.js} +5 -5
  77. package/dist/chunks/{cli-runtime-RPB4M2RF.js → cli-runtime-Q6BW37I2.js} +10 -10
  78. package/dist/chunks/{commands-IMYUSFHX.js → commands-C5I7PC7W.js} +5 -5
  79. package/dist/chunks/{crash-report-PWJTZU34.js → crash-report-DRT5OCHO.js} +6 -6
  80. package/dist/chunks/{dist-J2I6IEOU.js → dist-2NWJAAJM.js} +2 -2
  81. package/dist/chunks/{dist-GSHJSYUF.js → dist-5JM4UMVC.js} +2 -2
  82. package/dist/chunks/{dist-CEKNZS6X.js → dist-D7WSQBE7.js} +2 -2
  83. package/dist/chunks/{dist-VPHQMXFD.js → dist-PRTI23W3.js} +2 -2
  84. package/dist/chunks/{dist-T6QDOXHW.js → dist-T2N57REG.js} +2 -2
  85. package/dist/chunks/{dist-B4YMSACL.js → dist-VJC5RCYZ.js} +2 -2
  86. package/dist/chunks/{dist-THRSTILU.js → dist-WO56PFGZ.js} +2 -2
  87. package/dist/chunks/{doctor-LJTFZVNL.js → doctor-HXKU6QKJ.js} +8 -8
  88. package/dist/chunks/{drain-FZ7QVFJ5.js → drain-MLRRMEGK.js} +10 -10
  89. package/dist/chunks/{eval-STWOVX3N.js → eval-ECOECG74.js} +2 -2
  90. package/dist/chunks/{exec-EWHE65KQ.js → exec-JLB6F5ZR.js} +28 -28
  91. package/dist/chunks/{home-GKHHL5OL.js → home-G65CC45B.js} +3 -3
  92. package/dist/chunks/{host-queries-D3VSQE6Z.js → host-queries-7LKGEBO5.js} +15 -15
  93. package/dist/chunks/{learn-N3NKUI4W.js → learn-NRY6X2K6.js} +13 -13
  94. package/dist/chunks/{learn-builtin-OZQUS64D.js → learn-builtin-QOM4KLT2.js} +16 -16
  95. package/dist/chunks/{lifecycle-MRG5PYDG.js → lifecycle-BI2PMV4Q.js} +24 -24
  96. package/dist/chunks/{list-X5V5SGOY.js → list-QTWALT6F.js} +11 -11
  97. package/dist/chunks/{login-IXB52EFK.js → login-7LJG7D3F.js} +8 -8
  98. package/dist/chunks/{logs-BBC3W6H5.js → logs-UGMCEFAZ.js} +4 -4
  99. package/dist/chunks/{mcp-UEQPXI7K.js → mcp-KOZOXU6J.js} +16 -16
  100. package/dist/chunks/{message-command-PXMP4IC4.js → message-command-7B5OFSGL.js} +36 -36
  101. package/dist/chunks/{operator-tools-OZCXJX23.js → operator-tools-PWBZHKXO.js} +13 -13
  102. package/dist/chunks/{output-schema-OKJHMA22.js → output-schema-QPHXNRKI.js} +3 -3
  103. package/dist/chunks/{pal-COYTNDHQ.js → pal-XSD45IR6.js} +11 -11
  104. package/dist/chunks/{providers-56OCKVO4.js → providers-ULPGYRWC.js} +6 -6
  105. package/dist/chunks/{resident-2XJYIQOD.js → resident-NY7XSEK7.js} +24 -24
  106. package/dist/chunks/resume-4FV66TEK.js +23 -0
  107. package/dist/chunks/{resume-command-EIDWBG7D.js → resume-command-DLOW7MYW.js} +4 -4
  108. package/dist/chunks/{schedule-SJ36DUQY.js → schedule-QR7JOA4F.js} +8 -8
  109. package/dist/chunks/{service-FEZAPVUE.js → service-CLLR5VUD.js} +23 -23
  110. package/dist/chunks/session-step-IEMT6LRR.js +30 -0
  111. package/dist/chunks/{skills-CXLLO5VH.js → skills-OZZLTH6P.js} +8 -8
  112. package/dist/chunks/{state-QZBFM4HR.js → state-EROTPJRH.js} +2 -2
  113. package/dist/chunks/{store-7TGN2BZW.js → store-C24DXKO4.js} +6 -6
  114. package/dist/chunks/{store-T76GFLGS.js → store-ROEYUKBM.js} +4 -4
  115. package/dist/chunks/{store-SFATKTMK.js → store-VDQRT2KF.js} +10 -10
  116. package/dist/chunks/{tui-ZHDQMAUW.js → tui-XBQCRSIJ.js} +166 -81
  117. package/dist/chunks/tui-XBQCRSIJ.js.map +6 -0
  118. package/dist/chunks/{upgrade-U3AHBHY3.js → upgrade-ZRQZD2N2.js} +2 -2
  119. package/dist/chunks/{worktree-LU7NNZQZ.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/compaction-rows.d.ts +13 -0
  125. package/dist/tui/compaction-rows.d.ts.map +1 -1
  126. package/dist/tui/display-path.d.ts +12 -0
  127. package/dist/tui/display-path.d.ts.map +1 -1
  128. package/dist/tui/permission-review.d.ts +9 -0
  129. package/dist/tui/permission-review.d.ts.map +1 -1
  130. package/dist/tui/resume-empty.d.ts +14 -0
  131. package/dist/tui/resume-empty.d.ts.map +1 -0
  132. package/dist/tui/tidy-tool-output.d.ts.map +1 -1
  133. package/dist/tui/tool-end-rows.d.ts.map +1 -1
  134. package/package.json +6 -6
  135. package/dist/chunks/agent-session-MQEHBQXA.js +0 -59
  136. package/dist/chunks/chunk-5UQSACPK.js.map +0 -6
  137. package/dist/chunks/chunk-WJG5O4KK.js.map +0 -6
  138. package/dist/chunks/resume-OKFXVP4R.js +0 -23
  139. package/dist/chunks/session-step-Z53LX627.js +0 -30
  140. package/dist/chunks/tui-ZHDQMAUW.js.map +0 -6
  141. /package/dist/chunks/{acp-PBJTGQHA.js.map → acp-MCDCWJ45.js.map} +0 -0
  142. /package/dist/chunks/{activity-command-JFBLFZSJ.js.map → activity-command-AYLW5EEX.js.map} +0 -0
  143. /package/dist/chunks/{add-MSMS6QMP.js.map → add-VNM5QPTX.js.map} +0 -0
  144. /package/dist/chunks/{agent-OEXJQTAS.js.map → agent-4IMOBJR5.js.map} +0 -0
  145. /package/dist/chunks/{agent-session-MQEHBQXA.js.map → agent-session-44AYNTQJ.js.map} +0 -0
  146. /package/dist/chunks/{archive-Z4MSUTUS.js.map → archive-VXJWPZBA.js.map} +0 -0
  147. /package/dist/chunks/{bin-main-3NKAMTSR.js.map → bin-main-BMCDNDGC.js.map} +0 -0
  148. /package/dist/chunks/{browser-Q7CAR3HM.js.map → browser-7MVCQL2G.js.map} +0 -0
  149. /package/dist/chunks/{chat-Z5AJZSH6.js.map → chat-M2WFCRYV.js.map} +0 -0
  150. /package/dist/chunks/{chunk-6C4J5CIK.js.map → chunk-2LLNCAZS.js.map} +0 -0
  151. /package/dist/chunks/{chunk-ERRNULJ3.js.map → chunk-2Q6PBTPY.js.map} +0 -0
  152. /package/dist/chunks/{chunk-5IUMQ3HV.js.map → chunk-3ZMECJLN.js.map} +0 -0
  153. /package/dist/chunks/{chunk-R4KW67FB.js.map → chunk-4I5FGMVR.js.map} +0 -0
  154. /package/dist/chunks/{chunk-F3MJOWFD.js.map → chunk-5L7ZQ37R.js.map} +0 -0
  155. /package/dist/chunks/{chunk-ETQIZ5KN.js.map → chunk-5LGZUFDJ.js.map} +0 -0
  156. /package/dist/chunks/{chunk-H56UWANP.js.map → chunk-5XWYY63Z.js.map} +0 -0
  157. /package/dist/chunks/{chunk-LURD5LEU.js.map → chunk-7A5TVBGS.js.map} +0 -0
  158. /package/dist/chunks/{chunk-EBM72A56.js.map → chunk-7RBZS3TN.js.map} +0 -0
  159. /package/dist/chunks/{chunk-GMAVUBKY.js.map → chunk-AGRFKHS2.js.map} +0 -0
  160. /package/dist/chunks/{chunk-SFOKT7BD.js.map → chunk-AVSE45ED.js.map} +0 -0
  161. /package/dist/chunks/{chunk-N6YMEARB.js.map → chunk-AYCKJIVD.js.map} +0 -0
  162. /package/dist/chunks/{chunk-NWNJO347.js.map → chunk-C4CVM56Z.js.map} +0 -0
  163. /package/dist/chunks/{chunk-IN62T4C7.js.map → chunk-CN6EFAK5.js.map} +0 -0
  164. /package/dist/chunks/{chunk-NN67WN5F.js.map → chunk-DAJBZ4B7.js.map} +0 -0
  165. /package/dist/chunks/{chunk-56M5MQ4J.js.map → chunk-DAUWDTZI.js.map} +0 -0
  166. /package/dist/chunks/{chunk-R3REKFM3.js.map → chunk-DVRRRNSA.js.map} +0 -0
  167. /package/dist/chunks/{chunk-NJGAXOWJ.js.map → chunk-EYBTANG5.js.map} +0 -0
  168. /package/dist/chunks/{chunk-ZA6AX5U4.js.map → chunk-F2UUHEPY.js.map} +0 -0
  169. /package/dist/chunks/{chunk-NQSQZ2UV.js.map → chunk-G7JH3PMC.js.map} +0 -0
  170. /package/dist/chunks/{chunk-CEBLRMD4.js.map → chunk-GD6LOX4A.js.map} +0 -0
  171. /package/dist/chunks/{chunk-7MYFM63X.js.map → chunk-H3ALHXFV.js.map} +0 -0
  172. /package/dist/chunks/{chunk-I7T3E2GZ.js.map → chunk-HV7PRPHJ.js.map} +0 -0
  173. /package/dist/chunks/{chunk-YUCU537D.js.map → chunk-HWAPKOAW.js.map} +0 -0
  174. /package/dist/chunks/{chunk-VMF3FBAG.js.map → chunk-IBCA2WDM.js.map} +0 -0
  175. /package/dist/chunks/{chunk-XI4FSVO4.js.map → chunk-IBUFD2HH.js.map} +0 -0
  176. /package/dist/chunks/{chunk-LXGJMPVM.js.map → chunk-IMFIQJM6.js.map} +0 -0
  177. /package/dist/chunks/{chunk-3UXYK42Z.js.map → chunk-IQBKDY6G.js.map} +0 -0
  178. /package/dist/chunks/{chunk-DNW5R5BJ.js.map → chunk-KDZ6GM2A.js.map} +0 -0
  179. /package/dist/chunks/{chunk-LJQKALFW.js.map → chunk-KEKFOEEP.js.map} +0 -0
  180. /package/dist/chunks/{chunk-FGLIZTK4.js.map → chunk-KGKRKFB7.js.map} +0 -0
  181. /package/dist/chunks/{chunk-KJBANDDG.js.map → chunk-KTF5NW2V.js.map} +0 -0
  182. /package/dist/chunks/{chunk-ZNSLNHYH.js.map → chunk-L2MEW4AZ.js.map} +0 -0
  183. /package/dist/chunks/{chunk-3D6A3HLM.js.map → chunk-LETTT4ZZ.js.map} +0 -0
  184. /package/dist/chunks/{chunk-M2DUJ2ET.js.map → chunk-LRDLJTYP.js.map} +0 -0
  185. /package/dist/chunks/{chunk-LKVNTESX.js.map → chunk-MCUV6EI7.js.map} +0 -0
  186. /package/dist/chunks/{chunk-SK5SRMCT.js.map → chunk-MSKJK6NZ.js.map} +0 -0
  187. /package/dist/chunks/{chunk-DYV2522W.js.map → chunk-N457UJQL.js.map} +0 -0
  188. /package/dist/chunks/{chunk-VQTWIVVA.js.map → chunk-O3CIRAYD.js.map} +0 -0
  189. /package/dist/chunks/{chunk-3XMZDCBX.js.map → chunk-O7VKAFEU.js.map} +0 -0
  190. /package/dist/chunks/{chunk-Z2EACB4F.js.map → chunk-PWGJB2WA.js.map} +0 -0
  191. /package/dist/chunks/{chunk-XQUBSIWB.js.map → chunk-PXEHKMLO.js.map} +0 -0
  192. /package/dist/chunks/{chunk-3ZB55MHY.js.map → chunk-QWFD2LFU.js.map} +0 -0
  193. /package/dist/chunks/{chunk-TFJNH7ID.js.map → chunk-QYA34YM5.js.map} +0 -0
  194. /package/dist/chunks/{chunk-WYH6NXPA.js.map → chunk-RI57PEYF.js.map} +0 -0
  195. /package/dist/chunks/{chunk-MJMA5OHV.js.map → chunk-RPKRLR3O.js.map} +0 -0
  196. /package/dist/chunks/{chunk-6W42AIQG.js.map → chunk-TIFSH2BH.js.map} +0 -0
  197. /package/dist/chunks/{chunk-JDD4EWD6.js.map → chunk-TSKCIC5T.js.map} +0 -0
  198. /package/dist/chunks/{chunk-33NYEJRI.js.map → chunk-TZDYMWYP.js.map} +0 -0
  199. /package/dist/chunks/{chunk-L6QWM6JH.js.map → chunk-UHDKUVR5.js.map} +0 -0
  200. /package/dist/chunks/{chunk-LQ6IIEFT.js.map → chunk-VD4D37MT.js.map} +0 -0
  201. /package/dist/chunks/{chunk-2U3AGHA2.js.map → chunk-VHXXNM6W.js.map} +0 -0
  202. /package/dist/chunks/{chunk-FDTTJKE2.js.map → chunk-WYUJ4USW.js.map} +0 -0
  203. /package/dist/chunks/{chunk-74E5AVCZ.js.map → chunk-X4BCXODL.js.map} +0 -0
  204. /package/dist/chunks/{chunk-5TXHYHGI.js.map → chunk-XSAS6TS2.js.map} +0 -0
  205. /package/dist/chunks/{chunk-A3NXWBMA.js.map → chunk-Y37JJJVY.js.map} +0 -0
  206. /package/dist/chunks/{chunk-TX3FNXAO.js.map → chunk-YAOKLAUU.js.map} +0 -0
  207. /package/dist/chunks/{chunk-FIJIJBVB.js.map → chunk-YBOKKRHB.js.map} +0 -0
  208. /package/dist/chunks/{chunk-DLLDZEN6.js.map → chunk-YZW6H2LD.js.map} +0 -0
  209. /package/dist/chunks/{chunk-PPFEI5JA.js.map → chunk-Z2WGX7UM.js.map} +0 -0
  210. /package/dist/chunks/{chunk-A6YM5FG3.js.map → chunk-ZPNX25RU.js.map} +0 -0
  211. /package/dist/chunks/{cli-runtime-RPB4M2RF.js.map → cli-runtime-Q6BW37I2.js.map} +0 -0
  212. /package/dist/chunks/{commands-IMYUSFHX.js.map → commands-C5I7PC7W.js.map} +0 -0
  213. /package/dist/chunks/{crash-report-PWJTZU34.js.map → crash-report-DRT5OCHO.js.map} +0 -0
  214. /package/dist/chunks/{dist-J2I6IEOU.js.map → dist-2NWJAAJM.js.map} +0 -0
  215. /package/dist/chunks/{dist-GSHJSYUF.js.map → dist-5JM4UMVC.js.map} +0 -0
  216. /package/dist/chunks/{dist-CEKNZS6X.js.map → dist-D7WSQBE7.js.map} +0 -0
  217. /package/dist/chunks/{dist-VPHQMXFD.js.map → dist-PRTI23W3.js.map} +0 -0
  218. /package/dist/chunks/{dist-T6QDOXHW.js.map → dist-T2N57REG.js.map} +0 -0
  219. /package/dist/chunks/{dist-B4YMSACL.js.map → dist-VJC5RCYZ.js.map} +0 -0
  220. /package/dist/chunks/{dist-THRSTILU.js.map → dist-WO56PFGZ.js.map} +0 -0
  221. /package/dist/chunks/{doctor-LJTFZVNL.js.map → doctor-HXKU6QKJ.js.map} +0 -0
  222. /package/dist/chunks/{drain-FZ7QVFJ5.js.map → drain-MLRRMEGK.js.map} +0 -0
  223. /package/dist/chunks/{eval-STWOVX3N.js.map → eval-ECOECG74.js.map} +0 -0
  224. /package/dist/chunks/{exec-EWHE65KQ.js.map → exec-JLB6F5ZR.js.map} +0 -0
  225. /package/dist/chunks/{home-GKHHL5OL.js.map → home-G65CC45B.js.map} +0 -0
  226. /package/dist/chunks/{host-queries-D3VSQE6Z.js.map → host-queries-7LKGEBO5.js.map} +0 -0
  227. /package/dist/chunks/{learn-N3NKUI4W.js.map → learn-NRY6X2K6.js.map} +0 -0
  228. /package/dist/chunks/{learn-builtin-OZQUS64D.js.map → learn-builtin-QOM4KLT2.js.map} +0 -0
  229. /package/dist/chunks/{lifecycle-MRG5PYDG.js.map → lifecycle-BI2PMV4Q.js.map} +0 -0
  230. /package/dist/chunks/{list-X5V5SGOY.js.map → list-QTWALT6F.js.map} +0 -0
  231. /package/dist/chunks/{login-IXB52EFK.js.map → login-7LJG7D3F.js.map} +0 -0
  232. /package/dist/chunks/{logs-BBC3W6H5.js.map → logs-UGMCEFAZ.js.map} +0 -0
  233. /package/dist/chunks/{mcp-UEQPXI7K.js.map → mcp-KOZOXU6J.js.map} +0 -0
  234. /package/dist/chunks/{message-command-PXMP4IC4.js.map → message-command-7B5OFSGL.js.map} +0 -0
  235. /package/dist/chunks/{operator-tools-OZCXJX23.js.map → operator-tools-PWBZHKXO.js.map} +0 -0
  236. /package/dist/chunks/{output-schema-OKJHMA22.js.map → output-schema-QPHXNRKI.js.map} +0 -0
  237. /package/dist/chunks/{pal-COYTNDHQ.js.map → pal-XSD45IR6.js.map} +0 -0
  238. /package/dist/chunks/{providers-56OCKVO4.js.map → providers-ULPGYRWC.js.map} +0 -0
  239. /package/dist/chunks/{resident-2XJYIQOD.js.map → resident-NY7XSEK7.js.map} +0 -0
  240. /package/dist/chunks/{resume-OKFXVP4R.js.map → resume-4FV66TEK.js.map} +0 -0
  241. /package/dist/chunks/{resume-command-EIDWBG7D.js.map → resume-command-DLOW7MYW.js.map} +0 -0
  242. /package/dist/chunks/{schedule-SJ36DUQY.js.map → schedule-QR7JOA4F.js.map} +0 -0
  243. /package/dist/chunks/{service-FEZAPVUE.js.map → service-CLLR5VUD.js.map} +0 -0
  244. /package/dist/chunks/{session-step-Z53LX627.js.map → session-step-IEMT6LRR.js.map} +0 -0
  245. /package/dist/chunks/{skills-CXLLO5VH.js.map → skills-OZZLTH6P.js.map} +0 -0
  246. /package/dist/chunks/{state-QZBFM4HR.js.map → state-EROTPJRH.js.map} +0 -0
  247. /package/dist/chunks/{store-7TGN2BZW.js.map → store-C24DXKO4.js.map} +0 -0
  248. /package/dist/chunks/{store-SFATKTMK.js.map → store-ROEYUKBM.js.map} +0 -0
  249. /package/dist/chunks/{store-T76GFLGS.js.map → store-VDQRT2KF.js.map} +0 -0
  250. /package/dist/chunks/{upgrade-U3AHBHY3.js.map → upgrade-ZRQZD2N2.js.map} +0 -0
  251. /package/dist/chunks/{worktree-LU7NNZQZ.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-FDTTJKE2.js";
8
+ } from "./chunk-WYUJ4USW.js";
9
9
  import {
10
10
  reportCrash
11
- } from "./chunk-N6YMEARB.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-LURD5LEU.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-I7T3E2GZ.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-CEBLRMD4.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-SFOKT7BD.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-WYH6NXPA.js";
52
+ } from "./chunk-RI57PEYF.js";
53
53
  import {
54
54
  formatResumeShellCommand,
55
55
  parkedRunWords,
56
56
  resumeCommand
57
- } from "./chunk-XI4FSVO4.js";
57
+ } from "./chunk-IBUFD2HH.js";
58
58
  import {
59
59
  appendHistory,
60
60
  nextFireOf,
61
61
  readHistory,
62
62
  readState
63
- } from "./chunk-NN67WN5F.js";
64
- import "./chunk-LKVNTESX.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-6W42AIQG.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-TX3FNXAO.js";
124
+ } from "./chunk-YAOKLAUU.js";
125
125
  import "./chunk-TBIX6JRE.js";
126
126
  import {
127
127
  deleteUserConfigValue,
128
128
  setUserConfigValue
129
- } from "./chunk-2U3AGHA2.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-A3NXWBMA.js";
151
+ } from "./chunk-Y37JJJVY.js";
152
152
  import {
153
153
  tuiPalDefinition,
154
154
  tuiPalEnvironment,
155
155
  tuiPalOwner,
156
156
  tuiPalPreferences
157
- } from "./chunk-74E5AVCZ.js";
158
- import "./chunk-KJBANDDG.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,
@@ -185,6 +184,7 @@ import {
185
184
  builtinToolPresenter,
186
185
  clipText,
187
186
  combineBatches,
187
+ compactResultLine,
188
188
  compactionSummaryLines,
189
189
  connectorToolLabel,
190
190
  createAgentSession,
@@ -198,11 +198,13 @@ import {
198
198
  diffViewRows,
199
199
  discoverAgentDefinitions,
200
200
  displayPath as displayPath2,
201
+ estimateHistoryTokens,
201
202
  foldOp,
202
203
  groupSegments,
203
204
  groupText,
204
205
  hiddenLinesHint,
205
206
  hintRows,
207
+ isSessionPlanPath,
206
208
  liveBatches,
207
209
  mergeGroups,
208
210
  modelListingCause,
@@ -233,15 +235,15 @@ import {
233
235
  webLiveStatus,
234
236
  webSettledLine,
235
237
  withDebugDetail
236
- } from "./chunk-5UQSACPK.js";
238
+ } from "./chunk-DTNJTMWP.js";
237
239
  import {
238
240
  openManagedWorktrees,
239
241
  worktreeOpenHint
240
- } from "./chunk-3ZB55MHY.js";
242
+ } from "./chunk-QWFD2LFU.js";
241
243
  import {
242
244
  describeBrowserStatus
243
245
  } from "./chunk-WHODOMXA.js";
244
- import "./chunk-5TXHYHGI.js";
246
+ import "./chunk-XSAS6TS2.js";
245
247
  import {
246
248
  SAVE_SKILL_TOOL_NAME,
247
249
  SKILL_CREATOR_SKILL,
@@ -265,24 +267,24 @@ import {
265
267
  settledElapsed,
266
268
  theme,
267
269
  tokenColor
268
- } from "./chunk-Z2EACB4F.js";
270
+ } from "./chunk-PWGJB2WA.js";
269
271
  import {
270
272
  describePlainInterruption,
271
273
  describeProviderWait,
272
274
  describeProviderWaitClock
273
- } from "./chunk-LQ6IIEFT.js";
274
- import "./chunk-LXGJMPVM.js";
275
- import "./chunk-VQTWIVVA.js";
276
- import "./chunk-GMAVUBKY.js";
275
+ } from "./chunk-VD4D37MT.js";
276
+ import "./chunk-IMFIQJM6.js";
277
+ import "./chunk-O3CIRAYD.js";
278
+ import "./chunk-AGRFKHS2.js";
277
279
  import {
278
280
  openInBrowser
279
- } from "./chunk-ZA6AX5U4.js";
281
+ } from "./chunk-F2UUHEPY.js";
280
282
  import "./chunk-NUGPLXVK.js";
281
283
  import {
282
284
  beginCodexDeviceLogin,
283
285
  beginSubscriptionLogin,
284
286
  parsePastedInput
285
- } from "./chunk-XQUBSIWB.js";
287
+ } from "./chunk-PXEHKMLO.js";
286
288
  import {
287
289
  NO_SKILLS_FOUND,
288
290
  composeSkillsPrompt,
@@ -290,13 +292,13 @@ import {
290
292
  loadSkillBody,
291
293
  renderSkillRoster,
292
294
  skillTierLabel
293
- } from "./chunk-MJMA5OHV.js";
294
- import "./chunk-SK5SRMCT.js";
295
- import "./chunk-FIJIJBVB.js";
295
+ } from "./chunk-RPKRLR3O.js";
296
+ import "./chunk-MSKJK6NZ.js";
297
+ import "./chunk-YBOKKRHB.js";
296
298
  import {
297
299
  claimPalConversation,
298
300
  listPalConversations
299
- } from "./chunk-TFJNH7ID.js";
301
+ } from "./chunk-QYA34YM5.js";
300
302
  import "./chunk-ZWA2JRJV.js";
301
303
  import {
302
304
  pinTrustedProjectPath,
@@ -317,12 +319,12 @@ import {
317
319
  loadConfigWithProvenance,
318
320
  readPermissionLayers,
319
321
  resolveComposerTriggers
320
- } from "./chunk-YUCU537D.js";
322
+ } from "./chunk-HWAPKOAW.js";
321
323
  import "./chunk-XSCT3DLE.js";
322
324
  import {
323
325
  THEME_CHOICES,
324
326
  formatConfigSource
325
- } from "./chunk-IN62T4C7.js";
327
+ } from "./chunk-CN6EFAK5.js";
326
328
  import {
327
329
  displayPath,
328
330
  formatSize,
@@ -349,7 +351,7 @@ import {
349
351
  writeJsonAtomic
350
352
  } from "./chunk-OEW7CJKK.js";
351
353
  import "./chunk-HE7WUOX2.js";
352
- import "./chunk-56M5MQ4J.js";
354
+ import "./chunk-DAUWDTZI.js";
353
355
  import {
354
356
  EXIT_INTERNAL_ERROR
355
357
  } from "./chunk-Y7B67G22.js";
@@ -367,7 +369,7 @@ import {
367
369
  primaryProvider,
368
370
  signedInSubscriptionProviders,
369
371
  writePreferences
370
- } from "./chunk-5IUMQ3HV.js";
372
+ } from "./chunk-3ZMECJLN.js";
371
373
  import {
372
374
  ALL_PROVIDER_IDS,
373
375
  PROVIDER_REGISTRY,
@@ -377,22 +379,22 @@ import {
377
379
  } from "./chunk-6LLJQ3KY.js";
378
380
  import {
379
381
  applyProviderFlags
380
- } from "./chunk-33NYEJRI.js";
382
+ } from "./chunk-TZDYMWYP.js";
381
383
  import "./chunk-XEUQN4JC.js";
382
384
  import {
383
385
  PAUSED_TURN_LINES,
384
386
  currentTimeLine,
385
387
  describeTurnStop,
386
388
  handoffContinuationNote
387
- } from "./chunk-JDD4EWD6.js";
389
+ } from "./chunk-TSKCIC5T.js";
388
390
  import {
389
391
  autoAvailable,
390
392
  nextCycleMode,
391
393
  permissionModeDescription,
392
394
  permissionModeLabel,
393
395
  permissionModeName
394
- } from "./chunk-L6QWM6JH.js";
395
- import "./chunk-F3MJOWFD.js";
396
+ } from "./chunk-UHDKUVR5.js";
397
+ import "./chunk-5L7ZQ37R.js";
396
398
  import {
397
399
  expandTabs,
398
400
  terminalDisplayText
@@ -419,22 +421,22 @@ import {
419
421
  titlesOf,
420
422
  typedTextOf,
421
423
  unarchiveConversation
422
- } from "./chunk-A6YM5FG3.js";
423
- import "./chunk-PPFEI5JA.js";
424
+ } from "./chunk-ZPNX25RU.js";
425
+ import "./chunk-Z2WGX7UM.js";
424
426
  import "./chunk-H6B6AROX.js";
425
- import "./chunk-ZNSLNHYH.js";
426
- import "./chunk-H56UWANP.js";
427
+ import "./chunk-L2MEW4AZ.js";
428
+ import "./chunk-5XWYY63Z.js";
427
429
  import {
428
430
  isTrusted,
429
431
  trustDir
430
- } from "./chunk-LJQKALFW.js";
432
+ } from "./chunk-KEKFOEEP.js";
431
433
  import "./chunk-LXB3S4IC.js";
432
- import "./chunk-VMF3FBAG.js";
434
+ import "./chunk-IBCA2WDM.js";
433
435
  import "./chunk-WMEZTDLT.js";
434
436
  import {
435
437
  contextLogging,
436
438
  installCliLogging
437
- } from "./chunk-DYV2522W.js";
439
+ } from "./chunk-N457UJQL.js";
438
440
  import {
439
441
  isFullWidth,
440
442
  isWide,
@@ -444,7 +446,7 @@ import {
444
446
  import "./chunk-OH6TB27S.js";
445
447
  import "./chunk-IE5XIE4W.js";
446
448
  import "./chunk-B73OIFL6.js";
447
- import "./chunk-ERRNULJ3.js";
449
+ import "./chunk-2Q6PBTPY.js";
448
450
  import "./chunk-JORONMD3.js";
449
451
  import {
450
452
  clearAllStoredCredentials,
@@ -458,10 +460,10 @@ import {
458
460
  readStoredSubscriptionCredential,
459
461
  restrictToOwner,
460
462
  writeStoredGeminiApiKey
461
- } from "./chunk-6C4J5CIK.js";
463
+ } from "./chunk-2LLNCAZS.js";
462
464
  import {
463
465
  namzuHomePath
464
- } from "./chunk-R4KW67FB.js";
466
+ } from "./chunk-4I5FGMVR.js";
465
467
  import {
466
468
  ACCEPT_EDITS_TOOLS,
467
469
  DECLINED_TOOL_CALL_FEEDBACK,
@@ -522,7 +524,7 @@ import {
522
524
  validateTimeZone,
523
525
  wrapUntrusted,
524
526
  writePeerRecord
525
- } from "./chunk-WJG5O4KK.js";
527
+ } from "./chunk-6FSVNUBA.js";
526
528
  import {
527
529
  __commonJS,
528
530
  __export,
@@ -34247,6 +34249,7 @@ __name(buildPeerTools, "buildPeerTools");
34247
34249
 
34248
34250
  // src/tui/permission-review.ts
34249
34251
  import { createHash as createHash2 } from "node:crypto";
34252
+ import { readFileSync as readFileSync2, statSync } from "node:fs";
34250
34253
  var MAX_REVIEW_VALUE_CHARS = 2e5;
34251
34254
  var REVIEW_ALLOCATION_BYTES = 1024 * 1024;
34252
34255
  var MAX_WORKFLOW_REVIEW_BYTES = 640 * 1024;
@@ -34646,7 +34649,7 @@ function summarizeKnownCall(name, input, context = {}) {
34646
34649
  }
34647
34650
  }
34648
34651
  if (name === "edit" && isRecord(input)) {
34649
- const summary2 = summarizeEdit(input);
34652
+ const summary2 = summarizeEdit(input, context);
34650
34653
  if (summary2) return summary2;
34651
34654
  }
34652
34655
  if (name === "write" && isRecord(input)) {
@@ -35009,7 +35012,7 @@ function diffLines(sign, lines) {
35009
35012
  return hidden > 0 ? [...shown, `${sign} \u2026 ${hidden} more line${hidden === 1 ? "" : "s"}`] : shown;
35010
35013
  }
35011
35014
  __name(diffLines, "diffLines");
35012
- function summarizeEdit(input) {
35015
+ function summarizeEdit(input, context = {}) {
35013
35016
  const allowed = /* @__PURE__ */ new Set([
35014
35017
  "path",
35015
35018
  "old_string",
@@ -35033,6 +35036,7 @@ function summarizeEdit(input) {
35033
35036
  const lines = [
35034
35037
  `${path} \xB7 ${input.edits.length} replacement${input.edits.length === 1 ? "" : "s"}`
35035
35038
  ];
35039
+ let disk = diskTextOf(context, path);
35036
35040
  for (const [index, edit] of input.edits.entries()) {
35037
35041
  if (!isRecord(edit) || typeof edit.old_string !== "string" || typeof edit.new_string !== "string") {
35038
35042
  return null;
@@ -35044,8 +35048,9 @@ function summarizeEdit(input) {
35044
35048
  return null;
35045
35049
  }
35046
35050
  lines.push(`@ ${index + 1}${edit.replace_all ? " \xB7 every occurrence" : ""}`);
35047
- lines.push(...diffLines("-", edit.old_string.split("\n")));
35048
- 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;
35049
35054
  }
35050
35055
  return { lines, complete: true };
35051
35056
  }
@@ -35062,16 +35067,76 @@ function summarizeEdit(input) {
35062
35067
  };
35063
35068
  }
35064
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
+ );
35065
35076
  return {
35066
35077
  lines: [
35067
35078
  `${path}${replaceAll2 ? " \xB7 every occurrence" : ""}`,
35068
- ...diffLines("-", oldText.value.split("\n")),
35069
- ...diffLines("+", newText.value.split("\n"))
35079
+ ...shown.notes,
35080
+ ...diffLines("-", shown.before),
35081
+ ...diffLines("+", shown.after)
35070
35082
  ],
35071
35083
  complete: true
35072
35084
  };
35073
35085
  }
35074
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");
35075
35140
  function pickString(input, name, alias) {
35076
35141
  const a = input[name];
35077
35142
  const b = input[alias];
@@ -38127,13 +38192,13 @@ function usage() {
38127
38192
  __name(usage, "usage");
38128
38193
 
38129
38194
  // src/integrations/trust/folder-grants.ts
38130
- import { readFileSync as readFileSync2 } from "node:fs";
38195
+ import { readFileSync as readFileSync3 } from "node:fs";
38131
38196
  import { resolve } from "node:path";
38132
38197
  var FILES = ["namzu.config.json", "namzu.config.local.json"];
38133
38198
  var MAX_SHOWN_GRANT_RULES = 8;
38134
38199
  function readObject(path) {
38135
38200
  try {
38136
- const parsed = JSON.parse(readFileSync2(path, "utf8"));
38201
+ const parsed = JSON.parse(readFileSync3(path, "utf8"));
38137
38202
  return parsed !== null && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : void 0;
38138
38203
  } catch {
38139
38204
  return void 0;
@@ -39968,7 +40033,7 @@ var import_react40 = __toESM(require_react(), 1);
39968
40033
 
39969
40034
  // src/integrations/clipboard/image.ts
39970
40035
  import { execFileSync as execFileSync2 } from "node:child_process";
39971
- import { readFileSync as readFileSync3, rmSync } from "node:fs";
40036
+ import { readFileSync as readFileSync4, rmSync } from "node:fs";
39972
40037
  import { tmpdir } from "node:os";
39973
40038
  import { platform as platform2 } from "node:os";
39974
40039
  import { join as join2 } from "node:path";
@@ -39979,7 +40044,7 @@ function readClipboardImage() {
39979
40044
  const file = join2(tmpdir(), `namzu-clip-${Date.now()}.png`);
39980
40045
  try {
39981
40046
  if (!saveClipboardImageTo(file)) return { kind: "empty" };
39982
- const buf = readFileSync3(file);
40047
+ const buf = readFileSync4(file);
39983
40048
  if (buf.length === 0) return { kind: "empty" };
39984
40049
  return { kind: "image", image: { data: buf.toString("base64"), mediaType: "image/png" } };
39985
40050
  } catch {
@@ -40072,7 +40137,7 @@ __name(nextQueuedHintEpisode, "nextQueuedHintEpisode");
40072
40137
 
40073
40138
  // src/tui/mentions.ts
40074
40139
  import { execFile as execFile2 } from "node:child_process";
40075
- 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";
40076
40141
  import { resolve as resolve2, sep } from "node:path";
40077
40142
  import { promisify } from "node:util";
40078
40143
  var PATH_CHARS = String.raw`\p{L}\p{N}\p{M}_\-./\\()[\]~:`;
@@ -40236,8 +40301,8 @@ function safeReadInCwd(cwd2, rel) {
40236
40301
  const root = realpathSync2(resolve2(cwd2));
40237
40302
  const abs = realpathSync2(resolve2(root, rel));
40238
40303
  if (abs !== root && !abs.startsWith(root + sep)) return null;
40239
- if (!statSync(abs).isFile()) return null;
40240
- return readFileSync4(abs, "utf8");
40304
+ if (!statSync2(abs).isFile()) return null;
40305
+ return readFileSync5(abs, "utf8");
40241
40306
  } catch {
40242
40307
  return null;
40243
40308
  }
@@ -45274,7 +45339,7 @@ function PlanApprovalOverlay({
45274
45339
  marginTop: 1,
45275
45340
  children: [
45276
45341
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text, { color: theme.accent.plan, bold: true, children: "Plan ready for review" }),
45277
- /* @__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) }),
45278
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)) }),
45279
45344
  paged ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Text, { color: theme.text.muted, children: [
45280
45345
  "rows ",
@@ -49200,7 +49265,7 @@ function toolEndRows(event, start, ctx) {
49200
49265
  ]);
49201
49266
  }
49202
49267
  if (event.declined) {
49203
- const refused = proposedBody(start?.proposed, ctx.cwd);
49268
+ const refused = start?.proposed?.kind === "edit" ? proposedBody(start.proposed, ctx.cwd) : void 0;
49204
49269
  return rows([
49205
49270
  {
49206
49271
  role: "tool",
@@ -49391,12 +49456,21 @@ function withTakenOverRow(rows, started) {
49391
49456
  }
49392
49457
  __name(withTakenOverRow, "withTakenOverRow");
49393
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
+
49394
49468
  // src/tui/schedule/host-commands.ts
49395
49469
  import { isAbsolute, relative, resolve as resolve3 } from "node:path";
49396
49470
 
49397
49471
  // src/tui/schedule/loop-host.ts
49398
49472
  import { randomBytes as randomBytes2 } from "node:crypto";
49399
- import { readFileSync as readFileSync5 } from "node:fs";
49473
+ import { readFileSync as readFileSync6 } from "node:fs";
49400
49474
  var MAX_LOOPS = 20;
49401
49475
  var LOOP_LIFETIME_MS = 7 * 24 * 60 * 60 * 1e3;
49402
49476
  function loopSpec(interval, now) {
@@ -49428,7 +49502,7 @@ var SessionLoopScheduler = class {
49428
49502
  this.#loops = [];
49429
49503
  if (!file) return;
49430
49504
  try {
49431
- const parsed = JSON.parse(readFileSync5(file, "utf8"));
49505
+ const parsed = JSON.parse(readFileSync6(file, "utf8"));
49432
49506
  if (parsed.kind === "session-loops" && Array.isArray(parsed.loops)) {
49433
49507
  const now = this.#now();
49434
49508
  this.#loops = parsed.loops.filter(
@@ -50191,7 +50265,7 @@ async function prepareScheduledResume(input) {
50191
50265
  __name(prepareScheduledResume, "prepareScheduledResume");
50192
50266
 
50193
50267
  // src/tui/schedule/startup.ts
50194
- import { readFileSync as readFileSync6 } from "node:fs";
50268
+ import { readFileSync as readFileSync7 } from "node:fs";
50195
50269
  import { join as join5 } from "node:path";
50196
50270
  function ago(ms) {
50197
50271
  if (ms < 36e5) return `${Math.max(1, Math.round(ms / 6e4))} min`;
@@ -50205,7 +50279,7 @@ function scheduleStartupLine(home, cwd2, now = Date.now()) {
50205
50279
  if (jobs.length === 0) return void 0;
50206
50280
  let since = now - 24 * 36e5;
50207
50281
  try {
50208
- const seen = JSON.parse(readFileSync6(paths.seen, "utf8"));
50282
+ const seen = JSON.parse(readFileSync7(paths.seen, "utf8"));
50209
50283
  if (seen.lastSummaryAt) since = Date.parse(seen.lastSummaryAt);
50210
50284
  } catch {
50211
50285
  }
@@ -50264,7 +50338,7 @@ function scheduleStartupLine(home, cwd2, now = Date.now()) {
50264
50338
  parts.push("Scheduled jobs exist but the scheduler is not installed \u2014 namzu schedule install");
50265
50339
  } else if (manifest) {
50266
50340
  try {
50267
- const beat = JSON.parse(readFileSync6(paths.heartbeat, "utf8"));
50341
+ const beat = JSON.parse(readFileSync7(paths.heartbeat, "utf8"));
50268
50342
  const age = beat.at ? now - Date.parse(beat.at) : Number.POSITIVE_INFINITY;
50269
50343
  if (age > 9e4)
50270
50344
  parts.push(
@@ -51308,7 +51382,7 @@ function setSkillSuggestions(on, opts = {}) {
51308
51382
  __name(setSkillSuggestions, "setSkillSuggestions");
51309
51383
 
51310
51384
  // src/tui/skills/suggestion-ledger.ts
51311
- import { mkdirSync, readFileSync as readFileSync7, renameSync, writeFileSync } from "node:fs";
51385
+ import { mkdirSync, readFileSync as readFileSync8, renameSync, writeFileSync } from "node:fs";
51312
51386
  import { dirname, join as join6 } from "node:path";
51313
51387
  var SUGGESTION_IGNORE_LIMIT = 3;
51314
51388
  var FRESH_LEDGER = { v: 1, unanswered: 0, stopped: false };
@@ -51318,7 +51392,7 @@ function suggestionLedgerPath(namzuHome) {
51318
51392
  __name(suggestionLedgerPath, "suggestionLedgerPath");
51319
51393
  function readSuggestionLedger(namzuHome) {
51320
51394
  try {
51321
- const raw = JSON.parse(readFileSync7(suggestionLedgerPath(namzuHome), "utf8"));
51395
+ const raw = JSON.parse(readFileSync8(suggestionLedgerPath(namzuHome), "utf8"));
51322
51396
  const unanswered = typeof raw.unanswered === "number" && Number.isInteger(raw.unanswered) && raw.unanswered >= 0 ? raw.unanswered : 0;
51323
51397
  return { v: 1, unanswered, stopped: raw.stopped === true };
51324
51398
  } catch {
@@ -57810,7 +57884,7 @@ ${blocks.join("\n\n")}`;
57810
57884
  if (others.length === 0) {
57811
57885
  pushMessage(
57812
57886
  "system",
57813
- 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 })
57814
57888
  );
57815
57889
  return;
57816
57890
  }
@@ -58816,6 +58890,7 @@ ${plain(err)}`
58816
58890
  const summary2 = buildPermissionSummary(review.text, {
58817
58891
  describeUiRef: /* @__PURE__ */ __name((ref) => reviewSessionRef.current?.describeComputerUseRef?.(ref), "describeUiRef"),
58818
58892
  fileExists: /* @__PURE__ */ __name((path) => existsSync2(resolve7(ctxRef.current.cwd, path)), "fileExists"),
58893
+ readText: /* @__PURE__ */ __name((path) => readReviewedFile(resolve7(ctxRef.current.cwd, path)), "readText"),
58819
58894
  workflowLimits: resolveWorkflowLimits(ctxRef.current.workflow),
58820
58895
  withheld: review.withheld
58821
58896
  });
@@ -58960,7 +59035,11 @@ ${plain(err)}`
58960
59035
  `Plan approved \xB7 ${permissionModeLabel(answer.mode)}`,
58961
59036
  false,
58962
59037
  "\u2713",
58963
- [`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
+ ]
58964
59043
  );
58965
59044
  } else if (answer.feedback) {
58966
59045
  pushMessage("system", `Changes asked for \xB7 ${answer.feedback}`);
@@ -61582,7 +61661,8 @@ ${plugins.map((plugin) => {
61582
61661
  setState("thinking");
61583
61662
  void (async () => {
61584
61663
  try {
61585
- const result = await session.compact(modelHistoryRef.current, slash.instructions);
61664
+ const historyBefore = modelHistoryRef.current;
61665
+ const result = await session.compact(historyBefore, slash.instructions);
61586
61666
  if (!result) {
61587
61667
  pushSystem("notice", NOTHING_TO_COMPACT_TEXT);
61588
61668
  return;
@@ -61594,13 +61674,18 @@ ${plugins.map((plugin) => {
61594
61674
  const keptTurns = result.messages.filter(
61595
61675
  (m) => m.role === "user" || m.role === "assistant"
61596
61676
  ).length;
61677
+ const resultLine = compactResultLine({
61678
+ shed: result.shed,
61679
+ tokensBefore: estimateHistoryTokens(historyBefore),
61680
+ tokensAfter: estimateHistoryTokens(result.messages)
61681
+ });
61597
61682
  resetTranscript();
61598
61683
  setMessages((prev) => {
61599
61684
  const kept = keepRecentRows(prev, keptTurns);
61600
61685
  const summaryRow = {
61601
61686
  id: `compact-${Date.now()}`,
61602
61687
  role: "system",
61603
- content: durable ? COMPACT_RESULT_TEXT : `${COMPACT_RESULT_TEXT}. ${COMPACT_NOT_SAVED_TEXT}`,
61688
+ content: durable ? resultLine : `${resultLine}. ${COMPACT_NOT_SAVED_TEXT}`,
61604
61689
  glyph: CLOSING_GLYPH,
61605
61690
  glyphColor: tokenColor("text.muted"),
61606
61691
  meta: COMPACT_RESULT_HINT,
@@ -64159,7 +64244,7 @@ __name(installFocusReporting, "installFocusReporting");
64159
64244
 
64160
64245
  // src/tui/hint-counts.ts
64161
64246
  import { randomUUID } from "node:crypto";
64162
- 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";
64163
64248
  import { dirname as dirname2, join as join8 } from "node:path";
64164
64249
  var FILE_MODE = 384;
64165
64250
  var DIR_MODE = 448;
@@ -64169,7 +64254,7 @@ function hintCountsPath(home) {
64169
64254
  __name(hintCountsPath, "hintCountsPath");
64170
64255
  function readAll(path) {
64171
64256
  try {
64172
- const parsed = JSON.parse(readFileSync8(path, "utf8"));
64257
+ const parsed = JSON.parse(readFileSync9(path, "utf8"));
64173
64258
  if (typeof parsed !== "object" || parsed === null) return {};
64174
64259
  const counts2 = {};
64175
64260
  for (const [key, value] of Object.entries(parsed)) {
@@ -64328,7 +64413,7 @@ __name(askTerminal, "askTerminal");
64328
64413
 
64329
64414
  // src/tui/tip-history.ts
64330
64415
  import { randomUUID as randomUUID2 } from "node:crypto";
64331
- 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";
64332
64417
  import { dirname as dirname3, join as join9 } from "node:path";
64333
64418
  var FILE_MODE2 = 384;
64334
64419
  var DIR_MODE2 = 448;
@@ -64343,7 +64428,7 @@ function wholeNumber(value) {
64343
64428
  __name(wholeNumber, "wholeNumber");
64344
64429
  function readTipHistory(path) {
64345
64430
  try {
64346
- const parsed = JSON.parse(readFileSync9(path, "utf8"));
64431
+ const parsed = JSON.parse(readFileSync10(path, "utf8"));
64347
64432
  if (typeof parsed !== "object" || parsed === null) return EMPTY_TIP_HISTORY;
64348
64433
  const raw = parsed;
64349
64434
  const shown = {};
@@ -64571,4 +64656,4 @@ react/cjs/react-jsx-runtime.development.js:
64571
64656
  * LICENSE file in the root directory of this source tree.
64572
64657
  *)
64573
64658
  */
64574
- //# sourceMappingURL=tui-ZHDQMAUW.js.map
64659
+ //# sourceMappingURL=tui-XBQCRSIJ.js.map