@oscharko-dev/keiko 1.1.13 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1598) hide show
  1. package/README.md +29 -5
  2. package/dist/ui/csp-hashes.json +6 -6
  3. package/dist/ui/static/404.html +1 -1
  4. package/dist/ui/static/__next.__PAGE__.txt +13 -13
  5. package/dist/ui/static/__next._full.txt +24 -22
  6. package/dist/ui/static/__next._tree.txt +3 -3
  7. package/dist/ui/static/_next/static/chunks/00_o0v2hokzqm.js +1 -0
  8. package/dist/ui/static/_next/static/chunks/014h2nyfet3kr.js +1 -0
  9. package/dist/ui/static/_next/static/chunks/02ahxxpsbao7z.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/0339vdalk0q6h.js +3 -0
  11. package/dist/ui/static/_next/static/chunks/{13fx5sqcncq4_.js → 05k2u3763ih_i.js} +1 -1
  12. package/dist/ui/static/_next/static/chunks/07f-n_9zq-s8q.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/07l0sfn1-mid2.js +1 -0
  14. package/dist/ui/static/_next/static/chunks/0851fl0j1ja4e.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/08896ukd2zxg6.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/08nml2svyd9vv.js +4 -0
  17. package/dist/ui/static/_next/static/chunks/08tg5xjyy073b.js +1 -0
  18. package/dist/ui/static/_next/static/chunks/{2cn33khz2ae-h.js → 08v-jyhi2uk8t.js} +1 -1
  19. package/dist/ui/static/_next/static/chunks/09p2ty64ellxo.js +1 -0
  20. package/dist/ui/static/_next/static/chunks/0_yx8_bs1t-27.js +1 -0
  21. package/dist/ui/static/_next/static/chunks/0b7xat6jxvrmr.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/0bz731buimrpv.js +1 -0
  23. package/dist/ui/static/_next/static/chunks/0d3a8-uxb000v.js +1 -0
  24. package/dist/ui/static/_next/static/chunks/0gf88p0jy1g5w.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/0jjhji-e9mg99.js +1 -0
  26. package/dist/ui/static/_next/static/chunks/0jtp8te-03j1-.js +1 -0
  27. package/dist/ui/static/_next/static/chunks/0lw_ax6yn_z8w.js +1 -0
  28. package/dist/ui/static/_next/static/chunks/0mcg_spbohpl3.css +1 -0
  29. package/dist/ui/static/_next/static/chunks/0oocu54xdbxf3.js +2 -0
  30. package/dist/ui/static/_next/static/chunks/{39w0xj7fyy7sp.js → 0pf5ot48kepng.js} +1 -1
  31. package/dist/ui/static/_next/static/chunks/0rs9egrg2q85w.js +1 -0
  32. package/dist/ui/static/_next/static/chunks/{1o2cihsnxhmh6.js → 0rsutf6da798_.js} +1 -1
  33. package/dist/ui/static/_next/static/chunks/0rw0et8bt6w-b.js +1 -0
  34. package/dist/ui/static/_next/static/chunks/0su17ctiaqfp0.js +1 -0
  35. package/dist/ui/static/_next/static/chunks/0w2fp3hjrfx32.js +1 -0
  36. package/dist/ui/static/_next/static/chunks/0wdn9qetndtsj.js +1 -0
  37. package/dist/ui/static/_next/static/chunks/0wok-g3ndtvch.js +1 -0
  38. package/dist/ui/static/_next/static/chunks/0x42c1na2ia6m.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/0xu2rnpdr4kzd.js +1 -0
  40. package/dist/ui/static/_next/static/chunks/0y3402xorco2c.js +1 -0
  41. package/dist/ui/static/_next/static/chunks/10p1rdlk7n_9w.js +1 -0
  42. package/dist/ui/static/_next/static/chunks/12aem44im45f-.js +1 -0
  43. package/dist/ui/static/_next/static/chunks/18kcx5kpyxr16.js +1 -0
  44. package/dist/ui/static/_next/static/chunks/1aivbuztyv67o.js +10 -0
  45. package/dist/ui/static/_next/static/chunks/1c0u0qq0vwkc4.js +1 -0
  46. package/dist/ui/static/_next/static/chunks/1f05h21irrvbs.js +1 -0
  47. package/dist/ui/static/_next/static/chunks/1ggcq_lho062y.js +1 -0
  48. package/dist/ui/static/_next/static/chunks/1o-own3kgpojf.js +1 -0
  49. package/dist/ui/static/_next/static/chunks/{25f22x86d_a1n.js → 1osovjtjgxmbl.js} +1 -1
  50. package/dist/ui/static/_next/static/chunks/{29dj-5kj_vfl_.js → 1qh0x9_258ol2.js} +1 -1
  51. package/dist/ui/static/_next/static/chunks/{2kh0qihno0n1w.js → 1rp_smu1jjw45.js} +1 -1
  52. package/dist/ui/static/_next/static/chunks/1uu9slkxpbe4y.js +1 -0
  53. package/dist/ui/static/_next/static/chunks/1vy80v9kp_rqv.js +1 -0
  54. package/dist/ui/static/_next/static/chunks/{0l7cc8q83migz.css → 1wj7exxi550gi.css} +1 -1
  55. package/dist/ui/static/_next/static/chunks/1x-sfb1_rl15-.js +1 -0
  56. package/dist/ui/static/_next/static/chunks/1zczte6xkwvcl.js +1 -0
  57. package/dist/ui/static/_next/static/chunks/1zqfkyeqq5cl8.js +1 -0
  58. package/dist/ui/static/_next/static/chunks/1zudszthinjcb.js +1 -0
  59. package/dist/ui/static/_next/static/chunks/{18qu5m_in_h3x.js → 1zw11x_e-3fzu.js} +1 -1
  60. package/dist/ui/static/_next/static/chunks/20-u8pg5ve_cz.js +1 -0
  61. package/dist/ui/static/_next/static/chunks/{1kacubgk0y2ki.js → 21-6b7rkmtvg8.js} +1 -1
  62. package/dist/ui/static/_next/static/chunks/22zxuap4am9bs.js +1 -0
  63. package/dist/ui/static/_next/static/chunks/23lstlpeh2rb-.js +1 -0
  64. package/dist/ui/static/_next/static/chunks/25x9hf4wdlde7.js +1 -0
  65. package/dist/ui/static/_next/static/chunks/261euyxjrb0lv.js +1 -0
  66. package/dist/ui/static/_next/static/chunks/2astwwmbb8e53.js +1 -0
  67. package/dist/ui/static/_next/static/chunks/2duxlo7cg_s7_.js +3 -0
  68. package/dist/ui/static/_next/static/chunks/2dwrkrp-gqyej.js +1 -0
  69. package/dist/ui/static/_next/static/chunks/2ef4l5re80dgi.js +1 -0
  70. package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +1 -0
  71. package/dist/ui/static/_next/static/chunks/{199p3upt-xa37.js → 2h4vqb2rt3mr1.js} +1 -1
  72. package/dist/ui/static/_next/static/chunks/{3inx1ugcc-jd-.css → 2hu5w89yy7_s-.css} +1 -0
  73. package/dist/ui/static/_next/static/chunks/2imh4llefx9d1.js +1 -0
  74. package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +1 -0
  75. package/dist/ui/static/_next/static/chunks/{0m1163red7mw7.js → 2nlmtsm3kjmbh.js} +1 -1
  76. package/dist/ui/static/_next/static/chunks/{1c1gbfapof8m0.js → 2oq1uk07ft9l0.js} +1 -1
  77. package/dist/ui/static/_next/static/chunks/2ov72plu69iiv.js +1 -0
  78. package/dist/ui/static/_next/static/chunks/2ta3jr_uw2j0x.js +1 -0
  79. package/dist/ui/static/_next/static/chunks/2u5_pu1uc6seh.js +1 -0
  80. package/dist/ui/static/_next/static/chunks/2wuj7qxm6mleh.js +1 -0
  81. package/dist/ui/static/_next/static/chunks/2xd3_a4jlxum2.css +1 -0
  82. package/dist/ui/static/_next/static/chunks/2yuvdrio9ki3a.css +39 -0
  83. package/dist/ui/static/_next/static/chunks/2z5c2glupanq_.js +1 -0
  84. package/dist/ui/static/_next/static/chunks/3-7tka4cib69h.js +1 -0
  85. package/dist/ui/static/_next/static/chunks/3-dorttkhs3i2.js +1 -0
  86. package/dist/ui/static/_next/static/chunks/3-pcgkdsv7x4z.js +1 -0
  87. package/dist/ui/static/_next/static/chunks/{0o_lmzxpjfeky.js → 3007ncr8g751a.js} +1 -1
  88. package/dist/ui/static/_next/static/chunks/307xuhrdmetj7.js +1 -0
  89. package/dist/ui/static/_next/static/chunks/30og31pxg8wrp.js +1 -0
  90. package/dist/ui/static/_next/static/chunks/32jgtvf2y-f54.js +1 -0
  91. package/dist/ui/static/_next/static/chunks/35ivnhnxr9dmz.js +1 -0
  92. package/dist/ui/static/_next/static/chunks/363iuc3t94rie.js +1 -0
  93. package/dist/ui/static/_next/static/chunks/36c8jty3kllje.js +1 -0
  94. package/dist/ui/static/_next/static/chunks/37qsy798-g74f.js +1 -0
  95. package/dist/ui/static/_next/static/chunks/37v998g0cm36x.js +1 -0
  96. package/dist/ui/static/_next/static/chunks/3946_dfcd9xr-.js +1 -0
  97. package/dist/ui/static/_next/static/chunks/3b05n-007vc3e.js +1 -0
  98. package/dist/ui/static/_next/static/chunks/3cpuzx4fetu6y.js +1 -0
  99. package/dist/ui/static/_next/static/chunks/3d27ozm1boe_5.js +3 -0
  100. package/dist/ui/static/_next/static/chunks/3eg8pcox5copv.js +1 -0
  101. package/dist/ui/static/_next/static/chunks/3ftqojkan-5cl.js +1 -0
  102. package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +1 -0
  103. package/dist/ui/static/_next/static/chunks/{3kmozkq6tgqnz.js → 3g4px251sg85e.js} +1 -1
  104. package/dist/ui/static/_next/static/chunks/3gyetohi_flhb.js +1 -0
  105. package/dist/ui/static/_next/static/chunks/3hjs3gk92eave.js +1 -0
  106. package/dist/ui/static/_next/static/chunks/3ksbq-nwkgwob.js +1 -0
  107. package/dist/ui/static/_next/static/chunks/{1n3b0bhd9q0p6.js → 3l3xw2fmr7pct.js} +3 -3
  108. package/dist/ui/static/_next/static/chunks/3neoxf-shnu-d.js +1 -0
  109. package/dist/ui/static/_next/static/chunks/3or_0c84ozskx.js +1 -0
  110. package/dist/ui/static/_next/static/chunks/3payvp5ps2fne.css +3 -0
  111. package/dist/ui/static/_next/static/chunks/3q-93bizla3k1.js +1 -0
  112. package/dist/ui/static/_next/static/chunks/3qbbcm9fuk494.js +1 -0
  113. package/dist/ui/static/_next/static/chunks/3rhep1yhgo6a7.js +1 -0
  114. package/dist/ui/static/_next/static/chunks/3sgbsntbbci5y.js +1 -0
  115. package/dist/ui/static/_next/static/chunks/3tcw3qy3rrkyf.js +1 -0
  116. package/dist/ui/static/_next/static/chunks/3tqd6avtamgd5.js +1 -0
  117. package/dist/ui/static/_next/static/chunks/3ty06iqiblqi4.js +1 -0
  118. package/dist/ui/static/_next/static/chunks/{1ydfda18zlx4w.js → 3vjm30f1if00s.js} +1 -1
  119. package/dist/ui/static/_next/static/chunks/3wz98o059mhtf.js +1 -0
  120. package/dist/ui/static/_next/static/chunks/3x2p8mgrihuet.js +1 -0
  121. package/dist/ui/static/_next/static/chunks/3xi3iilmw9_vy.js +5 -0
  122. package/dist/ui/static/_next/static/chunks/3z5edm1fpkcuq.js +1 -0
  123. package/dist/ui/static/_next/static/chunks/3zxbqudoeow_a.js +1 -0
  124. package/dist/ui/static/_next/static/chunks/3zxwlxhzm5swe.js +1 -0
  125. package/dist/ui/static/_next/static/chunks/{3chx0gpjqrhod.js → 405vbzo164i84.js} +3 -3
  126. package/dist/ui/static/_next/static/chunks/42pls95xys34g.js +1 -0
  127. package/dist/ui/static/_next/static/chunks/43kutp14mqi-j.js +1 -0
  128. package/dist/ui/static/_next/static/chunks/43y3xn64quyo2.js +1 -0
  129. package/dist/ui/static/_next/static/chunks/43z5mfwx4lk4w.js +1 -0
  130. package/dist/ui/static/_next/static/chunks/{turbopack-2fb3mn6go2p-t.js → turbopack-34k8wgx0iwdzg.js} +1 -1
  131. package/dist/ui/static/_not-found/__next._full.txt +22 -21
  132. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +10 -10
  133. package/dist/ui/static/_not-found/__next._tree.txt +2 -2
  134. package/dist/ui/static/_not-found.html +1 -1
  135. package/dist/ui/static/_not-found.txt +22 -21
  136. package/dist/ui/static/atlassian-connectors/__next._full.txt +24 -23
  137. package/dist/ui/static/atlassian-connectors/__next._tree.txt +2 -2
  138. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +12 -12
  139. package/dist/ui/static/atlassian-connectors.html +1 -1
  140. package/dist/ui/static/atlassian-connectors.txt +24 -23
  141. package/dist/ui/static/index.html +1 -1
  142. package/dist/ui/static/index.txt +24 -22
  143. package/dist/ui/static/launch/__next._full.txt +27 -26
  144. package/dist/ui/static/launch/__next._tree.txt +3 -3
  145. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +13 -13
  146. package/dist/ui/static/launch.html +1 -1
  147. package/dist/ui/static/launch.txt +27 -26
  148. package/dist/ui/static/local-knowledge/__next._full.txt +27 -26
  149. package/dist/ui/static/local-knowledge/__next._tree.txt +3 -3
  150. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +13 -13
  151. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +25 -24
  152. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
  153. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +12 -12
  154. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  155. package/dist/ui/static/local-knowledge/capsule.txt +25 -24
  156. package/dist/ui/static/local-knowledge.html +1 -1
  157. package/dist/ui/static/local-knowledge.txt +27 -26
  158. package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts +6 -2
  159. package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts.map +1 -1
  160. package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.js +54 -8
  161. package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts +35 -0
  162. package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts.map +1 -0
  163. package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.js +66 -0
  164. package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts +2 -1
  165. package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts.map +1 -1
  166. package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.js +2 -1
  167. package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts +13 -2
  168. package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts.map +1 -1
  169. package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.js +67 -126
  170. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts +4 -1
  171. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts.map +1 -1
  172. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.js +4 -1
  173. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts +10 -2
  174. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts.map +1 -1
  175. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.js +59 -46
  176. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts +18 -3
  177. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts.map +1 -1
  178. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.js +176 -53
  179. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +35 -0
  180. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -0
  181. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +3650 -0
  182. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts +5 -0
  183. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts.map +1 -0
  184. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.js +74 -0
  185. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts +25 -0
  186. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts.map +1 -0
  187. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.js +184 -0
  188. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts +33 -0
  189. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts.map +1 -0
  190. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.js +195 -0
  191. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts +7 -0
  192. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts.map +1 -0
  193. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.js +19 -0
  194. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts +11 -0
  195. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts.map +1 -0
  196. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.js +20 -0
  197. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts +6 -2
  198. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts.map +1 -1
  199. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.js +442 -60
  200. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +45 -0
  201. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -0
  202. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +53 -0
  203. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts +27 -0
  204. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts.map +1 -0
  205. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.js +46 -0
  206. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts +3 -0
  207. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts.map +1 -0
  208. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.js +5 -0
  209. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts +12 -0
  210. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts.map +1 -0
  211. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.js +226 -0
  212. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts +41 -0
  213. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts.map +1 -0
  214. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.js +672 -0
  215. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts +13 -0
  216. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts.map +1 -0
  217. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.js +363 -0
  218. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.d.ts +4 -1
  219. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.d.ts.map +1 -1
  220. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.js +17 -5
  221. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.d.ts.map +1 -1
  222. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.js +16 -9
  223. package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts +1 -1
  224. package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts.map +1 -1
  225. package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.js +16 -10
  226. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts +10 -0
  227. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts.map +1 -0
  228. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.js +21 -0
  229. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts +11 -3
  230. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts.map +1 -1
  231. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.js +142 -23
  232. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts +25 -22
  233. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts.map +1 -1
  234. package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.js +694 -198
  235. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  236. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts +8 -0
  237. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts.map +1 -1
  238. package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.js +25 -1
  239. package/node_modules/@oscharko-dev/keiko-cli/dist/init.d.ts.map +1 -1
  240. package/node_modules/@oscharko-dev/keiko-cli/dist/init.js +1 -0
  241. package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.js +1 -1
  242. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts +22 -0
  243. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts.map +1 -0
  244. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.js +50 -0
  245. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +4 -1
  246. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
  247. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +137 -32
  248. package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.d.ts.map +1 -1
  249. package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.js +3 -1
  250. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
  251. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +1 -0
  252. package/node_modules/@oscharko-dev/keiko-cli/dist/runner.js +1 -1
  253. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +25 -4
  254. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
  255. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +144 -12
  256. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +16 -113
  257. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
  258. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +71 -358
  259. package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts +1 -21
  260. package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts.map +1 -1
  261. package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.js +14 -112
  262. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts +1 -1
  263. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts.map +1 -1
  264. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.js +6 -18
  265. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts +10 -0
  266. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts.map +1 -1
  267. package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.js +2 -0
  268. package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts +23 -0
  269. package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts.map +1 -0
  270. package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.js +521 -0
  271. package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts +647 -0
  272. package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts.map +1 -0
  273. package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.js +338 -0
  274. package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts +3 -5
  275. package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts.map +1 -1
  276. package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.js +6 -42
  277. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +0 -18
  278. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
  279. package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +118 -1276
  280. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts +15 -0
  281. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts.map +1 -0
  282. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.js +91 -0
  283. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +2 -0
  284. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
  285. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +31 -3
  286. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  287. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  288. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts.map +1 -1
  289. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  290. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  291. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +519 -139
  292. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
  293. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +783 -113
  294. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts +4 -0
  295. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts.map +1 -0
  296. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.js +123 -0
  297. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +31805 -0
  298. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -0
  299. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +35636 -0
  300. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +12694 -34263
  301. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
  302. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +16845 -40229
  303. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +174 -5
  304. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
  305. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +99 -14
  306. package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts +49 -0
  307. package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts.map +1 -0
  308. package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.js +380 -0
  309. package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts +12 -0
  310. package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts.map +1 -0
  311. package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.js +63 -0
  312. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts +37 -0
  313. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts.map +1 -0
  314. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.js +67 -0
  315. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts +2 -35
  316. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts.map +1 -1
  317. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.js +1 -62
  318. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts +25 -5
  319. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts.map +1 -1
  320. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.js +28 -14
  321. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts +38 -1
  322. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts.map +1 -1
  323. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.js +94 -2
  324. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts +3 -3
  325. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts.map +1 -1
  326. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.js +64 -17
  327. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +8 -4
  328. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts.map +1 -1
  329. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.js +1 -0
  330. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts +17 -1
  331. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts.map +1 -1
  332. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.js +13 -0
  333. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime.js +1 -1
  334. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts.map +1 -1
  335. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.js +27 -3
  336. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +30 -2
  337. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
  338. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +27 -0
  339. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +39 -6
  340. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
  341. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +230 -100
  342. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts +7 -0
  343. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts.map +1 -0
  344. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.js +14 -0
  345. package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.d.ts.map +1 -1
  346. package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.js +4 -0
  347. package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.d.ts.map +1 -1
  348. package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.js +8 -1
  349. package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts +15 -1
  350. package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts.map +1 -1
  351. package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.js +20 -6
  352. package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts +3 -0
  353. package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts.map +1 -0
  354. package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.js +12 -0
  355. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +184 -5
  356. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  357. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +750 -11
  358. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +17 -12
  359. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
  360. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +76 -36
  361. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.d.ts.map +1 -1
  362. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.js +0 -2
  363. package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +15 -0
  364. package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts.map +1 -1
  365. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +92 -7
  366. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
  367. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +54 -10
  368. package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts +4 -0
  369. package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts.map +1 -1
  370. package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.js +13 -0
  371. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +1 -1
  372. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
  373. package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts +35 -0
  374. package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts.map +1 -0
  375. package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.js +125 -0
  376. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +9 -9
  377. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  378. package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts +15 -0
  379. package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts.map +1 -0
  380. package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.js +388 -0
  381. package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts +26 -2
  382. package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts.map +1 -1
  383. package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.js +109 -6
  384. package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts +42 -0
  385. package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts.map +1 -0
  386. package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.js +151 -0
  387. package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.d.ts +5 -6
  388. package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.d.ts.map +1 -1
  389. package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.js +16 -16
  390. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts +33 -17
  391. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts.map +1 -1
  392. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.js +230 -26
  393. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts +13 -0
  394. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts.map +1 -0
  395. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.js +206 -0
  396. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts +6 -0
  397. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts.map +1 -0
  398. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.js +11 -0
  399. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts +26 -0
  400. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts.map +1 -0
  401. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.js +107 -0
  402. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts +154 -0
  403. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts.map +1 -0
  404. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.js +74 -0
  405. package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.d.ts.map +1 -1
  406. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +6 -2
  407. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts.map +1 -1
  408. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +71 -2
  409. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts +2 -0
  410. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts.map +1 -1
  411. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.js +2 -0
  412. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +42 -0
  413. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts.map +1 -1
  414. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.js +18 -0
  415. package/node_modules/@oscharko-dev/keiko-contracts/package.json +25 -1
  416. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  417. package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts.map +1 -1
  418. package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.js +3 -0
  419. package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts +5 -0
  420. package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts.map +1 -1
  421. package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.js +28 -5
  422. package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.d.ts.map +1 -1
  423. package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.js +1 -0
  424. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  425. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts.map +1 -1
  426. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  427. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  428. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  429. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts.map +1 -1
  430. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  431. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  432. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  433. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts.map +1 -1
  434. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  435. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  436. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.d.ts +1 -0
  437. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.d.ts.map +1 -1
  438. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.js +49 -38
  439. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.d.ts.map +1 -1
  440. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.js +64 -25
  441. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts +14 -0
  442. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts.map +1 -1
  443. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts +1 -1
  444. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts.map +1 -1
  445. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.js +1 -1
  446. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.d.ts.map +1 -1
  447. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.js +1 -0
  448. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts.map +1 -1
  449. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.js +6 -0
  450. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts +1 -1
  451. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts.map +1 -1
  452. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.js +2 -33
  453. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/html-parser.js +5 -4
  454. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts +2 -0
  455. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts.map +1 -1
  456. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.js +2 -0
  457. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts +2 -1
  458. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts.map +1 -1
  459. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.js +1 -0
  460. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts +9 -2
  461. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts.map +1 -1
  462. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.js +18 -10
  463. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts +0 -2
  464. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts.map +1 -1
  465. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.js +0 -11
  466. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts +0 -11
  467. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts.map +1 -1
  468. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.js +9 -78
  469. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  470. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts.map +1 -1
  471. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  472. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  473. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  474. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts.map +1 -1
  475. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  476. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  477. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts.map +1 -1
  478. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +3 -0
  479. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  480. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts.map +1 -1
  481. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  482. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  483. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  484. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts.map +1 -1
  485. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  486. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  487. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  488. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts.map +1 -1
  489. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  490. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  491. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.d.ts +0 -12
  492. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.d.ts.map +1 -1
  493. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.js +0 -32
  494. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts +2 -11
  495. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts.map +1 -1
  496. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.js +10 -144
  497. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts +1 -2
  498. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts.map +1 -1
  499. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.js +7 -14
  500. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts +3 -2
  501. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts.map +1 -1
  502. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.js +17 -48
  503. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts +2 -1
  504. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts.map +1 -1
  505. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.js +1 -1
  506. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  507. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts.map +1 -1
  508. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  509. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  510. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.d.ts +9 -0
  511. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.d.ts.map +1 -1
  512. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.js +24 -10
  513. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts +1 -0
  514. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
  515. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +203 -2
  516. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts +2 -0
  517. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts.map +1 -1
  518. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.js +2 -0
  519. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts +8 -0
  520. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts.map +1 -0
  521. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.js +44 -0
  522. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +113 -1
  523. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
  524. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +696 -138
  525. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts +4 -0
  526. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
  527. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +28 -3
  528. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +5 -4
  529. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
  530. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +3 -3
  531. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +23 -0
  532. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
  533. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +83 -10
  534. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts +10 -0
  535. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts.map +1 -1
  536. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.js +54 -2
  537. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
  538. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +2 -0
  539. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +17 -3
  540. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  541. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +377 -77
  542. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
  543. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +3 -0
  544. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.d.ts.map +1 -1
  545. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.js +4 -1
  546. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.d.ts.map +1 -1
  547. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.js +5 -2
  548. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +18 -0
  549. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
  550. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +49 -0
  551. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +168 -3
  552. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
  553. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +629 -72
  554. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts +9 -1
  555. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
  556. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +62 -16
  557. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +25 -0
  558. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts.map +1 -1
  559. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  560. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts.map +1 -1
  561. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  562. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  563. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  564. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts +2 -2
  565. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
  566. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +41 -15
  567. package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +2 -1
  568. package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
  569. package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.js +1 -0
  570. package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts +16 -0
  571. package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts.map +1 -0
  572. package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.js +128 -0
  573. package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
  574. package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +49 -7
  575. package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts +3 -0
  576. package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts.map +1 -1
  577. package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.js +31 -6
  578. package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts +11 -0
  579. package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts.map +1 -0
  580. package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.js +141 -0
  581. package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.d.ts.map +1 -1
  582. package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.js +2 -0
  583. package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts +8 -0
  584. package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
  585. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  586. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  587. package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts +18 -3
  588. package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts.map +1 -1
  589. package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.js +40 -7
  590. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts +85 -1
  591. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts.map +1 -1
  592. package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.js +128 -3
  593. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +1 -1
  594. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
  595. package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -1
  596. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts +14 -0
  597. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts.map +1 -1
  598. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.js +183 -25
  599. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +12 -1
  600. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
  601. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +65 -15
  602. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  603. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +1 -1
  604. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  605. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  606. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.d.ts +10 -0
  607. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.d.ts.map +1 -0
  608. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.js +84 -0
  609. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts +13 -3
  610. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts.map +1 -1
  611. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.js +14 -25
  612. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts +9 -2
  613. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -1
  614. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +48 -2
  615. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts +2 -1
  616. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts.map +1 -1
  617. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.js +28 -7
  618. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts +5 -0
  619. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts.map +1 -0
  620. package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.js +8 -0
  621. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts +25 -0
  622. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts.map +1 -0
  623. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.js +111 -0
  624. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts +3 -1
  625. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts.map +1 -1
  626. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.js +101 -0
  627. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -1
  628. package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +235 -33
  629. package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts +3 -1
  630. package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts.map +1 -1
  631. package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.js +9 -1
  632. package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts +4 -0
  633. package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts.map +1 -0
  634. package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.js +7 -0
  635. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +2 -1
  636. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  637. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +161 -79
  638. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts +27 -2
  639. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts.map +1 -1
  640. package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.js +48 -7
  641. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts.map +1 -1
  642. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.js +3 -2
  643. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.d.ts.map +1 -1
  644. package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.js +4 -2
  645. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts +3 -0
  646. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts.map +1 -0
  647. package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.js +51 -0
  648. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  649. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +58 -21
  650. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
  651. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +790 -12
  652. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts +8 -0
  653. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts.map +1 -1
  654. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.js +112 -0
  655. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +4 -4
  656. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
  657. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +31 -17
  658. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +6 -4
  659. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
  660. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +10 -10
  661. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts +9 -2
  662. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts.map +1 -1
  663. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.js +13 -3
  664. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts +10 -0
  665. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts.map +1 -1
  666. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.js +59 -5
  667. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.d.ts.map +1 -1
  668. package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.js +1 -0
  669. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts +11 -1
  670. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts.map +1 -1
  671. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.js +21 -7
  672. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts.map +1 -1
  673. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +8 -6
  674. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.d.ts.map +1 -1
  675. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.js +85 -2
  676. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +50 -2
  677. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
  678. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +25 -0
  679. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts +14 -7
  680. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts.map +1 -1
  681. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.js +33 -26
  682. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +46 -0
  683. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
  684. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +33 -0
  685. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts +51 -3
  686. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts.map +1 -1
  687. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.js +97 -5
  688. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +8 -2
  689. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
  690. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +265 -29
  691. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +37 -1
  692. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
  693. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +416 -34
  694. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts +5 -3
  695. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts.map +1 -1
  696. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.js +14 -7
  697. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +21 -0
  698. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts.map +1 -1
  699. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts +79 -0
  700. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts.map +1 -0
  701. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.js +305 -0
  702. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts +100 -0
  703. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts.map +1 -0
  704. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.js +363 -0
  705. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
  706. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +13 -0
  707. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts +71 -0
  708. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts.map +1 -0
  709. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.js +294 -0
  710. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts +47 -0
  711. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts.map +1 -0
  712. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.js +65 -0
  713. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts +7 -0
  714. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts.map +1 -0
  715. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.js +79 -0
  716. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +18 -0
  717. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
  718. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +201 -42
  719. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts +6 -1
  720. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
  721. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +733 -17
  722. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +5 -1
  723. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
  724. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +262 -57
  725. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +190 -2
  726. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
  727. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.js +57 -1
  728. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts +3 -1
  729. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts.map +1 -1
  730. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.js +14 -2
  731. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts +4 -0
  732. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts.map +1 -1
  733. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.js +50 -1
  734. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +21 -3
  735. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
  736. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +143 -8
  737. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts +63 -1
  738. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts.map +1 -1
  739. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +710 -170
  740. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts +108 -0
  741. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts.map +1 -0
  742. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.js +477 -0
  743. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts +2 -4
  744. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts.map +1 -1
  745. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +53 -46
  746. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +4 -1
  747. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts.map +1 -1
  748. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.js +51 -52
  749. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts +48 -0
  750. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts.map +1 -0
  751. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.js +179 -0
  752. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts +60 -0
  753. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts.map +1 -0
  754. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.js +61 -0
  755. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts +7 -7
  756. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts.map +1 -1
  757. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.js +48 -15
  758. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts +3 -0
  759. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts.map +1 -1
  760. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.js +14 -0
  761. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts.map +1 -1
  762. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.js +11 -4
  763. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts +2 -0
  764. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map +1 -1
  765. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js +28 -14
  766. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts +3 -0
  767. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts.map +1 -1
  768. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.js +48 -20
  769. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +5 -4
  770. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
  771. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +15 -14
  772. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts +10 -0
  773. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts.map +1 -0
  774. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.js +27 -0
  775. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts +6 -3
  776. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts.map +1 -1
  777. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.js +15 -15
  778. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +17 -3
  779. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
  780. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +198 -43
  781. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +97 -5
  782. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
  783. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +1334 -103
  784. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts +79 -0
  785. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts.map +1 -0
  786. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.js +176 -0
  787. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +177 -25
  788. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
  789. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +131 -38
  790. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +18 -0
  791. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
  792. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +298 -32
  793. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +6 -0
  794. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
  795. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +14 -3
  796. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +33 -0
  797. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -0
  798. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +213 -0
  799. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts +1 -1
  800. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
  801. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +2 -8
  802. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.js +15 -5
  803. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +5 -0
  804. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +25 -3
  805. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
  806. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +227 -40
  807. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +20 -1
  808. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
  809. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +224 -12
  810. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +3 -1
  811. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
  812. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +20 -5
  813. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +8 -1
  814. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
  815. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.d.ts.map +1 -1
  816. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.js +2 -1
  817. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts.map +1 -1
  818. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.js +2 -1
  819. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +262 -60
  820. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +18 -0
  821. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
  822. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +43 -6
  823. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionWorkspaceHeadReader.js +23 -3
  824. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +38 -0
  825. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts.map +1 -1
  826. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.js +115 -16
  827. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts +20 -0
  828. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts.map +1 -0
  829. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.js +48 -0
  830. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts +5 -0
  831. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts.map +1 -1
  832. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.js +5 -1
  833. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts +100 -4
  834. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts.map +1 -1
  835. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.js +435 -25
  836. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts +61 -0
  837. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts.map +1 -0
  838. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.js +123 -0
  839. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts +7 -0
  840. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts.map +1 -1
  841. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.js +26 -3
  842. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.d.ts.map +1 -1
  843. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.js +10 -0
  844. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts +2 -0
  845. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts.map +1 -1
  846. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.js +17 -2
  847. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts +69 -2
  848. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts.map +1 -1
  849. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.js +266 -7
  850. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +15 -4
  851. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
  852. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +792 -126
  853. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts +2 -2
  854. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts.map +1 -1
  855. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +139 -0
  856. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts +2 -0
  857. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts.map +1 -1
  858. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.js +176 -19
  859. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts.map +1 -1
  860. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.js +72 -13
  861. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts +3 -0
  862. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts.map +1 -0
  863. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.js +48 -0
  864. package/node_modules/@oscharko-dev/keiko-server/dist/correlation.d.ts.map +1 -1
  865. package/node_modules/@oscharko-dev/keiko-server/dist/correlation.js +8 -5
  866. package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.d.ts.map +1 -1
  867. package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.js +5 -0
  868. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +61 -8
  869. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  870. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +281 -77
  871. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +15 -1
  872. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  873. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +108 -6
  874. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +9 -3
  875. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts.map +1 -1
  876. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.js +21 -94
  877. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.d.ts.map +1 -1
  878. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.js +1 -0
  879. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts +5 -1
  880. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts.map +1 -1
  881. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.js +60 -12
  882. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts +13 -2
  883. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
  884. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +180 -74
  885. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts +4 -0
  886. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts.map +1 -1
  887. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.js +81 -10
  888. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts +3 -0
  889. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts.map +1 -0
  890. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.js +35 -0
  891. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts +5 -0
  892. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts.map +1 -0
  893. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.js +44 -0
  894. package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts +26 -0
  895. package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts.map +1 -0
  896. package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.js +87 -0
  897. package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.d.ts.map +1 -1
  898. package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.js +0 -3
  899. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +5 -2
  900. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
  901. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +91 -13
  902. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts +128 -0
  903. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts.map +1 -0
  904. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.js +213 -0
  905. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
  906. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +72 -24
  907. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts +13 -0
  908. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts.map +1 -0
  909. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.js +121 -0
  910. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.d.ts +4 -0
  911. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.d.ts.map +1 -0
  912. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.js +75 -0
  913. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.d.ts.map +1 -1
  914. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +5 -0
  915. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts +3 -0
  916. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts.map +1 -1
  917. package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.js +230 -34
  918. package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.d.ts.map +1 -1
  919. package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.js +3 -2
  920. package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts +2 -25
  921. package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts.map +1 -1
  922. package/node_modules/@oscharko-dev/keiko-server/dist/files.js +76 -35
  923. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts +56 -0
  924. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts.map +1 -0
  925. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.js +432 -0
  926. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts +15 -0
  927. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts.map +1 -1
  928. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.js +59 -0
  929. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts +4 -1
  930. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
  931. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +16 -5
  932. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +12 -2
  933. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  934. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +367 -109
  935. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts +16 -0
  936. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts.map +1 -0
  937. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.js +30 -0
  938. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts +1 -1
  939. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts.map +1 -1
  940. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.js +11 -5
  941. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts +38 -4
  942. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  943. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +1354 -184
  944. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.d.ts.map +1 -1
  945. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.js +6 -3
  946. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts +31 -0
  947. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts.map +1 -0
  948. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.js +74 -0
  949. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts +7 -0
  950. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts.map +1 -0
  951. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.js +282 -0
  952. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts +1 -1
  953. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
  954. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +12 -6
  955. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
  956. package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +30 -11
  957. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.d.ts.map +1 -1
  958. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.js +17 -0
  959. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.d.ts.map +1 -1
  960. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.js +5 -2
  961. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts.map +1 -1
  962. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.js +11 -4
  963. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
  964. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +1 -0
  965. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
  966. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +1 -0
  967. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.d.ts.map +1 -1
  968. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.js +1 -0
  969. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
  970. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +7 -0
  971. package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts +5 -0
  972. package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts.map +1 -1
  973. package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.js +46 -0
  974. package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts +5 -1
  975. package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts.map +1 -1
  976. package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.js +68 -10
  977. package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
  978. package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +57 -1
  979. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts +19 -0
  980. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts.map +1 -0
  981. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.js +177 -0
  982. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts +7 -0
  983. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts.map +1 -0
  984. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.js +69 -0
  985. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts +11 -0
  986. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts.map +1 -0
  987. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.js +53 -0
  988. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts +25 -0
  989. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts.map +1 -0
  990. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.js +120 -0
  991. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts +57 -1
  992. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts.map +1 -1
  993. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.js +195 -0
  994. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts +16 -0
  995. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts.map +1 -0
  996. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.js +133 -0
  997. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts +16 -0
  998. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts.map +1 -0
  999. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.js +103 -0
  1000. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts +7 -0
  1001. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts.map +1 -0
  1002. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.js +79 -0
  1003. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts +57 -0
  1004. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -0
  1005. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +297 -0
  1006. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts +4 -0
  1007. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts.map +1 -0
  1008. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.js +117 -0
  1009. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.d.ts.map +1 -1
  1010. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.js +25 -11
  1011. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts +2 -2
  1012. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts.map +1 -1
  1013. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.js +39 -3
  1014. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts +10 -0
  1015. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts.map +1 -0
  1016. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.js +41 -0
  1017. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts +15 -1
  1018. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -1
  1019. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +126 -24
  1020. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts +42 -0
  1021. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts.map +1 -0
  1022. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.js +91 -0
  1023. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts +8 -0
  1024. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts.map +1 -0
  1025. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.js +60 -0
  1026. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts +7 -3
  1027. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts.map +1 -1
  1028. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +63 -9
  1029. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts +1 -1
  1030. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts.map +1 -1
  1031. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.js +61 -1
  1032. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts +28 -1
  1033. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts.map +1 -1
  1034. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.js +140 -0
  1035. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts +20 -3
  1036. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts.map +1 -1
  1037. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.js +116 -53
  1038. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts +44 -0
  1039. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts.map +1 -0
  1040. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.js +385 -0
  1041. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts +5 -2
  1042. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts.map +1 -1
  1043. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.js +123 -42
  1044. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +76 -6
  1045. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts.map +1 -1
  1046. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.js +677 -121
  1047. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts +27 -0
  1048. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts.map +1 -0
  1049. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.js +198 -0
  1050. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts +16 -2
  1051. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts.map +1 -1
  1052. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.js +69 -1
  1053. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.d.ts +34 -0
  1054. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.d.ts.map +1 -0
  1055. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.js +123 -0
  1056. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.d.ts.map +1 -1
  1057. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.js +6 -6
  1058. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +128 -8
  1059. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
  1060. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +4801 -850
  1061. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts +3 -0
  1062. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts.map +1 -0
  1063. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.js +81 -0
  1064. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts +22 -0
  1065. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts.map +1 -0
  1066. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.js +87 -0
  1067. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts +27 -0
  1068. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts.map +1 -0
  1069. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.js +74 -0
  1070. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts +25 -0
  1071. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts.map +1 -0
  1072. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.js +93 -0
  1073. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts +20 -0
  1074. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts.map +1 -0
  1075. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.js +33 -0
  1076. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts +7 -0
  1077. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts.map +1 -1
  1078. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.js +35 -14
  1079. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +37 -8
  1080. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
  1081. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +712 -212
  1082. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +42 -8
  1083. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
  1084. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +682 -142
  1085. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +49 -11
  1086. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  1087. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +756 -172
  1088. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts +32 -2
  1089. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts.map +1 -1
  1090. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.js +382 -58
  1091. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +4 -0
  1092. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
  1093. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +57 -2
  1094. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts +2 -0
  1095. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts.map +1 -1
  1096. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.js +5 -1
  1097. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts +1 -1
  1098. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts.map +1 -1
  1099. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.js +29 -7
  1100. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts +32 -0
  1101. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts.map +1 -0
  1102. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.js +75 -0
  1103. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts +19 -0
  1104. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts.map +1 -0
  1105. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.js +55 -0
  1106. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts +31 -0
  1107. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts.map +1 -0
  1108. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.js +55 -0
  1109. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.d.ts +4 -0
  1110. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.d.ts.map +1 -0
  1111. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.js +109 -0
  1112. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts +3 -0
  1113. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts.map +1 -0
  1114. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.js +90 -0
  1115. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts +47 -5
  1116. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts.map +1 -1
  1117. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.js +1054 -84
  1118. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts +34 -0
  1119. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts.map +1 -0
  1120. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.js +190 -0
  1121. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts +5 -0
  1122. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts.map +1 -0
  1123. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.js +19 -0
  1124. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +1 -2
  1125. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
  1126. package/node_modules/@oscharko-dev/keiko-server/dist/index.js +8 -13
  1127. package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts +44 -0
  1128. package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts.map +1 -0
  1129. package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.js +136 -0
  1130. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts +1 -1
  1131. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
  1132. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +235 -65
  1133. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
  1134. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +19 -4
  1135. package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.d.ts.map +1 -1
  1136. package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.js +11 -9
  1137. package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.d.ts.map +1 -1
  1138. package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.js +11 -9
  1139. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts.map +1 -1
  1140. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.js +43 -32
  1141. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
  1142. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +2 -0
  1143. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaSnapshotBuilder.js +1 -1
  1144. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts +1 -1
  1145. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts.map +1 -1
  1146. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.js +1 -1
  1147. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
  1148. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +2 -2
  1149. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts +2 -2
  1150. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts.map +1 -1
  1151. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.js +36 -14
  1152. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
  1153. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +4 -2
  1154. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts +1 -1
  1155. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
  1156. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +3 -1
  1157. package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
  1158. package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +8 -0
  1159. package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
  1160. package/node_modules/@oscharko-dev/keiko-server/dist/server.js +7 -0
  1161. package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts +8 -0
  1162. package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts.map +1 -1
  1163. package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.js +21 -0
  1164. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
  1165. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +22 -4
  1166. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts +0 -13
  1167. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
  1168. package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +26 -129
  1169. package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts +1 -1
  1170. package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts.map +1 -1
  1171. package/node_modules/@oscharko-dev/keiko-server/dist/store/index.js +1 -1
  1172. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +2 -2
  1173. package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts +2 -1
  1174. package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts.map +1 -1
  1175. package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.js +26 -42
  1176. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
  1177. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
  1178. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +161 -3
  1179. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts +1 -1
  1180. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
  1181. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +102 -13
  1182. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts +13 -0
  1183. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts.map +1 -0
  1184. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.js +239 -0
  1185. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts +19 -0
  1186. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts.map +1 -0
  1187. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.js +347 -0
  1188. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts +31 -0
  1189. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts.map +1 -0
  1190. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.js +169 -0
  1191. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts +4 -0
  1192. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts.map +1 -0
  1193. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.js +149 -0
  1194. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts +2 -0
  1195. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts.map +1 -0
  1196. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.js +43 -0
  1197. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.d.ts.map +1 -1
  1198. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.js +37 -4
  1199. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.js +3 -3
  1200. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.d.ts.map +1 -1
  1201. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.js +10 -3
  1202. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts +20 -4
  1203. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
  1204. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +96 -20
  1205. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts +2 -0
  1206. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts.map +1 -1
  1207. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts +2 -2
  1208. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts.map +1 -1
  1209. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.js +47 -3
  1210. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts +1 -0
  1211. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts.map +1 -1
  1212. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.js +3 -0
  1213. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts +3 -0
  1214. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts.map +1 -1
  1215. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.js +23 -7
  1216. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +3 -0
  1217. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -1
  1218. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +12 -0
  1219. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts +1 -2
  1220. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts.map +1 -1
  1221. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.js +3 -35
  1222. package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.d.ts.map +1 -1
  1223. package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.js +4 -0
  1224. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-index-provider.js +4 -4
  1225. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +4 -1
  1226. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
  1227. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +76 -3
  1228. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts +3 -2
  1229. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts.map +1 -1
  1230. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.js +3 -100
  1231. package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
  1232. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts +1 -1
  1233. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts.map +1 -1
  1234. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.js +1 -1
  1235. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +9 -25
  1236. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
  1237. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +210 -113
  1238. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.d.ts.map +1 -1
  1239. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.js +15 -2
  1240. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  1241. package/node_modules/@oscharko-dev/keiko-tools/dist/exec.d.ts.map +1 -1
  1242. package/node_modules/@oscharko-dev/keiko-tools/dist/exec.js +80 -10
  1243. package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts +1 -1
  1244. package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts.map +1 -1
  1245. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.d.ts.map +1 -1
  1246. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.js +142 -49
  1247. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts.map +1 -1
  1248. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.js +14 -3
  1249. package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts +15 -0
  1250. package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts.map +1 -1
  1251. package/node_modules/@oscharko-dev/keiko-tools/dist/patch.js +24 -9
  1252. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  1253. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts.map +1 -1
  1254. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  1255. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  1256. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +16 -4
  1257. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
  1258. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +198 -25
  1259. package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts +1 -1
  1260. package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts.map +1 -1
  1261. package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.js +34 -17
  1262. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +4 -1
  1263. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
  1264. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +35 -3
  1265. package/node_modules/@oscharko-dev/keiko-verification/dist/plan.d.ts.map +1 -1
  1266. package/node_modules/@oscharko-dev/keiko-verification/dist/plan.js +25 -16
  1267. package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts +7 -0
  1268. package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts.map +1 -0
  1269. package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.js +37 -0
  1270. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  1271. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts +10 -1
  1272. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts.map +1 -1
  1273. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.js +93 -15
  1274. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts +1 -1
  1275. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts.map +1 -1
  1276. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.js +1 -1
  1277. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts +10 -1
  1278. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
  1279. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +331 -49
  1280. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/compaction.js +1 -1
  1281. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts +1 -1
  1282. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts.map +1 -1
  1283. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.js +1 -1
  1284. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts +3 -0
  1285. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts.map +1 -1
  1286. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts +8 -1
  1287. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
  1288. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +374 -42
  1289. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.d.ts.map +1 -1
  1290. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.js +1 -1
  1291. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +5 -3
  1292. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
  1293. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +2 -1
  1294. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts +7 -2
  1295. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
  1296. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +124 -7
  1297. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +25 -1
  1298. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
  1299. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +707 -91
  1300. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts +19 -0
  1301. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts.map +1 -0
  1302. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.js +159 -0
  1303. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +3 -0
  1304. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts.map +1 -1
  1305. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.js +21 -18
  1306. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts +2 -2
  1307. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts.map +1 -1
  1308. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.js +2 -2
  1309. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.d.ts.map +1 -1
  1310. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.js +28 -64
  1311. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts +6 -0
  1312. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts.map +1 -1
  1313. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.js +44 -29
  1314. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts +5 -2
  1315. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts.map +1 -1
  1316. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.js +141 -45
  1317. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  1318. package/node_modules/@oscharko-dev/keiko-workspace/dist/_memfs.d.ts.map +1 -1
  1319. package/node_modules/@oscharko-dev/keiko-workspace/dist/_memfs.js +7 -0
  1320. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts +5 -2
  1321. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
  1322. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +235 -38
  1323. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts +22 -1
  1324. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts.map +1 -1
  1325. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +660 -105
  1326. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +4 -0
  1327. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts.map +1 -1
  1328. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.js +4 -0
  1329. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts +5 -1
  1330. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts.map +1 -1
  1331. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.js +140 -57
  1332. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts +1 -4
  1333. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts.map +1 -1
  1334. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.js +0 -15
  1335. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +37 -3
  1336. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
  1337. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +306 -18
  1338. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.d.ts.map +1 -1
  1339. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.js +31 -9
  1340. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts +3 -2
  1341. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts.map +1 -1
  1342. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.js +35 -5
  1343. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts +7 -1
  1344. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts.map +1 -1
  1345. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.js +40 -7
  1346. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts +1 -1
  1347. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts.map +1 -1
  1348. package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts +2 -1
  1349. package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts.map +1 -1
  1350. package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.js +48 -1
  1351. package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.js +2 -2
  1352. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.d.ts.map +1 -1
  1353. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +11 -5
  1354. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +10 -4
  1355. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
  1356. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +9 -3
  1357. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +57 -8
  1358. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
  1359. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +849 -144
  1360. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts +8 -1
  1361. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts.map +1 -1
  1362. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.js +29 -24
  1363. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts +16 -0
  1364. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts.map +1 -0
  1365. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.js +189 -0
  1366. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts +5 -0
  1367. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts.map +1 -0
  1368. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.js +21 -0
  1369. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +5 -2
  1370. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
  1371. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +50 -21
  1372. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +15 -1
  1373. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
  1374. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +121 -34
  1375. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +26 -3
  1376. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
  1377. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +65 -22
  1378. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts +14 -0
  1379. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -1
  1380. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +97 -0
  1381. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.d.ts +15 -0
  1382. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.d.ts.map +1 -0
  1383. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.js +70 -0
  1384. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts +11 -0
  1385. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts.map +1 -1
  1386. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.js +154 -18
  1387. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +20 -7
  1388. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
  1389. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +253 -56
  1390. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts +14 -2
  1391. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts.map +1 -1
  1392. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.js +63 -5
  1393. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts +3 -0
  1394. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts.map +1 -0
  1395. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.js +37 -0
  1396. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts +30 -0
  1397. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts.map +1 -0
  1398. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.js +473 -0
  1399. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +10 -2
  1400. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
  1401. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +237 -20
  1402. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts +1 -0
  1403. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts.map +1 -1
  1404. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.js +18 -14
  1405. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +2 -1
  1406. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts.map +1 -1
  1407. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.js +61 -2
  1408. package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.d.ts.map +1 -1
  1409. package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.js +13 -7
  1410. package/node_modules/@oscharko-dev/keiko-workspace/dist/testSourcePairing.js +1 -1
  1411. package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.d.ts +2 -0
  1412. package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.d.ts.map +1 -1
  1413. package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.js +4 -0
  1414. package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts +2 -2
  1415. package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts.map +1 -1
  1416. package/node_modules/@oscharko-dev/keiko-workspace/dist/types.js +1 -1
  1417. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  1418. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts.map +1 -1
  1419. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  1420. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +14 -5
  1421. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
  1422. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +119 -42
  1423. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts +11 -0
  1424. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts.map +1 -0
  1425. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.js +71 -0
  1426. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts +47 -0
  1427. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts.map +1 -0
  1428. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.js +231 -0
  1429. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts +8 -0
  1430. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts.map +1 -0
  1431. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.js +178 -0
  1432. package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts +2 -0
  1433. package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts.map +1 -0
  1434. package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.js +34 -0
  1435. package/node_modules/@oscharko-dev/keiko-workspace/package.json +4 -3
  1436. package/package.json +33 -31
  1437. package/release-impact.catalog.json +211 -0
  1438. package/scripts/lib/local-state-audit.mjs +26 -11
  1439. package/vendor/oscharko-dev-keiko-activity-log-1.2.1.tgz +0 -0
  1440. package/vendor/oscharko-dev-keiko-cli-1.2.1.tgz +0 -0
  1441. package/vendor/{oscharko-dev-keiko-connectors-1.1.13.tgz → oscharko-dev-keiko-connectors-1.2.1.tgz} +0 -0
  1442. package/vendor/oscharko-dev-keiko-contracts-1.2.1.tgz +0 -0
  1443. package/vendor/{oscharko-dev-keiko-evaluations-1.1.13.tgz → oscharko-dev-keiko-evaluations-1.2.1.tgz} +0 -0
  1444. package/vendor/oscharko-dev-keiko-evidence-1.2.1.tgz +0 -0
  1445. package/vendor/{oscharko-dev-keiko-git-1.1.13.tgz → oscharko-dev-keiko-git-1.2.1.tgz} +0 -0
  1446. package/vendor/{oscharko-dev-keiko-harness-1.1.13.tgz → oscharko-dev-keiko-harness-1.2.1.tgz} +0 -0
  1447. package/vendor/oscharko-dev-keiko-local-knowledge-1.2.1.tgz +0 -0
  1448. package/vendor/oscharko-dev-keiko-memory-capture-1.2.1.tgz +0 -0
  1449. package/vendor/oscharko-dev-keiko-memory-consolidation-1.2.1.tgz +0 -0
  1450. package/vendor/{oscharko-dev-keiko-memory-governance-1.1.13.tgz → oscharko-dev-keiko-memory-governance-1.2.1.tgz} +0 -0
  1451. package/vendor/oscharko-dev-keiko-memory-retrieval-1.2.1.tgz +0 -0
  1452. package/vendor/oscharko-dev-keiko-memory-vault-1.2.1.tgz +0 -0
  1453. package/vendor/oscharko-dev-keiko-model-gateway-1.2.1.tgz +0 -0
  1454. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.13.tgz → oscharko-dev-keiko-quality-intelligence-1.2.1.tgz} +0 -0
  1455. package/vendor/oscharko-dev-keiko-sandbox-1.2.1.tgz +0 -0
  1456. package/vendor/{oscharko-dev-keiko-sdk-1.1.13.tgz → oscharko-dev-keiko-sdk-1.2.1.tgz} +0 -0
  1457. package/vendor/oscharko-dev-keiko-security-1.2.1.tgz +0 -0
  1458. package/vendor/oscharko-dev-keiko-server-1.2.1.tgz +0 -0
  1459. package/vendor/oscharko-dev-keiko-tool-catalog-1.2.1.tgz +0 -0
  1460. package/vendor/oscharko-dev-keiko-tools-1.2.1.tgz +0 -0
  1461. package/vendor/oscharko-dev-keiko-verification-1.2.1.tgz +0 -0
  1462. package/vendor/oscharko-dev-keiko-workflows-1.2.1.tgz +0 -0
  1463. package/vendor/oscharko-dev-keiko-workspace-1.2.1.tgz +0 -0
  1464. package/dist/ui/static/_next/static/chunks/000t9p2ysi3dv.css +0 -1
  1465. package/dist/ui/static/_next/static/chunks/00dd_gyzi9unw.js +0 -1
  1466. package/dist/ui/static/_next/static/chunks/00n029ow-5_tt.js +0 -3
  1467. package/dist/ui/static/_next/static/chunks/01n8x8_z3012u.js +0 -1
  1468. package/dist/ui/static/_next/static/chunks/02epwnm5oro9c.css +0 -26
  1469. package/dist/ui/static/_next/static/chunks/04y8gqfjksqzo.js +0 -1
  1470. package/dist/ui/static/_next/static/chunks/0cksy9u2ysiuy.js +0 -1
  1471. package/dist/ui/static/_next/static/chunks/0elflgy2cg1jb.js +0 -1
  1472. package/dist/ui/static/_next/static/chunks/0gia_iwqox3xm.js +0 -1
  1473. package/dist/ui/static/_next/static/chunks/0k931k8qwqyft.js +0 -1
  1474. package/dist/ui/static/_next/static/chunks/0kmepj4rmkj19.js +0 -1
  1475. package/dist/ui/static/_next/static/chunks/0l46-80gche_i.js +0 -1
  1476. package/dist/ui/static/_next/static/chunks/0ojvvjnsf38bk.js +0 -1
  1477. package/dist/ui/static/_next/static/chunks/0p2ekj8g4s6t2.js +0 -1
  1478. package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +0 -1
  1479. package/dist/ui/static/_next/static/chunks/0tl_05c5ux5ut.js +0 -1
  1480. package/dist/ui/static/_next/static/chunks/0u7vyqk91gjb8.js +0 -1
  1481. package/dist/ui/static/_next/static/chunks/0v9jkxfma7fks.js +0 -1
  1482. package/dist/ui/static/_next/static/chunks/0y68jeskhcm2k.js +0 -1
  1483. package/dist/ui/static/_next/static/chunks/0z5be09yla9lp.js +0 -1
  1484. package/dist/ui/static/_next/static/chunks/0zlw46qz0crxg.css +0 -1
  1485. package/dist/ui/static/_next/static/chunks/117xhn896fsmt.js +0 -1
  1486. package/dist/ui/static/_next/static/chunks/13q3e5wnz6lps.css +0 -1
  1487. package/dist/ui/static/_next/static/chunks/14rs31u4u36yy.js +0 -1
  1488. package/dist/ui/static/_next/static/chunks/159szpr5ffygs.js +0 -1
  1489. package/dist/ui/static/_next/static/chunks/15orau2hhjb1f.js +0 -1
  1490. package/dist/ui/static/_next/static/chunks/1b7ig6f2t71i_.js +0 -1
  1491. package/dist/ui/static/_next/static/chunks/1bdojlx9hv0c5.js +0 -1
  1492. package/dist/ui/static/_next/static/chunks/1be0-x1mk56wu.js +0 -1
  1493. package/dist/ui/static/_next/static/chunks/1d7xigpwq-xq8.js +0 -1
  1494. package/dist/ui/static/_next/static/chunks/1dwc7p2rl-hs6.js +0 -1
  1495. package/dist/ui/static/_next/static/chunks/1hk335vrug1rc.js +0 -1
  1496. package/dist/ui/static/_next/static/chunks/1hucqkor7zgbn.js +0 -1
  1497. package/dist/ui/static/_next/static/chunks/1j6nqp8yrqyhu.js +0 -1
  1498. package/dist/ui/static/_next/static/chunks/1kxhf3ld28pzk.js +0 -1
  1499. package/dist/ui/static/_next/static/chunks/1logclobi6726.js +0 -1
  1500. package/dist/ui/static/_next/static/chunks/1lrj3d157kay1.js +0 -5
  1501. package/dist/ui/static/_next/static/chunks/1nie2fvj8iyvq.js +0 -1
  1502. package/dist/ui/static/_next/static/chunks/1o3z4r4xrlbda.js +0 -1
  1503. package/dist/ui/static/_next/static/chunks/1pnysuel-a2r1.js +0 -1
  1504. package/dist/ui/static/_next/static/chunks/1szpnddxqmzhy.js +0 -1
  1505. package/dist/ui/static/_next/static/chunks/1tkt9f0xnc4fe.js +0 -1
  1506. package/dist/ui/static/_next/static/chunks/1u_s3uvh9p4j7.js +0 -1
  1507. package/dist/ui/static/_next/static/chunks/1uetvnnpa5z22.js +0 -1
  1508. package/dist/ui/static/_next/static/chunks/1uigiy7xdzirs.js +0 -1
  1509. package/dist/ui/static/_next/static/chunks/1uulmf99vtuyt.js +0 -1
  1510. package/dist/ui/static/_next/static/chunks/1wa9m6c88mg3p.js +0 -1
  1511. package/dist/ui/static/_next/static/chunks/1xzxhtenb7_sx.css +0 -1
  1512. package/dist/ui/static/_next/static/chunks/202kx3p8axlmr.js +0 -1
  1513. package/dist/ui/static/_next/static/chunks/20b456jf1ggzu.css +0 -1
  1514. package/dist/ui/static/_next/static/chunks/2384n1pce2w1h.js +0 -1
  1515. package/dist/ui/static/_next/static/chunks/252wybdcea74g.js +0 -1
  1516. package/dist/ui/static/_next/static/chunks/271r_v0nh0vy-.js +0 -1
  1517. package/dist/ui/static/_next/static/chunks/2_o61-akoq549.js +0 -1
  1518. package/dist/ui/static/_next/static/chunks/2_u63ddjyhbpm.js +0 -3
  1519. package/dist/ui/static/_next/static/chunks/2b78j2josay3e.js +0 -1
  1520. package/dist/ui/static/_next/static/chunks/2cw7v8t4jg669.js +0 -1
  1521. package/dist/ui/static/_next/static/chunks/2gqs8fif3137x.js +0 -3
  1522. package/dist/ui/static/_next/static/chunks/2iehfums033xv.css +0 -3
  1523. package/dist/ui/static/_next/static/chunks/2j16o4ghz4iqx.js +0 -1
  1524. package/dist/ui/static/_next/static/chunks/2oxvgl3qb19wf.js +0 -1
  1525. package/dist/ui/static/_next/static/chunks/2r4vn_6anv2cw.js +0 -5
  1526. package/dist/ui/static/_next/static/chunks/2s5wt9bf-ox40.js +0 -1
  1527. package/dist/ui/static/_next/static/chunks/2s9-91g2jic6u.js +0 -1
  1528. package/dist/ui/static/_next/static/chunks/2tmor5n3xss6c.js +0 -3
  1529. package/dist/ui/static/_next/static/chunks/2wd7di0z2l6il.js +0 -1
  1530. package/dist/ui/static/_next/static/chunks/2ymm_n9gbcdcw.js +0 -1
  1531. package/dist/ui/static/_next/static/chunks/2ywqac8g8us1n.css +0 -1
  1532. package/dist/ui/static/_next/static/chunks/3-ys11qyww0y6.js +0 -1
  1533. package/dist/ui/static/_next/static/chunks/30botqyyk9ugo.js +0 -1
  1534. package/dist/ui/static/_next/static/chunks/30p9b535cwzhr.js +0 -1
  1535. package/dist/ui/static/_next/static/chunks/31mnda46lo2b0.js +0 -1
  1536. package/dist/ui/static/_next/static/chunks/338jl640mvtkg.js +0 -1
  1537. package/dist/ui/static/_next/static/chunks/351uy__m9eafa.js +0 -1
  1538. package/dist/ui/static/_next/static/chunks/3_cgafsc6hy1_.js +0 -1
  1539. package/dist/ui/static/_next/static/chunks/3_exo95bp9tt2.js +0 -1
  1540. package/dist/ui/static/_next/static/chunks/3aqtjd-a1ygis.js +0 -1
  1541. package/dist/ui/static/_next/static/chunks/3bl12pe7lsanc.js +0 -1
  1542. package/dist/ui/static/_next/static/chunks/3buu6m28ig2oz.js +0 -1
  1543. package/dist/ui/static/_next/static/chunks/3hft62celuigp.js +0 -1
  1544. package/dist/ui/static/_next/static/chunks/3i0iog52c1ajg.js +0 -1
  1545. package/dist/ui/static/_next/static/chunks/3ibevys2o09xx.js +0 -1
  1546. package/dist/ui/static/_next/static/chunks/3im1pldojqzmu.js +0 -1
  1547. package/dist/ui/static/_next/static/chunks/3iptbrztxckih.js +0 -1
  1548. package/dist/ui/static/_next/static/chunks/3iv5llh4xg-7v.js +0 -1
  1549. package/dist/ui/static/_next/static/chunks/3jtbes4v4ouyw.js +0 -1
  1550. package/dist/ui/static/_next/static/chunks/3lq5zd1qvhcfw.js +0 -1
  1551. package/dist/ui/static/_next/static/chunks/3m_idsf90zq5u.js +0 -1
  1552. package/dist/ui/static/_next/static/chunks/3mes_qld9wgti.js +0 -1
  1553. package/dist/ui/static/_next/static/chunks/3n4gsbv-im5ia.js +0 -1
  1554. package/dist/ui/static/_next/static/chunks/3timx0h4kcna0.js +0 -1
  1555. package/dist/ui/static/_next/static/chunks/3u-4amh4iusi1.js +0 -1
  1556. package/dist/ui/static/_next/static/chunks/3uacpjje41xz5.js +0 -1
  1557. package/dist/ui/static/_next/static/chunks/3uovpxgynmdkk.js +0 -1
  1558. package/dist/ui/static/_next/static/chunks/3wcuc7e2bz4-l.js +0 -1
  1559. package/dist/ui/static/_next/static/chunks/3xaa0t5drdxz3.js +0 -1
  1560. package/dist/ui/static/_next/static/chunks/3yqrxwndy9_f3.js +0 -1
  1561. package/dist/ui/static/_next/static/chunks/40g2_9ovqiuiu.js +0 -1
  1562. package/dist/ui/static/_next/static/chunks/40ol4dc9uptck.js +0 -10
  1563. package/dist/ui/static/_next/static/chunks/413lmui4la1xe.js +0 -1
  1564. package/dist/ui/static/_next/static/chunks/41ca6l5ikqt65.js +0 -1
  1565. package/dist/ui/static/_next/static/chunks/44jv6p8ly-u3e.js +0 -1
  1566. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts +0 -29
  1567. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts.map +0 -1
  1568. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.js +0 -30
  1569. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts +0 -8
  1570. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts.map +0 -1
  1571. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.js +0 -34
  1572. package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts +0 -29
  1573. package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts.map +0 -1
  1574. package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.js +0 -135
  1575. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts +0 -7
  1576. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts.map +0 -1
  1577. package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.js +0 -24
  1578. package/vendor/oscharko-dev-keiko-activity-log-1.1.13.tgz +0 -0
  1579. package/vendor/oscharko-dev-keiko-cli-1.1.13.tgz +0 -0
  1580. package/vendor/oscharko-dev-keiko-contracts-1.1.13.tgz +0 -0
  1581. package/vendor/oscharko-dev-keiko-evidence-1.1.13.tgz +0 -0
  1582. package/vendor/oscharko-dev-keiko-local-knowledge-1.1.13.tgz +0 -0
  1583. package/vendor/oscharko-dev-keiko-memory-capture-1.1.13.tgz +0 -0
  1584. package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.13.tgz +0 -0
  1585. package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.13.tgz +0 -0
  1586. package/vendor/oscharko-dev-keiko-memory-vault-1.1.13.tgz +0 -0
  1587. package/vendor/oscharko-dev-keiko-model-gateway-1.1.13.tgz +0 -0
  1588. package/vendor/oscharko-dev-keiko-sandbox-1.1.13.tgz +0 -0
  1589. package/vendor/oscharko-dev-keiko-security-1.1.13.tgz +0 -0
  1590. package/vendor/oscharko-dev-keiko-server-1.1.13.tgz +0 -0
  1591. package/vendor/oscharko-dev-keiko-tool-catalog-1.1.13.tgz +0 -0
  1592. package/vendor/oscharko-dev-keiko-tools-1.1.13.tgz +0 -0
  1593. package/vendor/oscharko-dev-keiko-verification-1.1.13.tgz +0 -0
  1594. package/vendor/oscharko-dev-keiko-workflows-1.1.13.tgz +0 -0
  1595. package/vendor/oscharko-dev-keiko-workspace-1.1.13.tgz +0 -0
  1596. /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_buildManifest.js +0 -0
  1597. /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_clientMiddlewareManifest.js +0 -0
  1598. /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  import { gatewaySpendRejectionReason } from "./gateway-spend-budget.js";
2
2
  import { CodingRuntimeLaunchRejectedError } from "./coding-runtime/launchFailure.js";
3
- import { AuthenticationError, CancelledError, CircuitOpenError, ContextOverflowError, GatewayError, MalformedToolCallError, ModelRefusalError, ProviderEmptyAnswerError, ProviderError, ProviderOutputExhaustedError, RateLimitError, TimeoutError, TransportError, } from "@oscharko-dev/keiko-security/errors/gateway";
3
+ import { CancelledError, CircuitOpenError, ContextOverflowError, CallerAttemptAdmissionError, GatewayError, MalformedToolCallError, ModelRefusalError, ProviderEmptyAnswerError, ProviderError, ProviderOutputExhaustedError, RateLimitError, TimeoutError, TransportError, } from "@oscharko-dev/keiko-security/errors/gateway";
4
4
  import { createHash, randomUUID } from "node:crypto";
5
5
  import { findConfiguredCapability, resolveCodingSafeSidecarGatewayProfile, ResponseRedactionError, } from "@oscharko-dev/keiko-model-gateway";
6
6
  import { countGatewayPromptTokens, } from "@oscharko-dev/keiko-model-gateway/internal/prompt-token-accounting";
@@ -9,9 +9,9 @@ import { compareStrings } from "@oscharko-dev/keiko-contracts/runtime/comparator
9
9
  import { CODING_WORKBENCH_MINIMUM_CODING_CONTEXT_PROMPT_TOKENS } from "@oscharko-dev/keiko-contracts/runtime/coding-workbench";
10
10
  import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
11
11
  import { MODEL_REASONING_EFFORTS, validateGatewaySamplingParameters, } from "@oscharko-dev/keiko-contracts/runtime/gateway";
12
- import { currentGateway, currentGatewayConfig, currentGatewayVerification, } from "./deps.js";
12
+ import { currentGateway, currentGatewayConfig, currentGatewayVerification, currentConversationReadinessObservation, } from "./deps.js";
13
13
  import { OPENCODE_RUNTIME_MODEL_ALIAS, OPENCODE_RUNTIME_READINESS_PROMPT, } from "./coding-runtime/opencodeLaunchProfile.js";
14
- import { createOpenCodeGatewayToolCatalogAdvertisement, opencodeGatewayOfferLifetimeMs, hasExactOpenCodeVisibleToolContract, OPENCODE_MODEL_VISIBLE_TOOL_NAMES, } from "./coding-runtime/opencodeToolSchemas.js";
14
+ import { createOpenCodeGatewayToolCatalogAdvertisement, opencodeGatewayOfferLifetimeMs, hasExactOpenCodeVisibleToolContract, openCodeVisibleToolNames, } from "./coding-runtime/opencodeToolSchemas.js";
15
15
  import { correlationIdOrUnknown, UNKNOWN_CORRELATION_ID } from "./correlation.js";
16
16
  import { describeError, emitServerDiagnostic, serverDiagnosticFromError, } from "./diagnostics-log.js";
17
17
  import { readJsonObject } from "./files.js";
@@ -63,13 +63,23 @@ function observedPromptSettlement(outcome, selected, unverified) {
63
63
  * may settle defensively from more than one exit path. Absent `settlePromptTokens` on the injected
64
64
  * authenticator (not every deployment wires it) is a silent no-op, never a failure.
65
65
  */
66
- function settlePromptTokenReservation(deps, reservation, actualPromptTokens) {
66
+ function settlePromptTokenReservation(deps, reservation, actualPromptTokens, discardedPromptTokens = 0) {
67
67
  const providerReported = actualPromptTokens !== undefined && actualPromptTokens > 0;
68
68
  return applyPromptTokenSettlement(deps, reservation, {
69
- promptTokens: providerReported ? actualPromptTokens : reservation.reservedPromptTokens,
69
+ promptTokens: (providerReported ? actualPromptTokens : reservation.reservedPromptTokens) +
70
+ discardedPromptTokens,
70
71
  source: providerReported ? "provider-reported" : "reserved-estimate",
71
72
  });
72
73
  }
74
+ /**
75
+ * The prompt tokens of the attempts the gateway discarded on its way to this answer (#3873 review):
76
+ * a steered repair's first answer, a catalog-rejected tool call, a stream that failed after its
77
+ * usage arrived. The provider processed them, so the run's prompt allowance (ADR-0137 D2, the only
78
+ * default per-run token bound) counts them beside the answer's own prompt.
79
+ */
80
+ function discardedPromptTokens(response) {
81
+ return response.discardedAttemptUsage?.promptTokens ?? 0;
82
+ }
73
83
  /**
74
84
  * Releases a reservation whose provider call never ran — the client would not take the opening
75
85
  * SSE frame, so the buffered path never called the chat factory and the streamed path never pulled
@@ -102,14 +112,16 @@ function applyPromptTokenSettlement(deps, reservation, usage) {
102
112
  reservation.settlement = { ...selected, status: "not-wired" };
103
113
  return reservation.settlement;
104
114
  }
105
- const outcome = authenticator.settlePromptTokens(reservation.capability, reservation.reservedPromptTokens, usage.promptTokens);
115
+ const outcome = reservation.modelCallId === undefined
116
+ ? authenticator.settlePromptTokens(reservation.capability, reservation.reservedPromptTokens, usage.promptTokens)
117
+ : authenticator.settlePromptTokens(reservation.capability, reservation.reservedPromptTokens, usage.promptTokens, reservation.modelCallId);
106
118
  reservation.settlement = observedPromptSettlement(outcome, selected, unverified);
107
119
  return reservation.settlement;
108
120
  }
109
121
  const CODING_SIDECAR_GATEWAY_ERROR_CODE = "CODING_SIDECAR_UNAVAILABLE";
110
122
  const CODING_SIDECAR_GATEWAY_ROUTE = "POST /api/coding-sidecar/gateway/chat/completions";
111
123
  const CODING_SAFE_SIDECAR_GATEWAY_PROFILE_ID = "coding-safe-openai-compatible";
112
- const BUFFERED_STREAM_HEARTBEAT_MS = 5_000;
124
+ const SIDECAR_SSE_HEARTBEAT_MS = 5_000;
113
125
  const OUTPUT_BYTES_PER_TOKEN_LIMIT = 4;
114
126
  // The #2680 live-probe fingerprint (many model requests, zero keiko_* facade calls) becomes
115
127
  // judgeable once the replayed history holds the two system messages, the task prompt, and three
@@ -128,12 +140,20 @@ const CODING_SIDECAR_GATEWAY_REQUEST_VALIDATED_OPERATION = defineActivityLogOper
128
140
  fields: {
129
141
  runId: { type: "string", dataClass: "opaque-id", required: true, maxLength: 128 },
130
142
  maxRequestBytes: { type: "integer", dataClass: "count", required: true },
143
+ inputTokenLimit: { type: "integer", dataClass: "count", required: false },
144
+ admissiblePromptTokens: { type: "integer", dataClass: "count", required: false },
131
145
  maxPromptTokens: { type: "integer", dataClass: "count", required: true },
132
146
  estimatedPromptTokens: { type: "integer", dataClass: "count", required: true },
133
147
  // #3591 (1.1.7): the output allowance sent with this request, clamped to the window that
134
148
  // remains after the prompt — the value an output-exhausted turn has to be read against.
135
149
  maxOutputTokens: { type: "integer", dataClass: "count", required: false },
136
150
  inputMessageCount: { type: "integer", dataClass: "count", required: true },
151
+ offeredToolCount: { type: "integer", dataClass: "count", required: false },
152
+ // #3873 (F23): how many prior assistant messages carried nothing but the reasoning of a turn that
153
+ // already ran and were dropped before the gateway request was built, so the estimate above and
154
+ // `inputMessageCount` describe what is actually sent upstream. A count; the reasoning is never
155
+ // recorded. `required: false` only because a record written before this field existed lacks it.
156
+ droppedReasoningMessageCount: { type: "integer", dataClass: "count", required: false },
137
157
  completeness: { type: "string", dataClass: "completeness-state", required: true },
138
158
  loss: { type: "string", dataClass: "loss-state", required: true },
139
159
  },
@@ -161,8 +181,17 @@ const CODING_SIDECAR_GATEWAY_READINESS_INSUFFICIENT_OPERATION = defineActivityLo
161
181
  "no-tool-calling",
162
182
  "tool-calling-unverified",
163
183
  "model-verification-pending",
184
+ "conversation-not-ready",
164
185
  ],
165
186
  },
187
+ storedReason: {
188
+ type: "string",
189
+ dataClass: "closed-enum",
190
+ required: false,
191
+ values: ["model-context-window-insufficient", "no-tool-calling", "tool-calling-unverified"],
192
+ },
193
+ inputTokenLimit: { type: "integer", dataClass: "count", required: false },
194
+ availablePromptTokens: { type: "integer", dataClass: "count", required: false },
166
195
  maxPromptTokens: { type: "integer", dataClass: "count", required: false },
167
196
  minimumRequiredPromptTokens: { type: "integer", dataClass: "count", required: false },
168
197
  probeMode: {
@@ -268,6 +297,7 @@ const CODING_SIDECAR_GATEWAY_REJECTED_OPERATION = defineActivityLogOperation({
268
297
  maxLength: 64,
269
298
  },
270
299
  estimatedPromptTokens: { type: "integer", dataClass: "count", required: false },
300
+ inputTokenLimit: { type: "integer", dataClass: "count", required: false },
271
301
  maxPromptTokens: { type: "integer", dataClass: "count", required: false },
272
302
  // #3591 review: the bound the prompt was actually admitted against — `maxPromptTokens` less
273
303
  // the safety margin and the minimum output allowance (`admissiblePromptTokens`).
@@ -284,6 +314,24 @@ const CODING_SIDECAR_GATEWAY_REJECTED_OPERATION = defineActivityLogOperation({
284
314
  proofIds: ["coding-sidecar.gateway.rejected.line"],
285
315
  releaseImpact: "patch",
286
316
  });
317
+ // #3873 (F17, F23): the gateway's one steered repair of an answer the model could not use — one that
318
+ // exhausted its output budget, or ended after reasoning without a tool call or any text — on every
319
+ // settlement line of a turn: whether it ran, and how the repaired attempt ended, so an
320
+ // `output-exhausted` or `empty-answer` turn the runtime may not retry names its cause, and a
321
+ // recovered turn shows the repair that saved it. `exhausted-again` and `empty-again` name how the
322
+ // repaired attempt ended (the whole budget spent once more; no text or tool call once more),
323
+ // whichever failure triggered the repair; `gateway.retry.scheduled` names that trigger. `required:
324
+ // false` only because a record written before these fields existed lacks them; every line written
325
+ // since carries `repairAttempted`, and `repairOutcome` whenever a repair ran.
326
+ const OUTPUT_REPAIR_FIELDS = {
327
+ repairAttempted: { type: "boolean", dataClass: "closed-enum", required: false },
328
+ repairOutcome: {
329
+ type: "string",
330
+ dataClass: "closed-enum",
331
+ required: false,
332
+ values: ["recovered", "exhausted-again", "empty-again", "failed"],
333
+ },
334
+ };
287
335
  const CODING_SIDECAR_GATEWAY_TURN_FAILED_OPERATION = defineActivityLogOperation({
288
336
  contractKind: "activity-log-operation",
289
337
  schemaVersion: 1,
@@ -328,13 +376,22 @@ const CODING_SIDECAR_GATEWAY_TURN_FAILED_OPERATION = defineActivityLogOperation(
328
376
  ],
329
377
  },
330
378
  // Whether the answer to the runtime lets it retry the turn: `refused` for a provider rejection
331
- // no retry can change, which the runtime reads as final (lab 2026-09-26).
379
+ // no retry can change, which the runtime reads as final (lab 2026-09-26), and for an exhausted
380
+ // or empty answer whose one steered repair failed the same way again (#3873, F17, F23).
332
381
  runtimeRetry: {
333
382
  type: "string",
334
383
  dataClass: "closed-enum",
335
384
  required: true,
336
385
  values: ["allowed", "refused"],
337
386
  },
387
+ // #3873 review (PR #3876): `provider-failed` names a provider that rejected the turn and one that
388
+ // stayed unavailable alike. `true` marks the second — a retryable provider status (408, 429,
389
+ // 5xx), a rate limit or an open breaker that outlasted the gateway's outage window — so a run
390
+ // that ends on this failure settles `provider-unavailable` and the log shows why. Absent for
391
+ // every other failure; `required: false` because a line written before this field existed
392
+ // lacks it.
393
+ providerUnavailable: { type: "boolean", dataClass: "closed-enum", required: false },
394
+ ...OUTPUT_REPAIR_FIELDS,
338
395
  // The Keiko-code frames and cause classes of the failure, when the turn failed on an error
339
396
  // (PR #3617 review): a model-answer failure writes no error-level diagnostic, so this line is
340
397
  // where its frames live.
@@ -362,6 +419,85 @@ const CODING_SIDECAR_GATEWAY_TURN_FAILED_OPERATION = defineActivityLogOperation(
362
419
  proofIds: ["coding-sidecar.gateway.turn-failed.emitted-line"],
363
420
  releaseImpact: "patch",
364
421
  });
422
+ // #3873 review: while the gateway rides out a provider outage the turn waits silently, and the
423
+ // Workbench's run status read "Waiting for the model" for the whole window. The first retry of an
424
+ // unavailable provider, or the first wait of a call's admission behind the circuit breaker or a
425
+ // provider cooldown, is published to the run's event replay as `model-gateway-retrying` (again when
426
+ // a later frame of the run superseded it while the call kept retrying, which ends the phase on the
427
+ // client), the answer that ends the outage as `model-gateway-recovered`, and a call the run
428
+ // cancelled before either as `model-gateway-retry-stopped`. This line records each publication and
429
+ // whether it reached the replay, so the status the operator saw can be rebuilt from the log. Counts
430
+ // and closed words only: the provider attempt that was retried and the policy it ran under, or the
431
+ // reason the admission was held.
432
+ const CODING_SIDECAR_GATEWAY_RETRY_SURFACED_OPERATION = defineActivityLogOperation({
433
+ contractKind: "activity-log-operation",
434
+ schemaVersion: 1,
435
+ op: "coding-sidecar.gateway.retry-surfaced",
436
+ category: "gateway",
437
+ owner: "keiko-server",
438
+ emitter: "coding-sidecar-gateway.surfaceGatewayRetry",
439
+ fields: {
440
+ runId: { type: "string", dataClass: "opaque-id", required: true, maxLength: 128 },
441
+ revision: { type: "integer", dataClass: "count", required: true },
442
+ state: {
443
+ type: "string",
444
+ dataClass: "closed-enum",
445
+ required: true,
446
+ values: ["running", "paused"],
447
+ },
448
+ // `retry-stopped`: the call was retried or held and ended with neither an answer nor a
449
+ // turn-failure frame, because the run cancelled it (a client that went away, a transport that
450
+ // was cut, the route deadline); no answer recovered the outage and nothing is retrying it now.
451
+ fact: {
452
+ type: "string",
453
+ dataClass: "closed-enum",
454
+ required: true,
455
+ values: ["retrying", "recovered", "retry-stopped"],
456
+ },
457
+ // What the `retrying` fact followed, and the policy the call ran under; only on a `retrying`
458
+ // fact. A retry carries the failed PROVIDER `attempt` it followed, counted from 1: the call's
459
+ // steered repair is not a provider attempt and is not counted, so after a repair this is lower
460
+ // than the `attempt` of the `gateway.retry.scheduled` line of the same retry, which counts every
461
+ // attempt of the call and joins this line on the same correlation id. A call whose admission
462
+ // waited before any attempt of its own carries the `waitReason` that held it instead — the
463
+ // closed reason of the `gateway.circuit.wait` line it joins on — and no attempt.
464
+ attempt: { type: "integer", dataClass: "count", required: false },
465
+ waitReason: {
466
+ type: "string",
467
+ dataClass: "closed-enum",
468
+ required: false,
469
+ values: ["provider-cooldown", "circuit-cooldown", "probe-saturated"],
470
+ },
471
+ retryPolicy: {
472
+ type: "string",
473
+ dataClass: "closed-enum",
474
+ required: false,
475
+ values: ["attempts", "outage-window"],
476
+ },
477
+ published: { type: "boolean", dataClass: "closed-enum", required: true },
478
+ publicationReason: {
479
+ type: "string",
480
+ dataClass: "closed-enum",
481
+ required: true,
482
+ values: [
483
+ "published",
484
+ "event-hub-unavailable",
485
+ "terminal-run",
486
+ "invalid-event",
487
+ "sequence-exhausted",
488
+ "capacity-pressure",
489
+ ],
490
+ },
491
+ completeness: { type: "string", dataClass: "completeness-state", required: true },
492
+ loss: { type: "string", dataClass: "loss-state", required: true },
493
+ },
494
+ causal: "correlation",
495
+ lifecycle: "state",
496
+ analyzerProjection: "timeline",
497
+ failureClasses: ["coding-sidecar-gateway-retry"],
498
+ proofIds: ["coding-sidecar.gateway.retry-surfaced.emitted-line"],
499
+ releaseImpact: "patch",
500
+ });
365
501
  const CODING_SIDECAR_GATEWAY_USAGE_SETTLED_OPERATION = defineActivityLogOperation({
366
502
  contractKind: "activity-log-operation",
367
503
  schemaVersion: 1,
@@ -393,6 +529,22 @@ const CODING_SIDECAR_GATEWAY_USAGE_SETTLED_OPERATION = defineActivityLogOperatio
393
529
  required: true,
394
530
  values: ["provider-reported", "streamed-byte-estimate", "output-byte-estimate"],
395
531
  },
532
+ // #3878: the turn's share of visible text and model reasoning, as counts beside `outputBytes`
533
+ // (answer text, tool calls and structured output together): the UTF-8 size of the answer text,
534
+ // of the reasoning the provider returned (also when it was not forwarded), and the provider's
535
+ // own reasoning-token count when it reports one, never an estimate. Never the text itself.
536
+ // `required: false`: lines written before these fields existed lack them.
537
+ contentBytes: { type: "integer", dataClass: "count", required: false },
538
+ reasoningBytes: { type: "integer", dataClass: "count", required: false },
539
+ reasoningTokens: { type: "integer", dataClass: "count", required: false },
540
+ // #3873 review: the attempts of this turn the gateway discarded on its way to the answer (a
541
+ // steered repair's first answer, a catalog-rejected tool call, a stream that failed after its
542
+ // usage arrived), with their provider-reported tokens. `promptTokens` above already includes
543
+ // the discarded prompt tokens, because the run's allowance counts every prompt the provider
544
+ // processed. Absent when no attempt was discarded with reported usage.
545
+ discardedAttemptCount: { type: "integer", dataClass: "count", required: false },
546
+ discardedPromptTokens: { type: "integer", dataClass: "count", required: false },
547
+ discardedCompletionTokens: { type: "integer", dataClass: "count", required: false },
396
548
  completeness: { type: "string", dataClass: "completeness-state", required: true },
397
549
  loss: { type: "string", dataClass: "loss-state", required: true },
398
550
  },
@@ -420,6 +572,23 @@ const CODING_SIDECAR_GATEWAY_OUTCOME_OPERATION = defineActivityLogOperation({
420
572
  },
421
573
  completionTokens: { type: "integer", dataClass: "count", required: true },
422
574
  outputBytes: { type: "integer", dataClass: "count", required: true },
575
+ // #3878: the frames (or the one buffered answer) that carried model reasoning to the coding
576
+ // runtime; 0 when the answer had none or the reasoning display is off. A count only.
577
+ reasoningFrames: { type: "integer", dataClass: "count", required: false },
578
+ // #3873 review: the UTF-8 bytes of model reasoning the runtime actually received, beside the
579
+ // frames that carried them. `required: false`: lines written before this field existed lack it.
580
+ forwardedReasoningBytes: { type: "integer", dataClass: "count", required: false },
581
+ // #3873 review: on an `output-limit` turn, which byte bound ended it — the answer's or the
582
+ // forwarded reasoning's — so a support analysis can tell the two cuts apart.
583
+ limit: {
584
+ type: "string",
585
+ dataClass: "closed-enum",
586
+ required: false,
587
+ values: ["answer", "reasoning"],
588
+ },
589
+ // #3873 review: a complete buffered answer whose reasoning exceeded the reasoning byte bound is
590
+ // delivered without it rather than refused; `true` says the reasoning was withheld.
591
+ reasoningWithheld: { type: "boolean", dataClass: "closed-enum", required: false },
423
592
  // The route backstop armed for this turn (#3602 review); absent on lines written before 1.1.7.
424
593
  deadlineMs: { type: "integer", dataClass: "duration", required: false },
425
594
  // On a cancelled outcome only: which armed abort source ended the turn, so a stall that ran into
@@ -430,9 +599,11 @@ const CODING_SIDECAR_GATEWAY_OUTCOME_OPERATION = defineActivityLogOperation({
430
599
  required: false,
431
600
  values: ["client-disconnect", "route-deadline", "backpressure-killed", "run-stopped"],
432
601
  },
602
+ ...OUTPUT_REPAIR_FIELDS,
433
603
  completeness: { type: "string", dataClass: "completeness-state", required: true },
434
604
  loss: { type: "string", dataClass: "loss-state", required: true },
435
605
  },
606
+ diagnosticWhen: [{ field: "outcome", values: ["cancelled", "failed", "output-limit"] }],
436
607
  causal: "correlation",
437
608
  lifecycle: "end",
438
609
  analyzerProjection: "timeline",
@@ -484,7 +655,8 @@ const BAD_REQUEST_MESSAGE_REASONS = [
484
655
  reason: "input-messages-exceeded",
485
656
  },
486
657
  {
487
- test: (message) => message.startsWith("Request body estimated prompt tokens exceed profile maxPromptTokens"),
658
+ test: (message) => message.startsWith("Request body estimated prompt tokens exceed profile maxPromptTokens") ||
659
+ message.startsWith("Request body estimated prompt tokens exceed profile inputTokenLimit"),
488
660
  reason: "prompt-tokens-exceeded",
489
661
  },
490
662
  {
@@ -557,7 +729,8 @@ function pendingChallengeWait(runId, signal, armed, waiters) {
557
729
  signal.addEventListener("abort", abort, { once: true });
558
730
  });
559
731
  }
560
- export function createOpenCodeGatewayReadinessRegistry() {
732
+ export function createOpenCodeGatewayReadinessRegistry(toolProfile = "direct") {
733
+ openCodeVisibleToolNames(toolProfile);
561
734
  const observed = new Set();
562
735
  const armed = new Set();
563
736
  const adoptionGapDiagnosed = new Set();
@@ -566,7 +739,8 @@ export function createOpenCodeGatewayReadinessRegistry() {
566
739
  observed.add(runId);
567
740
  waiters.get(runId)?.(true);
568
741
  };
569
- return {
742
+ return Object.freeze({
743
+ toolProfile,
570
744
  claim: (runId) => {
571
745
  if (!armed.delete(runId))
572
746
  return false;
@@ -602,7 +776,7 @@ export function createOpenCodeGatewayReadinessRegistry() {
602
776
  adoptionGapDiagnosed.delete(runId);
603
777
  waiters.get(runId)?.(false);
604
778
  },
605
- };
779
+ });
606
780
  }
607
781
  function envEnabled(value) {
608
782
  return value !== undefined && ENABLE_TOKENS.has(value.trim().toLowerCase());
@@ -619,14 +793,27 @@ function isCodingSidecarGatewayChatRole(value) {
619
793
  function chatFactoryFor(deps, gateway) {
620
794
  return deps.codingSidecarGatewayChatFactory ?? defaultChatFactoryFor(gateway);
621
795
  }
796
+ // How every model call of a coding turn reaches the gateway, buffered or streamed: under the
797
+ // coding-workbench timeout floors (#3591), the explicit outage policy (#3873), which rides out a
798
+ // gateway overload for the configured `codingOutageWindowMs` instead of failing the autonomous run,
799
+ // and the explicit reasoning delivery (#3878, #3873 F23), which hands the model's reasoning to the
800
+ // Workbench. This route is the only one that sets the last two: an interactive surface that borrows
801
+ // the latency profile for its timeout floors (the commit draft) keeps the fail-fast attempt count
802
+ // and receives its answer without the model's reasoning.
803
+ const CODING_TURN_GATEWAY_POLICY = {
804
+ latencyProfile: "coding-workbench",
805
+ outagePolicy: "outage-window",
806
+ reasoningDelivery: "forward",
807
+ answerRepair: "steered",
808
+ };
622
809
  function defaultChatFactoryFor(gateway) {
623
810
  return (_config, modelId) => {
624
- return (request) => gateway.chat({ ...request, modelId, latencyProfile: "coding-workbench" });
811
+ return (request) => gateway.chat({ ...request, modelId, ...CODING_TURN_GATEWAY_POLICY });
625
812
  };
626
813
  }
627
814
  function defaultChatStreamFactoryFor(gateway) {
628
815
  return (_config, modelId) => {
629
- return (request) => gateway.chatStream({ ...request, modelId, latencyProfile: "coding-workbench" });
816
+ return (request) => gateway.chatStream({ ...request, modelId, ...CODING_TURN_GATEWAY_POLICY });
630
817
  };
631
818
  }
632
819
  function chatStreamFactoryFor(deps, gateway) {
@@ -748,19 +935,67 @@ function parseContinuationToolCall(value) {
748
935
  return undefined;
749
936
  }
750
937
  }
938
+ // The fields an OpenAI-compatible message carries a model's reasoning in. The gateway reads the same
939
+ // two names off a provider's answer (`reasoningText`, keiko-model-gateway normalize.ts), and the
940
+ // sidecar hands reasoning to the runtime as `reasoning_content` (#3878), so a client that echoes an
941
+ // earlier assistant turn's reasoning back sends it under one of them.
942
+ const REASONING_MESSAGE_FIELDS = ["reasoning_content", "reasoning"];
943
+ function carriesReasoning(entry) {
944
+ return REASONING_MESSAGE_FIELDS.some((field) => {
945
+ const reasoning = entry[field];
946
+ return typeof reasoning === "string" && reasoning.length > 0;
947
+ });
948
+ }
949
+ // No answer text: absent, null, blank, or a list of nothing but blank text parts. A part of any other
950
+ // kind is not "no text" — it is left to the content parser, which rejects what it does not accept.
951
+ function hasNoAnswerText(content) {
952
+ if (content === undefined || content === null)
953
+ return true;
954
+ if (typeof content === "string")
955
+ return content.trim().length === 0;
956
+ return (Array.isArray(content) &&
957
+ content.every((part) => isTextContentPart(part) && part.text.trim().length === 0));
958
+ }
959
+ function hasNoToolCalls(toolCalls) {
960
+ return (toolCalls === undefined ||
961
+ toolCalls === null ||
962
+ (Array.isArray(toolCalls) && toolCalls.length === 0));
963
+ }
964
+ /**
965
+ * An assistant message that carries nothing but the reasoning of a turn that already ran (#3873,
966
+ * F23): a reasoning field, no answer text and no tool call. The runtime keeps the reasoning the
967
+ * sidecar forwarded for a turn that then failed in its history and sends that history back with
968
+ * every later request (the live F23 run: about 6,200 prompt tokens and two messages more per failed
969
+ * attempt). Prior reasoning is never resent upstream, so such a message is dropped; the reasoning of
970
+ * a message that also carries text or a tool call is dropped with it by the parser, which copies no
971
+ * reasoning field.
972
+ */
973
+ function isReasoningOnlyAssistantMessage(entry) {
974
+ return (isRecord(entry) &&
975
+ entry.role === "assistant" &&
976
+ carriesReasoning(entry) &&
977
+ hasNoAnswerText(entry.content) &&
978
+ hasNoToolCalls(entry.tool_calls));
979
+ }
751
980
  /**
752
981
  * Distinguishes the two 400 reasons an unusable `messages` array can hand back (#3390): `undefined`
753
982
  * for the array being missing/empty (`body-empty-messages`), a `RouteResult` when entries were
754
983
  * present but at least one was unparsable — `content-part-unsupported` for a recognized-but-closed
755
984
  * content part, `message-shape-invalid` (carrying only the total entry COUNT, never any entry's
756
- * content) for every other malformed shape.
985
+ * content) for every other malformed shape. Reasoning-only assistant messages are dropped and
986
+ * counted (#3873, F23); a history that was nothing else is an empty one.
757
987
  */
758
988
  function parseMessages(value) {
759
989
  if (!Array.isArray(value) || value.length === 0) {
760
990
  return undefined;
761
991
  }
762
992
  const messages = [];
993
+ let droppedReasoningMessageCount = 0;
763
994
  for (const entry of value) {
995
+ if (isReasoningOnlyAssistantMessage(entry)) {
996
+ droppedReasoningMessageCount += 1;
997
+ continue;
998
+ }
764
999
  const parsed = parseMessageEntry(entry);
765
1000
  if (parsed.kind === "content-part-unsupported") {
766
1001
  return badRequest("Request body message content included an unsupported content part.");
@@ -770,7 +1005,7 @@ function parseMessages(value) {
770
1005
  }
771
1006
  messages.push(parsed.value);
772
1007
  }
773
- return messages;
1008
+ return messages.length === 0 ? undefined : { messages, droppedReasoningMessageCount };
774
1009
  }
775
1010
  function badRequest(message) {
776
1011
  return { status: 400, body: errorBody("BAD_REQUEST", message) };
@@ -809,8 +1044,8 @@ function isMatchingModelAlias(model, modelAlias, runtimeAuthenticated) {
809
1044
  : model === undefined || model === modelAlias;
810
1045
  }
811
1046
  function toolCatalogFor(tools, offer) {
812
- return isExactManagedToolSet(tools)
813
- ? createOpenCodeGatewayToolCatalogAdvertisement(Date.now(), offer.coverage, offer.offerLifetimeMs)
1047
+ return isExactManagedToolSet(tools, offer.toolProfile)
1048
+ ? createOpenCodeGatewayToolCatalogAdvertisement(Date.now(), offer.coverage, offer.offerLifetimeMs, offer.toolProfile)
814
1049
  : undefined;
815
1050
  }
816
1051
  function toolRequestFields(parsed, offer) {
@@ -849,7 +1084,7 @@ function resolveToolCatalogHandlerCoverage(deps, runId, correlationId) {
849
1084
  const offeredOptionalTools = [...OPENCODE_OPTIONAL_TOOL_NAMES]
850
1085
  .filter((name) => !unavailable.has(name))
851
1086
  .sort(compareStrings);
852
- const coverage = createCanonicalOpenCodeHandlerCoverage(unavailable);
1087
+ const coverage = createCanonicalOpenCodeHandlerCoverage(unavailable, gatewayReadinessRegistry(deps)?.toolProfile ?? "direct");
853
1088
  getServerLogger().info(activityLogEvent(CODING_SIDECAR_GATEWAY_TOOL_AVAILABILITY_OPERATION, { correlationId: correlationIdOrUnknown(correlationId) }, {
854
1089
  runId,
855
1090
  handlerSetDigest: coverage.handlerSetDigest,
@@ -876,12 +1111,12 @@ function buildChatRequest(parsed, modelAlias, cancellationSignal, maxOutputToken
876
1111
  };
877
1112
  }
878
1113
  function parseChatRequest(body) {
879
- const messages = parseMessages(body.messages);
880
- if (messages === undefined) {
1114
+ const parsedMessages = parseMessages(body.messages);
1115
+ if (parsedMessages === undefined) {
881
1116
  return undefined;
882
1117
  }
883
- if (isRouteResult(messages)) {
884
- return messages;
1118
+ if (isRouteResult(parsedMessages)) {
1119
+ return parsedMessages;
885
1120
  }
886
1121
  const tools = parseTools(body.tools);
887
1122
  if (isRouteResult(tools)) {
@@ -889,7 +1124,8 @@ function parseChatRequest(body) {
889
1124
  }
890
1125
  return {
891
1126
  ...(typeof body.model === "string" && body.model.length > 0 ? { model: body.model } : {}),
892
- messages,
1127
+ messages: parsedMessages.messages,
1128
+ droppedReasoningMessageCount: parsedMessages.droppedReasoningMessageCount,
893
1129
  ...(tools === undefined ? {} : { tools }),
894
1130
  ...(typeof body.stream === "boolean" ? { stream: body.stream } : {}),
895
1131
  ...(typeof body.temperature === "number" ? { temperature: body.temperature } : {}),
@@ -910,6 +1146,8 @@ function openAiResponse(modelId, response) {
910
1146
  message: {
911
1147
  role: "assistant",
912
1148
  content: response.content,
1149
+ // #3878: the field OpenCode's OpenAI-compatible provider reads as a reasoning part.
1150
+ ...(response.reasoning === undefined ? {} : { reasoning_content: response.reasoning }),
913
1151
  ...(response.toolCalls.length === 0
914
1152
  ? {}
915
1153
  : { tool_calls: openAiToolCalls(response.toolCalls) }),
@@ -988,14 +1226,45 @@ function gatewayOutcomeCancellationCause(cancellation, outcome) {
988
1226
  return undefined;
989
1227
  return { cancellationCause: cancellation.cause() ?? "client-disconnect" };
990
1228
  }
991
- function recordGatewayOutcome(ctx, deps, runId, cancellation, outcome, completionTokens, outputBytes) {
1229
+ const NO_GATEWAY_OUTPUT = {
1230
+ completionTokens: 0,
1231
+ outputBytes: 0,
1232
+ reasoningFrames: 0,
1233
+ forwardedReasoningBytes: 0,
1234
+ };
1235
+ const REPAIR_NOT_SETTLED = { settled: false };
1236
+ function settledRepair(outcome) {
1237
+ return { settled: true, outcome };
1238
+ }
1239
+ // The gateway's one steered repair of an exhausted or empty answer (#3873, F17, F23), read off what
1240
+ // the call settled with: `recovered` rides on the response (`NormalizedResponse.outputRepair`), the
1241
+ // failures on the error the repaired attempt surfaced. Absent when no repair ran.
1242
+ function outputRepairOf(error) {
1243
+ return error instanceof GatewayError ? error.outputRepair : undefined;
1244
+ }
1245
+ function repairEvidence(evidence) {
1246
+ if (!evidence.settled)
1247
+ return {};
1248
+ const { outcome } = evidence;
1249
+ return {
1250
+ repairAttempted: outcome !== undefined,
1251
+ ...(outcome === undefined ? {} : { repairOutcome: outcome }),
1252
+ };
1253
+ }
1254
+ function recordGatewayOutcome(ctx, deps, runId, cancellation, outcome, metrics, repair) {
1255
+ const { completionTokens, outputBytes } = metrics;
992
1256
  getServerLogger().info(activityLogEvent(CODING_SIDECAR_GATEWAY_OUTCOME_OPERATION, { correlationId: correlationIdOrUnknown(ctx.correlationId), parentCorrelationId: runId }, {
993
1257
  runId,
994
1258
  outcome,
995
1259
  completionTokens,
996
1260
  outputBytes,
1261
+ reasoningFrames: metrics.reasoningFrames,
1262
+ forwardedReasoningBytes: metrics.forwardedReasoningBytes,
1263
+ ...(metrics.limit === undefined ? {} : { limit: metrics.limit }),
1264
+ ...(metrics.reasoningWithheld === undefined ? {} : { reasoningWithheld: true }),
997
1265
  deadlineMs: cancellation.deadlineMs,
998
1266
  ...gatewayOutcomeCancellationCause(cancellation, outcome),
1267
+ ...repairEvidence(repair),
999
1268
  completeness: "complete",
1000
1269
  loss: "none",
1001
1270
  }));
@@ -1067,13 +1336,22 @@ function openAiCompatibleContextOverflowBody(message) {
1067
1336
  function contextOverflowRequest(message) {
1068
1337
  return { status: 400, body: openAiCompatibleContextOverflowBody(message) };
1069
1338
  }
1339
+ function promptOverflowMessage(bounds, admissible) {
1340
+ if (bounds.inputTokenLimit !== undefined && admissible === bounds.inputTokenLimit) {
1341
+ return `Request body estimated prompt tokens exceed profile inputTokenLimit (${String(bounds.inputTokenLimit)}).`;
1342
+ }
1343
+ return `Request body estimated prompt tokens exceed profile maxPromptTokens (${String(bounds.maxPromptTokens)}) less the reserved output allowance (${String(admissible)} admissible).`;
1344
+ }
1345
+ function declaredInputBound(bounds) {
1346
+ return bounds.inputTokenLimit === undefined ? {} : { inputTokenLimit: bounds.inputTokenLimit };
1347
+ }
1070
1348
  function budgetValidationError(parsed, runMetadata, estimatedPromptTokens) {
1071
1349
  if (parsed.messages.length > runMetadata.maxInputMessages) {
1072
1350
  return contextOverflowRequest(`Request body messages exceed profile maxInputMessages (${String(runMetadata.maxInputMessages)}).`);
1073
1351
  }
1074
1352
  const admissible = admissiblePromptTokens(runMetadata);
1075
1353
  if (estimatedPromptTokens > admissible) {
1076
- return contextOverflowRequest(`Request body estimated prompt tokens exceed profile maxPromptTokens (${String(runMetadata.maxPromptTokens)}) less the reserved output allowance (${String(admissible)} admissible).`);
1354
+ return contextOverflowRequest(promptOverflowMessage(runMetadata, admissible));
1077
1355
  }
1078
1356
  return undefined;
1079
1357
  }
@@ -1120,7 +1398,10 @@ function gatewayDiagnosticCorrelation(ctx, runId) {
1120
1398
  // ran out, or a tool call that never parsed or matched its schema -- is the model's answer, not a
1121
1399
  // server fault: the warn-level turn-failed line names it. An error-level diagnostic opened a support
1122
1400
  // incident for every such turn; a lab run of the 1.1.8 candidate behind a LiteLLM hosted_vllm route
1123
- // opened one on its first empty answer.
1401
+ // opened one on its first empty answer. The runtime may retry these, with one exception: an
1402
+ // exhausted or empty answer whose steered gateway repair failed the same way again is answered as
1403
+ // final (`runtimeRetryFor`, #3873 F17, F23) — the identical turn ran away identically, and a third
1404
+ // attempt would only burn the envelope's duration.
1124
1405
  const MODEL_ANSWER_FAILURES = new Set([
1125
1406
  "output-exhausted",
1126
1407
  "empty-answer",
@@ -1154,9 +1435,10 @@ function reportGatewayTurnFailure(ctx, deps, runId, failure) {
1154
1435
  const snapshot = deps.codingRuntimeOrchestrator?.getSnapshot(runId);
1155
1436
  if (snapshot?.state !== "running" && snapshot?.state !== "paused")
1156
1437
  return false;
1157
- const publicationReason = gatewayTurnFailurePublication(deps, runId, snapshot, failureCode);
1438
+ const providerUnavailable = failureCode === "provider-failed" && providerUnavailableFault(error);
1439
+ const publicationReason = gatewayTurnFailurePublication(deps, runId, snapshot, failureCode, providerUnavailable);
1158
1440
  const run = { revision: snapshot.revision, state: snapshot.state };
1159
- logGatewayTurnFailure(ctx, runId, run, failureCode, { publicationReason, runtimeRetry }, error);
1441
+ logGatewayTurnFailure(ctx, runId, run, failureCode, { publicationReason, runtimeRetry, providerUnavailable }, error);
1160
1442
  return true;
1161
1443
  }
1162
1444
  /** A turn the gateway refused itself, with no error: its answer's status decides the retry. */
@@ -1166,12 +1448,117 @@ function reportGatewayTurnRejection(ctx, deps, runId, answer) {
1166
1448
  runtimeRetry: runtimeRetryForStatus(answer.status),
1167
1449
  });
1168
1450
  }
1169
- function gatewayTurnFailurePublication(deps, runId, snapshot, failureCode) {
1170
- const publication = deps.codingRuntimeEventHub?.publishTurnFailure(runId, snapshot.state, snapshot.revision, failureCode);
1451
+ function gatewayTurnFailurePublication(deps, runId, snapshot, failureCode, providerUnavailable) {
1452
+ const publication = deps.codingRuntimeEventHub?.publishTurnFailure(runId, snapshot.state, snapshot.revision, failureCode, { providerUnavailable });
1171
1453
  const publicationReason = publication?.ok === true ? "published" : (publication?.reason ?? "event-hub-unavailable");
1172
1454
  return publicationReason;
1173
1455
  }
1174
- function logGatewayTurnFailure(ctx, runId, { revision, state }, failureCode, { publicationReason, runtimeRetry, }, error) {
1456
+ function gatewayRetryTrace(ctx, deps, runId) {
1457
+ // True from the moment this call's `retrying` fact reached the replay until its answer or its end
1458
+ // closes it. A failed call stays open: its turn-failure frame, or `end`, decides what closes it.
1459
+ let open = false;
1460
+ const retryingShown = () => deps.codingRuntimeEventHub?.modelGatewayRetrying(runId) === true;
1461
+ const hear = (notice) => {
1462
+ if (notice.kind === "settled") {
1463
+ if (open && notice.outcome === "answered") {
1464
+ open = false;
1465
+ surfaceGatewayRetry(ctx, deps, runId, "recovered");
1466
+ }
1467
+ return;
1468
+ }
1469
+ if (open && retryingShown())
1470
+ return;
1471
+ if (surfaceGatewayRetry(ctx, deps, runId, "retrying", notice))
1472
+ open = true;
1473
+ };
1474
+ const finish = () => {
1475
+ if (!open)
1476
+ return;
1477
+ open = false;
1478
+ if (retryingShown())
1479
+ surfaceGatewayRetry(ctx, deps, runId, "retry-stopped");
1480
+ };
1481
+ return {
1482
+ observer: (notice) => {
1483
+ runRetryTraceStep(ctx, deps, runId, () => {
1484
+ hear(notice);
1485
+ });
1486
+ },
1487
+ end: () => {
1488
+ runRetryTraceStep(ctx, deps, runId, finish);
1489
+ },
1490
+ };
1491
+ }
1492
+ // Runs one step of the trace; a failure of the step goes to the operator diagnostic and nowhere else.
1493
+ function runRetryTraceStep(ctx, deps, runId, step) {
1494
+ try {
1495
+ step();
1496
+ }
1497
+ catch (error) {
1498
+ emitServerDiagnostic(deps.diagnostics, serverDiagnosticFromError({
1499
+ ...gatewayDiagnosticCorrelation(ctx, runId),
1500
+ operation: CODING_SIDECAR_GATEWAY_ROUTE,
1501
+ source: "coding-sidecar-gateway.retry-observer",
1502
+ error,
1503
+ redact: (message) => String(deps.redactor(message)),
1504
+ }));
1505
+ }
1506
+ }
1507
+ // The event kind each fact is published as.
1508
+ const GATEWAY_FACT_EVENT_KINDS = {
1509
+ retrying: "model-gateway-retrying",
1510
+ recovered: "model-gateway-recovered",
1511
+ "retry-stopped": "model-gateway-retry-stopped",
1512
+ };
1513
+ // The run's state while it can still show a status: running or paused. Any other run (stopping,
1514
+ // settled, unknown) has none, and the gateway's own retry line is its record.
1515
+ function liveRunSnapshot(deps, runId) {
1516
+ const snapshot = deps.codingRuntimeOrchestrator?.getSnapshot(runId);
1517
+ if (snapshot?.state !== "running" && snapshot?.state !== "paused")
1518
+ return undefined;
1519
+ return { state: snapshot.state, revision: snapshot.revision };
1520
+ }
1521
+ function publishGatewayRetryFact(deps, runId, run, fact) {
1522
+ const publication = deps.codingRuntimeEventHub?.publishModelGatewayFact(runId, run.state, run.revision, GATEWAY_FACT_EVENT_KINDS[fact]);
1523
+ return publication?.ok === true ? "published" : (publication?.reason ?? "event-hub-unavailable");
1524
+ }
1525
+ // The body-free fields the fact's line records for its cause: the failed attempt of a retry, or the
1526
+ // reason an admission was held, and the policy the call ran under either way.
1527
+ function gatewayRetryCauseFields(cause) {
1528
+ return cause.kind === "scheduled"
1529
+ ? { attempt: cause.attempt, retryPolicy: cause.retryPolicy }
1530
+ : { waitReason: cause.reason, retryPolicy: cause.retryPolicy };
1531
+ }
1532
+ // Publishes the fact to the run's event replay and records the publication. True when the replay
1533
+ // took the frame; a run that has no status to show (not live) and a refused publication are both
1534
+ // false, so the caller never counts a fact the Workbench cannot see as shown.
1535
+ function surfaceGatewayRetry(ctx, deps, runId, fact, cause) {
1536
+ const run = liveRunSnapshot(deps, runId);
1537
+ if (run === undefined)
1538
+ return false;
1539
+ const publicationReason = publishGatewayRetryFact(deps, runId, run, fact);
1540
+ const published = publicationReason === "published";
1541
+ const event = activityLogEvent(CODING_SIDECAR_GATEWAY_RETRY_SURFACED_OPERATION, {
1542
+ ...gatewayDiagnosticCorrelation(ctx, runId),
1543
+ ...(published ? {} : { errorKind: "unavailable" }),
1544
+ }, {
1545
+ runId,
1546
+ revision: run.revision,
1547
+ state: run.state,
1548
+ fact,
1549
+ ...(cause === undefined ? {} : gatewayRetryCauseFields(cause)),
1550
+ published,
1551
+ publicationReason,
1552
+ completeness: "complete",
1553
+ loss: "none",
1554
+ });
1555
+ if (published)
1556
+ getServerLogger().info(event);
1557
+ else
1558
+ getServerLogger().warn(event);
1559
+ return published;
1560
+ }
1561
+ function logGatewayTurnFailure(ctx, runId, { revision, state }, failureCode, { publicationReason, runtimeRetry, providerUnavailable, }, error) {
1175
1562
  const { frames, causeChain } = describeError(error);
1176
1563
  getServerLogger().warn(activityLogEvent(CODING_SIDECAR_GATEWAY_TURN_FAILED_OPERATION, {
1177
1564
  ...gatewayDiagnosticCorrelation(ctx, runId),
@@ -1184,6 +1571,11 @@ function logGatewayTurnFailure(ctx, runId, { revision, state }, failureCode, { p
1184
1571
  published: publicationReason === "published",
1185
1572
  publicationReason,
1186
1573
  runtimeRetry,
1574
+ // Present only when the provider could not serve the call (a retryable status, a rate limit,
1575
+ // an open breaker): the fact a run that ends on this failure settles `provider-unavailable`.
1576
+ ...(providerUnavailable ? { providerUnavailable } : {}),
1577
+ // The turn failed with a settled gateway error, which says whether a repair ran.
1578
+ ...repairEvidence(settledRepair(outputRepairOf(error))),
1187
1579
  ...(error === undefined || frames === undefined ? {} : { frames }),
1188
1580
  ...(error === undefined || causeChain === undefined ? {} : { causeChain }),
1189
1581
  completeness: "complete",
@@ -1198,6 +1590,7 @@ function modelTurnFailureCode(error) {
1198
1590
  // its error-level diagnostic (PR #3617 review). It extends MalformedToolCallError, so it is named
1199
1591
  // before that check.
1200
1592
  if (error instanceof ContextOverflowError ||
1593
+ error instanceof CallerAttemptAdmissionError ||
1201
1594
  error instanceof ModelRefusalError ||
1202
1595
  error instanceof ResponseRedactionError)
1203
1596
  return "turn-rejected";
@@ -1209,28 +1602,46 @@ function modelTurnFailureCode(error) {
1209
1602
  return "invalid-tool-call";
1210
1603
  return undefined;
1211
1604
  }
1605
+ // A gateway error that says the call stopped answering rather than that it was refused: a timeout, a
1606
+ // refused or dropped connection, a stream that ended without its terminal answer (HTTP 200).
1607
+ function isStreamInterruption(error) {
1608
+ return (error instanceof TimeoutError ||
1609
+ error instanceof TransportError ||
1610
+ (error instanceof ProviderError && error.httpStatus === 200));
1611
+ }
1212
1612
  function gatewayTurnFailureCode(error) {
1213
1613
  const modelCause = modelTurnFailureCode(error);
1214
1614
  if (modelCause !== undefined)
1215
1615
  return modelCause;
1216
- if (error instanceof TimeoutError ||
1217
- error instanceof TransportError ||
1218
- (error instanceof ProviderError && error.httpStatus === 200))
1219
- return "stream-incomplete";
1220
- return "provider-failed";
1221
- }
1616
+ return isStreamInterruption(error) ? "stream-incomplete" : "provider-failed";
1617
+ }
1618
+ // The streamed path names `stream-incomplete` only for a call that stopped answering: an
1619
+ // interruption, or a failure that is no gateway error at all (a decoder or socket fault inside the
1620
+ // stream). Every other gateway error — a refused credential, a configuration or egress refusal, an
1621
+ // unknown model, a provider status — is named `provider-failed`, as the buffered path always named
1622
+ // it. Before (#3873 review, PR #3876) the default bucket was `stream-incomplete`, so a configuration
1623
+ // or egress error that reached the stream settled the whole run `provider-unavailable`: "nothing was
1624
+ // rejected, check that the gateway is running".
1222
1625
  function gatewayStreamFailureCode(error) {
1223
1626
  if (gatewaySpendRejectionReason(error) !== undefined)
1224
1627
  return "turn-rejected";
1225
1628
  const modelCause = modelTurnFailureCode(error);
1226
1629
  if (modelCause !== undefined)
1227
1630
  return modelCause;
1228
- if (error instanceof AuthenticationError ||
1229
- error instanceof RateLimitError ||
1230
- error instanceof CircuitOpenError ||
1231
- (error instanceof ProviderError && error.httpStatus !== 200))
1232
- return "provider-failed";
1233
- return "stream-incomplete";
1631
+ return error instanceof GatewayError && !isStreamInterruption(error)
1632
+ ? "provider-failed"
1633
+ : "stream-incomplete";
1634
+ }
1635
+ // Whether the provider could not serve the call, as opposed to rejecting it: a retryable provider
1636
+ // status (408, 429, 5xx), a rate limit or an open breaker. `provider-failed` names both alike, and
1637
+ // the gateway has by now retried through its outage window, so such a failure means the provider
1638
+ // stayed unavailable (#3873 review, F10). Positively identified from the error, never inferred from
1639
+ // the turn-failure bucket; an output-exhausted or empty answer is an HTTP 200 and never one.
1640
+ function providerUnavailableFault(error) {
1641
+ if (error instanceof RateLimitError || error instanceof CircuitOpenError)
1642
+ return true;
1643
+ return (error instanceof ProviderError &&
1644
+ (error.httpStatus === 408 || error.httpStatus === 429 || error.httpStatus >= 500));
1234
1645
  }
1235
1646
  // A rejection no retry can change — a provider 4xx other than 408/409/429, a refused credential, an
1236
1647
  // invalid configuration, an exhausted spend budget — which the gateway's own retry policy already
@@ -1240,13 +1651,36 @@ function gatewayStreamFailureCode(error) {
1240
1651
  function runtimeRetryFor(error, failureCode) {
1241
1652
  if (gatewaySpendRejectionReason(error) !== undefined)
1242
1653
  return "refused";
1243
- const final = failureCode === "provider-failed" &&
1654
+ if (repairFailedAgain(error, failureCode))
1655
+ return "refused";
1656
+ // The gateway already owns bounded schema/transport correction. Repeating the identical
1657
+ // malformed turn in OpenCode adds no correction and can loop without an attempt limit.
1658
+ if (failureCode === "invalid-tool-call")
1659
+ return "refused";
1660
+ return isFinalProviderRejection(error, failureCode) ? "refused" : "allowed";
1661
+ }
1662
+ // How the repaired attempt of each model-answer failure ends when the model fails that way again.
1663
+ const REPAIRED_ANSWER_FAILED_AGAIN = new Map([
1664
+ ["output-exhausted", "exhausted-again"],
1665
+ ["empty-answer", "empty-again"],
1666
+ ]);
1667
+ // #3873 (F17, F23): the gateway already steered the one repair an exhausted or empty answer gets,
1668
+ // and the model failed the same way again. A runtime retry of the identical turn would run away
1669
+ // identically (run 324076066246415201273338647160811469441: three seven-minute attempts, no
1670
+ // progress; run 74202984158312182524609898190850427735: seven attempts that each ended empty after
1671
+ // reasoning), so the turn is final. A first failure the call's budget could not repair, and a
1672
+ // repair that failed for another reason, stay retryable.
1673
+ function repairFailedAgain(error, failureCode) {
1674
+ const again = REPAIRED_ANSWER_FAILED_AGAIN.get(failureCode);
1675
+ return again !== undefined && outputRepairOf(error) === again;
1676
+ }
1677
+ function isFinalProviderRejection(error, failureCode) {
1678
+ return (failureCode === "provider-failed" &&
1244
1679
  error instanceof GatewayError &&
1245
1680
  !error.retryable &&
1246
1681
  !(error instanceof CircuitOpenError) &&
1247
1682
  !(error instanceof CancelledError) &&
1248
- !(error instanceof ProviderError && runtimeRetriesStatus(error.httpStatus));
1249
- return final ? "refused" : "allowed";
1683
+ !(error instanceof ProviderError && runtimeRetriesStatus(error.httpStatus)));
1250
1684
  }
1251
1685
  // The provider statuses OpenCode 2.0.10 retries on its own (408, 409, 429, 5xx): a rejection with one
1252
1686
  // of them is no verdict on the turn, whatever Keiko's own retry policy did with it (PR #3625 review:
@@ -1327,6 +1761,15 @@ function promptReservationRunId(value) {
1327
1761
  return undefined;
1328
1762
  return typeof value.runId === "string" && value.runId.length > 0 ? value.runId : undefined;
1329
1763
  }
1764
+ // The identity an admitted reservation answers beside its run, when it answers one: a safe integer
1765
+ // the settlement hands back verbatim. Anything else is no identity, and the call is then untracked.
1766
+ function promptReservationModelCallId(value) {
1767
+ if (!isRecord(value) || value.ok !== true)
1768
+ return undefined;
1769
+ return typeof value.modelCallId === "number" && Number.isSafeInteger(value.modelCallId)
1770
+ ? value.modelCallId
1771
+ : undefined;
1772
+ }
1330
1773
  function gatewayReadinessRegistry(deps) {
1331
1774
  return deps.openCodeGatewayReadinessRegistry;
1332
1775
  }
@@ -1340,11 +1783,12 @@ function bearerCapability(ctx) {
1340
1783
  const capability = value.slice("Bearer ".length);
1341
1784
  return capability.length > 0 ? capability : undefined;
1342
1785
  }
1343
- function isExactManagedToolSet(tools) {
1344
- return hasExactOpenCodeVisibleToolContract(tools);
1786
+ function isExactManagedToolSet(tools, profile = "direct") {
1787
+ return hasExactOpenCodeVisibleToolContract(tools, profile);
1345
1788
  }
1346
1789
  function isAdmittedManagedToolSet(tools, registry, runId) {
1347
- return (isExactManagedToolSet(tools) || (tools === undefined && registry?.isVerified(runId) === true));
1790
+ return (isExactManagedToolSet(tools, registry?.toolProfile ?? "direct") ||
1791
+ (tools === undefined && registry?.isVerified(runId) === true));
1348
1792
  }
1349
1793
  function isRuntimeReadinessProbe(parsed) {
1350
1794
  const readiness = parsed.messages.at(-1);
@@ -1372,8 +1816,8 @@ function toolNameSetDigest(names) {
1372
1816
  hash.update(`${String(name.length)}:${name}`);
1373
1817
  return hash.digest("hex");
1374
1818
  }
1375
- function toolContractMismatch(tools) {
1376
- const expected = new Set(OPENCODE_MODEL_VISIBLE_TOOL_NAMES);
1819
+ function toolContractMismatch(tools, profile) {
1820
+ const expected = new Set(openCodeVisibleToolNames(profile));
1377
1821
  const received = new Set(tools?.map((tool) => tool.name) ?? []);
1378
1822
  const unexpected = [...received].filter((name) => !expected.has(name));
1379
1823
  const missing = [...expected].filter((name) => !received.has(name));
@@ -1399,7 +1843,7 @@ function refuseGatewayToolContract(ctx, deps, runId, parsed) {
1399
1843
  code,
1400
1844
  });
1401
1845
  const answer = forbiddenGatewayRequest();
1402
- logGatewayRejection(ctx, runId, answer.status, reason, toolContractMismatch(tools));
1846
+ logGatewayRejection(ctx, runId, answer.status, reason, toolContractMismatch(tools, gatewayReadinessRegistry(deps)?.toolProfile ?? "direct"));
1403
1847
  refuseReadinessChallenge(deps, runId, parsed);
1404
1848
  reportGatewayTurnRejection(ctx, deps, runId, answer);
1405
1849
  return answer;
@@ -1511,9 +1955,15 @@ function isRuntimeTransportProfileId(modelProfileId) {
1511
1955
  }
1512
1956
  function reserveGatewayPromptBudget(deps, capability, runId, reservedPromptTokens) {
1513
1957
  const reserved = runtimeCapabilityAuthenticator(deps)?.reservePromptTokens?.(capability, reservedPromptTokens);
1514
- return promptReservationRunId(reserved) === runId
1515
- ? { capability, reservedPromptTokens, settled: false }
1516
- : undefined;
1958
+ if (promptReservationRunId(reserved) !== runId)
1959
+ return undefined;
1960
+ const modelCallId = promptReservationModelCallId(reserved);
1961
+ return {
1962
+ capability,
1963
+ reservedPromptTokens,
1964
+ ...(modelCallId === undefined ? {} : { modelCallId }),
1965
+ settled: false,
1966
+ };
1517
1967
  }
1518
1968
  function isAvailableGatewayProfile(resolved) {
1519
1969
  return (resolved.result.status === "available" &&
@@ -1596,8 +2046,9 @@ function gatewayCancellationCause(signal, sources) {
1596
2046
  // run (coding run 23, 2026-09-11).
1597
2047
  export function codingSidecarGatewayRequestDeadlineMs(config, modelId) {
1598
2048
  // The sidecar reaches the gateway both ways — a buffered `chat()` answer or a `chatStream()`
1599
- // read — so its backstop sits behind the longer of the two budgets.
1600
- return gatewayRouteDeadlineMs(config, modelId, ["buffered", "streamed"]);
2049
+ // read — so its backstop sits behind the longer of the two budgets, each extended by the outage
2050
+ // window these calls ride out (#3873 review): the route must not cut the configured window short.
2051
+ return gatewayRouteDeadlineMs(config, modelId, ["buffered", "streamed"], CODING_TURN_GATEWAY_POLICY.outagePolicy);
1601
2052
  }
1602
2053
  function gatewayRequestCancellation(ctx, deps, config, modelId, runId) {
1603
2054
  const client = new AbortController();
@@ -1624,8 +2075,15 @@ function gatewayRequestCancellation(ctx, deps, config, modelId, runId) {
1624
2075
  },
1625
2076
  };
1626
2077
  }
1627
- function requestForGatewayDelivery(ctx, parsed, delivery, signal) {
1628
- return buildChatRequest(parsed, delivery.modelAlias, signal, delivery.maxOutputTokens, ctx.correlationId, delivery.reasoningEffort, { coverage: delivery.toolCatalogCoverage, offerLifetimeMs: delivery.offerLifetimeMs });
2078
+ function requestForGatewayDelivery(ctx, parsed, delivery, signal, retryObserver) {
2079
+ return {
2080
+ ...buildChatRequest(parsed, delivery.modelAlias, signal, delivery.maxOutputTokens, ctx.correlationId, delivery.reasoningEffort, {
2081
+ coverage: delivery.toolCatalogCoverage,
2082
+ offerLifetimeMs: delivery.offerLifetimeMs,
2083
+ toolProfile: delivery.toolProfile,
2084
+ }),
2085
+ retryObserver,
2086
+ };
1629
2087
  }
1630
2088
  async function executeGatewayChat(ctx, deps, binding, parsed, runId, delivery) {
1631
2089
  const cancellation = gatewayRequestCancellation(ctx, deps, binding.config, delivery.modelAlias, runId);
@@ -1639,7 +2097,8 @@ async function executeGatewayChat(ctx, deps, binding, parsed, runId, delivery) {
1639
2097
  // Extracted so `executeGatewayChat` stays under AGENTS.md §6's 50-line ceiling.
1640
2098
  async function dispatchGatewayChat(ctx, deps, binding, parsed, runId, delivery, cancellation) {
1641
2099
  const { modelAlias, upstreamStreamingSupported } = delivery;
1642
- const request = requestForGatewayDelivery(ctx, parsed, delivery, cancellation.signal);
2100
+ const retries = gatewayRetryTrace(ctx, deps, runId);
2101
+ const request = requestForGatewayDelivery(ctx, parsed, delivery, cancellation.signal, retries.observer);
1643
2102
  const dispatch = {
1644
2103
  deps,
1645
2104
  binding,
@@ -1664,13 +2123,19 @@ async function dispatchGatewayChat(ctx, deps, binding, parsed, runId, delivery,
1664
2123
  catch (error) {
1665
2124
  return settleFailedGatewayChat(ctx, deps, runId, cancellation, error, delivery, bufferedStream);
1666
2125
  }
2126
+ finally {
2127
+ // After the answer, or the failure frame, has been settled: what is still the newest frame is
2128
+ // a retrying fact nothing closed.
2129
+ retries.end();
2130
+ }
1667
2131
  }
1668
2132
  // The opening frame never reached the client — the shared path killed the stream, or the response
1669
2133
  // was already gone — so no provider call is started for an answer nobody can receive, exactly as
1670
2134
  // `beginGatewayStream` ends the streamed path (#3602 review). The outcome names the abort source.
1671
2135
  function settleUndeliverableBufferedStream(ctx, dispatch) {
1672
2136
  const { deps, runId, cancellation, promptTokenReservation } = dispatch;
1673
- recordGatewayOutcome(ctx, deps, runId, cancellation, "cancelled", 0, 0);
2137
+ // No provider call was started, so no repair can have run.
2138
+ recordGatewayOutcome(ctx, deps, runId, cancellation, "cancelled", NO_GATEWAY_OUTPUT, settledRepair(undefined));
1674
2139
  releaseUndispatchedPromptBudget(ctx, deps, runId, promptTokenReservation);
1675
2140
  return STREAMING;
1676
2141
  }
@@ -1679,12 +2144,12 @@ function settleUndeliverableBufferedStream(ctx, dispatch) {
1679
2144
  // `released-unspent`) so the ledger movement is reconstructible from the log.
1680
2145
  function releaseUndispatchedPromptBudget(ctx, deps, runId, reservation) {
1681
2146
  const settlement = releasePromptTokenReservation(deps, reservation);
1682
- logGatewayCompletionUsage(ctx, runId, { completionTokens: 0, outputBytes: 0 }, "output-byte-estimate", settlement);
2147
+ logGatewayCompletionUsage(ctx, runId, { completionTokens: 0, outputBytes: 0, contentBytes: 0, reasoningBytes: 0 }, "output-byte-estimate", settlement);
1683
2148
  }
1684
2149
  // Extracted so `executeGatewayChat` stays under AGENTS.md §6's 50-line ceiling.
1685
2150
  function settleFailedGatewayChat(ctx, deps, runId, cancellation, error, delivery, bufferedStream) {
1686
2151
  const cancelled = cancellation.signal.aborted;
1687
- recordGatewayOutcome(ctx, deps, runId, cancellation, cancelled ? "cancelled" : "failed", 0, 0);
2152
+ recordGatewayOutcome(ctx, deps, runId, cancellation, cancelled ? "cancelled" : "failed", NO_GATEWAY_OUTPUT, settledRepair(outputRepairOf(error)));
1688
2153
  const spendReason = gatewaySpendRejectionReason(error);
1689
2154
  const failureCode = spendReason === undefined ? gatewayTurnFailureCode(error) : "turn-rejected";
1690
2155
  const runtimeRetry = runtimeRetryFor(error, failureCode);
@@ -1705,7 +2170,7 @@ function settleFailedGatewayChat(ctx, deps, runId, cancellation, error, delivery
1705
2170
  async function executeBufferedGatewayChat(ctx, dispatch, stream) {
1706
2171
  const { deps, binding, modelAlias, request, runId, cancellation, promptTokenReservation } = dispatch;
1707
2172
  const response = await chatFactoryFor(deps, binding.gateway)(binding.config, modelAlias)(request);
1708
- const promptSettlement = settlePromptTokenReservation(deps, promptTokenReservation, response.usage.promptTokens);
2173
+ const promptSettlement = settlePromptTokenReservation(deps, promptTokenReservation, response.usage.promptTokens, discardedPromptTokens(response));
1709
2174
  const output = outputMetrics(response);
1710
2175
  const usage = completionUsage(response, output.outputBytes, 0);
1711
2176
  const metrics = { ...output, completionTokens: usage.completionTokens };
@@ -1713,31 +2178,55 @@ async function executeBufferedGatewayChat(ctx, dispatch, stream) {
1713
2178
  ...response,
1714
2179
  usage: { ...response.usage, completionTokens: usage.completionTokens },
1715
2180
  };
1716
- logGatewayCompletionUsage(ctx, runId, metrics, usage.source, promptSettlement);
1717
- const record = (outcome) => {
1718
- recordGatewayOutcome(ctx, deps, runId, cancellation, outcome, metrics.completionTokens, metrics.outputBytes);
1719
- };
2181
+ logGatewayCompletionUsage(ctx, runId, { ...metrics, ...answerShares(response) }, usage.source, promptSettlement);
2182
+ const record = bufferedOutcomeRecorder(ctx, dispatch, metrics, response);
1720
2183
  if (cancellation.signal.aborted) {
1721
2184
  record("cancelled");
1722
2185
  return stream === undefined
1723
2186
  ? unavailableError()
1724
2187
  : settleBufferedOpenAiStreamError(stream, "error");
1725
2188
  }
1726
- if (exceedsOutputBudget(metrics, request.maxOutputTokens ?? 1)) {
1727
- record("output-limit");
2189
+ const maxOutputTokens = request.maxOutputTokens ?? 1;
2190
+ if (exceedsOutputBudget(metrics, maxOutputTokens)) {
2191
+ record("output-limit", { limit: "answer" });
1728
2192
  return stream === undefined
1729
2193
  ? unavailableError()
1730
2194
  : settleBufferedOpenAiStreamError(stream, "length");
1731
2195
  }
1732
- return deliverBufferedGatewayAnswer(ctx, modelAlias, stream, settledResponse, record);
2196
+ return deliverBufferedGatewayAnswer(ctx, modelAlias, stream, withinReasoningBudget(settledResponse, maxOutputTokens), record);
2197
+ }
2198
+ // The outcome line of a buffered turn: the answer's counts, the reasoning it carried to the
2199
+ // runtime (#3878) or withheld, and — from the settled answer — the gateway's steered repair (#3873).
2200
+ function bufferedOutcomeRecorder(ctx, dispatch, metrics, response) {
2201
+ const { deps, runId, cancellation } = dispatch;
2202
+ return (outcome, delivery = {}) => {
2203
+ recordGatewayOutcome(ctx, deps, runId, cancellation, outcome, { reasoningFrames: 0, forwardedReasoningBytes: 0, ...metrics, ...delivery }, settledRepair(response.outputRepair));
2204
+ };
1733
2205
  }
1734
- function deliverBufferedGatewayAnswer(ctx, modelAlias, stream, response, record) {
2206
+ // A buffered answer is complete when it arrives: its own output bound decides whether it may be
2207
+ // delivered, never the size of the reasoning beside it (#3873 review). A reasoning over the byte
2208
+ // bound of one model attempt is withheld from the runtime — display-only text — and the answer is
2209
+ // delivered without it; the outcome line says so (`reasoningWithheld`).
2210
+ function withinReasoningBudget(response, maxOutputTokens) {
2211
+ if (!exceedsReasoningBudget(response, maxOutputTokens))
2212
+ return { response, withheld: false };
2213
+ const { reasoning: _withheld, ...withoutReasoning } = response;
2214
+ return { response: withoutReasoning, withheld: true };
2215
+ }
2216
+ function deliverBufferedGatewayAnswer(ctx, modelAlias, stream, answer, record) {
2217
+ const { response } = answer;
2218
+ const delivery = {
2219
+ reasoningFrames: response.reasoning === undefined ? 0 : 1,
2220
+ forwardedReasoningBytes: response.reasoning === undefined ? 0 : Buffer.byteLength(response.reasoning, "utf8"),
2221
+ ...(answer.withheld ? { reasoningWithheld: true } : {}),
2222
+ };
1735
2223
  if (stream === undefined) {
1736
- record("accepted");
2224
+ record("accepted", delivery);
1737
2225
  return openAiResponse(modelAlias, response);
1738
2226
  }
1739
2227
  completeBufferedOpenAiStream(stream, response);
1740
- record(ctx.res.writableEnded && !ctx.res.destroyed ? "accepted" : "cancelled");
2228
+ const delivered = ctx.res.writableEnded && !ctx.res.destroyed;
2229
+ record(delivered ? "accepted" : "cancelled", delivered ? delivery : {});
1741
2230
  return STREAMING;
1742
2231
  }
1743
2232
  // Closed stream state machine keeps iterator, cancellation, and SSE backpressure transitions together.
@@ -1748,7 +2237,7 @@ async function streamGatewayChat(ctx, dispatch) {
1748
2237
  iterator = chatStreamFactoryFor(deps, binding.gateway)(binding.config, modelAlias)(request)[Symbol.asyncIterator]();
1749
2238
  }
1750
2239
  catch (error) {
1751
- recordGatewayOutcome(ctx, deps, runId, dispatch.cancellation, "failed", 0, 0);
2240
+ recordGatewayOutcome(ctx, deps, runId, dispatch.cancellation, "failed", NO_GATEWAY_OUTPUT, settledRepair(outputRepairOf(error)));
1752
2241
  const failureCode = gatewayTurnFailureCode(error);
1753
2242
  const runtimeRetry = runtimeRetryFor(error, failureCode);
1754
2243
  const turnFailureRecorded = reportGatewayTurnFailure(ctx, deps, runId, {
@@ -1786,6 +2275,10 @@ async function pumpGatewayStreamWithCancellation(deps, session) {
1786
2275
  void iterator.return?.();
1787
2276
  };
1788
2277
  cancellationSignal.addEventListener("abort", cancelIterator, { once: true });
2278
+ // A live turn keeps the same keep-alive the buffered answer always had (lab ledger F2): a model
2279
+ // that thinks before its first token, or generates a tool call the sidecar forwards only once it
2280
+ // is whole, leaves the runtime's connection silent for as long as that takes.
2281
+ const stopHeartbeat = sidecarSseHeartbeat(session.ctx, cancellation.transport);
1789
2282
  try {
1790
2283
  await pumpGatewayStream(session);
1791
2284
  }
@@ -1799,9 +2292,10 @@ async function pumpGatewayStreamWithCancellation(deps, session) {
1799
2292
  error,
1800
2293
  });
1801
2294
  emitGatewayStreamFailureDiagnostic(session.ctx, deps, error, session.runId, turnFailureRecorded);
1802
- settleGatewayStreamError(session, runtimeRetry);
2295
+ settleGatewayStreamError(session, runtimeRetry, outputRepairOf(error));
1803
2296
  }
1804
2297
  finally {
2298
+ stopHeartbeat();
1805
2299
  cancellationSignal.removeEventListener("abort", cancelIterator);
1806
2300
  }
1807
2301
  }
@@ -1823,6 +2317,9 @@ function createGatewayStreamSession(ctx, dispatch, iterator) {
1823
2317
  promptTokens: 0,
1824
2318
  outputBytes: 0,
1825
2319
  previousDeltaEndedWithHighSurrogate: false,
2320
+ reasoningFrames: 0,
2321
+ forwardedReasoningBytes: 0,
2322
+ previousReasoningEndedWithHighSurrogate: false,
1826
2323
  },
1827
2324
  };
1828
2325
  }
@@ -1837,14 +2334,21 @@ function beginGatewayStream(session) {
1837
2334
  const opened = writeOpenAiSse(ctx, openAiStreamChunk(id, created, modelId, { role: "assistant" }, null), session.cancellation.transport);
1838
2335
  if (!opened) {
1839
2336
  ctx.res.destroy();
1840
- recordSessionOutcome(session, "cancelled");
2337
+ // The gateway's generator was never pulled: no provider call, so no repair can have run.
2338
+ recordSessionOutcome(session, "cancelled", settledRepair(undefined));
1841
2339
  return false;
1842
2340
  }
1843
2341
  return true;
1844
2342
  }
1845
- function recordSessionOutcome(session, outcome) {
2343
+ function recordSessionOutcome(session, outcome, repair, limit) {
1846
2344
  const { ctx, deps, runId, cancellation, metrics } = session;
1847
- recordGatewayOutcome(ctx, deps, runId, cancellation, outcome, metrics.completionTokens, metrics.outputBytes);
2345
+ recordGatewayOutcome(ctx, deps, runId, cancellation, outcome, {
2346
+ completionTokens: metrics.completionTokens,
2347
+ outputBytes: metrics.outputBytes,
2348
+ reasoningFrames: metrics.reasoningFrames,
2349
+ forwardedReasoningBytes: metrics.forwardedReasoningBytes,
2350
+ ...(limit === undefined ? {} : { limit }),
2351
+ }, repair);
1848
2352
  }
1849
2353
  function writeSessionTerminal(session, finishReason) {
1850
2354
  const { ctx, id, created, modelId, metrics, cancellation } = session;
@@ -1856,19 +2360,19 @@ async function pumpGatewayStream(session) {
1856
2360
  for (;;) {
1857
2361
  if (isGatewayRequestCancelled(cancellationSignal)) {
1858
2362
  await iterator.return?.();
1859
- recordSessionOutcome(session, "cancelled");
2363
+ recordSessionOutcome(session, "cancelled", REPAIR_NOT_SETTLED);
1860
2364
  return;
1861
2365
  }
1862
2366
  const next = await iterator.next();
1863
2367
  if (cancellationSignal.aborted) {
1864
- recordSessionOutcome(session, "cancelled");
2368
+ recordSessionOutcome(session, "cancelled", REPAIR_NOT_SETTLED);
1865
2369
  return;
1866
2370
  }
1867
2371
  if (next.done)
1868
2372
  break;
1869
2373
  const chunk = next.value;
1870
- if (chunk.type === "delta") {
1871
- if (await streamGatewayDelta(session, chunk.token))
2374
+ if (chunk.type !== "done") {
2375
+ if (await streamGatewayText(session, chunk))
1872
2376
  continue;
1873
2377
  return;
1874
2378
  }
@@ -1879,24 +2383,63 @@ async function pumpGatewayStream(session) {
1879
2383
  throw new ProviderError("provider stream ended without a terminal response", 200);
1880
2384
  }
1881
2385
  /** Returns true when the stream may continue with the next chunk. */
1882
- async function streamGatewayDelta(session, token) {
1883
- const { ctx, id, created, modelId, request, iterator, metrics } = session;
2386
+ function streamGatewayText(session, chunk) {
2387
+ return chunk.type === "delta"
2388
+ ? streamGatewayDelta(session, chunk.token)
2389
+ : streamGatewayReasoning(session, chunk.token);
2390
+ }
2391
+ /** Returns true when the stream may continue with the next chunk. */
2392
+ function streamGatewayDelta(session, token) {
2393
+ const { request, metrics } = session;
1884
2394
  const deltaMetrics = incrementalUtf8ByteCount(token, metrics.previousDeltaEndedWithHighSurrogate);
1885
2395
  metrics.outputBytes += deltaMetrics.bytes;
1886
2396
  metrics.previousDeltaEndedWithHighSurrogate = deltaMetrics.endsWithHighSurrogate;
1887
2397
  metrics.completionTokens = Math.ceil(metrics.outputBytes / OUTPUT_BYTES_PER_TOKEN_LIMIT);
1888
2398
  const budget = { completionTokens: metrics.completionTokens, outputBytes: metrics.outputBytes };
1889
- if (exceedsOutputBudget(budget, request.maxOutputTokens ?? 1)) {
2399
+ const overBudget = exceedsOutputBudget(budget, request.maxOutputTokens ?? 1);
2400
+ return forwardStreamText(session, { content: token }, overBudget ? "answer" : undefined);
2401
+ }
2402
+ // The reasoning passages one turn may carry: the first attempt that forwards reasoning and the
2403
+ // gateway's one steered repair (#3873 F17, F23, option iii). The gateway forwards no further
2404
+ // passage — a provider retry after forwarded reasoning streams its reasoning undelivered — so the
2405
+ // second passage is the repair working, not an overgrown reasoning.
2406
+ const REASONING_PASSAGES_PER_TURN = 2;
2407
+ // #3878: the model's reasoning reaches the coding runtime as `delta.reasoning_content`, the field
2408
+ // OpenCode's OpenAI-compatible provider turns into a reasoning part, as it arrives. It is bounded
2409
+ // apart from the answer, by the same byte allowance per model attempt for the attempts a turn may
2410
+ // carry, so a reasoning model keeps its whole answer budget and a provider that ignores its output
2411
+ // limit still cannot stream without end.
2412
+ async function streamGatewayReasoning(session, token) {
2413
+ const { request, metrics } = session;
2414
+ const counted = incrementalUtf8ByteCount(token, metrics.previousReasoningEndedWithHighSurrogate);
2415
+ const total = metrics.forwardedReasoningBytes + counted.bytes;
2416
+ const overBudget = total > outputByteBudget(request.maxOutputTokens ?? 1) * REASONING_PASSAGES_PER_TURN;
2417
+ const forwarded = await forwardStreamText(session, { reasoning_content: token }, overBudget ? "reasoning" : undefined);
2418
+ if (forwarded) {
2419
+ // Only bytes the runtime actually received count as forwarded (#3873 review).
2420
+ metrics.forwardedReasoningBytes = total;
2421
+ metrics.previousReasoningEndedWithHighSurrogate = counted.endsWithHighSurrogate;
2422
+ metrics.reasoningFrames += 1;
2423
+ }
2424
+ return forwarded;
2425
+ }
2426
+ // One text frame of a live turn, or its end: past a byte bound (`limit`: the answer's or the
2427
+ // forwarded reasoning's) the turn ends with `length`, and a frame that no longer reaches the client
2428
+ // ends it as cancelled. The gateway call has not settled at either point, so neither line can say
2429
+ // whether a steered repair ran. Returns true when the stream may continue with the next chunk.
2430
+ async function forwardStreamText(session, delta, limit) {
2431
+ const { ctx, id, created, modelId, iterator } = session;
2432
+ if (limit !== undefined) {
1890
2433
  await iterator.return?.();
1891
- recordSessionOutcome(session, "output-limit");
2434
+ recordSessionOutcome(session, "output-limit", REPAIR_NOT_SETTLED, limit);
1892
2435
  writeSessionTerminal(session, "length");
1893
2436
  return false;
1894
2437
  }
1895
- const wrote = writeOpenAiSse(ctx, openAiStreamChunk(id, created, modelId, { content: token }, null), session.cancellation.transport);
2438
+ const wrote = writeOpenAiSse(ctx, openAiStreamChunk(id, created, modelId, delta, null), session.cancellation.transport);
1896
2439
  if (!wrote) {
1897
2440
  ctx.res.destroy();
1898
2441
  await iterator.return?.();
1899
- recordSessionOutcome(session, "cancelled");
2442
+ recordSessionOutcome(session, "cancelled", REPAIR_NOT_SETTLED);
1900
2443
  return false;
1901
2444
  }
1902
2445
  return true;
@@ -1906,11 +2449,11 @@ async function streamGatewayResponse(session, response) {
1906
2449
  const outcome = outputMetrics(response);
1907
2450
  metrics.outputBytes = Math.max(outcome.outputBytes, metrics.outputBytes);
1908
2451
  metrics.promptTokens = response.usage.promptTokens;
1909
- const promptSettlement = settlePromptTokenReservation(session.deps, promptTokenReservation, response.usage.promptTokens);
2452
+ const promptSettlement = settlePromptTokenReservation(session.deps, promptTokenReservation, response.usage.promptTokens, discardedPromptTokens(response));
1910
2453
  settleStreamCompletionUsage(session, response, outcome, promptSettlement);
1911
2454
  if (exceedsOutputBudget(metrics, request.maxOutputTokens ?? 1)) {
1912
2455
  await iterator.return?.();
1913
- recordSessionOutcome(session, "output-limit");
2456
+ recordSessionOutcome(session, "output-limit", settledRepair(response.outputRepair), "answer");
1914
2457
  writeSessionTerminal(session, "length");
1915
2458
  return;
1916
2459
  }
@@ -1919,12 +2462,12 @@ async function streamGatewayResponse(session, response) {
1919
2462
  if (!wrote) {
1920
2463
  ctx.res.destroy();
1921
2464
  await iterator.return?.();
1922
- recordSessionOutcome(session, "cancelled");
2465
+ recordSessionOutcome(session, "cancelled", settledRepair(response.outputRepair));
1923
2466
  return;
1924
2467
  }
1925
2468
  }
1926
2469
  writeSessionTerminal(session, response.finishReason);
1927
- recordSessionOutcome(session, ctx.res.writableEnded && !ctx.res.destroyed ? "accepted" : "cancelled");
2470
+ recordSessionOutcome(session, ctx.res.writableEnded && !ctx.res.destroyed ? "accepted" : "cancelled", settledRepair(response.outputRepair));
1928
2471
  }
1929
2472
  function settleStreamCompletionUsage(session, response, outcome, promptSettlement) {
1930
2473
  const { metrics, ctx, runId } = session;
@@ -1933,6 +2476,7 @@ function settleStreamCompletionUsage(session, response, outcome, promptSettlemen
1933
2476
  logGatewayCompletionUsage(ctx, runId, {
1934
2477
  completionTokens: metrics.completionTokens,
1935
2478
  outputBytes: Math.max(outcome.outputBytes, metrics.outputBytes),
2479
+ ...answerShares(response),
1936
2480
  }, usage.source, promptSettlement);
1937
2481
  }
1938
2482
  function completionUsage(response, outputBytes, streamedCompletionTokens) {
@@ -1954,6 +2498,36 @@ function completionUsage(response, outputBytes, streamedCompletionTokens) {
1954
2498
  source: "output-byte-estimate",
1955
2499
  };
1956
2500
  }
2501
+ function answerShares(response) {
2502
+ const { reasoningBytes, reasoningTokens } = response.usage;
2503
+ const discarded = response.discardedAttemptUsage;
2504
+ return {
2505
+ contentBytes: Buffer.byteLength(response.content, "utf8"),
2506
+ reasoningBytes: reasoningBytes ?? 0,
2507
+ ...(reasoningTokens === undefined ? {} : { reasoningTokens }),
2508
+ ...(discarded === undefined
2509
+ ? {}
2510
+ : {
2511
+ discardedAttemptCount: discarded.attemptCount,
2512
+ discardedPromptTokens: discarded.promptTokens,
2513
+ discardedCompletionTokens: discarded.completionTokens,
2514
+ }),
2515
+ };
2516
+ }
2517
+ // A forwarded reasoning is bounded by the turn's output allowance in bytes, apart from the answer.
2518
+ function exceedsReasoningBudget(response, maxOutputTokens) {
2519
+ return (response.reasoning !== undefined &&
2520
+ Buffer.byteLength(response.reasoning, "utf8") > outputByteBudget(maxOutputTokens));
2521
+ }
2522
+ function discardedAttemptFields(shares) {
2523
+ const { discardedAttemptCount, discardedPromptTokens, discardedCompletionTokens } = shares;
2524
+ if (discardedAttemptCount === undefined ||
2525
+ discardedPromptTokens === undefined ||
2526
+ discardedCompletionTokens === undefined) {
2527
+ return {};
2528
+ }
2529
+ return { discardedAttemptCount, discardedPromptTokens, discardedCompletionTokens };
2530
+ }
1957
2531
  function logGatewayCompletionUsage(ctx, runId, metrics, source, promptSettlement) {
1958
2532
  getServerLogger().info(activityLogEvent(CODING_SIDECAR_GATEWAY_USAGE_SETTLED_OPERATION, { correlationId: correlationIdOrUnknown(ctx.correlationId), parentCorrelationId: runId }, {
1959
2533
  runId,
@@ -1963,16 +2537,22 @@ function logGatewayCompletionUsage(ctx, runId, metrics, source, promptSettlement
1963
2537
  promptSettlementStatus: promptSettlement.status,
1964
2538
  outputBytes: metrics.outputBytes,
1965
2539
  source,
2540
+ contentBytes: metrics.contentBytes,
2541
+ reasoningBytes: metrics.reasoningBytes,
2542
+ ...(metrics.reasoningTokens === undefined
2543
+ ? {}
2544
+ : { reasoningTokens: metrics.reasoningTokens }),
2545
+ ...discardedAttemptFields(metrics),
1966
2546
  completeness: "complete",
1967
2547
  loss: "none",
1968
2548
  }));
1969
2549
  }
1970
- function settleGatewayStreamError(session, runtimeRetry) {
2550
+ function settleGatewayStreamError(session, runtimeRetry, repair) {
1971
2551
  if (session.cancellation.signal.aborted) {
1972
- recordSessionOutcome(session, "cancelled");
2552
+ recordSessionOutcome(session, "cancelled", settledRepair(repair));
1973
2553
  return;
1974
2554
  }
1975
- recordSessionOutcome(session, "failed");
2555
+ recordSessionOutcome(session, "failed", settledRepair(repair));
1976
2556
  if (runtimeRetry === "refused") {
1977
2557
  const { ctx, id, created, modelId, cancellation } = session;
1978
2558
  writeStreamRejection({ ctx, id, created, modelId, transport: cancellation.transport });
@@ -2004,23 +2584,25 @@ function beginBufferedOpenAiStream(ctx, modelId, transport) {
2004
2584
  created,
2005
2585
  modelId,
2006
2586
  transport,
2007
- stopHeartbeat: startSseHeartbeat(ctx.res, BUFFERED_STREAM_HEARTBEAT_MS, undefined, {
2008
- controller: transport.backpressure,
2009
- onBackpressure: transport.onBackpressure,
2010
- correlationId: transport.correlationId,
2011
- }),
2587
+ stopHeartbeat: sidecarSseHeartbeat(ctx, transport),
2012
2588
  };
2013
2589
  }
2590
+ // SSE comments that keep the runtime's connection alive while the model is silent, written through
2591
+ // the shared protective path so a client that stops draining kills the stream like any frame.
2592
+ function sidecarSseHeartbeat(ctx, transport) {
2593
+ return startSseHeartbeat(ctx.res, SIDECAR_SSE_HEARTBEAT_MS, undefined, {
2594
+ controller: transport.backpressure,
2595
+ onBackpressure: transport.onBackpressure,
2596
+ correlationId: transport.correlationId,
2597
+ });
2598
+ }
2014
2599
  function completeBufferedOpenAiStream(session, response) {
2015
2600
  const { ctx, id, created, modelId, transport, stopHeartbeat } = session;
2016
2601
  stopHeartbeat();
2017
- if (response.content.length > 0 || response.toolCalls.length > 0) {
2018
- const wrote = writeOpenAiSse(ctx, openAiStreamChunk(id, created, modelId, {
2019
- ...(response.content.length === 0 ? {} : { content: response.content }),
2020
- ...(response.toolCalls.length === 0
2021
- ? {}
2022
- : { tool_calls: openAiToolCalls(response.toolCalls) }),
2023
- }, null), transport);
2602
+ if (response.content.length > 0 ||
2603
+ response.toolCalls.length > 0 ||
2604
+ response.reasoning !== undefined) {
2605
+ const wrote = writeOpenAiSse(ctx, openAiStreamChunk(id, created, modelId, bufferedAnswerDelta(response), null), transport);
2024
2606
  if (!wrote) {
2025
2607
  ctx.res.destroy();
2026
2608
  return STREAMING;
@@ -2029,6 +2611,15 @@ function completeBufferedOpenAiStream(session, response) {
2029
2611
  writeStreamTerminal(session, response.finishReason, response.usage.promptTokens, response.usage.completionTokens);
2030
2612
  return STREAMING;
2031
2613
  }
2614
+ // The whole buffered answer as one streamed delta: the model's reasoning (#3878), then the answer
2615
+ // and its tool calls, the order in which the runtime shows them.
2616
+ function bufferedAnswerDelta(response) {
2617
+ return {
2618
+ ...(response.reasoning === undefined ? {} : { reasoning_content: response.reasoning }),
2619
+ ...(response.content.length === 0 ? {} : { content: response.content }),
2620
+ ...(response.toolCalls.length === 0 ? {} : { tool_calls: openAiToolCalls(response.toolCalls) }),
2621
+ };
2622
+ }
2032
2623
  function settleBufferedOpenAiStreamError(session, finishReason) {
2033
2624
  session.stopHeartbeat();
2034
2625
  writeStreamTerminal(session, finishReason, 0, 0);
@@ -2086,6 +2677,54 @@ function openAiStreamChunk(id, created, model, delta, finishReason) {
2086
2677
  choices: [{ index: 0, delta, finish_reason: finishReason }],
2087
2678
  };
2088
2679
  }
2680
+ function configuredConversationSubset(config, holder, freshOnly) {
2681
+ const providers = config.providers.filter((provider) => {
2682
+ const readiness = holder?.current() === config
2683
+ ? currentConversationReadinessObservation({ gatewayConfig: holder }, provider.modelId)
2684
+ : undefined;
2685
+ return freshOnly ? readiness === true : readiness !== false;
2686
+ });
2687
+ const ids = new Set(providers.map((provider) => provider.modelId));
2688
+ return {
2689
+ ...config,
2690
+ providers,
2691
+ ...(config.capabilities === undefined
2692
+ ? {}
2693
+ : { capabilities: config.capabilities.filter((model) => ids.has(model.id)) }),
2694
+ };
2695
+ }
2696
+ /** New admissions and passive readiness share the original selector over fresh serving evidence. */
2697
+ function resolveFreshCodingProfile(config, holder, options) {
2698
+ const configured = resolveCodingSafeSidecarGatewayProfile(config, options);
2699
+ if (configured.status !== "available" || config === undefined)
2700
+ return configured;
2701
+ const fresh = resolveCodingSafeSidecarGatewayProfile(configuredConversationSubset(config, holder, true), options);
2702
+ if (fresh.status === "available")
2703
+ return fresh;
2704
+ // Preserve a structural window refusal; an untested connection cannot repair that shortfall.
2705
+ if (!codingContextFits(configured))
2706
+ return configured;
2707
+ const unknown = resolveCodingSafeSidecarGatewayProfile(configuredConversationSubset(config, holder, false), options);
2708
+ return {
2709
+ status: "unavailable",
2710
+ reason: unknown.status === "available" ? "model-verification-pending" : "conversation-not-ready",
2711
+ };
2712
+ }
2713
+ function passiveCodingProfile(deps) {
2714
+ return resolveFreshCodingProfile(currentGatewayConfig(deps), deps.gatewayConfig, {
2715
+ deploymentPolicyDisabled: sidecarPolicyDisabled(deps),
2716
+ modelSource: currentModelSource(deps),
2717
+ gatewayVerification: currentGatewayVerification(deps),
2718
+ });
2719
+ }
2720
+ function conversationShortfall(result) {
2721
+ if (result.status === "available")
2722
+ return undefined;
2723
+ return result.reason === "model-verification-pending" ||
2724
+ result.reason === "conversation-not-ready"
2725
+ ? result.reason
2726
+ : undefined;
2727
+ }
2089
2728
  /**
2090
2729
  * Readiness dimension (#3390 closeout): a profile can be "available" per the stored config and
2091
2730
  * probe yet still be unusable — its `runMetadata.maxPromptTokens` (derived from the capability via
@@ -2096,9 +2735,14 @@ function openAiStreamChunk(id, created, model, delta, finishReason) {
2096
2735
  * requests keep failing exactly as before, unchanged by this readiness-only check.
2097
2736
  */
2098
2737
  function gatewayReadinessProjection(ctx, deps) {
2099
- const result = resolveGatewayProfile(deps).result;
2738
+ const result = passiveCodingProfile(deps);
2100
2739
  if (codingContextFits(result))
2101
2740
  return result;
2741
+ const conversation = conversationShortfall(result);
2742
+ if (conversation !== undefined) {
2743
+ logReadinessShortfall(ctx, result, conversation, conversation === "model-verification-pending");
2744
+ return result;
2745
+ }
2102
2746
  const shortfall = result.status === "available" ? "model-context-window-insufficient" : result.reason;
2103
2747
  if (shortfall !== "model-context-window-insufficient" &&
2104
2748
  shortfall !== "no-tool-calling" &&
@@ -2106,11 +2750,11 @@ function gatewayReadinessProjection(ctx, deps) {
2106
2750
  return result;
2107
2751
  // #3591 (1.1.7): while the automatic probe is still running against a slow gateway the shortfall
2108
2752
  // is not a verdict. The profile says so, and the Workbench re-reads it instead of refusing.
2109
- const pending = readinessProbePending(deps, result, shortfall);
2753
+ const pending = readinessProbePending(deps, result);
2110
2754
  const reason = pending
2111
2755
  ? "model-verification-pending"
2112
2756
  : shortfall;
2113
- logReadinessShortfall(ctx, result, reason, pending);
2757
+ logReadinessShortfall(ctx, result, reason, pending, shortfall);
2114
2758
  // An open verification replaces the stored shortfall for an unavailable projection too (an
2115
2759
  // unverified tool-calling proof whose probe is still running), or the Workbench would stop
2116
2760
  // reading and keep the refusal until an unrelated refresh.
@@ -2122,7 +2766,7 @@ function gatewayReadinessProjection(ctx, deps) {
2122
2766
  // and the start of a run with a model chosen in the picker both read it (#3603).
2123
2767
  function codingContextFits(result) {
2124
2768
  return (result.status === "available" &&
2125
- result.runMetadata.maxPromptTokens >= CODING_WORKBENCH_MINIMUM_CODING_CONTEXT_PROMPT_TOKENS);
2769
+ Math.min(result.runMetadata.maxPromptTokens, result.runMetadata.inputTokenLimit ?? Number.POSITIVE_INFINITY) >= CODING_WORKBENCH_MINIMUM_CODING_CONTEXT_PROMPT_TOKENS);
2126
2770
  }
2127
2771
  /**
2128
2772
  * Why an available coding profile cannot hold a coding run's prompt, or undefined when it can
@@ -2141,9 +2785,11 @@ export function codingContextShortfall(config, result) {
2141
2785
  * model the gateway does not admit right now is a typed refusal that names the sidecar's reason
2142
2786
  * (#3565 Observation 17), never a bare Error the orchestrator can only report as
2143
2787
  * `authority-resolution-failed`; so is a model whose window cannot hold the run's prompt (#3603).
2788
+ * Only a fresh basic-chat success in the same current runtime holder admits a new run; already
2789
+ * admitted F73 requests keep their captured profile and never use this new-run guard.
2144
2790
  */
2145
- export function admitCodingRunModel(config, modelId, reasoningEffort) {
2146
- const resolved = resolveCodingSafeSidecarGatewayProfile(config, {
2791
+ export function admitCodingRunModel(config, modelId, reasoningEffort, holder) {
2792
+ const resolved = resolveFreshCodingProfile(config, holder, {
2147
2793
  ...(modelId === undefined ? {} : { modelId }),
2148
2794
  });
2149
2795
  if (resolved.status !== "available" || config === undefined) {
@@ -2167,9 +2813,7 @@ function admittedReasoningEffort(config, modelAlias, reasoningEffort) {
2167
2813
  }
2168
2814
  return { reasoningEffort };
2169
2815
  }
2170
- function readinessProbePending(deps, result, shortfall) {
2171
- if (shortfall === "no-tool-calling")
2172
- return false;
2816
+ function readinessProbePending(deps, result) {
2173
2817
  const config = currentGatewayConfig(deps);
2174
2818
  if (config === undefined)
2175
2819
  return false;
@@ -2179,16 +2823,23 @@ function readinessProbePending(deps, result, shortfall) {
2179
2823
  ? isCodingWorkbenchProbePending(config, result.modelAlias)
2180
2824
  : isAnyCodingWorkbenchProbePending(config);
2181
2825
  }
2182
- function logReadinessShortfall(ctx, result, reason, pending) {
2826
+ function logReadinessShortfall(ctx, result, reason, pending, storedReason) {
2183
2827
  getServerLogger().warn(activityLogEvent(CODING_SIDECAR_GATEWAY_READINESS_INSUFFICIENT_OPERATION, {
2184
2828
  correlationId: correlationIdOrUnknown(ctx.correlationId),
2185
2829
  errorKind: "unavailable",
2186
2830
  }, {
2187
2831
  reason,
2832
+ ...(pending && storedReason !== undefined ? { storedReason } : {}),
2188
2833
  probeMode: pending ? "pending" : "passive",
2189
2834
  ...(result.status === "available"
2190
2835
  ? {
2191
2836
  maxPromptTokens: result.runMetadata.maxPromptTokens,
2837
+ ...declaredInputBound(result.runMetadata),
2838
+ ...(result.runMetadata.inputTokenLimit === undefined
2839
+ ? {}
2840
+ : {
2841
+ availablePromptTokens: Math.min(result.runMetadata.maxPromptTokens, result.runMetadata.inputTokenLimit),
2842
+ }),
2192
2843
  minimumRequiredPromptTokens: CODING_WORKBENCH_MINIMUM_CODING_CONTEXT_PROMPT_TOKENS,
2193
2844
  }
2194
2845
  : {}),
@@ -2222,8 +2873,15 @@ function boundedProfileWait() {
2222
2873
  timer.unref();
2223
2874
  });
2224
2875
  }
2876
+ // Lab ledger F2 (#3873): a streamed request is answered live wherever the resolved profile streams
2877
+ // (the model's capability streams and `codingStreaming` is not "off"), so the coding runtime sees
2878
+ // the answer as the provider produces it instead of only once it exists. An injected stream seam
2879
+ // streams; an injected buffered seam alone stands in for the whole gateway, which then has no
2880
+ // stream to read.
2225
2881
  function upstreamGatewayStreamingSupported(deps, advertisedSupport) {
2226
- return advertisedSupport || deps.codingSidecarGatewayChatStreamFactory !== undefined;
2882
+ if (deps.codingSidecarGatewayChatStreamFactory !== undefined)
2883
+ return true;
2884
+ return advertisedSupport && deps.codingSidecarGatewayChatFactory === undefined;
2227
2885
  }
2228
2886
  /** The unmanaged-tool-contract rejection applies before authentication is even known, so it stays
2229
2887
  * its own check: extracting it keeps `runtimeGatewayAdmissionResponse` and
@@ -2231,7 +2889,8 @@ function upstreamGatewayStreamingSupported(deps, advertisedSupport) {
2231
2889
  * carrying every branch. */
2232
2890
  function rejectUnmanagedGatewayToolContract(ctx, deps, parsed, authentication) {
2233
2891
  const declaresTools = parsed.tools !== undefined && parsed.tools.length > 0;
2234
- if (!declaresTools || isExactManagedToolSet(parsed.tools))
2892
+ if (!declaresTools ||
2893
+ isExactManagedToolSet(parsed.tools, gatewayReadinessRegistry(deps)?.toolProfile ?? "direct"))
2235
2894
  return undefined;
2236
2895
  return refuseGatewayToolContract(ctx, deps, authentication.runId, parsed);
2237
2896
  }
@@ -2245,21 +2904,20 @@ function runtimeGatewayAdmissionResponse(ctx, deps, parsed, authentication, mode
2245
2904
  }
2246
2905
  function authenticatedGatewayAdmission(ctx, deps, parsed, authentication, modelAlias) {
2247
2906
  const registry = gatewayReadinessRegistry(deps);
2907
+ const exact = isExactManagedToolSet(parsed.tools, registry?.toolProfile ?? "direct");
2248
2908
  if (!isAdmittedManagedToolSet(parsed.tools, registry, authentication.runId)) {
2249
2909
  return {
2250
2910
  kind: "handled",
2251
2911
  result: refuseGatewayToolContract(ctx, deps, authentication.runId, parsed),
2252
2912
  };
2253
2913
  }
2254
- if (isExactManagedToolSet(parsed.tools) &&
2255
- isRuntimeReadinessProbe(parsed) &&
2256
- registry?.claim(authentication.runId) === true) {
2914
+ if (exact && isRuntimeReadinessProbe(parsed) && registry?.claim(authentication.runId) === true) {
2257
2915
  return {
2258
2916
  kind: "handled",
2259
2917
  result: fixedReadinessResponse(ctx, deps, modelAlias, parsed.stream === true),
2260
2918
  };
2261
2919
  }
2262
- if (isExactManagedToolSet(parsed.tools))
2920
+ if (exact)
2263
2921
  registry?.verifyObserved(authentication.runId);
2264
2922
  noteToolAdoptionGap(ctx, deps, authentication.runId, parsed.messages);
2265
2923
  return { kind: "proceed" };
@@ -2290,6 +2948,7 @@ function logChatRequestRejection(ctx, deps, runId, validationError, observed) {
2290
2948
  ? {
2291
2949
  estimatedPromptTokens: observed.estimatedPromptTokens,
2292
2950
  maxPromptTokens: observed.bounds.maxPromptTokens,
2951
+ ...declaredInputBound(observed.bounds),
2293
2952
  admissiblePromptTokens: admissiblePromptTokens(observed.bounds),
2294
2953
  inputMessageCount: observed.parsed.messages.length,
2295
2954
  maxInputMessages: observed.bounds.maxInputMessages,
@@ -2357,7 +3016,7 @@ function reservedWindowTokens(bounds) {
2357
3016
  // — past the window the probe had proven, and the provider refused the turn. The prompt must
2358
3017
  // leave the margin and the minimum allowance free, or the turn is refused before any call.
2359
3018
  export function admissiblePromptTokens(bounds) {
2360
- return bounds.maxPromptTokens - reservedWindowTokens(bounds);
3019
+ return Math.min(bounds.maxPromptTokens - reservedWindowTokens(bounds), bounds.inputTokenLimit ?? Number.POSITIVE_INFINITY);
2361
3020
  }
2362
3021
  // The allowance an ADMITTED turn sends: the run's reserve, shrunk to what the prompt leaves after
2363
3022
  // the safety margin. Admission (`admissiblePromptTokens`) guarantees at least the minimum.
@@ -2375,9 +3034,15 @@ function logValidatedRequestBounds(ctx, runId, request, bounds, estimatedPromptT
2375
3034
  runId,
2376
3035
  maxRequestBytes: bounds.maxRequestBytes,
2377
3036
  maxPromptTokens: bounds.maxPromptTokens,
3037
+ ...declaredInputBound(bounds),
3038
+ ...(bounds.inputTokenLimit === undefined
3039
+ ? {}
3040
+ : { admissiblePromptTokens: admissiblePromptTokens(bounds) }),
2378
3041
  estimatedPromptTokens,
2379
3042
  maxOutputTokens: admittedOutputTokens(bounds, estimatedPromptTokens),
2380
3043
  inputMessageCount: request.messages.length,
3044
+ offeredToolCount: request.tools?.length ?? 0,
3045
+ droppedReasoningMessageCount: request.droppedReasoningMessageCount,
2381
3046
  completeness: "complete",
2382
3047
  loss: "none",
2383
3048
  }));
@@ -2393,6 +3058,7 @@ function executeBudgetedGatewayChat(ctx, deps, binding, parsed, authentication,
2393
3058
  return executeGatewayChat(ctx, deps, binding, parsed, authentication.runId, {
2394
3059
  ...profile,
2395
3060
  promptTokenReservation,
3061
+ toolProfile: gatewayReadinessRegistry(deps)?.toolProfile ?? "direct",
2396
3062
  toolCatalogCoverage: resolveToolCatalogHandlerCoverage(deps, authentication.runId, ctx.correlationId),
2397
3063
  offerLifetimeMs: opencodeGatewayOfferLifetimeMs(codingSidecarGatewayRequestDeadlineMs(binding.config, profile.modelAlias)),
2398
3064
  });