@namzu/cli 46.0.0 → 46.1.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 (293) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-5ZXUR5GH.js → acp-ITRXIGXK.js} +44 -44
  4. package/dist/chunks/{activity-command-4QKIXQPB.js → activity-command-JNZGEUZA.js} +12 -12
  5. package/dist/chunks/{add-B474QOK4.js → add-DOZHWSWI.js} +19 -19
  6. package/dist/chunks/{agent-SMQ2BBDM.js → agent-5JRQL3S4.js} +34 -34
  7. package/dist/chunks/agent-session-4EY73CXK.js +68 -0
  8. package/dist/chunks/{archive-L7WQTXBM.js → archive-ZM35XSKE.js} +10 -10
  9. package/dist/chunks/{bin-main-AMF5RILI.js → bin-main-AX5XWAYL.js} +7 -7
  10. package/dist/chunks/{binding-BK2OFECR.js → binding-2J3XRGTV.js} +3 -3
  11. package/dist/chunks/{browser-YLVTETHS.js → browser-ZTE2GPUG.js} +6 -6
  12. package/dist/chunks/{chat-GHXHXRBS.js → chat-JTMYOBA4.js} +15 -15
  13. package/dist/chunks/{chunk-RHCM5ITV.js → chunk-2DMSDS4P.js} +4 -4
  14. package/dist/chunks/{chunk-BC5U2O3U.js → chunk-2U4JYS5G.js} +2 -2
  15. package/dist/chunks/{chunk-RYINGHOL.js → chunk-4B5FTAWO.js} +3 -3
  16. package/dist/chunks/{chunk-R73BAOYH.js → chunk-4HRZKDBM.js} +2 -2
  17. package/dist/chunks/{chunk-VO7E5AOJ.js → chunk-525JOC3P.js} +32 -13
  18. package/dist/chunks/{chunk-VO7E5AOJ.js.map → chunk-525JOC3P.js.map} +1 -1
  19. package/dist/chunks/{chunk-YXB4G5XG.js → chunk-5AOJKWOF.js} +4 -4
  20. package/dist/chunks/{chunk-D67Z3SOZ.js → chunk-5FAZ4MUN.js} +3 -3
  21. package/dist/chunks/{chunk-7P74Y7MF.js → chunk-5IFRFROQ.js} +272 -39
  22. package/dist/chunks/chunk-5IFRFROQ.js.map +6 -0
  23. package/dist/chunks/{chunk-ZSDSGCEV.js → chunk-6P47EW5E.js} +3 -3
  24. package/dist/chunks/{chunk-CD7KTHBL.js → chunk-6UDNGHZ4.js} +6 -6
  25. package/dist/chunks/{chunk-H35T4PDE.js → chunk-75R4INRW.js} +5 -5
  26. package/dist/chunks/{chunk-DNQLIQJL.js → chunk-AGRTEIMU.js} +2 -2
  27. package/dist/chunks/{chunk-LDLSPRND.js → chunk-APHOA5CS.js} +2 -2
  28. package/dist/chunks/{chunk-GXRDCSW2.js → chunk-BVLHRE75.js} +3 -3
  29. package/dist/chunks/{chunk-N6S25FKE.js → chunk-CGCBVVQ4.js} +2 -2
  30. package/dist/chunks/{chunk-GGCYFP6B.js → chunk-D6BIHB5L.js} +3 -3
  31. package/dist/chunks/{chunk-JCV3EUNA.js → chunk-DY2CWVAO.js} +3 -3
  32. package/dist/chunks/{chunk-CQTPOMX5.js → chunk-E33VJKQY.js} +3 -3
  33. package/dist/chunks/{chunk-CCB4HWAV.js → chunk-F2C6HUP3.js} +3 -3
  34. package/dist/chunks/{chunk-BMJU7VA4.js → chunk-FP6K5R6O.js} +13 -13
  35. package/dist/chunks/{chunk-QQTSWCNX.js → chunk-G6FR3EVZ.js} +6 -6
  36. package/dist/chunks/{chunk-TMF3JLRJ.js → chunk-GE5TBMXR.js} +4 -4
  37. package/dist/chunks/{chunk-2MHY4E7B.js → chunk-GKKSP3UM.js} +3 -3
  38. package/dist/chunks/{chunk-UQLAXWYK.js → chunk-GVJFPVYS.js} +3 -3
  39. package/dist/chunks/{chunk-D2U7F6SU.js → chunk-GYVA2PSC.js} +4 -4
  40. package/dist/chunks/{chunk-HWN6CMEH.js → chunk-H2J6CJ7V.js} +2 -2
  41. package/dist/chunks/{chunk-G2TUF7LQ.js → chunk-HHTNSCVJ.js} +7 -7
  42. package/dist/chunks/{chunk-JBZOSWZY.js → chunk-I2I3IAEZ.js} +9 -9
  43. package/dist/chunks/{chunk-EUI3QHE3.js → chunk-I3D6NUZZ.js} +52 -9
  44. package/dist/chunks/chunk-I3D6NUZZ.js.map +6 -0
  45. package/dist/chunks/{chunk-OCAMALXW.js → chunk-I46H4EOM.js} +3 -3
  46. package/dist/chunks/{chunk-72FELSW2.js → chunk-I7L5TW6W.js} +3 -3
  47. package/dist/chunks/{chunk-FBFLJGCM.js → chunk-JBEWCBMC.js} +9 -9
  48. package/dist/chunks/{chunk-7332NEPY.js → chunk-K52HIR6C.js} +4 -4
  49. package/dist/chunks/{chunk-W6IKRYC6.js → chunk-K6OJ5K74.js} +2 -2
  50. package/dist/chunks/{chunk-RKEIT7F5.js → chunk-KJGWQ6NC.js} +9 -9
  51. package/dist/chunks/{chunk-DM6LW7PW.js → chunk-KYV5EKPS.js} +4 -4
  52. package/dist/chunks/{chunk-JYE54Z44.js → chunk-LPSFDEYX.js} +2 -2
  53. package/dist/chunks/{chunk-ELY6PBL5.js → chunk-MGIATWOY.js} +2 -2
  54. package/dist/chunks/{chunk-6R6VKSTU.js → chunk-MILB6YKG.js} +2 -2
  55. package/dist/chunks/{chunk-4H2WCTI5.js → chunk-MSKP7NPR.js} +2 -2
  56. package/dist/chunks/{chunk-F22Q4JVS.js → chunk-ND27BH3T.js} +2 -2
  57. package/dist/chunks/{chunk-EP55AZJY.js → chunk-NHE55VV7.js} +2 -2
  58. package/dist/chunks/{chunk-FDIVDFIS.js → chunk-NPS2VI2Z.js} +4 -4
  59. package/dist/chunks/{chunk-Q5H333GT.js → chunk-NX4IICIS.js} +2 -2
  60. package/dist/chunks/{chunk-MMO5PCBX.js → chunk-OGME4EGW.js} +2 -2
  61. package/dist/chunks/{chunk-M6YRX3LX.js → chunk-OJRTRJKG.js} +4 -4
  62. package/dist/chunks/{chunk-4AI7LTKU.js → chunk-OVXKKQSB.js} +3 -3
  63. package/dist/chunks/{chunk-4SQARQYZ.js → chunk-P4BZKF4J.js} +2 -2
  64. package/dist/chunks/{chunk-XGSYYMGM.js → chunk-P7IUXU5U.js} +3 -3
  65. package/dist/chunks/{chunk-46ZHBP74.js → chunk-PSVPIBOJ.js} +2 -2
  66. package/dist/chunks/{chunk-4PLSICMA.js → chunk-QC6NN5GF.js} +3 -3
  67. package/dist/chunks/{chunk-F6ZYLWF6.js → chunk-RJBG3BJ3.js} +2 -2
  68. package/dist/chunks/{chunk-JOD27P4P.js → chunk-S6QORTKD.js} +4 -4
  69. package/dist/chunks/{chunk-TCKVVNCP.js → chunk-SEL7JXR6.js} +5 -5
  70. package/dist/chunks/{chunk-24ILXLP2.js → chunk-SOJ25KGD.js} +2 -2
  71. package/dist/chunks/{chunk-2PJKTYSR.js → chunk-UHZQBZ5O.js} +12 -12
  72. package/dist/chunks/{chunk-45FYQTIH.js → chunk-VNSKI2LV.js} +2 -2
  73. package/dist/chunks/{chunk-KOLICEUP.js → chunk-W5OXVXRU.js} +3 -3
  74. package/dist/chunks/{chunk-BJ7SNE3W.js → chunk-WRVQTHUU.js} +4 -4
  75. package/dist/chunks/{chunk-WDFAGCU4.js → chunk-WSIOZBRG.js} +5 -5
  76. package/dist/chunks/{chunk-VTPKOHBU.js → chunk-WUVCXHP3.js} +3 -3
  77. package/dist/chunks/{chunk-UICXA3H3.js → chunk-XB24BZLK.js} +3 -3
  78. package/dist/chunks/{chunk-I3S2AIBR.js → chunk-XMG4R3UA.js} +2 -2
  79. package/dist/chunks/{chunk-UPUMEHWL.js → chunk-XMYADRKW.js} +2 -2
  80. package/dist/chunks/{chunk-VBUTFNWC.js → chunk-XQIW6VVN.js} +32 -32
  81. package/dist/chunks/{chunk-M7IOSA2Y.js → chunk-Y4PRCFWU.js} +6 -6
  82. package/dist/chunks/{chunk-E42S7GJA.js → chunk-YKADLU4B.js} +2 -2
  83. package/dist/chunks/{chunk-WAE42XF2.js → chunk-YMJLZC5O.js} +2 -2
  84. package/dist/chunks/{chunk-W6K6WU6T.js → chunk-Z4GNYA6Y.js} +3 -3
  85. package/dist/chunks/{chunk-VBM25MCL.js → chunk-Z63R4LXP.js} +10 -10
  86. package/dist/chunks/{chunk-5XL6IUQV.js → chunk-Z77FS75T.js} +2 -2
  87. package/dist/chunks/{chunk-CSH2Z3GQ.js → chunk-ZGQRLKWT.js} +2 -2
  88. package/dist/chunks/{chunk-OENWLBRH.js → chunk-ZUZGGJZ7.js} +5 -5
  89. package/dist/chunks/{chunk-JNLUTIPH.js → chunk-ZXC266TK.js} +2 -2
  90. package/dist/chunks/{cli-runtime-XUIBKGY3.js → cli-runtime-MYGJQDLV.js} +9 -9
  91. package/dist/chunks/{commands-VOWZ7JPA.js → commands-H7ACXN6M.js} +5 -5
  92. package/dist/chunks/{crash-report-MQT3NDAJ.js → crash-report-UXY573JK.js} +6 -6
  93. package/dist/chunks/{dist-2KWSHVNL.js → dist-3EMEM65J.js} +2 -2
  94. package/dist/chunks/{dist-NFNCISVV.js → dist-4U5A2ZJ3.js} +2 -2
  95. package/dist/chunks/{dist-M6OK3A2K.js → dist-BELIUOB4.js} +2 -2
  96. package/dist/chunks/{dist-XQYE2WAT.js → dist-GIFREI24.js} +4 -2
  97. package/dist/chunks/{dist-TKYXH3O7.js → dist-JO4TVMUR.js} +2 -2
  98. package/dist/chunks/{dist-RBJ5QIOL.js → dist-NDIGDMQE.js} +2 -2
  99. package/dist/chunks/{dist-KWOOBVVP.js → dist-WHMEHTPL.js} +2 -2
  100. package/dist/chunks/{dist-COGCXSJV.js → dist-YYSHMORL.js} +2 -2
  101. package/dist/chunks/{doctor-5SF2RF2Y.js → doctor-U7WSOSUQ.js} +16 -16
  102. package/dist/chunks/{drain-SL3TTMGH.js → drain-DFKXW6IE.js} +9 -9
  103. package/dist/chunks/{entry-7LYIOFXC.js → entry-G2QJGWJH.js} +6 -6
  104. package/dist/chunks/{eval-OW2GBX2G.js → eval-534ZMILS.js} +2 -2
  105. package/dist/chunks/{exec-E2RTYPVQ.js → exec-HL6KDEJE.js} +33 -33
  106. package/dist/chunks/{home-G3AJNKID.js → home-JURWP3VY.js} +3 -3
  107. package/dist/chunks/{host-BPSH5SPC.js → host-PGJJZKUM.js} +10 -10
  108. package/dist/chunks/{host-queries-SIXI4MZR.js → host-queries-EGFTIVAT.js} +15 -15
  109. package/dist/chunks/{learn-YPXH5NU6.js → learn-OKGG5EW2.js} +11 -11
  110. package/dist/chunks/{learn-builtin-IVS2CZWI.js → learn-builtin-QJZUSSUU.js} +14 -14
  111. package/dist/chunks/{lifecycle-37URVN6Z.js → lifecycle-V3UVDMXA.js} +28 -28
  112. package/dist/chunks/{list-2RDN63IG.js → list-XCSUL6G4.js} +10 -10
  113. package/dist/chunks/{live-CZWD5MR2.js → live-QZTEITO7.js} +15 -15
  114. package/dist/chunks/{login-GEBNZSDA.js → login-6Y4ZLEFC.js} +13 -13
  115. package/dist/chunks/{logs-7K26HXRW.js → logs-DJXPRXBK.js} +4 -4
  116. package/dist/chunks/{mcp-UW5WNXKQ.js → mcp-XNF5FADI.js} +20 -20
  117. package/dist/chunks/{message-command-HHDPTRD6.js → message-command-H3EPW3MS.js} +40 -40
  118. package/dist/chunks/{open-7F3NMNDC.js → open-SNBBOH2M.js} +8 -8
  119. package/dist/chunks/{operator-tools-7CFPYPHH.js → operator-tools-7S4ALYYW.js} +13 -13
  120. package/dist/chunks/{output-schema-RB3V7H5F.js → output-schema-77F5CGV7.js} +3 -3
  121. package/dist/chunks/{pal-NR7EFZF4.js → pal-ZXCYQSYW.js} +16 -16
  122. package/dist/chunks/{peers-WEDGC5TJ.js → peers-PHMKJFID.js} +6 -6
  123. package/dist/chunks/{providers-P66IE2XJ.js → providers-OKTI6G5L.js} +11 -11
  124. package/dist/chunks/{pty-SYECWWMO.js → pty-KFNOSO7X.js} +3 -3
  125. package/dist/chunks/resume-ROMJSMZZ.js +23 -0
  126. package/dist/chunks/{resume-command-5LCSSBSL.js → resume-command-U6RCVZ2R.js} +4 -4
  127. package/dist/chunks/{schedule-NFUITZ3H.js → schedule-Q4VMZ43Y.js} +8 -8
  128. package/dist/chunks/{service-6DQWIWFM.js → service-BEAEWKMI.js} +28 -28
  129. package/dist/chunks/{skills-LCORW5FY.js → skills-RAVLWF4L.js} +8 -8
  130. package/dist/chunks/{start-check-B7NPQIIU.js → start-check-AZMTDSWM.js} +2 -2
  131. package/dist/chunks/{startup-failure-JIDCV37L.js → startup-failure-TGJKOM6D.js} +2 -2
  132. package/dist/chunks/{state-ZHFQGLQY.js → state-SKGHVQR7.js} +2 -2
  133. package/dist/chunks/{store-RRCIN6WM.js → store-QGUYVO7G.js} +3 -3
  134. package/dist/chunks/{store-3NYZW7WZ.js → store-UVGMMJUS.js} +10 -10
  135. package/dist/chunks/{store-SBZWHUPZ.js → store-ZH6ORGCI.js} +6 -6
  136. package/dist/chunks/{store-TQHJVB24.js → store-ZO7J3SZP.js} +4 -4
  137. package/dist/chunks/{tui-CSH5HGV7.js → tui-P4LC4FMM.js} +471 -99
  138. package/dist/chunks/tui-P4LC4FMM.js.map +6 -0
  139. package/dist/chunks/{upgrade-2VMWM34N.js → upgrade-JB72VMOW.js} +7 -7
  140. package/dist/chunks/{workspaces-4CEZH24I.js → workspaces-YJMPMYMZ.js} +16 -16
  141. package/dist/chunks/{worktree-TIXBKXQF.js → worktree-S24I7RFM.js} +12 -12
  142. package/dist/index.js +19 -19
  143. package/dist/memory/manage.d.ts +74 -0
  144. package/dist/memory/manage.d.ts.map +1 -0
  145. package/dist/memory/presentation.d.ts +1 -0
  146. package/dist/memory/presentation.d.ts.map +1 -1
  147. package/dist/tui/App.d.ts +15 -0
  148. package/dist/tui/App.d.ts.map +1 -1
  149. package/dist/tui/agent.d.ts +33 -0
  150. package/dist/tui/agent.d.ts.map +1 -1
  151. package/dist/tui/memory-used-row.d.ts +21 -0
  152. package/dist/tui/memory-used-row.d.ts.map +1 -0
  153. package/dist/tui/restored-rows.d.ts +9 -0
  154. package/dist/tui/restored-rows.d.ts.map +1 -1
  155. package/dist/tui/slashCommands.d.ts +5 -0
  156. package/dist/tui/slashCommands.d.ts.map +1 -1
  157. package/package.json +5 -5
  158. package/dist/chunks/agent-session-QQAQHEBX.js +0 -68
  159. package/dist/chunks/chunk-7P74Y7MF.js.map +0 -6
  160. package/dist/chunks/chunk-EUI3QHE3.js.map +0 -6
  161. package/dist/chunks/resume-UZHV45EH.js +0 -23
  162. package/dist/chunks/tui-CSH5HGV7.js.map +0 -6
  163. /package/dist/chunks/{acp-5ZXUR5GH.js.map → acp-ITRXIGXK.js.map} +0 -0
  164. /package/dist/chunks/{activity-command-4QKIXQPB.js.map → activity-command-JNZGEUZA.js.map} +0 -0
  165. /package/dist/chunks/{add-B474QOK4.js.map → add-DOZHWSWI.js.map} +0 -0
  166. /package/dist/chunks/{agent-SMQ2BBDM.js.map → agent-5JRQL3S4.js.map} +0 -0
  167. /package/dist/chunks/{agent-session-QQAQHEBX.js.map → agent-session-4EY73CXK.js.map} +0 -0
  168. /package/dist/chunks/{archive-L7WQTXBM.js.map → archive-ZM35XSKE.js.map} +0 -0
  169. /package/dist/chunks/{bin-main-AMF5RILI.js.map → bin-main-AX5XWAYL.js.map} +0 -0
  170. /package/dist/chunks/{binding-BK2OFECR.js.map → binding-2J3XRGTV.js.map} +0 -0
  171. /package/dist/chunks/{browser-YLVTETHS.js.map → browser-ZTE2GPUG.js.map} +0 -0
  172. /package/dist/chunks/{chat-GHXHXRBS.js.map → chat-JTMYOBA4.js.map} +0 -0
  173. /package/dist/chunks/{chunk-RHCM5ITV.js.map → chunk-2DMSDS4P.js.map} +0 -0
  174. /package/dist/chunks/{chunk-BC5U2O3U.js.map → chunk-2U4JYS5G.js.map} +0 -0
  175. /package/dist/chunks/{chunk-RYINGHOL.js.map → chunk-4B5FTAWO.js.map} +0 -0
  176. /package/dist/chunks/{chunk-R73BAOYH.js.map → chunk-4HRZKDBM.js.map} +0 -0
  177. /package/dist/chunks/{chunk-YXB4G5XG.js.map → chunk-5AOJKWOF.js.map} +0 -0
  178. /package/dist/chunks/{chunk-D67Z3SOZ.js.map → chunk-5FAZ4MUN.js.map} +0 -0
  179. /package/dist/chunks/{chunk-ZSDSGCEV.js.map → chunk-6P47EW5E.js.map} +0 -0
  180. /package/dist/chunks/{chunk-CD7KTHBL.js.map → chunk-6UDNGHZ4.js.map} +0 -0
  181. /package/dist/chunks/{chunk-H35T4PDE.js.map → chunk-75R4INRW.js.map} +0 -0
  182. /package/dist/chunks/{chunk-DNQLIQJL.js.map → chunk-AGRTEIMU.js.map} +0 -0
  183. /package/dist/chunks/{chunk-LDLSPRND.js.map → chunk-APHOA5CS.js.map} +0 -0
  184. /package/dist/chunks/{chunk-GXRDCSW2.js.map → chunk-BVLHRE75.js.map} +0 -0
  185. /package/dist/chunks/{chunk-N6S25FKE.js.map → chunk-CGCBVVQ4.js.map} +0 -0
  186. /package/dist/chunks/{chunk-GGCYFP6B.js.map → chunk-D6BIHB5L.js.map} +0 -0
  187. /package/dist/chunks/{chunk-JCV3EUNA.js.map → chunk-DY2CWVAO.js.map} +0 -0
  188. /package/dist/chunks/{chunk-CQTPOMX5.js.map → chunk-E33VJKQY.js.map} +0 -0
  189. /package/dist/chunks/{chunk-CCB4HWAV.js.map → chunk-F2C6HUP3.js.map} +0 -0
  190. /package/dist/chunks/{chunk-BMJU7VA4.js.map → chunk-FP6K5R6O.js.map} +0 -0
  191. /package/dist/chunks/{chunk-QQTSWCNX.js.map → chunk-G6FR3EVZ.js.map} +0 -0
  192. /package/dist/chunks/{chunk-TMF3JLRJ.js.map → chunk-GE5TBMXR.js.map} +0 -0
  193. /package/dist/chunks/{chunk-2MHY4E7B.js.map → chunk-GKKSP3UM.js.map} +0 -0
  194. /package/dist/chunks/{chunk-UQLAXWYK.js.map → chunk-GVJFPVYS.js.map} +0 -0
  195. /package/dist/chunks/{chunk-D2U7F6SU.js.map → chunk-GYVA2PSC.js.map} +0 -0
  196. /package/dist/chunks/{chunk-HWN6CMEH.js.map → chunk-H2J6CJ7V.js.map} +0 -0
  197. /package/dist/chunks/{chunk-G2TUF7LQ.js.map → chunk-HHTNSCVJ.js.map} +0 -0
  198. /package/dist/chunks/{chunk-JBZOSWZY.js.map → chunk-I2I3IAEZ.js.map} +0 -0
  199. /package/dist/chunks/{chunk-OCAMALXW.js.map → chunk-I46H4EOM.js.map} +0 -0
  200. /package/dist/chunks/{chunk-72FELSW2.js.map → chunk-I7L5TW6W.js.map} +0 -0
  201. /package/dist/chunks/{chunk-FBFLJGCM.js.map → chunk-JBEWCBMC.js.map} +0 -0
  202. /package/dist/chunks/{chunk-7332NEPY.js.map → chunk-K52HIR6C.js.map} +0 -0
  203. /package/dist/chunks/{chunk-W6IKRYC6.js.map → chunk-K6OJ5K74.js.map} +0 -0
  204. /package/dist/chunks/{chunk-RKEIT7F5.js.map → chunk-KJGWQ6NC.js.map} +0 -0
  205. /package/dist/chunks/{chunk-DM6LW7PW.js.map → chunk-KYV5EKPS.js.map} +0 -0
  206. /package/dist/chunks/{chunk-JYE54Z44.js.map → chunk-LPSFDEYX.js.map} +0 -0
  207. /package/dist/chunks/{chunk-ELY6PBL5.js.map → chunk-MGIATWOY.js.map} +0 -0
  208. /package/dist/chunks/{chunk-6R6VKSTU.js.map → chunk-MILB6YKG.js.map} +0 -0
  209. /package/dist/chunks/{chunk-4H2WCTI5.js.map → chunk-MSKP7NPR.js.map} +0 -0
  210. /package/dist/chunks/{chunk-F22Q4JVS.js.map → chunk-ND27BH3T.js.map} +0 -0
  211. /package/dist/chunks/{chunk-EP55AZJY.js.map → chunk-NHE55VV7.js.map} +0 -0
  212. /package/dist/chunks/{chunk-FDIVDFIS.js.map → chunk-NPS2VI2Z.js.map} +0 -0
  213. /package/dist/chunks/{chunk-Q5H333GT.js.map → chunk-NX4IICIS.js.map} +0 -0
  214. /package/dist/chunks/{chunk-MMO5PCBX.js.map → chunk-OGME4EGW.js.map} +0 -0
  215. /package/dist/chunks/{chunk-M6YRX3LX.js.map → chunk-OJRTRJKG.js.map} +0 -0
  216. /package/dist/chunks/{chunk-4AI7LTKU.js.map → chunk-OVXKKQSB.js.map} +0 -0
  217. /package/dist/chunks/{chunk-4SQARQYZ.js.map → chunk-P4BZKF4J.js.map} +0 -0
  218. /package/dist/chunks/{chunk-XGSYYMGM.js.map → chunk-P7IUXU5U.js.map} +0 -0
  219. /package/dist/chunks/{chunk-46ZHBP74.js.map → chunk-PSVPIBOJ.js.map} +0 -0
  220. /package/dist/chunks/{chunk-4PLSICMA.js.map → chunk-QC6NN5GF.js.map} +0 -0
  221. /package/dist/chunks/{chunk-F6ZYLWF6.js.map → chunk-RJBG3BJ3.js.map} +0 -0
  222. /package/dist/chunks/{chunk-JOD27P4P.js.map → chunk-S6QORTKD.js.map} +0 -0
  223. /package/dist/chunks/{chunk-TCKVVNCP.js.map → chunk-SEL7JXR6.js.map} +0 -0
  224. /package/dist/chunks/{chunk-24ILXLP2.js.map → chunk-SOJ25KGD.js.map} +0 -0
  225. /package/dist/chunks/{chunk-2PJKTYSR.js.map → chunk-UHZQBZ5O.js.map} +0 -0
  226. /package/dist/chunks/{chunk-45FYQTIH.js.map → chunk-VNSKI2LV.js.map} +0 -0
  227. /package/dist/chunks/{chunk-KOLICEUP.js.map → chunk-W5OXVXRU.js.map} +0 -0
  228. /package/dist/chunks/{chunk-BJ7SNE3W.js.map → chunk-WRVQTHUU.js.map} +0 -0
  229. /package/dist/chunks/{chunk-WDFAGCU4.js.map → chunk-WSIOZBRG.js.map} +0 -0
  230. /package/dist/chunks/{chunk-VTPKOHBU.js.map → chunk-WUVCXHP3.js.map} +0 -0
  231. /package/dist/chunks/{chunk-UICXA3H3.js.map → chunk-XB24BZLK.js.map} +0 -0
  232. /package/dist/chunks/{chunk-I3S2AIBR.js.map → chunk-XMG4R3UA.js.map} +0 -0
  233. /package/dist/chunks/{chunk-UPUMEHWL.js.map → chunk-XMYADRKW.js.map} +0 -0
  234. /package/dist/chunks/{chunk-VBUTFNWC.js.map → chunk-XQIW6VVN.js.map} +0 -0
  235. /package/dist/chunks/{chunk-M7IOSA2Y.js.map → chunk-Y4PRCFWU.js.map} +0 -0
  236. /package/dist/chunks/{chunk-E42S7GJA.js.map → chunk-YKADLU4B.js.map} +0 -0
  237. /package/dist/chunks/{chunk-WAE42XF2.js.map → chunk-YMJLZC5O.js.map} +0 -0
  238. /package/dist/chunks/{chunk-W6K6WU6T.js.map → chunk-Z4GNYA6Y.js.map} +0 -0
  239. /package/dist/chunks/{chunk-VBM25MCL.js.map → chunk-Z63R4LXP.js.map} +0 -0
  240. /package/dist/chunks/{chunk-5XL6IUQV.js.map → chunk-Z77FS75T.js.map} +0 -0
  241. /package/dist/chunks/{chunk-CSH2Z3GQ.js.map → chunk-ZGQRLKWT.js.map} +0 -0
  242. /package/dist/chunks/{chunk-OENWLBRH.js.map → chunk-ZUZGGJZ7.js.map} +0 -0
  243. /package/dist/chunks/{chunk-JNLUTIPH.js.map → chunk-ZXC266TK.js.map} +0 -0
  244. /package/dist/chunks/{cli-runtime-XUIBKGY3.js.map → cli-runtime-MYGJQDLV.js.map} +0 -0
  245. /package/dist/chunks/{commands-VOWZ7JPA.js.map → commands-H7ACXN6M.js.map} +0 -0
  246. /package/dist/chunks/{crash-report-MQT3NDAJ.js.map → crash-report-UXY573JK.js.map} +0 -0
  247. /package/dist/chunks/{dist-2KWSHVNL.js.map → dist-3EMEM65J.js.map} +0 -0
  248. /package/dist/chunks/{dist-NFNCISVV.js.map → dist-4U5A2ZJ3.js.map} +0 -0
  249. /package/dist/chunks/{dist-M6OK3A2K.js.map → dist-BELIUOB4.js.map} +0 -0
  250. /package/dist/chunks/{dist-XQYE2WAT.js.map → dist-GIFREI24.js.map} +0 -0
  251. /package/dist/chunks/{dist-TKYXH3O7.js.map → dist-JO4TVMUR.js.map} +0 -0
  252. /package/dist/chunks/{dist-RBJ5QIOL.js.map → dist-NDIGDMQE.js.map} +0 -0
  253. /package/dist/chunks/{dist-KWOOBVVP.js.map → dist-WHMEHTPL.js.map} +0 -0
  254. /package/dist/chunks/{dist-COGCXSJV.js.map → dist-YYSHMORL.js.map} +0 -0
  255. /package/dist/chunks/{doctor-5SF2RF2Y.js.map → doctor-U7WSOSUQ.js.map} +0 -0
  256. /package/dist/chunks/{drain-SL3TTMGH.js.map → drain-DFKXW6IE.js.map} +0 -0
  257. /package/dist/chunks/{entry-7LYIOFXC.js.map → entry-G2QJGWJH.js.map} +0 -0
  258. /package/dist/chunks/{eval-OW2GBX2G.js.map → eval-534ZMILS.js.map} +0 -0
  259. /package/dist/chunks/{exec-E2RTYPVQ.js.map → exec-HL6KDEJE.js.map} +0 -0
  260. /package/dist/chunks/{home-G3AJNKID.js.map → home-JURWP3VY.js.map} +0 -0
  261. /package/dist/chunks/{host-BPSH5SPC.js.map → host-PGJJZKUM.js.map} +0 -0
  262. /package/dist/chunks/{host-queries-SIXI4MZR.js.map → host-queries-EGFTIVAT.js.map} +0 -0
  263. /package/dist/chunks/{learn-YPXH5NU6.js.map → learn-OKGG5EW2.js.map} +0 -0
  264. /package/dist/chunks/{learn-builtin-IVS2CZWI.js.map → learn-builtin-QJZUSSUU.js.map} +0 -0
  265. /package/dist/chunks/{lifecycle-37URVN6Z.js.map → lifecycle-V3UVDMXA.js.map} +0 -0
  266. /package/dist/chunks/{list-2RDN63IG.js.map → list-XCSUL6G4.js.map} +0 -0
  267. /package/dist/chunks/{live-CZWD5MR2.js.map → live-QZTEITO7.js.map} +0 -0
  268. /package/dist/chunks/{login-GEBNZSDA.js.map → login-6Y4ZLEFC.js.map} +0 -0
  269. /package/dist/chunks/{logs-7K26HXRW.js.map → logs-DJXPRXBK.js.map} +0 -0
  270. /package/dist/chunks/{mcp-UW5WNXKQ.js.map → mcp-XNF5FADI.js.map} +0 -0
  271. /package/dist/chunks/{message-command-HHDPTRD6.js.map → message-command-H3EPW3MS.js.map} +0 -0
  272. /package/dist/chunks/{open-7F3NMNDC.js.map → open-SNBBOH2M.js.map} +0 -0
  273. /package/dist/chunks/{operator-tools-7CFPYPHH.js.map → operator-tools-7S4ALYYW.js.map} +0 -0
  274. /package/dist/chunks/{output-schema-RB3V7H5F.js.map → output-schema-77F5CGV7.js.map} +0 -0
  275. /package/dist/chunks/{pal-NR7EFZF4.js.map → pal-ZXCYQSYW.js.map} +0 -0
  276. /package/dist/chunks/{peers-WEDGC5TJ.js.map → peers-PHMKJFID.js.map} +0 -0
  277. /package/dist/chunks/{providers-P66IE2XJ.js.map → providers-OKTI6G5L.js.map} +0 -0
  278. /package/dist/chunks/{pty-SYECWWMO.js.map → pty-KFNOSO7X.js.map} +0 -0
  279. /package/dist/chunks/{resume-UZHV45EH.js.map → resume-ROMJSMZZ.js.map} +0 -0
  280. /package/dist/chunks/{resume-command-5LCSSBSL.js.map → resume-command-U6RCVZ2R.js.map} +0 -0
  281. /package/dist/chunks/{schedule-NFUITZ3H.js.map → schedule-Q4VMZ43Y.js.map} +0 -0
  282. /package/dist/chunks/{service-6DQWIWFM.js.map → service-BEAEWKMI.js.map} +0 -0
  283. /package/dist/chunks/{skills-LCORW5FY.js.map → skills-RAVLWF4L.js.map} +0 -0
  284. /package/dist/chunks/{start-check-B7NPQIIU.js.map → start-check-AZMTDSWM.js.map} +0 -0
  285. /package/dist/chunks/{startup-failure-JIDCV37L.js.map → startup-failure-TGJKOM6D.js.map} +0 -0
  286. /package/dist/chunks/{state-ZHFQGLQY.js.map → state-SKGHVQR7.js.map} +0 -0
  287. /package/dist/chunks/{store-3NYZW7WZ.js.map → store-QGUYVO7G.js.map} +0 -0
  288. /package/dist/chunks/{store-RRCIN6WM.js.map → store-UVGMMJUS.js.map} +0 -0
  289. /package/dist/chunks/{store-SBZWHUPZ.js.map → store-ZH6ORGCI.js.map} +0 -0
  290. /package/dist/chunks/{store-TQHJVB24.js.map → store-ZO7J3SZP.js.map} +0 -0
  291. /package/dist/chunks/{upgrade-2VMWM34N.js.map → upgrade-JB72VMOW.js.map} +0 -0
  292. /package/dist/chunks/{workspaces-4CEZH24I.js.map → workspaces-YJMPMYMZ.js.map} +0 -0
  293. /package/dist/chunks/{worktree-TIXBKXQF.js.map → worktree-S24I7RFM.js.map} +0 -0
@@ -11,13 +11,13 @@ import {
11
11
  confirmationView,
12
12
  describeChanges,
13
13
  permissionsChanged
14
- } from "./chunk-4SQARQYZ.js";
14
+ } from "./chunk-P4BZKF4J.js";
15
15
  import {
16
16
  visibleScheduleMessage
17
17
  } from "./chunk-NADQQMMG.js";
18
18
  import {
19
19
  selectDesktopBackend
20
- } from "./chunk-24ILXLP2.js";
20
+ } from "./chunk-SOJ25KGD.js";
21
21
  import {
22
22
  TURN_LIMIT_FIELDS,
23
23
  ThemeEpochContext,
@@ -54,15 +54,15 @@ import {
54
54
  turnLimitCommands,
55
55
  useThemeEpoch,
56
56
  useThemeSubscription
57
- } from "./chunk-VO7E5AOJ.js";
57
+ } from "./chunk-525JOC3P.js";
58
58
  import {
59
59
  handleTerminationSignals
60
- } from "./chunk-46ZHBP74.js";
60
+ } from "./chunk-PSVPIBOJ.js";
61
61
  import "./chunk-R66H2G5R.js";
62
62
  import {
63
63
  deleteUserConfigValue,
64
64
  setUserConfigValue
65
- } from "./chunk-CQTPOMX5.js";
65
+ } from "./chunk-E33VJKQY.js";
66
66
  import {
67
67
  describeAllCredentialsLogout,
68
68
  describeApiKeyLogout,
@@ -73,13 +73,13 @@ import {
73
73
  } from "./chunk-MDK4RMBQ.js";
74
74
  import {
75
75
  applyProviderFlags
76
- } from "./chunk-4AI7LTKU.js";
76
+ } from "./chunk-OVXKKQSB.js";
77
77
  import {
78
78
  BYPASS_CONSENT_BODY,
79
79
  BYPASS_CONSENT_TITLE,
80
80
  acknowledgeBypass,
81
81
  hasAcknowledgedBypass
82
- } from "./chunk-EP55AZJY.js";
82
+ } from "./chunk-NHE55VV7.js";
83
83
  import {
84
84
  applyFallbackFlag,
85
85
  capChoiceLines,
@@ -93,13 +93,13 @@ import {
93
93
  } from "./chunk-7HYNH2U5.js";
94
94
  import {
95
95
  settleAnsweredPark
96
- } from "./chunk-G2TUF7LQ.js";
96
+ } from "./chunk-HHTNSCVJ.js";
97
97
  import "./chunk-GWQEMJFS.js";
98
98
  import {
99
99
  DELIVERY_READ_LIMIT,
100
100
  readSourceDeliveryPage,
101
101
  takeSuppressedCount
102
- } from "./chunk-BMJU7VA4.js";
102
+ } from "./chunk-FP6K5R6O.js";
103
103
  import {
104
104
  DEFAULT_MAX_ITERATIONS,
105
105
  DEFAULT_TIMEOUT_MS,
@@ -112,36 +112,36 @@ import {
112
112
  runsPerDay,
113
113
  scriptShellUnavailableReason,
114
114
  verifyScheduledScript
115
- } from "./chunk-FDIVDFIS.js";
115
+ } from "./chunk-NPS2VI2Z.js";
116
116
  import {
117
117
  callsCount
118
118
  } from "./chunk-HFY2647W.js";
119
- import "./chunk-W6IKRYC6.js";
119
+ import "./chunk-K6OJ5K74.js";
120
120
  import {
121
121
  allowsCommands,
122
122
  compileJobPolicy,
123
123
  compileScriptCheckPolicy,
124
124
  isPresetName
125
- } from "./chunk-D2U7F6SU.js";
125
+ } from "./chunk-GYVA2PSC.js";
126
126
  import "./chunk-XEUQN4JC.js";
127
127
  import {
128
128
  formatResumeShellCommand,
129
129
  parkedRunWords,
130
130
  resumeCommand
131
- } from "./chunk-UPUMEHWL.js";
131
+ } from "./chunk-XMYADRKW.js";
132
132
  import {
133
133
  appendHistory,
134
134
  nextFireOf,
135
135
  readHistory,
136
136
  readState
137
- } from "./chunk-F6ZYLWF6.js";
137
+ } from "./chunk-RJBG3BJ3.js";
138
138
  import {
139
139
  callEndpoint,
140
140
  readEndpoint
141
141
  } from "./chunk-6YG7D7U4.js";
142
142
  import {
143
143
  reportCrash
144
- } from "./chunk-E42S7GJA.js";
144
+ } from "./chunk-YKADLU4B.js";
145
145
  import {
146
146
  backgroundFromColorFgBg,
147
147
  queryTerminalBackground
@@ -154,7 +154,7 @@ import {
154
154
  hostSlot,
155
155
  hostedByHost,
156
156
  workspacesSignal
157
- } from "./chunk-ELY6PBL5.js";
157
+ } from "./chunk-MGIATWOY.js";
158
158
  import {
159
159
  motionAllowed,
160
160
  reducedMotion,
@@ -170,7 +170,7 @@ import {
170
170
  openLivePeers,
171
171
  peerMailLabel,
172
172
  peerMailMessage
173
- } from "./chunk-D67Z3SOZ.js";
173
+ } from "./chunk-5FAZ4MUN.js";
174
174
  import {
175
175
  AUTO_CHOICE_ID,
176
176
  PR_NONE,
@@ -184,24 +184,24 @@ import {
184
184
  sectionHeading,
185
185
  withAutoChoice,
186
186
  writeConversationExport
187
- } from "./chunk-ZSDSGCEV.js";
187
+ } from "./chunk-6P47EW5E.js";
188
188
  import {
189
189
  tuiPalDefinition,
190
190
  tuiPalEnvironment,
191
191
  tuiPalOwner,
192
192
  tuiPalPreferences
193
- } from "./chunk-WDFAGCU4.js";
193
+ } from "./chunk-WSIOZBRG.js";
194
194
  import {
195
195
  isModelOnlyContext,
196
196
  runtimeContextLabel
197
197
  } from "./chunk-JETLWXUE.js";
198
- import "./chunk-72FELSW2.js";
199
- import "./chunk-VBM25MCL.js";
200
- import "./chunk-QQTSWCNX.js";
198
+ import "./chunk-I7L5TW6W.js";
199
+ import "./chunk-Z63R4LXP.js";
200
+ import "./chunk-G6FR3EVZ.js";
201
201
  import {
202
202
  claimPalConversation,
203
203
  listPalConversations
204
- } from "./chunk-DM6LW7PW.js";
204
+ } from "./chunk-KYV5EKPS.js";
205
205
  import {
206
206
  COMPACTED_HINT,
207
207
  COMPACTING_LABEL,
@@ -209,6 +209,8 @@ import {
209
209
  COMPACT_RESULT_HINT,
210
210
  DEFAULT_AGENT_PHASE,
211
211
  DEFAULT_AGENT_WORKFLOW,
212
+ DELETE_ALL,
213
+ DELETE_ALL_RECORDED,
212
214
  EMPTY_GROUP,
213
215
  EXPAND_HINT,
214
216
  HINT_INTERVAL_MS,
@@ -221,10 +223,12 @@ import {
221
223
  PHASE_NOTE_KEY_PREFIX,
222
224
  PROGRESS_LOOK_MIN_GAP_MS,
223
225
  PROGRESS_LOOK_MS,
226
+ RECALLED_MEMORY_KEY,
224
227
  TURN_STOPPED_LINE,
225
228
  WORKFLOW_BACKGROUND_NOTE,
226
229
  WORKFLOW_TOOL_NAME,
227
230
  WORKSPACE_PREVIEW_ROWS,
231
+ ageLabel,
228
232
  allowsFor,
229
233
  allowsForBatch,
230
234
  appendMemoryWithStatus,
@@ -238,6 +242,9 @@ import {
238
242
  createDecisionPoints,
239
243
  createQuestionGate,
240
244
  declinedLine,
245
+ deleteAllLine,
246
+ deleteOutcomeLine,
247
+ deleteRecordedLine,
241
248
  describeAllows,
242
249
  describeCapabilityNotice,
243
250
  describeHistoryRepairNotice,
@@ -254,17 +261,26 @@ import {
254
261
  groupText,
255
262
  hiddenLinesHint,
256
263
  hintRows,
264
+ historyHoldsAnyMemory,
257
265
  isSessionPlanPath,
266
+ listMatches,
267
+ matchMemories,
258
268
  maybeCreateDecisionModel,
269
+ memoryDescription,
270
+ memoryLabel,
271
+ memoryListChoices,
259
272
  mergeGroups,
260
273
  modelListingCause,
274
+ originLabel,
261
275
  plainConnectorSummary,
262
276
  plainDiffRows,
263
277
  planApprovalRows,
264
278
  probeAgentSession,
265
279
  proposedBody,
266
280
  readMemory,
281
+ recordedMemories,
267
282
  renderCheckpoints,
283
+ renderMemoryDetail,
268
284
  renderMemoryReport,
269
285
  renderMemorySaveResult,
270
286
  renderRestore,
@@ -285,12 +301,12 @@ import {
285
301
  webLiveStatus,
286
302
  webSettledLine,
287
303
  withDebugDetail
288
- } from "./chunk-7P74Y7MF.js";
304
+ } from "./chunk-5IFRFROQ.js";
289
305
  import {
290
306
  openManagedWorktrees,
291
307
  worktreeOpenHint
292
- } from "./chunk-RHCM5ITV.js";
293
- import "./chunk-UICXA3H3.js";
308
+ } from "./chunk-2DMSDS4P.js";
309
+ import "./chunk-XB24BZLK.js";
294
310
  import {
295
311
  SAVE_SKILL_TOOL_NAME,
296
312
  SKILL_CREATOR_SKILL,
@@ -314,24 +330,24 @@ import {
314
330
  runTokens,
315
331
  sandboxRunsShellUnasked,
316
332
  settledElapsed
317
- } from "./chunk-2MHY4E7B.js";
318
- import "./chunk-CCB4HWAV.js";
319
- import "./chunk-YXB4G5XG.js";
333
+ } from "./chunk-GKKSP3UM.js";
334
+ import "./chunk-F2C6HUP3.js";
335
+ import "./chunk-5AOJKWOF.js";
320
336
  import {
321
337
  MCP_OUTPUT_CHARS,
322
338
  boundedMcpText,
323
339
  validatePromptArguments
324
- } from "./chunk-JOD27P4P.js";
340
+ } from "./chunk-S6QORTKD.js";
325
341
  import {
326
342
  openInBrowser
327
- } from "./chunk-I3S2AIBR.js";
343
+ } from "./chunk-XMG4R3UA.js";
328
344
  import {
329
345
  autoAvailable,
330
346
  nextCycleMode,
331
347
  permissionModeDescription,
332
348
  permissionModeLabel,
333
349
  permissionModeName
334
- } from "./chunk-TCKVVNCP.js";
350
+ } from "./chunk-SEL7JXR6.js";
335
351
  import {
336
352
  describeBrowserStatus
337
353
  } from "./chunk-WHODOMXA.js";
@@ -341,7 +357,7 @@ import {
341
357
  describeProviderWaitClock,
342
358
  isSelfMending,
343
359
  isSpentAllowance
344
- } from "./chunk-UQLAXWYK.js";
360
+ } from "./chunk-GVJFPVYS.js";
345
361
  import {
346
362
  PAUSED_TURN_LINES,
347
363
  currentTimeLine,
@@ -350,7 +366,7 @@ import {
350
366
  handoffContinuationNote,
351
367
  refusalDetail,
352
368
  retryAfterMs
353
- } from "./chunk-HWN6CMEH.js";
369
+ } from "./chunk-H2J6CJ7V.js";
354
370
  import {
355
371
  MAY_BE_LIMITED_WINDOW_MS,
356
372
  accountProductName,
@@ -375,25 +391,25 @@ import {
375
391
  loadSkillBody,
376
392
  renderSkillRoster,
377
393
  skillTierLabel
378
- } from "./chunk-4PLSICMA.js";
394
+ } from "./chunk-QC6NN5GF.js";
379
395
  import "./chunk-ZWA2JRJV.js";
380
396
  import "./chunk-NUGPLXVK.js";
381
397
  import {
382
398
  beginSubscriptionLogin,
383
399
  parsePastedInput
384
- } from "./chunk-OENWLBRH.js";
400
+ } from "./chunk-ZUZGGJZ7.js";
385
401
  import {
386
402
  apiKeyLogoutWord,
387
403
  isApiKeyLogoutTarget
388
- } from "./chunk-KOLICEUP.js";
404
+ } from "./chunk-W5OXVXRU.js";
389
405
  import {
390
406
  API_KEY_ACCOUNT_PROVIDERS,
391
407
  openCliAccounts,
392
408
  storedAccountSignedIn
393
- } from "./chunk-H35T4PDE.js";
409
+ } from "./chunk-75R4INRW.js";
394
410
  import {
395
411
  beginCodexDeviceLogin
396
- } from "./chunk-7332NEPY.js";
412
+ } from "./chunk-K52HIR6C.js";
397
413
  import {
398
414
  ConversationIndexRefreshError,
399
415
  activeConversationTurn,
@@ -423,29 +439,29 @@ import {
423
439
  typedTextOf,
424
440
  unansweredReviewPark,
425
441
  unarchiveConversation
426
- } from "./chunk-M7IOSA2Y.js";
427
- import "./chunk-W6K6WU6T.js";
442
+ } from "./chunk-Y4PRCFWU.js";
443
+ import "./chunk-Z4GNYA6Y.js";
428
444
  import "./chunk-JQIBPPOL.js";
429
- import "./chunk-BJ7SNE3W.js";
445
+ import "./chunk-WRVQTHUU.js";
430
446
  import {
431
447
  isTrusted,
432
448
  trustDir
433
- } from "./chunk-F22Q4JVS.js";
449
+ } from "./chunk-ND27BH3T.js";
434
450
  import {
435
451
  bindAccount,
436
452
  findAccountByName,
437
453
  isDefaultAccountId
438
- } from "./chunk-JYE54Z44.js";
454
+ } from "./chunk-LPSFDEYX.js";
439
455
  import {
440
456
  startAutoUpdate
441
- } from "./chunk-JCV3EUNA.js";
457
+ } from "./chunk-DY2CWVAO.js";
442
458
  import {
443
459
  resolveNpmInvocation
444
- } from "./chunk-6R6VKSTU.js";
460
+ } from "./chunk-MILB6YKG.js";
445
461
  import {
446
462
  readManifest
447
463
  } from "./chunk-AK2U3N2A.js";
448
- import "./chunk-OCAMALXW.js";
464
+ import "./chunk-I46H4EOM.js";
449
465
  import {
450
466
  ScheduleConflictError,
451
467
  confirmationHolds,
@@ -471,7 +487,7 @@ import {
471
487
  describeCacheLifetime,
472
488
  promptCacheTtl,
473
489
  providerOffersCacheLifetime
474
- } from "./chunk-GGCYFP6B.js";
490
+ } from "./chunk-D6BIHB5L.js";
475
491
  import "./chunk-OH6TB27S.js";
476
492
  import {
477
493
  COMPOSER_TRIGGER_DEFAULTS,
@@ -490,15 +506,15 @@ import {
490
506
  pendingServersMessage,
491
507
  readPermissionLayers,
492
508
  resolveComposerTriggers
493
- } from "./chunk-XGSYYMGM.js";
509
+ } from "./chunk-P7IUXU5U.js";
494
510
  import "./chunk-KONYGNG6.js";
495
511
  import "./chunk-LCGXWCVU.js";
496
- import "./chunk-GXRDCSW2.js";
512
+ import "./chunk-BVLHRE75.js";
497
513
  import "./chunk-WMEZTDLT.js";
498
514
  import {
499
515
  contextLogging,
500
516
  installCliLogging
501
- } from "./chunk-LDLSPRND.js";
517
+ } from "./chunk-APHOA5CS.js";
502
518
  import {
503
519
  PROJECT_MCP_FILE,
504
520
  parseMcpServerFile
@@ -530,7 +546,7 @@ import {
530
546
  import {
531
547
  primaryProvider,
532
548
  writePreferences
533
- } from "./chunk-2PJKTYSR.js";
549
+ } from "./chunk-UHZQBZ5O.js";
534
550
  import {
535
551
  automaticChoice,
536
552
  automaticKind,
@@ -539,7 +555,7 @@ import {
539
555
  discoverProviders,
540
556
  hasApiCredential,
541
557
  signedInSubscriptionProviders
542
- } from "./chunk-TMF3JLRJ.js";
558
+ } from "./chunk-GE5TBMXR.js";
543
559
  import "./chunk-IE5XIE4W.js";
544
560
  import {
545
561
  ALL_PROVIDER_IDS,
@@ -553,9 +569,9 @@ import "./chunk-RI2KAZJO.js";
553
569
  import {
554
570
  isAnthropicOAuthToken,
555
571
  readCodexCredentialFile
556
- } from "./chunk-45FYQTIH.js";
557
- import "./chunk-JNLUTIPH.js";
558
- import "./chunk-CSH2Z3GQ.js";
572
+ } from "./chunk-VNSKI2LV.js";
573
+ import "./chunk-ZXC266TK.js";
574
+ import "./chunk-ZGQRLKWT.js";
559
575
  import "./chunk-JORONMD3.js";
560
576
  import {
561
577
  apiKeysPath,
@@ -574,10 +590,10 @@ import {
574
590
  readStoredSubscriptionCredential,
575
591
  writeStoredApiKey,
576
592
  writeStoredGeminiApiKey
577
- } from "./chunk-Q5H333GT.js";
593
+ } from "./chunk-NX4IICIS.js";
578
594
  import {
579
595
  namzuHomePath
580
- } from "./chunk-5XL6IUQV.js";
596
+ } from "./chunk-Z77FS75T.js";
581
597
  import {
582
598
  ACCEPT_EDITS_TOOLS,
583
599
  AccountRegistryError,
@@ -628,11 +644,12 @@ import {
628
644
  resolveNamzuHome,
629
645
  resolveTriggerThreshold,
630
646
  resolveWorkflowLimits,
647
+ turnContextEntries,
631
648
  upcomingFireTimes,
632
649
  validateTimeZone,
633
650
  wakeBudgetFromEnv,
634
651
  wrapUntrusted
635
- } from "./chunk-EUI3QHE3.js";
652
+ } from "./chunk-I3D6NUZZ.js";
636
653
  import {
637
654
  __commonJS,
638
655
  __export,
@@ -40497,9 +40514,9 @@ function parseTitle(reply) {
40497
40514
  return void 0;
40498
40515
  }
40499
40516
  }
40500
- const oneLine7 = candidate.replace(/[\u0000-\u001f\u007f-\u009f]+/gu, " ").replace(/\s+/gu, " ").replace(/^["'`]+|["'`]+$/gu, "").trim();
40501
- if (oneLine7.length === 0) return void 0;
40502
- const capped = oneLine7.length > TITLE_MAX_CHARS ? `${oneLine7.slice(0, TITLE_MAX_CHARS - 1)}\u2026` : oneLine7;
40517
+ const oneLine8 = candidate.replace(/[\u0000-\u001f\u007f-\u009f]+/gu, " ").replace(/\s+/gu, " ").replace(/^["'`]+|["'`]+$/gu, "").trim();
40518
+ if (oneLine8.length === 0) return void 0;
40519
+ const capped = oneLine8.length > TITLE_MAX_CHARS ? `${oneLine8.slice(0, TITLE_MAX_CHARS - 1)}\u2026` : oneLine8;
40503
40520
  return capped.charAt(0).toUpperCase() + capped.slice(1);
40504
40521
  }
40505
40522
  __name(parseTitle, "parseTitle");
@@ -40557,10 +40574,10 @@ function recapInput(turns) {
40557
40574
  }
40558
40575
  __name(recapInput, "recapInput");
40559
40576
  function parseRecap(reply) {
40560
- const oneLine7 = reply.replace(/[\u0000-\u001f\u007f-\u009f]+/gu, " ").replace(/```[a-z]*/giu, " ").replace(/[*`]+/gu, "").replace(/^[#>\s]+/u, "").replace(/\s+/gu, " ").replace(/^["'`]+|["'`]+$/gu, "").replace(/^recap:\s*/iu, "").trim();
40561
- if (oneLine7.length === 0) return void 0;
40562
- if (oneLine7.length <= RECAP_MAX_CHARS) return oneLine7;
40563
- const head = oneLine7.slice(0, RECAP_MAX_CHARS - 1);
40577
+ const oneLine8 = reply.replace(/[\u0000-\u001f\u007f-\u009f]+/gu, " ").replace(/```[a-z]*/giu, " ").replace(/[*`]+/gu, "").replace(/^[#>\s]+/u, "").replace(/\s+/gu, " ").replace(/^["'`]+|["'`]+$/gu, "").replace(/^recap:\s*/iu, "").trim();
40578
+ if (oneLine8.length === 0) return void 0;
40579
+ if (oneLine8.length <= RECAP_MAX_CHARS) return oneLine8;
40580
+ const head = oneLine8.slice(0, RECAP_MAX_CHARS - 1);
40564
40581
  const space = head.search(/\s\S*$/u);
40565
40582
  const atWord = space === -1 ? "" : head.slice(0, space).trimEnd();
40566
40583
  return `${atWord.length > RECAP_MAX_CHARS / 2 ? atWord : head.trimEnd()}\u2026`;
@@ -46801,7 +46818,7 @@ function Picker({
46801
46818
  const highlightedRow = rows[cursor];
46802
46819
  const entryTarget = keyEntryOffered ? keyEntryTarget(highlightedRow, keyEntryFor) : null;
46803
46820
  const namesAnotherRow = entryTarget !== null && (highlightedRow === void 0 || !rowHasProvider(highlightedRow, entryTarget.id));
46804
- const oneLine7 = /* @__PURE__ */ __name((text) => wrapChoiceText(text, contentWidth).length, "oneLine");
46821
+ const oneLine8 = /* @__PURE__ */ __name((text) => wrapChoiceText(text, contentWidth).length, "oneLine");
46805
46822
  const emptyScreenFooter = fitHints(
46806
46823
  [
46807
46824
  ...onLogin ? [{ text: "l sign in", rank: 3 }] : [],
@@ -46813,10 +46830,10 @@ function Picker({
46813
46830
  ],
46814
46831
  contentWidth
46815
46832
  );
46816
- const emptyScreenChromeRows = 2 + (notice ? noticeLines : 0) + (notice ? 1 : 0) + 1 + 1 + oneLine7(EMPTY_SCREEN_INTRO) + emptyScreenSourceLines().reduce(
46833
+ const emptyScreenChromeRows = 2 + (notice ? noticeLines : 0) + (notice ? 1 : 0) + 1 + 1 + oneLine8(EMPTY_SCREEN_INTRO) + emptyScreenSourceLines().reduce(
46817
46834
  (rows2, line) => rows2 + bulletLines(line, contentWidth).length,
46818
46835
  0
46819
- ) + (onLogin ? 1 + oneLine7(`Press l ${EMPTY_SCREEN_HINTS.signIn}`) : 0) + 1 + oneLine7(`Or press k ${EMPTY_SCREEN_HINTS.paste}`) + 1 + oneLine7(EMPTY_SCREEN_HINTS.durable) + 1 + oneLine7(emptyScreenFooter) + 1 + TRANSCRIPT_LINE_ABOVE;
46836
+ ) + (onLogin ? 1 + oneLine8(`Press l ${EMPTY_SCREEN_HINTS.signIn}`) : 0) + 1 + oneLine8(`Or press k ${EMPTY_SCREEN_HINTS.paste}`) + 1 + oneLine8(EMPTY_SCREEN_HINTS.durable) + 1 + oneLine8(emptyScreenFooter) + 1 + TRANSCRIPT_LINE_ABOVE;
46820
46837
  const listSubtitle = selectionKind === "signed-in-subscription" ? `${detected.length} already usable \xB7 no API key required` : `${detected.length} found \xB7 sign-ins, API keys and local servers`;
46821
46838
  const listFooter = fitHints(
46822
46839
  [
@@ -46836,9 +46853,9 @@ function Picker({
46836
46853
  ],
46837
46854
  contentWidth
46838
46855
  );
46839
- const headingRows = rows.some((row) => row.detected.length === 0) ? 1 + oneLine7(NOT_DETECTED_HEADING) : 0;
46840
- const listCoreRows = 2 + (notice ? noticeLines : 0) + (notice ? 1 : 0) + 1 + headingRows + 1 + oneLine7(listFooter) + 1 + TRANSCRIPT_LINE_ABOVE;
46841
- const subtitleRows = 1 + oneLine7(listSubtitle);
46856
+ const headingRows = rows.some((row) => row.detected.length === 0) ? 1 + oneLine8(NOT_DETECTED_HEADING) : 0;
46857
+ const listCoreRows = 2 + (notice ? noticeLines : 0) + (notice ? 1 : 0) + 1 + headingRows + 1 + oneLine8(listFooter) + 1 + TRANSCRIPT_LINE_ABOVE;
46858
+ const subtitleRows = 1 + oneLine8(listSubtitle);
46842
46859
  const screenRows = terminal.rows ?? 24;
46843
46860
  const cursorRow = rows[Math.max(0, Math.min(cursor, rows.length - 1))];
46844
46861
  const mustKeep = cursorRow ? rowHeight(cursorRow, contentWidth, CURRENT_MARK) : 1;
@@ -50893,6 +50910,37 @@ function checklistInView(input) {
50893
50910
  }
50894
50911
  __name(checklistInView, "checklistInView");
50895
50912
 
50913
+ // src/tui/memory-used-row.ts
50914
+ var oneLine7 = /* @__PURE__ */ __name((text) => text.replace(/\s+/g, " ").trim(), "oneLine");
50915
+ function mergeUsedMemories(held, added) {
50916
+ const seen = new Set(held.map((memory) => `${memory.id}@${memory.updatedAt}`));
50917
+ const out = [...held];
50918
+ for (const memory of added) {
50919
+ const key = `${memory.id}@${memory.updatedAt}`;
50920
+ if (seen.has(key)) continue;
50921
+ seen.add(key);
50922
+ out.push(memory);
50923
+ }
50924
+ return out;
50925
+ }
50926
+ __name(mergeUsedMemories, "mergeUsedMemories");
50927
+ function memoryUsedRow(memories, now = Date.now()) {
50928
+ const first = memories[0];
50929
+ if (!first) return void 0;
50930
+ const count2 = memories.length;
50931
+ return {
50932
+ content: `Used ${count2} ${count2 === 1 ? "memory" : "memories"}`,
50933
+ detail: [
50934
+ ...memories.map(
50935
+ (memory) => `${oneLine7(memory.title.trim() || memory.name || memory.id)} \xB7 ${originLabel(memory.origin)} \xB7 ${ageLabel(memory.updatedAt, now)}`
50936
+ ),
50937
+ `/memory delete ${first.name ?? first.id} removes one.`
50938
+ ],
50939
+ hint: EXPAND_HINT
50940
+ };
50941
+ }
50942
+ __name(memoryUsedRow, "memoryUsedRow");
50943
+
50896
50944
  // src/tui/next-task.ts
50897
50945
  function nextTask(tasks) {
50898
50946
  const pending = tasks.filter((task) => task.status === "pending");
@@ -55006,7 +55054,8 @@ __name(recapTurns, "recapTurns");
55006
55054
  var NO_TRAIL = {
55007
55055
  calls: /* @__PURE__ */ new Map(),
55008
55056
  turns: /* @__PURE__ */ new Map(),
55009
- turnOfMessage: /* @__PURE__ */ new Map()
55057
+ turnOfMessage: /* @__PURE__ */ new Map(),
55058
+ recalled: /* @__PURE__ */ new Map()
55010
55059
  };
55011
55060
  var callKey = /* @__PURE__ */ __name((turnId, toolUseId) => `${turnId ?? ""}\0${toolUseId}`, "callKey");
55012
55061
  function atOf(record3) {
@@ -55014,11 +55063,29 @@ function atOf(record3) {
55014
55063
  return Number.isFinite(at) ? at : void 0;
55015
55064
  }
55016
55065
  __name(atOf, "atOf");
55066
+ function usedMemoriesOf(raw) {
55067
+ const out = [];
55068
+ for (const item of raw) {
55069
+ const memory = item;
55070
+ if (!memory || typeof memory.id !== "string" || typeof memory.title !== "string" || typeof memory.updatedAt !== "number" || memory.origin !== "operator" && memory.origin !== "model" && memory.origin !== "derived")
55071
+ continue;
55072
+ out.push({
55073
+ id: memory.id,
55074
+ ...typeof memory.name === "string" ? { name: memory.name } : {},
55075
+ title: memory.title,
55076
+ origin: memory.origin,
55077
+ updatedAt: memory.updatedAt
55078
+ });
55079
+ }
55080
+ return out;
55081
+ }
55082
+ __name(usedMemoriesOf, "usedMemoriesOf");
55017
55083
  function trailFromRecords(records) {
55018
55084
  if (!records || records.length === 0) return NO_TRAIL;
55019
55085
  const calls = /* @__PURE__ */ new Map();
55020
55086
  const turns = /* @__PURE__ */ new Map();
55021
55087
  const turnOfMessage = /* @__PURE__ */ new Map();
55088
+ const recalled = /* @__PURE__ */ new Map();
55022
55089
  const turn = /* @__PURE__ */ __name((id) => {
55023
55090
  let found = turns.get(id);
55024
55091
  if (!found) {
@@ -55038,6 +55105,13 @@ function trailFromRecords(records) {
55038
55105
  case "turn_started":
55039
55106
  if (turnId) turn(turnId).startedAt = atOf(record3);
55040
55107
  break;
55108
+ case "memory_recalled":
55109
+ if (turnId && Array.isArray(record3.memories))
55110
+ recalled.set(
55111
+ turnId,
55112
+ mergeUsedMemories(recalled.get(turnId) ?? [], usedMemoriesOf(record3.memories))
55113
+ );
55114
+ break;
55041
55115
  case "turn_completed":
55042
55116
  case "turn_failed":
55043
55117
  if (turnId) {
@@ -55089,7 +55163,7 @@ function trailFromRecords(records) {
55089
55163
  const index = agents?.indexOf(false) ?? -1;
55090
55164
  if (agents && index >= 0) agents[index] = true;
55091
55165
  }
55092
- return { calls, turns, turnOfMessage };
55166
+ return { calls, turns, turnOfMessage, recalled };
55093
55167
  }
55094
55168
  __name(trailFromRecords, "trailFromRecords");
55095
55169
  function parseInput(call) {
@@ -55233,6 +55307,8 @@ function createRestoredTurnWriter(messages, nextId, options) {
55233
55307
  if (message.role === "tool") results.set(message.toolCallId, message);
55234
55308
  }
55235
55309
  let current;
55310
+ const shownMemories = /* @__PURE__ */ new Set();
55311
+ const atTurn = /* @__PURE__ */ __name((turnId) => trail.turns.get(turnId)?.startedAt ?? Date.now(), "atTurn");
55236
55312
  const closing = /* @__PURE__ */ __name((turnId) => {
55237
55313
  if (!turnId) return [];
55238
55314
  const turn = trail.turns.get(turnId);
@@ -55285,6 +55361,26 @@ function createRestoredTurnWriter(messages, nextId, options) {
55285
55361
  }
55286
55362
  return { rows, ...launched && turnId ? { launchedIn: turnId } : {} };
55287
55363
  },
55364
+ memoryRows(message) {
55365
+ const turnId = message.id ? trail.turnOfMessage.get(message.id) : void 0;
55366
+ if (!turnId || shownMemories.has(turnId)) return [];
55367
+ const row = memoryUsedRow(trail.recalled?.get(turnId) ?? [], atTurn(turnId));
55368
+ if (!row) return [];
55369
+ shownMemories.add(turnId);
55370
+ const noticeStyle = systemRowStyle("notice");
55371
+ return [
55372
+ {
55373
+ id: nextId(),
55374
+ role: "system",
55375
+ content: row.content,
55376
+ glyph: noticeStyle.glyph,
55377
+ glyphColor: noticeStyle.color,
55378
+ detail: row.detail,
55379
+ meta: row.hint,
55380
+ activity: "summary"
55381
+ }
55382
+ ];
55383
+ },
55288
55384
  enter(message) {
55289
55385
  const turnId = message.id ? trail.turnOfMessage.get(message.id) : void 0;
55290
55386
  if (!turnId || turnId === current) return [];
@@ -56584,6 +56680,7 @@ function projectConversation(messages, nextId, readableUserTexts = [], restore)
56584
56680
  const out = [];
56585
56681
  for (const message of messages) {
56586
56682
  out.push(...writer.enter(message));
56683
+ if (message.role === "assistant") out.push(...writer.memoryRows(message));
56587
56684
  const rows = projectMessage(message);
56588
56685
  out.push(...rows);
56589
56686
  if (message.role === "assistant") {
@@ -59061,6 +59158,93 @@ ${blocks.join("\n\n")}`;
59061
59158
  );
59062
59159
  return;
59063
59160
  }
59161
+ if (picker.kind === "memory") {
59162
+ if (picker.owner !== session) return;
59163
+ const manage = picker.owner.storedMemories;
59164
+ if (!manage) return;
59165
+ const finish = /* @__PURE__ */ __name((text) => {
59166
+ setChoicePicker(null);
59167
+ pushMessage("system", text);
59168
+ }, "finish");
59169
+ const failed = /* @__PURE__ */ __name((err) => {
59170
+ setChoicePicker(null);
59171
+ pushSystem("error", explainFailure(err, "Could not change memory."));
59172
+ }, "failed");
59173
+ const inHistory = /* @__PURE__ */ __name((items) => historyHoldsAnyMemory(
59174
+ turnContextEntries(modelHistoryRef.current, RECALLED_MEMORY_KEY),
59175
+ items
59176
+ ), "inHistory");
59177
+ if (picker.step === "list") {
59178
+ setSelectedChoice(0);
59179
+ if (value === DELETE_ALL) {
59180
+ setChoicePicker({
59181
+ ...memoryAllConfirm(picker.owner, picker.items),
59182
+ back: picker
59183
+ });
59184
+ return;
59185
+ }
59186
+ if (value === DELETE_ALL_RECORDED) {
59187
+ setChoicePicker({
59188
+ ...memoryRecordedConfirm(picker.owner, picker.items),
59189
+ back: picker
59190
+ });
59191
+ return;
59192
+ }
59193
+ const item = picker.items.find((entry) => entry.id === value);
59194
+ if (item)
59195
+ setChoicePicker({
59196
+ ...memoryActionsPicker(picker.owner, picker.items, item),
59197
+ back: picker
59198
+ });
59199
+ return;
59200
+ }
59201
+ const target = picker.target;
59202
+ if (picker.step === "actions" && target) {
59203
+ if (value === "show") {
59204
+ void manage.read(target).then(
59205
+ (body) => finish(
59206
+ body === void 0 ? `\u201C${memoryLabel(target)}\u201D is already gone.` : renderMemoryDetail(target, body)
59207
+ ),
59208
+ failed
59209
+ );
59210
+ return;
59211
+ }
59212
+ setSelectedChoice(1);
59213
+ setChoicePicker({
59214
+ ...memoryDeleteConfirm(picker.owner, picker.items, target),
59215
+ back: picker
59216
+ });
59217
+ return;
59218
+ }
59219
+ if (picker.step === "confirm" && target) {
59220
+ if (value !== "delete") {
59221
+ setChoicePicker(null);
59222
+ return;
59223
+ }
59224
+ void manage.remove(target).then(
59225
+ (outcome) => finish(deleteOutcomeLine(target, outcome, inHistory([target]))),
59226
+ failed
59227
+ );
59228
+ return;
59229
+ }
59230
+ if (picker.step === "confirm-recorded") {
59231
+ if (value !== "delete") {
59232
+ setChoicePicker(null);
59233
+ return;
59234
+ }
59235
+ const recorded = recordedMemories(picker.items);
59236
+ void manage.removeRecorded(picker.items).then((result) => finish(deleteRecordedLine(result, inHistory(recorded))), failed);
59237
+ return;
59238
+ }
59239
+ if (picker.step === "confirm-all") {
59240
+ if (value !== "delete") {
59241
+ setChoicePicker(null);
59242
+ return;
59243
+ }
59244
+ void manage.removeAll(picker.items).then((result) => finish(deleteAllLine(result, inHistory(picker.items))), failed);
59245
+ }
59246
+ return;
59247
+ }
59064
59248
  if (picker.kind === "review-preset") {
59065
59249
  if (reviewChoiceInFlightRef.current) return;
59066
59250
  if (value === "custom") {
@@ -60748,7 +60932,7 @@ ${blocks.join("\n\n")}`;
60748
60932
  doctorRunningRef.current = true;
60749
60933
  const progressId = pushMessage("system", "Checking\u2026");
60750
60934
  try {
60751
- const { runLiveDoctor } = await import("./live-CZWD5MR2.js");
60935
+ const { runLiveDoctor } = await import("./live-QZTEITO7.js");
60752
60936
  const { describePlainDoctor } = await import("./plain-report-XVPBQDLE.js");
60753
60937
  const report = await runLiveDoctor({
60754
60938
  ...ctxRef.current.telemetry ? { telemetry: ctxRef.current.telemetry } : {}
@@ -62541,6 +62725,35 @@ ${plain(err)}`
62541
62725
  describeTranscriptWrites(event.state)
62542
62726
  );
62543
62727
  break;
62728
+ case "memory-recalled": {
62729
+ const held = st.memoryRow?.memories ?? [];
62730
+ const memories = mergeUsedMemories(held, event.memories);
62731
+ const row = memoryUsedRow(memories);
62732
+ if (!row || memories.length === held.length) break;
62733
+ if (st.memoryRow) {
62734
+ const rowId2 = st.memoryRow.id;
62735
+ setMessages(
62736
+ (prev) => prev.map(
62737
+ (m) => m.id === rowId2 ? { ...m, content: row.content, detail: row.detail } : m
62738
+ )
62739
+ );
62740
+ st.memoryRow = { id: rowId2, memories };
62741
+ break;
62742
+ }
62743
+ const style = systemRowStyle("notice");
62744
+ const rowId = pushMessage(
62745
+ "system",
62746
+ row.content,
62747
+ false,
62748
+ style.glyph,
62749
+ row.detail,
62750
+ style.color,
62751
+ row.hint,
62752
+ "summary"
62753
+ );
62754
+ st.memoryRow = { id: rowId, memories };
62755
+ break;
62756
+ }
62544
62757
  case "capability-warning":
62545
62758
  pushSystem(
62546
62759
  "warning",
@@ -65033,31 +65246,68 @@ ${answer}`
65033
65246
  );
65034
65247
  return;
65035
65248
  }
65036
- case "show-memory": {
65037
- const curated = renderMemoryReport(readMemory(void 0, ctx.cwd), {
65038
- cwd: ctx.cwd
65039
- });
65040
- const stored = session?.storedMemoryIndex;
65041
- if (!stored) {
65042
- pushMessage("system", curated);
65249
+ case "manage-memory": {
65250
+ const manage = session?.storedMemories;
65251
+ if (!session || !manage) {
65252
+ pushMessage(
65253
+ "system",
65254
+ "Stored memory is not open yet; /memory works once a conversation has started."
65255
+ );
65043
65256
  return;
65044
65257
  }
65045
- void stored().then(
65046
- ({ directory, index, derived }) => {
65047
- const section = renderStoredMemorySection(directory, index, derived);
65048
- pushMessage(
65049
- "system",
65050
- section ? curated.startsWith("No saved memory.") ? section : `${section}
65051
-
65052
- ${curated}` : curated
65053
- );
65258
+ const owner = session;
65259
+ void manage.load().then(
65260
+ (items) => {
65261
+ if (slash.all) {
65262
+ if (items.length === 0) {
65263
+ pushMessage("system", "There is no stored memory to delete.");
65264
+ return;
65265
+ }
65266
+ setSelectedChoice(0);
65267
+ setChoicePicker(memoryAllConfirm(owner, items));
65268
+ return;
65269
+ }
65270
+ if (slash.recorded) {
65271
+ if (recordedMemories(items).length === 0) {
65272
+ pushMessage("system", "Nothing was recorded by turns.");
65273
+ return;
65274
+ }
65275
+ setSelectedChoice(1);
65276
+ setChoicePicker(memoryRecordedConfirm(owner, items));
65277
+ return;
65278
+ }
65279
+ if (slash.target !== void 0) {
65280
+ const found = matchMemories(items, slash.target);
65281
+ if (found.length === 0) {
65282
+ pushMessage("system", `No memory named \u201C${slash.target}\u201D. /memory lists them.`);
65283
+ } else if (found.length > 1) {
65284
+ pushMessage(
65285
+ "system",
65286
+ `More than one memory matches \u201C${slash.target}\u201D:
65287
+ ${listMatches(found)}`
65288
+ );
65289
+ } else if (found[0]) {
65290
+ setSelectedChoice(1);
65291
+ setChoicePicker(memoryDeleteConfirm(owner, items, found[0]));
65292
+ }
65293
+ return;
65294
+ }
65295
+ if (items.length === 0) {
65296
+ void memoryReport(owner, ctx.cwd).then(
65297
+ (report) => pushMemoryReport(report, pushMessage, pushSystem)
65298
+ );
65299
+ return;
65300
+ }
65301
+ setSelectedChoice(0);
65302
+ setChoicePicker(memoryListPicker(owner, items));
65054
65303
  },
65055
- (err) => pushSystem(
65056
- "error",
65057
- explainFailure(err, `${curated}
65058
-
65059
- Stored memories not loaded.`)
65060
- )
65304
+ (err) => pushSystem("error", explainFailure(err, "Memory could not be listed."))
65305
+ );
65306
+ return;
65307
+ }
65308
+ case "show-memory": {
65309
+ void memoryReport(session, ctx.cwd).then(
65310
+ (report) => pushMemoryReport(report, pushMessage, pushSystem)
65061
65311
  );
65062
65312
  return;
65063
65313
  }
@@ -68089,6 +68339,128 @@ function choicePickerSearchable(picker) {
68089
68339
  ].includes(picker.kind);
68090
68340
  }
68091
68341
  __name(choicePickerSearchable, "choicePickerSearchable");
68342
+ async function memoryReport(session, cwd2) {
68343
+ const curated = renderMemoryReport(readMemory(void 0, cwd2), { cwd: cwd2 });
68344
+ const stored = session?.storedMemoryIndex;
68345
+ if (!stored) return { text: curated };
68346
+ try {
68347
+ const { directory, index, derived } = await stored();
68348
+ const section = renderStoredMemorySection(directory, index, derived);
68349
+ if (!section) return { text: curated };
68350
+ return {
68351
+ text: curated.startsWith("No saved memory.") ? section : `${section}
68352
+
68353
+ ${curated}`
68354
+ };
68355
+ } catch (err) {
68356
+ return {
68357
+ text: explainFailure(err, `${curated}
68358
+
68359
+ Stored memories not loaded.`),
68360
+ failed: true
68361
+ };
68362
+ }
68363
+ }
68364
+ __name(memoryReport, "memoryReport");
68365
+ function pushMemoryReport(report, push, pushError) {
68366
+ if (report.failed) pushError("error", report.text);
68367
+ else push("system", report.text);
68368
+ }
68369
+ __name(pushMemoryReport, "pushMemoryReport");
68370
+ function memoryListPicker(owner, items) {
68371
+ const { values, options } = memoryListChoices(items);
68372
+ return {
68373
+ kind: "memory",
68374
+ step: "list",
68375
+ owner,
68376
+ items,
68377
+ title: "Memory",
68378
+ notice: "Select one to read or delete it",
68379
+ values,
68380
+ options
68381
+ };
68382
+ }
68383
+ __name(memoryListPicker, "memoryListPicker");
68384
+ function memoryActionsPicker(owner, items, target) {
68385
+ return {
68386
+ kind: "memory",
68387
+ step: "actions",
68388
+ owner,
68389
+ items,
68390
+ target,
68391
+ title: memoryLabel(target),
68392
+ notice: memoryDescription(target),
68393
+ values: ["show", "delete"],
68394
+ options: [
68395
+ { label: "Show", description: "Print the whole memory." },
68396
+ {
68397
+ label: "Delete",
68398
+ description: "Remove it so Namzu does not recall it again."
68399
+ }
68400
+ ]
68401
+ };
68402
+ }
68403
+ __name(memoryActionsPicker, "memoryActionsPicker");
68404
+ function memoryDeleteConfirm(owner, items, target) {
68405
+ return {
68406
+ kind: "memory",
68407
+ step: "confirm",
68408
+ owner,
68409
+ items,
68410
+ target,
68411
+ title: `Delete \u201C${memoryLabel(target)}\u201D?`,
68412
+ notice: memoryDescription(target),
68413
+ values: ["keep", "delete"],
68414
+ options: [
68415
+ { label: "Keep", description: "Leave it as it is." },
68416
+ {
68417
+ label: "Delete",
68418
+ description: "Remove it so Namzu does not recall it again."
68419
+ }
68420
+ ]
68421
+ };
68422
+ }
68423
+ __name(memoryDeleteConfirm, "memoryDeleteConfirm");
68424
+ function memoryAllConfirm(owner, items) {
68425
+ const count2 = items.length;
68426
+ return {
68427
+ kind: "memory",
68428
+ step: "confirm-all",
68429
+ owner,
68430
+ items,
68431
+ title: count2 === 1 ? "Delete the 1 memory?" : `Delete all ${count2} memories?`,
68432
+ notice: "Also those you or Namzu saved. MEMORY.md and USER.md stay.",
68433
+ values: ["keep", "delete"],
68434
+ options: [
68435
+ { label: "Keep", description: "Leave them as they are." },
68436
+ {
68437
+ label: `Delete ${count2}`,
68438
+ description: "Remove every memory of this project so Namzu does not recall them again."
68439
+ }
68440
+ ]
68441
+ };
68442
+ }
68443
+ __name(memoryAllConfirm, "memoryAllConfirm");
68444
+ function memoryRecordedConfirm(owner, items) {
68445
+ const count2 = recordedMemories(items).length;
68446
+ return {
68447
+ kind: "memory",
68448
+ step: "confirm-recorded",
68449
+ owner,
68450
+ items,
68451
+ title: count2 === 1 ? "Delete the memory recorded by a turn?" : `Delete all ${count2} memories recorded by turns?`,
68452
+ notice: "Memories you or Namzu saved stay.",
68453
+ values: ["keep", "delete"],
68454
+ options: [
68455
+ { label: "Keep", description: "Leave them as they are." },
68456
+ {
68457
+ label: `Delete ${count2}`,
68458
+ description: "Remove every memory a turn recorded on its own."
68459
+ }
68460
+ ]
68461
+ };
68462
+ }
68463
+ __name(memoryRecordedConfirm, "memoryRecordedConfirm");
68092
68464
  function loadedPluginPicker(owner) {
68093
68465
  const plugins = owner.plugins?.list() ?? [];
68094
68466
  return {
@@ -68825,7 +69197,7 @@ async function launchTui(ctx, options = {}) {
68825
69197
  current: null
68826
69198
  };
68827
69199
  const workspacesEntry = /* @__PURE__ */ __name(() => {
68828
- workspaces.current ??= import("./entry-7LYIOFXC.js").then(
69200
+ workspaces.current ??= import("./entry-G2QJGWJH.js").then(
68829
69201
  (m) => m.createWorkspacesEntry({
68830
69202
  proxy,
68831
69203
  realOut: process.stdout,
@@ -69015,4 +69387,4 @@ react/cjs/react-jsx-runtime.development.js:
69015
69387
  * LICENSE file in the root directory of this source tree.
69016
69388
  *)
69017
69389
  */
69018
- //# sourceMappingURL=tui-CSH5HGV7.js.map
69390
+ //# sourceMappingURL=tui-P4LC4FMM.js.map