@namzu/cli 53.1.0 → 53.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-UVCLNIXU.js → acp-3FNB6MSI.js} +73 -60
  4. package/dist/chunks/acp-3FNB6MSI.js.map +6 -0
  5. package/dist/chunks/{activity-command-2QIWTUUB.js → activity-command-IBOJOCRF.js} +12 -12
  6. package/dist/chunks/{add-2YDEALUT.js → add-LYBL3IC7.js} +20 -20
  7. package/dist/chunks/{agent-IKQ67NMW.js → agent-LTLWJW3P.js} +42 -41
  8. package/dist/chunks/agent-session-BD2AHK5S.js +77 -0
  9. package/dist/chunks/{apply-at-exit-F4G7PCZL.js → apply-at-exit-7BF3KBU2.js} +8 -8
  10. package/dist/chunks/{archive-FOTYHQPL.js → archive-FCPUCOYT.js} +10 -10
  11. package/dist/chunks/{bin-main-DWOCG2WK.js → bin-main-AVPCWJHJ.js} +9 -9
  12. package/dist/chunks/{binding-2GEVBR5H.js → binding-OZCOSUYV.js} +3 -3
  13. package/dist/chunks/{browser-WYPSIPEZ.js → browser-LR25NVO7.js} +6 -6
  14. package/dist/chunks/{chat-LWVIDEXR.js → chat-PP7XU7US.js} +15 -15
  15. package/dist/chunks/{chunk-5F4SSZKS.js → chunk-2KNLSJFS.js} +2 -2
  16. package/dist/chunks/{chunk-FWTWILCD.js → chunk-2O6LZGGG.js} +2 -2
  17. package/dist/chunks/{chunk-6APCO6YC.js → chunk-32LCSSAN.js} +14 -14
  18. package/dist/chunks/{chunk-33WFG4C3.js → chunk-3Q42HHZM.js} +2 -2
  19. package/dist/chunks/{chunk-DTORDCJR.js → chunk-3WTIGIDA.js} +4 -4
  20. package/dist/chunks/{chunk-IOWYDR6H.js → chunk-4JBQTRTF.js} +59 -21
  21. package/dist/chunks/{chunk-IOWYDR6H.js.map → chunk-4JBQTRTF.js.map} +1 -1
  22. package/dist/chunks/{chunk-E7GZ5OXM.js → chunk-4KMFIIWV.js} +4 -4
  23. package/dist/chunks/{chunk-DHWD5YYD.js → chunk-4NVFHP23.js} +3 -3
  24. package/dist/chunks/{chunk-QPAWT3EG.js → chunk-4Q4J3KDG.js} +4 -4
  25. package/dist/chunks/{chunk-YVJVXTUS.js → chunk-4VB264C5.js} +10 -10
  26. package/dist/chunks/{chunk-6CXEEZLK.js → chunk-4VXS3UYL.js} +2 -2
  27. package/dist/chunks/{chunk-6NUQEVHG.js → chunk-5FEAC3G5.js} +9 -9
  28. package/dist/chunks/{chunk-QTPZCVPP.js → chunk-5HCZHDPA.js} +2 -2
  29. package/dist/chunks/{chunk-QBCGPM4E.js → chunk-5OAKUXE3.js} +2 -2
  30. package/dist/chunks/{chunk-3EEKLQXD.js → chunk-5YNAPIUZ.js} +3 -3
  31. package/dist/chunks/{chunk-VV2EHZOG.js → chunk-6SHOR62K.js} +3 -3
  32. package/dist/chunks/{chunk-PXA27JGJ.js → chunk-72IJ3FQU.js} +2 -2
  33. package/dist/chunks/{chunk-XTVF376M.js → chunk-AO4A56EG.js} +6 -6
  34. package/dist/chunks/{chunk-XODDL7OV.js → chunk-BFCUL4BW.js} +3 -3
  35. package/dist/chunks/{chunk-T3NIOUQJ.js → chunk-CKWDYYBE.js} +3 -3
  36. package/dist/chunks/{chunk-XLDFNUCV.js → chunk-CSBKGTBA.js} +4 -4
  37. package/dist/chunks/{chunk-NW6VBCCU.js → chunk-D3JJE6VZ.js} +3 -3
  38. package/dist/chunks/{chunk-ORCR5VST.js → chunk-DEEK2FOC.js} +2 -2
  39. package/dist/chunks/{chunk-DCMZYSON.js → chunk-DEH4YIDN.js} +4 -4
  40. package/dist/chunks/{chunk-CMHOQ62S.js → chunk-DSMBM5LQ.js} +2 -2
  41. package/dist/chunks/chunk-DZBCLR75.js +526 -0
  42. package/dist/chunks/chunk-DZBCLR75.js.map +6 -0
  43. package/dist/chunks/{chunk-GZNTRTD5.js → chunk-EC2F3CWT.js} +3 -3
  44. package/dist/chunks/{chunk-4ASCYXSH.js → chunk-EMXH2RJN.js} +3 -3
  45. package/dist/chunks/{chunk-XKIV3H62.js → chunk-EQGE25MQ.js} +6 -6
  46. package/dist/chunks/{chunk-5JQIGBBR.js → chunk-F2TXNDKC.js} +3 -3
  47. package/dist/chunks/{chunk-H7UZKOVC.js → chunk-FAWY4LRG.js} +4 -132
  48. package/dist/chunks/chunk-FAWY4LRG.js.map +6 -0
  49. package/dist/chunks/{chunk-TMOEYXPR.js → chunk-FK6WJQ5T.js} +5 -5
  50. package/dist/chunks/{chunk-MDY2IMVQ.js → chunk-FRADQASS.js} +2 -2
  51. package/dist/chunks/{chunk-RPXTYB22.js → chunk-FS7CUHOG.js} +2 -2
  52. package/dist/chunks/{chunk-G7LMPHZE.js → chunk-GFZFGTDZ.js} +2 -2
  53. package/dist/chunks/{chunk-QE5PQM5T.js → chunk-GXCOSOVM.js} +3 -3
  54. package/dist/chunks/{chunk-NIRQFXO6.js → chunk-HJJNIG33.js} +2 -2
  55. package/dist/chunks/{chunk-4EBZUUE4.js → chunk-HUDP4HTK.js} +3 -3
  56. package/dist/chunks/{chunk-QIDU76IF.js → chunk-IBPN346S.js} +2 -2
  57. package/dist/chunks/{chunk-3HJXXP6L.js → chunk-IERT7D34.js} +3 -3
  58. package/dist/chunks/{chunk-LC7SV2KM.js → chunk-IPAGLYU3.js} +2 -2
  59. package/dist/chunks/{chunk-MTY4XYDO.js → chunk-ISHCON5Z.js} +2 -2
  60. package/dist/chunks/{chunk-HFZLLEJS.js → chunk-J6I6MCWR.js} +2 -2
  61. package/dist/chunks/{chunk-FBRYV5YN.js → chunk-JFLX34FA.js} +3 -3
  62. package/dist/chunks/{chunk-C74LVDRC.js → chunk-JTEWIH66.js} +46 -4
  63. package/dist/chunks/chunk-JTEWIH66.js.map +6 -0
  64. package/dist/chunks/{chunk-RXUWYGFX.js → chunk-JXJIKAAE.js} +4 -4
  65. package/dist/chunks/{chunk-BLGPF6UL.js → chunk-K3QEZ7D7.js} +3 -3
  66. package/dist/chunks/{chunk-6RTDZGPO.js → chunk-KFWQSTT3.js} +2 -2
  67. package/dist/chunks/{chunk-LQJLTW2D.js → chunk-KHQAU33M.js} +2 -2
  68. package/dist/chunks/{chunk-RFGMOXA6.js → chunk-KNBFV3DC.js} +5 -5
  69. package/dist/chunks/{chunk-LRFRTQW7.js → chunk-L2Q7APTU.js} +2 -2
  70. package/dist/chunks/{chunk-S5R2E5TZ.js → chunk-LHZ632YK.js} +5 -5
  71. package/dist/chunks/{chunk-RVXJ5MYA.js → chunk-LQZIENWB.js} +7 -7
  72. package/dist/chunks/{chunk-2QMXCXZ2.js → chunk-LWYW2DAK.js} +5 -5
  73. package/dist/chunks/{chunk-3T5AX2PC.js → chunk-MKAQAKHE.js} +2 -2
  74. package/dist/chunks/{chunk-NJWQUZF2.js → chunk-MXJAJXE7.js} +2 -2
  75. package/dist/chunks/{chunk-PXJ2KPOI.js → chunk-MXR77LCX.js} +2 -2
  76. package/dist/chunks/{chunk-YLCMBXE3.js → chunk-NSGEVYJC.js} +3 -3
  77. package/dist/chunks/{chunk-NRGGICBE.js → chunk-O4GHSR2X.js} +2 -2
  78. package/dist/chunks/chunk-P3LYPSD6.js +137 -0
  79. package/dist/chunks/chunk-P3LYPSD6.js.map +6 -0
  80. package/dist/chunks/{chunk-LOUV4VZ6.js → chunk-PNEFIK4E.js} +4 -4
  81. package/dist/chunks/{chunk-UYAI6F3R.js → chunk-PTPVAPCA.js} +3 -3
  82. package/dist/chunks/{chunk-GD7VSTWZ.js → chunk-QXKCTJWO.js} +2 -2
  83. package/dist/chunks/{chunk-YNY6XL5T.js → chunk-SK3JQNO5.js} +2 -2
  84. package/dist/chunks/{chunk-UWYDZYCZ.js → chunk-SU5VBBRS.js} +10 -10
  85. package/dist/chunks/{chunk-AZHBCP6G.js → chunk-SWH4CAIH.js} +51 -42
  86. package/dist/chunks/chunk-SWH4CAIH.js.map +6 -0
  87. package/dist/chunks/{chunk-2Q2TPLYP.js → chunk-T2CHZ6V7.js} +3 -3
  88. package/dist/chunks/{chunk-VG6RBHI4.js → chunk-TE4MIRMA.js} +5 -5
  89. package/dist/chunks/{chunk-D5RO75LO.js → chunk-THOVK7I5.js} +6 -6
  90. package/dist/chunks/{chunk-EYAWI7KU.js → chunk-TIMEEDY6.js} +34 -32
  91. package/dist/chunks/chunk-TIMEEDY6.js.map +6 -0
  92. package/dist/chunks/{chunk-KXUKJLA2.js → chunk-TLTD26JG.js} +2 -2
  93. package/dist/chunks/{chunk-2CYBRCPH.js → chunk-TUEZKY7I.js} +4 -4
  94. package/dist/chunks/{chunk-ZYSTDBP7.js → chunk-U3IK5VKD.js} +5 -5
  95. package/dist/chunks/{chunk-6JKNPDZD.js → chunk-UUQY5P7K.js} +10 -10
  96. package/dist/chunks/{chunk-IW3XMMEN.js → chunk-VBRCNXMM.js} +4 -4
  97. package/dist/chunks/{chunk-WY6KOPIY.js → chunk-VI66HXJT.js} +9 -9
  98. package/dist/chunks/{chunk-XFVVJAI3.js → chunk-VQ5KK7YF.js} +79 -7
  99. package/dist/chunks/chunk-VQ5KK7YF.js.map +6 -0
  100. package/dist/chunks/{chunk-6KIXUAOC.js → chunk-VQCP7LOK.js} +3 -3
  101. package/dist/chunks/{chunk-MZURZ6P4.js → chunk-VTS2SVX6.js} +2 -2
  102. package/dist/chunks/{chunk-G4R65ULE.js → chunk-W5TE6NIA.js} +2 -2
  103. package/dist/chunks/{chunk-ABOV5CRT.js → chunk-WDY7OHLQ.js} +542 -197
  104. package/dist/chunks/chunk-WDY7OHLQ.js.map +6 -0
  105. package/dist/chunks/{chunk-UNZNPAW7.js → chunk-WV45Z5QQ.js} +2 -2
  106. package/dist/chunks/{chunk-P6OOW3RL.js → chunk-X44EPHHA.js} +2 -2
  107. package/dist/chunks/{chunk-NFKSV6UI.js → chunk-XFCFWWFK.js} +2 -2
  108. package/dist/chunks/{chunk-UNO2ZRXA.js → chunk-XGS5WUCQ.js} +12 -12
  109. package/dist/chunks/{chunk-MNMKHEMI.js → chunk-Y4MKRX73.js} +2 -2
  110. package/dist/chunks/{chunk-53UWPLAF.js → chunk-YCJOAIDG.js} +29 -7
  111. package/dist/chunks/{chunk-53UWPLAF.js.map → chunk-YCJOAIDG.js.map} +1 -1
  112. package/dist/chunks/{chunk-QP435RW7.js → chunk-YDGUEMBB.js} +4 -4
  113. package/dist/chunks/{chunk-7T6TX47O.js → chunk-YIZXVNUY.js} +3 -3
  114. package/dist/chunks/{chunk-URIGGSIK.js → chunk-YNBAVIQA.js} +2 -2
  115. package/dist/chunks/{chunk-EADNTGVW.js → chunk-YPLYAESJ.js} +3 -3
  116. package/dist/chunks/{chunk-7PDUMQ4M.js → chunk-ZH5MQMMF.js} +21 -21
  117. package/dist/chunks/{chunk-D7JY7KNY.js → chunk-ZI5FFFBJ.js} +3 -3
  118. package/dist/chunks/{chunk-L2AKMCV3.js → chunk-ZIRQSGOG.js} +4 -4
  119. package/dist/chunks/{chunk-5S7U5MFW.js → chunk-ZVLTZDC4.js} +3 -3
  120. package/dist/chunks/{chunk-F3GGSHY2.js → chunk-ZZK2BVEH.js} +285 -137
  121. package/dist/chunks/chunk-ZZK2BVEH.js.map +6 -0
  122. package/dist/chunks/{cli-runtime-33Z22SZM.js → cli-runtime-V2FI7PIQ.js} +13 -13
  123. package/dist/chunks/{commands-DLREWCNK.js → commands-R2LZBXLK.js} +5 -5
  124. package/dist/chunks/{cost-MJOM52FI.js → cost-PQWWLMOO.js} +3 -3
  125. package/dist/chunks/{crash-report-62LMID3V.js → crash-report-MY27ZDU6.js} +6 -6
  126. package/dist/chunks/{dist-TCKNCSZO.js → dist-3HCAPKP5.js} +2 -2
  127. package/dist/chunks/{dist-HA6ABMIV.js → dist-4RNVO224.js} +2 -2
  128. package/dist/chunks/{dist-XFBNYCQ7.js → dist-7A7PB34A.js} +2 -2
  129. package/dist/chunks/{dist-MTYIYUQU.js → dist-MSFQTEPK.js} +2 -2
  130. package/dist/chunks/{dist-NUPNUHXB.js → dist-MT3MTMRF.js} +4 -2
  131. package/dist/chunks/{dist-U7A47UOF.js → dist-PH7MWV7K.js} +2 -2
  132. package/dist/chunks/{dist-HWU5U4SQ.js → dist-TIMUM4OR.js} +2 -2
  133. package/dist/chunks/{dist-IL4H4QGY.js → dist-Y4Q4SXRE.js} +2 -2
  134. package/dist/chunks/{doctor-V5C6R5EN.js → doctor-JRVQJERE.js} +40 -39
  135. package/dist/chunks/{drain-CS7XQ5B7.js → drain-YOE55I26.js} +12 -12
  136. package/dist/chunks/{entry-HXLBVNDK.js → entry-QAXRBCG3.js} +6 -6
  137. package/dist/chunks/{eval-NRBZ4IWO.js → eval-UPNYQIHO.js} +8 -8
  138. package/dist/chunks/{exec-GCNNTGHM.js → exec-LLOKYQZY.js} +53 -53
  139. package/dist/chunks/{home-GP3Y7F5H.js → home-7TSSDRFT.js} +3 -3
  140. package/dist/chunks/hooks-JNM3P24H.js +210 -0
  141. package/dist/chunks/hooks-JNM3P24H.js.map +6 -0
  142. package/dist/chunks/hooks-report-GGRTQH23.js +39 -0
  143. package/dist/chunks/{host-C5GIO57R.js → host-M2CYP3TP.js} +12 -12
  144. package/dist/chunks/{host-queries-F5Y3L7E4.js → host-queries-L7P5FQ36.js} +15 -15
  145. package/dist/chunks/{learn-5FEP65D6.js → learn-CBIMGXXS.js} +11 -11
  146. package/dist/chunks/{learn-builtin-HV3ASHAJ.js → learn-builtin-UHGQ6CNQ.js} +14 -14
  147. package/dist/chunks/{lifecycle-TMZEWFWF.js → lifecycle-NJGOR77O.js} +30 -30
  148. package/dist/chunks/{list-MD6ZN2PW.js → list-QZUWOS4I.js} +13 -13
  149. package/dist/chunks/{live-OVTHCQB3.js → live-LHKUQFEO.js} +38 -37
  150. package/dist/chunks/{load-ADBRLXAL.js → load-LF7GZYTP.js} +10 -8
  151. package/dist/chunks/{login-RV3AHE4C.js → login-F4NOOGD5.js} +12 -12
  152. package/dist/chunks/{logs-6SBW5BWD.js → logs-6CJCV6YU.js} +4 -4
  153. package/dist/chunks/{mcp-3QDMZ7PD.js → mcp-C7FQLLXL.js} +23 -23
  154. package/dist/chunks/{message-command-TW57Q7AB.js → message-command-BJPPVBGT.js} +48 -47
  155. package/dist/chunks/message-command-BJPPVBGT.js.map +6 -0
  156. package/dist/chunks/{open-K4R6E6QJ.js → open-GLWFBW4C.js} +8 -8
  157. package/dist/chunks/{operator-tools-YX4575HD.js → operator-tools-KQV2T5UU.js} +13 -13
  158. package/dist/chunks/{output-schema-QBKJSX77.js → output-schema-XXKTMSU6.js} +3 -3
  159. package/dist/chunks/{pal-KLH2IC3W.js → pal-4OZ7KPSC.js} +15 -15
  160. package/dist/chunks/{peers-5BMGZLHY.js → peers-4DMT2KZ2.js} +9 -9
  161. package/dist/chunks/{peers-6F4JS4VL.js → peers-SMOALKZW.js} +6 -6
  162. package/dist/chunks/{plugin-T6ULGX5N.js → plugin-IDW4AYIK.js} +20 -20
  163. package/dist/chunks/{providers-YJVPCIRI.js → providers-7HLI5PWI.js} +10 -10
  164. package/dist/chunks/{pty-UMMMCRJW.js → pty-SQBYCAX4.js} +3 -3
  165. package/dist/chunks/resume-2HBHZF54.js +23 -0
  166. package/dist/chunks/{resume-command-H4IJJDLH.js → resume-command-VCMPAWTN.js} +4 -4
  167. package/dist/chunks/{running-UTOYIBXM.js → running-DR4MSZ7B.js} +5 -5
  168. package/dist/chunks/{schedule-KWX4SXS5.js → schedule-W3QPDJRS.js} +8 -8
  169. package/dist/chunks/{send-UEL2L3VA.js → send-QDBFAZ5P.js} +15 -15
  170. package/dist/chunks/{send-person-X3SWXKWV.js → send-person-O5OJ7KHD.js} +13 -13
  171. package/dist/chunks/{service-4VS6XQ7O.js → service-5Z47V5KC.js} +30 -30
  172. package/dist/chunks/{skills-LK7WSDDG.js → skills-XYT6UUTP.js} +19 -19
  173. package/dist/chunks/{start-check-HTPENJ36.js → start-check-OKCRZ67I.js} +2 -2
  174. package/dist/chunks/{startup-failure-LKAHWAYZ.js → startup-failure-N3RO73Z4.js} +2 -2
  175. package/dist/chunks/{state-UQPKWIYT.js → state-7CLHPA4P.js} +2 -2
  176. package/dist/chunks/{store-BY6HMUUN.js → store-CNEKBGKD.js} +6 -6
  177. package/dist/chunks/{store-74PEEN6L.js → store-GA3I7BMG.js} +4 -4
  178. package/dist/chunks/{store-UHIHEGKS.js → store-YFAH5XGW.js} +3 -3
  179. package/dist/chunks/{store-MILGWYSA.js → store-ZDFRYDWS.js} +12 -10
  180. package/dist/chunks/store-ZDFRYDWS.js.map +6 -0
  181. package/dist/chunks/{tui-FOVSBYCD.js → tui-T6VPVMEV.js} +88 -87
  182. package/dist/chunks/tui-T6VPVMEV.js.map +6 -0
  183. package/dist/chunks/{upgrade-V5ST42EQ.js → upgrade-SW474CXN.js} +9 -9
  184. package/dist/chunks/{watch-Q7MSKZIA.js → watch-OIYLZVDF.js} +118 -90
  185. package/dist/chunks/watch-OIYLZVDF.js.map +6 -0
  186. package/dist/chunks/{workspaces-2AL72WFH.js → workspaces-YQW2E6PE.js} +19 -19
  187. package/dist/chunks/{worktree-QPKIZBSK.js → worktree-ZMMQI2Z5.js} +20 -20
  188. package/dist/cli.d.ts.map +1 -1
  189. package/dist/commands/desktop-host.d.ts +7 -0
  190. package/dist/commands/desktop-host.d.ts.map +1 -1
  191. package/dist/commands/hooks.d.ts +13 -0
  192. package/dist/commands/hooks.d.ts.map +1 -0
  193. package/dist/commands/manifest.d.ts +1 -0
  194. package/dist/commands/manifest.d.ts.map +1 -1
  195. package/dist/config/hooks-report.d.ts +162 -0
  196. package/dist/config/hooks-report.d.ts.map +1 -0
  197. package/dist/config/load.d.ts +30 -2
  198. package/dist/config/load.d.ts.map +1 -1
  199. package/dist/index.js +43 -42
  200. package/dist/integrations/plugins/hook-entries.d.ts +34 -0
  201. package/dist/integrations/plugins/hook-entries.d.ts.map +1 -1
  202. package/dist/integrations/sessions/conversation-facts.d.ts +12 -0
  203. package/dist/integrations/sessions/conversation-facts.d.ts.map +1 -1
  204. package/dist/integrations/sessions/store.d.ts +11 -1
  205. package/dist/integrations/sessions/store.d.ts.map +1 -1
  206. package/dist/integrations/sessions/watch-view.d.ts +2 -0
  207. package/dist/integrations/sessions/watch-view.d.ts.map +1 -1
  208. package/dist/integrations/subagents/replay.d.ts +6 -0
  209. package/dist/integrations/subagents/replay.d.ts.map +1 -1
  210. package/dist/skills/restore-skill-hooks.d.ts +16 -0
  211. package/dist/skills/restore-skill-hooks.d.ts.map +1 -0
  212. package/dist/skills/skill-hooks.d.ts +21 -0
  213. package/dist/skills/skill-hooks.d.ts.map +1 -1
  214. package/dist/tui/App.d.ts.map +1 -1
  215. package/dist/tui/ReadSearchGroup.d.ts.map +1 -1
  216. package/dist/tui/Transcript.d.ts.map +1 -1
  217. package/dist/tui/agent-transcript-rows.d.ts +3 -1
  218. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  219. package/dist/tui/agent.d.ts.map +1 -1
  220. package/dist/tui/fullscreen/layout.d.ts +9 -1
  221. package/dist/tui/fullscreen/layout.d.ts.map +1 -1
  222. package/dist/tui/fullscreen/markdown-rows.d.ts +18 -18
  223. package/dist/tui/fullscreen/markdown-rows.d.ts.map +1 -1
  224. package/dist/tui/fullscreen/reply-rows.d.ts +83 -0
  225. package/dist/tui/fullscreen/reply-rows.d.ts.map +1 -0
  226. package/dist/tui/hint-fit.d.ts +36 -0
  227. package/dist/tui/hint-fit.d.ts.map +1 -0
  228. package/dist/tui/restored-rows.d.ts +6 -0
  229. package/dist/tui/restored-rows.d.ts.map +1 -1
  230. package/dist/tui/transcript-scroll.d.ts +1 -1
  231. package/dist/tui/transcript-scroll.d.ts.map +1 -1
  232. package/package.json +7 -7
  233. package/dist/chunks/acp-UVCLNIXU.js.map +0 -6
  234. package/dist/chunks/agent-session-H3OE6ZJT.js +0 -76
  235. package/dist/chunks/chunk-ABOV5CRT.js.map +0 -6
  236. package/dist/chunks/chunk-AZHBCP6G.js.map +0 -6
  237. package/dist/chunks/chunk-C74LVDRC.js.map +0 -6
  238. package/dist/chunks/chunk-EYAWI7KU.js.map +0 -6
  239. package/dist/chunks/chunk-F3GGSHY2.js.map +0 -6
  240. package/dist/chunks/chunk-H7UZKOVC.js.map +0 -6
  241. package/dist/chunks/chunk-XFVVJAI3.js.map +0 -6
  242. package/dist/chunks/message-command-TW57Q7AB.js.map +0 -6
  243. package/dist/chunks/resume-RKZ52FZP.js +0 -23
  244. package/dist/chunks/tui-FOVSBYCD.js.map +0 -6
  245. package/dist/chunks/watch-Q7MSKZIA.js.map +0 -6
  246. /package/dist/chunks/{activity-command-2QIWTUUB.js.map → activity-command-IBOJOCRF.js.map} +0 -0
  247. /package/dist/chunks/{add-2YDEALUT.js.map → add-LYBL3IC7.js.map} +0 -0
  248. /package/dist/chunks/{agent-IKQ67NMW.js.map → agent-LTLWJW3P.js.map} +0 -0
  249. /package/dist/chunks/{agent-session-H3OE6ZJT.js.map → agent-session-BD2AHK5S.js.map} +0 -0
  250. /package/dist/chunks/{apply-at-exit-F4G7PCZL.js.map → apply-at-exit-7BF3KBU2.js.map} +0 -0
  251. /package/dist/chunks/{archive-FOTYHQPL.js.map → archive-FCPUCOYT.js.map} +0 -0
  252. /package/dist/chunks/{bin-main-DWOCG2WK.js.map → bin-main-AVPCWJHJ.js.map} +0 -0
  253. /package/dist/chunks/{binding-2GEVBR5H.js.map → binding-OZCOSUYV.js.map} +0 -0
  254. /package/dist/chunks/{browser-WYPSIPEZ.js.map → browser-LR25NVO7.js.map} +0 -0
  255. /package/dist/chunks/{chat-LWVIDEXR.js.map → chat-PP7XU7US.js.map} +0 -0
  256. /package/dist/chunks/{chunk-5F4SSZKS.js.map → chunk-2KNLSJFS.js.map} +0 -0
  257. /package/dist/chunks/{chunk-FWTWILCD.js.map → chunk-2O6LZGGG.js.map} +0 -0
  258. /package/dist/chunks/{chunk-6APCO6YC.js.map → chunk-32LCSSAN.js.map} +0 -0
  259. /package/dist/chunks/{chunk-33WFG4C3.js.map → chunk-3Q42HHZM.js.map} +0 -0
  260. /package/dist/chunks/{chunk-DTORDCJR.js.map → chunk-3WTIGIDA.js.map} +0 -0
  261. /package/dist/chunks/{chunk-E7GZ5OXM.js.map → chunk-4KMFIIWV.js.map} +0 -0
  262. /package/dist/chunks/{chunk-DHWD5YYD.js.map → chunk-4NVFHP23.js.map} +0 -0
  263. /package/dist/chunks/{chunk-QPAWT3EG.js.map → chunk-4Q4J3KDG.js.map} +0 -0
  264. /package/dist/chunks/{chunk-YVJVXTUS.js.map → chunk-4VB264C5.js.map} +0 -0
  265. /package/dist/chunks/{chunk-6CXEEZLK.js.map → chunk-4VXS3UYL.js.map} +0 -0
  266. /package/dist/chunks/{chunk-6NUQEVHG.js.map → chunk-5FEAC3G5.js.map} +0 -0
  267. /package/dist/chunks/{chunk-QTPZCVPP.js.map → chunk-5HCZHDPA.js.map} +0 -0
  268. /package/dist/chunks/{chunk-QBCGPM4E.js.map → chunk-5OAKUXE3.js.map} +0 -0
  269. /package/dist/chunks/{chunk-3EEKLQXD.js.map → chunk-5YNAPIUZ.js.map} +0 -0
  270. /package/dist/chunks/{chunk-VV2EHZOG.js.map → chunk-6SHOR62K.js.map} +0 -0
  271. /package/dist/chunks/{chunk-PXA27JGJ.js.map → chunk-72IJ3FQU.js.map} +0 -0
  272. /package/dist/chunks/{chunk-XTVF376M.js.map → chunk-AO4A56EG.js.map} +0 -0
  273. /package/dist/chunks/{chunk-XODDL7OV.js.map → chunk-BFCUL4BW.js.map} +0 -0
  274. /package/dist/chunks/{chunk-T3NIOUQJ.js.map → chunk-CKWDYYBE.js.map} +0 -0
  275. /package/dist/chunks/{chunk-XLDFNUCV.js.map → chunk-CSBKGTBA.js.map} +0 -0
  276. /package/dist/chunks/{chunk-NW6VBCCU.js.map → chunk-D3JJE6VZ.js.map} +0 -0
  277. /package/dist/chunks/{chunk-ORCR5VST.js.map → chunk-DEEK2FOC.js.map} +0 -0
  278. /package/dist/chunks/{chunk-DCMZYSON.js.map → chunk-DEH4YIDN.js.map} +0 -0
  279. /package/dist/chunks/{chunk-CMHOQ62S.js.map → chunk-DSMBM5LQ.js.map} +0 -0
  280. /package/dist/chunks/{chunk-GZNTRTD5.js.map → chunk-EC2F3CWT.js.map} +0 -0
  281. /package/dist/chunks/{chunk-4ASCYXSH.js.map → chunk-EMXH2RJN.js.map} +0 -0
  282. /package/dist/chunks/{chunk-XKIV3H62.js.map → chunk-EQGE25MQ.js.map} +0 -0
  283. /package/dist/chunks/{chunk-5JQIGBBR.js.map → chunk-F2TXNDKC.js.map} +0 -0
  284. /package/dist/chunks/{chunk-TMOEYXPR.js.map → chunk-FK6WJQ5T.js.map} +0 -0
  285. /package/dist/chunks/{chunk-MDY2IMVQ.js.map → chunk-FRADQASS.js.map} +0 -0
  286. /package/dist/chunks/{chunk-RPXTYB22.js.map → chunk-FS7CUHOG.js.map} +0 -0
  287. /package/dist/chunks/{chunk-G7LMPHZE.js.map → chunk-GFZFGTDZ.js.map} +0 -0
  288. /package/dist/chunks/{chunk-QE5PQM5T.js.map → chunk-GXCOSOVM.js.map} +0 -0
  289. /package/dist/chunks/{chunk-NIRQFXO6.js.map → chunk-HJJNIG33.js.map} +0 -0
  290. /package/dist/chunks/{chunk-4EBZUUE4.js.map → chunk-HUDP4HTK.js.map} +0 -0
  291. /package/dist/chunks/{chunk-QIDU76IF.js.map → chunk-IBPN346S.js.map} +0 -0
  292. /package/dist/chunks/{chunk-3HJXXP6L.js.map → chunk-IERT7D34.js.map} +0 -0
  293. /package/dist/chunks/{chunk-LC7SV2KM.js.map → chunk-IPAGLYU3.js.map} +0 -0
  294. /package/dist/chunks/{chunk-MTY4XYDO.js.map → chunk-ISHCON5Z.js.map} +0 -0
  295. /package/dist/chunks/{chunk-HFZLLEJS.js.map → chunk-J6I6MCWR.js.map} +0 -0
  296. /package/dist/chunks/{chunk-FBRYV5YN.js.map → chunk-JFLX34FA.js.map} +0 -0
  297. /package/dist/chunks/{chunk-RXUWYGFX.js.map → chunk-JXJIKAAE.js.map} +0 -0
  298. /package/dist/chunks/{chunk-BLGPF6UL.js.map → chunk-K3QEZ7D7.js.map} +0 -0
  299. /package/dist/chunks/{chunk-6RTDZGPO.js.map → chunk-KFWQSTT3.js.map} +0 -0
  300. /package/dist/chunks/{chunk-LQJLTW2D.js.map → chunk-KHQAU33M.js.map} +0 -0
  301. /package/dist/chunks/{chunk-RFGMOXA6.js.map → chunk-KNBFV3DC.js.map} +0 -0
  302. /package/dist/chunks/{chunk-LRFRTQW7.js.map → chunk-L2Q7APTU.js.map} +0 -0
  303. /package/dist/chunks/{chunk-S5R2E5TZ.js.map → chunk-LHZ632YK.js.map} +0 -0
  304. /package/dist/chunks/{chunk-RVXJ5MYA.js.map → chunk-LQZIENWB.js.map} +0 -0
  305. /package/dist/chunks/{chunk-2QMXCXZ2.js.map → chunk-LWYW2DAK.js.map} +0 -0
  306. /package/dist/chunks/{chunk-3T5AX2PC.js.map → chunk-MKAQAKHE.js.map} +0 -0
  307. /package/dist/chunks/{chunk-NJWQUZF2.js.map → chunk-MXJAJXE7.js.map} +0 -0
  308. /package/dist/chunks/{chunk-PXJ2KPOI.js.map → chunk-MXR77LCX.js.map} +0 -0
  309. /package/dist/chunks/{chunk-YLCMBXE3.js.map → chunk-NSGEVYJC.js.map} +0 -0
  310. /package/dist/chunks/{chunk-NRGGICBE.js.map → chunk-O4GHSR2X.js.map} +0 -0
  311. /package/dist/chunks/{chunk-LOUV4VZ6.js.map → chunk-PNEFIK4E.js.map} +0 -0
  312. /package/dist/chunks/{chunk-UYAI6F3R.js.map → chunk-PTPVAPCA.js.map} +0 -0
  313. /package/dist/chunks/{chunk-GD7VSTWZ.js.map → chunk-QXKCTJWO.js.map} +0 -0
  314. /package/dist/chunks/{chunk-YNY6XL5T.js.map → chunk-SK3JQNO5.js.map} +0 -0
  315. /package/dist/chunks/{chunk-UWYDZYCZ.js.map → chunk-SU5VBBRS.js.map} +0 -0
  316. /package/dist/chunks/{chunk-2Q2TPLYP.js.map → chunk-T2CHZ6V7.js.map} +0 -0
  317. /package/dist/chunks/{chunk-VG6RBHI4.js.map → chunk-TE4MIRMA.js.map} +0 -0
  318. /package/dist/chunks/{chunk-D5RO75LO.js.map → chunk-THOVK7I5.js.map} +0 -0
  319. /package/dist/chunks/{chunk-KXUKJLA2.js.map → chunk-TLTD26JG.js.map} +0 -0
  320. /package/dist/chunks/{chunk-2CYBRCPH.js.map → chunk-TUEZKY7I.js.map} +0 -0
  321. /package/dist/chunks/{chunk-ZYSTDBP7.js.map → chunk-U3IK5VKD.js.map} +0 -0
  322. /package/dist/chunks/{chunk-6JKNPDZD.js.map → chunk-UUQY5P7K.js.map} +0 -0
  323. /package/dist/chunks/{chunk-IW3XMMEN.js.map → chunk-VBRCNXMM.js.map} +0 -0
  324. /package/dist/chunks/{chunk-WY6KOPIY.js.map → chunk-VI66HXJT.js.map} +0 -0
  325. /package/dist/chunks/{chunk-6KIXUAOC.js.map → chunk-VQCP7LOK.js.map} +0 -0
  326. /package/dist/chunks/{chunk-MZURZ6P4.js.map → chunk-VTS2SVX6.js.map} +0 -0
  327. /package/dist/chunks/{chunk-G4R65ULE.js.map → chunk-W5TE6NIA.js.map} +0 -0
  328. /package/dist/chunks/{chunk-UNZNPAW7.js.map → chunk-WV45Z5QQ.js.map} +0 -0
  329. /package/dist/chunks/{chunk-P6OOW3RL.js.map → chunk-X44EPHHA.js.map} +0 -0
  330. /package/dist/chunks/{chunk-NFKSV6UI.js.map → chunk-XFCFWWFK.js.map} +0 -0
  331. /package/dist/chunks/{chunk-UNO2ZRXA.js.map → chunk-XGS5WUCQ.js.map} +0 -0
  332. /package/dist/chunks/{chunk-MNMKHEMI.js.map → chunk-Y4MKRX73.js.map} +0 -0
  333. /package/dist/chunks/{chunk-QP435RW7.js.map → chunk-YDGUEMBB.js.map} +0 -0
  334. /package/dist/chunks/{chunk-7T6TX47O.js.map → chunk-YIZXVNUY.js.map} +0 -0
  335. /package/dist/chunks/{chunk-URIGGSIK.js.map → chunk-YNBAVIQA.js.map} +0 -0
  336. /package/dist/chunks/{chunk-EADNTGVW.js.map → chunk-YPLYAESJ.js.map} +0 -0
  337. /package/dist/chunks/{chunk-7PDUMQ4M.js.map → chunk-ZH5MQMMF.js.map} +0 -0
  338. /package/dist/chunks/{chunk-D7JY7KNY.js.map → chunk-ZI5FFFBJ.js.map} +0 -0
  339. /package/dist/chunks/{chunk-L2AKMCV3.js.map → chunk-ZIRQSGOG.js.map} +0 -0
  340. /package/dist/chunks/{chunk-5S7U5MFW.js.map → chunk-ZVLTZDC4.js.map} +0 -0
  341. /package/dist/chunks/{cli-runtime-33Z22SZM.js.map → cli-runtime-V2FI7PIQ.js.map} +0 -0
  342. /package/dist/chunks/{commands-DLREWCNK.js.map → commands-R2LZBXLK.js.map} +0 -0
  343. /package/dist/chunks/{cost-MJOM52FI.js.map → cost-PQWWLMOO.js.map} +0 -0
  344. /package/dist/chunks/{crash-report-62LMID3V.js.map → crash-report-MY27ZDU6.js.map} +0 -0
  345. /package/dist/chunks/{dist-TCKNCSZO.js.map → dist-3HCAPKP5.js.map} +0 -0
  346. /package/dist/chunks/{dist-HA6ABMIV.js.map → dist-4RNVO224.js.map} +0 -0
  347. /package/dist/chunks/{dist-XFBNYCQ7.js.map → dist-7A7PB34A.js.map} +0 -0
  348. /package/dist/chunks/{dist-MTYIYUQU.js.map → dist-MSFQTEPK.js.map} +0 -0
  349. /package/dist/chunks/{dist-NUPNUHXB.js.map → dist-MT3MTMRF.js.map} +0 -0
  350. /package/dist/chunks/{dist-U7A47UOF.js.map → dist-PH7MWV7K.js.map} +0 -0
  351. /package/dist/chunks/{dist-HWU5U4SQ.js.map → dist-TIMUM4OR.js.map} +0 -0
  352. /package/dist/chunks/{dist-IL4H4QGY.js.map → dist-Y4Q4SXRE.js.map} +0 -0
  353. /package/dist/chunks/{doctor-V5C6R5EN.js.map → doctor-JRVQJERE.js.map} +0 -0
  354. /package/dist/chunks/{drain-CS7XQ5B7.js.map → drain-YOE55I26.js.map} +0 -0
  355. /package/dist/chunks/{entry-HXLBVNDK.js.map → entry-QAXRBCG3.js.map} +0 -0
  356. /package/dist/chunks/{eval-NRBZ4IWO.js.map → eval-UPNYQIHO.js.map} +0 -0
  357. /package/dist/chunks/{exec-GCNNTGHM.js.map → exec-LLOKYQZY.js.map} +0 -0
  358. /package/dist/chunks/{home-GP3Y7F5H.js.map → home-7TSSDRFT.js.map} +0 -0
  359. /package/dist/chunks/{host-C5GIO57R.js.map → hooks-report-GGRTQH23.js.map} +0 -0
  360. /package/dist/chunks/{lifecycle-TMZEWFWF.js.map → host-M2CYP3TP.js.map} +0 -0
  361. /package/dist/chunks/{host-queries-F5Y3L7E4.js.map → host-queries-L7P5FQ36.js.map} +0 -0
  362. /package/dist/chunks/{learn-5FEP65D6.js.map → learn-CBIMGXXS.js.map} +0 -0
  363. /package/dist/chunks/{learn-builtin-HV3ASHAJ.js.map → learn-builtin-UHGQ6CNQ.js.map} +0 -0
  364. /package/dist/chunks/{live-OVTHCQB3.js.map → lifecycle-NJGOR77O.js.map} +0 -0
  365. /package/dist/chunks/{list-MD6ZN2PW.js.map → list-QZUWOS4I.js.map} +0 -0
  366. /package/dist/chunks/{load-ADBRLXAL.js.map → live-LHKUQFEO.js.map} +0 -0
  367. /package/dist/chunks/{login-RV3AHE4C.js.map → load-LF7GZYTP.js.map} +0 -0
  368. /package/dist/chunks/{open-K4R6E6QJ.js.map → login-F4NOOGD5.js.map} +0 -0
  369. /package/dist/chunks/{logs-6SBW5BWD.js.map → logs-6CJCV6YU.js.map} +0 -0
  370. /package/dist/chunks/{mcp-3QDMZ7PD.js.map → mcp-C7FQLLXL.js.map} +0 -0
  371. /package/dist/chunks/{output-schema-QBKJSX77.js.map → open-GLWFBW4C.js.map} +0 -0
  372. /package/dist/chunks/{operator-tools-YX4575HD.js.map → operator-tools-KQV2T5UU.js.map} +0 -0
  373. /package/dist/chunks/{peers-6F4JS4VL.js.map → output-schema-XXKTMSU6.js.map} +0 -0
  374. /package/dist/chunks/{pal-KLH2IC3W.js.map → pal-4OZ7KPSC.js.map} +0 -0
  375. /package/dist/chunks/{peers-5BMGZLHY.js.map → peers-4DMT2KZ2.js.map} +0 -0
  376. /package/dist/chunks/{providers-YJVPCIRI.js.map → peers-SMOALKZW.js.map} +0 -0
  377. /package/dist/chunks/{plugin-T6ULGX5N.js.map → plugin-IDW4AYIK.js.map} +0 -0
  378. /package/dist/chunks/{pty-UMMMCRJW.js.map → providers-7HLI5PWI.js.map} +0 -0
  379. /package/dist/chunks/{resume-RKZ52FZP.js.map → pty-SQBYCAX4.js.map} +0 -0
  380. /package/dist/chunks/{resume-command-H4IJJDLH.js.map → resume-2HBHZF54.js.map} +0 -0
  381. /package/dist/chunks/{running-UTOYIBXM.js.map → resume-command-VCMPAWTN.js.map} +0 -0
  382. /package/dist/chunks/{send-UEL2L3VA.js.map → running-DR4MSZ7B.js.map} +0 -0
  383. /package/dist/chunks/{schedule-KWX4SXS5.js.map → schedule-W3QPDJRS.js.map} +0 -0
  384. /package/dist/chunks/{send-person-X3SWXKWV.js.map → send-QDBFAZ5P.js.map} +0 -0
  385. /package/dist/chunks/{start-check-HTPENJ36.js.map → send-person-O5OJ7KHD.js.map} +0 -0
  386. /package/dist/chunks/{service-4VS6XQ7O.js.map → service-5Z47V5KC.js.map} +0 -0
  387. /package/dist/chunks/{skills-LK7WSDDG.js.map → skills-XYT6UUTP.js.map} +0 -0
  388. /package/dist/chunks/{store-74PEEN6L.js.map → start-check-OKCRZ67I.js.map} +0 -0
  389. /package/dist/chunks/{startup-failure-LKAHWAYZ.js.map → startup-failure-N3RO73Z4.js.map} +0 -0
  390. /package/dist/chunks/{state-UQPKWIYT.js.map → state-7CLHPA4P.js.map} +0 -0
  391. /package/dist/chunks/{store-BY6HMUUN.js.map → store-CNEKBGKD.js.map} +0 -0
  392. /package/dist/chunks/{store-MILGWYSA.js.map → store-GA3I7BMG.js.map} +0 -0
  393. /package/dist/chunks/{store-UHIHEGKS.js.map → store-YFAH5XGW.js.map} +0 -0
  394. /package/dist/chunks/{upgrade-V5ST42EQ.js.map → upgrade-SW474CXN.js.map} +0 -0
  395. /package/dist/chunks/{workspaces-2AL72WFH.js.map → workspaces-YQW2E6PE.js.map} +0 -0
  396. /package/dist/chunks/{worktree-QPKIZBSK.js.map → worktree-ZMMQI2Z5.js.map} +0 -0
@@ -3,29 +3,13 @@ const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  createCliPluginRuntime,
5
5
  openManagedWorktrees
6
- } from "./chunk-RVXJ5MYA.js";
7
- import {
8
- runGeneratorCycle
9
- } from "./chunk-XODDL7OV.js";
10
- import {
11
- createSessionLearningFeed,
12
- openLearningTarget,
13
- readProjectGuidance,
14
- withSessionLearningFeed
15
- } from "./chunk-QP435RW7.js";
16
- import {
17
- connectMcpServers,
18
- startMcpServers
19
- } from "./chunk-L2AKMCV3.js";
20
- import {
21
- openInBrowser
22
- } from "./chunk-G7LMPHZE.js";
6
+ } from "./chunk-LQZIENWB.js";
23
7
  import {
24
8
  readPluginFileSources
25
- } from "./chunk-ZYSTDBP7.js";
9
+ } from "./chunk-U3IK5VKD.js";
26
10
  import {
27
11
  createSessionSkillCatalog
28
- } from "./chunk-5S7U5MFW.js";
12
+ } from "./chunk-ZVLTZDC4.js";
29
13
  import {
30
14
  KEY_MISMATCH_MESSAGE,
31
15
  MAX_SCRIPT_BYTES,
@@ -49,7 +33,23 @@ import {
49
33
  viewFromJournal,
50
34
  workflowJournalKey,
51
35
  writeEditableCopy
52
- } from "./chunk-MNMKHEMI.js";
36
+ } from "./chunk-Y4MKRX73.js";
37
+ import {
38
+ runGeneratorCycle
39
+ } from "./chunk-BFCUL4BW.js";
40
+ import {
41
+ createSessionLearningFeed,
42
+ openLearningTarget,
43
+ readProjectGuidance,
44
+ withSessionLearningFeed
45
+ } from "./chunk-YDGUEMBB.js";
46
+ import {
47
+ connectMcpServers,
48
+ startMcpServers
49
+ } from "./chunk-ZIRQSGOG.js";
50
+ import {
51
+ openInBrowser
52
+ } from "./chunk-GFZFGTDZ.js";
53
53
  import {
54
54
  createBrowserControl
55
55
  } from "./chunk-WHODOMXA.js";
@@ -58,10 +58,10 @@ import {
58
58
  } from "./chunk-YOWYTBJS.js";
59
59
  import {
60
60
  migrateAccountKeys
61
- } from "./chunk-TMOEYXPR.js";
61
+ } from "./chunk-FK6WJQ5T.js";
62
62
  import {
63
63
  openCliAccounts
64
- } from "./chunk-RFGMOXA6.js";
64
+ } from "./chunk-KNBFV3DC.js";
65
65
  import {
66
66
  CredentialRefreshRejectedError,
67
67
  CredentialWithdrawnError as CredentialWithdrawnError2,
@@ -69,16 +69,17 @@ import {
69
69
  ensureFreshStoredCodexCredential,
70
70
  readSubscriptionCredential,
71
71
  sameOAuthCredential
72
- } from "./chunk-2CYBRCPH.js";
72
+ } from "./chunk-TUEZKY7I.js";
73
73
  import {
74
74
  conversationLogPath,
75
75
  ensureSessionStarted,
76
76
  openConversationLog,
77
+ readConversationFacts,
77
78
  recordAccountBound
78
- } from "./chunk-XFVVJAI3.js";
79
+ } from "./chunk-VQ5KK7YF.js";
79
80
  import {
80
81
  readIdentity
81
- } from "./chunk-2Q2TPLYP.js";
82
+ } from "./chunk-T2CHZ6V7.js";
82
83
  import {
83
84
  INSTRUCTIONS_FILENAME,
84
85
  MAX_CHARS_PER_FILE,
@@ -89,21 +90,12 @@ import {
89
90
  } from "./chunk-JQIBPPOL.js";
90
91
  import {
91
92
  isDefaultAccountId
92
- } from "./chunk-MZURZ6P4.js";
93
+ } from "./chunk-VTS2SVX6.js";
93
94
  import {
94
95
  createLazyCodeAnalysis,
95
- discoverAgentDefinitions,
96
96
  promptCacheTtl,
97
97
  setPromptCacheTtl
98
- } from "./chunk-H7UZKOVC.js";
99
- import {
100
- createAgentHooksHost
101
- } from "./chunk-DCMZYSON.js";
102
- import {
103
- readSkillHooks,
104
- withoutConversationEvents,
105
- withoutSessionStart
106
- } from "./chunk-3HJXXP6L.js";
98
+ } from "./chunk-FAWY4LRG.js";
107
99
  import {
108
100
  DEFAULT_MAX_HOOK_REFUSALS,
109
101
  SAVE_SKILL_TOOL_NAME,
@@ -113,31 +105,45 @@ import {
113
105
  turnConfigFields,
114
106
  withSandboxShell,
115
107
  workingDirectoryProblem
116
- } from "./chunk-3EEKLQXD.js";
108
+ } from "./chunk-5YNAPIUZ.js";
117
109
  import {
118
110
  CHECK_HINT
119
111
  } from "./chunk-BBTPD3DU.js";
112
+ import {
113
+ ensureLocalConfigIgnored,
114
+ logIgnoreOutcome,
115
+ probeCapabilities,
116
+ writeLocalAllows
117
+ } from "./chunk-VBRCNXMM.js";
120
118
  import {
121
119
  conversationInUseSentence,
122
120
  minutesUntilFree
123
- } from "./chunk-D7JY7KNY.js";
121
+ } from "./chunk-ZI5FFFBJ.js";
124
122
  import {
125
123
  debugRequested
126
124
  } from "./chunk-GNBMKISG.js";
127
- import {
128
- ensureLocalConfigIgnored,
129
- logIgnoreOutcome,
130
- probeCapabilities,
131
- writeLocalAllows
132
- } from "./chunk-IW3XMMEN.js";
133
125
  import {
134
126
  isPermissionMode,
135
127
  permissionModeLabel
136
- } from "./chunk-NJWQUZF2.js";
128
+ } from "./chunk-MXJAJXE7.js";
137
129
  import {
138
130
  diffColors,
139
131
  theme
140
132
  } from "./chunk-WD2F6EO3.js";
133
+ import {
134
+ discoverAgentDefinitions
135
+ } from "./chunk-P3LYPSD6.js";
136
+ import {
137
+ createAgentHooksHost
138
+ } from "./chunk-DEH4YIDN.js";
139
+ import {
140
+ readSkillHooks,
141
+ withoutConversationEvents,
142
+ withoutSessionStart
143
+ } from "./chunk-IERT7D34.js";
144
+ import {
145
+ parseSkillMarkdown
146
+ } from "./chunk-JFLX34FA.js";
141
147
  import {
142
148
  chainCapabilityDisagreements,
143
149
  chainPositionName,
@@ -149,7 +155,7 @@ import {
149
155
  readPreferences,
150
156
  resolveChainCapabilities,
151
157
  unresolvedMembers
152
- } from "./chunk-UNO2ZRXA.js";
158
+ } from "./chunk-XGS5WUCQ.js";
153
159
  import {
154
160
  canSelectModel,
155
161
  createGeminiAccessTokenResolver,
@@ -157,7 +163,7 @@ import {
157
163
  findDetected,
158
164
  hasApiCredential,
159
165
  requiresCredentialForModel
160
- } from "./chunk-RXUWYGFX.js";
166
+ } from "./chunk-JXJIKAAE.js";
161
167
  import {
162
168
  activeZenCatalogue,
163
169
  isOfferableModel
@@ -172,16 +178,16 @@ import {
172
178
  takeConfigWarnings,
173
179
  unmatchedPassthroughTools,
174
180
  workflowTokenCeiling
175
- } from "./chunk-53UWPLAF.js";
181
+ } from "./chunk-YCJOAIDG.js";
176
182
  import {
177
183
  resolveGeneratorSettings
178
184
  } from "./chunk-LCGXWCVU.js";
179
185
  import {
180
186
  compilePermissions
181
- } from "./chunk-DHWD5YYD.js";
187
+ } from "./chunk-4NVFHP23.js";
182
188
  import {
183
189
  cliLogger
184
- } from "./chunk-G4R65ULE.js";
190
+ } from "./chunk-W5TE6NIA.js";
185
191
  import {
186
192
  readModelLaunchEnvironment
187
193
  } from "./chunk-LVVD32KJ.js";
@@ -205,23 +211,23 @@ import {
205
211
  import {
206
212
  isAnthropicOAuthToken,
207
213
  readCodexCredentialFile
208
- } from "./chunk-ORCR5VST.js";
214
+ } from "./chunk-DEEK2FOC.js";
209
215
  import {
210
216
  composeEnvironmentPrompt,
211
217
  detectWsl,
212
218
  environmentFactLines,
213
219
  permissionSentence,
214
220
  readEnvironmentFacts
215
- } from "./chunk-MDY2IMVQ.js";
221
+ } from "./chunk-FRADQASS.js";
216
222
  import {
217
223
  ensurePrivateStateDirectory
218
- } from "./chunk-NRGGICBE.js";
224
+ } from "./chunk-O4GHSR2X.js";
219
225
  import {
220
226
  isTrusted
221
- } from "./chunk-CMHOQ62S.js";
227
+ } from "./chunk-DSMBM5LQ.js";
222
228
  import {
223
229
  namzuHomePath
224
- } from "./chunk-5F4SSZKS.js";
230
+ } from "./chunk-2KNLSJFS.js";
225
231
  import {
226
232
  AgentManager,
227
233
  AgentRegistry,
@@ -411,7 +417,7 @@ import {
411
417
  withProviderFallback,
412
418
  worktreeHookHost,
413
419
  wrapUntrusted
414
- } from "./chunk-C74LVDRC.js";
420
+ } from "./chunk-JTEWIH66.js";
415
421
  import {
416
422
  __name,
417
423
  __toESM
@@ -733,10 +739,10 @@ var tail = Promise.resolve();
733
739
  var nextStart = 0;
734
740
  function cancelled(promise, signal) {
735
741
  signal.throwIfAborted();
736
- return new Promise((resolve15, reject) => {
742
+ return new Promise((resolve16, reject) => {
737
743
  const abort = /* @__PURE__ */ __name(() => reject(signal.reason), "abort");
738
744
  signal.addEventListener("abort", abort, { once: true });
739
- promise.then(resolve15, reject).finally(() => signal.removeEventListener("abort", abort));
745
+ promise.then(resolve16, reject).finally(() => signal.removeEventListener("abort", abort));
740
746
  });
741
747
  }
742
748
  __name(cancelled, "cancelled");
@@ -777,8 +783,8 @@ async function searchExa(query2, limit, context) {
777
783
  const deadline = Date.now() + DEADLINE_MS;
778
784
  const previous = tail;
779
785
  let release;
780
- tail = new Promise((resolve15) => {
781
- release = resolve15;
786
+ tail = new Promise((resolve16) => {
787
+ release = resolve16;
782
788
  });
783
789
  let acquired = false;
784
790
  try {
@@ -2036,7 +2042,7 @@ __name(screenApprover, "screenApprover");
2036
2042
 
2037
2043
  // src/tui/agent.ts
2038
2044
  import { realpath as realpath5, stat as stat7 } from "node:fs/promises";
2039
- import { join as join18, parse as parse2, resolve as resolve14, sep as sep8 } from "node:path";
2045
+ import { join as join19, parse as parse2, resolve as resolve15, sep as sep9 } from "node:path";
2040
2046
 
2041
2047
  // src/checkpoints/store.ts
2042
2048
  import { randomUUID as randomUUID2 } from "node:crypto";
@@ -5938,12 +5944,12 @@ function findAzOnPath(env) {
5938
5944
  return void 0;
5939
5945
  }
5940
5946
  __name(findAzOnPath, "findAzOnPath");
5941
- var defaultRunAz = /* @__PURE__ */ __name((command, args) => new Promise((resolve15, reject) => {
5947
+ var defaultRunAz = /* @__PURE__ */ __name((command, args) => new Promise((resolve16, reject) => {
5942
5948
  execFile2(
5943
5949
  command,
5944
5950
  [...args],
5945
5951
  { timeout: AZ_TIMEOUT_MS, windowsHide: true, shell: process.platform === "win32" },
5946
- (error, stdout) => error ? reject(error) : resolve15(stdout)
5952
+ (error, stdout) => error ? reject(error) : resolve16(stdout)
5947
5953
  );
5948
5954
  }), "defaultRunAz");
5949
5955
  function parseAzTokenOutput(output) {
@@ -6386,19 +6392,19 @@ function createBackgroundLearning(options) {
6386
6392
  const release = /* @__PURE__ */ __name(() => {
6387
6393
  const ready = waiters;
6388
6394
  waiters = [];
6389
- for (const resolve15 of ready) resolve15();
6395
+ for (const resolve16 of ready) resolve16();
6390
6396
  }, "release");
6391
6397
  const quiet = /* @__PURE__ */ __name(() => active === 0 && !options.questions?.isOpen(), "quiet");
6392
- const untilIdle = /* @__PURE__ */ __name((signal) => new Promise((resolve15, reject) => {
6398
+ const untilIdle = /* @__PURE__ */ __name((signal) => new Promise((resolve16, reject) => {
6393
6399
  if (signal.aborted) return reject(signal.reason);
6394
- if (quiet()) return resolve15();
6400
+ if (quiet()) return resolve16();
6395
6401
  const onAbort = /* @__PURE__ */ __name(() => {
6396
6402
  waiters = waiters.filter((w) => w !== done);
6397
6403
  reject(signal.reason);
6398
6404
  }, "onAbort");
6399
6405
  const done = /* @__PURE__ */ __name(() => {
6400
6406
  signal.removeEventListener("abort", onAbort);
6401
- resolve15();
6407
+ resolve16();
6402
6408
  }, "done");
6403
6409
  signal.addEventListener("abort", onAbort, { once: true });
6404
6410
  waiters.push(done);
@@ -7962,7 +7968,7 @@ function estimateTokens(text2) {
7962
7968
  __name(estimateTokens, "estimateTokens");
7963
7969
  function createSideModel(deps) {
7964
7970
  const routes = /* @__PURE__ */ new Map();
7965
- const resolve15 = /* @__PURE__ */ __name(async (sessionId, signal) => {
7971
+ const resolve16 = /* @__PURE__ */ __name(async (sessionId, signal) => {
7966
7972
  const active = deps.active();
7967
7973
  if (deps.configured !== void 0) {
7968
7974
  const target = parseSmallModel(deps.configured, active.providerId, deps.isKnownProvider);
@@ -7999,7 +8005,7 @@ ${active.model}
7999
8005
  ${deps.configured ?? ""}`;
8000
8006
  let pending = routes.get(key);
8001
8007
  if (pending === void 0) {
8002
- pending = resolve15(sessionId, signal);
8008
+ pending = resolve16(sessionId, signal);
8003
8009
  routes.set(key, pending);
8004
8010
  void pending.then((value) => {
8005
8011
  if (signal.aborted && value.source === "main" && routes.get(key) === pending) {
@@ -8218,6 +8224,9 @@ async function resolveSubagentParent(scope2, cwd, records) {
8218
8224
  }
8219
8225
  __name(resolveSubagentParent, "resolveSubagentParent");
8220
8226
 
8227
+ // src/integrations/subagents/replay.ts
8228
+ import { readFile as readFile4 } from "node:fs/promises";
8229
+
8221
8230
  // src/integrations/subagents/activity.ts
8222
8231
  import { Buffer as Buffer2 } from "node:buffer";
8223
8232
 
@@ -9013,7 +9022,11 @@ async function readSavedChildrenPage(scope2, limit) {
9013
9022
  const found = [];
9014
9023
  for (const child of children.slice(0, Math.max(0, limit))) {
9015
9024
  try {
9016
- found.push({ ...child, logPath: scope2.paths.subagentLog(scope2.session, child.sessionId) });
9025
+ found.push({
9026
+ ...child,
9027
+ logPath: scope2.paths.subagentLog(scope2.session, child.sessionId),
9028
+ metaPath: scope2.paths.subagentMeta(scope2.session, child.sessionId)
9029
+ });
9017
9030
  } catch (error) {
9018
9031
  scope2.log?.warn("A saved child names an id the session layout refuses", {
9019
9032
  "namzu.subagent.replay.child_session_id": String(child.sessionId),
@@ -9041,7 +9054,9 @@ async function replaySavedChildren(children, log) {
9041
9054
  monitor.replay(
9042
9055
  {
9043
9056
  agentId: evidence.agentId ?? child.kind,
9044
- description: child.description,
9057
+ // The short name the operator saw, when it was kept; else what the
9058
+ // parent's log recorded, which is the start of the prompt.
9059
+ description: await savedShortName(child) ?? child.description,
9045
9060
  ...evidence.prompt !== void 0 ? { prompt: evidence.prompt } : {},
9046
9061
  ...evidence.model ? { model: evidence.model } : {},
9047
9062
  sessionId: child.sessionId,
@@ -9067,6 +9082,18 @@ async function replaySavedChildren(children, log) {
9067
9082
  return monitor.getSnapshot();
9068
9083
  }
9069
9084
  __name(replaySavedChildren, "replaySavedChildren");
9085
+ async function savedShortName(child) {
9086
+ if (child.metaPath === void 0) return void 0;
9087
+ try {
9088
+ const meta = JSON.parse(await readFile4(child.metaPath, "utf8"));
9089
+ const profile = meta?.continuation?.profile;
9090
+ const name = profile?.description;
9091
+ return typeof name === "string" && name.trim().length > 0 ? name.trim() : void 0;
9092
+ } catch {
9093
+ return void 0;
9094
+ }
9095
+ }
9096
+ __name(savedShortName, "savedShortName");
9070
9097
  async function replaySavedChildrenFor(scope2) {
9071
9098
  return replaySavedChildren(await listSavedChildren(scope2), scope2.log);
9072
9099
  }
@@ -9284,7 +9311,7 @@ function createIdleWatch(options) {
9284
9311
  let tripped;
9285
9312
  return {
9286
9313
  quietForMs: /* @__PURE__ */ __name(() => tripped, "quietForMs"),
9287
- wait: /* @__PURE__ */ __name((signal) => new Promise((resolve15) => {
9314
+ wait: /* @__PURE__ */ __name((signal) => new Promise((resolve16) => {
9288
9315
  if (signal.aborted) return;
9289
9316
  const timer = setInterval(() => {
9290
9317
  const last = options.lastProgressAt();
@@ -9294,7 +9321,7 @@ function createIdleWatch(options) {
9294
9321
  tripped = quiet;
9295
9322
  clearInterval(timer);
9296
9323
  signal.removeEventListener("abort", stop);
9297
- resolve15();
9324
+ resolve16();
9298
9325
  }, pollMs);
9299
9326
  const stop = /* @__PURE__ */ __name(() => clearInterval(timer), "stop");
9300
9327
  signal.addEventListener("abort", stop, { once: true });
@@ -9311,7 +9338,7 @@ __name(describeQuietTask, "describeQuietTask");
9311
9338
 
9312
9339
  // src/memory/typed.ts
9313
9340
  import { createHash as createHash3 } from "node:crypto";
9314
- import { access, readFile as readFile4, rename as rename3, writeFile as writeFile2 } from "node:fs/promises";
9341
+ import { access, readFile as readFile5, rename as rename3, writeFile as writeFile2 } from "node:fs/promises";
9315
9342
  import { join as join10 } from "node:path";
9316
9343
 
9317
9344
  // src/memory/io.ts
@@ -9708,7 +9735,7 @@ __name(composeMemoryGuidance, "composeMemoryGuidance");
9708
9735
  var MARKER2 = "migration.json";
9709
9736
  async function readMarker(directory) {
9710
9737
  try {
9711
- const parsed = JSON.parse(await readFile4(join10(directory, MARKER2), "utf8"));
9738
+ const parsed = JSON.parse(await readFile5(join10(directory, MARKER2), "utf8"));
9712
9739
  return parsed !== null && typeof parsed === "object" ? parsed : {};
9713
9740
  } catch (error) {
9714
9741
  if (error.code === "ENOENT") return {};
@@ -12250,8 +12277,8 @@ ${step}`;
12250
12277
  owned.busy = true;
12251
12278
  let settleAdmission = /* @__PURE__ */ __name(() => {
12252
12279
  }, "settleAdmission");
12253
- owned.admitting = new Promise((resolve15) => {
12254
- settleAdmission = resolve15;
12280
+ owned.admitting = new Promise((resolve16) => {
12281
+ settleAdmission = resolve16;
12255
12282
  });
12256
12283
  const id = randomUUID4();
12257
12284
  let journal;
@@ -12777,13 +12804,13 @@ ${SUBAGENT_PROMPT}`;
12777
12804
  __name(buildDefinition, "buildDefinition");
12778
12805
 
12779
12806
  // src/integrations/workflows/history.ts
12780
- import { readFile as readFile5, readdir as readdir2 } from "node:fs/promises";
12807
+ import { readFile as readFile6, readdir as readdir2 } from "node:fs/promises";
12781
12808
  import { join as join12 } from "node:path";
12782
12809
  var RUN_ID = /^w[0-9a-z]{8}$/;
12783
12810
  async function readWorkflowJournal(file) {
12784
12811
  let text2;
12785
12812
  try {
12786
- text2 = await readFile5(file, "utf8");
12813
+ text2 = await readFile6(file, "utf8");
12787
12814
  } catch (error) {
12788
12815
  if (error.code === "ENOENT") return [];
12789
12816
  throw error;
@@ -12826,7 +12853,7 @@ __name(listWorkflowRuns, "listWorkflowRuns");
12826
12853
  // src/integrations/workflows/host.ts
12827
12854
  import { randomBytes as randomBytes3 } from "node:crypto";
12828
12855
  import { existsSync as existsSync3 } from "node:fs";
12829
- import { readFile as readFile6 } from "node:fs/promises";
12856
+ import { readFile as readFile7 } from "node:fs/promises";
12830
12857
  import { join as join13 } from "node:path";
12831
12858
 
12832
12859
  // src/integrations/workflows/offering.ts
@@ -12984,11 +13011,11 @@ var WorkflowRunRegistry = class {
12984
13011
  whenIdle(signal) {
12985
13012
  const going = /* @__PURE__ */ __name(() => [...this.runs.values()].some((run2) => !run2.finalized), "going");
12986
13013
  if (!going() || signal?.aborted) return Promise.resolve();
12987
- return new Promise((resolve15) => {
13014
+ return new Promise((resolve16) => {
12988
13015
  const done = /* @__PURE__ */ __name(() => {
12989
13016
  off();
12990
13017
  signal?.removeEventListener("abort", done);
12991
- resolve15();
13018
+ resolve16();
12992
13019
  }, "done");
12993
13020
  const off = this.subscribe(() => {
12994
13021
  if (!going()) done();
@@ -13298,7 +13325,7 @@ function createWorkflowHost(options) {
13298
13325
  }
13299
13326
  resumeState = loadWorkflowResume(checked);
13300
13327
  if (!resumeState.resumable) {
13301
- const mismatch = key !== void 0 && await readFile6(join13(runs, runId, "workflow", "journal.jsonl"), "utf8").then(
13328
+ const mismatch = key !== void 0 && await readFile7(join13(runs, runId, "workflow", "journal.jsonl"), "utf8").then(
13302
13329
  (text2) => journalKeyMismatch(text2, runId, key),
13303
13330
  () => false
13304
13331
  );
@@ -13344,8 +13371,8 @@ function createWorkflowHost(options) {
13344
13371
  let launching = true;
13345
13372
  let settleLaunch = /* @__PURE__ */ __name(() => {
13346
13373
  }, "settleLaunch");
13347
- const launch = new Promise((resolve15) => {
13348
- settleLaunch = resolve15;
13374
+ const launch = new Promise((resolve16) => {
13375
+ settleLaunch = resolve16;
13349
13376
  });
13350
13377
  const detach = /* @__PURE__ */ __name(() => {
13351
13378
  if (!launching) return;
@@ -13448,7 +13475,7 @@ __name(createWorkflowHost, "createWorkflowHost");
13448
13475
 
13449
13476
  // src/integrations/workflows/orphans.ts
13450
13477
  import { existsSync as existsSync4 } from "node:fs";
13451
- import { readFile as readFile7, readdir as readdir3, writeFile as writeFile3 } from "node:fs/promises";
13478
+ import { readFile as readFile8, readdir as readdir3, writeFile as writeFile3 } from "node:fs/promises";
13452
13479
  import { join as join14 } from "node:path";
13453
13480
  var NOTICE_FILE = "orphan-notice.json";
13454
13481
  var MAX_ORPHAN_NOTICES = 20;
@@ -13473,7 +13500,7 @@ function noticePath(runsDirectory, runId) {
13473
13500
  __name(noticePath, "noticePath");
13474
13501
  async function readStored(runsDirectory, runId) {
13475
13502
  try {
13476
- const parsed = JSON.parse(await readFile7(noticePath(runsDirectory, runId), "utf8"));
13503
+ const parsed = JSON.parse(await readFile8(noticePath(runsDirectory, runId), "utf8"));
13477
13504
  if (typeof parsed !== "object" || parsed === null) return void 0;
13478
13505
  const stored = parsed;
13479
13506
  if (typeof stored.text === "string" && typeof stored.line === "string" && typeof stored.name === "string" && typeof stored.pass === "number" && typeof stored.delivered === "boolean") {
@@ -13609,7 +13636,7 @@ __name(recoverUnfinishedWorkflows, "recoverUnfinishedWorkflows");
13609
13636
  async function keyMismatchOf(dir, runId, key) {
13610
13637
  if (key === void 0) return false;
13611
13638
  try {
13612
- return journalKeyMismatch(await readFile7(join14(dir, "journal.jsonl"), "utf8"), runId, key);
13639
+ return journalKeyMismatch(await readFile8(join14(dir, "journal.jsonl"), "utf8"), runId, key);
13613
13640
  } catch {
13614
13641
  return false;
13615
13642
  }
@@ -13644,7 +13671,7 @@ __name(markOrphanNoticesDelivered, "markOrphanNoticesDelivered");
13644
13671
 
13645
13672
  // src/memory/anchors.ts
13646
13673
  import { createHash as createHash4 } from "node:crypto";
13647
- import { readFile as readFile8, realpath as realpath4, stat as stat4 } from "node:fs/promises";
13674
+ import { readFile as readFile9, realpath as realpath4, stat as stat4 } from "node:fs/promises";
13648
13675
  import { basename as basename3, isAbsolute as isAbsolute9, relative as relative8, resolve as resolve12, sep as sep6 } from "node:path";
13649
13676
  var ANCHOR_MAX = 5;
13650
13677
  var ANCHOR_HASH_MAX_BYTES = 1048576;
@@ -13656,7 +13683,7 @@ var nodeAnchorFs = {
13656
13683
  return info.isFile() ? { size: info.size, mtimeMs: Math.trunc(info.mtimeMs) } : void 0;
13657
13684
  }, "stat"),
13658
13685
  realpath: /* @__PURE__ */ __name((path) => realpath4(path), "realpath"),
13659
- readFile: /* @__PURE__ */ __name((path) => readFile8(path), "readFile")
13686
+ readFile: /* @__PURE__ */ __name((path) => readFile9(path), "readFile")
13660
13687
  };
13661
13688
  var digest2 = /* @__PURE__ */ __name((bytes) => createHash4("sha256").update(bytes).digest("hex"), "digest");
13662
13689
  function inside(root, path) {
@@ -14777,11 +14804,11 @@ var MemoryCurator = class {
14777
14804
  else context.signal?.addEventListener("abort", onAbort, { once: true });
14778
14805
  const deadlineMs = this.#deps.deadlineMs ?? CURATE_DEADLINE_MS;
14779
14806
  let timer;
14780
- const deadline = new Promise((resolve15) => {
14807
+ const deadline = new Promise((resolve16) => {
14781
14808
  timer = setTimeout(() => {
14782
14809
  timedOut = true;
14783
14810
  controller.abort(new Error(`Memory curation exceeded ${deadlineMs}ms.`));
14784
- resolve15("deadline");
14811
+ resolve16("deadline");
14785
14812
  }, deadlineMs);
14786
14813
  });
14787
14814
  let reply;
@@ -15247,7 +15274,7 @@ import {
15247
15274
  appendFile as appendFile4,
15248
15275
  mkdir as mkdir6,
15249
15276
  open as open3,
15250
- readFile as readFile9,
15277
+ readFile as readFile10,
15251
15278
  readdir as readdir4,
15252
15279
  rename as rename4,
15253
15280
  stat as stat5,
@@ -15288,7 +15315,7 @@ var serialize = /* @__PURE__ */ __name((entries) => entries.map((entry) => `${JS
15288
15315
  `).join(""), "serialize");
15289
15316
  async function readIfPresent(path) {
15290
15317
  try {
15291
- return await readFile9(path, "utf8");
15318
+ return await readFile10(path, "utf8");
15292
15319
  } catch (error) {
15293
15320
  if (error.code === "ENOENT") return void 0;
15294
15321
  throw error;
@@ -15847,11 +15874,11 @@ function createMemorySelector(deps) {
15847
15874
  if (input.signal.aborted) onAbort();
15848
15875
  else input.signal.addEventListener("abort", onAbort, { once: true });
15849
15876
  let timer;
15850
- const deadline = new Promise((resolve15) => {
15877
+ const deadline = new Promise((resolve16) => {
15851
15878
  timer = setTimeout(() => {
15852
15879
  timedOut = true;
15853
15880
  controller.abort(new Error(`Memory selection exceeded ${deadlineMs}ms.`));
15854
- resolve15("deadline");
15881
+ resolve16("deadline");
15855
15882
  }, deadlineMs);
15856
15883
  });
15857
15884
  try {
@@ -15891,11 +15918,11 @@ __name(memorySelectionOptions, "memorySelectionOptions");
15891
15918
 
15892
15919
  // src/memory/usage.ts
15893
15920
  import { randomUUID as randomUUID6 } from "node:crypto";
15894
- import { mkdir as mkdir7, readFile as readFile10, rename as rename5, rm as rm3, writeFile as writeFile6 } from "node:fs/promises";
15921
+ import { mkdir as mkdir7, readFile as readFile11, rename as rename5, rm as rm3, writeFile as writeFile6 } from "node:fs/promises";
15895
15922
  import { dirname as dirname6 } from "node:path";
15896
15923
  var VERSION = 1;
15897
15924
  var nodeUsageFs = {
15898
- readFile: /* @__PURE__ */ __name((path) => readFile10(path, "utf8"), "readFile"),
15925
+ readFile: /* @__PURE__ */ __name((path) => readFile11(path, "utf8"), "readFile"),
15899
15926
  writeFile: /* @__PURE__ */ __name((path, data) => writeFile6(path, data, { mode: 384 }), "writeFile"),
15900
15927
  rename: rename5,
15901
15928
  mkdir: /* @__PURE__ */ __name(async (path) => {
@@ -17690,6 +17717,45 @@ function createSkillDirectoryResolver(options) {
17690
17717
  }
17691
17718
  __name(createSkillDirectoryResolver, "createSkillDirectoryResolver");
17692
17719
 
17720
+ // src/skills/restore-skill-hooks.ts
17721
+ import { readFileSync as readFileSync2 } from "node:fs";
17722
+ import { isAbsolute as isAbsolute11, join as join18, relative as relative10, resolve as resolve13, sep as sep7 } from "node:path";
17723
+ var SKILL_FILE = "SKILL.md";
17724
+ function isInsideFolder(root, directory) {
17725
+ const inside2 = relative10(resolve13(root), resolve13(directory));
17726
+ return inside2 === "" || !inside2.startsWith(`..${sep7}`) && inside2 !== ".." && !isAbsolute11(inside2);
17727
+ }
17728
+ __name(isInsideFolder, "isInsideFolder");
17729
+ function readSkillNow(directory) {
17730
+ const path = join18(directory, SKILL_FILE);
17731
+ let raw;
17732
+ try {
17733
+ raw = readFileSync2(path, "utf8");
17734
+ } catch (error) {
17735
+ const code = error.code;
17736
+ return code === "ENOENT" || code === "ENOTDIR" ? { problem: `its file is gone (${path})` } : { problem: `its file could not be read (${path}): ${error.message}` };
17737
+ }
17738
+ try {
17739
+ return { hooksSource: parseSkillMarkdown(raw, path).hooksSource };
17740
+ } catch (error) {
17741
+ return { problem: `its file can no longer be read (${path}): ${error.message}` };
17742
+ }
17743
+ }
17744
+ __name(readSkillNow, "readSkillNow");
17745
+ function restoreSkillHooks(host, facts, readNow = readSkillNow) {
17746
+ const notes = [];
17747
+ for (const fact of facts) {
17748
+ const note = host.restore({
17749
+ name: fact.skill,
17750
+ dirPath: fact.directory,
17751
+ now: readNow(fact.directory)
17752
+ });
17753
+ if (note !== void 0) notes.push(note);
17754
+ }
17755
+ return notes;
17756
+ }
17757
+ __name(restoreSkillHooks, "restoreSkillHooks");
17758
+
17693
17759
  // src/skills/skill-hooks.ts
17694
17760
  import { createHash as createHash8 } from "node:crypto";
17695
17761
  function skillHookEnv(skillRoot) {
@@ -17736,7 +17802,7 @@ function createSkillHooksHost(options) {
17736
17802
  for (const listener of listeners) listener(line);
17737
17803
  }, "tell");
17738
17804
  const inert2 = { remove: /* @__PURE__ */ __name(() => void 0, "remove") };
17739
- const prepareHooks = /* @__PURE__ */ __name((skill, how) => {
17805
+ const prepare = /* @__PURE__ */ __name((skill, how, resumed = false) => {
17740
17806
  const name = skill.name;
17741
17807
  if (options.hooksSwitch() !== void 0) {
17742
17808
  return { withholdGrants: false, attach: /* @__PURE__ */ __name(() => inert2, "attach") };
@@ -17744,9 +17810,15 @@ function createSkillHooksHost(options) {
17744
17810
  const refuse = /* @__PURE__ */ __name((why) => {
17745
17811
  const line = `Skill ${name}: ${why} None of its hooks are attached and its allowed-tools are not pre-approved.`;
17746
17812
  tell(cut(line));
17747
- return { notice: cut(line), withholdGrants: true, attach: /* @__PURE__ */ __name(() => inert2, "attach") };
17813
+ return {
17814
+ notice: cut(line),
17815
+ withholdGrants: true,
17816
+ ...how.forked ? {} : { resumable: true },
17817
+ attach: /* @__PURE__ */ __name(() => inert2, "attach")
17818
+ };
17748
17819
  }, "refuse");
17749
- if (options.isProjectSkill(name) && !options.projectTrusted()) {
17820
+ const inProject = options.isProjectSkill(name) || resumed && skill.dirPath !== void 0 && options.isInProject?.(skill.dirPath) === true;
17821
+ if (inProject && !options.projectTrusted()) {
17750
17822
  return refuse("it is in a folder that is not trusted.");
17751
17823
  }
17752
17824
  const readAll = withoutSessionStart(readSkillHooks(skill.hooksSource, `skill ${name}`));
@@ -17772,11 +17844,12 @@ function createSkillHooksHost(options) {
17772
17844
  if (unreadable) tell(cut(`Skill ${name}:${partial}`));
17773
17845
  const sameMessage = !how.forked && (events.includes("pre_tool_use") || events.includes("permission_request")) ? " Calls written in the same message as this skill were checked before these hooks attached; make the calls they should guard in a later message." : "";
17774
17846
  const notice2 = cut(
17775
- read2.count === 0 ? `Skill ${name}: no hook of its could be loaded. ${setAside}` : how.forked ? `Skill ${name}: its hooks (${events.join(", ")}) apply to the delegated agent's run only.${setAside ? ` Set aside: ${setAside}` : ""}${partial}` : `Skill ${name}: its hooks (${events.join(", ")}) are attached for the rest of this conversation, until it is cleared or resumed.${setAside ? ` Set aside: ${setAside}` : ""}${partial}`
17847
+ read2.count === 0 ? `Skill ${name}: no hook of its could be loaded. ${setAside}` : how.forked ? `Skill ${name}: its hooks (${events.join(", ")}) apply to the delegated agent's run only.${setAside ? ` Set aside: ${setAside}` : ""}${partial}` : `Skill ${name}: its hooks (${events.join(", ")}) were attached to this conversation when it was loaded. They stay until the conversation is cleared, and are attached again if it is continued later while this skill's file still loads and its folder is trusted; a note tells you when they are not.${setAside ? ` Set aside: ${setAside}` : ""}${partial}`
17776
17848
  ) + (read2.count === 0 ? "" : sameMessage);
17777
17849
  return {
17778
17850
  notice: notice2,
17779
17851
  withholdGrants: read2.guardLost,
17852
+ ...how.forked || read2.count === 0 ? {} : { resumable: true },
17780
17853
  attach: /* @__PURE__ */ __name(() => {
17781
17854
  if (read2.count === 0) return inert2;
17782
17855
  if (!how.forked) {
@@ -17861,12 +17934,43 @@ function createSkillHooksHost(options) {
17861
17934
  };
17862
17935
  }, "attach")
17863
17936
  };
17864
- }, "prepareHooks");
17937
+ }, "prepare");
17938
+ const prepareHooks = /* @__PURE__ */ __name((skill, how) => prepare(skill, how), "prepareHooks");
17865
17939
  return {
17866
17940
  prepareHooks,
17867
17941
  use: /* @__PURE__ */ __name((skill) => {
17868
17942
  prepareHooks(skill, { forked: false }).attach();
17869
17943
  }, "use"),
17944
+ say: /* @__PURE__ */ __name((line) => {
17945
+ const cutLine2 = cut(line);
17946
+ tell(cutLine2);
17947
+ return cutLine2;
17948
+ }, "say"),
17949
+ restore: /* @__PURE__ */ __name((skill) => {
17950
+ const name = skill.name;
17951
+ if (options.hooksSwitch() !== void 0) return void 0;
17952
+ const unattached = /* @__PURE__ */ __name((why) => {
17953
+ const line = cut(
17954
+ `Skill ${name}: its hooks are not attached after this conversation was continued, because ${why} Its allowed-tools are not pre-approved.`
17955
+ );
17956
+ tell(line);
17957
+ return line;
17958
+ }, "unattached");
17959
+ if ("problem" in skill.now) return unattached(`${skill.now.problem}.`);
17960
+ const source = skill.now.hooksSource;
17961
+ if (source === void 0) {
17962
+ return unattached("its file no longer carries hooks.");
17963
+ }
17964
+ const plan = prepare(
17965
+ { name, dirPath: skill.dirPath, hooksSource: source },
17966
+ { forked: false },
17967
+ true
17968
+ );
17969
+ plan.attach();
17970
+ if (plan.withholdGrants) return plan.notice;
17971
+ const hasRows = [...live].some((found) => found.skill === name);
17972
+ return hasRows ? void 0 : unattached("its file no longer carries a hook that can be loaded.");
17973
+ }, "restore"),
17870
17974
  attached: /* @__PURE__ */ __name(() => [...live].flatMap(
17871
17975
  (found) => found.rows.filter((row) => !row.gone).map(({ gone: _gone, ...row }) => row)
17872
17976
  ), "attached"),
@@ -18090,19 +18194,19 @@ async function resolveModelSwitch(request, options) {
18090
18194
  listed.set(detected.entry.id, listing);
18091
18195
  return listing.kind === "ok" && listing.models.some((candidate) => candidate.id === stripModelWindowSuffix(model));
18092
18196
  }, "inspect");
18093
- const resolve15 = /* @__PURE__ */ __name((detected) => ({
18197
+ const resolve16 = /* @__PURE__ */ __name((detected) => ({
18094
18198
  kind: "resolved",
18095
18199
  selection: { id: detected.entry.id, model }
18096
18200
  }), "resolve");
18097
18201
  const first = selected ?? usable.find(({ entry }) => entry.id === options.currentProvider);
18098
- if (first && await inspect(first)) return resolve15(first);
18202
+ if (first && await inspect(first)) return resolve16(first);
18099
18203
  const candidates = selected ? [selected] : usable;
18100
18204
  const matches = selected ? [] : (await Promise.all(
18101
18205
  candidates.filter((candidate) => candidate !== first).map(async (candidate) => await inspect(candidate) ? candidate : void 0)
18102
18206
  )).filter((candidate) => candidate !== void 0);
18103
18207
  signal?.throwIfAborted();
18104
18208
  const uniqueMatch = matches.length === 1 ? matches[0] : void 0;
18105
- if (uniqueMatch) return resolve15(uniqueMatch);
18209
+ if (uniqueMatch) return resolve16(uniqueMatch);
18106
18210
  if (matches.length > 1) {
18107
18211
  return {
18108
18212
  kind: "rejected",
@@ -18133,7 +18237,7 @@ __name(resolveModelSwitch, "resolveModelSwitch");
18133
18237
 
18134
18238
  // src/tui/read-search-group.ts
18135
18239
  import { homedir as homedir3 } from "node:os";
18136
- import { isAbsolute as isAbsolute11, relative as relative10, resolve as resolve13, sep as sep7 } from "node:path";
18240
+ import { isAbsolute as isAbsolute12, relative as relative11, resolve as resolve14, sep as sep8 } from "node:path";
18137
18241
  var EMPTY_GROUP = {
18138
18242
  readKeys: [],
18139
18243
  anonymousReads: 0,
@@ -18503,13 +18607,13 @@ function classifyShell(command) {
18503
18607
  }
18504
18608
  __name(classifyShell, "classifyShell");
18505
18609
  function displayPath3(path, cwd) {
18506
- const abs = cwd && !isAbsolute11(path) ? resolve13(cwd, path) : path;
18610
+ const abs = cwd && !isAbsolute12(path) ? resolve14(cwd, path) : path;
18507
18611
  if (cwd) {
18508
- const rel = relative10(cwd, abs);
18509
- if (rel.length > 0 && !rel.startsWith("..") && !isAbsolute11(rel)) return rel;
18612
+ const rel = relative11(cwd, abs);
18613
+ if (rel.length > 0 && !rel.startsWith("..") && !isAbsolute12(rel)) return rel;
18510
18614
  }
18511
18615
  const home = homedir3();
18512
- if (home && (abs === home || abs.startsWith(home + sep7))) return `~${abs.slice(home.length)}`;
18616
+ if (home && (abs === home || abs.startsWith(home + sep8))) return `~${abs.slice(home.length)}`;
18513
18617
  return abs;
18514
18618
  }
18515
18619
  __name(displayPath3, "displayPath");
@@ -18891,7 +18995,7 @@ var GH_PR_HARMLESS = /* @__PURE__ */ new Set(["view", "list", "status", "checks"
18891
18995
  function vcsActions(command) {
18892
18996
  const split = splitShell(command);
18893
18997
  if (!split || split.segments.length === 0) return { actions: [], absorbed: false };
18894
- if (split.joins.some((join19, index) => index > 0 && join19 !== "&&"))
18998
+ if (split.joins.some((join20, index) => index > 0 && join20 !== "&&"))
18895
18999
  return { actions: [], absorbed: false };
18896
19000
  const actions = [];
18897
19001
  let explained = true;
@@ -19053,8 +19157,8 @@ var SessionOperationOwner = class {
19053
19157
  })()[Symbol.asyncIterator]();
19054
19158
  let settled = false;
19055
19159
  let settle;
19056
- const settlement = new Promise((resolve15) => {
19057
- settle = resolve15;
19160
+ const settlement = new Promise((resolve16) => {
19161
+ settle = resolve16;
19058
19162
  });
19059
19163
  let operationTail = Promise.resolve();
19060
19164
  let returnStarted = false;
@@ -19318,11 +19422,11 @@ __name(clipRequestContext, "clipRequestContext");
19318
19422
  async function createAgentSession(prefs, detectedProviders, options = {}) {
19319
19423
  const modelEnvironment = readModelLaunchEnvironment();
19320
19424
  if (options.palEnvironment) {
19321
- const { createPalAgentSession } = await import("./agent-session-H3OE6ZJT.js");
19425
+ const { createPalAgentSession } = await import("./agent-session-BD2AHK5S.js");
19322
19426
  return createPalAgentSession(prefs, detectedProviders, options);
19323
19427
  }
19324
19428
  let detected = detectedProviders;
19325
- const { palAtWorkspace } = await import("./store-BY6HMUUN.js");
19429
+ const { palAtWorkspace } = await import("./store-CNEKBGKD.js");
19326
19430
  if (palAtWorkspace(options.cwd ?? process.cwd()))
19327
19431
  throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
19328
19432
  const commandArguments = builtinCommandArguments();
@@ -19359,7 +19463,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
19359
19463
  }
19360
19464
  return seeded;
19361
19465
  }, "observationsFor");
19362
- const requestedCwd = resolve14(options.cwd ?? process.cwd());
19466
+ const requestedCwd = resolve15(options.cwd ?? process.cwd());
19363
19467
  let cwd;
19364
19468
  try {
19365
19469
  const entry2 = await stat7(requestedCwd);
@@ -19391,13 +19495,13 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
19391
19495
  paths = options.conversationSessions.paths;
19392
19496
  projectId = options.conversationSessions.projectId;
19393
19497
  } else {
19394
- const home = resolve14(options.stateRoot ?? resolveNamzuHome());
19498
+ const home = resolve15(options.stateRoot ?? resolveNamzuHome());
19395
19499
  ensurePrivateStateDirectory(home, "projects");
19396
19500
  const project = await ensureProject({ home, cwd: cliProjectRoot(cwd) });
19397
19501
  paths = new SessionPaths({ home, slug: project.slug });
19398
19502
  projectId = project.projectId;
19399
19503
  }
19400
- ensurePrivateStateDirectory(resolve14(paths.projectDir(), ".."), paths.slug);
19504
+ ensurePrivateStateDirectory(resolve15(paths.projectDir(), ".."), paths.slug);
19401
19505
  ensurePrivateStateDirectory(paths.projectDir(), "memory");
19402
19506
  } catch (error) {
19403
19507
  return emptySession(
@@ -19778,8 +19882,8 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
19778
19882
  }
19779
19883
  const directories = [];
19780
19884
  for (const dir of options.additionalDirectories ?? []) {
19781
- const absolute = resolve14(cwd, dir);
19782
- if (absolute !== resolve14(cwd) && !directories.includes(absolute)) directories.push(absolute);
19885
+ const absolute = resolve15(cwd, dir);
19886
+ if (absolute !== resolve15(cwd) && !directories.includes(absolute)) directories.push(absolute);
19783
19887
  }
19784
19888
  const sessionDirectories = createSessionDirectories(cwd, directories);
19785
19889
  const checkpoints = new FileCheckpointStore(
@@ -20155,7 +20259,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20155
20259
  });
20156
20260
  }
20157
20261
  for (const skipped of discovered.skipped) {
20158
- const inPlugin = pluginFiles.agents.some(({ dir }) => skipped.path.startsWith(`${dir}${sep8}`));
20262
+ const inPlugin = pluginFiles.agents.some(({ dir }) => skipped.path.startsWith(`${dir}${sep9}`));
20159
20263
  cliLogger().warn("agent definition skipped", {
20160
20264
  "namzu.agent.definition.path": skipped.path,
20161
20265
  "namzu.agent.definition.reason": inPlugin ? `${skipped.reason}. ${CHECK_HINT}` : skipped.reason
@@ -20390,7 +20494,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20390
20494
  runsDirectory: /* @__PURE__ */ __name((turnId) => {
20391
20495
  if (options.ephemeral) return void 0;
20392
20496
  const owner = delegationScopes.get(turnId) ?? scope2;
20393
- return join18(paths.sessionDir({ sessionId: owner.sessionId }), "runs");
20497
+ return join19(paths.sessionDir({ sessionId: owner.sessionId }), "runs");
20394
20498
  }, "runsDirectory"),
20395
20499
  refusal: /* @__PURE__ */ __name((turnId) => {
20396
20500
  const auth = delegatedWorkflowAuth.get(turnId);
@@ -20628,7 +20732,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20628
20732
  );
20629
20733
  toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
20630
20734
  }
20631
- const operatorPals = await import("./operator-tools-YX4575HD.js");
20735
+ const operatorPals = await import("./operator-tools-KQV2T5UU.js");
20632
20736
  toolsets.push(
20633
20737
  readyWhen(
20634
20738
  toolset(
@@ -20683,7 +20787,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20683
20787
  );
20684
20788
  const curationListeners = /* @__PURE__ */ new Set();
20685
20789
  const memoryInbox = new MemoryInbox({
20686
- file: join18(paths.home, "memory-inbox", `${paths.slug}.jsonl`),
20790
+ file: join19(paths.home, "memory-inbox", `${paths.slug}.jsonl`),
20687
20791
  now: Date.now
20688
20792
  });
20689
20793
  const curation = options.memory?.curation === "off" || options.compaction?.consolidate ? void 0 : new CurationRuntime({
@@ -20693,7 +20797,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20693
20797
  sideModel: /* @__PURE__ */ __name(() => sideModel, "sideModel"),
20694
20798
  fallback: screenedPromoter,
20695
20799
  anchorRoot: cliProjectRoot(cwd),
20696
- log: createCurationLog(join18(paths.home, "memory", "curation.jsonl"))
20800
+ log: createCurationLog(join19(paths.home, "memory", "curation.jsonl"))
20697
20801
  }),
20698
20802
  setTimer: /* @__PURE__ */ __name((run2, ms) => {
20699
20803
  const handle = setTimeout(run2, ms);
@@ -20712,7 +20816,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20712
20816
  }), "report")
20713
20817
  });
20714
20818
  const memoryUsage = new MemoryUsage({
20715
- file: join18(paths.home, "memory-usage", `${paths.slug}.json`),
20819
+ file: join19(paths.home, "memory-usage", `${paths.slug}.json`),
20716
20820
  now: Date.now,
20717
20821
  log: /* @__PURE__ */ __name((message, fields) => cliLogger().debug(message, fields), "log")
20718
20822
  });
@@ -20810,7 +20914,8 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20810
20914
  hookOptions: /* @__PURE__ */ __name(() => sessionPlugins?.hookOptions, "hookOptions"),
20811
20915
  hooksSwitch: /* @__PURE__ */ __name(() => options.hooksSwitch, "hooksSwitch"),
20812
20916
  projectTrusted: /* @__PURE__ */ __name(() => options.folderTrusted === true || isTrusted(cwd), "projectTrusted"),
20813
- isProjectSkill: /* @__PURE__ */ __name((name) => skillCatalog.fileSkills.some((skill) => skill.name === name && skill.source === "project"), "isProjectSkill")
20917
+ isProjectSkill: /* @__PURE__ */ __name((name) => skillCatalog.fileSkills.some((skill) => skill.name === name && skill.source === "project"), "isProjectSkill"),
20918
+ isInProject: /* @__PURE__ */ __name((directory) => isInsideFolder(cwd, directory), "isInProject")
20814
20919
  });
20815
20920
  const sessionToolsets = toolsets.flatMap((ts) => {
20816
20921
  const wrapped = withheldTools.size > 0 ? filtered(ts, (tool) => !withheldTools.has(tool.name)) : ts;
@@ -20866,6 +20971,8 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20866
20971
  let sessionHookContext;
20867
20972
  let conversationGeneration = 0;
20868
20973
  let nextSessionSource;
20974
+ let skillHooksRestoredFor;
20975
+ let skillHooksNotAttached = [];
20869
20976
  const conversationEnds = /* @__PURE__ */ new Set();
20870
20977
  const announceSessionStart = /* @__PURE__ */ __name(async (counted2) => {
20871
20978
  if (!sessionPlugins || sessionStarted) return;
@@ -20885,6 +20992,8 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20885
20992
  if (!sessionPlugins) return Promise.resolve();
20886
20993
  conversationGeneration += 1;
20887
20994
  skillHooks.endConversation();
20995
+ skillHooksRestoredFor = void 0;
20996
+ skillHooksNotAttached = [];
20888
20997
  sessionStarted = false;
20889
20998
  sessionHookContext = void 0;
20890
20999
  nextSessionSource = change.starting;
@@ -20893,6 +21002,30 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
20893
21002
  void ended.then(() => conversationEnds.delete(ended));
20894
21003
  return ended;
20895
21004
  }, "changeConversation");
21005
+ const putSkillHooksBack = /* @__PURE__ */ __name(async (sessionId, hasEarlierTurns) => {
21006
+ if (skillHooksRestoredFor === String(sessionId)) return;
21007
+ skillHooksRestoredFor = String(sessionId);
21008
+ skillHooksNotAttached = [];
21009
+ if (!options.conversationSessions || !hasEarlierTurns) return;
21010
+ let readFailure;
21011
+ const known = await readConversationFacts(
21012
+ options.conversationSessions,
21013
+ sessionId,
21014
+ "tolerant"
21015
+ ).catch((error) => {
21016
+ readFailure = error;
21017
+ return null;
21018
+ });
21019
+ if (readFailure !== void 0) {
21020
+ skillHooksNotAttached = [
21021
+ skillHooks.say(
21022
+ `The skills this conversation used could not be checked for hooks, so none are attached again: ${describeError2(readFailure)}.`
21023
+ )
21024
+ ];
21025
+ } else if (known && known.skillHooks.length > 0) {
21026
+ skillHooksNotAttached = restoreSkillHooks(skillHooks, known.skillHooks);
21027
+ }
21028
+ }, "putSkillHooksBack");
20896
21029
  let sessionEndReason = "exit";
20897
21030
  let sessionClosing = false;
20898
21031
  if (pluginRuntime) {
@@ -21080,6 +21213,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
21080
21213
  const route = await pinnedResumeRoute(pinned, entry2.sessionId, ownedSignal);
21081
21214
  const resumeWebSearch = route ? routedWebSearch(route) : nativeWebSearch;
21082
21215
  const turnSkills = await turnSkillsFor(route?.model ?? model);
21216
+ await putSkillHooksBack(entry2.sessionId, true);
21083
21217
  const curatedMemory = readMemory(void 0, cwd);
21084
21218
  for (const notice2 of formatMemoryDiagnostics(curatedMemory)) cliLogger().warn(notice2);
21085
21219
  const storedMemory = await storedMemoryPrompt();
@@ -21117,7 +21251,9 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
21117
21251
  workflowOffered: false,
21118
21252
  permissionMode: permissionMode ?? options.permissionMode ?? "auto",
21119
21253
  extraSystem,
21120
- systemNote
21254
+ ...([systemNote, ...skillHooksNotAttached].filter(Boolean).join("\n") || void 0) !== void 0 ? {
21255
+ systemNote: [systemNote, ...skillHooksNotAttached].filter(Boolean).join("\n")
21256
+ } : {}
21121
21257
  }
21122
21258
  )
21123
21259
  );
@@ -21394,8 +21530,8 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
21394
21530
  if (mapped) yield mapped;
21395
21531
  }
21396
21532
  if (settled) break;
21397
- await new Promise((resolve15) => {
21398
- wake = resolve15;
21533
+ await new Promise((resolve16) => {
21534
+ wake = resolve16;
21399
21535
  });
21400
21536
  wake = void 0;
21401
21537
  }
@@ -21683,7 +21819,7 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
21683
21819
  const live = host.registry.list();
21684
21820
  const known = new Set(live.map((view) => view.runId));
21685
21821
  const saved = options.ephemeral ? [] : await listWorkflowRuns(
21686
- join18(paths.sessionDir({ sessionId: scope2.sessionId }), "runs")
21822
+ join19(paths.sessionDir({ sessionId: scope2.sessionId }), "runs")
21687
21823
  ).catch(() => []);
21688
21824
  return [
21689
21825
  ...[...live].sort((a, b) => b.startedAt - a.startedAt),
@@ -21693,14 +21829,14 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
21693
21829
  readScript: /* @__PURE__ */ __name((path) => {
21694
21830
  const saved = readSavedScript(
21695
21831
  path,
21696
- scriptsDirectory(join18(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"))
21832
+ scriptsDirectory(join19(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"))
21697
21833
  );
21698
21834
  if (!saved.ok) return void 0;
21699
21835
  reviewedScripts.record(saved.path, saved.text);
21700
21836
  return saved.text;
21701
21837
  }, "readScript"),
21702
21838
  describeResume: /* @__PURE__ */ __name((runId, script) => describeResume(
21703
- join18(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
21839
+ join19(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
21704
21840
  runId,
21705
21841
  script,
21706
21842
  options.ephemeral ? void 0 : workflowJournalKey(paths.home)
@@ -21708,13 +21844,13 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
21708
21844
  recoverUnfinished: /* @__PURE__ */ __name(async () => {
21709
21845
  if (options.ephemeral) return [];
21710
21846
  return recoverUnfinishedWorkflows({
21711
- runsDirectory: join18(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
21847
+ runsDirectory: join19(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
21712
21848
  liveRunIds: new Set(host.registry.list().map((view) => view.runId)),
21713
21849
  ...workflowJournalKey(paths.home) !== void 0 ? { key: workflowJournalKey(paths.home) } : {}
21714
21850
  });
21715
21851
  }, "recoverUnfinished"),
21716
21852
  noticesDelivered: /* @__PURE__ */ __name((runIds) => markOrphanNoticesDelivered(
21717
- join18(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
21853
+ join19(paths.sessionDir({ sessionId: scope2.sessionId }), "runs"),
21718
21854
  runIds
21719
21855
  ), "noticesDelivered"),
21720
21856
  onEnd: /* @__PURE__ */ __name((listener) => {
@@ -22242,6 +22378,18 @@ async function createAgentSession(prefs, detectedProviders, options = {}) {
22242
22378
  await announceSessionStart(
22243
22379
  messages.filter((message) => message.role === "user").length > 1 ? "resume" : "startup"
22244
22380
  );
22381
+ await putSkillHooksBack(
22382
+ turnScope.sessionId,
22383
+ messages.filter((message) => message.role === "user").length > 1
22384
+ );
22385
+ if (skillHooksNotAttached.length > 0) {
22386
+ const notAttached = skillHooksNotAttached.join("\n");
22387
+ promptContributions.register({
22388
+ id: "namzu.hooks.skill-restore",
22389
+ placement: "context",
22390
+ render: /* @__PURE__ */ __name(() => notAttached, "render")
22391
+ });
22392
+ }
22245
22393
  if (sessionHookContext !== void 0) {
22246
22394
  const hookContext = frameOperatorHookContext([sessionHookContext]);
22247
22395
  promptContributions.register({
@@ -24209,4 +24357,4 @@ export {
24209
24357
  RESULT_SUMMARY_WHOLE_MAX,
24210
24358
  resultSummaryLine
24211
24359
  };
24212
- //# sourceMappingURL=chunk-F3GGSHY2.js.map
24360
+ //# sourceMappingURL=chunk-ZZK2BVEH.js.map