@namzu/cli 37.1.0 → 37.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-T46275W3.js → acp-IV4G4DDN.js} +55 -51
  4. package/dist/chunks/{acp-T46275W3.js.map → acp-IV4G4DDN.js.map} +1 -1
  5. package/dist/chunks/{activity-command-U3KHRDTY.js → activity-command-FW57BC4I.js} +14 -14
  6. package/dist/chunks/{add-Q2HPE26F.js → add-MGR37R67.js} +22 -22
  7. package/dist/chunks/{agent-KSRUGF37.js → agent-W75JSUKG.js} +26 -26
  8. package/dist/chunks/agent-session-DPXU4EEF.js +51 -0
  9. package/dist/chunks/{archive-NQ527SKW.js → archive-KEMEXDTF.js} +9 -9
  10. package/dist/chunks/{bin-main-72QPYEQ5.js → bin-main-CSS47L7D.js} +5 -5
  11. package/dist/chunks/{browser-NQAXUNRS.js → browser-7KFOR6DK.js} +6 -6
  12. package/dist/chunks/{chat-QSA5IBTG.js → chat-IRV5W5OA.js} +14 -14
  13. package/dist/chunks/{chunk-TI7LE6F5.js → chunk-24GH4KQJ.js} +2 -2
  14. package/dist/chunks/{chunk-MOI4XD5Z.js → chunk-2UHRQ45K.js} +12 -12
  15. package/dist/chunks/{chunk-OYJCMNOO.js → chunk-3MUR66WZ.js} +6 -6
  16. package/dist/chunks/{chunk-VEOIRZH4.js → chunk-3NPQFAYV.js} +2 -2
  17. package/dist/chunks/{chunk-7INJDLWA.js → chunk-57GLVV5T.js} +4 -4
  18. package/dist/chunks/{chunk-MB4SLACG.js → chunk-5E5AT2HQ.js} +2 -2
  19. package/dist/chunks/{chunk-TTCXFX6V.js → chunk-5M256BI5.js} +5 -5
  20. package/dist/chunks/{devtools-LBE4PAQN.js → chunk-7AZTWFS7.js} +12 -84
  21. package/dist/chunks/{devtools-LBE4PAQN.js.map → chunk-7AZTWFS7.js.map} +2 -2
  22. package/dist/chunks/{chunk-4WDWLAQ5.js → chunk-AHD7MEBE.js} +12 -12
  23. package/dist/chunks/{chunk-LZISO3TE.js → chunk-BGRWTZGG.js} +3 -3
  24. package/dist/chunks/{chunk-J4IRSWAS.js → chunk-BHUDDJYS.js} +2 -2
  25. package/dist/chunks/{chunk-6USAI7O7.js → chunk-BLDYNZ3J.js} +2 -2
  26. package/dist/chunks/{chunk-XB7HBRSL.js → chunk-BMR6E2FY.js} +2 -2
  27. package/dist/chunks/{chunk-ZNO7XIZU.js → chunk-DIXKMLHZ.js} +3 -3
  28. package/dist/chunks/{chunk-HKUWS2WO.js → chunk-E73OMVMG.js} +3 -3
  29. package/dist/chunks/{chunk-NIBOMW4E.js → chunk-EZOZQJBG.js} +4 -4
  30. package/dist/chunks/{chunk-AEWKXISZ.js → chunk-GHF6GJ5Y.js} +13 -13
  31. package/dist/chunks/{chunk-GSZCV2P3.js → chunk-HGADGGEG.js} +2 -2
  32. package/dist/chunks/{chunk-GXQAMIQA.js → chunk-HWR7GXGJ.js} +3 -3
  33. package/dist/chunks/{chunk-2GTBCI2R.js → chunk-I77G3ACY.js} +3 -3
  34. package/dist/chunks/{chunk-KB7EM3DJ.js → chunk-JW7ZIF23.js} +2 -2
  35. package/dist/chunks/{chunk-OTTDC3KF.js → chunk-KS43Q64I.js} +4 -4
  36. package/dist/chunks/{chunk-LCFHDWTA.js → chunk-LC5CSMLC.js} +3 -3
  37. package/dist/chunks/{chunk-CBNP2J2W.js → chunk-LDKXWBLK.js} +7 -7
  38. package/dist/chunks/{chunk-ZGP5MF2Q.js → chunk-LQMS65KX.js} +3 -3
  39. package/dist/chunks/{chunk-FUORCVIN.js → chunk-MCXVH6TQ.js} +4 -4
  40. package/dist/chunks/{chunk-5LO5YWAO.js → chunk-MQVRM5OC.js} +4 -4
  41. package/dist/chunks/{chunk-HMORKNX3.js → chunk-N2ANOFXH.js} +13673 -12432
  42. package/dist/chunks/chunk-N2ANOFXH.js.map +6 -0
  43. package/dist/chunks/{chunk-KSQTOA6I.js → chunk-OCGWHJEN.js} +20 -18
  44. package/dist/chunks/{chunk-KSQTOA6I.js.map → chunk-OCGWHJEN.js.map} +1 -1
  45. package/dist/chunks/{chunk-HTXPBXXP.js → chunk-OMSXEJYE.js} +2 -2
  46. package/dist/chunks/{chunk-LVW3JXVJ.js → chunk-PJWDYXQI.js} +4 -4
  47. package/dist/chunks/{chunk-FXXP6QP6.js → chunk-Q35GDUZ4.js} +2 -2
  48. package/dist/chunks/{chunk-6CD4ZJWY.js → chunk-Q3B4NBK3.js} +5 -5
  49. package/dist/chunks/{chunk-ADJCEQGK.js → chunk-QDLHNM37.js} +2 -2
  50. package/dist/chunks/{chunk-QINC4TIT.js → chunk-QEUOFWAZ.js} +3 -3
  51. package/dist/chunks/{chunk-DPCUP4TI.js → chunk-QVUDFCFY.js} +4 -4
  52. package/dist/chunks/{chunk-4MZXZCPR.js → chunk-S44YIFC3.js} +2 -2
  53. package/dist/chunks/{chunk-AHK44IOS.js → chunk-SZZNNW6N.js} +2 -2
  54. package/dist/chunks/{chunk-TGZ7OLDL.js → chunk-T5TNPB4U.js} +10 -10
  55. package/dist/chunks/{chunk-6SKQVVXO.js → chunk-T6NRDLAQ.js} +35 -35
  56. package/dist/chunks/{chunk-4K3ABOWX.js → chunk-TDJ4XMCS.js} +9 -9
  57. package/dist/chunks/{chunk-WU5K7PF3.js → chunk-TZRA6QUH.js} +16 -14
  58. package/dist/chunks/{chunk-WU5K7PF3.js.map → chunk-TZRA6QUH.js.map} +1 -1
  59. package/dist/chunks/{chunk-A3TBA7LQ.js → chunk-URMSX3IO.js} +3 -3
  60. package/dist/chunks/{chunk-S72MTTOC.js → chunk-UUDEHY7M.js} +2 -2
  61. package/dist/chunks/{chunk-EKSTG5ZQ.js → chunk-VEPUBE3H.js} +2 -2
  62. package/dist/chunks/{chunk-3TGNRSKG.js → chunk-VIS4SNKA.js} +6 -6
  63. package/dist/chunks/{chunk-GEPGHAWO.js → chunk-VKZIX3HT.js} +2 -2
  64. package/dist/chunks/{chunk-Q2EWUIIT.js → chunk-VUE7LP6D.js} +2 -2
  65. package/dist/chunks/{chunk-5EQTZ4HK.js → chunk-WCUCNKJU.js} +4 -4
  66. package/dist/chunks/{chunk-MRQ2UQG5.js → chunk-WI2MIQOJ.js} +2 -2
  67. package/dist/chunks/{chunk-VSLHC665.js → chunk-WK6GEMBO.js} +3 -3
  68. package/dist/chunks/{chunk-IB7UOMAQ.js → chunk-WOY76GQF.js} +5 -5
  69. package/dist/chunks/{chunk-5X7RU64G.js → chunk-WWREIUJR.js} +4 -4
  70. package/dist/chunks/{chunk-3KMW53PV.js → chunk-YHSMEYOT.js} +2 -2
  71. package/dist/chunks/{chunk-UC3UARTL.js → chunk-YUEHR7BW.js} +161 -23
  72. package/dist/chunks/chunk-YUEHR7BW.js.map +6 -0
  73. package/dist/chunks/{chunk-IVFJXA6P.js → chunk-Z2LUKZ27.js} +3 -3
  74. package/dist/chunks/{chunk-ACJ37X25.js → chunk-ZARLAIDT.js} +2 -2
  75. package/dist/chunks/{cli-runtime-T6ZXKC2O.js → cli-runtime-23BX2YCB.js} +10 -10
  76. package/dist/chunks/{commands-3RJ5HAMM.js → commands-653H4ELC.js} +5 -5
  77. package/dist/chunks/{crash-report-ZUP6NMRJ.js → crash-report-V3BWOZ2M.js} +7 -7
  78. package/dist/chunks/devtools-V6SF7RES.js +93 -0
  79. package/dist/chunks/devtools-V6SF7RES.js.map +6 -0
  80. package/dist/chunks/{dist-XFIOSXNS.js → dist-3I7LFHB6.js} +2 -2
  81. package/dist/chunks/{dist-GXQCJQ53.js → dist-IQLEVRAR.js} +2 -2
  82. package/dist/chunks/{dist-5D7BTPT2.js → dist-S7RG65ZN.js} +2 -2
  83. package/dist/chunks/{dist-72DFA26L.js → dist-SC3XYI4I.js} +2 -2
  84. package/dist/chunks/{dist-PE6GSYDP.js → dist-TQS4OUGR.js} +2 -2
  85. package/dist/chunks/{dist-HJCEE57U.js → dist-YQEFEGM4.js} +2 -2
  86. package/dist/chunks/{dist-I2Q3FRR4.js → dist-Z5E2SZXJ.js} +2 -2
  87. package/dist/chunks/{doctor-FPBYPOAK.js → doctor-GEZEPFP6.js} +8 -8
  88. package/dist/chunks/{drain-N65CXI5H.js → drain-HB5HGWEM.js} +12 -10
  89. package/dist/chunks/{drain-N65CXI5H.js.map → drain-HB5HGWEM.js.map} +1 -1
  90. package/dist/chunks/{eval-SYKBFGGU.js → eval-RA3FXHBB.js} +2 -2
  91. package/dist/chunks/{exec-INYAGY7Q.js → exec-4QTKYNLX.js} +88 -43
  92. package/dist/chunks/exec-4QTKYNLX.js.map +6 -0
  93. package/dist/chunks/{home-FJS5AXFZ.js → home-2BMCNVI6.js} +3 -3
  94. package/dist/chunks/{host-queries-Q3CDQ5R6.js → host-queries-KV4PSA37.js} +14 -14
  95. package/dist/chunks/{lifecycle-5RWKT62M.js → lifecycle-HLPYVX33.js} +26 -26
  96. package/dist/chunks/{list-FUOU75RU.js → list-CWBDURM4.js} +15 -15
  97. package/dist/chunks/{login-ELQCFAUF.js → login-JICZUCU4.js} +8 -8
  98. package/dist/chunks/{logs-OBL6KGPA.js → logs-EZVXV3ED.js} +4 -4
  99. package/dist/chunks/{mcp-TFWJC56M.js → mcp-AWQZVLNR.js} +22 -22
  100. package/dist/chunks/{message-command-ZNMT76V5.js → message-command-NQUVQG42.js} +39 -39
  101. package/dist/chunks/{operator-tools-C6OPS77I.js → operator-tools-P3KHUSPM.js} +12 -12
  102. package/dist/chunks/{output-schema-35YWLD2S.js → output-schema-ASYUJL2G.js} +3 -3
  103. package/dist/chunks/{pal-TN4YSFO6.js → pal-5F3CH7BQ.js} +14 -14
  104. package/dist/chunks/{providers-KC7IQHF7.js → providers-AMRKV2MR.js} +6 -6
  105. package/dist/chunks/{resident-JZ5AHFMO.js → resident-BNR3NVGQ.js} +25 -25
  106. package/dist/chunks/resume-6HKESNKD.js +22 -0
  107. package/dist/chunks/{resume-command-5FDSKSZR.js → resume-command-PPNI2EC7.js} +4 -4
  108. package/dist/chunks/{schedule-ZVBIF6JZ.js → schedule-2UXRUWFI.js} +8 -8
  109. package/dist/chunks/{service-2MS37QMZ.js → service-GJPE7I3Z.js} +27 -27
  110. package/dist/chunks/session-step-SQJKL3HY.js +27 -0
  111. package/dist/chunks/{skills-B35Q357B.js → skills-7YS6Z6KZ.js} +8 -8
  112. package/dist/chunks/{state-YXNTJW67.js → state-2RDZT6FZ.js} +2 -2
  113. package/dist/chunks/{store-5BLKNUFX.js → store-3CNDOQL4.js} +9 -9
  114. package/dist/chunks/{store-H5KCO6HN.js → store-MXI3QAO3.js} +4 -4
  115. package/dist/chunks/{store-5YOZ57L2.js → store-O6QV53BV.js} +6 -6
  116. package/dist/chunks/{tui-NZUV74RQ.js → tui-EZVA52PY.js} +175 -93
  117. package/dist/chunks/tui-EZVA52PY.js.map +6 -0
  118. package/dist/chunks/{upgrade-64USK7BM.js → upgrade-JRTE42RR.js} +2 -2
  119. package/dist/chunks/{worktree-COOGACI6.js → worktree-ZK2OD56A.js} +11 -11
  120. package/dist/chunks/wrapper-XHVFM6KS.js +34 -0
  121. package/dist/chunks/wrapper-XHVFM6KS.js.map +6 -0
  122. package/dist/commands/acp.d.ts +1 -1
  123. package/dist/commands/acp.d.ts.map +1 -1
  124. package/dist/commands/desktop-host.d.ts.map +1 -1
  125. package/dist/commands/drain.d.ts.map +1 -1
  126. package/dist/commands/exec-json.d.ts.map +1 -1
  127. package/dist/commands/exec-monitors.d.ts +31 -0
  128. package/dist/commands/exec-monitors.d.ts.map +1 -0
  129. package/dist/commands/exec.d.ts.map +1 -1
  130. package/dist/index.js +24 -24
  131. package/dist/integrations/monitors/inbox.d.ts +54 -0
  132. package/dist/integrations/monitors/inbox.d.ts.map +1 -0
  133. package/dist/integrations/monitors/web-access-hint.d.ts +8 -0
  134. package/dist/integrations/monitors/web-access-hint.d.ts.map +1 -0
  135. package/dist/integrations/resident/runner-worker.js +18 -18
  136. package/dist/integrations/resident/session-step.d.ts.map +1 -1
  137. package/dist/schedule/fire/fire.d.ts.map +1 -1
  138. package/dist/tui/App.d.ts.map +1 -1
  139. package/dist/tui/BackgroundJobsPanel.d.ts.map +1 -1
  140. package/dist/tui/StatusBar.d.ts +5 -1
  141. package/dist/tui/StatusBar.d.ts.map +1 -1
  142. package/dist/tui/agent.d.ts +30 -0
  143. package/dist/tui/agent.d.ts.map +1 -1
  144. package/dist/tui/job-exit-row.d.ts +10 -0
  145. package/dist/tui/job-exit-row.d.ts.map +1 -1
  146. package/package.json +7 -7
  147. package/dist/chunks/agent-session-4G4PKPCR.js +0 -51
  148. package/dist/chunks/chunk-HMORKNX3.js.map +0 -6
  149. package/dist/chunks/chunk-UC3UARTL.js.map +0 -6
  150. package/dist/chunks/exec-INYAGY7Q.js.map +0 -6
  151. package/dist/chunks/resume-ZLGRUFA3.js +0 -22
  152. package/dist/chunks/session-step-XIYPMQA4.js +0 -27
  153. package/dist/chunks/tui-NZUV74RQ.js.map +0 -6
  154. /package/dist/chunks/{activity-command-U3KHRDTY.js.map → activity-command-FW57BC4I.js.map} +0 -0
  155. /package/dist/chunks/{add-Q2HPE26F.js.map → add-MGR37R67.js.map} +0 -0
  156. /package/dist/chunks/{agent-KSRUGF37.js.map → agent-W75JSUKG.js.map} +0 -0
  157. /package/dist/chunks/{agent-session-4G4PKPCR.js.map → agent-session-DPXU4EEF.js.map} +0 -0
  158. /package/dist/chunks/{archive-NQ527SKW.js.map → archive-KEMEXDTF.js.map} +0 -0
  159. /package/dist/chunks/{bin-main-72QPYEQ5.js.map → bin-main-CSS47L7D.js.map} +0 -0
  160. /package/dist/chunks/{browser-NQAXUNRS.js.map → browser-7KFOR6DK.js.map} +0 -0
  161. /package/dist/chunks/{chat-QSA5IBTG.js.map → chat-IRV5W5OA.js.map} +0 -0
  162. /package/dist/chunks/{chunk-TI7LE6F5.js.map → chunk-24GH4KQJ.js.map} +0 -0
  163. /package/dist/chunks/{chunk-MOI4XD5Z.js.map → chunk-2UHRQ45K.js.map} +0 -0
  164. /package/dist/chunks/{chunk-OYJCMNOO.js.map → chunk-3MUR66WZ.js.map} +0 -0
  165. /package/dist/chunks/{chunk-VEOIRZH4.js.map → chunk-3NPQFAYV.js.map} +0 -0
  166. /package/dist/chunks/{chunk-7INJDLWA.js.map → chunk-57GLVV5T.js.map} +0 -0
  167. /package/dist/chunks/{chunk-MB4SLACG.js.map → chunk-5E5AT2HQ.js.map} +0 -0
  168. /package/dist/chunks/{chunk-TTCXFX6V.js.map → chunk-5M256BI5.js.map} +0 -0
  169. /package/dist/chunks/{chunk-4WDWLAQ5.js.map → chunk-AHD7MEBE.js.map} +0 -0
  170. /package/dist/chunks/{chunk-LZISO3TE.js.map → chunk-BGRWTZGG.js.map} +0 -0
  171. /package/dist/chunks/{chunk-J4IRSWAS.js.map → chunk-BHUDDJYS.js.map} +0 -0
  172. /package/dist/chunks/{chunk-6USAI7O7.js.map → chunk-BLDYNZ3J.js.map} +0 -0
  173. /package/dist/chunks/{chunk-XB7HBRSL.js.map → chunk-BMR6E2FY.js.map} +0 -0
  174. /package/dist/chunks/{chunk-ZNO7XIZU.js.map → chunk-DIXKMLHZ.js.map} +0 -0
  175. /package/dist/chunks/{chunk-HKUWS2WO.js.map → chunk-E73OMVMG.js.map} +0 -0
  176. /package/dist/chunks/{chunk-NIBOMW4E.js.map → chunk-EZOZQJBG.js.map} +0 -0
  177. /package/dist/chunks/{chunk-AEWKXISZ.js.map → chunk-GHF6GJ5Y.js.map} +0 -0
  178. /package/dist/chunks/{chunk-GSZCV2P3.js.map → chunk-HGADGGEG.js.map} +0 -0
  179. /package/dist/chunks/{chunk-GXQAMIQA.js.map → chunk-HWR7GXGJ.js.map} +0 -0
  180. /package/dist/chunks/{chunk-2GTBCI2R.js.map → chunk-I77G3ACY.js.map} +0 -0
  181. /package/dist/chunks/{chunk-KB7EM3DJ.js.map → chunk-JW7ZIF23.js.map} +0 -0
  182. /package/dist/chunks/{chunk-OTTDC3KF.js.map → chunk-KS43Q64I.js.map} +0 -0
  183. /package/dist/chunks/{chunk-LCFHDWTA.js.map → chunk-LC5CSMLC.js.map} +0 -0
  184. /package/dist/chunks/{chunk-CBNP2J2W.js.map → chunk-LDKXWBLK.js.map} +0 -0
  185. /package/dist/chunks/{chunk-ZGP5MF2Q.js.map → chunk-LQMS65KX.js.map} +0 -0
  186. /package/dist/chunks/{chunk-FUORCVIN.js.map → chunk-MCXVH6TQ.js.map} +0 -0
  187. /package/dist/chunks/{chunk-5LO5YWAO.js.map → chunk-MQVRM5OC.js.map} +0 -0
  188. /package/dist/chunks/{chunk-HTXPBXXP.js.map → chunk-OMSXEJYE.js.map} +0 -0
  189. /package/dist/chunks/{chunk-LVW3JXVJ.js.map → chunk-PJWDYXQI.js.map} +0 -0
  190. /package/dist/chunks/{chunk-FXXP6QP6.js.map → chunk-Q35GDUZ4.js.map} +0 -0
  191. /package/dist/chunks/{chunk-6CD4ZJWY.js.map → chunk-Q3B4NBK3.js.map} +0 -0
  192. /package/dist/chunks/{chunk-ADJCEQGK.js.map → chunk-QDLHNM37.js.map} +0 -0
  193. /package/dist/chunks/{chunk-QINC4TIT.js.map → chunk-QEUOFWAZ.js.map} +0 -0
  194. /package/dist/chunks/{chunk-DPCUP4TI.js.map → chunk-QVUDFCFY.js.map} +0 -0
  195. /package/dist/chunks/{chunk-4MZXZCPR.js.map → chunk-S44YIFC3.js.map} +0 -0
  196. /package/dist/chunks/{chunk-AHK44IOS.js.map → chunk-SZZNNW6N.js.map} +0 -0
  197. /package/dist/chunks/{chunk-TGZ7OLDL.js.map → chunk-T5TNPB4U.js.map} +0 -0
  198. /package/dist/chunks/{chunk-6SKQVVXO.js.map → chunk-T6NRDLAQ.js.map} +0 -0
  199. /package/dist/chunks/{chunk-4K3ABOWX.js.map → chunk-TDJ4XMCS.js.map} +0 -0
  200. /package/dist/chunks/{chunk-A3TBA7LQ.js.map → chunk-URMSX3IO.js.map} +0 -0
  201. /package/dist/chunks/{chunk-S72MTTOC.js.map → chunk-UUDEHY7M.js.map} +0 -0
  202. /package/dist/chunks/{chunk-EKSTG5ZQ.js.map → chunk-VEPUBE3H.js.map} +0 -0
  203. /package/dist/chunks/{chunk-3TGNRSKG.js.map → chunk-VIS4SNKA.js.map} +0 -0
  204. /package/dist/chunks/{chunk-GEPGHAWO.js.map → chunk-VKZIX3HT.js.map} +0 -0
  205. /package/dist/chunks/{chunk-Q2EWUIIT.js.map → chunk-VUE7LP6D.js.map} +0 -0
  206. /package/dist/chunks/{chunk-5EQTZ4HK.js.map → chunk-WCUCNKJU.js.map} +0 -0
  207. /package/dist/chunks/{chunk-MRQ2UQG5.js.map → chunk-WI2MIQOJ.js.map} +0 -0
  208. /package/dist/chunks/{chunk-VSLHC665.js.map → chunk-WK6GEMBO.js.map} +0 -0
  209. /package/dist/chunks/{chunk-IB7UOMAQ.js.map → chunk-WOY76GQF.js.map} +0 -0
  210. /package/dist/chunks/{chunk-5X7RU64G.js.map → chunk-WWREIUJR.js.map} +0 -0
  211. /package/dist/chunks/{chunk-3KMW53PV.js.map → chunk-YHSMEYOT.js.map} +0 -0
  212. /package/dist/chunks/{chunk-IVFJXA6P.js.map → chunk-Z2LUKZ27.js.map} +0 -0
  213. /package/dist/chunks/{chunk-ACJ37X25.js.map → chunk-ZARLAIDT.js.map} +0 -0
  214. /package/dist/chunks/{cli-runtime-T6ZXKC2O.js.map → cli-runtime-23BX2YCB.js.map} +0 -0
  215. /package/dist/chunks/{commands-3RJ5HAMM.js.map → commands-653H4ELC.js.map} +0 -0
  216. /package/dist/chunks/{crash-report-ZUP6NMRJ.js.map → crash-report-V3BWOZ2M.js.map} +0 -0
  217. /package/dist/chunks/{dist-XFIOSXNS.js.map → dist-3I7LFHB6.js.map} +0 -0
  218. /package/dist/chunks/{dist-GXQCJQ53.js.map → dist-IQLEVRAR.js.map} +0 -0
  219. /package/dist/chunks/{dist-5D7BTPT2.js.map → dist-S7RG65ZN.js.map} +0 -0
  220. /package/dist/chunks/{dist-72DFA26L.js.map → dist-SC3XYI4I.js.map} +0 -0
  221. /package/dist/chunks/{dist-PE6GSYDP.js.map → dist-TQS4OUGR.js.map} +0 -0
  222. /package/dist/chunks/{dist-HJCEE57U.js.map → dist-YQEFEGM4.js.map} +0 -0
  223. /package/dist/chunks/{dist-I2Q3FRR4.js.map → dist-Z5E2SZXJ.js.map} +0 -0
  224. /package/dist/chunks/{doctor-FPBYPOAK.js.map → doctor-GEZEPFP6.js.map} +0 -0
  225. /package/dist/chunks/{eval-SYKBFGGU.js.map → eval-RA3FXHBB.js.map} +0 -0
  226. /package/dist/chunks/{home-FJS5AXFZ.js.map → home-2BMCNVI6.js.map} +0 -0
  227. /package/dist/chunks/{host-queries-Q3CDQ5R6.js.map → host-queries-KV4PSA37.js.map} +0 -0
  228. /package/dist/chunks/{lifecycle-5RWKT62M.js.map → lifecycle-HLPYVX33.js.map} +0 -0
  229. /package/dist/chunks/{list-FUOU75RU.js.map → list-CWBDURM4.js.map} +0 -0
  230. /package/dist/chunks/{login-ELQCFAUF.js.map → login-JICZUCU4.js.map} +0 -0
  231. /package/dist/chunks/{logs-OBL6KGPA.js.map → logs-EZVXV3ED.js.map} +0 -0
  232. /package/dist/chunks/{mcp-TFWJC56M.js.map → mcp-AWQZVLNR.js.map} +0 -0
  233. /package/dist/chunks/{message-command-ZNMT76V5.js.map → message-command-NQUVQG42.js.map} +0 -0
  234. /package/dist/chunks/{operator-tools-C6OPS77I.js.map → operator-tools-P3KHUSPM.js.map} +0 -0
  235. /package/dist/chunks/{output-schema-35YWLD2S.js.map → output-schema-ASYUJL2G.js.map} +0 -0
  236. /package/dist/chunks/{pal-TN4YSFO6.js.map → pal-5F3CH7BQ.js.map} +0 -0
  237. /package/dist/chunks/{providers-KC7IQHF7.js.map → providers-AMRKV2MR.js.map} +0 -0
  238. /package/dist/chunks/{resident-JZ5AHFMO.js.map → resident-BNR3NVGQ.js.map} +0 -0
  239. /package/dist/chunks/{resume-ZLGRUFA3.js.map → resume-6HKESNKD.js.map} +0 -0
  240. /package/dist/chunks/{resume-command-5FDSKSZR.js.map → resume-command-PPNI2EC7.js.map} +0 -0
  241. /package/dist/chunks/{schedule-ZVBIF6JZ.js.map → schedule-2UXRUWFI.js.map} +0 -0
  242. /package/dist/chunks/{service-2MS37QMZ.js.map → service-GJPE7I3Z.js.map} +0 -0
  243. /package/dist/chunks/{session-step-XIYPMQA4.js.map → session-step-SQJKL3HY.js.map} +0 -0
  244. /package/dist/chunks/{skills-B35Q357B.js.map → skills-7YS6Z6KZ.js.map} +0 -0
  245. /package/dist/chunks/{state-YXNTJW67.js.map → state-2RDZT6FZ.js.map} +0 -0
  246. /package/dist/chunks/{store-5BLKNUFX.js.map → store-3CNDOQL4.js.map} +0 -0
  247. /package/dist/chunks/{store-5YOZ57L2.js.map → store-MXI3QAO3.js.map} +0 -0
  248. /package/dist/chunks/{store-H5KCO6HN.js.map → store-O6QV53BV.js.map} +0 -0
  249. /package/dist/chunks/{upgrade-64USK7BM.js.map → upgrade-JRTE42RR.js.map} +0 -0
  250. /package/dist/chunks/{worktree-COOGACI6.js.map → worktree-ZK2OD56A.js.map} +0 -0
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  LOG_SECRET_PATTERNS
5
- } from "./chunk-HMORKNX3.js";
5
+ } from "./chunk-N2ANOFXH.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-76FLAFCG.js";
@@ -108,4 +108,4 @@ export {
108
108
  renderConfigDebug,
109
109
  configMetadataLiteral
110
110
  };
111
- //# sourceMappingURL=chunk-MRQ2UQG5.js.map
111
+ //# sourceMappingURL=chunk-WI2MIQOJ.js.map
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  visibleProjectInstructionPath
5
- } from "./chunk-UC3UARTL.js";
5
+ } from "./chunk-YUEHR7BW.js";
6
6
  import {
7
7
  debugRequested
8
8
  } from "./chunk-GNBMKISG.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  openConversationLog,
18
18
  readConversationFacts
19
- } from "./chunk-IB7UOMAQ.js";
19
+ } from "./chunk-WOY76GQF.js";
20
20
  import {
21
21
  __name
22
22
  } from "./chunk-76FLAFCG.js";
@@ -944,4 +944,4 @@ export {
944
944
  withKeyNote,
945
945
  rawDetail
946
946
  };
947
- //# sourceMappingURL=chunk-VSLHC665.js.map
947
+ //# sourceMappingURL=chunk-WK6GEMBO.js.map
@@ -5,13 +5,13 @@ import {
5
5
  } from "./chunk-H6B6AROX.js";
6
6
  import {
7
7
  publishPrivateJsonIfAbsent
8
- } from "./chunk-J4IRSWAS.js";
8
+ } from "./chunk-BHUDDJYS.js";
9
9
  import {
10
10
  palAtWorkspace
11
- } from "./chunk-LVW3JXVJ.js";
11
+ } from "./chunk-PJWDYXQI.js";
12
12
  import {
13
13
  ensurePrivateStateDirectory
14
- } from "./chunk-EKSTG5ZQ.js";
14
+ } from "./chunk-VEPUBE3H.js";
15
15
  import {
16
16
  DiskSessionGoalStore,
17
17
  DiskSessionLog,
@@ -27,7 +27,7 @@ import {
27
27
  openSessionIndex,
28
28
  readSessionLog,
29
29
  resolveNamzuHome
30
- } from "./chunk-HMORKNX3.js";
30
+ } from "./chunk-N2ANOFXH.js";
31
31
  import {
32
32
  __name
33
33
  } from "./chunk-76FLAFCG.js";
@@ -817,4 +817,4 @@ export {
817
817
  conversationDir,
818
818
  projectDir
819
819
  };
820
- //# sourceMappingURL=chunk-IB7UOMAQ.js.map
820
+ //# sourceMappingURL=chunk-WOY76GQF.js.map
@@ -9,11 +9,11 @@ import {
9
9
  } from "./chunk-JV3LONAU.js";
10
10
  import {
11
11
  openInBrowser
12
- } from "./chunk-Q2EWUIIT.js";
12
+ } from "./chunk-VUE7LP6D.js";
13
13
  import {
14
14
  beginCodexDeviceLogin,
15
15
  beginSubscriptionLogin
16
- } from "./chunk-7INJDLWA.js";
16
+ } from "./chunk-57GLVV5T.js";
17
17
  import {
18
18
  EXIT_FAIL,
19
19
  EXIT_OK,
@@ -29,7 +29,7 @@ import {
29
29
  readStoredCodexCredential,
30
30
  readStoredGeminiApiKey,
31
31
  readStoredSubscriptionCredential
32
- } from "./chunk-TI7LE6F5.js";
32
+ } from "./chunk-24GH4KQJ.js";
33
33
  import {
34
34
  __name
35
35
  } from "./chunk-76FLAFCG.js";
@@ -308,4 +308,4 @@ export {
308
308
  loginCommand,
309
309
  logoutCommand
310
310
  };
311
- //# sourceMappingURL=chunk-5X7RU64G.js.map
311
+ //# sourceMappingURL=chunk-WWREIUJR.js.map
@@ -2,7 +2,7 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  ensurePrivateStateDirectory
5
- } from "./chunk-EKSTG5ZQ.js";
5
+ } from "./chunk-VEPUBE3H.js";
6
6
  import {
7
7
  __name
8
8
  } from "./chunk-76FLAFCG.js";
@@ -105,4 +105,4 @@ export {
105
105
  createLazyCodeAnalysis,
106
106
  codeAnalysisSelfTest
107
107
  };
108
- //# sourceMappingURL=chunk-3KMW53PV.js.map
108
+ //# sourceMappingURL=chunk-YHSMEYOT.js.map
@@ -2,10 +2,10 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  openManagedWorktrees
5
- } from "./chunk-DPCUP4TI.js";
5
+ } from "./chunk-QVUDFCFY.js";
6
6
  import {
7
7
  createSessionSkillCatalog
8
- } from "./chunk-GXQAMIQA.js";
8
+ } from "./chunk-HWR7GXGJ.js";
9
9
  import {
10
10
  createBrowserControl
11
11
  } from "./chunk-WHODOMXA.js";
@@ -24,13 +24,13 @@ import {
24
24
  viewFromJournal,
25
25
  workflowOffered,
26
26
  workflowRefusal
27
- } from "./chunk-IVFJXA6P.js";
27
+ } from "./chunk-Z2LUKZ27.js";
28
28
  import {
29
29
  connectMcpServers
30
- } from "./chunk-NIBOMW4E.js";
30
+ } from "./chunk-EZOZQJBG.js";
31
31
  import {
32
32
  openInBrowser
33
- } from "./chunk-Q2EWUIIT.js";
33
+ } from "./chunk-VUE7LP6D.js";
34
34
  import {
35
35
  CredentialRefreshRejectedError,
36
36
  CredentialWithdrawnError,
@@ -38,7 +38,7 @@ import {
38
38
  ensureFreshStoredCodexCredential,
39
39
  readSubscriptionCredential,
40
40
  sameOAuthCredential
41
- } from "./chunk-7INJDLWA.js";
41
+ } from "./chunk-57GLVV5T.js";
42
42
  import {
43
43
  debugRequested
44
44
  } from "./chunk-GNBMKISG.js";
@@ -47,7 +47,7 @@ import {
47
47
  configuredPassthroughTools,
48
48
  resolveToolResultScreens,
49
49
  unmatchedPassthroughTools
50
- } from "./chunk-5EQTZ4HK.js";
50
+ } from "./chunk-WCUCNKJU.js";
51
51
  import {
52
52
  formatSize,
53
53
  homePath,
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-US5ZFPAU.js";
56
56
  import {
57
57
  createLazyCodeAnalysis
58
- } from "./chunk-3KMW53PV.js";
58
+ } from "./chunk-YHSMEYOT.js";
59
59
  import {
60
60
  canSelectModel,
61
61
  chainCapabilityDisagreements,
@@ -78,7 +78,7 @@ import {
78
78
  requiresCredentialForModel,
79
79
  resolveChainCapabilities,
80
80
  unresolvedMembers
81
- } from "./chunk-AEWKXISZ.js";
81
+ } from "./chunk-GHF6GJ5Y.js";
82
82
  import {
83
83
  PROVIDER_REGISTRY,
84
84
  missingCredentialMessage,
@@ -87,11 +87,11 @@ import {
87
87
  import {
88
88
  isPermissionMode,
89
89
  permissionModeLabel
90
- } from "./chunk-KB7EM3DJ.js";
90
+ } from "./chunk-JW7ZIF23.js";
91
91
  import {
92
92
  conversationLogPath,
93
93
  ensureSessionStarted
94
- } from "./chunk-IB7UOMAQ.js";
94
+ } from "./chunk-WOY76GQF.js";
95
95
  import {
96
96
  INSTRUCTIONS_FILENAME,
97
97
  MAX_CHARS_PER_FILE,
@@ -102,10 +102,10 @@ import {
102
102
  import {
103
103
  compilePermissions,
104
104
  isPermissionEffect
105
- } from "./chunk-QINC4TIT.js";
105
+ } from "./chunk-QEUOFWAZ.js";
106
106
  import {
107
107
  cliLogger
108
- } from "./chunk-GSZCV2P3.js";
108
+ } from "./chunk-HGADGGEG.js";
109
109
  import {
110
110
  probeCapabilities
111
111
  } from "./chunk-OH6TB27S.js";
@@ -115,13 +115,13 @@ import {
115
115
  } from "./chunk-U3JIZFOS.js";
116
116
  import {
117
117
  ensurePrivateStateDirectory
118
- } from "./chunk-EKSTG5ZQ.js";
118
+ } from "./chunk-VEPUBE3H.js";
119
119
  import {
120
120
  restrictToOwner
121
- } from "./chunk-TI7LE6F5.js";
121
+ } from "./chunk-24GH4KQJ.js";
122
122
  import {
123
123
  namzuHomePath
124
- } from "./chunk-6USAI7O7.js";
124
+ } from "./chunk-BLDYNZ3J.js";
125
125
  import {
126
126
  AgentManager,
127
127
  AgentRegistry,
@@ -186,6 +186,7 @@ import {
186
186
  asTaskId,
187
187
  asTurnId,
188
188
  attachShellHooks,
189
+ backgroundTasksDisabled,
189
190
  batchNeedsReview,
190
191
  bindOwner,
191
192
  buildAskUserQuestionTool,
@@ -194,6 +195,7 @@ import {
194
195
  buildResidentToolEvidenceTools,
195
196
  buildSessionGoalTools,
196
197
  builtinCommandArguments,
198
+ capMonitorNotifications,
197
199
  classifyEvidenceSource,
198
200
  collectChatCompletion,
199
201
  compactNow,
@@ -221,6 +223,8 @@ import {
221
223
  ensureProject,
222
224
  external_exports,
223
225
  filtered,
226
+ formatMonitorEnd,
227
+ formatMonitorEvent,
224
228
  generateSessionId,
225
229
  generateSummaryId,
226
230
  generateTenantId,
@@ -229,6 +233,7 @@ import {
229
233
  genericLabel,
230
234
  getBuiltinTools,
231
235
  getCodeAnalysisTools,
236
+ getMonitorTools,
232
237
  isCompactionMessage,
233
238
  isEntityId,
234
239
  isProjectInstructionMessageSource,
@@ -267,7 +272,7 @@ import {
267
272
  windowsShellNotice,
268
273
  withProviderFallback,
269
274
  wrapUntrusted
270
- } from "./chunk-HMORKNX3.js";
275
+ } from "./chunk-N2ANOFXH.js";
271
276
  import {
272
277
  __name
273
278
  } from "./chunk-76FLAFCG.js";
@@ -3226,6 +3231,85 @@ function resolveAutoDefault(config, isAvailable) {
3226
3231
  }
3227
3232
  __name(resolveAutoDefault, "resolveAutoDefault");
3228
3233
 
3234
+ // src/integrations/monitors/inbox.ts
3235
+ function monitorEventText(event) {
3236
+ return formatMonitorEvent(event, event.command);
3237
+ }
3238
+ __name(monitorEventText, "monitorEventText");
3239
+ function monitorEndText(job, stats) {
3240
+ return formatMonitorEnd(job, stats);
3241
+ }
3242
+ __name(monitorEndText, "monitorEndText");
3243
+ function createMonitorInbox() {
3244
+ const pending = /* @__PURE__ */ new Map();
3245
+ const delivered = /* @__PURE__ */ new Set();
3246
+ const listeners = /* @__PURE__ */ new Set();
3247
+ const changed = /* @__PURE__ */ __name(() => {
3248
+ for (const listener of [...listeners]) {
3249
+ try {
3250
+ listener();
3251
+ } catch {
3252
+ }
3253
+ }
3254
+ }, "changed");
3255
+ const render = /* @__PURE__ */ __name(() => {
3256
+ if (pending.size === 0) return { ids: [] };
3257
+ return {
3258
+ ids: [...pending.keys()],
3259
+ text: capMonitorNotifications([...pending.values()].map((entry) => entry.text).join("\n"))
3260
+ };
3261
+ }, "render");
3262
+ return {
3263
+ addEvent(event) {
3264
+ if (delivered.has(event.id)) return;
3265
+ pending.set(event.id, { text: monitorEventText(event), wakes: true });
3266
+ changed();
3267
+ },
3268
+ addEnd(job, stats) {
3269
+ if (delivered.has(job.id)) return;
3270
+ pending.set(job.id, {
3271
+ text: monitorEndText(job, stats),
3272
+ // A stop is reported with the next turn but starts none. Expiry and
3273
+ // too-much-output also end `killed`, yet each sent a notice event
3274
+ // first, which is what wakes the host.
3275
+ wakes: job.stopReason !== "stopped" && job.status !== "killed"
3276
+ });
3277
+ changed();
3278
+ },
3279
+ acknowledge(ids) {
3280
+ let any = false;
3281
+ for (const id of ids) {
3282
+ delivered.add(id);
3283
+ any = pending.delete(id) || any;
3284
+ }
3285
+ if (any) changed();
3286
+ },
3287
+ peek: render,
3288
+ take() {
3289
+ const taken = render();
3290
+ for (const id of taken.ids) {
3291
+ delivered.add(id);
3292
+ pending.delete(id);
3293
+ }
3294
+ return taken;
3295
+ },
3296
+ wakes: /* @__PURE__ */ __name(() => [...pending.values()].some((entry) => entry.wakes), "wakes"),
3297
+ get size() {
3298
+ return pending.size;
3299
+ },
3300
+ onChange(listener) {
3301
+ listeners.add(listener);
3302
+ return () => {
3303
+ listeners.delete(listener);
3304
+ };
3305
+ }
3306
+ };
3307
+ }
3308
+ __name(createMonitorInbox, "createMonitorInbox");
3309
+
3310
+ // src/integrations/monitors/web-access-hint.ts
3311
+ var MONITOR_WEB_ACCESS_HINT = "To allow it, set `web.fetch: true` in the Namzu config file (~/.namzu/config.yaml); it cannot be switched on from the environment.";
3312
+
3229
3313
  // src/integrations/plugins/settings.ts
3230
3314
  import { createHash as createHash3, randomUUID as randomUUID3 } from "node:crypto";
3231
3315
  import {
@@ -10308,10 +10392,10 @@ function clipRequestContext(prompt, limit, kind) {
10308
10392
  __name(clipRequestContext, "clipRequestContext");
10309
10393
  async function createAgentSession(prefs, detected, options = {}) {
10310
10394
  if (options.palEnvironment) {
10311
- const { createPalAgentSession } = await import("./agent-session-4G4PKPCR.js");
10395
+ const { createPalAgentSession } = await import("./agent-session-DPXU4EEF.js");
10312
10396
  return createPalAgentSession(prefs, detected, options);
10313
10397
  }
10314
- const { palAtWorkspace } = await import("./store-5YOZ57L2.js");
10398
+ const { palAtWorkspace } = await import("./store-O6QV53BV.js");
10315
10399
  if (palAtWorkspace(options.cwd ?? process.cwd()))
10316
10400
  throw new Error("This Pal requires its owned virtual computer. Open it with namzu pal chat.");
10317
10401
  const commandArguments = builtinCommandArguments();
@@ -10650,6 +10734,22 @@ async function createAgentSession(prefs, detected, options = {}) {
10650
10734
  const jobRegistry = backgroundJobs ? new BackgroundJobRegistry() : void 0;
10651
10735
  const jobOwner = scope.sessionId;
10652
10736
  const ownedJobs = jobRegistry ? bindOwner(jobRegistry, jobOwner) : void 0;
10737
+ const monitorInbox = createMonitorInbox();
10738
+ if (jobRegistry) {
10739
+ jobRegistry.onMonitorEvent((event) => {
10740
+ if (event.owner !== jobOwner) return;
10741
+ let command = "";
10742
+ try {
10743
+ command = jobRegistry.get(event.jobId).command;
10744
+ } catch {
10745
+ }
10746
+ monitorInbox.addEvent({ ...event, command });
10747
+ });
10748
+ jobRegistry.onExit((job) => {
10749
+ if (job.owner !== jobOwner || job.kind !== "monitor") return;
10750
+ monitorInbox.addEnd(job, jobRegistry.monitorStats(job.id));
10751
+ });
10752
+ }
10653
10753
  const directories = [];
10654
10754
  for (const dir of options.additionalDirectories ?? []) {
10655
10755
  const absolute = resolve10(cwd, dir);
@@ -11308,7 +11408,14 @@ async function createAgentSession(prefs, detected, options = {}) {
11308
11408
  if (codeAnalysis) {
11309
11409
  toolsets.push(deferred(toolset("code-analysis", getCodeAnalysisTools(codeAnalysis))));
11310
11410
  }
11311
- const operatorPals = await import("./operator-tools-C6OPS77I.js");
11411
+ if (jobRegistry && !backgroundTasksDisabled() && options.monitorTool !== false) {
11412
+ const monitorToolset = toolset(
11413
+ "monitor",
11414
+ getMonitorTools({ webAccessHint: MONITOR_WEB_ACCESS_HINT })
11415
+ );
11416
+ toolsets.push(options.toolLoading === "eager" ? monitorToolset : deferred(monitorToolset));
11417
+ }
11418
+ const operatorPals = await import("./operator-tools-P3KHUSPM.js");
11312
11419
  toolsets.push(
11313
11420
  readyWhen(
11314
11421
  toolset(
@@ -11919,6 +12026,22 @@ async function createAgentSession(prefs, detected, options = {}) {
11919
12026
  if (job.owner === jobOwner) listener(job);
11920
12027
  }) ?? (() => {
11921
12028
  }), "onJobExit"),
12029
+ ...jobRegistry ? {
12030
+ monitors: {
12031
+ addEvent: /* @__PURE__ */ __name((event) => monitorInbox.addEvent(event), "addEvent"),
12032
+ addEnd: /* @__PURE__ */ __name((job, stats) => monitorInbox.addEnd(job, stats), "addEnd"),
12033
+ acknowledge: /* @__PURE__ */ __name((ids) => monitorInbox.acknowledge(ids), "acknowledge"),
12034
+ peek: /* @__PURE__ */ __name(() => monitorInbox.peek(), "peek"),
12035
+ take: /* @__PURE__ */ __name(() => monitorInbox.take(), "take"),
12036
+ wakes: /* @__PURE__ */ __name(() => monitorInbox.wakes(), "wakes"),
12037
+ get size() {
12038
+ return monitorInbox.size;
12039
+ },
12040
+ onChange: /* @__PURE__ */ __name((listener) => monitorInbox.onChange(listener), "onChange"),
12041
+ stats: /* @__PURE__ */ __name((jobId) => jobRegistry.monitorStats(jobId), "stats"),
12042
+ running: /* @__PURE__ */ __name(() => jobRegistry.list(jobOwner).filter((job) => job.kind === "monitor" && job.status === "running").length, "running")
12043
+ }
12044
+ } : {},
11922
12045
  ...workflowHost ? {
11923
12046
  workflows: /* @__PURE__ */ ((host) => ({
11924
12047
  runs: /* @__PURE__ */ __name(() => host.registry.list(), "runs"),
@@ -12436,8 +12559,10 @@ async function createAgentSession(prefs, detected, options = {}) {
12436
12559
  ...options.compaction?.consolidate ? { consolidateInto: memoryStore } : {},
12437
12560
  ...jobRegistry ? {
12438
12561
  backgroundJobs: jobRegistry,
12439
- backgroundJobOwner: jobOwner
12562
+ backgroundJobOwner: jobOwner,
12563
+ monitors: monitorInbox
12440
12564
  } : {},
12565
+ ...options.monitorTimeoutCapMs !== void 0 ? { monitorTimeoutCapMs: options.monitorTimeoutCapMs } : {},
12441
12566
  // Constructed HERE, per turn, and that is not an optimisation to
12442
12567
  // undo. `refreshTokenIfNeeded` above replaces the head's client
12443
12568
  // object when an OAuth token rotates, so a member list built once at
@@ -12987,6 +13112,8 @@ async function* runTurn({
12987
13112
  consolidateInto,
12988
13113
  backgroundJobs,
12989
13114
  backgroundJobOwner,
13115
+ monitors,
13116
+ monitorTimeoutCapMs,
12990
13117
  fallbackProviders,
12991
13118
  model,
12992
13119
  toolsets,
@@ -13078,7 +13205,18 @@ async function* runTurn({
13078
13205
  compactionConfig,
13079
13206
  ...consolidateInto ? { consolidateInto } : {},
13080
13207
  ...backgroundJobs ? { backgroundJobs, backgroundJobOwner } : {},
13081
- ...opts?.onJobNoticeDelivered ? { onJobNoticeDelivered: opts.onJobNoticeDelivered } : {},
13208
+ // A monitor's end is acknowledged through the job-exit callback with its
13209
+ // job id, its events through their own; both also clear the session's
13210
+ // ledger so a delivered event is never offered to a later turn.
13211
+ onJobNoticeDelivered: /* @__PURE__ */ __name((ids) => {
13212
+ monitors?.acknowledge(ids);
13213
+ opts?.onJobNoticeDelivered?.(ids);
13214
+ }, "onJobNoticeDelivered"),
13215
+ onMonitorEventsDelivered: /* @__PURE__ */ __name((ids) => {
13216
+ monitors?.acknowledge(ids);
13217
+ opts?.onMonitorEventsDelivered?.(ids);
13218
+ }, "onMonitorEventsDelivered"),
13219
+ ...monitorTimeoutCapMs !== void 0 ? { monitorTimeoutCapMs } : {},
13082
13220
  turnConfig: {
13083
13221
  model,
13084
13222
  ...sandboxProvider ? { sandbox: { workspace: sandboxWorkspace } } : {},
@@ -13907,4 +14045,4 @@ export {
13907
14045
  RESULT_SUMMARY_WHOLE_MAX,
13908
14046
  resultSummaryLine
13909
14047
  };
13910
- //# sourceMappingURL=chunk-UC3UARTL.js.map
14048
+ //# sourceMappingURL=chunk-YUEHR7BW.js.map