@namzu/cli 55.0.0 → 57.0.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 (464) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-P6KFYGM5.js → acp-KBPTK4GN.js} +63 -62
  4. package/dist/chunks/acp-KBPTK4GN.js.map +6 -0
  5. package/dist/chunks/{activity-command-3J6V5EAF.js → activity-command-JOED2VWN.js} +14 -13
  6. package/dist/chunks/activity-command-JOED2VWN.js.map +6 -0
  7. package/dist/chunks/{add-LUMWGWUU.js → add-66AQ7SKZ.js} +20 -19
  8. package/dist/chunks/add-66AQ7SKZ.js.map +6 -0
  9. package/dist/chunks/{agent-DEUD7JUU.js → agent-DL7YTL5B.js} +46 -45
  10. package/dist/chunks/agent-session-KQIXHDGU.js +87 -0
  11. package/dist/chunks/{apply-at-exit-F4UKB3BB.js → apply-at-exit-5GUCOPX3.js} +7 -7
  12. package/dist/chunks/{archive-4WUNS3EH.js → archive-ED4CWEU2.js} +12 -11
  13. package/dist/chunks/archive-ED4CWEU2.js.map +6 -0
  14. package/dist/chunks/{bin-main-QQECDPFM.js → bin-main-JDJ6LEOK.js} +8 -8
  15. package/dist/chunks/{binding-CDC6AMM5.js → binding-NU3G3EBQ.js} +3 -3
  16. package/dist/chunks/{browser-7K5T2CC4.js → browser-7DRWOIEZ.js} +7 -7
  17. package/dist/chunks/{chat-R4QQEEKS.js → chat-ISFH5CPZ.js} +17 -16
  18. package/dist/chunks/chat-ISFH5CPZ.js.map +6 -0
  19. package/dist/chunks/{chunk-ISPL24EM.js → chunk-2TU3QQRG.js} +69 -8
  20. package/dist/chunks/chunk-2TU3QQRG.js.map +6 -0
  21. package/dist/chunks/chunk-372SLS6Y.js +437 -0
  22. package/dist/chunks/chunk-372SLS6Y.js.map +6 -0
  23. package/dist/chunks/{chunk-KFEWG3GS.js → chunk-4KGXEARZ.js} +2 -2
  24. package/dist/chunks/{chunk-CK3YOOFA.js → chunk-4PX62LQ2.js} +31 -261
  25. package/dist/chunks/chunk-4PX62LQ2.js.map +6 -0
  26. package/dist/chunks/{chunk-LQHDKHAT.js → chunk-4YN7VGLV.js} +3 -3
  27. package/dist/chunks/{chunk-ENH45E5N.js → chunk-5GRTRQTV.js} +5 -5
  28. package/dist/chunks/{chunk-4XBZAAZY.js → chunk-5LDYBGOZ.js} +3 -3
  29. package/dist/chunks/{chunk-VE2UWCKT.js → chunk-5PTXGBPL.js} +2 -2
  30. package/dist/chunks/{chunk-HVHJJTWW.js → chunk-5TJZWGTZ.js} +40 -40
  31. package/dist/chunks/{chunk-7KXXEO4G.js → chunk-5X4XLHLF.js} +8 -8
  32. package/dist/chunks/{chunk-HXZIELO7.js → chunk-66ZXPQGB.js} +13 -13
  33. package/dist/chunks/chunk-6A4RDHHY.js +10 -0
  34. package/dist/chunks/chunk-6A4RDHHY.js.map +6 -0
  35. package/dist/chunks/{chunk-NZNYEM7D.js → chunk-6F3M3P3W.js} +528 -145
  36. package/dist/chunks/chunk-6F3M3P3W.js.map +6 -0
  37. package/dist/chunks/{chunk-OWDZULYL.js → chunk-6JAWZGSH.js} +5 -5
  38. package/dist/chunks/{chunk-MBIW6VMV.js → chunk-6SEDSZBH.js} +3 -3
  39. package/dist/chunks/{chunk-A4ET3763.js → chunk-6XIPTDOH.js} +2 -2
  40. package/dist/chunks/{chunk-5PU3W3NS.js → chunk-73VS7EXG.js} +2 -2
  41. package/dist/chunks/{chunk-SMSOGEDJ.js → chunk-7AXLZKTB.js} +4 -4
  42. package/dist/chunks/{chunk-MIE7YQ72.js → chunk-7EL5RPEU.js} +5 -5
  43. package/dist/chunks/{chunk-BH4E5V75.js → chunk-7O2WNQQZ.js} +2 -2
  44. package/dist/chunks/{chunk-S2WSJZM4.js → chunk-7WDKN3QG.js} +4 -4
  45. package/dist/chunks/{chunk-RLWETFV5.js → chunk-A4I24ISL.js} +3 -3
  46. package/dist/chunks/{chunk-KJDF4CBE.js → chunk-AF4ILHID.js} +3 -3
  47. package/dist/chunks/{chunk-663TOG2D.js → chunk-AFNHI46Y.js} +429 -48
  48. package/dist/chunks/chunk-AFNHI46Y.js.map +6 -0
  49. package/dist/chunks/{chunk-ICASE5FC.js → chunk-AWU5MYX3.js} +75 -10
  50. package/dist/chunks/{chunk-ICASE5FC.js.map → chunk-AWU5MYX3.js.map} +2 -2
  51. package/dist/chunks/{chunk-HSKH47TP.js → chunk-BFTAE67C.js} +3 -3
  52. package/dist/chunks/{chunk-4IUNZXG4.js → chunk-BQR2C4RM.js} +2 -2
  53. package/dist/chunks/{chunk-BEX7ZFUX.js → chunk-C4CUPDOU.js} +3 -3
  54. package/dist/chunks/{chunk-ASO7KWTF.js → chunk-C534SIJI.js} +2 -2
  55. package/dist/chunks/{chunk-X54UJMLY.js → chunk-CJUK4IWQ.js} +3 -3
  56. package/dist/chunks/{chunk-OM4JJUJ3.js → chunk-DBXWOXG3.js} +17 -18
  57. package/dist/chunks/chunk-DBXWOXG3.js.map +6 -0
  58. package/dist/chunks/{chunk-VGPX5ALX.js → chunk-DID4WFOD.js} +4 -4
  59. package/dist/chunks/{chunk-CHIP5NK3.js → chunk-DYCSVG2K.js} +7 -7
  60. package/dist/chunks/{chunk-TWT3GCUF.js → chunk-E7RD32NX.js} +2 -2
  61. package/dist/chunks/{chunk-N2ARTTR4.js → chunk-ECDMJNZU.js} +2 -2
  62. package/dist/chunks/{chunk-IGMWQRFG.js → chunk-ETDOSJF7.js} +2 -2
  63. package/dist/chunks/{chunk-QDW4P4KH.js → chunk-EXE7JBHE.js} +2 -2
  64. package/dist/chunks/{chunk-WVGG3KJQ.js → chunk-F7ECENUK.js} +2 -2
  65. package/dist/chunks/{chunk-CUFZPB43.js → chunk-F7LHGSEQ.js} +3 -3
  66. package/dist/chunks/{chunk-XULWT3EI.js → chunk-FNSWIOFJ.js} +4 -4
  67. package/dist/chunks/{chunk-ULS4WBNK.js → chunk-G3WCIRCZ.js} +8 -8
  68. package/dist/chunks/{chunk-BL3HUJQR.js → chunk-GBOOHDIH.js} +3 -3
  69. package/dist/chunks/{chunk-KXAKSDX2.js → chunk-GQU3OUV5.js} +5 -5
  70. package/dist/chunks/{chunk-LJREHEHA.js → chunk-GWH6BOVE.js} +4 -4
  71. package/dist/chunks/{chunk-HO4IDWJ2.js → chunk-HQFAVCTF.js} +4 -4
  72. package/dist/chunks/{chunk-WZ6SG2FE.js → chunk-HXW5DQLU.js} +4 -4
  73. package/dist/chunks/{chunk-5LF334Q6.js → chunk-I5CWCNRN.js} +5 -5
  74. package/dist/chunks/{chunk-3PCS7YGC.js → chunk-I7WXDTCF.js} +2 -2
  75. package/dist/chunks/{chunk-SEVYJ3QP.js → chunk-ICQYIDIR.js} +2 -2
  76. package/dist/chunks/{chunk-LM5T256H.js → chunk-IH5NEU2Y.js} +3 -3
  77. package/dist/chunks/{chunk-K2MUOGQY.js → chunk-IRCAPHCE.js} +2 -2
  78. package/dist/chunks/{chunk-PHSVFRNT.js → chunk-IT2OFHF7.js} +3 -3
  79. package/dist/chunks/{chunk-KIQLLWFY.js → chunk-JB3UZ7JJ.js} +2 -2
  80. package/dist/chunks/{chunk-LOOU73RU.js → chunk-JOORBY5L.js} +3 -3
  81. package/dist/chunks/{chunk-PS6J5XX7.js → chunk-JRIDJW3W.js} +3 -3
  82. package/dist/chunks/{chunk-FO2XREXN.js → chunk-K3NVHXN7.js} +19 -19
  83. package/dist/chunks/{chunk-JVSFISBV.js → chunk-K5FGK5AP.js} +3 -3
  84. package/dist/chunks/{chunk-JHR2TXRF.js → chunk-KE53UTUG.js} +6 -6
  85. package/dist/chunks/{chunk-QU4Z3BLV.js → chunk-KOVWQARO.js} +2 -2
  86. package/dist/chunks/{chunk-HAKXFSUH.js → chunk-L2Q467T7.js} +3 -3
  87. package/dist/chunks/{chunk-53WJ4NO5.js → chunk-LD4COIFG.js} +2 -2
  88. package/dist/chunks/{chunk-M7EORGVU.js → chunk-LJDAHRWI.js} +2 -2
  89. package/dist/chunks/{chunk-DHMRU3K4.js → chunk-LMPUBX5R.js} +5 -5
  90. package/dist/chunks/{chunk-PQ5HWAG3.js → chunk-LS5KVRMV.js} +4 -4
  91. package/dist/chunks/{chunk-AIMVTV6F.js → chunk-MI6WMBDQ.js} +3 -3
  92. package/dist/chunks/{chunk-J7SEGQ2I.js → chunk-MN426ZWA.js} +3 -3
  93. package/dist/chunks/{chunk-TNYZUL6N.js → chunk-MPIYLDWJ.js} +2 -2
  94. package/dist/chunks/{chunk-YFCQ3KFF.js → chunk-MTSXDMJB.js} +9 -9
  95. package/dist/chunks/{chunk-FCL5DXWB.js → chunk-NQ3MZ6N4.js} +2 -2
  96. package/dist/chunks/{chunk-BSERBIUO.js → chunk-O5YDY6XR.js} +6 -6
  97. package/dist/chunks/{chunk-MEGG65LL.js → chunk-OP2GILCA.js} +2 -2
  98. package/dist/chunks/{chunk-I3KWVWF2.js → chunk-P7UV5M73.js} +2 -2
  99. package/dist/chunks/{chunk-ZQNGW4KZ.js → chunk-PHDA4JI7.js} +4 -4
  100. package/dist/chunks/{chunk-O3PX7I34.js → chunk-PYR7VRWF.js} +2 -2
  101. package/dist/chunks/{chunk-VRP3BOCU.js → chunk-Q4LXBL4Z.js} +3 -3
  102. package/dist/chunks/{chunk-I3TRVPI6.js → chunk-QERO7OI6.js} +9 -9
  103. package/dist/chunks/{chunk-GWMVCQ3D.js → chunk-QF2FZ2DM.js} +37 -12
  104. package/dist/chunks/chunk-QF2FZ2DM.js.map +6 -0
  105. package/dist/chunks/{chunk-KWL25JMF.js → chunk-QF4HGWRL.js} +9 -9
  106. package/dist/chunks/{chunk-NE6LZ6Q5.js → chunk-QJYK566B.js} +7 -7
  107. package/dist/chunks/{chunk-PY3YYC4G.js → chunk-QS44GK4N.js} +2 -2
  108. package/dist/chunks/{chunk-3GDRKZXA.js → chunk-QUI2ZAGY.js} +141 -49
  109. package/dist/chunks/chunk-QUI2ZAGY.js.map +6 -0
  110. package/dist/chunks/{chunk-MKCLCEIV.js → chunk-QW3Y3RDE.js} +4 -4
  111. package/dist/chunks/chunk-RF6EIDPV.js +246 -0
  112. package/dist/chunks/chunk-RF6EIDPV.js.map +6 -0
  113. package/dist/chunks/{chunk-XDYJECN5.js → chunk-SQ32S3OE.js} +6 -6
  114. package/dist/chunks/{chunk-BNWEXH3W.js → chunk-T3VMBZEY.js} +5 -5
  115. package/dist/chunks/{chunk-3H5KDCSS.js → chunk-T5MBQXU2.js} +13 -4
  116. package/dist/chunks/{chunk-3H5KDCSS.js.map → chunk-T5MBQXU2.js.map} +1 -1
  117. package/dist/chunks/{chunk-ZKYOEJQL.js → chunk-TOADRNOV.js} +4 -4
  118. package/dist/chunks/{chunk-7MZT772U.js → chunk-U2MFIQ6X.js} +3 -3
  119. package/dist/chunks/{chunk-2QWV6XSF.js → chunk-U77GVCK3.js} +2 -2
  120. package/dist/chunks/{chunk-2TFJA5EQ.js → chunk-VFB4ZUOR.js} +2 -2
  121. package/dist/chunks/{chunk-2US4P3ES.js → chunk-W5TYUJI5.js} +6 -6
  122. package/dist/chunks/{chunk-SV5MKPY7.js → chunk-WCPKRDGR.js} +3 -3
  123. package/dist/chunks/{chunk-MEVLBVLI.js → chunk-WEL6L6DN.js} +3 -3
  124. package/dist/chunks/{chunk-XTR72KZ5.js → chunk-WIO3JRB5.js} +8 -8
  125. package/dist/chunks/{chunk-NXW2EAJK.js → chunk-WSO7YQLR.js} +3 -3
  126. package/dist/chunks/{chunk-AORNOTZJ.js → chunk-WXCJTJK4.js} +3 -3
  127. package/dist/chunks/{chunk-LFOK3YKA.js → chunk-X2JFYB5A.js} +3 -3
  128. package/dist/chunks/{chunk-DJRQ5SN5.js → chunk-X4W4DN3S.js} +2 -2
  129. package/dist/chunks/{chunk-DAL54OA6.js → chunk-X7QC2Q7P.js} +551 -72
  130. package/dist/chunks/chunk-X7QC2Q7P.js.map +6 -0
  131. package/dist/chunks/{chunk-GKI4TAEF.js → chunk-XYF26ZUO.js} +10 -10
  132. package/dist/chunks/{chunk-IY23C77E.js → chunk-Y3KKZ7HS.js} +2 -2
  133. package/dist/chunks/{chunk-VLSXELJR.js → chunk-YBAPUTER.js} +3 -3
  134. package/dist/chunks/{chunk-DQQAUL6O.js → chunk-YQOT7ABG.js} +4 -4
  135. package/dist/chunks/{chunk-NI7MFABN.js → chunk-ZAPPY4VF.js} +2 -2
  136. package/dist/chunks/{chunk-OS3TN3W5.js → chunk-ZFQOF5A5.js} +3 -3
  137. package/dist/chunks/{chunk-EDFXEVCR.js → chunk-ZT3DLJQZ.js} +5 -5
  138. package/dist/chunks/{cli-runtime-3EOGPAOI.js → cli-runtime-2HOSJR5Y.js} +16 -15
  139. package/dist/chunks/cli-runtime-2HOSJR5Y.js.map +6 -0
  140. package/dist/chunks/{commands-JKFW2FTM.js → commands-TKD5BHAC.js} +6 -6
  141. package/dist/chunks/{config-G76X2XWR.js → config-2JST7BZT.js} +12 -11
  142. package/dist/chunks/config-2JST7BZT.js.map +6 -0
  143. package/dist/chunks/{cost-JOL2XKCR.js → cost-AZAQ3AC5.js} +5 -5
  144. package/dist/chunks/{crash-report-WWQB3FNT.js → crash-report-IYMUJRDT.js} +6 -6
  145. package/dist/chunks/{dist-C4LFRONS.js → dist-5JRS362B.js} +2 -2
  146. package/dist/chunks/{dist-KALZOZSB.js → dist-BECOVIWQ.js} +2 -2
  147. package/dist/chunks/{dist-RNBUOIZ3.js → dist-NLY5ZLEK.js} +10 -2
  148. package/dist/chunks/{dist-RNBUOIZ3.js.map → dist-NLY5ZLEK.js.map} +1 -1
  149. package/dist/chunks/{dist-K56BXWHZ.js → dist-PYOYSQIZ.js} +261 -21
  150. package/dist/chunks/dist-PYOYSQIZ.js.map +6 -0
  151. package/dist/chunks/{dist-P7T5B6OQ.js → dist-S4GG5BOF.js} +2 -2
  152. package/dist/chunks/{dist-QTTPXF7V.js → dist-SPKR3SBF.js} +20 -2
  153. package/dist/chunks/{dist-XS43LEG6.js → dist-VQGHI5SR.js} +2 -2
  154. package/dist/chunks/{dist-HCQR5JWF.js → dist-YGZEZT7E.js} +2 -2
  155. package/dist/chunks/{doctor-MWVFGS4P.js → doctor-MYN7YCXB.js} +38 -37
  156. package/dist/chunks/{drain-TEKTLCEY.js → drain-IEZMA72M.js} +17 -16
  157. package/dist/chunks/drain-IEZMA72M.js.map +6 -0
  158. package/dist/chunks/{entry-X57C42AL.js → entry-SS5QYOOM.js} +6 -6
  159. package/dist/chunks/{eval-SPOW66XS.js → eval-4QK2EYXU.js} +9 -8
  160. package/dist/chunks/eval-4QK2EYXU.js.map +6 -0
  161. package/dist/chunks/{exec-JQ5NB2AS.js → exec-Z6TIWDJM.js} +43 -42
  162. package/dist/chunks/exec-Z6TIWDJM.js.map +6 -0
  163. package/dist/chunks/{extension-DJ455WVV.js → extension-4SMB7XQP.js} +5 -5
  164. package/dist/chunks/{home-UZMGNMMU.js → home-YYLBZ3E7.js} +3 -3
  165. package/dist/chunks/{hooks-GAV3AHGW.js → hooks-KVCP7AHB.js} +21 -20
  166. package/dist/chunks/hooks-KVCP7AHB.js.map +6 -0
  167. package/dist/chunks/{hooks-report-ZYD2PKFE.js → hooks-report-7BAQ5FJD.js} +17 -16
  168. package/dist/chunks/{host-MW35UKDW.js → host-CAZNAKUM.js} +10 -9
  169. package/dist/chunks/{host-queries-G7TO777Q.js → host-queries-NVNPXLV6.js} +17 -16
  170. package/dist/chunks/{installed-list-CDK2ADXL.js → installed-list-X7D2METU.js} +4 -4
  171. package/dist/chunks/{learn-XKT2W3TS.js → learn-BSA4OH3O.js} +16 -15
  172. package/dist/chunks/learn-BSA4OH3O.js.map +6 -0
  173. package/dist/chunks/{learn-builtin-ENUZCUF2.js → learn-builtin-YIJE4KDM.js} +19 -18
  174. package/dist/chunks/learn-builtin-YIJE4KDM.js.map +6 -0
  175. package/dist/chunks/{lifecycle-I7D57PFM.js → lifecycle-4CCVUYHX.js} +30 -28
  176. package/dist/chunks/{list-55DQ6HHQ.js → list-Y365NWT5.js} +15 -14
  177. package/dist/chunks/list-Y365NWT5.js.map +6 -0
  178. package/dist/chunks/{live-JZV6BRVX.js → live-3URICZBD.js} +37 -36
  179. package/dist/chunks/{load-BX73NFCW.js → load-LXAWOITU.js} +9 -8
  180. package/dist/chunks/{login-5NOFGMVK.js → login-QDMS62PW.js} +12 -11
  181. package/dist/chunks/{logs-V3T5ZLSL.js → logs-OGG4QEIR.js} +10 -4
  182. package/dist/chunks/{logs-V3T5ZLSL.js.map → logs-OGG4QEIR.js.map} +1 -1
  183. package/dist/chunks/{mcp-P6ZETIYE.js → mcp-VCZRILZ2.js} +20 -19
  184. package/dist/chunks/mcp-VCZRILZ2.js.map +6 -0
  185. package/dist/chunks/{message-command-MFRCWJMS.js → message-command-RN3TYTUE.js} +52 -51
  186. package/dist/chunks/message-command-RN3TYTUE.js.map +6 -0
  187. package/dist/chunks/{open-RWB4YIMA.js → open-S3T2QSFD.js} +7 -6
  188. package/dist/chunks/{operator-tools-5RKKKTJ7.js → operator-tools-4FKDVXEJ.js} +15 -14
  189. package/dist/chunks/operator-tools-4FKDVXEJ.js.map +6 -0
  190. package/dist/chunks/{output-schema-TAGVY7FK.js → output-schema-JZS2DYJS.js} +3 -3
  191. package/dist/chunks/{pal-HFEIAILK.js → pal-N4BQKNXH.js} +15 -14
  192. package/dist/chunks/pal-N4BQKNXH.js.map +6 -0
  193. package/dist/chunks/{peers-CIHUJQM2.js → peers-3QJCXMVT.js} +18 -17
  194. package/dist/chunks/peers-3QJCXMVT.js.map +6 -0
  195. package/dist/chunks/{peers-DYHS2JIA.js → peers-B46EOYXB.js} +7 -6
  196. package/dist/chunks/{plugin-IVAFURW3.js → plugin-SJ3Y2P53.js} +17 -16
  197. package/dist/chunks/plugin-SJ3Y2P53.js.map +6 -0
  198. package/dist/chunks/{providers-2E6JCJQS.js → providers-6HCMKQUI.js} +17 -16
  199. package/dist/chunks/providers-6HCMKQUI.js.map +6 -0
  200. package/dist/chunks/{providers-Y3D3NB7T.js → providers-AAGYOW7X.js} +10 -9
  201. package/dist/chunks/{pty-3K4QJTHO.js → pty-Y6DQ3O7S.js} +3 -3
  202. package/dist/chunks/resume-URQRK5DV.js +26 -0
  203. package/dist/chunks/{resume-command-MB6OK2MS.js → resume-command-GPX3ZFJG.js} +4 -4
  204. package/dist/chunks/{running-F76RPHIO.js → running-XXZFJXM2.js} +4 -4
  205. package/dist/chunks/{schedule-6UVWFIAX.js → schedule-36SDQUHA.js} +135 -31
  206. package/dist/chunks/schedule-36SDQUHA.js.map +6 -0
  207. package/dist/chunks/{send-XGXS5FD3.js → send-3I5I445I.js} +17 -16
  208. package/dist/chunks/send-person-YWJEDJLC.js +31 -0
  209. package/dist/chunks/{service-7O7ZQ2DO.js → service-2KVKUVPK.js} +155 -339
  210. package/dist/chunks/service-2KVKUVPK.js.map +6 -0
  211. package/dist/chunks/{setting-cli-QP7P5A3N.js → setting-cli-BIG2WZWH.js} +12 -11
  212. package/dist/chunks/{skills-RMHLBKND.js → skills-ROGIKQBK.js} +23 -22
  213. package/dist/chunks/skills-ROGIKQBK.js.map +6 -0
  214. package/dist/chunks/{start-check-L2MWVZIQ.js → start-check-WZ3L3FAC.js} +2 -2
  215. package/dist/chunks/{startup-failure-J3MIQOBW.js → startup-failure-Y6OKFLWB.js} +2 -2
  216. package/dist/chunks/{state-3PMAO2ZB.js → state-EK4XKBK5.js} +6 -6
  217. package/dist/chunks/{store-6WQ654X7.js → store-A6ZRPCAB.js} +12 -11
  218. package/dist/chunks/{store-4SRNBIX6.js → store-FLT5PL3C.js} +4 -4
  219. package/dist/chunks/{store-7R4L27D4.js → store-IOOFZ6PN.js} +3 -3
  220. package/dist/chunks/{store-WQ2MHPFZ.js → store-NX2MC2JN.js} +8 -7
  221. package/dist/chunks/{tui-2CWBX2GO.js → tui-DT36PST5.js} +84 -82
  222. package/dist/chunks/tui-DT36PST5.js.map +6 -0
  223. package/dist/chunks/{upgrade-E3BWBHV2.js → upgrade-AHGIHDGH.js} +8 -8
  224. package/dist/chunks/{watch-NUPIBU5S.js → watch-AFI4NLCR.js} +87 -85
  225. package/dist/chunks/watch-AFI4NLCR.js.map +6 -0
  226. package/dist/chunks/{workspaces-Y2XKF5VR.js → workspaces-QKVXLISC.js} +15 -14
  227. package/dist/chunks/workspaces-QKVXLISC.js.map +6 -0
  228. package/dist/chunks/{worktree-Y6BSAIZQ.js → worktree-NWJLCB5C.js} +21 -20
  229. package/dist/chunks/worktree-NWJLCB5C.js.map +6 -0
  230. package/dist/commands/schedule.d.ts.map +1 -1
  231. package/dist/config/load.d.ts.map +1 -1
  232. package/dist/config/schema.d.ts +32 -5
  233. package/dist/config/schema.d.ts.map +1 -1
  234. package/dist/config/settings-descriptors.d.ts.map +1 -1
  235. package/dist/context/identity.d.ts.map +1 -1
  236. package/dist/index.js +38 -37
  237. package/dist/integrations/decision/points.d.ts +5 -2
  238. package/dist/integrations/decision/points.d.ts.map +1 -1
  239. package/dist/integrations/small-model/side-model.d.ts +5 -0
  240. package/dist/integrations/small-model/side-model.d.ts.map +1 -1
  241. package/dist/integrations/web/search.d.ts +1 -1
  242. package/dist/permissions/rules.d.ts +4 -1
  243. package/dist/permissions/rules.d.ts.map +1 -1
  244. package/dist/rounds/goal-admission.d.ts +1 -1
  245. package/dist/rounds/goal-admission.d.ts.map +1 -1
  246. package/dist/rounds/goal-guards.d.ts +61 -0
  247. package/dist/rounds/goal-guards.d.ts.map +1 -0
  248. package/dist/rounds/goal-judge.d.ts +55 -0
  249. package/dist/rounds/goal-judge.d.ts.map +1 -0
  250. package/dist/rounds/types.d.ts.map +1 -1
  251. package/dist/schedule/commands/logs.d.ts.map +1 -1
  252. package/dist/schedule/commands/service.d.ts +5 -1
  253. package/dist/schedule/commands/service.d.ts.map +1 -1
  254. package/dist/schedule/service/index.d.ts.map +1 -1
  255. package/dist/schedule/service/registry.d.ts +55 -0
  256. package/dist/schedule/service/registry.d.ts.map +1 -0
  257. package/dist/schedule/service/target.d.ts +31 -0
  258. package/dist/schedule/service/target.d.ts.map +1 -0
  259. package/dist/tui/App.d.ts.map +1 -1
  260. package/dist/tui/PermissionOverlay.d.ts.map +1 -1
  261. package/dist/tui/StatusBar.d.ts +6 -3
  262. package/dist/tui/StatusBar.d.ts.map +1 -1
  263. package/dist/tui/agent-view-commands.d.ts.map +1 -1
  264. package/dist/tui/agent.d.ts +19 -3
  265. package/dist/tui/agent.d.ts.map +1 -1
  266. package/dist/tui/command-catalogue.d.ts +5 -0
  267. package/dist/tui/command-catalogue.d.ts.map +1 -0
  268. package/dist/tui/command-tool.d.ts +71 -0
  269. package/dist/tui/command-tool.d.ts.map +1 -0
  270. package/dist/tui/fast-mode.d.ts +89 -11
  271. package/dist/tui/fast-mode.d.ts.map +1 -1
  272. package/dist/tui/launch-settings.d.ts +1 -1
  273. package/dist/tui/launch-settings.d.ts.map +1 -1
  274. package/dist/tui/model-run.d.ts +30 -0
  275. package/dist/tui/model-run.d.ts.map +1 -0
  276. package/dist/tui/model-switch-tool.d.ts.map +1 -1
  277. package/dist/tui/schedule/integration.d.ts +1 -1
  278. package/dist/tui/schedule/integration.d.ts.map +1 -1
  279. package/dist/tui/slash-parse.d.ts +16 -0
  280. package/dist/tui/slash-parse.d.ts.map +1 -0
  281. package/dist/tui/slashCommands.d.ts +36 -9
  282. package/dist/tui/slashCommands.d.ts.map +1 -1
  283. package/dist/tui/system-rows.d.ts +8 -2
  284. package/dist/tui/system-rows.d.ts.map +1 -1
  285. package/package.json +7 -7
  286. package/dist/chunks/acp-P6KFYGM5.js.map +0 -6
  287. package/dist/chunks/activity-command-3J6V5EAF.js.map +0 -6
  288. package/dist/chunks/add-LUMWGWUU.js.map +0 -6
  289. package/dist/chunks/agent-session-F76F26QR.js +0 -86
  290. package/dist/chunks/archive-4WUNS3EH.js.map +0 -6
  291. package/dist/chunks/chat-R4QQEEKS.js.map +0 -6
  292. package/dist/chunks/chunk-3GDRKZXA.js.map +0 -6
  293. package/dist/chunks/chunk-663TOG2D.js.map +0 -6
  294. package/dist/chunks/chunk-CK3YOOFA.js.map +0 -6
  295. package/dist/chunks/chunk-DAL54OA6.js.map +0 -6
  296. package/dist/chunks/chunk-GWMVCQ3D.js.map +0 -6
  297. package/dist/chunks/chunk-ISPL24EM.js.map +0 -6
  298. package/dist/chunks/chunk-NZNYEM7D.js.map +0 -6
  299. package/dist/chunks/chunk-OM4JJUJ3.js.map +0 -6
  300. package/dist/chunks/cli-runtime-3EOGPAOI.js.map +0 -6
  301. package/dist/chunks/config-G76X2XWR.js.map +0 -6
  302. package/dist/chunks/dist-K56BXWHZ.js.map +0 -6
  303. package/dist/chunks/drain-TEKTLCEY.js.map +0 -6
  304. package/dist/chunks/eval-SPOW66XS.js.map +0 -6
  305. package/dist/chunks/exec-JQ5NB2AS.js.map +0 -6
  306. package/dist/chunks/hooks-GAV3AHGW.js.map +0 -6
  307. package/dist/chunks/learn-XKT2W3TS.js.map +0 -6
  308. package/dist/chunks/learn-builtin-ENUZCUF2.js.map +0 -6
  309. package/dist/chunks/list-55DQ6HHQ.js.map +0 -6
  310. package/dist/chunks/mcp-P6ZETIYE.js.map +0 -6
  311. package/dist/chunks/message-command-MFRCWJMS.js.map +0 -6
  312. package/dist/chunks/operator-tools-5RKKKTJ7.js.map +0 -6
  313. package/dist/chunks/pal-HFEIAILK.js.map +0 -6
  314. package/dist/chunks/peers-CIHUJQM2.js.map +0 -6
  315. package/dist/chunks/plugin-IVAFURW3.js.map +0 -6
  316. package/dist/chunks/providers-2E6JCJQS.js.map +0 -6
  317. package/dist/chunks/resume-54ZENGFV.js +0 -25
  318. package/dist/chunks/schedule-6UVWFIAX.js.map +0 -6
  319. package/dist/chunks/send-person-PYOUY4X2.js +0 -30
  320. package/dist/chunks/service-7O7ZQ2DO.js.map +0 -6
  321. package/dist/chunks/skills-RMHLBKND.js.map +0 -6
  322. package/dist/chunks/tui-2CWBX2GO.js.map +0 -6
  323. package/dist/chunks/watch-NUPIBU5S.js.map +0 -6
  324. package/dist/chunks/workspaces-Y2XKF5VR.js.map +0 -6
  325. package/dist/chunks/worktree-Y6BSAIZQ.js.map +0 -6
  326. /package/dist/chunks/{agent-DEUD7JUU.js.map → agent-DL7YTL5B.js.map} +0 -0
  327. /package/dist/chunks/{agent-session-F76F26QR.js.map → agent-session-KQIXHDGU.js.map} +0 -0
  328. /package/dist/chunks/{apply-at-exit-F4UKB3BB.js.map → apply-at-exit-5GUCOPX3.js.map} +0 -0
  329. /package/dist/chunks/{bin-main-QQECDPFM.js.map → bin-main-JDJ6LEOK.js.map} +0 -0
  330. /package/dist/chunks/{binding-CDC6AMM5.js.map → binding-NU3G3EBQ.js.map} +0 -0
  331. /package/dist/chunks/{browser-7K5T2CC4.js.map → browser-7DRWOIEZ.js.map} +0 -0
  332. /package/dist/chunks/{chunk-KFEWG3GS.js.map → chunk-4KGXEARZ.js.map} +0 -0
  333. /package/dist/chunks/{chunk-LQHDKHAT.js.map → chunk-4YN7VGLV.js.map} +0 -0
  334. /package/dist/chunks/{chunk-ENH45E5N.js.map → chunk-5GRTRQTV.js.map} +0 -0
  335. /package/dist/chunks/{chunk-4XBZAAZY.js.map → chunk-5LDYBGOZ.js.map} +0 -0
  336. /package/dist/chunks/{chunk-VE2UWCKT.js.map → chunk-5PTXGBPL.js.map} +0 -0
  337. /package/dist/chunks/{chunk-HVHJJTWW.js.map → chunk-5TJZWGTZ.js.map} +0 -0
  338. /package/dist/chunks/{chunk-7KXXEO4G.js.map → chunk-5X4XLHLF.js.map} +0 -0
  339. /package/dist/chunks/{chunk-HXZIELO7.js.map → chunk-66ZXPQGB.js.map} +0 -0
  340. /package/dist/chunks/{chunk-OWDZULYL.js.map → chunk-6JAWZGSH.js.map} +0 -0
  341. /package/dist/chunks/{chunk-MBIW6VMV.js.map → chunk-6SEDSZBH.js.map} +0 -0
  342. /package/dist/chunks/{chunk-A4ET3763.js.map → chunk-6XIPTDOH.js.map} +0 -0
  343. /package/dist/chunks/{chunk-5PU3W3NS.js.map → chunk-73VS7EXG.js.map} +0 -0
  344. /package/dist/chunks/{chunk-SMSOGEDJ.js.map → chunk-7AXLZKTB.js.map} +0 -0
  345. /package/dist/chunks/{chunk-MIE7YQ72.js.map → chunk-7EL5RPEU.js.map} +0 -0
  346. /package/dist/chunks/{chunk-BH4E5V75.js.map → chunk-7O2WNQQZ.js.map} +0 -0
  347. /package/dist/chunks/{chunk-S2WSJZM4.js.map → chunk-7WDKN3QG.js.map} +0 -0
  348. /package/dist/chunks/{chunk-RLWETFV5.js.map → chunk-A4I24ISL.js.map} +0 -0
  349. /package/dist/chunks/{chunk-KJDF4CBE.js.map → chunk-AF4ILHID.js.map} +0 -0
  350. /package/dist/chunks/{chunk-HSKH47TP.js.map → chunk-BFTAE67C.js.map} +0 -0
  351. /package/dist/chunks/{chunk-4IUNZXG4.js.map → chunk-BQR2C4RM.js.map} +0 -0
  352. /package/dist/chunks/{chunk-BEX7ZFUX.js.map → chunk-C4CUPDOU.js.map} +0 -0
  353. /package/dist/chunks/{chunk-ASO7KWTF.js.map → chunk-C534SIJI.js.map} +0 -0
  354. /package/dist/chunks/{chunk-X54UJMLY.js.map → chunk-CJUK4IWQ.js.map} +0 -0
  355. /package/dist/chunks/{chunk-VGPX5ALX.js.map → chunk-DID4WFOD.js.map} +0 -0
  356. /package/dist/chunks/{chunk-CHIP5NK3.js.map → chunk-DYCSVG2K.js.map} +0 -0
  357. /package/dist/chunks/{chunk-TWT3GCUF.js.map → chunk-E7RD32NX.js.map} +0 -0
  358. /package/dist/chunks/{chunk-N2ARTTR4.js.map → chunk-ECDMJNZU.js.map} +0 -0
  359. /package/dist/chunks/{chunk-IGMWQRFG.js.map → chunk-ETDOSJF7.js.map} +0 -0
  360. /package/dist/chunks/{chunk-QDW4P4KH.js.map → chunk-EXE7JBHE.js.map} +0 -0
  361. /package/dist/chunks/{chunk-WVGG3KJQ.js.map → chunk-F7ECENUK.js.map} +0 -0
  362. /package/dist/chunks/{chunk-CUFZPB43.js.map → chunk-F7LHGSEQ.js.map} +0 -0
  363. /package/dist/chunks/{chunk-XULWT3EI.js.map → chunk-FNSWIOFJ.js.map} +0 -0
  364. /package/dist/chunks/{chunk-ULS4WBNK.js.map → chunk-G3WCIRCZ.js.map} +0 -0
  365. /package/dist/chunks/{chunk-BL3HUJQR.js.map → chunk-GBOOHDIH.js.map} +0 -0
  366. /package/dist/chunks/{chunk-KXAKSDX2.js.map → chunk-GQU3OUV5.js.map} +0 -0
  367. /package/dist/chunks/{chunk-LJREHEHA.js.map → chunk-GWH6BOVE.js.map} +0 -0
  368. /package/dist/chunks/{chunk-HO4IDWJ2.js.map → chunk-HQFAVCTF.js.map} +0 -0
  369. /package/dist/chunks/{chunk-WZ6SG2FE.js.map → chunk-HXW5DQLU.js.map} +0 -0
  370. /package/dist/chunks/{chunk-5LF334Q6.js.map → chunk-I5CWCNRN.js.map} +0 -0
  371. /package/dist/chunks/{chunk-3PCS7YGC.js.map → chunk-I7WXDTCF.js.map} +0 -0
  372. /package/dist/chunks/{chunk-SEVYJ3QP.js.map → chunk-ICQYIDIR.js.map} +0 -0
  373. /package/dist/chunks/{chunk-LM5T256H.js.map → chunk-IH5NEU2Y.js.map} +0 -0
  374. /package/dist/chunks/{chunk-K2MUOGQY.js.map → chunk-IRCAPHCE.js.map} +0 -0
  375. /package/dist/chunks/{chunk-PHSVFRNT.js.map → chunk-IT2OFHF7.js.map} +0 -0
  376. /package/dist/chunks/{chunk-KIQLLWFY.js.map → chunk-JB3UZ7JJ.js.map} +0 -0
  377. /package/dist/chunks/{chunk-LOOU73RU.js.map → chunk-JOORBY5L.js.map} +0 -0
  378. /package/dist/chunks/{chunk-PS6J5XX7.js.map → chunk-JRIDJW3W.js.map} +0 -0
  379. /package/dist/chunks/{chunk-FO2XREXN.js.map → chunk-K3NVHXN7.js.map} +0 -0
  380. /package/dist/chunks/{chunk-JVSFISBV.js.map → chunk-K5FGK5AP.js.map} +0 -0
  381. /package/dist/chunks/{chunk-JHR2TXRF.js.map → chunk-KE53UTUG.js.map} +0 -0
  382. /package/dist/chunks/{chunk-QU4Z3BLV.js.map → chunk-KOVWQARO.js.map} +0 -0
  383. /package/dist/chunks/{chunk-HAKXFSUH.js.map → chunk-L2Q467T7.js.map} +0 -0
  384. /package/dist/chunks/{chunk-53WJ4NO5.js.map → chunk-LD4COIFG.js.map} +0 -0
  385. /package/dist/chunks/{chunk-M7EORGVU.js.map → chunk-LJDAHRWI.js.map} +0 -0
  386. /package/dist/chunks/{chunk-DHMRU3K4.js.map → chunk-LMPUBX5R.js.map} +0 -0
  387. /package/dist/chunks/{chunk-PQ5HWAG3.js.map → chunk-LS5KVRMV.js.map} +0 -0
  388. /package/dist/chunks/{chunk-AIMVTV6F.js.map → chunk-MI6WMBDQ.js.map} +0 -0
  389. /package/dist/chunks/{chunk-J7SEGQ2I.js.map → chunk-MN426ZWA.js.map} +0 -0
  390. /package/dist/chunks/{chunk-TNYZUL6N.js.map → chunk-MPIYLDWJ.js.map} +0 -0
  391. /package/dist/chunks/{chunk-YFCQ3KFF.js.map → chunk-MTSXDMJB.js.map} +0 -0
  392. /package/dist/chunks/{chunk-FCL5DXWB.js.map → chunk-NQ3MZ6N4.js.map} +0 -0
  393. /package/dist/chunks/{chunk-BSERBIUO.js.map → chunk-O5YDY6XR.js.map} +0 -0
  394. /package/dist/chunks/{chunk-MEGG65LL.js.map → chunk-OP2GILCA.js.map} +0 -0
  395. /package/dist/chunks/{chunk-I3KWVWF2.js.map → chunk-P7UV5M73.js.map} +0 -0
  396. /package/dist/chunks/{chunk-ZQNGW4KZ.js.map → chunk-PHDA4JI7.js.map} +0 -0
  397. /package/dist/chunks/{chunk-O3PX7I34.js.map → chunk-PYR7VRWF.js.map} +0 -0
  398. /package/dist/chunks/{chunk-VRP3BOCU.js.map → chunk-Q4LXBL4Z.js.map} +0 -0
  399. /package/dist/chunks/{chunk-I3TRVPI6.js.map → chunk-QERO7OI6.js.map} +0 -0
  400. /package/dist/chunks/{chunk-KWL25JMF.js.map → chunk-QF4HGWRL.js.map} +0 -0
  401. /package/dist/chunks/{chunk-NE6LZ6Q5.js.map → chunk-QJYK566B.js.map} +0 -0
  402. /package/dist/chunks/{chunk-PY3YYC4G.js.map → chunk-QS44GK4N.js.map} +0 -0
  403. /package/dist/chunks/{chunk-MKCLCEIV.js.map → chunk-QW3Y3RDE.js.map} +0 -0
  404. /package/dist/chunks/{chunk-XDYJECN5.js.map → chunk-SQ32S3OE.js.map} +0 -0
  405. /package/dist/chunks/{chunk-BNWEXH3W.js.map → chunk-T3VMBZEY.js.map} +0 -0
  406. /package/dist/chunks/{chunk-ZKYOEJQL.js.map → chunk-TOADRNOV.js.map} +0 -0
  407. /package/dist/chunks/{chunk-7MZT772U.js.map → chunk-U2MFIQ6X.js.map} +0 -0
  408. /package/dist/chunks/{chunk-2QWV6XSF.js.map → chunk-U77GVCK3.js.map} +0 -0
  409. /package/dist/chunks/{chunk-2TFJA5EQ.js.map → chunk-VFB4ZUOR.js.map} +0 -0
  410. /package/dist/chunks/{chunk-2US4P3ES.js.map → chunk-W5TYUJI5.js.map} +0 -0
  411. /package/dist/chunks/{chunk-SV5MKPY7.js.map → chunk-WCPKRDGR.js.map} +0 -0
  412. /package/dist/chunks/{chunk-MEVLBVLI.js.map → chunk-WEL6L6DN.js.map} +0 -0
  413. /package/dist/chunks/{chunk-XTR72KZ5.js.map → chunk-WIO3JRB5.js.map} +0 -0
  414. /package/dist/chunks/{chunk-NXW2EAJK.js.map → chunk-WSO7YQLR.js.map} +0 -0
  415. /package/dist/chunks/{chunk-AORNOTZJ.js.map → chunk-WXCJTJK4.js.map} +0 -0
  416. /package/dist/chunks/{chunk-LFOK3YKA.js.map → chunk-X2JFYB5A.js.map} +0 -0
  417. /package/dist/chunks/{chunk-DJRQ5SN5.js.map → chunk-X4W4DN3S.js.map} +0 -0
  418. /package/dist/chunks/{chunk-GKI4TAEF.js.map → chunk-XYF26ZUO.js.map} +0 -0
  419. /package/dist/chunks/{chunk-IY23C77E.js.map → chunk-Y3KKZ7HS.js.map} +0 -0
  420. /package/dist/chunks/{chunk-VLSXELJR.js.map → chunk-YBAPUTER.js.map} +0 -0
  421. /package/dist/chunks/{chunk-DQQAUL6O.js.map → chunk-YQOT7ABG.js.map} +0 -0
  422. /package/dist/chunks/{chunk-NI7MFABN.js.map → chunk-ZAPPY4VF.js.map} +0 -0
  423. /package/dist/chunks/{chunk-OS3TN3W5.js.map → chunk-ZFQOF5A5.js.map} +0 -0
  424. /package/dist/chunks/{chunk-EDFXEVCR.js.map → chunk-ZT3DLJQZ.js.map} +0 -0
  425. /package/dist/chunks/{commands-JKFW2FTM.js.map → commands-TKD5BHAC.js.map} +0 -0
  426. /package/dist/chunks/{cost-JOL2XKCR.js.map → cost-AZAQ3AC5.js.map} +0 -0
  427. /package/dist/chunks/{crash-report-WWQB3FNT.js.map → crash-report-IYMUJRDT.js.map} +0 -0
  428. /package/dist/chunks/{dist-C4LFRONS.js.map → dist-5JRS362B.js.map} +0 -0
  429. /package/dist/chunks/{dist-KALZOZSB.js.map → dist-BECOVIWQ.js.map} +0 -0
  430. /package/dist/chunks/{dist-P7T5B6OQ.js.map → dist-S4GG5BOF.js.map} +0 -0
  431. /package/dist/chunks/{dist-QTTPXF7V.js.map → dist-SPKR3SBF.js.map} +0 -0
  432. /package/dist/chunks/{dist-XS43LEG6.js.map → dist-VQGHI5SR.js.map} +0 -0
  433. /package/dist/chunks/{dist-HCQR5JWF.js.map → dist-YGZEZT7E.js.map} +0 -0
  434. /package/dist/chunks/{doctor-MWVFGS4P.js.map → doctor-MYN7YCXB.js.map} +0 -0
  435. /package/dist/chunks/{entry-X57C42AL.js.map → entry-SS5QYOOM.js.map} +0 -0
  436. /package/dist/chunks/{extension-DJ455WVV.js.map → extension-4SMB7XQP.js.map} +0 -0
  437. /package/dist/chunks/{home-UZMGNMMU.js.map → home-YYLBZ3E7.js.map} +0 -0
  438. /package/dist/chunks/{hooks-report-ZYD2PKFE.js.map → hooks-report-7BAQ5FJD.js.map} +0 -0
  439. /package/dist/chunks/{host-MW35UKDW.js.map → host-CAZNAKUM.js.map} +0 -0
  440. /package/dist/chunks/{host-queries-G7TO777Q.js.map → host-queries-NVNPXLV6.js.map} +0 -0
  441. /package/dist/chunks/{installed-list-CDK2ADXL.js.map → installed-list-X7D2METU.js.map} +0 -0
  442. /package/dist/chunks/{lifecycle-I7D57PFM.js.map → lifecycle-4CCVUYHX.js.map} +0 -0
  443. /package/dist/chunks/{live-JZV6BRVX.js.map → live-3URICZBD.js.map} +0 -0
  444. /package/dist/chunks/{load-BX73NFCW.js.map → load-LXAWOITU.js.map} +0 -0
  445. /package/dist/chunks/{login-5NOFGMVK.js.map → login-QDMS62PW.js.map} +0 -0
  446. /package/dist/chunks/{open-RWB4YIMA.js.map → open-S3T2QSFD.js.map} +0 -0
  447. /package/dist/chunks/{output-schema-TAGVY7FK.js.map → output-schema-JZS2DYJS.js.map} +0 -0
  448. /package/dist/chunks/{peers-DYHS2JIA.js.map → peers-B46EOYXB.js.map} +0 -0
  449. /package/dist/chunks/{providers-Y3D3NB7T.js.map → providers-AAGYOW7X.js.map} +0 -0
  450. /package/dist/chunks/{pty-3K4QJTHO.js.map → pty-Y6DQ3O7S.js.map} +0 -0
  451. /package/dist/chunks/{resume-54ZENGFV.js.map → resume-URQRK5DV.js.map} +0 -0
  452. /package/dist/chunks/{resume-command-MB6OK2MS.js.map → resume-command-GPX3ZFJG.js.map} +0 -0
  453. /package/dist/chunks/{running-F76RPHIO.js.map → running-XXZFJXM2.js.map} +0 -0
  454. /package/dist/chunks/{send-XGXS5FD3.js.map → send-3I5I445I.js.map} +0 -0
  455. /package/dist/chunks/{send-person-PYOUY4X2.js.map → send-person-YWJEDJLC.js.map} +0 -0
  456. /package/dist/chunks/{setting-cli-QP7P5A3N.js.map → setting-cli-BIG2WZWH.js.map} +0 -0
  457. /package/dist/chunks/{start-check-L2MWVZIQ.js.map → start-check-WZ3L3FAC.js.map} +0 -0
  458. /package/dist/chunks/{startup-failure-J3MIQOBW.js.map → startup-failure-Y6OKFLWB.js.map} +0 -0
  459. /package/dist/chunks/{state-3PMAO2ZB.js.map → state-EK4XKBK5.js.map} +0 -0
  460. /package/dist/chunks/{store-4SRNBIX6.js.map → store-A6ZRPCAB.js.map} +0 -0
  461. /package/dist/chunks/{store-6WQ654X7.js.map → store-FLT5PL3C.js.map} +0 -0
  462. /package/dist/chunks/{store-7R4L27D4.js.map → store-IOOFZ6PN.js.map} +0 -0
  463. /package/dist/chunks/{store-WQ2MHPFZ.js.map → store-NX2MC2JN.js.map} +0 -0
  464. /package/dist/chunks/{upgrade-E3BWBHV2.js.map → upgrade-AHGIHDGH.js.map} +0 -0
@@ -325,7 +325,7 @@ var require_brace_expansion = __commonJS({
325
325
  });
326
326
 
327
327
  // ../sdk/dist/version.js
328
- var VERSION = "67.0.0";
328
+ var VERSION = "68.0.0";
329
329
 
330
330
  // ../sdk/dist/runtime/harness-session/index.js
331
331
  import { posix, win32 } from "node:path";
@@ -31858,17 +31858,23 @@ function priceUsage(usage, pricing) {
31858
31858
  const searches = usage.webSearchRequests ?? 0;
31859
31859
  if (searches === 0 || pricing.webSearchCostPer1000 === void 0)
31860
31860
  return tokens;
31861
- return { ...tokens, cost: tokens.cost + searches / 1e3 * pricing.webSearchCostPer1000 };
31861
+ return {
31862
+ ...tokens,
31863
+ cost: tokens.cost + searches / 1e3 * pricing.webSearchCostPer1000
31864
+ };
31862
31865
  }
31863
31866
  __name(priceUsage, "priceUsage");
31864
31867
  function isStandardTier(tier2) {
31865
- return tier2 !== "priority" && tier2 !== "batch";
31868
+ return tier2 !== "priority" && tier2 !== "batch" && tier2 !== "flex" && tier2 !== "scale";
31866
31869
  }
31867
31870
  __name(isStandardTier, "isStandardTier");
31868
31871
  function priceTokens(usage, pricing) {
31869
31872
  if (!isStandardTier(usage.serviceTier)) {
31870
31873
  return { cost: 0, cacheDiscount: 0, unpriced: usage.totalTokens };
31871
31874
  }
31875
+ if (usage.speed === "ultrafast") {
31876
+ return { cost: 0, cacheDiscount: 0, unpriced: usage.totalTokens };
31877
+ }
31872
31878
  if (usage.speed === "fast") {
31873
31879
  const multiplier = pricing.fastMultiplier;
31874
31880
  if (multiplier === void 0) {
@@ -32482,7 +32488,8 @@ var VENDOR_RATES = [
32482
32488
  {
32483
32489
  inputCostPer1M: 2.5,
32484
32490
  outputCostPer1M: 15,
32485
- cache: { promptIncludesCacheReads: true, readCostPer1M: 0.25 }
32491
+ cache: { promptIncludesCacheReads: true, readCostPer1M: 0.25 },
32492
+ fastMultiplier: 2
32486
32493
  }
32487
32494
  ],
32488
32495
  [
@@ -32490,7 +32497,8 @@ var VENDOR_RATES = [
32490
32497
  {
32491
32498
  inputCostPer1M: 0.75,
32492
32499
  outputCostPer1M: 4.5,
32493
- cache: { promptIncludesCacheReads: true, readCostPer1M: 0.075 }
32500
+ cache: { promptIncludesCacheReads: true, readCostPer1M: 0.075 },
32501
+ fastMultiplier: 2
32494
32502
  }
32495
32503
  ],
32496
32504
  [
@@ -32506,7 +32514,8 @@ var VENDOR_RATES = [
32506
32514
  {
32507
32515
  inputCostPer1M: 5,
32508
32516
  outputCostPer1M: 30,
32509
- cache: { promptIncludesCacheReads: true, readCostPer1M: 0.5 }
32517
+ cache: { promptIncludesCacheReads: true, readCostPer1M: 0.5 },
32518
+ fastMultiplier: 2.5
32510
32519
  }
32511
32520
  ],
32512
32521
  [
@@ -32514,7 +32523,8 @@ var VENDOR_RATES = [
32514
32523
  {
32515
32524
  inputCostPer1M: 0.2,
32516
32525
  outputCostPer1M: 1.2,
32517
- cache: { promptIncludesCacheReads: true, readCostPer1M: 0.02 }
32526
+ cache: { promptIncludesCacheReads: true, readCostPer1M: 0.02 },
32527
+ fastMultiplier: 2
32518
32528
  }
32519
32529
  ],
32520
32530
  [
@@ -32522,7 +32532,8 @@ var VENDOR_RATES = [
32522
32532
  {
32523
32533
  inputCostPer1M: 5,
32524
32534
  outputCostPer1M: 30,
32525
- cache: { promptIncludesCacheReads: true, readCostPer1M: 0.5 }
32535
+ cache: { promptIncludesCacheReads: true, readCostPer1M: 0.5 },
32536
+ fastMultiplier: 2
32526
32537
  }
32527
32538
  ],
32528
32539
  [
@@ -32530,7 +32541,8 @@ var VENDOR_RATES = [
32530
32541
  {
32531
32542
  inputCostPer1M: 2,
32532
32543
  outputCostPer1M: 12,
32533
- cache: { promptIncludesCacheReads: true, readCostPer1M: 0.2 }
32544
+ cache: { promptIncludesCacheReads: true, readCostPer1M: 0.2 },
32545
+ fastMultiplier: 2
32534
32546
  }
32535
32547
  ],
32536
32548
  [
@@ -33697,6 +33709,22 @@ __name(driveObjective, "driveObjective");
33697
33709
  import { join as join7 } from "node:path";
33698
33710
  var MAX_GOAL_OBJECTIVE_CHARS = 4e3;
33699
33711
  var DEFAULT_MAX_GOAL_ROUNDS = 256;
33712
+ var DEFAULT_GOAL_STALL_ROUNDS = 3;
33713
+ var DEFAULT_GOAL_CHECK_IN_ROUNDS = 50;
33714
+ function goalCostText(goal) {
33715
+ const cost = goal.costUsd ?? 0;
33716
+ return cost > 0 && cost < 0.01 ? `$${cost.toFixed(4)}` : `$${cost.toFixed(2)}`;
33717
+ }
33718
+ __name(goalCostText, "goalCostText");
33719
+ function goalTokensText(goal) {
33720
+ return (goal.tokensUsed ?? 0).toLocaleString("en-US");
33721
+ }
33722
+ __name(goalTokensText, "goalTokensText");
33723
+ function goalUsageSentence(goal) {
33724
+ const rounds = goal.roundsAdmitted;
33725
+ return `${rounds} automatic turn${rounds === 1 ? "" : "s"}, ${goalTokensText(goal)} tokens, ${goalCostText(goal)}`;
33726
+ }
33727
+ __name(goalUsageSentence, "goalUsageSentence");
33700
33728
  var StaleGoalError = class extends Error {
33701
33729
  static {
33702
33730
  __name(this, "StaleGoalError");
@@ -33765,6 +33793,28 @@ var GoalRoundLimitError = class extends Error {
33765
33793
  this.name = "GoalRoundLimitError";
33766
33794
  }
33767
33795
  };
33796
+ var GoalCheckInError = class extends Error {
33797
+ static {
33798
+ __name(this, "GoalCheckInError");
33799
+ }
33800
+ goal;
33801
+ constructor(goal) {
33802
+ super(`Goal ${goal.id} paused for a check-in after ${goal.roundsAdmitted} automatic rounds.`);
33803
+ this.goal = goal;
33804
+ this.name = "GoalCheckInError";
33805
+ }
33806
+ };
33807
+ var GoalBudgetLimitError = class extends Error {
33808
+ static {
33809
+ __name(this, "GoalBudgetLimitError");
33810
+ }
33811
+ goal;
33812
+ constructor(goal) {
33813
+ super(`Goal ${goal.id} reached its token budget.`);
33814
+ this.goal = goal;
33815
+ this.name = "GoalBudgetLimitError";
33816
+ }
33817
+ };
33768
33818
  var SCHEMA3 = defineSchema({
33769
33819
  kind: "session-goal",
33770
33820
  current: 2,
@@ -33829,6 +33879,29 @@ function maxGoalRounds(value) {
33829
33879
  return resolved2;
33830
33880
  }
33831
33881
  __name(maxGoalRounds, "maxGoalRounds");
33882
+ function guardNumber(name3, value, minimum) {
33883
+ if (value === void 0)
33884
+ return void 0;
33885
+ if (!Number.isSafeInteger(value) || value < minimum) {
33886
+ throw new TypeError(`${name3} must be a safe integer of at least ${minimum}, got ${value}.`);
33887
+ }
33888
+ return value;
33889
+ }
33890
+ __name(guardNumber, "guardNumber");
33891
+ function goalGuards(value) {
33892
+ if (value === void 0)
33893
+ return void 0;
33894
+ const stallRounds = guardNumber("stallRounds", value.stallRounds, 1);
33895
+ const checkInEvery = guardNumber("checkInEvery", value.checkInEvery, 0);
33896
+ const tokenBudget = guardNumber("tokenBudget", value.tokenBudget, 1);
33897
+ const guards = {
33898
+ ...stallRounds !== void 0 ? { stallRounds } : {},
33899
+ ...checkInEvery !== void 0 ? { checkInEvery } : {},
33900
+ ...tokenBudget !== void 0 ? { tokenBudget } : {}
33901
+ };
33902
+ return Object.keys(guards).length > 0 ? guards : void 0;
33903
+ }
33904
+ __name(goalGuards, "goalGuards");
33832
33905
  function blockReason(value) {
33833
33906
  if (typeof value?.code !== "string" || !/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/u.test(value.code) || typeof value?.message !== "string" || value.message.trim().length === 0) {
33834
33907
  throw new TypeError("goal block reason requires a lower-kebab-case code and a non-empty message.");
@@ -33897,6 +33970,7 @@ var SessionGoalStoreBase = class {
33897
33970
  const sessionId5 = await this.requireSession(params.sessionId, tenantId2);
33898
33971
  const text11 = objective(params.objective);
33899
33972
  const maxRounds = maxGoalRounds(params.maxGoalRounds);
33973
+ const guards = goalGuards(params.guards);
33900
33974
  if (params.confirmedBy !== void 0 && params.confirmedBy !== "model" && params.confirmedBy !== "record") {
33901
33975
  throw new TypeError('goal confirmedBy must be "model" or "record".');
33902
33976
  }
@@ -33917,6 +33991,7 @@ var SessionGoalStoreBase = class {
33917
33991
  phase: "active",
33918
33992
  maxGoalRounds: maxRounds,
33919
33993
  roundsAdmitted: 0,
33994
+ ...guards !== void 0 ? { guards } : {},
33920
33995
  ...params.confirmedBy !== void 0 ? { confirmedBy: params.confirmedBy } : {},
33921
33996
  createdAt: now,
33922
33997
  updatedAt: now
@@ -33947,8 +34022,29 @@ var SessionGoalStoreBase = class {
33947
34022
  async pauseGoal(sessionId5, tenantId2, ref) {
33948
34023
  return await this.transition(sessionId5, tenantId2, ref, "pause", ["active"], "paused");
33949
34024
  }
33950
- async resumeGoal(sessionId5, tenantId2, ref) {
33951
- return await this.transition(sessionId5, tenantId2, ref, "resume", ["paused", "blocked"], "active");
34025
+ async resumeGoal(sessionId5, tenantId2, ref, options = {}) {
34026
+ const checked2 = await this.requireSession(sessionId5, tenantId2);
34027
+ const expected = validRef(ref);
34028
+ const raisedRounds = guardNumber("maxGoalRounds", options.maxGoalRounds, 1);
34029
+ const raisedBudget = guardNumber("tokenBudget", options.tokenBudget, 1);
34030
+ return await this.mutate(checked2, tenantId2, expected, (goal) => {
34031
+ if (goal.phase !== "paused" && goal.phase !== "blocked") {
34032
+ throw new GoalTransitionError(goal.phase, "resume");
34033
+ }
34034
+ const { blockedReason: _blockedReason, pauseReason: _pauseReason, quietRounds: _quietRounds, failureRounds: _failureRounds, failureSignature: _failureSignature, wrapUpRound: _wrapUpRound, ...rest } = goal;
34035
+ const filled = goalGuards(options.guards);
34036
+ const own2 = filled === void 0 && goal.guards === void 0 ? void 0 : { ...goal.guards, ...filled };
34037
+ const budget = raisedBudget !== void 0 && raisedBudget > (own2?.tokenBudget ?? 0) ? raisedBudget : own2?.tokenBudget;
34038
+ const guards = own2 === void 0 && budget === void 0 ? void 0 : { ...own2, ...budget !== void 0 ? { tokenBudget: budget } : {} };
34039
+ const newCheckIn = filled?.checkInEvery !== void 0 && filled.checkInEvery > 0 && filled.checkInEvery !== goal.guards?.checkInEvery;
34040
+ return {
34041
+ ...rest,
34042
+ phase: "active",
34043
+ ...newCheckIn ? { checkedInAtRound: goal.roundsAdmitted } : {},
34044
+ maxGoalRounds: raisedRounds !== void 0 && raisedRounds > goal.maxGoalRounds ? raisedRounds : goal.maxGoalRounds,
34045
+ ...guards !== void 0 ? { guards } : {}
34046
+ };
34047
+ });
33952
34048
  }
33953
34049
  async admitRound(sessionId5, tenantId2, ref) {
33954
34050
  const checked2 = await this.requireSession(sessionId5, tenantId2);
@@ -33958,15 +34054,13 @@ var SessionGoalStoreBase = class {
33958
34054
  if (goal.phase !== "active")
33959
34055
  throw new GoalTransitionError(goal.phase, "admit a round for");
33960
34056
  const now = this.now();
33961
- if (goal.roundsAdmitted >= goal.maxGoalRounds) {
34057
+ const stop = /* @__PURE__ */ __name((reason, extra = {}) => {
33962
34058
  const blocked = {
33963
34059
  ...goal,
34060
+ ...extra,
33964
34061
  revision: goal.revision + 1,
33965
34062
  phase: "blocked",
33966
- blockedReason: {
33967
- code: "round-limit",
33968
- message: `Reached the ${goal.maxGoalRounds}-round limit.`
33969
- },
34063
+ blockedReason: reason,
33970
34064
  updatedAt: now
33971
34065
  };
33972
34066
  return {
@@ -33979,11 +34073,53 @@ var SessionGoalStoreBase = class {
33979
34073
  },
33980
34074
  result: { kind: "exhausted", goal: blocked }
33981
34075
  };
34076
+ }, "stop");
34077
+ if (goal.roundsAdmitted >= goal.maxGoalRounds) {
34078
+ return stop({
34079
+ code: "round-limit",
34080
+ message: `Reached the ${goal.maxGoalRounds}-round limit.`
34081
+ });
34082
+ }
34083
+ const budget = goal.guards?.tokenBudget;
34084
+ const overBudget = budget !== void 0 && (goal.tokensUsed ?? 0) >= budget;
34085
+ if (overBudget && goal.wrapUpRound !== void 0) {
34086
+ return {
34087
+ ...stop({
34088
+ code: "budget-limited",
34089
+ message: `Reached the ${budget.toLocaleString("en-US")}-token budget after ${goalUsageSentence(goal)}.`
34090
+ })
34091
+ };
33982
34092
  }
34093
+ const checkInEvery = goal.guards?.checkInEvery ?? 0;
34094
+ if (!overBudget && checkInEvery > 0 && goal.roundsAdmitted - (goal.checkedInAtRound ?? 0) >= checkInEvery) {
34095
+ const paused = {
34096
+ ...goal,
34097
+ revision: goal.revision + 1,
34098
+ phase: "paused",
34099
+ pauseReason: {
34100
+ code: "check-in",
34101
+ message: `Paused for a check-in after ${goalUsageSentence(goal)}.`
34102
+ },
34103
+ checkedInAtRound: goal.roundsAdmitted,
34104
+ updatedAt: now
34105
+ };
34106
+ return {
34107
+ record: {
34108
+ sessionId: checked2,
34109
+ tenantId: tenantId2,
34110
+ storageRevision: (existing?.storageRevision ?? 0) + 1,
34111
+ goal: paused,
34112
+ updatedAt: now
34113
+ },
34114
+ result: { kind: "check-in", goal: paused }
34115
+ };
34116
+ }
34117
+ const { missing: _missing, ...withoutMissing } = goal;
33983
34118
  const admitted = {
33984
- ...goal,
34119
+ ...withoutMissing,
33985
34120
  revision: goal.revision + 1,
33986
34121
  roundsAdmitted: goal.roundsAdmitted + 1,
34122
+ ...overBudget ? { wrapUpRound: goal.roundsAdmitted + 1 } : {},
33987
34123
  updatedAt: now
33988
34124
  };
33989
34125
  const authority = {
@@ -33993,7 +34129,11 @@ var SessionGoalStoreBase = class {
33993
34129
  tenantId: admitted.tenantId,
33994
34130
  objective: admitted.objective,
33995
34131
  round: admitted.roundsAdmitted,
33996
- maxGoalRounds: admitted.maxGoalRounds
34132
+ maxGoalRounds: admitted.maxGoalRounds,
34133
+ ...goal.tokensUsed !== void 0 ? { tokensUsed: goal.tokensUsed } : {},
34134
+ ...goal.costUsd !== void 0 ? { costUsd: goal.costUsd } : {},
34135
+ ...overBudget ? { wrapUp: true } : {},
34136
+ ...goal.missing && goal.missing.length > 0 ? { missing: goal.missing } : {}
33997
34137
  };
33998
34138
  return {
33999
34139
  record: {
@@ -34006,10 +34146,96 @@ var SessionGoalStoreBase = class {
34006
34146
  result: { kind: "admitted", authority }
34007
34147
  };
34008
34148
  });
34009
- if (outcome.kind === "exhausted")
34149
+ if (outcome.kind === "check-in")
34150
+ throw new GoalCheckInError(outcome.goal);
34151
+ if (outcome.kind === "exhausted") {
34152
+ if (outcome.goal.blockedReason?.code === "budget-limited") {
34153
+ throw new GoalBudgetLimitError(outcome.goal);
34154
+ }
34010
34155
  throw new GoalRoundLimitError(outcome.goal);
34156
+ }
34011
34157
  return outcome.authority;
34012
34158
  }
34159
+ async recordRound(sessionId5, tenantId2, goalId, outcome) {
34160
+ const checked2 = await this.requireSession(sessionId5, tenantId2);
34161
+ const id3 = asGoalId(goalId);
34162
+ const before = await backendFor2(this).read(checked2);
34163
+ if (!before || before.goal?.id !== id3)
34164
+ return null;
34165
+ return await backendFor2(this).transact(checked2, (existing) => {
34166
+ if (!existing)
34167
+ throw new GoalNotFoundError(checked2);
34168
+ assertTenant3(existing, tenantId2);
34169
+ const goal = existing.goal;
34170
+ const now = this.now();
34171
+ if (!goal || goal.id !== id3) {
34172
+ return {
34173
+ record: {
34174
+ sessionId: checked2,
34175
+ tenantId: tenantId2,
34176
+ storageRevision: existing.storageRevision + 1,
34177
+ goal: existing.goal,
34178
+ updatedAt: now
34179
+ },
34180
+ result: null
34181
+ };
34182
+ }
34183
+ const guards = goal.guards;
34184
+ const empty = outcome.progress === "empty";
34185
+ const quietRounds = empty ? (goal.quietRounds ?? 0) + 1 : 0;
34186
+ const sameFailure = outcome.failureSignature !== void 0 && outcome.failureSignature === goal.failureSignature;
34187
+ const failureRounds = outcome.failureSignature === void 0 ? 0 : sameFailure ? (goal.failureRounds ?? 0) + 1 : 1;
34188
+ const { failureSignature: _drop, missing: _missing, lastAction: _lastAction, ...rest } = goal;
34189
+ const lastAction = outcome.action ?? goal.lastAction;
34190
+ const missing2 = outcome.missing !== void 0 ? outcome.missing : goal.missing;
34191
+ let updated = {
34192
+ ...rest,
34193
+ tokensUsed: (goal.tokensUsed ?? 0) + Math.max(0, outcome.tokens ?? 0),
34194
+ costUsd: (goal.costUsd ?? 0) + Math.max(0, outcome.costUsd ?? 0),
34195
+ quietRounds,
34196
+ failureRounds,
34197
+ ...outcome.failureSignature !== void 0 ? { failureSignature: outcome.failureSignature } : {},
34198
+ ...lastAction !== void 0 ? { lastAction } : {},
34199
+ ...missing2 !== void 0 && missing2.length > 0 ? { missing: missing2 } : {},
34200
+ updatedAt: now
34201
+ };
34202
+ const stall = guards?.stallRounds;
34203
+ if (goal.phase === "active" && stall !== void 0) {
34204
+ const after = lastAction !== void 0 ? ` Last action: ${lastAction}.` : "";
34205
+ if (quietRounds >= stall) {
34206
+ updated = {
34207
+ ...updated,
34208
+ revision: goal.revision + 1,
34209
+ phase: "blocked",
34210
+ blockedReason: {
34211
+ code: "no-progress",
34212
+ message: `${stall} automatic turns in a row changed nothing and checked nothing.${after}`
34213
+ }
34214
+ };
34215
+ } else if (failureRounds >= stall && outcome.failureSignature !== void 0) {
34216
+ updated = {
34217
+ ...updated,
34218
+ revision: goal.revision + 1,
34219
+ phase: "blocked",
34220
+ blockedReason: {
34221
+ code: "repeated-failure",
34222
+ message: `The same failure ended ${stall} automatic turns in a row: ${outcome.failureSignature}.${after}`
34223
+ }
34224
+ };
34225
+ }
34226
+ }
34227
+ return {
34228
+ record: {
34229
+ sessionId: checked2,
34230
+ tenantId: tenantId2,
34231
+ storageRevision: existing.storageRevision + 1,
34232
+ goal: updated,
34233
+ updatedAt: now
34234
+ },
34235
+ result: updated
34236
+ };
34237
+ });
34238
+ }
34013
34239
  async completeGoal(sessionId5, tenantId2, ref) {
34014
34240
  return await this.transition(sessionId5, tenantId2, ref, "complete", ["active", "paused", "blocked"], "complete");
34015
34241
  }
@@ -34383,6 +34609,9 @@ function withStreamIdleTimeout(provider, options) {
34383
34609
  ...provider.acceptsForcedToolChoiceFor ? {
34384
34610
  acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ?? false, "acceptsForcedToolChoiceFor")
34385
34611
  } : {},
34612
+ ...provider.speedTiersFor ? {
34613
+ speedTiersFor: /* @__PURE__ */ __name((model) => provider.speedTiersFor?.(model), "speedTiersFor")
34614
+ } : {},
34386
34615
  ...provider.reasoningEffortLevelsFor ? {
34387
34616
  reasoningEffortLevelsFor: /* @__PURE__ */ __name((model, thinking) => provider.reasoningEffortLevelsFor?.(model, thinking), "reasoningEffortLevelsFor")
34388
34617
  } : {},
@@ -35176,6 +35405,42 @@ function describeGoalEnding(report) {
35176
35405
  }
35177
35406
  }
35178
35407
  __name(describeGoalEnding, "describeGoalEnding");
35408
+ var GOAL_AUDIT_RUBRIC = [
35409
+ "Before reporting a goal complete: restate each requirement in the objective, check each one against the current state (open the file, run the check, read the output), and list them as evidence with what you checked and what you saw.",
35410
+ "Intent, earlier work or a plausible-looking answer is not proof. If any evidence is weak or missing, keep working instead of reporting."
35411
+ ].join(" ");
35412
+ function parseGoalEvidence(value) {
35413
+ if (!Array.isArray(value) || value.length === 0) {
35414
+ return {
35415
+ ok: false,
35416
+ problem: "Reporting a goal complete needs evidence: a list with one entry per requirement."
35417
+ };
35418
+ }
35419
+ const evidence = [];
35420
+ for (const entry of value) {
35421
+ const item = entry;
35422
+ const text11 = /* @__PURE__ */ __name((field2) => typeof item?.[field2] === "string" ? item[field2].trim() : "", "text");
35423
+ const requirement = text11("requirement");
35424
+ const checked2 = text11("checked");
35425
+ const result = text11("result");
35426
+ if (requirement === "" || checked2 === "" || result === "") {
35427
+ return {
35428
+ ok: false,
35429
+ problem: "Every evidence entry needs a requirement, what was checked, and the result."
35430
+ };
35431
+ }
35432
+ evidence.push({ requirement, checked: checked2, result });
35433
+ }
35434
+ return { ok: true, evidence };
35435
+ }
35436
+ __name(parseGoalEvidence, "parseGoalEvidence");
35437
+ function sameRequirement(a, b) {
35438
+ const fold5 = /* @__PURE__ */ __name((text11) => text11.toLowerCase().replace(/\s+/gu, " ").trim(), "fold");
35439
+ const x = fold5(a);
35440
+ const y = fold5(b);
35441
+ return x === y || x.includes(y) || y.includes(x);
35442
+ }
35443
+ __name(sameRequirement, "sameRequirement");
35179
35444
  var GoalConfirmation = class {
35180
35445
  static {
35181
35446
  __name(this, "GoalConfirmation");
@@ -35185,9 +35450,52 @@ var GoalConfirmation = class {
35185
35450
  refusals = /* @__PURE__ */ new Map();
35186
35451
  changed = /* @__PURE__ */ new Set();
35187
35452
  endings = /* @__PURE__ */ new Map();
35453
+ /** Requirements listed in the first completion report of a goal, which held it once. */
35454
+ audited = /* @__PURE__ */ new Map();
35455
+ judged = /* @__PURE__ */ new Map();
35188
35456
  constructor(options) {
35189
35457
  this.options = options;
35190
35458
  }
35459
+ /** Whether `update_goal` with `complete` needs evidence. */
35460
+ get requiresEvidence() {
35461
+ return this.options.requireEvidence === true;
35462
+ }
35463
+ /** Whether a judge checks the completion reports of a goal the model confirms. */
35464
+ get judging() {
35465
+ return this.options.judge !== void 0 && (this.options.judgeActive === void 0 || this.options.judgeActive());
35466
+ }
35467
+ /**
35468
+ * A completion report made while no judge decides it. The first report of a
35469
+ * goal is handed back once with the rubric; the next is accepted when its
35470
+ * evidence covers each requirement the first one listed. No model is asked.
35471
+ */
35472
+ selfAudit(goalId, evidence) {
35473
+ const listed = this.audited.get(goalId);
35474
+ if (listed === void 0) {
35475
+ this.audited.set(goalId, evidence.map((entry) => entry.requirement));
35476
+ return {
35477
+ kind: "hold",
35478
+ note: `Held once for an audit. ${GOAL_AUDIT_RUBRIC} Report complete again with the evidence once every requirement holds.`
35479
+ };
35480
+ }
35481
+ const uncovered = listed.filter((requirement) => !evidence.some((entry) => sameRequirement(entry.requirement, requirement)));
35482
+ if (uncovered.length > 0) {
35483
+ return {
35484
+ kind: "hold",
35485
+ note: `The evidence does not cover: ${uncovered.join("; ")}. Report complete again with an entry for each requirement you listed before.`
35486
+ };
35487
+ }
35488
+ this.audited.delete(goalId);
35489
+ return { kind: "accept" };
35490
+ }
35491
+ /** Keeps a model-confirmed report until the model finishes its answer and a judge can read it. */
35492
+ claimEvidence(goalId, evidence, reason) {
35493
+ this.claims.set(goalId, {
35494
+ statement: "met",
35495
+ evidence,
35496
+ ...reason !== void 0 ? { reason } : {}
35497
+ });
35498
+ }
35191
35499
  /** What decides this goal: its own choice, else the host's setting, else the model. */
35192
35500
  confirmedByFor(goal) {
35193
35501
  return goal.confirmedBy ?? this.options.defaultConfirmedBy ?? "model";
@@ -35247,8 +35555,74 @@ var GoalConfirmation = class {
35247
35555
  this.claims.delete(goal.id);
35248
35556
  this.refusals.delete(goal.id);
35249
35557
  this.changed.delete(goal.id);
35558
+ this.audited.delete(goal.id);
35559
+ this.judged.delete(goal.id);
35250
35560
  return report;
35251
35561
  }
35562
+ /**
35563
+ * A report of a goal the model confirms, read when the model finishes its
35564
+ * answer: the judge decides it. Met ends the goal. Not met keeps it active
35565
+ * and sends the missing list back while refusals remain; past the bound the
35566
+ * turn ends and the list leads the next round. A judge that cannot judge
35567
+ * leaves the decision to the self-audit.
35568
+ */
35569
+ async judgeClaim(authority, goal, turnId6, read, finalMessage) {
35570
+ const claim2 = this.claims.get(goal.id);
35571
+ this.claims.delete(goal.id);
35572
+ if (!claim2?.evidence)
35573
+ return void 0;
35574
+ const { store: store2 } = this.options;
35575
+ const ref = { id: authority.id, revision: authority.revision };
35576
+ const evidence = claim2.evidence;
35577
+ let judgement;
35578
+ if (this.options.judge !== void 0) {
35579
+ try {
35580
+ judgement = await this.options.judge({
35581
+ sessionId: String(authority.sessionId),
35582
+ turnId: turnId6,
35583
+ objective: goal.objective,
35584
+ evidence,
35585
+ outcome: recordSentence(await read()),
35586
+ finalMessage
35587
+ });
35588
+ } catch {
35589
+ judgement = void 0;
35590
+ }
35591
+ }
35592
+ const accept = /* @__PURE__ */ __name(async () => {
35593
+ if ((this.judged.get(goal.id) ?? 0) > 0) {
35594
+ await store2.recordRound?.(authority.sessionId, authority.tenantId, authority.id, {
35595
+ progress: "unknown",
35596
+ missing: []
35597
+ });
35598
+ }
35599
+ try {
35600
+ await store2.completeGoal(authority.sessionId, authority.tenantId, ref);
35601
+ } catch (error62) {
35602
+ if (!(error62 instanceof StaleGoalError))
35603
+ throw error62;
35604
+ }
35605
+ this.judged.delete(goal.id);
35606
+ return void 0;
35607
+ }, "accept");
35608
+ if (judgement === void 0) {
35609
+ const decision2 = this.selfAudit(goal.id, evidence);
35610
+ return decision2.kind === "accept" ? await accept() : decision2.note;
35611
+ }
35612
+ if (judgement.met)
35613
+ return await accept();
35614
+ const missing2 = judgement.missing.map((line) => line.trim()).filter((line) => line !== "");
35615
+ const asked = this.judged.get(goal.id) ?? 0;
35616
+ this.judged.set(goal.id, asked + 1);
35617
+ const list2 = missing2.length > 0 ? missing2 : ["the evidence does not show the goal is met"];
35618
+ await store2.recordRound?.(authority.sessionId, authority.tenantId, authority.id, {
35619
+ progress: "unknown",
35620
+ missing: list2
35621
+ });
35622
+ if (asked >= this.maxRefusals)
35623
+ return void 0;
35624
+ return `The check of your completion report found the goal is not met yet. Missing: ${list2.join("; ")}. Keep working on these, then report complete again with updated evidence.`;
35625
+ }
35252
35626
  /** Drop a report that was never answered for, when its round ends without the turn finishing an answer. */
35253
35627
  forget(goalId) {
35254
35628
  this.claims.delete(goalId);
@@ -35259,15 +35633,16 @@ var GoalConfirmation = class {
35259
35633
  * of a goal confirmed by the record is never touched.
35260
35634
  */
35261
35635
  beforeEnd(turnId6) {
35262
- return async (read) => {
35636
+ return async (read, context2) => {
35263
35637
  const authority = this.options.resolveAuthority(turnId6);
35264
35638
  if (!authority)
35265
35639
  return void 0;
35266
35640
  const goal = await this.options.store.getGoal(authority.sessionId, authority.tenantId);
35267
35641
  if (!goal || goal.id !== authority.id || goal.phase !== "active")
35268
35642
  return void 0;
35269
- if (this.confirmedByFor(goal) !== "record")
35270
- return void 0;
35643
+ if (this.confirmedByFor(goal) !== "record") {
35644
+ return await this.judgeClaim(authority, goal, turnId6, read, context2?.finalMessage ?? "");
35645
+ }
35271
35646
  const record4 = await read();
35272
35647
  const claim2 = this.claims.get(goal.id);
35273
35648
  this.claims.delete(goal.id);
@@ -35373,7 +35748,11 @@ function buildSessionGoalTools(store2, resolveAuthority, options = {}) {
35373
35748
  phase: goal.phase,
35374
35749
  round: authority.round,
35375
35750
  maxGoalRounds: goal.maxGoalRounds,
35376
- roundsAdmitted: goal.roundsAdmitted
35751
+ roundsAdmitted: goal.roundsAdmitted,
35752
+ tokensUsed: goal.tokensUsed ?? 0,
35753
+ costUsd: goal.costUsd ?? 0,
35754
+ ...goal.guards?.tokenBudget !== void 0 ? { tokenBudget: goal.guards.tokenBudget } : {},
35755
+ ...authority.wrapUp ? { wrapUp: true } : {}
35377
35756
  }),
35378
35757
  data: goal
35379
35758
  };
@@ -35381,18 +35760,23 @@ function buildSessionGoalTools(store2, resolveAuthority, options = {}) {
35381
35760
  });
35382
35761
  const updateGoal = defineTool({
35383
35762
  name: "update_goal",
35384
- description: "Mark this admitted goal complete, or blocked after at least three admitted rounds. This does not end the turn; explain the final state to the operator afterward.",
35763
+ description: `Mark this admitted goal complete, or blocked after at least three admitted rounds. Completion takes evidence: one entry per requirement of the objective, with what you checked and the result. ${GOAL_AUDIT_RUBRIC} This does not end the turn; explain the final state to the operator afterward.`,
35385
35764
  inputSchema: external_exports.object({
35386
35765
  status: external_exports.enum(["complete", "blocked"]),
35387
35766
  reasonCode: external_exports.string().optional().describe("Lower-kebab-case reason code; required when status is blocked."),
35388
- reason: external_exports.string().optional().describe("Operator-readable reason; required when blocked.")
35767
+ reason: external_exports.string().optional().describe("Operator-readable reason; required when blocked."),
35768
+ evidence: external_exports.array(external_exports.object({
35769
+ requirement: external_exports.string().describe("One requirement of the objective, restated."),
35770
+ checked: external_exports.string().describe("What you did to check it against the current state."),
35771
+ result: external_exports.string().describe("What the check showed.")
35772
+ })).optional().describe("Required when status is complete: one entry per requirement.")
35389
35773
  }),
35390
35774
  category: "custom",
35391
35775
  permissions: [],
35392
35776
  readOnly: false,
35393
35777
  destructive: false,
35394
35778
  concurrencySafe: false,
35395
- async execute({ status, reasonCode, reason }, context2) {
35779
+ async execute({ status, reasonCode, reason, evidence }, context2) {
35396
35780
  const authority = authorityFor(resolveAuthority, context2.turnId);
35397
35781
  const current = await currentGoal2(store2, authority);
35398
35782
  const ref = { id: authority.id, revision: authority.revision };
@@ -35418,6 +35802,21 @@ function buildSessionGoalTools(store2, resolveAuthority, options = {}) {
35418
35802
  };
35419
35803
  }
35420
35804
  if (status === "complete") {
35805
+ if (confirmation?.requiresEvidence) {
35806
+ const parsed = parseGoalEvidence(evidence);
35807
+ if (!parsed.ok)
35808
+ throw new TypeError(`${parsed.problem} ${GOAL_AUDIT_RUBRIC}`);
35809
+ if (confirmation.judging) {
35810
+ confirmation.claimEvidence(authority.id, parsed.evidence, reason);
35811
+ return {
35812
+ success: true,
35813
+ output: "Completion reported. The evidence is checked when you finish your answer: give your final answer now, and if something is found missing you will be told what."
35814
+ };
35815
+ }
35816
+ const decision2 = confirmation.selfAudit(authority.id, parsed.evidence);
35817
+ if (decision2.kind === "hold")
35818
+ throw new Error(decision2.note);
35819
+ }
35421
35820
  const goal2 = await store2.completeGoal(authority.sessionId, authority.tenantId, ref);
35422
35821
  return { success: true, output: "Goal marked complete.", data: goal2 };
35423
35822
  }
@@ -81495,7 +81894,7 @@ var IterationOrchestrator = class {
81495
81894
  recorder.pushMessage(createRuntimeContextMessage(auditReminder, "progress-nudge"));
81496
81895
  continue;
81497
81896
  }
81498
- const endNote = !forceFinalize && closingStopReason === void 0 ? await this.askBeforeEnd() : void 0;
81897
+ const endNote = !forceFinalize && closingStopReason === void 0 ? await this.askBeforeEnd(response.message.content ?? "") : void 0;
81499
81898
  if (endNote !== void 0) {
81500
81899
  recorder.pushMessage(createRuntimeContextMessage(endNote, "progress-nudge"));
81501
81900
  continue;
@@ -82574,7 +82973,7 @@ ${feedback}`, "hook-feedback"));
82574
82973
  * for the model, or `undefined` to let the turn end. Bounded, and a hook that
82575
82974
  * fails never fails the turn.
82576
82975
  */
82577
- async askBeforeEnd() {
82976
+ async askBeforeEnd(finalMessage = "") {
82578
82977
  const hook = this.ctx.turnConfig.outcome?.beforeEnd;
82579
82978
  if (hook === void 0 || this.beforeEndNotes >= MAX_BEFORE_END_NOTES)
82580
82979
  return void 0;
@@ -82582,7 +82981,7 @@ ${feedback}`, "hook-feedback"));
82582
82981
  const note = await hook(async () => {
82583
82982
  this.hydrateOutcome();
82584
82983
  return await this.outcomeLedger.preview();
82585
- });
82984
+ }, { finalMessage });
82586
82985
  if (typeof note !== "string" || note.trim() === "")
82587
82986
  return void 0;
82588
82987
  this.beforeEndNotes += 1;
@@ -83046,6 +83445,9 @@ function withProviderRetry(provider, options = {}) {
83046
83445
  ...provider.acceptsForcedToolChoiceFor ? {
83047
83446
  acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ?? false, "acceptsForcedToolChoiceFor")
83048
83447
  } : {},
83448
+ ...provider.speedTiersFor ? {
83449
+ speedTiersFor: /* @__PURE__ */ __name((model) => provider.speedTiersFor?.(model), "speedTiersFor")
83450
+ } : {},
83049
83451
  ...provider.reasoningEffortLevelsFor ? {
83050
83452
  reasoningEffortLevelsFor: /* @__PURE__ */ __name((model, thinking) => provider.reasoningEffortLevelsFor?.(model, thinking), "reasoningEffortLevelsFor")
83051
83453
  } : {},
@@ -83277,6 +83679,18 @@ function withProviderFallback(members2, options = {}) {
83277
83679
  // request may be served by any of them, and one that refuses (or cannot
83278
83680
  // say) must not be sent a choice it may turn down.
83279
83681
  acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking, effort) => members2.every((member) => member.provider.acceptsForcedToolChoiceFor?.(member.model ?? model, thinking, effort) ?? false), "acceptsForcedToolChoiceFor"),
83682
+ // A tier is offered only when every member that may serve the request
83683
+ // lists it; a member that cannot say makes the answer unknown.
83684
+ speedTiersFor: /* @__PURE__ */ __name((model) => {
83685
+ let common;
83686
+ for (const member of members2) {
83687
+ const tiers = member.provider.speedTiersFor?.(member.model ?? model);
83688
+ if (tiers === void 0)
83689
+ return void 0;
83690
+ common = common === void 0 ? tiers : common.filter((t) => tiers.includes(t));
83691
+ }
83692
+ return common;
83693
+ }, "speedTiersFor"),
83280
83694
  reasoningEffortLevelsFor: /* @__PURE__ */ __name((model, thinking) => commonReasoningEffortLevels(members2, model, thinking), "reasoningEffortLevelsFor"),
83281
83695
  // Present on the chain wrapper for the same reason the menu method is:
83282
83696
  // `undefined` is the honest answer when a member cannot answer, defaults
@@ -103239,7 +103653,7 @@ var HostCommandRegistry = class extends ManagedRegistry {
103239
103653
  };
103240
103654
 
103241
103655
  // ../sdk/dist/registry/command/kernel-commands.js
103242
- var GOAL_ARGUMENTS = "[status|set [--confirmed-by record|model] <objective>|<objective>|edit <objective>|pause|resume|clear]";
103656
+ var GOAL_ARGUMENTS = "[status|set [--confirmed-by record|model] [--token-budget <n>] [--max-rounds <n>] <objective>|<objective>|edit <objective>|pause|resume|clear]";
103243
103657
  var GOAL_USAGE = `Usage: /goal ${GOAL_ARGUMENTS}`;
103244
103658
  function parseGoalCommand(args) {
103245
103659
  const input2 = args.join(" ").trim();
@@ -103265,48 +103679,72 @@ function parseGoalCommand(args) {
103265
103679
  return { kind: "create", objective: input2 };
103266
103680
  }
103267
103681
  __name(parseGoalCommand, "parseGoalCommand");
103268
- function takeConfirmedBy(args) {
103682
+ var GOAL_FLAG_NAMES = ["--confirmed-by", "--token-budget", "--max-rounds"];
103683
+ function flagAt(args, i) {
103684
+ const arg = args[i] ?? "";
103685
+ for (const name3 of GOAL_FLAG_NAMES) {
103686
+ if (arg === name3)
103687
+ return { name: name3, value: args[i + 1] ?? "", width: 2 };
103688
+ if (arg.startsWith(`${name3}=`))
103689
+ return { name: name3, value: arg.slice(name3.length + 1), width: 1 };
103690
+ }
103691
+ return void 0;
103692
+ }
103693
+ __name(flagAt, "flagAt");
103694
+ function applyFlag(flags, name3, value) {
103695
+ if (name3 === "--confirmed-by") {
103696
+ return value === "model" || value === "record" ? { ...flags, confirmedBy: value } : void 0;
103697
+ }
103698
+ if (!/^[1-9][0-9]{0,15}$/u.test(value))
103699
+ return void 0;
103700
+ const n = Number(value);
103701
+ if (!Number.isSafeInteger(n))
103702
+ return void 0;
103703
+ return name3 === "--token-budget" ? { ...flags, tokenBudget: n } : { ...flags, maxRounds: n };
103704
+ }
103705
+ __name(applyFlag, "applyFlag");
103706
+ function takeGoalFlags(args) {
103269
103707
  const head3 = [];
103270
103708
  let i = 0;
103271
103709
  if ((args[0] ?? "").toLowerCase() === "set") {
103272
103710
  head3.push(args[0] ?? "");
103273
103711
  i = 1;
103274
103712
  }
103275
- let found;
103276
- for (; i < args.length; i++) {
103277
- const arg = args[i] ?? "";
103278
- let value;
103279
- if (arg === "--confirmed-by") {
103280
- value = args[i + 1] ?? "";
103281
- i++;
103282
- } else if (arg.startsWith("--confirmed-by=")) {
103283
- value = arg.slice("--confirmed-by=".length);
103713
+ let flags = {};
103714
+ for (; ; ) {
103715
+ const found = flagAt(args, i);
103716
+ if (!found)
103717
+ break;
103718
+ const next2 = applyFlag(flags, found.name, found.value);
103719
+ if (!next2)
103720
+ return { kind: "invalid", flag: found.name };
103721
+ flags = next2;
103722
+ i += found.width;
103723
+ }
103724
+ let tail = args.slice(i);
103725
+ for (; ; ) {
103726
+ const last = tail.length - 1;
103727
+ const one = flagAt(tail, last);
103728
+ const two = last >= 1 ? flagAt(tail, last - 1) : void 0;
103729
+ if (one && one.width === 1) {
103730
+ const next2 = applyFlag(flags, one.name, one.value);
103731
+ if (!next2)
103732
+ return { kind: "invalid", flag: one.name };
103733
+ flags = next2;
103734
+ tail = tail.slice(0, -1);
103735
+ } else if (two && two.width === 2) {
103736
+ const next2 = applyFlag(flags, two.name, two.value);
103737
+ if (!next2)
103738
+ return { kind: "invalid", flag: two.name };
103739
+ flags = next2;
103740
+ tail = tail.slice(0, -2);
103284
103741
  } else {
103285
103742
  break;
103286
103743
  }
103287
- if (value !== "model" && value !== "record")
103288
- return { kind: "invalid" };
103289
- found = value;
103290
103744
  }
103291
- let tail = args.slice(i);
103292
- const last = tail[tail.length - 1] ?? "";
103293
- const beforeLast = tail[tail.length - 2] ?? "";
103294
- let closing;
103295
- if (last.startsWith("--confirmed-by=")) {
103296
- closing = last.slice("--confirmed-by=".length);
103297
- tail = tail.slice(0, -1);
103298
- } else if (beforeLast === "--confirmed-by") {
103299
- closing = last;
103300
- tail = tail.slice(0, -2);
103301
- }
103302
- if (closing !== void 0) {
103303
- if (closing !== "model" && closing !== "record")
103304
- return { kind: "invalid" };
103305
- found = closing;
103306
- }
103307
- return { kind: "ok", args: [...head3, ...tail], ...found ? { confirmedBy: found } : {} };
103308
- }
103309
- __name(takeConfirmedBy, "takeConfirmedBy");
103745
+ return { kind: "ok", args: [...head3, ...tail], flags };
103746
+ }
103747
+ __name(takeGoalFlags, "takeGoalFlags");
103310
103748
  function goalRef(goal) {
103311
103749
  return { id: goal.id, revision: goal.revision };
103312
103750
  }
@@ -103327,8 +103765,14 @@ function renderGoal(title, goal, armed, defaultConfirmedBy = "model") {
103327
103765
  `Status: ${goal.phase}`,
103328
103766
  ...goal.confirmedBy === "record" || goal.confirmedBy === void 0 && defaultConfirmedBy === "record" ? ["Confirmed by: the record of the work"] : [],
103329
103767
  `Automatic continuation: ${armed ? "enabled" : "paused"}`,
103330
- `Automatic turns: ${goal.roundsAdmitted} / ${goal.maxGoalRounds}`,
103768
+ `Automatic turns: ${goal.roundsAdmitted}, up to ${goal.maxGoalRounds}`,
103769
+ `Tokens: ${goalTokensText(goal)}`,
103770
+ `Cost: ${goalCostText(goal)}`,
103771
+ ...goal.guards?.tokenBudget !== void 0 ? [`Token budget: ${goal.guards.tokenBudget.toLocaleString("en-US")}`] : [],
103772
+ ...goal.guards?.checkInEvery ? [`Check-in: every ${goal.guards.checkInEvery} automatic turns`] : [],
103773
+ ...goal.pauseReason ? [`Paused: ${goal.pauseReason.message}`] : [],
103331
103774
  ...goal.blockedReason ? [`Blocker: ${goal.blockedReason.code}: ${goal.blockedReason.message}`] : [],
103775
+ ...goal.missing && goal.missing.length > 0 ? [`Still missing: ${goal.missing.join("; ")}`] : [],
103332
103776
  `Objective: ${goal.objective}`,
103333
103777
  "",
103334
103778
  `Commands: ${goalCommands(goal, armed)}`
@@ -103353,19 +103797,21 @@ async function runGoalCommand(scope, args) {
103353
103797
  reason: "Goals need a durable session. This host did not supply one for the current command."
103354
103798
  };
103355
103799
  }
103356
- const flag2 = takeConfirmedBy(args);
103357
- if (flag2.kind === "invalid") {
103800
+ const taken = takeGoalFlags(args);
103801
+ if (taken.kind === "invalid") {
103358
103802
  return {
103359
103803
  kind: "refused",
103360
- reason: `--confirmed-by takes record or model.
103804
+ reason: taken.flag === "--confirmed-by" ? `--confirmed-by takes record or model.
103805
+ ${GOAL_USAGE}` : `${taken.flag} takes a whole number of at least 1.
103361
103806
  ${GOAL_USAGE}`
103362
103807
  };
103363
103808
  }
103364
- const command = parseGoalCommand(flag2.args);
103365
- if (flag2.confirmedBy !== void 0 && command.kind !== "create") {
103809
+ const flag2 = taken.flags;
103810
+ const command = parseGoalCommand(taken.args);
103811
+ if (Object.keys(flag2).length > 0 && command.kind !== "create") {
103366
103812
  return {
103367
103813
  kind: "refused",
103368
- reason: `--confirmed-by is chosen when a goal is set.
103814
+ reason: `Flags such as --confirmed-by, --token-budget and --max-rounds are chosen when a goal is set.
103369
103815
  ${GOAL_USAGE}`
103370
103816
  };
103371
103817
  }
@@ -103397,9 +103843,17 @@ ${GOAL_USAGE}`
103397
103843
  reason: `A goal is already ${current.phase}. Use /goal edit <objective> to change it or /goal clear before replacing it.`
103398
103844
  };
103399
103845
  }
103846
+ const defaults = scope.defaults;
103847
+ const guards = {
103848
+ ...defaults?.guards,
103849
+ ...flag2.tokenBudget !== void 0 ? { tokenBudget: flag2.tokenBudget } : {}
103850
+ };
103851
+ const maxGoalRounds2 = flag2.maxRounds ?? defaults?.maxGoalRounds;
103400
103852
  const created = await scope.store.createGoal({
103401
103853
  sessionId: scope.sessionId,
103402
103854
  objective: command.objective,
103855
+ ...maxGoalRounds2 !== void 0 ? { maxGoalRounds: maxGoalRounds2 } : {},
103856
+ ...Object.keys(guards).length > 0 ? { guards } : {},
103403
103857
  ...flag2.confirmedBy !== void 0 ? { confirmedBy: flag2.confirmedBy } : {}
103404
103858
  }, scope.tenantId);
103405
103859
  scope.activation?.arm(created);
@@ -103412,7 +103866,12 @@ ${GOAL_USAGE}`
103412
103866
  if (!current)
103413
103867
  return missingGoal("edit");
103414
103868
  if (current.phase === "complete") {
103415
- const replacement = await scope.store.createGoal({ sessionId: scope.sessionId, objective: command.objective }, scope.tenantId);
103869
+ const replacement = await scope.store.createGoal({
103870
+ sessionId: scope.sessionId,
103871
+ objective: command.objective,
103872
+ ...scope.defaults?.maxGoalRounds !== void 0 ? { maxGoalRounds: scope.defaults.maxGoalRounds } : {},
103873
+ ...scope.defaults?.guards ? { guards: scope.defaults.guards } : {}
103874
+ }, scope.tenantId);
103416
103875
  scope.activation?.arm(replacement);
103417
103876
  return {
103418
103877
  kind: "ack",
@@ -103448,7 +103907,11 @@ ${GOAL_USAGE}`
103448
103907
  message: renderScopedGoal("Goal resumed", current, scope)
103449
103908
  };
103450
103909
  }
103451
- const resumed = await scope.store.resumeGoal(scope.sessionId, scope.tenantId, goalRef(current));
103910
+ const resumed = await scope.store.resumeGoal(scope.sessionId, scope.tenantId, goalRef(current), {
103911
+ ...scope.defaults?.maxGoalRounds !== void 0 ? { maxGoalRounds: scope.defaults.maxGoalRounds } : {},
103912
+ ...scope.defaults?.guards?.tokenBudget !== void 0 ? { tokenBudget: scope.defaults.guards.tokenBudget } : {},
103913
+ ...scope.defaults?.guards ? { guards: scope.defaults.guards } : {}
103914
+ });
103452
103915
  scope.activation?.arm(resumed);
103453
103916
  return {
103454
103917
  kind: "ack",
@@ -103485,12 +103948,17 @@ function kernelHostCommands(options) {
103485
103948
  name: "goal",
103486
103949
  description: "Persist or inspect a completion goal for this conversation.",
103487
103950
  hint: GOAL_ARGUMENTS,
103951
+ // Setting, editing, pausing, resuming and clearing change what the
103952
+ // conversation does next; only reading the goal runs unasked.
103953
+ modelRun: "confirm",
103954
+ modelRunReads: ["", "status"],
103488
103955
  handler: /* @__PURE__ */ __name(async ({ args }) => await runGoalCommand(options.goal, args), "handler")
103489
103956
  },
103490
103957
  {
103491
103958
  name: "skills",
103492
103959
  description: "List the skills an operator may invoke.",
103493
103960
  hint: "name, description and policy for every operator-invocable skill",
103961
+ modelRun: "run",
103494
103962
  handler() {
103495
103963
  if (!options.skills) {
103496
103964
  return {
@@ -103513,6 +103981,7 @@ function kernelHostCommands(options) {
103513
103981
  name: "agents",
103514
103982
  description: "List the agents this turn may delegate to.",
103515
103983
  hint: "the roster, as the delegation tools see it",
103984
+ modelRun: "run",
103516
103985
  handler() {
103517
103986
  return {
103518
103987
  kind: "report",
@@ -122416,6 +122885,7 @@ var MODEL_FIRST_METHODS = /* @__PURE__ */ new Set([
122416
122885
  "supportsHostedWebSearchFor",
122417
122886
  "supportsImageInputFor",
122418
122887
  "reasoningEffortLevelsFor",
122888
+ "speedTiersFor",
122419
122889
  "reasoningEffortDefaultFor",
122420
122890
  "acceptsForcedToolChoiceFor",
122421
122891
  "effortLevelsFor",
@@ -150741,12 +151211,19 @@ export {
150741
151211
  driveObjective,
150742
151212
  MAX_GOAL_OBJECTIVE_CHARS,
150743
151213
  DEFAULT_MAX_GOAL_ROUNDS,
151214
+ DEFAULT_GOAL_STALL_ROUNDS,
151215
+ DEFAULT_GOAL_CHECK_IN_ROUNDS,
151216
+ goalCostText,
151217
+ goalTokensText,
151218
+ goalUsageSentence,
150744
151219
  StaleGoalError,
150745
151220
  GoalExistsError,
150746
151221
  GoalNotFoundError,
150747
151222
  GoalTransitionError,
150748
151223
  GoalSessionNotFoundError,
150749
151224
  GoalRoundLimitError,
151225
+ GoalCheckInError,
151226
+ GoalBudgetLimitError,
150750
151227
  InMemorySessionGoalStore,
150751
151228
  DiskSessionGoalStore,
150752
151229
  ReadOnlyCredentialProviderError,
@@ -150780,6 +151257,8 @@ export {
150780
151257
  recordSentence,
150781
151258
  decideGoalConfirmation,
150782
151259
  describeGoalEnding,
151260
+ GOAL_AUDIT_RUBRIC,
151261
+ parseGoalEvidence,
150783
151262
  GoalConfirmation,
150784
151263
  SESSION_GOAL_TOOL_NAMES,
150785
151264
  MIN_GOAL_BLOCK_ROUND,
@@ -151999,4 +152478,4 @@ export {
151999
152478
  WakeBudget,
152000
152479
  wakeBudgetFromEnv
152001
152480
  };
152002
- //# sourceMappingURL=chunk-DAL54OA6.js.map
152481
+ //# sourceMappingURL=chunk-X7QC2Q7P.js.map