@namzu/cli 53.2.0 → 53.2.2

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 (362) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-3FNB6MSI.js → acp-TKSVSWYT.js} +54 -54
  4. package/dist/chunks/{activity-command-IBOJOCRF.js → activity-command-4CXCVUYV.js} +12 -12
  5. package/dist/chunks/{add-LYBL3IC7.js → add-WKKTCDTH.js} +19 -19
  6. package/dist/chunks/{agent-LTLWJW3P.js → agent-FQKVDUJJ.js} +40 -40
  7. package/dist/chunks/agent-session-MWEOXEBO.js +77 -0
  8. package/dist/chunks/{apply-at-exit-7BF3KBU2.js → apply-at-exit-LXPT3PKI.js} +8 -8
  9. package/dist/chunks/{archive-FCPUCOYT.js → archive-VC435LJ6.js} +10 -10
  10. package/dist/chunks/{bin-main-AVPCWJHJ.js → bin-main-TCVL5RX5.js} +8 -8
  11. package/dist/chunks/{binding-OZCOSUYV.js → binding-VDQTJSCB.js} +3 -3
  12. package/dist/chunks/{browser-LR25NVO7.js → browser-2YGQPISK.js} +6 -6
  13. package/dist/chunks/{chat-PP7XU7US.js → chat-A2KET642.js} +15 -15
  14. package/dist/chunks/{chunk-SK3JQNO5.js → chunk-22KWTDG5.js} +2 -2
  15. package/dist/chunks/{chunk-JTEWIH66.js → chunk-2HRPWZXH.js} +272 -100
  16. package/dist/chunks/chunk-2HRPWZXH.js.map +6 -0
  17. package/dist/chunks/{chunk-PNEFIK4E.js → chunk-2QYNA362.js} +4 -4
  18. package/dist/chunks/{chunk-VQCP7LOK.js → chunk-2T6RCLVR.js} +3 -3
  19. package/dist/chunks/{chunk-KFWQSTT3.js → chunk-2VD65GMI.js} +2 -2
  20. package/dist/chunks/{chunk-MXJAJXE7.js → chunk-33WXZTFM.js} +2 -2
  21. package/dist/chunks/{chunk-JFLX34FA.js → chunk-3DGEG3E7.js} +3 -3
  22. package/dist/chunks/{chunk-SU5VBBRS.js → chunk-3KXR3Y2J.js} +4 -4
  23. package/dist/chunks/{chunk-XFCFWWFK.js → chunk-3LBLZFVU.js} +2 -2
  24. package/dist/chunks/{chunk-4VB264C5.js → chunk-3OYLROCT.js} +7 -7
  25. package/dist/chunks/{chunk-VQ5KK7YF.js → chunk-3U7XN7PQ.js} +6 -6
  26. package/dist/chunks/{chunk-T2CHZ6V7.js → chunk-474TFQNJ.js} +3 -3
  27. package/dist/chunks/{chunk-ZZK2BVEH.js → chunk-4MD3CTYK.js} +57 -42
  28. package/dist/chunks/chunk-4MD3CTYK.js.map +6 -0
  29. package/dist/chunks/{chunk-EQGE25MQ.js → chunk-4PQRXS6H.js} +6 -6
  30. package/dist/chunks/{chunk-LQZIENWB.js → chunk-4RIW2UHY.js} +7 -7
  31. package/dist/chunks/{chunk-VTS2SVX6.js → chunk-55PUSLIX.js} +2 -2
  32. package/dist/chunks/{chunk-P3LYPSD6.js → chunk-56OWNTQG.js} +5 -5
  33. package/dist/chunks/{chunk-ISHCON5Z.js → chunk-5WM45GQZ.js} +2 -2
  34. package/dist/chunks/{chunk-ZVLTZDC4.js → chunk-6TA477A2.js} +3 -3
  35. package/dist/chunks/{chunk-WDY7OHLQ.js → chunk-7C43LYSZ.js} +8628 -8568
  36. package/dist/chunks/chunk-7C43LYSZ.js.map +6 -0
  37. package/dist/chunks/{chunk-GXCOSOVM.js → chunk-7CDM74EE.js} +3 -3
  38. package/dist/chunks/{chunk-BFCUL4BW.js → chunk-A7GITM6V.js} +3 -3
  39. package/dist/chunks/{chunk-AO4A56EG.js → chunk-APSWZFQE.js} +6 -6
  40. package/dist/chunks/{chunk-L2Q7APTU.js → chunk-AQ45WE5B.js} +2 -2
  41. package/dist/chunks/{chunk-2O6LZGGG.js → chunk-AUNFCWUI.js} +2 -2
  42. package/dist/chunks/{chunk-IPAGLYU3.js → chunk-B73SNFPZ.js} +2 -2
  43. package/dist/chunks/{chunk-DSMBM5LQ.js → chunk-BEK5BN4C.js} +2 -2
  44. package/dist/chunks/{chunk-5HCZHDPA.js → chunk-CDDPBHJF.js} +2 -2
  45. package/dist/chunks/{chunk-Y4MKRX73.js → chunk-CO6TO4W2.js} +2 -2
  46. package/dist/chunks/{chunk-DZBCLR75.js → chunk-CX3FCE3I.js} +9 -9
  47. package/dist/chunks/{chunk-LWYW2DAK.js → chunk-CZOQR2XO.js} +5 -5
  48. package/dist/chunks/{chunk-JXJIKAAE.js → chunk-D724YXPA.js} +4 -4
  49. package/dist/chunks/{chunk-VI66HXJT.js → chunk-DBMCK637.js} +9 -9
  50. package/dist/chunks/{chunk-DEH4YIDN.js → chunk-EFMDKOKN.js} +4 -4
  51. package/dist/chunks/{chunk-4JBQTRTF.js → chunk-EKDZYOAP.js} +5 -5
  52. package/dist/chunks/{chunk-DEEK2FOC.js → chunk-F6YHQXPD.js} +2 -2
  53. package/dist/chunks/{chunk-YNBAVIQA.js → chunk-FDQGRVLS.js} +2 -2
  54. package/dist/chunks/{chunk-KNBFV3DC.js → chunk-FGUJWE3G.js} +5 -5
  55. package/dist/chunks/{chunk-TUEZKY7I.js → chunk-FQIENFVR.js} +4 -4
  56. package/dist/chunks/{chunk-NSGEVYJC.js → chunk-FX4E76MN.js} +3 -3
  57. package/dist/chunks/{chunk-FS7CUHOG.js → chunk-G4R3TD3X.js} +2 -2
  58. package/dist/chunks/{chunk-32LCSSAN.js → chunk-G5MDOSWI.js} +14 -14
  59. package/dist/chunks/{chunk-W5TE6NIA.js → chunk-GASNVGYM.js} +2 -2
  60. package/dist/chunks/{chunk-GFZFGTDZ.js → chunk-GG4IQFRX.js} +2 -2
  61. package/dist/chunks/{chunk-FRADQASS.js → chunk-GGL6DUNR.js} +2 -2
  62. package/dist/chunks/{chunk-TLTD26JG.js → chunk-GKPS2EFI.js} +2 -2
  63. package/dist/chunks/{chunk-72IJ3FQU.js → chunk-GMDCSWLE.js} +2 -2
  64. package/dist/chunks/{chunk-4VXS3UYL.js → chunk-HJSN3J2L.js} +2 -2
  65. package/dist/chunks/{chunk-EMXH2RJN.js → chunk-HU33D7IT.js} +3 -3
  66. package/dist/chunks/{chunk-5FEAC3G5.js → chunk-HVZIQA7Y.js} +9 -9
  67. package/dist/chunks/{chunk-SWH4CAIH.js → chunk-IJHU74VL.js} +38 -38
  68. package/dist/chunks/{chunk-ZI5FFFBJ.js → chunk-ISBHRP4B.js} +3 -3
  69. package/dist/chunks/{chunk-3Q42HHZM.js → chunk-JI5CATNL.js} +2 -2
  70. package/dist/chunks/{chunk-HJJNIG33.js → chunk-JVAZBDDY.js} +2 -2
  71. package/dist/chunks/{chunk-IERT7D34.js → chunk-KCHQLZEA.js} +3 -3
  72. package/dist/chunks/{chunk-MKAQAKHE.js → chunk-KR6WVSTY.js} +2 -2
  73. package/dist/chunks/{chunk-YPLYAESJ.js → chunk-LXHNHGVP.js} +3 -3
  74. package/dist/chunks/{chunk-4KMFIIWV.js → chunk-MEUO6ZCV.js} +4 -4
  75. package/dist/chunks/{chunk-FAWY4LRG.js → chunk-MMBW56O6.js} +3 -3
  76. package/dist/chunks/{chunk-THOVK7I5.js → chunk-MQHTLBBQ.js} +6 -6
  77. package/dist/chunks/{chunk-D3JJE6VZ.js → chunk-NCDJECMF.js} +3 -3
  78. package/dist/chunks/{chunk-4NVFHP23.js → chunk-NXWTLMCO.js} +3 -3
  79. package/dist/chunks/{chunk-5OAKUXE3.js → chunk-O24GQWOS.js} +2 -2
  80. package/dist/chunks/{chunk-K3QEZ7D7.js → chunk-OHHBLPVC.js} +3 -3
  81. package/dist/chunks/{chunk-F2TXNDKC.js → chunk-OPD3PNNM.js} +3 -3
  82. package/dist/chunks/{chunk-MXR77LCX.js → chunk-ORNBQX7S.js} +2 -2
  83. package/dist/chunks/{chunk-QXKCTJWO.js → chunk-OVQSSXU5.js} +2 -2
  84. package/dist/chunks/{chunk-J6I6MCWR.js → chunk-OWR4OIXA.js} +2 -2
  85. package/dist/chunks/{chunk-YIZXVNUY.js → chunk-PMPKCDHC.js} +3 -3
  86. package/dist/chunks/{chunk-VBRCNXMM.js → chunk-POV6IQJT.js} +4 -4
  87. package/dist/chunks/{chunk-PTPVAPCA.js → chunk-QLDPZEX5.js} +3 -3
  88. package/dist/chunks/{chunk-WV45Z5QQ.js → chunk-QMH5BX3D.js} +2 -2
  89. package/dist/chunks/{chunk-CKWDYYBE.js → chunk-QNNZ4GND.js} +3 -3
  90. package/dist/chunks/{chunk-YDGUEMBB.js → chunk-SCEU2YVG.js} +4 -4
  91. package/dist/chunks/{chunk-FK6WJQ5T.js → chunk-THG76C3T.js} +5 -5
  92. package/dist/chunks/{chunk-O4GHSR2X.js → chunk-TXUKNDZD.js} +2 -2
  93. package/dist/chunks/{chunk-TIMEEDY6.js → chunk-U6ON2ZNN.js} +19 -19
  94. package/dist/chunks/{chunk-LHZ632YK.js → chunk-UZF4QI4V.js} +5 -5
  95. package/dist/chunks/{chunk-ZIRQSGOG.js → chunk-VEC2DNN6.js} +4 -4
  96. package/dist/chunks/{chunk-TE4MIRMA.js → chunk-VH7JHYZJ.js} +5 -5
  97. package/dist/chunks/{chunk-ZH5MQMMF.js → chunk-VJ34BHLH.js} +10 -10
  98. package/dist/chunks/{chunk-XGS5WUCQ.js → chunk-VJVY6JZL.js} +12 -12
  99. package/dist/chunks/{chunk-X44EPHHA.js → chunk-VKUDU6IH.js} +2 -2
  100. package/dist/chunks/{chunk-6SHOR62K.js → chunk-VQ6IQ7EA.js} +3 -3
  101. package/dist/chunks/{chunk-IBPN346S.js → chunk-VQ6UEBFB.js} +2 -2
  102. package/dist/chunks/{chunk-CSBKGTBA.js → chunk-VS72UXVO.js} +4 -4
  103. package/dist/chunks/{chunk-2KNLSJFS.js → chunk-WHSBPWGO.js} +2 -2
  104. package/dist/chunks/{chunk-3WTIGIDA.js → chunk-WOIZGI7M.js} +4 -4
  105. package/dist/chunks/{chunk-U3IK5VKD.js → chunk-XAYZT3ZU.js} +3 -3
  106. package/dist/chunks/{chunk-5YNAPIUZ.js → chunk-XGH4FG36.js} +3 -3
  107. package/dist/chunks/{chunk-4Q4J3KDG.js → chunk-XTDLTMRY.js} +4 -4
  108. package/dist/chunks/{chunk-UUQY5P7K.js → chunk-XWPFWPJ2.js} +10 -10
  109. package/dist/chunks/{chunk-YCJOAIDG.js → chunk-YJRLBZ6I.js} +4 -4
  110. package/dist/chunks/{chunk-EC2F3CWT.js → chunk-YPVP5NTQ.js} +3 -3
  111. package/dist/chunks/{chunk-KHQAU33M.js → chunk-ZRJ42CZZ.js} +2 -2
  112. package/dist/chunks/{chunk-HUDP4HTK.js → chunk-ZZHAXZS7.js} +3 -3
  113. package/dist/chunks/{cli-runtime-V2FI7PIQ.js → cli-runtime-YJ4JREPJ.js} +12 -12
  114. package/dist/chunks/{commands-R2LZBXLK.js → commands-YPPEQTQB.js} +5 -5
  115. package/dist/chunks/{cost-PQWWLMOO.js → cost-5VARNZUM.js} +3 -3
  116. package/dist/chunks/{crash-report-MY27ZDU6.js → crash-report-EGE7NGTH.js} +6 -6
  117. package/dist/chunks/{dist-3HCAPKP5.js → dist-6YHBRQ2D.js} +2 -2
  118. package/dist/chunks/{dist-PH7MWV7K.js → dist-FOG4COQN.js} +2 -2
  119. package/dist/chunks/{dist-TIMUM4OR.js → dist-JJD2TQED.js} +2 -2
  120. package/dist/chunks/{dist-7A7PB34A.js → dist-L5BAAO6B.js} +11 -2
  121. package/dist/chunks/{dist-7A7PB34A.js.map → dist-L5BAAO6B.js.map} +1 -1
  122. package/dist/chunks/{dist-Y4Q4SXRE.js → dist-RW6SV64M.js} +181 -11
  123. package/dist/chunks/dist-RW6SV64M.js.map +6 -0
  124. package/dist/chunks/{dist-MT3MTMRF.js → dist-TAZGUABO.js} +10 -2
  125. package/dist/chunks/{dist-4RNVO224.js → dist-XBLTAEAJ.js} +31 -2
  126. package/dist/chunks/dist-XBLTAEAJ.js.map +6 -0
  127. package/dist/chunks/{dist-MSFQTEPK.js → dist-XM4UQIQQ.js} +2 -2
  128. package/dist/chunks/{doctor-JRVQJERE.js → doctor-YVEQH55W.js} +36 -36
  129. package/dist/chunks/{drain-YOE55I26.js → drain-5XTQDVV6.js} +9 -9
  130. package/dist/chunks/{entry-QAXRBCG3.js → entry-XTTLD6DE.js} +6 -6
  131. package/dist/chunks/{eval-UPNYQIHO.js → eval-VC445DR6.js} +7 -7
  132. package/dist/chunks/{exec-LLOKYQZY.js → exec-FPKXV4HA.js} +38 -38
  133. package/dist/chunks/{home-7TSSDRFT.js → home-52JRM65A.js} +3 -3
  134. package/dist/chunks/{hooks-JNM3P24H.js → hooks-6KHV6QJN.js} +16 -16
  135. package/dist/chunks/{hooks-report-GGRTQH23.js → hooks-report-3LZ7BKBR.js} +15 -15
  136. package/dist/chunks/{host-M2CYP3TP.js → host-2K6MPYAT.js} +10 -10
  137. package/dist/chunks/{host-queries-L7P5FQ36.js → host-queries-XOOUNCMJ.js} +15 -15
  138. package/dist/chunks/{learn-CBIMGXXS.js → learn-JRLMSGQU.js} +11 -11
  139. package/dist/chunks/{learn-builtin-UHGQ6CNQ.js → learn-builtin-GH4BXJTR.js} +14 -14
  140. package/dist/chunks/{lifecycle-NJGOR77O.js → lifecycle-2J2KZE24.js} +28 -28
  141. package/dist/chunks/{list-QZUWOS4I.js → list-GBRI4NQS.js} +12 -12
  142. package/dist/chunks/{live-LHKUQFEO.js → live-L74ORWB5.js} +35 -35
  143. package/dist/chunks/{load-LF7GZYTP.js → load-FVBVG5CY.js} +7 -7
  144. package/dist/chunks/{login-F4NOOGD5.js → login-HTTBNWTE.js} +12 -12
  145. package/dist/chunks/{logs-6CJCV6YU.js → logs-V7BWNF35.js} +4 -4
  146. package/dist/chunks/{mcp-C7FQLLXL.js → mcp-WAVN5NVW.js} +20 -20
  147. package/dist/chunks/{message-command-BJPPVBGT.js → message-command-TV6UMZZA.js} +46 -46
  148. package/dist/chunks/{open-GLWFBW4C.js → open-EKL2SYD6.js} +8 -8
  149. package/dist/chunks/{operator-tools-KQV2T5UU.js → operator-tools-HKPDJMDN.js} +13 -13
  150. package/dist/chunks/{output-schema-XXKTMSU6.js → output-schema-3SV7FA3E.js} +3 -3
  151. package/dist/chunks/{pal-4OZ7KPSC.js → pal-IBKB3TXW.js} +15 -15
  152. package/dist/chunks/{peers-SMOALKZW.js → peers-46C23FIF.js} +6 -6
  153. package/dist/chunks/{peers-4DMT2KZ2.js → peers-RV5PLRXJ.js} +9 -9
  154. package/dist/chunks/{plugin-IDW4AYIK.js → plugin-WMY4UJRI.js} +15 -15
  155. package/dist/chunks/{providers-7HLI5PWI.js → providers-V3SBLB5L.js} +10 -10
  156. package/dist/chunks/{pty-SQBYCAX4.js → pty-T4FX7YOE.js} +3 -3
  157. package/dist/chunks/resume-VT5LMJPR.js +23 -0
  158. package/dist/chunks/{resume-command-VCMPAWTN.js → resume-command-6CHNMALJ.js} +4 -4
  159. package/dist/chunks/{running-DR4MSZ7B.js → running-I42NAMXS.js} +5 -5
  160. package/dist/chunks/{schedule-W3QPDJRS.js → schedule-D7VCG6NS.js} +8 -8
  161. package/dist/chunks/{send-QDBFAZ5P.js → send-QQ7OTQ2C.js} +15 -15
  162. package/dist/chunks/{send-person-O5OJ7KHD.js → send-person-5XI6MKZO.js} +13 -13
  163. package/dist/chunks/{service-5Z47V5KC.js → service-UOLU7XBM.js} +28 -28
  164. package/dist/chunks/{skills-XYT6UUTP.js → skills-RHUMEGQP.js} +13 -13
  165. package/dist/chunks/{start-check-OKCRZ67I.js → start-check-2PBRVXD3.js} +2 -2
  166. package/dist/chunks/{startup-failure-N3RO73Z4.js → startup-failure-P34LGDGH.js} +2 -2
  167. package/dist/chunks/{state-7CLHPA4P.js → state-UHPX7NKN.js} +2 -2
  168. package/dist/chunks/{store-ZDFRYDWS.js → store-2743JWSK.js} +10 -10
  169. package/dist/chunks/{store-GA3I7BMG.js → store-33CI3HZM.js} +4 -4
  170. package/dist/chunks/{store-CNEKBGKD.js → store-4SB5GOD3.js} +6 -6
  171. package/dist/chunks/{store-YFAH5XGW.js → store-5ZPIJRWU.js} +3 -3
  172. package/dist/chunks/{tui-T6VPVMEV.js → tui-F3C3HZND.js} +75 -75
  173. package/dist/chunks/{upgrade-SW474CXN.js → upgrade-RXJ5JVE5.js} +9 -9
  174. package/dist/chunks/{watch-OIYLZVDF.js → watch-BM7XNQGC.js} +78 -78
  175. package/dist/chunks/{workspaces-YQW2E6PE.js → workspaces-WQLLUBQV.js} +16 -16
  176. package/dist/chunks/{worktree-ZMMQI2Z5.js → worktree-4N5Y2P5N.js} +19 -19
  177. package/dist/index.js +36 -36
  178. package/dist/integrations/small-model/side-model.d.ts.map +1 -1
  179. package/dist/integrations/subagents/activity.d.ts +17 -0
  180. package/dist/integrations/subagents/activity.d.ts.map +1 -1
  181. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  182. package/dist/tui/AgentExplorer.d.ts +10 -1
  183. package/dist/tui/AgentExplorer.d.ts.map +1 -1
  184. package/dist/tui/App.d.ts +2 -1
  185. package/dist/tui/App.d.ts.map +1 -1
  186. package/dist/tui/agent-tokens.d.ts +31 -0
  187. package/dist/tui/agent-tokens.d.ts.map +1 -0
  188. package/dist/tui/agent-transcript-rows.d.ts +1 -1
  189. package/dist/tui/agent-transcript-rows.d.ts.map +1 -1
  190. package/dist/tui/restored-rows.d.ts +2 -1
  191. package/dist/tui/restored-rows.d.ts.map +1 -1
  192. package/dist/tui/workflow-runs.d.ts.map +1 -1
  193. package/package.json +6 -6
  194. package/dist/chunks/agent-session-BD2AHK5S.js +0 -77
  195. package/dist/chunks/chunk-JTEWIH66.js.map +0 -6
  196. package/dist/chunks/chunk-WDY7OHLQ.js.map +0 -6
  197. package/dist/chunks/chunk-ZZK2BVEH.js.map +0 -6
  198. package/dist/chunks/dist-4RNVO224.js.map +0 -6
  199. package/dist/chunks/dist-Y4Q4SXRE.js.map +0 -6
  200. package/dist/chunks/resume-2HBHZF54.js +0 -23
  201. /package/dist/chunks/{acp-3FNB6MSI.js.map → acp-TKSVSWYT.js.map} +0 -0
  202. /package/dist/chunks/{activity-command-IBOJOCRF.js.map → activity-command-4CXCVUYV.js.map} +0 -0
  203. /package/dist/chunks/{add-LYBL3IC7.js.map → add-WKKTCDTH.js.map} +0 -0
  204. /package/dist/chunks/{agent-LTLWJW3P.js.map → agent-FQKVDUJJ.js.map} +0 -0
  205. /package/dist/chunks/{agent-session-BD2AHK5S.js.map → agent-session-MWEOXEBO.js.map} +0 -0
  206. /package/dist/chunks/{apply-at-exit-7BF3KBU2.js.map → apply-at-exit-LXPT3PKI.js.map} +0 -0
  207. /package/dist/chunks/{archive-FCPUCOYT.js.map → archive-VC435LJ6.js.map} +0 -0
  208. /package/dist/chunks/{bin-main-AVPCWJHJ.js.map → bin-main-TCVL5RX5.js.map} +0 -0
  209. /package/dist/chunks/{binding-OZCOSUYV.js.map → binding-VDQTJSCB.js.map} +0 -0
  210. /package/dist/chunks/{browser-LR25NVO7.js.map → browser-2YGQPISK.js.map} +0 -0
  211. /package/dist/chunks/{chat-PP7XU7US.js.map → chat-A2KET642.js.map} +0 -0
  212. /package/dist/chunks/{chunk-SK3JQNO5.js.map → chunk-22KWTDG5.js.map} +0 -0
  213. /package/dist/chunks/{chunk-PNEFIK4E.js.map → chunk-2QYNA362.js.map} +0 -0
  214. /package/dist/chunks/{chunk-VQCP7LOK.js.map → chunk-2T6RCLVR.js.map} +0 -0
  215. /package/dist/chunks/{chunk-KFWQSTT3.js.map → chunk-2VD65GMI.js.map} +0 -0
  216. /package/dist/chunks/{chunk-MXJAJXE7.js.map → chunk-33WXZTFM.js.map} +0 -0
  217. /package/dist/chunks/{chunk-JFLX34FA.js.map → chunk-3DGEG3E7.js.map} +0 -0
  218. /package/dist/chunks/{chunk-SU5VBBRS.js.map → chunk-3KXR3Y2J.js.map} +0 -0
  219. /package/dist/chunks/{chunk-XFCFWWFK.js.map → chunk-3LBLZFVU.js.map} +0 -0
  220. /package/dist/chunks/{chunk-4VB264C5.js.map → chunk-3OYLROCT.js.map} +0 -0
  221. /package/dist/chunks/{chunk-VQ5KK7YF.js.map → chunk-3U7XN7PQ.js.map} +0 -0
  222. /package/dist/chunks/{chunk-T2CHZ6V7.js.map → chunk-474TFQNJ.js.map} +0 -0
  223. /package/dist/chunks/{chunk-EQGE25MQ.js.map → chunk-4PQRXS6H.js.map} +0 -0
  224. /package/dist/chunks/{chunk-LQZIENWB.js.map → chunk-4RIW2UHY.js.map} +0 -0
  225. /package/dist/chunks/{chunk-VTS2SVX6.js.map → chunk-55PUSLIX.js.map} +0 -0
  226. /package/dist/chunks/{chunk-P3LYPSD6.js.map → chunk-56OWNTQG.js.map} +0 -0
  227. /package/dist/chunks/{chunk-ISHCON5Z.js.map → chunk-5WM45GQZ.js.map} +0 -0
  228. /package/dist/chunks/{chunk-ZVLTZDC4.js.map → chunk-6TA477A2.js.map} +0 -0
  229. /package/dist/chunks/{chunk-GXCOSOVM.js.map → chunk-7CDM74EE.js.map} +0 -0
  230. /package/dist/chunks/{chunk-BFCUL4BW.js.map → chunk-A7GITM6V.js.map} +0 -0
  231. /package/dist/chunks/{chunk-AO4A56EG.js.map → chunk-APSWZFQE.js.map} +0 -0
  232. /package/dist/chunks/{chunk-L2Q7APTU.js.map → chunk-AQ45WE5B.js.map} +0 -0
  233. /package/dist/chunks/{chunk-2O6LZGGG.js.map → chunk-AUNFCWUI.js.map} +0 -0
  234. /package/dist/chunks/{chunk-IPAGLYU3.js.map → chunk-B73SNFPZ.js.map} +0 -0
  235. /package/dist/chunks/{chunk-DSMBM5LQ.js.map → chunk-BEK5BN4C.js.map} +0 -0
  236. /package/dist/chunks/{chunk-5HCZHDPA.js.map → chunk-CDDPBHJF.js.map} +0 -0
  237. /package/dist/chunks/{chunk-Y4MKRX73.js.map → chunk-CO6TO4W2.js.map} +0 -0
  238. /package/dist/chunks/{chunk-DZBCLR75.js.map → chunk-CX3FCE3I.js.map} +0 -0
  239. /package/dist/chunks/{chunk-LWYW2DAK.js.map → chunk-CZOQR2XO.js.map} +0 -0
  240. /package/dist/chunks/{chunk-JXJIKAAE.js.map → chunk-D724YXPA.js.map} +0 -0
  241. /package/dist/chunks/{chunk-VI66HXJT.js.map → chunk-DBMCK637.js.map} +0 -0
  242. /package/dist/chunks/{chunk-DEH4YIDN.js.map → chunk-EFMDKOKN.js.map} +0 -0
  243. /package/dist/chunks/{chunk-4JBQTRTF.js.map → chunk-EKDZYOAP.js.map} +0 -0
  244. /package/dist/chunks/{chunk-DEEK2FOC.js.map → chunk-F6YHQXPD.js.map} +0 -0
  245. /package/dist/chunks/{chunk-YNBAVIQA.js.map → chunk-FDQGRVLS.js.map} +0 -0
  246. /package/dist/chunks/{chunk-KNBFV3DC.js.map → chunk-FGUJWE3G.js.map} +0 -0
  247. /package/dist/chunks/{chunk-TUEZKY7I.js.map → chunk-FQIENFVR.js.map} +0 -0
  248. /package/dist/chunks/{chunk-NSGEVYJC.js.map → chunk-FX4E76MN.js.map} +0 -0
  249. /package/dist/chunks/{chunk-FS7CUHOG.js.map → chunk-G4R3TD3X.js.map} +0 -0
  250. /package/dist/chunks/{chunk-32LCSSAN.js.map → chunk-G5MDOSWI.js.map} +0 -0
  251. /package/dist/chunks/{chunk-W5TE6NIA.js.map → chunk-GASNVGYM.js.map} +0 -0
  252. /package/dist/chunks/{chunk-GFZFGTDZ.js.map → chunk-GG4IQFRX.js.map} +0 -0
  253. /package/dist/chunks/{chunk-FRADQASS.js.map → chunk-GGL6DUNR.js.map} +0 -0
  254. /package/dist/chunks/{chunk-TLTD26JG.js.map → chunk-GKPS2EFI.js.map} +0 -0
  255. /package/dist/chunks/{chunk-72IJ3FQU.js.map → chunk-GMDCSWLE.js.map} +0 -0
  256. /package/dist/chunks/{chunk-4VXS3UYL.js.map → chunk-HJSN3J2L.js.map} +0 -0
  257. /package/dist/chunks/{chunk-EMXH2RJN.js.map → chunk-HU33D7IT.js.map} +0 -0
  258. /package/dist/chunks/{chunk-5FEAC3G5.js.map → chunk-HVZIQA7Y.js.map} +0 -0
  259. /package/dist/chunks/{chunk-SWH4CAIH.js.map → chunk-IJHU74VL.js.map} +0 -0
  260. /package/dist/chunks/{chunk-ZI5FFFBJ.js.map → chunk-ISBHRP4B.js.map} +0 -0
  261. /package/dist/chunks/{chunk-3Q42HHZM.js.map → chunk-JI5CATNL.js.map} +0 -0
  262. /package/dist/chunks/{chunk-HJJNIG33.js.map → chunk-JVAZBDDY.js.map} +0 -0
  263. /package/dist/chunks/{chunk-IERT7D34.js.map → chunk-KCHQLZEA.js.map} +0 -0
  264. /package/dist/chunks/{chunk-MKAQAKHE.js.map → chunk-KR6WVSTY.js.map} +0 -0
  265. /package/dist/chunks/{chunk-YPLYAESJ.js.map → chunk-LXHNHGVP.js.map} +0 -0
  266. /package/dist/chunks/{chunk-4KMFIIWV.js.map → chunk-MEUO6ZCV.js.map} +0 -0
  267. /package/dist/chunks/{chunk-FAWY4LRG.js.map → chunk-MMBW56O6.js.map} +0 -0
  268. /package/dist/chunks/{chunk-THOVK7I5.js.map → chunk-MQHTLBBQ.js.map} +0 -0
  269. /package/dist/chunks/{chunk-D3JJE6VZ.js.map → chunk-NCDJECMF.js.map} +0 -0
  270. /package/dist/chunks/{chunk-4NVFHP23.js.map → chunk-NXWTLMCO.js.map} +0 -0
  271. /package/dist/chunks/{chunk-5OAKUXE3.js.map → chunk-O24GQWOS.js.map} +0 -0
  272. /package/dist/chunks/{chunk-K3QEZ7D7.js.map → chunk-OHHBLPVC.js.map} +0 -0
  273. /package/dist/chunks/{chunk-F2TXNDKC.js.map → chunk-OPD3PNNM.js.map} +0 -0
  274. /package/dist/chunks/{chunk-MXR77LCX.js.map → chunk-ORNBQX7S.js.map} +0 -0
  275. /package/dist/chunks/{chunk-QXKCTJWO.js.map → chunk-OVQSSXU5.js.map} +0 -0
  276. /package/dist/chunks/{chunk-J6I6MCWR.js.map → chunk-OWR4OIXA.js.map} +0 -0
  277. /package/dist/chunks/{chunk-YIZXVNUY.js.map → chunk-PMPKCDHC.js.map} +0 -0
  278. /package/dist/chunks/{chunk-VBRCNXMM.js.map → chunk-POV6IQJT.js.map} +0 -0
  279. /package/dist/chunks/{chunk-PTPVAPCA.js.map → chunk-QLDPZEX5.js.map} +0 -0
  280. /package/dist/chunks/{chunk-WV45Z5QQ.js.map → chunk-QMH5BX3D.js.map} +0 -0
  281. /package/dist/chunks/{chunk-CKWDYYBE.js.map → chunk-QNNZ4GND.js.map} +0 -0
  282. /package/dist/chunks/{chunk-YDGUEMBB.js.map → chunk-SCEU2YVG.js.map} +0 -0
  283. /package/dist/chunks/{chunk-FK6WJQ5T.js.map → chunk-THG76C3T.js.map} +0 -0
  284. /package/dist/chunks/{chunk-O4GHSR2X.js.map → chunk-TXUKNDZD.js.map} +0 -0
  285. /package/dist/chunks/{chunk-TIMEEDY6.js.map → chunk-U6ON2ZNN.js.map} +0 -0
  286. /package/dist/chunks/{chunk-LHZ632YK.js.map → chunk-UZF4QI4V.js.map} +0 -0
  287. /package/dist/chunks/{chunk-ZIRQSGOG.js.map → chunk-VEC2DNN6.js.map} +0 -0
  288. /package/dist/chunks/{chunk-TE4MIRMA.js.map → chunk-VH7JHYZJ.js.map} +0 -0
  289. /package/dist/chunks/{chunk-ZH5MQMMF.js.map → chunk-VJ34BHLH.js.map} +0 -0
  290. /package/dist/chunks/{chunk-XGS5WUCQ.js.map → chunk-VJVY6JZL.js.map} +0 -0
  291. /package/dist/chunks/{chunk-X44EPHHA.js.map → chunk-VKUDU6IH.js.map} +0 -0
  292. /package/dist/chunks/{chunk-6SHOR62K.js.map → chunk-VQ6IQ7EA.js.map} +0 -0
  293. /package/dist/chunks/{chunk-IBPN346S.js.map → chunk-VQ6UEBFB.js.map} +0 -0
  294. /package/dist/chunks/{chunk-CSBKGTBA.js.map → chunk-VS72UXVO.js.map} +0 -0
  295. /package/dist/chunks/{chunk-2KNLSJFS.js.map → chunk-WHSBPWGO.js.map} +0 -0
  296. /package/dist/chunks/{chunk-3WTIGIDA.js.map → chunk-WOIZGI7M.js.map} +0 -0
  297. /package/dist/chunks/{chunk-U3IK5VKD.js.map → chunk-XAYZT3ZU.js.map} +0 -0
  298. /package/dist/chunks/{chunk-5YNAPIUZ.js.map → chunk-XGH4FG36.js.map} +0 -0
  299. /package/dist/chunks/{chunk-4Q4J3KDG.js.map → chunk-XTDLTMRY.js.map} +0 -0
  300. /package/dist/chunks/{chunk-UUQY5P7K.js.map → chunk-XWPFWPJ2.js.map} +0 -0
  301. /package/dist/chunks/{chunk-YCJOAIDG.js.map → chunk-YJRLBZ6I.js.map} +0 -0
  302. /package/dist/chunks/{chunk-EC2F3CWT.js.map → chunk-YPVP5NTQ.js.map} +0 -0
  303. /package/dist/chunks/{chunk-KHQAU33M.js.map → chunk-ZRJ42CZZ.js.map} +0 -0
  304. /package/dist/chunks/{chunk-HUDP4HTK.js.map → chunk-ZZHAXZS7.js.map} +0 -0
  305. /package/dist/chunks/{cli-runtime-V2FI7PIQ.js.map → cli-runtime-YJ4JREPJ.js.map} +0 -0
  306. /package/dist/chunks/{commands-R2LZBXLK.js.map → commands-YPPEQTQB.js.map} +0 -0
  307. /package/dist/chunks/{cost-PQWWLMOO.js.map → cost-5VARNZUM.js.map} +0 -0
  308. /package/dist/chunks/{crash-report-MY27ZDU6.js.map → crash-report-EGE7NGTH.js.map} +0 -0
  309. /package/dist/chunks/{dist-3HCAPKP5.js.map → dist-6YHBRQ2D.js.map} +0 -0
  310. /package/dist/chunks/{dist-PH7MWV7K.js.map → dist-FOG4COQN.js.map} +0 -0
  311. /package/dist/chunks/{dist-TIMUM4OR.js.map → dist-JJD2TQED.js.map} +0 -0
  312. /package/dist/chunks/{dist-MT3MTMRF.js.map → dist-TAZGUABO.js.map} +0 -0
  313. /package/dist/chunks/{dist-MSFQTEPK.js.map → dist-XM4UQIQQ.js.map} +0 -0
  314. /package/dist/chunks/{doctor-JRVQJERE.js.map → doctor-YVEQH55W.js.map} +0 -0
  315. /package/dist/chunks/{drain-YOE55I26.js.map → drain-5XTQDVV6.js.map} +0 -0
  316. /package/dist/chunks/{entry-QAXRBCG3.js.map → entry-XTTLD6DE.js.map} +0 -0
  317. /package/dist/chunks/{eval-UPNYQIHO.js.map → eval-VC445DR6.js.map} +0 -0
  318. /package/dist/chunks/{exec-LLOKYQZY.js.map → exec-FPKXV4HA.js.map} +0 -0
  319. /package/dist/chunks/{home-7TSSDRFT.js.map → home-52JRM65A.js.map} +0 -0
  320. /package/dist/chunks/{hooks-JNM3P24H.js.map → hooks-6KHV6QJN.js.map} +0 -0
  321. /package/dist/chunks/{hooks-report-GGRTQH23.js.map → hooks-report-3LZ7BKBR.js.map} +0 -0
  322. /package/dist/chunks/{host-M2CYP3TP.js.map → host-2K6MPYAT.js.map} +0 -0
  323. /package/dist/chunks/{host-queries-L7P5FQ36.js.map → host-queries-XOOUNCMJ.js.map} +0 -0
  324. /package/dist/chunks/{learn-CBIMGXXS.js.map → learn-JRLMSGQU.js.map} +0 -0
  325. /package/dist/chunks/{learn-builtin-UHGQ6CNQ.js.map → learn-builtin-GH4BXJTR.js.map} +0 -0
  326. /package/dist/chunks/{lifecycle-NJGOR77O.js.map → lifecycle-2J2KZE24.js.map} +0 -0
  327. /package/dist/chunks/{list-QZUWOS4I.js.map → list-GBRI4NQS.js.map} +0 -0
  328. /package/dist/chunks/{live-LHKUQFEO.js.map → live-L74ORWB5.js.map} +0 -0
  329. /package/dist/chunks/{load-LF7GZYTP.js.map → load-FVBVG5CY.js.map} +0 -0
  330. /package/dist/chunks/{login-F4NOOGD5.js.map → login-HTTBNWTE.js.map} +0 -0
  331. /package/dist/chunks/{logs-6CJCV6YU.js.map → logs-V7BWNF35.js.map} +0 -0
  332. /package/dist/chunks/{mcp-C7FQLLXL.js.map → mcp-WAVN5NVW.js.map} +0 -0
  333. /package/dist/chunks/{message-command-BJPPVBGT.js.map → message-command-TV6UMZZA.js.map} +0 -0
  334. /package/dist/chunks/{open-GLWFBW4C.js.map → open-EKL2SYD6.js.map} +0 -0
  335. /package/dist/chunks/{operator-tools-KQV2T5UU.js.map → operator-tools-HKPDJMDN.js.map} +0 -0
  336. /package/dist/chunks/{output-schema-XXKTMSU6.js.map → output-schema-3SV7FA3E.js.map} +0 -0
  337. /package/dist/chunks/{pal-4OZ7KPSC.js.map → pal-IBKB3TXW.js.map} +0 -0
  338. /package/dist/chunks/{peers-SMOALKZW.js.map → peers-46C23FIF.js.map} +0 -0
  339. /package/dist/chunks/{peers-4DMT2KZ2.js.map → peers-RV5PLRXJ.js.map} +0 -0
  340. /package/dist/chunks/{plugin-IDW4AYIK.js.map → plugin-WMY4UJRI.js.map} +0 -0
  341. /package/dist/chunks/{providers-7HLI5PWI.js.map → providers-V3SBLB5L.js.map} +0 -0
  342. /package/dist/chunks/{pty-SQBYCAX4.js.map → pty-T4FX7YOE.js.map} +0 -0
  343. /package/dist/chunks/{resume-2HBHZF54.js.map → resume-VT5LMJPR.js.map} +0 -0
  344. /package/dist/chunks/{resume-command-VCMPAWTN.js.map → resume-command-6CHNMALJ.js.map} +0 -0
  345. /package/dist/chunks/{running-DR4MSZ7B.js.map → running-I42NAMXS.js.map} +0 -0
  346. /package/dist/chunks/{schedule-W3QPDJRS.js.map → schedule-D7VCG6NS.js.map} +0 -0
  347. /package/dist/chunks/{send-QDBFAZ5P.js.map → send-QQ7OTQ2C.js.map} +0 -0
  348. /package/dist/chunks/{send-person-O5OJ7KHD.js.map → send-person-5XI6MKZO.js.map} +0 -0
  349. /package/dist/chunks/{service-5Z47V5KC.js.map → service-UOLU7XBM.js.map} +0 -0
  350. /package/dist/chunks/{skills-XYT6UUTP.js.map → skills-RHUMEGQP.js.map} +0 -0
  351. /package/dist/chunks/{start-check-OKCRZ67I.js.map → start-check-2PBRVXD3.js.map} +0 -0
  352. /package/dist/chunks/{startup-failure-N3RO73Z4.js.map → startup-failure-P34LGDGH.js.map} +0 -0
  353. /package/dist/chunks/{state-7CLHPA4P.js.map → state-UHPX7NKN.js.map} +0 -0
  354. /package/dist/chunks/{store-CNEKBGKD.js.map → store-2743JWSK.js.map} +0 -0
  355. /package/dist/chunks/{store-GA3I7BMG.js.map → store-33CI3HZM.js.map} +0 -0
  356. /package/dist/chunks/{store-YFAH5XGW.js.map → store-4SB5GOD3.js.map} +0 -0
  357. /package/dist/chunks/{store-ZDFRYDWS.js.map → store-5ZPIJRWU.js.map} +0 -0
  358. /package/dist/chunks/{tui-T6VPVMEV.js.map → tui-F3C3HZND.js.map} +0 -0
  359. /package/dist/chunks/{upgrade-SW474CXN.js.map → upgrade-RXJ5JVE5.js.map} +0 -0
  360. /package/dist/chunks/{watch-OIYLZVDF.js.map → watch-BM7XNQGC.js.map} +0 -0
  361. /package/dist/chunks/{workspaces-YQW2E6PE.js.map → workspaces-WQLLUBQV.js.map} +0 -0
  362. /package/dist/chunks/{worktree-ZMMQI2Z5.js.map → worktree-4N5Y2P5N.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 = "64.2.0";
328
+ var VERSION = "64.4.0";
329
329
 
330
330
  // ../sdk/dist/runtime/harness-session/index.js
331
331
  import { posix, win32 } from "node:path";
@@ -31873,6 +31873,18 @@ function accumulateUnpricedCost(current, additionalUsage) {
31873
31873
  };
31874
31874
  }
31875
31875
  __name(accumulateUnpricedCost, "accumulateUnpricedCost");
31876
+ function accumulateReportedCost(current, reportedCostUsd) {
31877
+ return {
31878
+ totalCost: current.totalCost + reportedCostUsd,
31879
+ cacheDiscount: current.cacheDiscount,
31880
+ unpricedTokens: current.unpricedTokens
31881
+ };
31882
+ }
31883
+ __name(accumulateReportedCost, "accumulateReportedCost");
31884
+ function hasReportedCost(usage) {
31885
+ return Number.isFinite(usage.reportedCostUsd) && usage.reportedCostUsd >= 0;
31886
+ }
31887
+ __name(hasReportedCost, "hasReportedCost");
31876
31888
  function formatCost(usd) {
31877
31889
  if (usd === 0)
31878
31890
  return "$0.00";
@@ -32006,15 +32018,22 @@ var WINDOWS = [
32006
32018
  // (a fine-tune, a distill), and nothing says it keeps the parent's window.
32007
32019
  // Over-estimating ends a turn on a provider rejection; under-estimating
32008
32020
  // costs a summary. So an id not named here falls to the bare `deepseek`
32009
- // row below, the 64k the older ids (chat, reasoner, R1 distills) had. The
32010
- // three ids are matched whole (see `DEEPSEEK_ONE_MILLION_IDS`), never by
32021
+ // row below, the 64k the older ids (chat, reasoner, R1 distills) had. Listed
32022
+ // ids are matched whole (see `DEEPSEEK_ONE_MILLION_IDS`), never by
32011
32023
  // substring.
32012
32024
  ["deepseek", 64e3]
32013
32025
  ];
32014
32026
  var DEEPSEEK_ONE_MILLION_IDS = /* @__PURE__ */ new Set([
32015
32027
  "deepseek-v4-flash",
32016
32028
  "deepseek-v4-pro",
32017
- "deepseek-flash"
32029
+ "deepseek-flash",
32030
+ // The revisions and dated snapshots a gateway's model list names for the
32031
+ // same generation. Each is listed whole: a new revision is a new row here
32032
+ // (or is reported by the provider), never a prefix match.
32033
+ "deepseek-v4.1-flash",
32034
+ "deepseek-v4.1-flash-1017",
32035
+ "deepseek-v4-flash-0731",
32036
+ "deepseek-v4-pro-0813"
32018
32037
  ]);
32019
32038
  function bareModelName(id3) {
32020
32039
  const afterSlash = id3.slice(id3.lastIndexOf("/") + 1);
@@ -34280,7 +34299,7 @@ function withStreamIdleTimeout(provider, options) {
34280
34299
  supportsImageInputFor: /* @__PURE__ */ __name((model) => provider.supportsImageInputFor?.(model) ?? true, "supportsImageInputFor")
34281
34300
  } : {},
34282
34301
  ...provider.acceptsForcedToolChoiceFor ? {
34283
- acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking) => provider.acceptsForcedToolChoiceFor?.(model, thinking) ?? true, "acceptsForcedToolChoiceFor")
34302
+ acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ?? true, "acceptsForcedToolChoiceFor")
34284
34303
  } : {},
34285
34304
  ...provider.reasoningEffortLevelsFor ? {
34286
34305
  reasoningEffortLevelsFor: /* @__PURE__ */ __name((model, thinking) => provider.reasoningEffortLevelsFor?.(model, thinking), "reasoningEffortLevelsFor")
@@ -36477,7 +36496,8 @@ function accumulateTokenUsage(current, addition) {
36477
36496
  // and a turn mixing a reporting driver with a silent one would read as
36478
36497
  // though the silent turns did no thinking.
36479
36498
  ...current.reasoningTokens !== void 0 || addition.reasoningTokens !== void 0 ? { reasoningTokens: (current.reasoningTokens ?? 0) + (addition.reasoningTokens ?? 0) } : {},
36480
- ...current.webSearchRequests !== void 0 || addition.webSearchRequests !== void 0 ? { webSearchRequests: (current.webSearchRequests ?? 0) + (addition.webSearchRequests ?? 0) } : {}
36499
+ ...current.webSearchRequests !== void 0 || addition.webSearchRequests !== void 0 ? { webSearchRequests: (current.webSearchRequests ?? 0) + (addition.webSearchRequests ?? 0) } : {},
36500
+ ...current.reportedCostUsd !== void 0 || addition.reportedCostUsd !== void 0 ? { reportedCostUsd: (current.reportedCostUsd ?? 0) + (addition.reportedCostUsd ?? 0) } : {}
36481
36501
  // `fullPromptTokens`, `cacheTtlMs`, `cacheWriteTtlTokens`, `speed`, `serviceTier`,
36482
36502
  // `inferenceGeo` and `cacheMiss` are per-call facts and are deliberately
36483
36503
  // not carried into a sum.
@@ -36509,6 +36529,8 @@ function mergeTokenUsage(current, next2) {
36509
36529
  ...next2.cacheWriteTtlTokens !== void 0 || current.cacheWriteTtlTokens !== void 0 ? { cacheWriteTtlTokens: next2.cacheWriteTtlTokens ?? current.cacheWriteTtlTokens } : {},
36510
36530
  ...next2.speed !== void 0 || current.speed !== void 0 ? { speed: next2.speed ?? current.speed } : {},
36511
36531
  ...next2.webSearchRequests !== void 0 || current.webSearchRequests !== void 0 ? { webSearchRequests: Math.max(current.webSearchRequests ?? 0, next2.webSearchRequests ?? 0) } : {},
36532
+ // Cumulative within one call, like the token counts.
36533
+ ...next2.reportedCostUsd !== void 0 || current.reportedCostUsd !== void 0 ? { reportedCostUsd: Math.max(current.reportedCostUsd ?? 0, next2.reportedCostUsd ?? 0) } : {},
36512
36534
  ...next2.serviceTier !== void 0 || current.serviceTier !== void 0 ? { serviceTier: next2.serviceTier ?? current.serviceTier } : {},
36513
36535
  ...next2.inferenceGeo !== void 0 || current.inferenceGeo !== void 0 ? { inferenceGeo: next2.inferenceGeo ?? current.inferenceGeo } : {},
36514
36536
  ...next2.cacheMiss !== void 0 || current.cacheMiss !== void 0 ? { cacheMiss: next2.cacheMiss ?? current.cacheMiss } : {}
@@ -37335,7 +37357,8 @@ ${callCtx.workingStateSummary}`);
37335
37357
  return [createUserMessage(contextParts.join("\n\n"))];
37336
37358
  }
37337
37359
  /**
37338
- * Cost for one call, from the advisor's own pricing, then the catalogue.
37360
+ * Cost for one call: the provider's reported charge, else the advisor's own
37361
+ * pricing, else the catalogue.
37339
37362
  *
37340
37363
  * When neither has a rate this reports the tokens as UNPRICED rather than
37341
37364
  * as a cost of zero. The previous version returned a zero rate card and a
@@ -37347,6 +37370,9 @@ ${callCtx.workingStateSummary}`);
37347
37370
  * because the number happens to be unenforced.
37348
37371
  */
37349
37372
  computeCost(advisor, usage) {
37373
+ if (hasReportedCost(usage)) {
37374
+ return accumulateReportedCost(ZERO_COST, usage.reportedCostUsd);
37375
+ }
37350
37376
  const pricing = advisor.pricing ?? resolveModelPricing(advisor.provider.id, advisor.model);
37351
37377
  if (!pricing) {
37352
37378
  return accumulateUnpricedCost(ZERO_COST, usage);
@@ -46395,7 +46421,12 @@ var TurnRecorder = class {
46395
46421
  return resolveModelPricing(servedBy.providerId, servedBy.model);
46396
46422
  }
46397
46423
  accumulateUsage(usage, servedBy) {
46398
- this.#turn.tokenUsage = accumulateTokenUsage(this.#turn.tokenUsage, usage);
46424
+ const { reportedCostUsd: _charged, ...counted } = usage;
46425
+ this.#turn.tokenUsage = accumulateTokenUsage(this.#turn.tokenUsage, counted);
46426
+ if (hasReportedCost(usage)) {
46427
+ this.#turn.costInfo = accumulateReportedCost(this.#turn.costInfo, usage.reportedCostUsd);
46428
+ return;
46429
+ }
46399
46430
  const pricing = this.#resolvePricing(servedBy);
46400
46431
  this.#turn.costInfo = pricing === void 0 ? accumulateUnpricedCost(this.#turn.costInfo, usage) : accumulateCost(this.#turn.costInfo, usage, pricing);
46401
46432
  }
@@ -52207,6 +52238,9 @@ var GuardCoordinator = class {
52207
52238
  }
52208
52239
  };
52209
52240
 
52241
+ // ../sdk/dist/runtime/query/iteration/index.js
52242
+ import { createHash as createHash22 } from "node:crypto";
52243
+
52210
52244
  // ../sdk/dist/types/agent/task.js
52211
52245
  function isTerminalAgentTaskState(state) {
52212
52246
  return state === "completed" || state === "failed" || state === "canceled" || state === "rejected";
@@ -53674,6 +53708,67 @@ function createMemoryRecallStep(options) {
53674
53708
  }
53675
53709
  __name(createMemoryRecallStep, "createMemoryRecallStep");
53676
53710
 
53711
+ // ../sdk/dist/provider/side-request-reasoning.js
53712
+ var SIDE_REQUEST_REASONING_HEADROOM = 2048;
53713
+ var DISABLED = { type: "disabled" };
53714
+ var LOWEST_FIRST = ["none", "minimal", "low", "medium"];
53715
+ function sideRequestReasoning(provider, model, maxTokens) {
53716
+ let levels;
53717
+ try {
53718
+ levels = provider.reasoningEffortLevelsFor?.(model, DISABLED);
53719
+ } catch {
53720
+ levels = void 0;
53721
+ }
53722
+ if (levels?.includes("none")) {
53723
+ return { thinking: DISABLED, effort: "none", maxTokens };
53724
+ }
53725
+ const roomy = maxTokens + SIDE_REQUEST_REASONING_HEADROOM;
53726
+ if (levels !== void 0 && levels.length > 0) {
53727
+ const lowest = LOWEST_FIRST.find((level) => levels.includes(level)) ?? levels[0];
53728
+ return { thinking: DISABLED, ...lowest ? { effort: lowest } : {}, maxTokens: roomy };
53729
+ }
53730
+ return { thinking: DISABLED, maxTokens: roomy };
53731
+ }
53732
+ __name(sideRequestReasoning, "sideRequestReasoning");
53733
+ function refusesReasoningControls(error62) {
53734
+ const text11 = error62 instanceof Error ? error62.message : String(error62);
53735
+ if (/rate.?limit|too many requests|overloaded|timed? ?out|\b(429|5\d\d)\b/i.test(text11))
53736
+ return false;
53737
+ const names = /\b(thinking|reasoning|effort)\b/i.test(text11);
53738
+ const rejects = /unsupported|not supported|unsupport|invalid|unknown|unrecogni[sz]ed|unexpected|not allowed|not permitted|does not (?:accept|support|allow)|not accept|extra inputs|bad request|\b400\b|\b422\b/i.test(text11);
53739
+ return names && rejects;
53740
+ }
53741
+ __name(refusesReasoningControls, "refusesReasoningControls");
53742
+ var noControls = /* @__PURE__ */ new WeakMap();
53743
+ async function* chatStreamForSideRequest(provider, params, send = (request) => provider.chatStream(request)) {
53744
+ const base3 = params.maxTokens ?? 256;
53745
+ const skip = noControls.get(provider)?.has(params.model) === true;
53746
+ const fields2 = sideRequestReasoning(provider, params.model, base3);
53747
+ const plain = {
53748
+ ...params,
53749
+ maxTokens: base3 + SIDE_REQUEST_REASONING_HEADROOM
53750
+ };
53751
+ if (skip) {
53752
+ yield* send(plain);
53753
+ return;
53754
+ }
53755
+ let yielded = false;
53756
+ try {
53757
+ for await (const chunk of send({ ...params, ...fields2 })) {
53758
+ yielded = true;
53759
+ yield chunk;
53760
+ }
53761
+ } catch (error62) {
53762
+ if (yielded || params.signal?.aborted || !refusesReasoningControls(error62))
53763
+ throw error62;
53764
+ const seen = noControls.get(provider) ?? /* @__PURE__ */ new Set();
53765
+ seen.add(params.model);
53766
+ noControls.set(provider, seen);
53767
+ yield* send(plain);
53768
+ }
53769
+ }
53770
+ __name(chatStreamForSideRequest, "chatStreamForSideRequest");
53771
+
53677
53772
  // ../sdk/dist/runtime/query/callback-inference.js
53678
53773
  var requestSchema = external_exports.object({
53679
53774
  system: external_exports.string().min(1).max(12e3),
@@ -53716,15 +53811,17 @@ function createCallbackInference(ctx, model, phase) {
53716
53811
  const text11 = new StreamTextAccumulator();
53717
53812
  let invalidOutput;
53718
53813
  let usage;
53814
+ let finishReason;
53719
53815
  try {
53720
- for await (const chunk of ctx.provider.chatStream({
53816
+ for await (const chunk of chatStreamForSideRequest(ctx.provider, {
53721
53817
  model,
53722
53818
  providerRoute: route(),
53723
53819
  messages: [createSystemMessage(input2.system), createUserMessage(input2.prompt)],
53724
53820
  maxTokens: input2.maxTokens,
53725
- ...ctx.turnConfig.effort ? { effort: ctx.turnConfig.effort } : {},
53726
53821
  signal
53727
53822
  })) {
53823
+ if (chunk.finishReason)
53824
+ finishReason = chunk.finishReason;
53728
53825
  if (chunk.usage)
53729
53826
  usage = usage ? mergeTokenUsage(usage, chunk.usage) : { ...chunk.usage };
53730
53827
  if (chunk.error)
@@ -53743,7 +53840,12 @@ function createCallbackInference(ctx, model, phase) {
53743
53840
  throw new Error(`${label5} inference ended without usage.`);
53744
53841
  if (invalidOutput)
53745
53842
  throw new Error(invalidOutput);
53746
- return { text: text11.text, usage, servedBy: route() };
53843
+ return {
53844
+ text: text11.text,
53845
+ usage,
53846
+ servedBy: route(),
53847
+ ...finishReason ? { finishReason } : {}
53848
+ };
53747
53849
  } finally {
53748
53850
  if (usage)
53749
53851
  ctx.recorder.accumulateUsage(usage, route());
@@ -55944,9 +56046,10 @@ function parseSnapshot(value) {
55944
56046
  __name(parseSnapshot, "parseSnapshot");
55945
56047
 
55946
56048
  // ../sdk/dist/runtime/query/turn/stall-monitor.js
55947
- var REASONING_CAPPED_MESSAGE = "Your thinking for that step reached its limit before you acted, so it was cut short. Act now on what you already know: make the first change, or run the one command that tells you what you still need. Refine as you go; do not plan the whole task again.";
56049
+ var REASONING_CAPPED_MESSAGE = "Your thinking for that step reached its limit before you acted, so it was cut short. Act now on what you already know: make the first change, or, if you were asked a question, answer with what you have and say what is missing. Refine as you go; do not plan the whole task again.";
55948
56050
  var REASONING_ONLY_MESSAGE = "Your last reply held thinking only: no answer and no action. Continue now: give your answer, or make the call that moves the task forward.";
55949
- var STALL_NUDGE_MESSAGE = "Several steps have passed and nothing has changed yet. Begin changing things now: make the first edit you are sure of, or run the one check that settles what you are unsure of. Reading more or planning again will not move the task.";
56051
+ var STALL_NUDGE_MESSAGE = "Several steps have passed and nothing has changed yet. Begin changing things now: make the first edit you are sure of. If you were asked a question, answer it now with what you have and say what is missing. Reading more or planning again will not move the task.";
56052
+ var ANSWER_NOW_MESSAGE = "You were asked a question and the last steps only looked around. Answer it now, in the language the person used and within what they asked for, using what you have already seen. If something is still missing, say what it is instead of running another command. Do not open with an apology.";
55950
56053
  var FORCED_STEP_MESSAGE = "This reply must be a tool call, not more planning. Make the call that moves the task forward now.";
55951
56054
  var DEFAULT_MAX_REASONING_TOKENS = 24e3;
55952
56055
  var CHARS_PER_TOKEN2 = 4;
@@ -55978,6 +56081,16 @@ function callChangedState(toolName, readOnly, isError) {
55978
56081
  return readOnly !== true;
55979
56082
  }
55980
56083
  __name(callChangedState, "callChangedState");
56084
+ var QUESTION_MAX_CHARS = 400;
56085
+ function asksQuestion(text11) {
56086
+ if (text11 === void 0)
56087
+ return false;
56088
+ const trimmed = text11.trim();
56089
+ if (trimmed.length === 0 || trimmed.length > QUESTION_MAX_CHARS)
56090
+ return false;
56091
+ return /[?\uFF1F\u061F](?=$|[\s"'\u201D\u2019)\]])/.test(trimmed);
56092
+ }
56093
+ __name(asksQuestion, "asksQuestion");
55981
56094
  var StallMonitor = class {
55982
56095
  static {
55983
56096
  __name(this, "StallMonitor");
@@ -55985,6 +56098,7 @@ var StallMonitor = class {
55985
56098
  nudgeAfterSteps;
55986
56099
  nudgeAfterChars;
55987
56100
  forceAfterSteps;
56101
+ answerAfterSteps;
55988
56102
  idleSteps = 0;
55989
56103
  idleChars = 0;
55990
56104
  nudged = false;
@@ -55993,6 +56107,7 @@ var StallMonitor = class {
55993
56107
  this.nudgeAfterSteps = config2?.nudgeAfterSteps ?? 12;
55994
56108
  this.nudgeAfterChars = config2?.nudgeAfterReasoningChars ?? 8e4;
55995
56109
  this.forceAfterSteps = config2?.forceAfterSteps ?? 5;
56110
+ this.answerAfterSteps = config2?.answerAfterSteps ?? 6;
55996
56111
  }
55997
56112
  observe(step) {
55998
56113
  if (step.changedState) {
@@ -56001,18 +56116,24 @@ var StallMonitor = class {
56001
56116
  }
56002
56117
  this.idleSteps += 1;
56003
56118
  this.idleChars += step.reasoningChars;
56119
+ const question = step.question === true;
56004
56120
  if (!this.nudged) {
56121
+ if (question && this.idleSteps >= this.answerAfterSteps) {
56122
+ this.nudged = true;
56123
+ this.stepsSinceNudge = 0;
56124
+ return { kind: "nudge", text: ANSWER_NOW_MESSAGE };
56125
+ }
56005
56126
  if (this.idleSteps >= this.nudgeAfterSteps || this.idleChars >= this.nudgeAfterChars) {
56006
56127
  this.nudged = true;
56007
56128
  this.stepsSinceNudge = 0;
56008
- return { kind: "nudge", text: STALL_NUDGE_MESSAGE };
56129
+ return { kind: "nudge", text: question ? ANSWER_NOW_MESSAGE : STALL_NUDGE_MESSAGE };
56009
56130
  }
56010
56131
  return { kind: "none" };
56011
56132
  }
56012
56133
  this.stepsSinceNudge += 1;
56013
56134
  if (this.stepsSinceNudge >= this.forceAfterSteps) {
56014
56135
  this.reset();
56015
- return { kind: "force" };
56136
+ return question ? { kind: "nudge", text: ANSWER_NOW_MESSAGE } : { kind: "force" };
56016
56137
  }
56017
56138
  return { kind: "none" };
56018
56139
  }
@@ -61695,7 +61816,7 @@ var RepeatCallTracker = class {
61695
61816
  toolName,
61696
61817
  count: count7,
61697
61818
  level: "escalated",
61698
- text: `You have now called \`${toolName}\` with identical arguments ${count7} times in this turn. Check whether the results or the state have changed. If there is no progress, change the approach or tell the user what is blocking you.`
61819
+ text: `You have now called \`${toolName}\` with identical arguments ${count7} times in this turn. Check whether the results or the state have changed. If there is no progress, change the approach, or answer with what you have and tell the user what is missing.`
61699
61820
  };
61700
61821
  }
61701
61822
  if (count7 >= this.thresholds.notifyAfter && already === void 0) {
@@ -61704,7 +61825,7 @@ var RepeatCallTracker = class {
61704
61825
  toolName,
61705
61826
  count: count7,
61706
61827
  level: "notice",
61707
- text: `Note: this is call ${count7} of \`${toolName}\` with identical arguments in this turn. If the previous results were not what you needed, changing the arguments is more likely to help than repeating them.`
61828
+ text: `Note: this is call ${count7} of \`${toolName}\` with identical arguments in this turn. If the previous results were not what you needed, change the arguments, or answer with what you already have and say what is missing.`
61708
61829
  };
61709
61830
  }
61710
61831
  return void 0;
@@ -65336,7 +65457,7 @@ function createAutoReviewClassifier(options) {
65336
65457
  controller.abort(new DeadlineError());
65337
65458
  }, deadlineMs);
65338
65459
  try {
65339
- const collected = collectChatCompletion(chatStreamWithSamplingRepair(options.provider, {
65460
+ const request = {
65340
65461
  model: options.model,
65341
65462
  messages,
65342
65463
  maxTokens: stage === 1 ? 64 : 8192,
@@ -65344,7 +65465,8 @@ function createAutoReviewClassifier(options) {
65344
65465
  ...stage === 1 ? { stop: [VERDICT_STOP] } : {},
65345
65466
  cacheControl: { type: "auto" },
65346
65467
  signal: controller.signal
65347
- }));
65468
+ };
65469
+ const collected = collectChatCompletion(stage === 1 ? chatStreamForSideRequest(options.provider, request, (sent) => chatStreamWithSamplingRepair(options.provider, sent)) : chatStreamWithSamplingRepair(options.provider, request));
65348
65470
  collected.catch(() => {
65349
65471
  });
65350
65472
  const cutOff = new Promise((_resolve, reject2) => {
@@ -78864,7 +78986,7 @@ var IterationOrchestrator = class {
78864
78986
  }
78865
78987
  const offeredEfforts = this.ctx.provider.reasoningEffortLevelsFor?.(stepModel);
78866
78988
  const stepEffort = forcedAction && requestEffort && (offeredEfforts?.includes("low") ?? false) ? "low" : requestEffort;
78867
- const forcedChoiceRefused = forcedAction && this.ctx.provider.acceptsForcedToolChoiceFor?.(stepModel, turnConfig.thinking) === false;
78989
+ const forcedChoiceRefused = forcedAction && this.ctx.provider.acceptsForcedToolChoiceFor?.(stepModel, turnConfig.thinking, stepEffort) === false;
78868
78990
  const operatorInputAtDispatch = this.latestUserMessage;
78869
78991
  const latestReviewUserMessage = (this.ctx.reviewAnswer || this.ctx.structuredOutput?.review) && operatorInputAtDispatch ? structuredClone(operatorInputAtDispatch) : void 0;
78870
78992
  const { response, messageId: messageId4, requestMessages, reasoningCapped = false } = yield* streamProviderTurn(
@@ -80463,6 +80585,7 @@ ${feedback}`, "hook-feedback"));
80463
80585
  return;
80464
80586
  const calls = new Map((response.message.toolCalls ?? []).map((c) => [c.id, c]));
80465
80587
  let changedState = false;
80588
+ const question = asksQuestion(this.latestUserMessage?.content);
80466
80589
  for (const result of results) {
80467
80590
  const call2 = calls.get(result.toolCallId);
80468
80591
  let readOnly;
@@ -80472,11 +80595,18 @@ ${feedback}`, "hook-feedback"));
80472
80595
  } catch {
80473
80596
  readOnly = void 0;
80474
80597
  }
80475
- if (callChangedState(result.toolName, readOnly, result.isError))
80476
- changedState = true;
80598
+ if (callChangedState(result.toolName, readOnly, result.isError)) {
80599
+ if (EDIT_TOOLS.has(result.toolName) || !this.seenAgain(result.toolName, call2, result.output)) {
80600
+ changedState = true;
80601
+ }
80602
+ }
80477
80603
  }
80478
80604
  const reasoningChars = (response.message.reasoning ?? []).reduce((n, block) => n + (block.text?.length ?? 0), 0);
80479
- const directive = monitor.observe({ reasoningChars, changedState });
80605
+ const directive = monitor.observe({
80606
+ reasoningChars,
80607
+ changedState,
80608
+ question
80609
+ });
80480
80610
  if (directive.kind === "nudge") {
80481
80611
  this.ctx.log.info("Many steps without a change \u2014 nudging the model to act", {
80482
80612
  [NAMZU.TURN_ID]: this.ctx.recorder.turnId
@@ -80489,6 +80619,20 @@ ${feedback}`, "hook-feedback"));
80489
80619
  this.forceActionNextStep = true;
80490
80620
  }
80491
80621
  }
80622
+ /** Fingerprints of the calls this turn has finished, for {@link seenAgain}. */
80623
+ finishedCalls = /* @__PURE__ */ new Set();
80624
+ /**
80625
+ * Whether this call, with this input and this output, was already finished
80626
+ * earlier in the turn; records it either way. A call that gave the same
80627
+ * answer twice did not move anything the second time.
80628
+ */
80629
+ seenAgain(toolName, call2, output2) {
80630
+ const key6 = createHash22("sha256").update(`${toolName}\0${call2?.function.arguments ?? ""}\0${output2}`).digest("hex");
80631
+ if (this.finishedCalls.has(key6))
80632
+ return true;
80633
+ this.finishedCalls.add(key6);
80634
+ return false;
80635
+ }
80492
80636
  async requestFinalResponse(model, reason) {
80493
80637
  if (this.ctx.structuredOutput?.mode === "native")
80494
80638
  return "structured_output_failed";
@@ -80814,7 +80958,7 @@ function withProviderRetry(provider, options = {}) {
80814
80958
  supportsImageInputFor: /* @__PURE__ */ __name((model) => provider.supportsImageInputFor?.(model) ?? true, "supportsImageInputFor")
80815
80959
  } : {},
80816
80960
  ...provider.acceptsForcedToolChoiceFor ? {
80817
- acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking) => provider.acceptsForcedToolChoiceFor?.(model, thinking) ?? true, "acceptsForcedToolChoiceFor")
80961
+ acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking, effort) => provider.acceptsForcedToolChoiceFor?.(model, thinking, effort) ?? true, "acceptsForcedToolChoiceFor")
80818
80962
  } : {},
80819
80963
  ...provider.reasoningEffortLevelsFor ? {
80820
80964
  reasoningEffortLevelsFor: /* @__PURE__ */ __name((model, thinking) => provider.reasoningEffortLevelsFor?.(model, thinking), "reasoningEffortLevelsFor")
@@ -81045,7 +81189,7 @@ function withProviderFallback(members2, options = {}) {
81045
81189
  }, "supportsImageInputFor"),
81046
81190
  // A chain takes a forced choice only if every member does: the request may
81047
81191
  // be served by any of them, and the one that refuses would fail the step.
81048
- acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking) => members2.every((member) => member.provider.acceptsForcedToolChoiceFor?.(member.model ?? model, thinking) ?? true), "acceptsForcedToolChoiceFor"),
81192
+ acceptsForcedToolChoiceFor: /* @__PURE__ */ __name((model, thinking, effort) => members2.every((member) => member.provider.acceptsForcedToolChoiceFor?.(member.model ?? model, thinking, effort) ?? true), "acceptsForcedToolChoiceFor"),
81049
81193
  reasoningEffortLevelsFor: /* @__PURE__ */ __name((model, thinking) => commonReasoningEffortLevels(members2, model, thinking), "reasoningEffortLevelsFor"),
81050
81194
  // Present on the chain wrapper for the same reason the menu method is:
81051
81195
  // `undefined` is the honest answer when a member cannot answer, defaults
@@ -81846,7 +81990,7 @@ import { lstat as lstat4 } from "node:fs/promises";
81846
81990
  import { resolve as resolve13 } from "node:path";
81847
81991
 
81848
81992
  // ../sdk/dist/store/evidence/index-page.js
81849
- import { createHash as createHash22, createHmac as createHmac2, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
81993
+ import { createHash as createHash23, createHmac as createHmac2, timingSafeEqual as timingSafeEqual2 } from "node:crypto";
81850
81994
 
81851
81995
  // ../sdk/dist/store/evidence/compaction-provenance.js
81852
81996
  function record2(value) {
@@ -81961,7 +82105,7 @@ var positionSchema = external_exports.object({
81961
82105
  textIndex: integer3.default(0)
81962
82106
  });
81963
82107
  function evidenceSeal(sessionStart, sourceKey) {
81964
- const key6 = createHash22("sha256").update("namzu-session-evidence-v1\n").update(sessionStart).digest();
82108
+ const key6 = createHash23("sha256").update("namzu-session-evidence-v1\n").update(sessionStart).digest();
81965
82109
  const mac3 = /* @__PURE__ */ __name((value) => createHmac2("sha256", key6).update(`${sourceKey}
81966
82110
  ${value}`).digest(), "mac");
81967
82111
  return {
@@ -84146,7 +84290,7 @@ var InMemorySessionTokenBudgetStore = class {
84146
84290
  };
84147
84291
 
84148
84292
  // ../sdk/dist/store/checkpoint/contract.js
84149
- import { createHash as createHash23 } from "node:crypto";
84293
+ import { createHash as createHash24 } from "node:crypto";
84150
84294
  var CheckpointIntegrityError = class extends Error {
84151
84295
  static {
84152
84296
  __name(this, "CheckpointIntegrityError");
@@ -84181,7 +84325,7 @@ function serializeCheckpoint(checkpoint) {
84181
84325
  }
84182
84326
  __name(serializeCheckpoint, "serializeCheckpoint");
84183
84327
  function sha256Hex5(text11) {
84184
- return createHash23("sha256").update(text11, "utf8").digest("hex");
84328
+ return createHash24("sha256").update(text11, "utf8").digest("hex");
84185
84329
  }
84186
84330
  __name(sha256Hex5, "sha256Hex");
84187
84331
  function checkpointRecordPath(checkpointId4) {
@@ -84771,6 +84915,8 @@ function assertBudgetIsMeasurable(params) {
84771
84915
  return;
84772
84916
  if (params.pricing !== void 0)
84773
84917
  return;
84918
+ if (params.provider.capabilities?.reportsRequestCost === true)
84919
+ return;
84774
84920
  const model = params.turnConfig.model;
84775
84921
  if (resolveModelPricing(params.provider.id, model) !== void 0)
84776
84922
  return;
@@ -87328,7 +87474,7 @@ async function startBidiTurn(params) {
87328
87474
  __name(startBidiTurn, "startBidiTurn");
87329
87475
 
87330
87476
  // ../sdk/dist/runtime/query/prompt-cache.js
87331
- import { createHash as createHash24 } from "node:crypto";
87477
+ import { createHash as createHash25 } from "node:crypto";
87332
87478
  var PromptCache = class {
87333
87479
  static {
87334
87480
  __name(this, "PromptCache");
@@ -87403,7 +87549,7 @@ var PromptCache = class {
87403
87549
  this.cachedStaticHash = void 0;
87404
87550
  }
87405
87551
  computeStaticHash(staticSegment) {
87406
- return createHash24("sha256").update(staticSegment).digest("hex").slice(0, 16);
87552
+ return createHash25("sha256").update(staticSegment).digest("hex").slice(0, 16);
87407
87553
  }
87408
87554
  computeConfigHash(input2, prompt) {
87409
87555
  const parts = [
@@ -87413,7 +87559,7 @@ var PromptCache = class {
87413
87559
  // unsegmented text happens to be identical.
87414
87560
  input2.contributions?.list().map((c) => [c.id, c.placement]) ?? []
87415
87561
  ];
87416
- return createHash24("sha256").update(JSON.stringify(parts)).digest("hex").slice(0, 16);
87562
+ return createHash25("sha256").update(JSON.stringify(parts)).digest("hex").slice(0, 16);
87417
87563
  }
87418
87564
  };
87419
87565
 
@@ -91064,7 +91210,7 @@ var LocalExecutionContext = class extends BaseExecutionContext {
91064
91210
  };
91065
91211
 
91066
91212
  // ../sdk/dist/turn/workspace-fingerprint.js
91067
- import { createHash as createHash25 } from "node:crypto";
91213
+ import { createHash as createHash26 } from "node:crypto";
91068
91214
  import { lstat as lstat5, readFile as readFile13, readlink } from "node:fs/promises";
91069
91215
  import { join as join27 } from "node:path";
91070
91216
  var NODE_FS = { lstat: lstat5, readlink, readFile: readFile13 };
@@ -91080,7 +91226,7 @@ async function untrackedEntry(cwd, rel, fs) {
91080
91226
  if (!stats.isFile())
91081
91227
  return `? ${rel}`;
91082
91228
  const body = await fs.readFile(abs);
91083
- return `F ${rel}\0${createHash25("sha256").update(body).digest("hex")}`;
91229
+ return `F ${rel}\0${createHash26("sha256").update(body).digest("hex")}`;
91084
91230
  } catch {
91085
91231
  return null;
91086
91232
  }
@@ -91125,7 +91271,7 @@ async function fingerprintWorkspace(options) {
91125
91271
  return null;
91126
91272
  parts.push(entry);
91127
91273
  }
91128
- const hash4 = createHash25("sha256");
91274
+ const hash4 = createHash26("sha256");
91129
91275
  for (const part2 of parts)
91130
91276
  hash4.update(`${Buffer.byteLength(part2, "utf8")}:${part2}`);
91131
91277
  return hash4.digest("hex");
@@ -91355,7 +91501,7 @@ function createMemoryPromoter(options) {
91355
91501
  __name(createMemoryPromoter, "createMemoryPromoter");
91356
91502
 
91357
91503
  // ../sdk/dist/turn/json-claim-verifier.js
91358
- import { createHash as createHash26, randomUUID as randomUUID5 } from "node:crypto";
91504
+ import { createHash as createHash27, randomUUID as randomUUID5 } from "node:crypto";
91359
91505
  import { performance as performance2 } from "node:perf_hooks";
91360
91506
  function scalar(value) {
91361
91507
  return value === null || typeof value === "boolean" || typeof value === "string" && value.length <= 2e3 || typeof value === "number" && Number.isSafeInteger(value);
@@ -91488,7 +91634,7 @@ function createJsonClaimVerifier(options) {
91488
91634
  requestId: request.requestId,
91489
91635
  observedAt: observation.observedAt,
91490
91636
  bytes: bytes.byteLength,
91491
- sha256: createHash26("sha256").update(bytes).digest("hex")
91637
+ sha256: createHash27("sha256").update(bytes).digest("hex")
91492
91638
  });
91493
91639
  }
91494
91640
  ensureActive();
@@ -91756,7 +91902,12 @@ function createEvidenceQueryResolver() {
91756
91902
  prompt: input2.prompt,
91757
91903
  maxTokens: 512,
91758
91904
  signal: context2.signal
91759
- }).then(({ text: text11 }) => validateEvidenceQueryResolution(text11, current, history));
91905
+ }).then(({ text: text11, finishReason }) => (
91906
+ // A planner that came back empty, or ran out of tokens before it
91907
+ // finished, said nothing about the question. That is not a failed
91908
+ // plan to report to the model: the lookup adds nothing this turn.
91909
+ !text11.trim() || finishReason === "length" ? null : validateEvidenceQueryResolution(text11, current, history)
91910
+ ));
91760
91911
  cached4 = { turnId: context2.turnId, query: query2, operator: identity, plan };
91761
91912
  return plan;
91762
91913
  };
@@ -98586,7 +98737,7 @@ var DiskTaskStore = class {
98586
98737
  };
98587
98738
 
98588
98739
  // ../sdk/dist/store/memory/revision.js
98589
- import { createHash as createHash27 } from "node:crypto";
98740
+ import { createHash as createHash28 } from "node:crypto";
98590
98741
  var MemoryRevisionUnavailableError = class extends Error {
98591
98742
  static {
98592
98743
  __name(this, "MemoryRevisionUnavailableError");
@@ -98692,7 +98843,7 @@ function canonicalRecord(record4) {
98692
98843
  }
98693
98844
  __name(canonicalRecord, "canonicalRecord");
98694
98845
  function memoryRevision(record4) {
98695
- return `m2:${createHash27("sha256").update(canonicalRecord(record4)).digest("hex")}`;
98846
+ return `m2:${createHash28("sha256").update(canonicalRecord(record4)).digest("hex")}`;
98696
98847
  }
98697
98848
  __name(memoryRevision, "memoryRevision");
98698
98849
  var MemoryRevisionConflictError = class extends NamzuError {
@@ -99452,7 +99603,7 @@ var DiskMemoryStore = class {
99452
99603
  };
99453
99604
 
99454
99605
  // ../sdk/dist/store/memory/markdown.js
99455
- import { createHash as createHash28 } from "node:crypto";
99606
+ import { createHash as createHash29 } from "node:crypto";
99456
99607
  import { lstat as lstat8, mkdir as mkdir15, readFile as readFile18, readdir as readdir11, realpath as realpath9, rename as rename6, unlink as unlink12 } from "node:fs/promises";
99457
99608
  import { dirname as dirname19, join as join34, resolve as resolve18 } from "node:path";
99458
99609
 
@@ -99692,7 +99843,7 @@ function invalidFile(file2, reason, cause) {
99692
99843
  }
99693
99844
  __name(invalidFile, "invalidFile");
99694
99845
  function derivedMemoryId(name2) {
99695
- const hex4 = createHash28("sha256").update(`namzu-memory-name:${name2}`).digest("hex");
99846
+ const hex4 = createHash29("sha256").update(`namzu-memory-name:${name2}`).digest("hex");
99696
99847
  const variant = (Number.parseInt(hex4[16] ?? "0", 16) & 3 | 8).toString(16);
99697
99848
  return `${hex4.slice(0, 8)}-${hex4.slice(8, 12)}-8${hex4.slice(13, 16)}-${variant}${hex4.slice(17, 20)}-${hex4.slice(20, 32)}`;
99698
99849
  }
@@ -105607,7 +105758,7 @@ function toolResultToMCPToolResult(result) {
105607
105758
  __name(toolResultToMCPToolResult, "toolResultToMCPToolResult");
105608
105759
 
105609
105760
  // ../sdk/dist/connector/mcp/policy.js
105610
- import { createHash as createHash29 } from "node:crypto";
105761
+ import { createHash as createHash30 } from "node:crypto";
105611
105762
  function applyToolPolicy(tools, policy) {
105612
105763
  return applyNamePolicy(tools, policy);
105613
105764
  }
@@ -105647,7 +105798,7 @@ function toolsHash(tools) {
105647
105798
  // fingerprint built to catch exactly that rug-pull saw nothing.
105648
105799
  annotations: stableStringify2(tool.annotations)
105649
105800
  }));
105650
- return createHash29("sha256").update(JSON.stringify(canonical4)).digest("hex");
105801
+ return createHash30("sha256").update(JSON.stringify(canonical4)).digest("hex");
105651
105802
  }
105652
105803
  __name(toolsHash, "toolsHash");
105653
105804
  function diffTools(before, after) {
@@ -105870,7 +106021,7 @@ var MCPToolDiscovery = class {
105870
106021
  };
105871
106022
 
105872
106023
  // ../sdk/dist/connector/mcp/mcp-toolset.js
105873
- import { createHash as createHash30 } from "node:crypto";
106024
+ import { createHash as createHash31 } from "node:crypto";
105874
106025
 
105875
106026
  // ../sdk/dist/connector/mcp/prompt-adapter.js
105876
106027
  function renderPromptMessages(serverName, promptName, messages, description) {
@@ -105941,7 +106092,7 @@ function mcpToolsetName(serverName, ...segments) {
105941
106092
  const full = ["mcp", serverName, ...segments].join("__");
105942
106093
  if (full.length <= MCP_TOOLSET_NAME_MAX_LENGTH)
105943
106094
  return full;
105944
- const hash4 = createHash30("sha256").update(full).digest("hex").slice(0, 8);
106095
+ const hash4 = createHash31("sha256").update(full).digest("hex").slice(0, 8);
105945
106096
  const suffix = `_${hash4}`;
105946
106097
  return `${full.slice(0, MCP_TOOLSET_NAME_MAX_LENGTH - suffix.length)}${suffix}`;
105947
106098
  }
@@ -109678,7 +109829,7 @@ var AgentManager = class {
109678
109829
  deps;
109679
109830
  topicManager;
109680
109831
  pendingSpawns = /* @__PURE__ */ new Map();
109681
- drainingParents = /* @__PURE__ */ new Set();
109832
+ drainingParents = /* @__PURE__ */ new Map();
109682
109833
  executingTasks = /* @__PURE__ */ new Set();
109683
109834
  cancelingTasks = /* @__PURE__ */ new Set();
109684
109835
  admissionTimer;
@@ -109775,14 +109926,19 @@ var AgentManager = class {
109775
109926
  } catch (error62) {
109776
109927
  this.failAdmission(entry, error62);
109777
109928
  }
109778
- this.pumpAdmissions(options.parentSessionId);
109929
+ await this.pumpAdmissions(options.parentSessionId);
109930
+ if (entry.ready && task.state === "pending" && !this.disposed)
109931
+ await this.pumpAdmissions(options.parentSessionId);
109779
109932
  return task;
109780
109933
  }
109934
+ /** Run one admission pass; resolves when it has started what it can, never rejects. */
109781
109935
  pumpAdmissions(parentSessionId) {
109782
- if (this.disposed || this.drainingParents.has(parentSessionId))
109783
- return;
109784
- this.drainingParents.add(parentSessionId);
109785
- void this.drainAdmissions(parentSessionId).finally(() => {
109936
+ if (this.disposed)
109937
+ return Promise.resolve();
109938
+ const running = this.drainingParents.get(parentSessionId);
109939
+ if (running)
109940
+ return running;
109941
+ const pass = this.drainAdmissions(parentSessionId).finally(() => {
109786
109942
  this.drainingParents.delete(parentSessionId);
109787
109943
  if (!this.disposed && this.pendingSpawns.size > 0 && !this.admissionTimer) {
109788
109944
  this.admissionTimer = setTimeout(() => {
@@ -109795,6 +109951,8 @@ var AgentManager = class {
109795
109951
  }).catch((error62) => this.log.error("Delegation admission failed", {
109796
109952
  "exception.message": toErrorMessage(error62)
109797
109953
  }));
109954
+ this.drainingParents.set(parentSessionId, pass);
109955
+ return pass;
109798
109956
  }
109799
109957
  async drainAdmissions(parentSessionId) {
109800
109958
  const queue = this.pendingSpawns.get(parentSessionId);
@@ -119727,7 +119885,7 @@ function extractStreamUsage(usage) {
119727
119885
  inputTokens: u.inputTokens ?? u.promptTokens,
119728
119886
  outputTokens: u.outputTokens ?? u.completionTokens,
119729
119887
  totalTokens: u.totalTokens,
119730
- costUsd: u.costUsd
119888
+ costUsd: u.costUsd ?? u.reportedCostUsd
119731
119889
  };
119732
119890
  }
119733
119891
  __name(extractStreamUsage, "extractStreamUsage");
@@ -120474,7 +120632,7 @@ function upsertBy(items, key6, next2) {
120474
120632
  __name(upsertBy, "upsertBy");
120475
120633
 
120476
120634
  // ../sdk/dist/session/workspace/hooked-driver.js
120477
- import { createHash as createHash31 } from "node:crypto";
120635
+ import { createHash as createHash32 } from "node:crypto";
120478
120636
  import { lstat as lstat10, readdir as readdir14, stat as stat16 } from "node:fs/promises";
120479
120637
  import { isAbsolute as isAbsolute18, join as join42, resolve as resolve24 } from "node:path";
120480
120638
  function worktreeHookHost(manager, sessionId5) {
@@ -120532,7 +120690,7 @@ async function fingerprint(root) {
120532
120690
  } catch {
120533
120691
  return void 0;
120534
120692
  }
120535
- return createHash31("sha1").update(lines.join("\n")).digest("hex");
120693
+ return createHash32("sha1").update(lines.join("\n")).digest("hex");
120536
120694
  }
120537
120695
  __name(fingerprint, "fingerprint");
120538
120696
  var HookedWorkspaceDriver = class {
@@ -122100,7 +122258,7 @@ var InMemorySessionStore = class {
122100
122258
  };
122101
122259
 
122102
122260
  // ../sdk/dist/store/session/disk.js
122103
- import { createHash as createHash32 } from "node:crypto";
122261
+ import { createHash as createHash33 } from "node:crypto";
122104
122262
  import { mkdir as mkdir19, rm as rm7 } from "node:fs/promises";
122105
122263
  import { join as join44, resolve as resolve27 } from "node:path";
122106
122264
  var SCHEMA9 = defineSchema({
@@ -122269,7 +122427,7 @@ var DiskSessionStore = class {
122269
122427
  }
122270
122428
  rootPathBindingLocation(rootPath, tenantId2) {
122271
122429
  const key6 = rootPathIndexKey(rootPath, tenantId2);
122272
- const digest8 = createHash32("sha256").update(key6).digest("hex");
122430
+ const digest8 = createHash33("sha256").update(key6).digest("hex");
122273
122431
  const root = join44(this.rootDir, "projects", ".root-path-index", digest8.slice(0, 2));
122274
122432
  return {
122275
122433
  legacyPath: join44(root, `${digest8.slice(2)}.json`),
@@ -123865,7 +124023,7 @@ function evalSetting(path2) {
123865
124023
  __name(evalSetting, "evalSetting");
123866
124024
 
123867
124025
  // ../sdk/dist/eval/settings.js
123868
- import { createHash as createHash33 } from "node:crypto";
124026
+ import { createHash as createHash34 } from "node:crypto";
123869
124027
  var SETTINGS_DIGEST_ALGORITHM = "sha256-canonical-json-1";
123870
124028
  var DEFAULT_SETTINGS_NAME = "default";
123871
124029
  function isRecord7(value) {
@@ -123961,7 +124119,7 @@ function buildSettingsSnapshot(name2, values = {}) {
123961
124119
  }
123962
124120
  return {
123963
124121
  name: name2,
123964
- digest: createHash33("sha256").update(canonical4).digest("hex"),
124122
+ digest: createHash34("sha256").update(canonical4).digest("hex"),
123965
124123
  algorithm: SETTINGS_DIGEST_ALGORITHM,
123966
124124
  // A copy through the canonical form, so what is stored is what was hashed.
123967
124125
  values: JSON.parse(canonical4)
@@ -124006,7 +124164,7 @@ function diffSettings(a, b) {
124006
124164
  __name(diffSettings, "diffSettings");
124007
124165
 
124008
124166
  // ../sdk/dist/eval/split.js
124009
- import { createHash as createHash34 } from "node:crypto";
124167
+ import { createHash as createHash35 } from "node:crypto";
124010
124168
  var SPLIT_FILTERS = ["tune", "held-out", "all"];
124011
124169
  var TASK_SPLIT_SEED = "namzu-eval-split-1";
124012
124170
  var HELD_OUT_FRACTION = 0.5;
@@ -124015,7 +124173,7 @@ function taskId(suite, name2) {
124015
124173
  }
124016
124174
  __name(taskId, "taskId");
124017
124175
  function hashedSplit(suite, name2) {
124018
- const digest8 = createHash34("sha256").update(`${TASK_SPLIT_SEED}\0${suite}\0${name2}`).digest();
124176
+ const digest8 = createHash35("sha256").update(`${TASK_SPLIT_SEED}\0${suite}\0${name2}`).digest();
124019
124177
  const fraction = digest8.readUIntBE(0, 6) / 2 ** 48;
124020
124178
  return fraction < HELD_OUT_FRACTION ? "held-out" : "tune";
124021
124179
  }
@@ -124539,15 +124697,19 @@ function judgeScorer(config2) {
124539
124697
  return {
124540
124698
  name: config2.name ?? "judge",
124541
124699
  async score(turn, evalCase, signal) {
124542
- const response = await collectChatCompletion(chatStreamWithSamplingRepair(provider, {
124543
- model: config2.model,
124544
- messages: [{ role: "user", content: buildPrompt(config2, turn, evalCase, scale) }],
124545
- // The same turn must grade the same way twice, or a
124546
- // regression cannot be told from sampling noise.
124547
- temperature: 0,
124548
- maxTokens: 512,
124549
- ...signal ? { signal } : {}
124550
- }));
124700
+ const response = await collectChatCompletion(
124701
+ // A grade is a side request: a thinking model must not spend the
124702
+ // whole allowance on reasoning and hand back nothing to grade.
124703
+ chatStreamForSideRequest(provider, {
124704
+ model: config2.model,
124705
+ messages: [{ role: "user", content: buildPrompt(config2, turn, evalCase, scale) }],
124706
+ // The same turn must grade the same way twice, or a
124707
+ // regression cannot be told from sampling noise.
124708
+ temperature: 0,
124709
+ maxTokens: 512,
124710
+ ...signal ? { signal } : {}
124711
+ }, (request) => chatStreamWithSamplingRepair(provider, request))
124712
+ );
124551
124713
  const verdict2 = parseVerdict2(response.message.content ?? "", scale);
124552
124714
  return {
124553
124715
  score: verdict2.grade / scale,
@@ -125341,8 +125503,14 @@ var CODING_AGENT_WORKING_DOCTRINE = `## How you work
125341
125503
  - After a broad \`git add\`, review what was staged before committing; a file whose name looks harmless can still carry a secret.
125342
125504
  - Never change git configuration or other persistent settings without asking: not \`user.name\` or \`user.email\`, hooks, remotes, credential helpers, or any \`git config\` (local or global), nor a shell profile or a tool's own config file. If a commit fails because no identity is set, stop and tell the user the command to set one; do not invent one.
125343
125505
 
125506
+ ### Answering a question
125507
+ - When the user asks a question or describes a problem, your reply answers or assesses it first. Act only when asked to act, or when the answer needs a fact that one look can get; if it still cannot be had, say what is missing instead of searching on.
125508
+ - Never open a reply with an apology or with agreement for its own sake. Begin with the answer.
125509
+ - A step that says it will do something does it in that step, and a turn never ends on a promise of a later answer.
125510
+ - Reply in the language the user wrote in and keep to the form they asked for, for example money and not tokens.
125511
+
125344
125512
  ### Keeping the user informed
125345
- - Before your first tool call, say in one short line what you are about to do and why. While you work, add a one-line update when you find something, change direction or hit a blocker, and after a long stretch without one, say in a few words where you are, then continue. Brief is good and silence is not; the tool rows on screen already show the details.
125513
+ - Before your first tool call, say in one short line what you are about to do and why. While you work, add a one-line update when you find something, change direction or hit a blocker, and after a long stretch without one, say in a few words where you are, then continue. Brief is good and silence is not; the tool rows on screen already show the details. A reply that is itself the answer needs no such line.
125346
125514
  - Keep the final reply short and specific: what changed, what was verified, what is left.`;
125347
125515
  var CODING_AGENT_DELEGATION_DOCTRINE = `### Planning and delegating
125348
125516
  - A task list is optional. For work of three or more distinct steps \u2014 several files, several separate stages \u2014 you may keep one: exactly one step marked in progress at a time, each marked done when it is done rather than at the end, and the list cleared away once everything is done. Do not make one for a single inspect-edit-test cycle or a two-step job; a list of one or two items tells the user nothing. Keeping a list is not progress on the task itself.
@@ -125829,7 +125997,7 @@ function analyzeContextUsage(input2) {
125829
125997
  __name(analyzeContextUsage, "analyzeContextUsage");
125830
125998
 
125831
125999
  // ../sdk/dist/learning/skill.js
125832
- import { createHash as createHash35 } from "node:crypto";
126000
+ import { createHash as createHash36 } from "node:crypto";
125833
126001
  var label = external_exports.string().trim().min(1).max(256);
125834
126002
  var name = external_exports.string().regex(/^[a-z0-9][a-z0-9_-]{0,63}$/);
125835
126003
  var digest3 = external_exports.string().regex(/^[a-f0-9]{64}$/);
@@ -125982,7 +126150,7 @@ function reviseLearningProfile(current, input2) {
125982
126150
  __name(reviseLearningProfile, "reviseLearningProfile");
125983
126151
  function hashLearningSkill(input2) {
125984
126152
  const candidate = candidateSchema.parse(input2);
125985
- return createHash35("sha256").update(JSON.stringify([
126153
+ return createHash36("sha256").update(JSON.stringify([
125986
126154
  candidate.name,
125987
126155
  candidate.description,
125988
126156
  candidate.body,
@@ -126022,13 +126190,13 @@ function promoteLearningSkill(current, input2, evaluation, inputEvidence) {
126022
126190
  verification: {
126023
126191
  baselineHash,
126024
126192
  candidateHash: hash4,
126025
- evidenceDigest: createHash35("sha256").update(JSON.stringify({ ...evaluation, protection })).digest("hex"),
126193
+ evidenceDigest: createHash36("sha256").update(JSON.stringify({ ...evaluation, protection })).digest("hex"),
126026
126194
  verificationTasks: review.verification.tasks.length,
126027
126195
  confirmationTasks: review.confirmation?.tasks.length ?? 0,
126028
126196
  protection: {
126029
126197
  verificationTasks: protection.verification.length,
126030
126198
  confirmationTasks: protection.confirmation.length,
126031
- planDigest: createHash35("sha256").update(JSON.stringify(protection)).digest("hex")
126199
+ planDigest: createHash36("sha256").update(JSON.stringify(protection)).digest("hex")
126032
126200
  }
126033
126201
  }
126034
126202
  };
@@ -126137,10 +126305,10 @@ function projectLearning(current, options) {
126137
126305
  __name(projectLearning, "projectLearning");
126138
126306
 
126139
126307
  // ../sdk/dist/learning/cycle.js
126140
- import { createHash as createHash37, randomUUID as randomUUID9 } from "node:crypto";
126308
+ import { createHash as createHash38, randomUUID as randomUUID9 } from "node:crypto";
126141
126309
 
126142
126310
  // ../sdk/dist/learning/guidance.js
126143
- import { createHash as createHash36 } from "node:crypto";
126311
+ import { createHash as createHash37 } from "node:crypto";
126144
126312
  import { readdir as readdir16 } from "node:fs/promises";
126145
126313
  import { join as join45 } from "node:path";
126146
126314
  import { isDeepStrictEqual as isDeepStrictEqual7 } from "node:util";
@@ -126185,7 +126353,7 @@ var ADOPTED_MARKER = "adopted.json";
126185
126353
  var REVISION_FILE = /^([1-9][0-9]{0,15})\.json$/;
126186
126354
  function keySegment(key6) {
126187
126355
  const encoded = revisionFileSegment(key6);
126188
- return encoded.length <= 255 ? encoded : `~sha256-${createHash36("sha256").update(encoded).digest("hex")}`;
126356
+ return encoded.length <= 255 ? encoded : `~sha256-${createHash37("sha256").update(encoded).digest("hex")}`;
126189
126357
  }
126190
126358
  __name(keySegment, "keySegment");
126191
126359
  function earlierGuidanceDirectory(root, scope) {
@@ -126755,7 +126923,7 @@ ${exploration.evidence.reason}`
126755
126923
  }, { subject: "exploration.trace", text: exploration.trace });
126756
126924
  await append("exploration", {
126757
126925
  observations: exploration,
126758
- digest: createHash37("sha256").update(JSON.stringify(exploration)).digest("hex")
126926
+ digest: createHash38("sha256").update(JSON.stringify(exploration)).digest("hex")
126759
126927
  }, "explore");
126760
126928
  const problem2 = resourceProblem(true);
126761
126929
  if (problem2)
@@ -126804,7 +126972,7 @@ ${s.revision}`).join("\n"),
126804
126972
  await append("evaluation", {
126805
126973
  baselineRevision,
126806
126974
  candidateRevision,
126807
- digest: createHash37("sha256").update(JSON.stringify(batch)).digest("hex"),
126975
+ digest: createHash38("sha256").update(JSON.stringify(batch)).digest("hex"),
126808
126976
  baselineTrajectories: batch.baseline.map((t) => t.trajectoryId),
126809
126977
  candidateTrajectories: batch.candidate.map((t) => t.trajectoryId)
126810
126978
  }, name2);
@@ -127335,7 +127503,7 @@ var SqliteLearningExperienceStore = class {
127335
127503
  };
127336
127504
 
127337
127505
  // ../sdk/dist/learning/store.js
127338
- import { createHash as createHash38, randomUUID as randomUUID11 } from "node:crypto";
127506
+ import { createHash as createHash39, randomUUID as randomUUID11 } from "node:crypto";
127339
127507
  import { closeSync as closeSync3, existsSync as existsSync6, fsyncSync, linkSync, lstatSync as lstatSync4, mkdirSync as mkdirSync7, openSync as openSync3, readFileSync as readFileSync6, unlinkSync, writeFileSync as writeFileSync4 } from "node:fs";
127340
127508
  import { createRequire as createRequire4 } from "node:module";
127341
127509
  import { dirname as dirname25, join as join46, resolve as resolve29 } from "node:path";
@@ -127364,7 +127532,7 @@ var learningObservationSchema = learningTargetSchema.extend({
127364
127532
 
127365
127533
  // ../sdk/dist/learning/store.js
127366
127534
  var uuid5 = external_exports.string().uuid().transform((id3) => id3.toLowerCase());
127367
- var digest4 = /* @__PURE__ */ __name((text11) => createHash38("sha256").update(text11).digest("hex"), "digest");
127535
+ var digest4 = /* @__PURE__ */ __name((text11) => createHash39("sha256").update(text11).digest("hex"), "digest");
127368
127536
  var MAX_EVENT_BYTES = 256 * 1024;
127369
127537
  var MAX_ARTIFACT_BYTES = 8 * 1024 * 1024;
127370
127538
  var MAX_EVENTS = 4096;
@@ -128083,7 +128251,7 @@ function parsePeerAddress(address2) {
128083
128251
  __name(parsePeerAddress, "parsePeerAddress");
128084
128252
 
128085
128253
  // ../sdk/dist/peers/record.js
128086
- import { createHash as createHash39 } from "node:crypto";
128254
+ import { createHash as createHash40 } from "node:crypto";
128087
128255
 
128088
128256
  // ../sdk/dist/peers/protocol.js
128089
128257
  var PEER_PROTOCOL_VERSION = "namzu-peer/1";
@@ -128234,7 +128402,7 @@ var PeerRecordSchema = external_exports.object({
128234
128402
  var PeerRecordReaderSchema = PeerRecordSchema.strip();
128235
128403
  var PEER_REF_HEX_LENGTH = 6;
128236
128404
  function derivePeerRef(sessionId5) {
128237
- return createHash39("sha256").update(sessionId5, "utf8").digest("hex").slice(0, PEER_REF_HEX_LENGTH);
128405
+ return createHash40("sha256").update(sessionId5, "utf8").digest("hex").slice(0, PEER_REF_HEX_LENGTH);
128238
128406
  }
128239
128407
  __name(derivePeerRef, "derivePeerRef");
128240
128408
 
@@ -130410,7 +130578,7 @@ var PAL_WORK_GUIDANCE = [
130410
130578
  ].join("\n\n");
130411
130579
 
130412
130580
  // ../sdk/dist/pals/reference-images.js
130413
- import { createHash as createHash40, randomUUID as randomUUID13 } from "node:crypto";
130581
+ import { createHash as createHash41, randomUUID as randomUUID13 } from "node:crypto";
130414
130582
  import { posix as posix4 } from "node:path";
130415
130583
  var MAX_IMAGES = 8;
130416
130584
  var MAX_IMAGE_BYTES = 3 * 1024 * 1024;
@@ -130454,7 +130622,7 @@ function preparePalReferenceImages(attachments) {
130454
130622
  attachmentIndex: index + 1,
130455
130623
  mediaType: attachment.mediaType,
130456
130624
  data: attachment.data,
130457
- sha256: createHash40("sha256").update(bytes).digest("hex"),
130625
+ sha256: createHash41("sha256").update(bytes).digest("hex"),
130458
130626
  bytes: bytes.length
130459
130627
  }));
130460
130628
  }
@@ -130641,7 +130809,7 @@ import { isDeepStrictEqual as isDeepStrictEqual10 } from "node:util";
130641
130809
  import { isDeepStrictEqual as isDeepStrictEqual8 } from "node:util";
130642
130810
 
130643
130811
  // ../sdk/dist/pals/communication/schema.js
130644
- import { createHash as createHash41 } from "node:crypto";
130812
+ import { createHash as createHash42 } from "node:crypto";
130645
130813
  var id2 = external_exports.string().uuid();
130646
130814
  var sessionId3 = external_exports.custom((s) => isEntityId(s, "session"));
130647
130815
  var turnId4 = external_exports.custom((s) => isEntityId(s, "turn"));
@@ -130736,7 +130904,7 @@ function freezeCommunicationValue(value) {
130736
130904
  }
130737
130905
  __name(freezeCommunicationValue, "freezeCommunicationValue");
130738
130906
  function hash3(value) {
130739
- return createHash41("sha256").update(JSON.stringify(value)).digest("hex");
130907
+ return createHash42("sha256").update(JSON.stringify(value)).digest("hex");
130740
130908
  }
130741
130909
  __name(hash3, "hash");
130742
130910
  function addressTuple(value) {
@@ -132444,10 +132612,10 @@ var DiskPalMessagePolicy = class {
132444
132612
  };
132445
132613
 
132446
132614
  // ../sdk/dist/pals/activity/source.js
132447
- import { createHash as createHash43 } from "node:crypto";
132615
+ import { createHash as createHash44 } from "node:crypto";
132448
132616
 
132449
132617
  // ../sdk/dist/pals/activity/projection.js
132450
- import { createHash as createHash42 } from "node:crypto";
132618
+ import { createHash as createHash43 } from "node:crypto";
132451
132619
  var activityId2 = external_exports.custom((value) => isEntityId(value, "activity"));
132452
132620
  var checkpointId3 = external_exports.custom((value) => isEntityId(value, "checkpoint"));
132453
132621
  var toolUseId2 = external_exports.string().min(1).max(512).regex(/^[A-Za-z0-9_.:-]+$/);
@@ -132506,7 +132674,7 @@ function projectPalActivity(entry, scopeHash) {
132506
132674
  return null;
132507
132675
  }
132508
132676
  return Object.freeze({
132509
- id: createHash42("sha256").update(JSON.stringify(["pal-activity/1", scopeHash, pointer2])).digest("hex"),
132677
+ id: createHash43("sha256").update(JSON.stringify(["pal-activity/1", scopeHash, pointer2])).digest("hex"),
132510
132678
  type: record4.type,
132511
132679
  sessionId: record4.sessionId,
132512
132680
  ..."turnId" in record4 ? { turnId: record4.turnId } : {},
@@ -132600,7 +132768,7 @@ function createPalActivitySource(options) {
132600
132768
  if (definition.id !== scope.palId || definition.revision !== scope.profileRevision)
132601
132769
  throw new PalActivityIntegrityError();
132602
132770
  const workspace = definition.workspace;
132603
- const scopeHash = createHash43("sha256").update(JSON.stringify([
132771
+ const scopeHash = createHash44("sha256").update(JSON.stringify([
132604
132772
  "pal-activity/1",
132605
132773
  scope.tenantId,
132606
132774
  scope.projectId,
@@ -132993,7 +133161,7 @@ import { join as join55, resolve as resolve34 } from "node:path";
132993
133161
  import { isDeepStrictEqual as isDeepStrictEqual11 } from "node:util";
132994
133162
 
132995
133163
  // ../sdk/dist/pals/channels/schema.js
132996
- import { createHash as createHash44 } from "node:crypto";
133164
+ import { createHash as createHash45 } from "node:crypto";
132997
133165
  var connectionSchema = external_exports.object({
132998
133166
  tenantId: addressSchema2.shape.tenantId,
132999
133167
  provider: label4,
@@ -133024,7 +133192,7 @@ var verifiedActionSchema = external_exports.object({
133024
133192
  actionId: label4,
133025
133193
  payloadDigest: external_exports.string().regex(/^[a-f0-9]{64}$/),
133026
133194
  payload: external_exports.string().min(1).max(32e3).refine((value) => !value.includes("\0"))
133027
- }).strict().refine((value) => createHash44("sha256").update(value.payload).digest("hex") === value.payloadDigest, "Channel action payload does not match its authenticated digest.");
133195
+ }).strict().refine((value) => createHash45("sha256").update(value.payload).digest("hex") === value.payloadDigest, "Channel action payload does not match its authenticated digest.");
133028
133196
  var routeDecisionSchema = external_exports.object({
133029
133197
  v: external_exports.literal(1),
133030
133198
  revision: external_exports.literal(1),
@@ -133877,7 +134045,7 @@ async function publishPalActivityOnce(options, id3, input2) {
133877
134045
  __name(publishPalActivityOnce, "publishPalActivityOnce");
133878
134046
 
133879
134047
  // ../sdk/dist/pals/activity/causality.js
133880
- import { createHash as createHash45 } from "node:crypto";
134048
+ import { createHash as createHash46 } from "node:crypto";
133881
134049
  import { isDeepStrictEqual as isDeepStrictEqual17 } from "node:util";
133882
134050
  var requestMarkerSchema = external_exports.object({
133883
134051
  type: external_exports.literal("request_envelope"),
@@ -133956,7 +134124,7 @@ function createPalActivityCausalityResolver(options) {
133956
134124
  const root = entries2[0]?.record;
133957
134125
  if (root?.type !== "session_started" || root.parent || root.forkedFrom || root.tenantId !== scope.tenantId || root.projectId !== scope.projectId || root.cwd !== workspace || root.origin?.protocol !== "desktop" || root.origin.externalSessionId !== JSON.stringify(["namzu-pal", scope.palId, scope.profileRevision, scope.sessionId]))
133958
134126
  unavailable3();
133959
- const scopeHash = createHash45("sha256").update(JSON.stringify([
134127
+ const scopeHash = createHash46("sha256").update(JSON.stringify([
133960
134128
  "pal-activity/1",
133961
134129
  scope.tenantId,
133962
134130
  scope.projectId,
@@ -136287,7 +136455,7 @@ ${observed}
136287
136455
  });
136288
136456
 
136289
136457
  // ../sdk/dist/tools/builtins/skill.js
136290
- import { createHash as createHash46 } from "node:crypto";
136458
+ import { createHash as createHash47 } from "node:crypto";
136291
136459
  var inputSchema16 = external_exports.object({
136292
136460
  name: external_exports.string().min(1).optional().describe("The skill to load, exactly as listed in the available-skills manifest. Omit it to list model-invocable skills."),
136293
136461
  args: external_exports.string().max(8e3).optional().describe("What to apply the skill to, in your own words. A skill that runs as a delegated agent sees only this and its own instructions, so say what it needs. Omit it on a continuation."),
@@ -136298,7 +136466,7 @@ var LIST_CURSOR_PATTERN = /^v1\.list\.(0|[1-9][0-9]*)\.([01])\.([A-Za-z0-9_-]{43
136298
136466
  var MAX_SKILLS_PER_PAGE = 20;
136299
136467
  var OVERSIZED_CATALOG_WARNING = "Some skills were omitted because their metadata is too large for this response budget.";
136300
136468
  function snapshotDigest(snapshot) {
136301
- return createHash46("sha256").update(JSON.stringify({
136469
+ return createHash47("sha256").update(JSON.stringify({
136302
136470
  version: 1,
136303
136471
  name: snapshot.name,
136304
136472
  body: snapshot.body,
@@ -136342,7 +136510,7 @@ function activeOutputCap(maxChars2) {
136342
136510
  }
136343
136511
  __name(activeOutputCap, "activeOutputCap");
136344
136512
  function listDigest(skills, maxChars2) {
136345
- return createHash46("sha256").update(JSON.stringify({ version: 1, kind: "list", maxChars: maxChars2 ?? null, skills })).digest("base64url");
136513
+ return createHash47("sha256").update(JSON.stringify({ version: 1, kind: "list", maxChars: maxChars2 ?? null, skills })).digest("base64url");
136346
136514
  }
136347
136515
  __name(listDigest, "listDigest");
136348
136516
  function serializeListPage(page) {
@@ -142355,6 +142523,7 @@ export {
142355
142523
  calculateCost,
142356
142524
  accumulateCost,
142357
142525
  accumulateUnpricedCost,
142526
+ accumulateReportedCost,
142358
142527
  formatCost,
142359
142528
  describeCost,
142360
142529
  ONE_MILLION_WINDOW_TOKENS,
@@ -142741,6 +142910,9 @@ export {
142741
142910
  MEMORY_VERIFY_NOTICE,
142742
142911
  recalledMemoryIds,
142743
142912
  createMemoryRecallStep,
142913
+ SIDE_REQUEST_REASONING_HEADROOM,
142914
+ sideRequestReasoning,
142915
+ chatStreamForSideRequest,
142744
142916
  findRetainedIndices,
142745
142917
  snapshotRequestContext,
142746
142918
  diffRequestContext,
@@ -143560,4 +143732,4 @@ export {
143560
143732
  WakeBudget,
143561
143733
  wakeBudgetFromEnv
143562
143734
  };
143563
- //# sourceMappingURL=chunk-JTEWIH66.js.map
143735
+ //# sourceMappingURL=chunk-2HRPWZXH.js.map