@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,5 +1,15 @@
1
+ import { connectedFollowUpConfiguration } from "./grounded-answer-activity.js";
2
+ import { withContextualHintConfidence } from "./grounded-selection-quality.js";
3
+ import { logGroundedPromptSelection, logChatResponseMessage, } from "./chat-activity.js";
4
+ import { citationBehaviourFor, citationBehaviourObserverFor, } from "./grounded-citation-capability.js";
5
+ import { buildCitationRepairPrompt } from "./grounded-citation-repair.js";
6
+ import { containsNumberedCompoundQueryTerm, evidenceAtomStableId, isNumberedCompoundQueryTerm, isDenied, PathDeniedError, RepoSearchInvalidQueryError, RepoSearchInvalidRangeError, RepoSearchUnsupportedFileError, WorkspaceNotFoundError, WorkspaceError, } from "@oscharko-dev/keiko-workspace";
7
+ import { assistantReferenceExcerptIds, } from "./grounded-assistant-referents.js";
8
+ import { caughtGroundedPackValidation, inspectGroundedPack, recordGroundedPackValidation, GROUNDED_PACK_VALIDATION_MESSAGE, } from "./grounded-pack-validation.js";
9
+ import { deriveChatGroundingScopeIdentity, parseExpectedGroundingScopeIdentity, } from "./store/chat-grounding-scope-identity.js";
10
+ import { withAdoptedContextWindowRetry } from "./gateway-context-window.js";
11
+ import { sentPromptContext } from "./grounded-prompt-context.js";
1
12
  import { compactCurrentChatPrompt } from "./chat-prompt-compaction.js";
2
- import { logChatResponseMessage } from "./chat-activity.js";
3
13
  import { groundedConversationContinuity, } from "./grounded-conversation-continuity.js";
4
14
  import { persistChatCompactionEvidence } from "./chat-compaction-evidence.js";
5
15
  import { countGatewayPromptTokens } from "@oscharko-dev/keiko-model-gateway/internal/prompt-token-accounting";
@@ -10,46 +20,49 @@ import { countGatewayPromptTokens } from "@oscharko-dev/keiko-model-gateway/inte
10
20
  // inputs (chatId + content) and enforces that the chat carries a connected scope.
11
21
  import { createHash, randomUUID } from "node:crypto";
12
22
  import { basename } from "node:path";
13
- import { CancelledError, ContextOverflowError, GatewayError, ProviderError, findCapability, findConfiguredCapability, resolveCostClass, } from "@oscharko-dev/keiko-model-gateway";
23
+ import { CancelledError, TimeoutError, ContextOverflowError, CallerAttemptAdmissionError, GatewayError, ProviderError, findCapability, findConfiguredCapability, resolveCostClass, } from "@oscharko-dev/keiko-model-gateway";
24
+ import { DEFAULT_LEXICAL_MATCH_LIMIT, extractAnchors, } from "@oscharko-dev/keiko-workflows";
14
25
  import { persistConnectedContextEvidence, } from "@oscharko-dev/keiko-evidence";
15
26
  import { redact } from "@oscharko-dev/keiko-security";
16
- import { PathDeniedError, RepoSearchInvalidQueryError, RepoSearchInvalidRangeError, RepoSearchUnsupportedFileError, WorkspaceNotFoundError, } from "@oscharko-dev/keiko-workspace";
17
27
  import { nodeWorkspaceFs } from "@oscharko-dev/keiko-workspace/internal/fs";
18
- import { CONNECTED_CONTEXT_SCHEMA_VERSION, DEFAULT_EXPLORATION_BUDGET, validateConnectedContextPack, } from "@oscharko-dev/keiko-contracts/connected-context";
28
+ import { connectedContextOmittedCount, connectedContextOmittedCounts, CONNECTED_CONTEXT_SCHEMA_VERSION, DEFAULT_EXPLORATION_BUDGET, isValidScopePath, } from "@oscharko-dev/keiko-contracts/connected-context";
19
29
  import { buildGroundedAnswerContextPackSummary, MAX_DESKTOP_CHAT_INPUT_BYTES, MAX_DESKTOP_CHAT_INPUT_CHARS, } from "@oscharko-dev/keiko-contracts/bff-wire";
20
30
  import { deriveContextProfileFromCapability, DEFAULT_CONTEXT_PROFILE, maxUtf8BytesForTokenBudget, } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
21
31
  import { stripUnsafeFormatChars } from "@oscharko-dev/keiko-contracts/text-safety";
22
32
  import { errorBody } from "./routes.js";
23
- import { currentContextProfileForModel, currentGatewayConfig, currentGroundingLimits, currentRedactionSecrets, } from "./deps.js";
33
+ import { currentContextProfileForModel, currentGatewayConfig, currentGroundingLimits, currentOwnAssessmentPolicy, currentRedactionSecrets, } from "./deps.js";
24
34
  import { ClarificationNeededError, clarificationUserMessage, runGroundedExploration, } from "./grounded-orchestrator.js";
25
35
  import { createEntailmentStage } from "./grounded-entailment-stage.js";
36
+ import { createGroundedSynthesisCallBudget, createGroundedSynthesisAttemptAdmission, } from "./grounded-answer.js";
26
37
  import { microIndexForGroundedScope } from "./grounded-context-index.js";
27
38
  import { deriveGroundedContextAssembly } from "./grounded-context-diagnostics.js";
28
39
  import { configuredContextPackRerankerFor } from "./grounded-context-pack-reranker.js";
29
- import { configuredRepoSemanticSearchProviderLeaseFor } from "./grounded-repo-semantic-search.js";
40
+ import { configuredGroundedSemanticRequest } from "./grounded-semantic-request.js";
41
+ import { createSemanticRefreshDocumentBudget, } from "./grounded-repo-semantic-search.js";
30
42
  import { handleLocalKnowledgeGroundedAsk } from "./local-knowledge-grounded-qa.js";
31
- import { buildConnectedScopes, createMultiSourceAnswerer, defaultRetriever, runMultiSourceAsk, } from "./grounded-qa-multi-source.js";
43
+ import { buildConnectedScopes, createMultiSourceAnswerer, defaultRetriever, groundedSourceScopeFingerprint, runMultiSourceAsk, } from "./grounded-qa-multi-source.js";
32
44
  import { buildLocalKnowledgeScopes, runHybridGroundedAsk, } from "./grounded-qa-hybrid.js";
33
- import { GROUNDED_SYSTEM_PROMPT } from "./grounded-prompt.js";
34
- import { recordWorkspaceRootDenial, resolveRecordedWorkspaceRoot, } from "./workspace-root-denial-log.js";
35
- import { uncitedMemoryContextMarker, } from "./grounded-faithfulness.js";
45
+ import { groundedSystemPrompt } from "./grounded-prompt.js";
46
+ import { singleSentEvidencePack, withSentEvidenceInventory } from "./grounded-answer-evidence.js";
47
+ import { isExpectedWorkspaceRootFailure, recordWorkspaceRootDenial, recordWorkspaceRootDenied, recordWorkspaceRootUnavailable, resolveRecordedWorkspaceRoot, workspaceRootFailureStatus, } from "./workspace-root-denial-log.js";
48
+ import { uncitedMemoryContextMarker, connectedSearchNoEvidenceAnswer, } from "./grounded-faithfulness.js";
36
49
  import { commitGroundedTurn, discardGroundedTurn, rememberGroundedTurn, stageGroundedTurn, } from "./grounded-turn-registry.js";
37
50
  import { assertUsableAssistantContent } from "./assistant-response.js";
38
- import { buildCanonicalTurnMemoryResult, buildMemoryResult, chatClosedResult, parseClientTurnId, parseExpectedGroundingScopeIdentity, parseMemoryRequest, runPostCommitCanonicalTurnMemorySideEffects, } from "./chat-handlers.js";
51
+ import { buildCanonicalTurnMemoryResult, buildMemoryResult, chatClosedResult, parseClientTurnId, parseMemoryRequest, logChatRejection, runPostCommitCanonicalTurnMemorySideEffects, } from "./chat-handlers.js";
39
52
  import { canonicalChatTurnGroundingScopeIdentity, canonicalChatTurnIdentityContent, canonicalChatTurnMemorySemantics, } from "./chat-turn-identity.js";
40
53
  import { CHAT_TURN_WAIT_CANCELLED, runSerializedChatTurn } from "./chat-turn-serializer.js";
41
54
  import { createRequestCancellation } from "./request-cancellation.js";
42
- import { resolveAppSessionReadAuthority } from "./coding-app-session/appSessionReadAuthority.js";
55
+ import { beginAppSessionOperation, resolveAppSessionReadAuthority, } from "./coding-app-session/appSessionReadAuthority.js";
43
56
  import { createOrdinaryWorkspaceRootAccess, requiresConfiguredManagedWorkspaceAuthority, resolveManagedWorkspaceRootAccess, } from "./task-workspace/workspace-root-access.js";
44
57
  import { readBoundedRequestBody, RequestBodyCancelledError, RequestBodyTooLargeError, } from "./bounded-request-body.js";
45
58
  import { resolveConversationMemoryContext, } from "./memory-conversation-context.js";
46
59
  import { renderConversationMemoryContextBlock } from "./conversation-prompt.js";
47
- import { contentFreeErrorClass, emitServerDiagnostic } from "./diagnostics-log.js";
60
+ import { emitServerDiagnostic, serverDiagnosticFromError } from "./diagnostics-log.js";
61
+ import { correlationIdOrUnknown } from "./correlation.js";
48
62
  import { evidenceRetentionObserver } from "./evidence-retention-log.js";
49
63
  import { emitGatewayErrorDiagnostic } from "./gateway-error-diagnostic.js";
50
64
  import { buildAnswerCitations as projectAnswerCitations, buildPackCitations, documentFormatForAtom, } from "./grounded-citation-projection.js";
51
65
  import { persistGroundedExchange } from "./grounded-message-persistence.js";
52
- import { deriveChatGroundingScopeIdentity } from "./store/chat-grounding-scope-identity.js";
53
66
  import { awaitInitializedConversationReadiness } from "./gateway-readiness.js";
54
67
  import { captureConversationReadinessAdmission, mappedConversationReadinessError, validateConversationReadinessAdmission, withConversationReadinessAdmission, } from "./conversation-readiness-admission.js";
55
68
  export { persistGroundedExchange } from "./grounded-message-persistence.js";
@@ -73,8 +86,34 @@ function payloadTooLarge() {
73
86
  body: errorBody("PAYLOAD_TOO_LARGE", "Request body exceeds the size limit."),
74
87
  };
75
88
  }
76
- export function internalError(message) {
77
- return { status: 500, body: errorBody("INTERNAL", message) };
89
+ export function internalError(message, correlationId) {
90
+ return { status: 500, body: errorBody("INTERNAL", message, correlationId) };
91
+ }
92
+ function groundedCompletionFailure(deps, correlationId, completionKind) {
93
+ const message = "Canonical grounded chat turn completion conflicted.";
94
+ emitServerDiagnostic(deps.diagnostics, {
95
+ ...serverDiagnosticFromError({
96
+ correlationId: correlationIdOrUnknown(correlationId),
97
+ operation: "POST /api/chats/messages/grounded",
98
+ source: "grounded.qa.turn-completion",
99
+ error: new Error(message),
100
+ summary: "grounded-turn-completion-conflicted",
101
+ redact: (value) => redactString(deps.redactor, value),
102
+ }),
103
+ code: "GROUNDED_TURN_COMPLETION_CONFLICTED",
104
+ httpStatus: 500,
105
+ diagnosticStage: "grounded-turn-completion",
106
+ diagnosticOutcome: "request-failed",
107
+ completionKind,
108
+ });
109
+ return internalError(message, correlationId);
110
+ }
111
+ export function mappedContextPackValidationError(error, deps, correlationId) {
112
+ const failure = caughtGroundedPackValidation(error);
113
+ if (failure === undefined)
114
+ return undefined;
115
+ recordGroundedPackValidation(deps, correlationId, failure, "request-failed");
116
+ return internalError(GROUNDED_PACK_VALIDATION_MESSAGE, correlationId);
78
117
  }
79
118
  // Issue #154 (GAP-B) — the dynamic `error.message` of a GatewayError may echo the provider base
80
119
  // URL, an `Authorization: Bearer …` header, or an `api-key: …` value back from the provider's
@@ -86,6 +125,8 @@ export function internalError(message) {
86
125
  export function gatewayErrorStatus(error) {
87
126
  if (error.code === "GATEWAY_AUTHENTICATION")
88
127
  return 401;
128
+ if (error.code === "GATEWAY_ATTEMPT_ADMISSION_DENIED")
129
+ return 403;
89
130
  if (error.retryable)
90
131
  return 503;
91
132
  return 502;
@@ -114,26 +155,63 @@ function pathDeniedResult(error) {
114
155
  body: errorBody(error.code, "The workspace path is denied by policy."),
115
156
  };
116
157
  }
117
- export function mappedWorkspaceError(error) {
118
- if (error instanceof PathDeniedError)
119
- return pathDeniedResult(error);
120
- if (error instanceof WorkspaceNotFoundError) {
121
- return badRequest("Connected scope root is not accessible.");
158
+ function primaryWorkspaceFailure(error) {
159
+ if (!(error instanceof AggregateError))
160
+ return error;
161
+ const primary = error.cause;
162
+ if (primary instanceof WorkspaceError)
163
+ return primary;
164
+ if (primary instanceof Error && primary.cause instanceof WorkspaceError)
165
+ return primary.cause;
166
+ return error;
167
+ }
168
+ function unavailableWorkspaceResult(error, correlationId) {
169
+ return workspaceRootFailureStatus(error) === 503
170
+ ? {
171
+ status: 503,
172
+ body: errorBody("UNAVAILABLE", "The connected source is temporarily unavailable. Please try again.", correlationId),
173
+ }
174
+ : badRequest("Connected scope root is not accessible.");
175
+ }
176
+ export function mappedWorkspaceError(error, context = {}) {
177
+ const failure = primaryWorkspaceFailure(error);
178
+ if (failure instanceof PathDeniedError)
179
+ return pathDeniedResult(failure);
180
+ if (failure instanceof WorkspaceNotFoundError) {
181
+ recordWorkspaceRootUnavailable(failure, context);
182
+ return unavailableWorkspaceResult(failure, context.correlationId);
122
183
  }
123
- if (error instanceof RepoSearchInvalidQueryError ||
124
- error instanceof RepoSearchInvalidRangeError ||
125
- error instanceof RepoSearchUnsupportedFileError) {
126
- return badRequest(error.message);
184
+ if (failure instanceof RepoSearchInvalidQueryError ||
185
+ failure instanceof RepoSearchInvalidRangeError ||
186
+ failure instanceof RepoSearchUnsupportedFileError) {
187
+ return badRequest(failure.message);
127
188
  }
128
189
  return undefined;
129
190
  }
130
- export function isValidGroundedPack(pack) {
131
- try {
132
- return validateConnectedContextPack(pack).ok;
133
- }
134
- catch {
135
- return false;
136
- }
191
+ function assistantReferencesForSource(references, sourceScopeFingerprint) {
192
+ if (sourceScopeFingerprint === undefined)
193
+ return references;
194
+ return references
195
+ ?.filter((reference) => reference.sourceScopeFingerprint === undefined ||
196
+ reference.sourceScopeFingerprint === sourceScopeFingerprint)
197
+ .map(({ path, line, origin }) => ({ path, ...(line === undefined ? {} : { line }), origin }));
198
+ }
199
+ export function groundedRetrievalContinuityFields(input, scope, connectedScope, selectedFingerprints) {
200
+ const sourceScopeFingerprint = scope === undefined
201
+ ? undefined
202
+ : groundedSourceScopeFingerprint(scope, connectedScope, selectedFingerprints);
203
+ const assistantReferents = assistantReferencesForSource(input.assistantReferents, sourceScopeFingerprint);
204
+ const continuityReferentSource = assistantReferents?.length === 0 &&
205
+ input.continuityReferentSource?.startsWith("assistant-") === true
206
+ ? "none"
207
+ : input.continuityReferentSource;
208
+ return {
209
+ ...(assistantReferents === undefined ? {} : { assistantReferents }),
210
+ ...(input.previousRetrievalIntent === undefined
211
+ ? {}
212
+ : { previousRetrievalIntent: input.previousRetrievalIntent }),
213
+ ...(continuityReferentSource === undefined ? {} : { continuityReferentSource }),
214
+ };
137
215
  }
138
216
  function parseJsonObject(raw) {
139
217
  let parsed;
@@ -295,10 +373,18 @@ function canonicalGroundedRoot(rootInput, deps, correlationId) {
295
373
  if (error instanceof PathDeniedError) {
296
374
  return pathDeniedResult(error);
297
375
  }
298
- return badRequest("Connected scope root is not accessible.");
376
+ if (!isExpectedWorkspaceRootFailure(error))
377
+ throw error;
378
+ recordWorkspaceRootUnavailable(error, { correlationId });
379
+ return unavailableWorkspaceResult(error, correlationId);
299
380
  }
300
381
  const redacted = deps.redactor(realRoot);
301
382
  if (typeof redacted === "string" && redacted !== realRoot) {
383
+ recordWorkspaceRootDenied({
384
+ reason: "credential-shaped-root",
385
+ failureKind: "CREDENTIAL_SHAPED_METADATA",
386
+ errorKind: "permission-denied",
387
+ }, { correlationId });
302
388
  return badRequest("Connected scope root contains credential-shaped metadata.");
303
389
  }
304
390
  return realRoot;
@@ -318,10 +404,12 @@ function skippedFolderMessage(result) {
318
404
  return body.error?.message ?? "not accessible";
319
405
  }
320
406
  // Fail-soft canonicalization: inaccessible/denied scopes are collected in `skipped` instead of
321
- // aborting the entire request. Callers apply the hard-400 only when NO healthy scope remains.
407
+ // aborting the entire request. If no healthy scope remains, retain the recorded failure status;
408
+ // transient server/filesystem outages take precedence over invalid or unavailable selections.
322
409
  function canonicalizeGroundedFolderScopes(chat, deps, scopes, request, correlationId) {
323
410
  const canonical = [];
324
411
  const skipped = [];
412
+ const sourceScopeFingerprints = new Map();
325
413
  for (const scope of scopes) {
326
414
  const rootInput = scope.root ?? chat.projectPath;
327
415
  const access = groundedRootAccess(rootInput, deps, request, correlationId);
@@ -330,9 +418,12 @@ function canonicalizeGroundedFolderScopes(chat, deps, scopes, request, correlati
330
418
  skipped.push({ label, message: skippedFolderMessage(access), reason: access });
331
419
  continue;
332
420
  }
333
- canonical.push(scopeWithWorkspaceAccess(scope, access));
421
+ const admittedScope = scopeWithWorkspaceAccess(scope, access);
422
+ canonical.push(admittedScope);
423
+ // Attribution retains the human-selected identity; canonical roots govern filesystem access.
424
+ sourceScopeFingerprints.set(admittedScope, groundedSourceScopeFingerprint(buildSelectedScopeFrom(chat, scope, "source-attribution")));
334
425
  }
335
- return { canonical, skipped };
426
+ return { canonical, skipped, sourceScopeFingerprints };
336
427
  }
337
428
  // The canonical list is authoritative even when it is EMPTY. With every folder denied or
338
429
  // inaccessible, returning the original chat would let its legacy single `connectedScope` resurface
@@ -346,7 +437,7 @@ export function buildQuery(content, nowMs) {
346
437
  kind: "natural-language",
347
438
  text: content,
348
439
  caseSensitive: false,
349
- maxResults: 50,
440
+ maxResults: DEFAULT_LEXICAL_MATCH_LIMIT,
350
441
  emittedAtMs: nowMs(),
351
442
  };
352
443
  }
@@ -407,10 +498,12 @@ function contextProfileForGroundedModel(deps, modelId) {
407
498
  }
408
499
  export function modelWindowAwareBudget(deps, modelId) {
409
500
  const profile = contextProfileForGroundedModel(deps, modelId);
501
+ const followUpPassesMax = connectedFollowUpConfiguration(deps.env.KEIKO_CONNECTED_FOLLOW_UP_PASSES_MAX).passesMax;
410
502
  if (profile === undefined)
411
- return DEFAULT_EXPLORATION_BUDGET;
503
+ return { ...DEFAULT_EXPLORATION_BUDGET, followUpPassesMax };
412
504
  return {
413
505
  ...DEFAULT_EXPLORATION_BUDGET,
506
+ followUpPassesMax,
414
507
  modelInputTokensMax: profile.effectiveInputBudget,
415
508
  modelOutputTokensMax: profile.reservedOutputTokens,
416
509
  };
@@ -431,7 +524,7 @@ function clampUtf8Bytes(value, maxBytes) {
431
524
  high = mid - 1;
432
525
  }
433
526
  }
434
- return value.slice(0, low);
527
+ return value.slice(0, (value.codePointAt(low - 1) ?? 0) > 0xffff ? low - 1 : low);
435
528
  }
436
529
  function positiveInteger(value) {
437
530
  const n = Math.floor(value);
@@ -453,6 +546,21 @@ function withPromptModelInputBudget(pack, modelInputTokensMax) {
453
546
  return pack;
454
547
  return { ...pack, budget: { ...pack.budget, modelInputTokensMax: effective } };
455
548
  }
549
+ function withCallerPromptInputBudget(pack, callerInputTokensMax) {
550
+ if (callerInputTokensMax === undefined)
551
+ return pack;
552
+ const modelInputTokensMax = Math.min(pack.budget.modelInputTokensMax, Math.max(0, Math.floor(callerInputTokensMax)));
553
+ return { ...pack, budget: { ...pack.budget, modelInputTokensMax } };
554
+ }
555
+ export function assertGroundedPromptOverheadFits(overhead, modelInputTokensMax, callerInputTokensMax) {
556
+ const limit = modelInputPromptByteLimit(modelInputTokensMax);
557
+ if (overhead.bytes > limit || overhead.tokens > modelInputTokensMax)
558
+ throw new ContextOverflowError(`Grounded prompt overhead (${String(overhead.bytes)} bytes) exceeds model input limit (${String(limit)} bytes).`);
559
+ if (callerInputTokensMax !== undefined &&
560
+ (overhead.bytes > modelInputPromptByteLimit(callerInputTokensMax) ||
561
+ overhead.tokens > callerInputTokensMax))
562
+ throw new CallerAttemptAdmissionError(`Grounded prompt overhead (${String(overhead.bytes)} bytes) exceeds remaining caller input allowance (${String(modelInputPromptByteLimit(callerInputTokensMax))} bytes).`);
563
+ }
456
564
  function packExcerptCount(pack) {
457
565
  return pack.files.reduce((count, file) => count + file.excerpts.length, 0);
458
566
  }
@@ -476,7 +584,7 @@ export function withPromptExcerptByteLimit(pack, maxExcerptBytes) {
476
584
  const excerptCount = packExcerptCount(pack);
477
585
  return withPromptExcerptTotalByteBudget(pack, Math.max(0, maxExcerptBytes) * excerptCount);
478
586
  }
479
- function rankedPromptExcerpts(pack) {
587
+ function rankedPromptExcerpts(pack, requiredEvidencePaths = [], requiredEvidenceAtomIds = []) {
480
588
  const ranked = [];
481
589
  for (let fileIndex = 0; fileIndex < pack.files.length; fileIndex += 1) {
482
590
  const file = pack.files[fileIndex];
@@ -489,33 +597,117 @@ function rankedPromptExcerpts(pack) {
489
597
  ranked.push({ fileIndex, excerptIndex, excerpt });
490
598
  }
491
599
  }
492
- ranked.sort((a, b) => promptExcerptScore(b.excerpt) - promptExcerptScore(a.excerpt) ||
600
+ ranked.sort((a, b) => Number(requiredEvidencePaths.includes(b.excerpt.atom.scopePath)) -
601
+ Number(requiredEvidencePaths.includes(a.excerpt.atom.scopePath)) ||
602
+ Number(requiredEvidenceAtomIds.includes(b.excerpt.atom.stableId)) -
603
+ Number(requiredEvidenceAtomIds.includes(a.excerpt.atom.stableId)) ||
604
+ promptExcerptScore(b.excerpt) - promptExcerptScore(a.excerpt) ||
493
605
  promptExcerptProvenancePriority(b.excerpt) - promptExcerptProvenancePriority(a.excerpt) ||
494
606
  a.fileIndex - b.fileIndex ||
495
607
  a.excerptIndex - b.excerptIndex);
496
608
  return ranked;
497
609
  }
498
- function excerptWithContent(excerpt, content) {
499
- return { ...excerpt, content, contentBytes: Buffer.byteLength(content, "utf8") };
610
+ function excerptWithContent(excerpt, content, scopeId, lineOffset = 0) {
611
+ const original = excerpt.atom.lineRange;
612
+ if (original === undefined || content === excerpt.content)
613
+ return { ...excerpt, content, contentBytes: Buffer.byteLength(content, "utf8") };
614
+ const lineCount = content.split("\n").length - (content.endsWith("\n") ? 1 : 0);
615
+ const lineRange = {
616
+ startLine: original.startLine + lineOffset,
617
+ endLine: Math.min(original.endLine, original.startLine + lineOffset + Math.max(1, lineCount) - 1),
618
+ };
619
+ const atom = {
620
+ ...excerpt.atom,
621
+ lineRange,
622
+ stableId: evidenceAtomStableId({
623
+ scopeId,
624
+ scopePath: excerpt.atom.scopePath,
625
+ lineRange,
626
+ provenanceKind: excerpt.atom.provenance.kind,
627
+ provenanceTool: excerpt.atom.provenance.tool,
628
+ queryFingerprint: excerpt.atom.provenance.queryFingerprint,
629
+ }),
630
+ };
631
+ return { ...excerpt, atom, content, contentBytes: Buffer.byteLength(content, "utf8") };
632
+ }
633
+ function fittingAnchorMatchesLine(line, anchor, caseSensitive) {
634
+ const term = caseSensitive ? (anchor.sourceTerm ?? anchor.term) : anchor.term;
635
+ if (anchor.kind === "literal" && isNumberedCompoundQueryTerm(term))
636
+ return containsNumberedCompoundQueryTerm(line, term, caseSensitive);
637
+ return (caseSensitive ? line : line.toLowerCase()).includes(caseSensitive ? term : term.toLowerCase());
638
+ }
639
+ function fittingMatchedLine(lines, anchors, maxBytes, caseSensitive) {
640
+ let best;
641
+ let bestScore = 0;
642
+ for (let index = 0; index < lines.length; index += 1) {
643
+ const line = lines[index] ?? "";
644
+ if (Buffer.byteLength(line, "utf8") > maxBytes)
645
+ continue;
646
+ const score = anchors.reduce((sum, anchor) => sum + (fittingAnchorMatchesLine(line, anchor, caseSensitive) ? anchor.weight : 0), 0);
647
+ if (score <= bestScore)
648
+ continue;
649
+ bestScore = score;
650
+ best = index;
651
+ }
652
+ return best;
500
653
  }
501
- function withPromptExcerptTotalByteBudget(pack, maxExcerptBytes) {
654
+ function fittingExcerptContent(excerpt, maxBytes, anchors, caseSensitive) {
655
+ const lines = excerpt.content.split("\n");
656
+ const matched = excerpt.atom.lineRange === undefined
657
+ ? undefined
658
+ : fittingMatchedLine(lines, anchors, maxBytes, caseSensitive);
659
+ if (matched === undefined)
660
+ return { content: clampUtf8Bytes(excerpt.content, maxBytes), lineOffset: 0 };
661
+ const sizes = lines.map((line) => Buffer.byteLength(line, "utf8"));
662
+ let start = matched;
663
+ let end = matched;
664
+ let remaining = maxBytes - (sizes[matched] ?? 0);
665
+ while (remaining > 0) {
666
+ const before = start > 0 ? adjacentLineBytes(sizes, start - 1) : Infinity;
667
+ const after = end + 1 < lines.length ? adjacentLineBytes(sizes, end + 1) : Infinity;
668
+ if (before <= remaining) {
669
+ start -= 1;
670
+ remaining -= before;
671
+ }
672
+ else if (after <= remaining) {
673
+ end += 1;
674
+ remaining -= after;
675
+ }
676
+ else
677
+ break;
678
+ }
679
+ return { content: lines.slice(start, end + 1).join("\n"), lineOffset: start };
680
+ }
681
+ function adjacentLineBytes(sizes, index) {
682
+ return (sizes[index] ?? 0) + 1;
683
+ }
684
+ function fittingQueryAnchors(query) {
685
+ return extractAnchors({
686
+ text: query.text,
687
+ maxAnchors: 8,
688
+ caseSensitive: query.caseSensitive,
689
+ }).anchors.filter((anchor) => anchor.kind !== "path");
690
+ }
691
+ function trimPromptExcerptTotalByteBudget(pack, maxExcerptBytes, requiredEvidencePaths = [], requiredEvidenceAtomIds) {
502
692
  if (maxExcerptBytes <= 0)
503
693
  return { ...pack, files: [] };
504
694
  const byFile = new Map();
695
+ const anchors = fittingQueryAnchors(pack.query);
505
696
  let remaining = Math.floor(maxExcerptBytes);
506
- for (const ranked of rankedPromptExcerpts(pack)) {
697
+ for (const ranked of rankedPromptExcerpts(pack, requiredEvidencePaths, requiredEvidenceAtomIds)) {
507
698
  if (remaining <= 0)
508
699
  break;
509
700
  const fullBytes = Buffer.byteLength(ranked.excerpt.content, "utf8");
510
701
  if (fullBytes === 0)
511
702
  continue;
512
- const content = fullBytes <= remaining
513
- ? ranked.excerpt.content
514
- : clampUtf8Bytes(ranked.excerpt.content, remaining);
703
+ const fitted = fullBytes <= remaining
704
+ ? { content: ranked.excerpt.content, lineOffset: 0 }
705
+ : fittingExcerptContent(ranked.excerpt, remaining, anchors, pack.query.caseSensitive);
706
+ const { content, lineOffset } = fitted;
515
707
  if (content.length === 0)
516
708
  break;
517
709
  const bucket = byFile.get(ranked.fileIndex) ?? [];
518
- bucket.push(excerptWithContent(ranked.excerpt, content));
710
+ bucket.push(excerptWithContent(ranked.excerpt, content, pack.scope.scopeId, lineOffset));
519
711
  byFile.set(ranked.fileIndex, bucket);
520
712
  remaining -= Buffer.byteLength(content, "utf8");
521
713
  if (fullBytes > Buffer.byteLength(content, "utf8"))
@@ -542,35 +734,80 @@ function withPromptExcerptTotalByteBudget(pack, maxExcerptBytes) {
542
734
  files,
543
735
  };
544
736
  }
545
- export function withPromptExcerptBudget(pack, totalExcerptBytes) {
546
- return withPromptExcerptTotalByteBudget(pack, totalExcerptBytes);
737
+ export function withPromptExcerptBudget(pack, totalExcerptBytes, requiredEvidencePaths, requiredEvidenceAtomIds) {
738
+ return withPromptExcerptTotalByteBudget(pack, totalExcerptBytes, requiredEvidencePaths, requiredEvidenceAtomIds);
547
739
  }
548
- function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
549
- const budgetedPack = withPromptModelInputBudget(pack, options.modelInputTokensMax);
740
+ function withPromptExcerptTotalByteBudget(pack, totalExcerptBytes, requiredEvidencePaths, requiredEvidenceAtomIds) {
741
+ const trimmed = trimPromptExcerptTotalByteBudget(pack, totalExcerptBytes, requiredEvidencePaths, requiredEvidenceAtomIds);
742
+ return refreshedPromptSelectionConfidence(trimmed);
743
+ }
744
+ function refreshedPromptSelectionConfidence(pack) {
745
+ return withContextualHintConfidence(pack, extractAnchors({
746
+ text: pack.query.text,
747
+ maxAnchors: 8,
748
+ caseSensitive: pack.query.caseSensitive,
749
+ }).anchors, Date.now());
750
+ }
751
+ export function fitPromptOmissionMetadata(build, fits, pathByteLimit) {
752
+ const minimum = build(0);
753
+ if (!fits(minimum))
754
+ return undefined;
755
+ let best = { messages: minimum, omissionPathBytes: 0 };
756
+ let low = 1;
757
+ let high = pathByteLimit;
758
+ while (low <= high) {
759
+ const bytes = Math.floor((low + high) / 2);
760
+ const messages = build(bytes);
761
+ if (fits(messages)) {
762
+ best = { messages, omissionPathBytes: bytes };
763
+ low = bytes + 1;
764
+ }
765
+ else
766
+ high = bytes - 1;
767
+ }
768
+ return best;
769
+ }
770
+ function fitGroundedPrompt(question, pack, redactor, build, options = {}) {
771
+ const modelPack = withPromptModelInputBudget(pack, options.modelInputTokensMax);
772
+ const budgetedPack = withCallerPromptInputBudget(modelPack, options.callerInputTokensMax);
773
+ const fitOptions = { ...options, modelInputTokensMax: modelPack.budget.modelInputTokensMax };
550
774
  const limit = modelInputPromptByteLimit(budgetedPack.budget.modelInputTokensMax);
551
775
  const fits = (candidate) => promptByteLength(candidate) <= limit &&
552
776
  countGatewayPromptTokens({ messages: candidate }, options.tokenAccounting) <=
553
777
  budgetedPack.budget.modelInputTokensMax;
554
778
  const messages = build(question, budgetedPack, redactor);
555
779
  if (fits(messages))
556
- return messages;
557
- const emptyPack = withPromptExcerptBudget(budgetedPack, 0);
558
- const emptyMessages = build(question, emptyPack, redactor);
780
+ return { messages, pack: budgetedPack, omissionPathBytes: limit };
781
+ const metadataFit = fitPromptOmissionMetadata((bytes) => build(question, budgetedPack, redactor, bytes), fits, limit);
782
+ if (metadataFit !== undefined)
783
+ return { ...metadataFit, pack: budgetedPack };
784
+ const render = (candidate) => build(question, candidate, redactor, 0);
785
+ // Adding uncertainty when a hint is clipped can make prompt cost nonmonotonic. Find the
786
+ // source window with stable metadata first, then admit only its truthful, re-rendered form.
787
+ const optimistic = fitExcerptPromptWindow(budgetedPack, render, fits, limit, fitOptions, trimPromptExcerptTotalByteBudget);
788
+ const observedPack = refreshedPromptSelectionConfidence(optimistic.pack);
789
+ const observedMessages = render(observedPack);
790
+ if (fits(observedMessages))
791
+ return { messages: observedMessages, pack: observedPack, omissionPathBytes: 0 };
792
+ return fitExcerptPromptWindow(budgetedPack, render, fits, limit, fitOptions, withPromptExcerptBudget);
793
+ }
794
+ function fitExcerptPromptWindow(pack, build, fits, limit, options, trim) {
795
+ const emptyPack = trim(pack, 0);
796
+ const emptyMessages = build(emptyPack);
559
797
  const overheadBytes = promptByteLength(emptyMessages);
560
- // When overhead alone (system prompt + question + framing) exceeds the limit, no amount of
561
- // excerpt trimming can bring the prompt within budget. Throw instead of sending an over-limit
562
- // prompt to the provider which would result in an opaque 400 context-window error.
563
- if (!fits(emptyMessages)) {
564
- throw new ContextOverflowError(`Grounded prompt overhead (${String(overheadBytes)} bytes) exceeds model input limit (${String(limit)} bytes).`);
565
- }
798
+ assertGroundedPromptOverheadFits({
799
+ bytes: overheadBytes,
800
+ tokens: countGatewayPromptTokens({ messages: emptyMessages }, options.tokenAccounting),
801
+ }, options.modelInputTokensMax ?? pack.budget.modelInputTokensMax, options.callerInputTokensMax);
566
802
  let low = 0;
567
803
  let high = Math.max(0, limit - overheadBytes);
568
- let best = emptyMessages;
804
+ let best = { messages: emptyMessages, pack: emptyPack, omissionPathBytes: 0 };
569
805
  while (low <= high) {
570
806
  const totalExcerptBytes = Math.floor((low + high) / 2);
571
- const candidate = build(question, withPromptExcerptBudget(budgetedPack, totalExcerptBytes), redactor);
807
+ const candidatePack = trim(pack, totalExcerptBytes, options.requiredEvidencePaths, options.requiredEvidenceAtomIds);
808
+ const candidate = build(candidatePack);
572
809
  if (fits(candidate)) {
573
- best = candidate;
810
+ best = { messages: candidate, pack: candidatePack, omissionPathBytes: 0 };
574
811
  low = totalExcerptBytes + 1;
575
812
  }
576
813
  else {
@@ -579,16 +816,43 @@ function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
579
816
  }
580
817
  return best;
581
818
  }
819
+ function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
820
+ return fitGroundedPrompt(question, pack, redactor, build, options).messages;
821
+ }
822
+ /** Excerpts that carry content: what a rendered folder prompt actually shows the model. */
823
+ export function promptExcerptCount(packs) {
824
+ return packs.reduce((total, pack) => total +
825
+ pack.files.reduce((count, file) => count + file.excerpts.filter((excerpt) => excerpt.content.length > 0).length, 0), 0);
826
+ }
827
+ /**
828
+ * The folder prompt exactly as it is sent — fitted to the model's input budget — with the same
829
+ * prompt rendered without excerpts, so the context meter can count the share the sources took
830
+ * (grounded-prompt-context.ts).
831
+ */
832
+ export function fittedGroundedGatewayPrompt(question, pack, redactor, options) {
833
+ const fitted = fitGroundedPrompt(question, pack, redactor, groundedPromptBuilder(options), options);
834
+ return {
835
+ messages: fitted.messages,
836
+ sentEvidencePacks: [fitted.pack],
837
+ withoutSources: buildRawGroundedGatewayMessages(question, { ...fitted.pack, files: [] }, redactor, -1, options?.ownAssessmentPolicy),
838
+ sentReferenceCount: promptExcerptCount([fitted.pack]),
839
+ availableReferenceCount: promptExcerptCount([pack]),
840
+ };
841
+ }
582
842
  export function packBudgetSummary(pack) {
583
843
  const { usage, budget } = pack;
584
844
  return [
585
845
  `search calls ${String(usage.searchCalls)}/${String(budget.searchCallsMax)}`,
586
- `files read ${String(usage.filesRead)}/${String(budget.filesReadMax)}`,
846
+ budget.filesReadMax === null
847
+ ? `files read ${String(usage.filesRead)}`
848
+ : `files read ${String(usage.filesRead)}/${String(budget.filesReadMax)}`,
587
849
  `excerpt bytes ${String(usage.excerptBytes)}/${String(budget.excerptBytesMax)}`,
588
850
  `model input tokens ${String(usage.modelInputTokens)}/${String(budget.modelInputTokensMax)}`,
589
851
  `model output tokens ${String(usage.modelOutputTokens)}/${String(budget.modelOutputTokensMax)}`,
590
852
  `rerank calls ${String(usage.rerankCalls)}/${String(budget.rerankCallsMax)}`,
591
- `elapsed ${String(usage.elapsedMs)}/${String(budget.elapsedMsMax)} ms`,
853
+ budget.elapsedMsMax === null
854
+ ? `elapsed ${String(usage.elapsedMs)} ms (no search time limit)`
855
+ : `elapsed ${String(usage.elapsedMs)}/${String(budget.elapsedMsMax)} ms`,
592
856
  ].join("; ");
593
857
  }
594
858
  export function evidenceLines(pack, redactor) {
@@ -610,7 +874,7 @@ export function evidenceLines(pack, redactor) {
610
874
  const label = documentFormat === undefined
611
875
  ? "Evidence"
612
876
  : `Document evidence (${documentFormat.toUpperCase()}, extracted text)`;
613
- lines.push(`- ${label} ${redactedString(redactor, citation)} (score ${excerpt.atom.score.toFixed(2)}):`, "```", promptSafeExcerptText(redactedString(redactor, excerpt.content)), "```");
877
+ lines.push(`- ${label} ${redactedString(redactor, citation)} (score ${excerpt.atom.score.toFixed(2)}):`, evidenceProvenanceLine(excerpt.atom.provenance, redactor), "```", promptSafeExcerptText(numberedEvidenceText(redactedString(redactor, excerpt.content), excerpt.atom.lineRange)), "```");
614
878
  }
615
879
  }
616
880
  if (lines.length === 0) {
@@ -618,74 +882,280 @@ export function evidenceLines(pack, redactor) {
618
882
  }
619
883
  return lines;
620
884
  }
885
+ /** Retrieval provenance describes selection, not proof that a requested literal occurs. */
886
+ export function evidenceProvenanceLine(provenance, redactor) {
887
+ const label = provenance.kind === "semantic-search" || provenance.tool.startsWith("repo.semanticSearch:")
888
+ ? "Related semantic context (not verified as an exact literal match)"
889
+ : "Retrieval provenance";
890
+ return `${label}: ${provenance.kind}; tool: ${redactedString(redactor, provenance.tool)}.`;
891
+ }
892
+ /** Line annotations belong to the prompt; source content and citation ranges remain unchanged. */
893
+ export function numberedEvidenceText(content, range) {
894
+ if (range === undefined || content.length === 0)
895
+ return content;
896
+ return content
897
+ .split("\n")
898
+ .slice(0, range.endLine - range.startLine + 1)
899
+ .map((line, index) => `${String(range.startLine + index)} | ${line}`)
900
+ .join("\n");
901
+ }
902
+ /** Closed canonical counts disclose unavailable evidence without revealing excluded paths. */
903
+ export function omissionReasonLines(pack) {
904
+ const omittedCounts = connectedContextOmittedCounts(pack);
905
+ const counts = Object.entries(omittedCounts).filter(([, count]) => count > 0);
906
+ const reasons = counts.length === 0
907
+ ? []
908
+ : [
909
+ "Known omission reason counts (metadata only, not file-content evidence):",
910
+ ...counts.map(([reason, count]) => `- ${reason}: ${String(count)}`),
911
+ ];
912
+ const unavailable = omittedCounts["tool-unavailable"];
913
+ const coverage = pack.diagnostics?.coverage;
914
+ return [
915
+ ...reasons,
916
+ ...(unavailable > 0
917
+ ? [`Candidate file evidence unavailable for reading/retrieval: ${String(unavailable)}.`]
918
+ : []),
919
+ ...(coverage === undefined
920
+ ? []
921
+ : [
922
+ `Current traversal incomplete: ${String(coverage.incomplete)}; reasons: ${coverage.reasons.join(", ") || "none"}.`,
923
+ ]),
924
+ ];
925
+ }
926
+ function allowedSizeExclusionPaths(pack) {
927
+ const paths = pack.omitted
928
+ .filter((entry) => entry.reason === "size-exceeded" &&
929
+ isValidScopePath(entry.scopePath, { mustBeRelative: true }) &&
930
+ stripUnsafeFormatChars(entry.scopePath) === entry.scopePath)
931
+ .map((entry) => entry.scopePath)
932
+ .filter((path) => isValidScopePath(path, { mustBeRelative: true }) && !isDenied(path));
933
+ return [...new Set(paths)];
934
+ }
935
+ // The existing pack owns eligibility decisions. Project only safe omission metadata, never
936
+ // unread file bodies; bound prompt bytes without changing which files retrieval inspects.
937
+ const MAX_SIZE_EXCLUSION_PATH_BYTES = 4096;
938
+ export function sizeExclusionLines(pack, redactor, pathByteLimit = MAX_SIZE_EXCLUSION_PATH_BYTES) {
939
+ if (pathByteLimit < 0)
940
+ return [];
941
+ const paths = allowedSizeExclusionPaths(pack);
942
+ const total = pack.omittedCounts === undefined
943
+ ? paths.length
944
+ : connectedContextOmittedCounts(pack)["size-exceeded"];
945
+ if (total === 0)
946
+ return [];
947
+ const lines = [
948
+ "Known file-size exclusions (metadata only, not file-content evidence):",
949
+ `Files excluded by file-size policy: ${String(total)}.`,
950
+ ];
951
+ let pathBytes = 0;
952
+ let listed = 0;
953
+ for (const path of paths) {
954
+ const line = `- omitted path: ${JSON.stringify(redactedString(redactor, path))}; reason=size-exceeded`;
955
+ const bytes = Buffer.byteLength(line, "utf8") + 1;
956
+ if (pathBytes + bytes > Math.min(pathByteLimit, MAX_SIZE_EXCLUSION_PATH_BYTES))
957
+ break;
958
+ lines.push(line);
959
+ pathBytes += bytes;
960
+ listed += 1;
961
+ }
962
+ if (listed < total)
963
+ lines.push(`Additional excluded paths not listed: ${String(total - listed)}.`);
964
+ lines.push("These files were not read as evidence. Do not infer their contents or invent line references.");
965
+ return lines;
966
+ }
621
967
  export function uncertaintyLines(pack, redactor) {
622
968
  if (pack.uncertainty.length === 0)
623
969
  return ["None."];
624
970
  return pack.uncertainty.map((marker) => `- ${marker.kind}: ${redactedString(redactor, marker.claim)}`);
625
971
  }
626
972
  // The grounded system message is shared verbatim by the single-source and multi-source (#532)
627
- // paths so both apply the identical untrusted-evidence + citation + no-secret guardrails. The
628
- // single-source wire output must stay byte-identical (AC5), so this literal must not change.
973
+ // paths so both apply the identical capability, untrusted-evidence, citation and no-secret rules.
629
974
  // GROUNDED_SYSTEM_PROMPT now lives in the dependency-free ./grounded-prompt.js leaf (re-exported
630
975
  // here for back-compat) so the hybrid path can interpolate it without a circular-import TDZ.
631
- export { GROUNDED_SYSTEM_PROMPT };
632
- function buildRawGroundedGatewayMessages(question, pack, redactor) {
976
+ export { GROUNDED_SYSTEM_PROMPT } from "./grounded-prompt.js";
977
+ function buildRawGroundedGatewayMessages(question, pack, redactor, omissionPathBytes, ownAssessmentPolicy = "disabled") {
633
978
  const safeQuestion = redactedString(redactor, question);
634
979
  const userContent = [
635
- "User question:",
636
- safeQuestion,
637
- "",
638
980
  "Connected repository context pack:",
639
981
  `- schemaVersion: ${pack.schemaVersion}`,
640
982
  `- stableId: ${redactedString(redactor, pack.stableId)}`,
641
983
  `- scope kind: ${pack.scope.kind}`,
642
984
  `- query kind: ${pack.query.kind}`,
643
985
  `- budget/usage: ${packBudgetSummary(pack)}`,
644
- `- omitted evidence atoms: ${String(pack.omitted.length)}`,
986
+ `- omitted files: ${String(connectedContextOmittedCount(pack))}`,
987
+ ...omissionReasonLines(pack),
988
+ ...sizeExclusionLines(pack, redactor, omissionPathBytes),
645
989
  "",
646
990
  "Repository evidence excerpts:",
647
991
  ...evidenceLines(pack, redactor),
648
992
  "",
649
993
  "Known uncertainty from retrieval:",
650
994
  ...uncertaintyLines(pack, redactor),
995
+ "",
996
+ "User question:",
997
+ safeQuestion,
651
998
  ].join("\n");
652
999
  return [
653
- { role: "system", content: GROUNDED_SYSTEM_PROMPT },
1000
+ { role: "system", content: groundedSystemPrompt(ownAssessmentPolicy) },
654
1001
  { role: "user", content: userContent },
655
1002
  ];
656
1003
  }
657
1004
  export function buildGroundedGatewayMessages(question, pack, redactor, options) {
658
- return promptBudgetedMessages(question, pack, redactor, buildRawGroundedGatewayMessages, options);
1005
+ return promptBudgetedMessages(question, pack, redactor, groundedPromptBuilder(options), options);
1006
+ }
1007
+ function groundedPromptBuilder(options) {
1008
+ return (question, pack, redactor, omissionPathBytes) => buildRawGroundedGatewayMessages(question, pack, redactor, omissionPathBytes, options?.ownAssessmentPolicy);
1009
+ }
1010
+ function createGatewayAnswerer(deps, model, modelId, signal, correlationId, tokenAccounting, assistantReferences) {
1011
+ const synthesis = createGroundedSynthesisCallBudget();
1012
+ const ctx = {
1013
+ deps,
1014
+ model,
1015
+ modelId,
1016
+ signal,
1017
+ correlationId,
1018
+ tokenAccounting,
1019
+ synthesis,
1020
+ assistantReferences: assistantReferences ?? [],
1021
+ };
1022
+ return {
1023
+ completedSynthesisCalls: synthesis.completed,
1024
+ remainingSynthesisCalls: synthesis.remaining,
1025
+ pendingSynthesisUsage: synthesis.pendingUsage,
1026
+ takeFailedSynthesisUsage: synthesis.takeUsage,
1027
+ reservedSynthesisOutputTokens: synthesis.reservedOutputTokens,
1028
+ answer: (question, pack, options) => gatewayGroundedAnswer(ctx, question, pack, options ?? {}),
1029
+ repair: (question, pack, original, options) => gatewayGroundedAnswer(ctx, `${question}\n\n${buildCitationRepairPrompt(original)}`, pack, options),
1030
+ };
659
1031
  }
660
- function createGatewayAnswerer(model, modelId, redactor, signal, modelInputTokensMax, correlationId, tokenAccounting) {
1032
+ function groundedAnswerContextSignal(ctx, options) {
1033
+ const signals = [ctx.signal, ...(options.signal === undefined ? [] : [options.signal])];
1034
+ if (options.deadlineAtMs !== undefined && Number.isFinite(options.deadlineAtMs)) {
1035
+ signals.push(AbortSignal.timeout(Math.max(1, Math.ceil(options.deadlineAtMs - Date.now()))));
1036
+ }
1037
+ return { ...ctx, signal: AbortSignal.any(signals) };
1038
+ }
1039
+ async function gatewayGroundedAnswer(ctx, question, pack, options) {
1040
+ ctx = groundedAnswerContextSignal(ctx, options);
1041
+ ensureNotCancelled(ctx.signal);
1042
+ const remainingBefore = ctx.synthesis.remaining();
1043
+ const reservedBefore = ctx.synthesis.reservedOutputTokens();
1044
+ const completedBefore = ctx.synthesis.completed();
1045
+ const attempt = await withAdoptedContextWindowRetry(ctx.deps, { modelId: ctx.modelId, surface: "grounded", correlationId: ctx.correlationId }, () => groundedGatewayAttempt(ctx, question, pack, options));
1046
+ if (attempt.response === undefined)
1047
+ return {
1048
+ content: connectedSearchNoEvidenceAnswer(options.currentQuestion ?? question),
1049
+ ...settledSynthesisFields(ctx, remainingBefore, reservedBefore, completedBefore),
1050
+ modelInvoked: false,
1051
+ noEvidence: true,
1052
+ sentEvidencePacks: attempt.sent.sentEvidencePacks ?? [],
1053
+ filesInPrompt: 0,
1054
+ };
1055
+ const response = attempt.response;
1056
+ assertUsableAssistantContent(response.content.trim(), ctx.modelId);
661
1057
  return {
662
- answer: async (question, pack) => {
663
- ensureNotCancelled(signal);
664
- const promptOptions = {
665
- ...(modelInputTokensMax === undefined ? {} : { modelInputTokensMax }),
666
- ...(tokenAccounting === undefined ? {} : { tokenAccounting }),
667
- };
668
- const response = await model.call({
669
- modelId,
670
- messages: buildGroundedGatewayMessages(question, pack, redactor, promptOptions),
671
- stream: false,
672
- logContext: { correlationId },
673
- }, signal);
674
- const content = response.content.trim();
675
- assertUsableAssistantContent(content, modelId);
676
- return {
677
- content,
678
- usage: {
679
- promptTokens: response.usage.promptTokens,
680
- completionTokens: response.usage.completionTokens,
681
- },
682
- // GEN-AI-GATEWAY-001 (RB-4): carry the finishReason so a truncated ("length") completion is
683
- // surfaced by runGroundedExploration instead of being consumed as a complete answer.
684
- finishReason: response.finishReason,
685
- };
686
- },
1058
+ content: response.content.trim(),
1059
+ ...settledSynthesisFields(ctx, remainingBefore, reservedBefore, completedBefore),
1060
+ finishReason: response.finishReason,
1061
+ modelInvoked: true,
1062
+ sentEvidencePacks: attempt.sent.sentEvidencePacks ?? [],
1063
+ ...sentPromptContextField(attempt.sent, response, currentContextProfileForModel(ctx.deps, ctx.modelId)),
1064
+ };
1065
+ }
1066
+ function settledSynthesisFields(ctx, remainingBefore, reservedBefore, completedBefore) {
1067
+ return {
1068
+ usage: ctx.synthesis.takeUsage(),
1069
+ synthesisCallCount: remainingBefore - ctx.synthesis.remaining(),
1070
+ completedSynthesisCallCount: ctx.synthesis.completed() - completedBefore,
1071
+ synthesisReservedOutputTokens: ctx.synthesis.reservedOutputTokens() - reservedBefore,
1072
+ };
1073
+ }
1074
+ function groundedRemainingOptions(ctx, pack, options) {
1075
+ const pending = ctx.synthesis.pendingUsage();
1076
+ return {
1077
+ ...options,
1078
+ modelInputTokensMax: Math.max(0, (options.modelInputTokensMax ?? pack.budget.modelInputTokensMax) - pending.promptTokens),
1079
+ modelOutputTokensMax: Math.max(0, (options.modelOutputTokensMax ?? pack.budget.modelOutputTokensMax) - pending.completionTokens),
1080
+ };
1081
+ }
1082
+ async function groundedGatewayAttempt(ctx, question, pack, options) {
1083
+ if (ctx.synthesis.remaining() <= 0)
1084
+ throw new CallerAttemptAdmissionError("Grounded synthesis attempt allowance exhausted");
1085
+ const remaining = groundedRemainingOptions(ctx, pack, options);
1086
+ const promptOptions = groundedPromptOptions(ctx.deps, ctx.modelId, ctx.tokenAccounting);
1087
+ const sent = fittedGroundedGatewayPrompt(question, pack, ctx.deps.redactor, {
1088
+ ...promptOptions,
1089
+ requiredEvidencePaths: options.requiredEvidencePaths,
1090
+ requiredEvidenceAtomIds: assistantReferenceExcerptIds(pack, ctx.assistantReferences),
1091
+ callerInputTokensMax: remaining.modelInputTokensMax ?? pack.budget.modelInputTokensMax,
1092
+ });
1093
+ if (!requiredEvidenceSent(sent, options.requiredEvidencePaths))
1094
+ return { sent };
1095
+ if (sent.sentReferenceCount === 0 &&
1096
+ options.answerOnlyContextAvailable !== true &&
1097
+ promptOptions.ownAssessmentPolicy !== "allowed")
1098
+ return { sent };
1099
+ if ((remaining.modelOutputTokensMax ?? 0) <= 0)
1100
+ return { sent };
1101
+ const response = await dispatchGroundedSynthesis(ctx, sent, pack, options, remaining);
1102
+ return { sent, response };
1103
+ }
1104
+ async function dispatchGroundedSynthesis(ctx, sent, pack, original, remaining) {
1105
+ assertGroundedGatewayDispatchActive(ctx, original);
1106
+ logGroundedPromptSelection(ctx.correlationId, sent, remaining.modelInputTokensMax ?? 0, ctx.tokenAccounting);
1107
+ assertGroundedGatewayDispatchActive(ctx, original);
1108
+ const tracker = createGroundedSynthesisAttemptAdmission(ctx.synthesis, {
1109
+ inputTokensMax: original.modelInputTokensMax ?? pack.budget.modelInputTokensMax,
1110
+ outputTokensMax: original.modelOutputTokensMax ?? pack.budget.modelOutputTokensMax,
1111
+ signal: ctx.signal,
1112
+ deadlineAtMs: original.deadlineAtMs,
1113
+ });
1114
+ const promptTokens = countGatewayPromptTokens({ messages: sent.messages }, ctx.tokenAccounting);
1115
+ try {
1116
+ const response = await ctx.model.call({
1117
+ modelId: ctx.modelId,
1118
+ messages: sent.messages,
1119
+ stream: false,
1120
+ maxOutputTokens: remaining.modelOutputTokensMax,
1121
+ logContext: { correlationId: ctx.correlationId },
1122
+ attemptAdmission: tracker.admission,
1123
+ }, ctx.signal);
1124
+ ctx.synthesis.recordCompleted();
1125
+ tracker.settleFallback(promptTokens, response.usage);
1126
+ return response;
1127
+ }
1128
+ catch (error_) {
1129
+ tracker.settleFallbackFailure(promptTokens, error_);
1130
+ throw error_;
1131
+ }
1132
+ }
1133
+ function assertGroundedGatewayDispatchActive(ctx, options) {
1134
+ ensureNotCancelled(ctx.signal);
1135
+ if (options.deadlineAtMs !== undefined && Date.now() >= options.deadlineAtMs) {
1136
+ throw new TimeoutError("Grounded synthesis deadline elapsed before gateway admission");
1137
+ }
1138
+ }
1139
+ function requiredEvidenceSent(sent, paths = []) {
1140
+ const present = new Set(sent.sentEvidencePacks?.flatMap((pack) => pack.files
1141
+ .filter((file) => file.excerpts.some((excerpt) => excerpt.content.length > 0))
1142
+ .map((file) => file.scopePath)));
1143
+ return paths.every((path) => present.has(path));
1144
+ }
1145
+ // The input budget of one attempt, read from the model's current capability.
1146
+ export function groundedPromptOptions(deps, modelId, tokenAccounting) {
1147
+ const modelInputTokensMax = groundedPromptInputTokensForCapability(chatCapability(deps, modelId));
1148
+ return {
1149
+ ownAssessmentPolicy: currentOwnAssessmentPolicy(deps),
1150
+ ...(modelInputTokensMax === undefined ? {} : { modelInputTokensMax }),
1151
+ ...(tokenAccounting === undefined ? {} : { tokenAccounting }),
687
1152
  };
688
1153
  }
1154
+ function sentPromptContextField(sent, response, profile) {
1155
+ return sent === undefined
1156
+ ? {}
1157
+ : { promptContext: sentPromptContext(sent, response.usage.promptTokens, profile) };
1158
+ }
689
1159
  function resolveGroundedAnswerModel(deps, modelId, readinessAdmission) {
690
1160
  const resolvedModel = deps.modelPortFactory(modelId);
691
1161
  if (resolvedModel === undefined) {
@@ -696,26 +1166,29 @@ function resolveGroundedAnswerModel(deps, modelId, readinessAdmission) {
696
1166
  // Split out of defaultRunner to keep it within the line budget: the actual GroundedRunner closure
697
1167
  // invoked once per exploration input.
698
1168
  function runDefaultGroundedExploration(runnerCtx, input) {
699
- const { deps, modelId, signal, contextProfile, model, modelInputTokensMax, entailmentStage } = runnerCtx;
700
- const nowMs = Date.now;
701
- const budgetedInput = input.budget === undefined
702
- ? { ...input, budget: modelWindowAwareBudget(deps, modelId) }
703
- : input;
704
- const contextPackReranker = configuredContextPackRerankerFor(deps, budgetedInput.query, signal);
705
- const semanticLease = configuredRepoSemanticSearchProviderLeaseFor(deps, signal, budgetedInput.workspaceRoot);
1169
+ const { deps, modelId, signal, contextProfile, model, entailmentStage } = runnerCtx;
1170
+ const budgetedInput = {
1171
+ ...input,
1172
+ budget: input.budget ?? modelWindowAwareBudget(deps, modelId),
1173
+ };
1174
+ const contextPackReranker = configuredContextPackRerankerFor(deps, budgetedInput.query, signal, budgetedInput.budget.excerptBytesMax);
1175
+ const semanticLease = configuredGroundedSemanticRequest(deps, budgetedInput.workspaceRoot, runnerCtx.refreshDocuments);
706
1176
  return runGroundedExploration(budgetedInput, {
707
- answerer: createGatewayAnswerer(model, modelId, deps.redactor, signal, modelInputTokensMax, runnerCtx.correlationId, contextProfile?.tokenAccounting),
708
- nowMs,
1177
+ ownAssessmentPolicy: currentOwnAssessmentPolicy(deps),
1178
+ followUpConfigurationDisposition: connectedFollowUpConfiguration(deps.env.KEIKO_CONNECTED_FOLLOW_UP_PASSES_MAX).disposition,
1179
+ reliableCitationBehaviour: citationBehaviourFor(deps, modelId),
1180
+ observeCitationBehaviour: citationBehaviourObserverFor(deps, modelId, runnerCtx.correlationId),
1181
+ answerer: createGatewayAnswerer(deps, model, modelId, signal, runnerCtx.correlationId, contextProfile?.tokenAccounting, input.assistantReferents),
1182
+ nowMs: Date.now,
709
1183
  signal,
710
1184
  // ADR-0173 D5: the same id the Gateway answerer above already carries, so a git-history read
711
1185
  // that failed during THIS ask is joinable to it in `server.log`.
712
1186
  correlationId: runnerCtx.correlationId,
713
- microIndex: microIndexForGroundedScope(budgetedInput.scope, nowMs),
1187
+ microIndex: microIndexForGroundedScope(budgetedInput.scope, Date.now),
714
1188
  workspaceIndexForRoot: deps.workspaceIndexForRoot,
715
1189
  ...(contextPackReranker === undefined ? {} : { contextPackReranker }),
716
- ...(semanticLease.provider === undefined
717
- ? {}
718
- : { repoSemanticSearchProvider: semanticLease.provider }),
1190
+ repoSemanticSearchProviderFor: semanticLease.providerFor,
1191
+ diagnostics: deps.diagnostics,
719
1192
  ...(entailmentStage === undefined ? {} : { entailmentStage }),
720
1193
  // ADR-0055 D1/D5 (PR4-W1): thread the provisioned profile so the diagnostics observer fires
721
1194
  // on the assembled pack. exactOptionalPropertyTypes — omit the key entirely when absent so
@@ -729,18 +1202,19 @@ function defaultRunner(deps, modelId, readinessAdmission, signal, contextProfile
729
1202
  const model = resolveGroundedAnswerModel(deps, modelId, readinessAdmission);
730
1203
  if ("status" in model)
731
1204
  return model;
732
- const modelInputTokensMax = groundedPromptInputTokensForCapability(chatCapability(deps, modelId));
733
1205
  // Knowledge M1.2 (#2563): the folder grounded-ask has no knowledge capsule, so entailment is
734
1206
  // governed only by whether a compatible judge model is configured (empty capsules ⇒ no policy to
735
1207
  // deny). Undefined ⇒ the stage is inert and the assembled pack is byte-identical to today.
736
- const entailmentStage = createEntailmentStage(deps, [], modelId, { diagnostics: deps.diagnostics }, signal);
1208
+ const entailmentStage = createEntailmentStage(deps, [], modelId,
1209
+ // The request's correlation, so the verdict line joins the ask (PR #3678 review).
1210
+ { diagnostics: deps.diagnostics, correlationId }, signal);
737
1211
  const runnerCtx = {
1212
+ refreshDocuments: createSemanticRefreshDocumentBudget(deps),
738
1213
  deps,
739
1214
  modelId,
740
1215
  signal,
741
1216
  contextProfile,
742
1217
  model,
743
- modelInputTokensMax,
744
1218
  entailmentStage,
745
1219
  correlationId,
746
1220
  };
@@ -927,6 +1401,7 @@ export function registerGroundedTurn(record, clientTurnId) {
927
1401
  }
928
1402
  }
929
1403
  function persistGroundedAuditEvidence(workerCtx, output, citationCount) {
1404
+ const pack = withSentEvidenceInventory(output.pack, output.sentEvidencePacks);
930
1405
  const finishedAt = Date.now();
931
1406
  const startedAt = Math.max(0, finishedAt - output.elapsedMs);
932
1407
  const runId = groundedEvidenceRunId({
@@ -944,13 +1419,17 @@ function persistGroundedAuditEvidence(workerCtx, output, citationCount) {
944
1419
  // the real grounding root so the audit trail is honest about which tree produced the answer.
945
1420
  workspaceRoot: workerCtx.scope.workspaceRoot,
946
1421
  chatId: workerCtx.chat.id,
1422
+ sourceScopeFingerprint: groundedSourceScopeFingerprint(output.pack.scope),
1423
+ followUp: output.followUp,
1424
+ completedSynthesisCallCount: output.completedSynthesisCallCount,
947
1425
  plan: output.plan,
948
- pack: output.pack,
1426
+ pack,
1427
+ retrievedFileCount: output.pack.files.length,
949
1428
  citationCount,
950
1429
  elapsedMs: output.elapsedMs,
951
1430
  startedAt,
952
1431
  finishedAt,
953
- ...groundedContextAssemblyInput({ contextProfile: workerCtx.contextProfile }, output.pack),
1432
+ ...groundedContextAssemblyInput({ contextProfile: workerCtx.contextProfile }, pack),
954
1433
  }, {
955
1434
  store: workerCtx.deps.evidenceStore,
956
1435
  env: workerCtx.deps.env,
@@ -969,8 +1448,13 @@ async function runAsk(workerCtx) {
969
1448
  const output = await runGroundedRunner(workerCtx, query);
970
1449
  if (isRouteResult(output))
971
1450
  return output;
972
- if (!isValidGroundedPack(output.pack)) {
973
- return internalError("Grounded answer context pack failed validation.");
1451
+ const validationFailure = inspectGroundedPack(output.pack, {
1452
+ deps,
1453
+ correlationId: workerCtx.correlationId,
1454
+ outcome: "request-failed",
1455
+ });
1456
+ if (validationFailure !== undefined) {
1457
+ return internalError(GROUNDED_PACK_VALIDATION_MESSAGE, workerCtx.correlationId);
974
1458
  }
975
1459
  const cancelResult = ensureRouteNotCancelled(workerCtx.signal, deps, workerCtx.correlationId);
976
1460
  if (cancelResult !== undefined)
@@ -986,6 +1470,20 @@ function registerSingleGroundedTurn(workerCtx, output, assistantMessageId, evide
986
1470
  packs: [output.pack],
987
1471
  }, workerCtx.commitTurnId);
988
1472
  }
1473
+ function singleAnswerEvidenceDeclaration(output) {
1474
+ return {
1475
+ ...(output.citationBehaviour === undefined
1476
+ ? {}
1477
+ : { citationBehaviour: output.citationBehaviour }),
1478
+ ...(output.answerKind === undefined ? {} : { answerKind: output.answerKind }),
1479
+ ...(output.insufficiencyDeclarations === undefined
1480
+ ? {}
1481
+ : { insufficiencyDeclarations: output.insufficiencyDeclarations }),
1482
+ };
1483
+ }
1484
+ function singleAnswerContextSummary(workerCtx, output, citationCount) {
1485
+ return buildGroundedAnswerContextPackSummary(output.pack, citationCount, output.elapsedMs, groundedContextSummaryInput({ contextProfile: workerCtx.contextProfile }, output.pack), output.filesInPrompt === undefined ? undefined : { filesInPrompt: output.filesInPrompt });
1486
+ }
989
1487
  // Persists the exchange, projects citations/uncertainty, and assembles the wire answer for a
990
1488
  // single-source folder ask. Split out of runAsk to keep both under the LOC bound.
991
1489
  function finalizeGroundedAnswer(workerCtx, output) {
@@ -998,24 +1496,27 @@ function finalizeGroundedAnswer(workerCtx, output) {
998
1496
  const sourceEvidenceAvailable = output.noEvidence !== true;
999
1497
  const modelInvoked = output.modelInvoked ?? sourceEvidenceAvailable;
1000
1498
  const citations = modelInvoked
1001
- ? buildAnswerCitations(output.pack, output.assistantContent, deps.redactor)
1499
+ ? buildAnswerCitations(singleSentEvidencePack(output, output.pack), output.assistantContent, deps.redactor)
1002
1500
  : [];
1003
1501
  const evidenceRunId = sourceEvidenceAvailable
1004
1502
  ? persistGroundedAuditEvidence(workerCtx, output, citations.length)
1005
1503
  : undefined;
1006
1504
  const [userMessage, assistantMessage] = persistGroundedExchange(deps, chat.id, userContent, assistantContent, workerCtx.userMessage);
1007
- const contextPack = buildGroundedAnswerContextPackSummary(output.pack, citations.length, output.elapsedMs, groundedContextSummaryInput({ contextProfile: workerCtx.contextProfile }, output.pack));
1008
1505
  const answer = {
1009
1506
  groundingKind: "connected-context",
1010
1507
  userMessageId: userMessage.id,
1011
1508
  assistantMessageId: assistantMessage.id,
1012
1509
  ...(evidenceRunId === undefined ? {} : { evidenceRunId }),
1013
1510
  content: assistantContent,
1511
+ ...singleAnswerEvidenceDeclaration(output),
1014
1512
  citations,
1015
1513
  uncertainty: buildUncertainty(output.pack, deps.redactor),
1016
- omittedCount: output.pack.omitted.length,
1514
+ omittedCount: connectedContextOmittedCount(output.pack),
1017
1515
  elapsedMs: output.elapsedMs,
1018
- contextPack,
1516
+ contextPack: singleAnswerContextSummary(workerCtx, output, citations.length),
1517
+ ...(modelInvoked && output.promptContext !== undefined
1518
+ ? { promptContext: output.promptContext }
1519
+ : {}),
1019
1520
  };
1020
1521
  deps.store.attachGroundedAnswer(assistantMessage.id, answer);
1021
1522
  if (sourceEvidenceAvailable) {
@@ -1048,7 +1549,9 @@ async function runGroundedRunner(workerCtx, query) {
1048
1549
  const output = await runner({
1049
1550
  scope,
1050
1551
  query,
1552
+ ...groundedRetrievalContinuityFields(workerCtx, scope),
1051
1553
  answerQuestion: answerContent,
1554
+ currentQuestion: workerCtx.content,
1052
1555
  answerOnlyContextAvailable: workerCtx.answerOnlyContextAvailable,
1053
1556
  workspaceRoot: scope.workspaceRoot,
1054
1557
  ...optionalWorkspaceFs(workerCtx.workspaceFs),
@@ -1060,7 +1563,10 @@ async function runGroundedRunner(workerCtx, query) {
1060
1563
  if (error instanceof ClarificationNeededError) {
1061
1564
  return clarificationRequest(clarificationUserMessage(error));
1062
1565
  }
1063
- const workspaceResult = mappedWorkspaceError(error);
1566
+ const validationResult = mappedContextPackValidationError(error, workerCtx.deps, workerCtx.correlationId);
1567
+ if (validationResult !== undefined)
1568
+ return validationResult;
1569
+ const workspaceResult = mappedWorkspaceError(error, { correlationId: workerCtx.correlationId });
1064
1570
  if (workspaceResult !== undefined)
1065
1571
  return workspaceResult;
1066
1572
  const gatewayResult = mappedGatewayError(error, workerCtx.deps, workerCtx.correlationId);
@@ -1105,7 +1611,7 @@ function resolveGroundedRunner(deps, modelId, readinessAdmission, signal, runner
1105
1611
  return builtRunner;
1106
1612
  return { modelId, contextProfile, runner: builtRunner };
1107
1613
  }
1108
- function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, override, correlationId) {
1614
+ function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, override, correlationId, answerOptions) {
1109
1615
  if (override !== undefined)
1110
1616
  return override;
1111
1617
  const resolvedModel = deps.modelPortFactory(modelId);
@@ -1115,7 +1621,7 @@ function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, overr
1115
1621
  const model = withConversationReadinessAdmission(resolvedModel, modelId, readinessAdmission, deps);
1116
1622
  return {
1117
1623
  retriever: defaultRetriever(signal, deps, correlationId),
1118
- answerer: createMultiSourceAnswerer(model, modelId, deps.redactor, signal, correlationId),
1624
+ answerer: createMultiSourceAnswerer(deps, model, modelId, signal, correlationId, answerOptions),
1119
1625
  };
1120
1626
  }
1121
1627
  async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOverride) {
@@ -1124,12 +1630,16 @@ async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOv
1124
1630
  // does for an injected runner: there is no real model port to validate against. Production (no
1125
1631
  // override) resolves the chat-model guardrails once, shared with the single path.
1126
1632
  const modelId = groundedModelId(args);
1127
- const seam = resolveMultiSourceSeam(deps, modelId, groundedReadinessAdmission(args), signal, seamOverride, args.correlationId);
1633
+ const seam = resolveMultiSourceSeam(deps, modelId, groundedReadinessAdmission(args), signal, seamOverride, args.correlationId, { currentQuestion: input.content, answerOnlyContextAvailable: hasAnswerOnlyContext(args) });
1128
1634
  if ("status" in seam)
1129
1635
  return seam;
1130
1636
  return runMultiSourceAsk({
1637
+ ...groundedRetrievalContinuityFields(input),
1131
1638
  chat,
1132
1639
  scopes,
1640
+ ...(args.sourceScopeFingerprints === undefined
1641
+ ? {}
1642
+ : { sourceScopeFingerprints: args.sourceScopeFingerprints }),
1133
1643
  content: input.content,
1134
1644
  retrievalContent: input.retrievalContent,
1135
1645
  answerContent: input.answerContent ?? input.content,
@@ -1147,6 +1657,7 @@ async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOv
1147
1657
  ? { entailmentStageFactory: seam.entailmentStageFactory }
1148
1658
  : {}),
1149
1659
  preSkipped: skippedFolders.map((s) => ({ label: s.label, message: s.message })),
1660
+ correlationId: args.correlationId,
1150
1661
  });
1151
1662
  }
1152
1663
  // Epic #532 — builds the single-source SelectedScope from the canonical list when the legacy
@@ -1194,8 +1705,8 @@ async function dispatchFolderAsk(prepared, deps, allScopes, allSkippedFolders, r
1194
1705
  const resolved = resolveGroundedRunner(deps, groundedModelId(prepared), groundedReadinessAdmission(prepared), signal, runner, prepared.correlationId);
1195
1706
  if ("status" in resolved)
1196
1707
  return resolved;
1197
- const workspaceFs = firstScopeWorkspaceFs(scopes);
1198
1708
  return runAsk({
1709
+ ...groundedRetrievalContinuityFields(input),
1199
1710
  chat,
1200
1711
  scope,
1201
1712
  content: input.content,
@@ -1209,7 +1720,7 @@ async function dispatchFolderAsk(prepared, deps, allScopes, allSkippedFolders, r
1209
1720
  contextProfile: resolved.contextProfile,
1210
1721
  deps,
1211
1722
  runner: resolved.runner,
1212
- ...optionalWorkspaceFs(workspaceFs),
1723
+ ...optionalWorkspaceFs(firstScopeWorkspaceFs(scopes)),
1213
1724
  signal,
1214
1725
  correlationId: prepared.correlationId,
1215
1726
  });
@@ -1232,7 +1743,11 @@ async function dispatchHybridAsk(prepared, deps, skippedFolders, seam) {
1232
1743
  // path does: there is no real model port to validate. Production resolves the guardrails once.
1233
1744
  const modelId = groundedModelId(prepared);
1234
1745
  return runHybridGroundedAsk({
1746
+ ...groundedRetrievalContinuityFields(input),
1235
1747
  chat,
1748
+ ...(prepared.sourceScopeFingerprints === undefined
1749
+ ? {}
1750
+ : { sourceScopeFingerprints: prepared.sourceScopeFingerprints }),
1236
1751
  content: input.content,
1237
1752
  retrievalContent: input.retrievalContent,
1238
1753
  answerContent: input.answerContent ?? input.content,
@@ -1257,6 +1772,11 @@ async function dispatchHybridAsk(prepared, deps, skippedFolders, seam) {
1257
1772
  function canonicalizePreparedFolderScopes(prepared, deps) {
1258
1773
  return canonicalizeGroundedFolderScopes(prepared.chat, deps, buildConnectedScopes(prepared.chat), prepared.request, prepared.correlationId);
1259
1774
  }
1775
+ function unavailableFolderResult(skipped) {
1776
+ return (skipped.find((entry) => entry.reason.status === 503)?.reason ??
1777
+ skipped[0]?.reason ??
1778
+ badRequest("Chat has no connected scope."));
1779
+ }
1260
1780
  async function dispatchPreparedGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
1261
1781
  const { chat } = prepared;
1262
1782
  // Epic #189 — count-based dispatch over BOTH source kinds. 0+0 → no scope. Connector-free chats
@@ -1264,18 +1784,17 @@ async function dispatchPreparedGroundedAsk(prepared, deps, runner, multiSource,
1264
1784
  // EXISTING single-connector path (#189, byte-identical). Everything else (folders+connector, or
1265
1785
  // 2+ connectors) is the hybrid merge.
1266
1786
  // Fail-soft: inaccessible/denied folders are skipped; only effective (canonical) counts drive
1267
- // dispatch. A chat with ONLY denied/inaccessible sources still returns the original 400 so the
1268
- // user sees a clear rejection (security preserved).
1269
- const { canonical: canonicalFolderScopes, skipped: skippedFolders } = canonicalizePreparedFolderScopes(prepared, deps);
1787
+ // dispatch. With no usable source, preserve the admission failure or retriable outage status.
1788
+ const { canonical: canonicalFolderScopes, skipped: skippedFolders, sourceScopeFingerprints, } = canonicalizePreparedFolderScopes(prepared, deps);
1270
1789
  const preparedWithCanonicalFolders = {
1271
1790
  ...prepared,
1272
1791
  chat: withCanonicalFolderScopes(chat, canonicalFolderScopes),
1792
+ sourceScopeFingerprints,
1273
1793
  };
1274
1794
  const connectorCount = buildLocalKnowledgeScopes(chat).length;
1275
1795
  const effectiveFolders = canonicalFolderScopes.length;
1276
1796
  if (effectiveFolders === 0 && connectorCount === 0) {
1277
- // Hard-fail: return the first skipped reason (preserves exact 400 message) or the generic guard.
1278
- return skippedFolders[0]?.reason ?? badRequest("Chat has no connected scope.");
1797
+ return unavailableFolderResult(skippedFolders);
1279
1798
  }
1280
1799
  if (connectorCount === 0) {
1281
1800
  return dispatchFolderAsk(preparedWithCanonicalFolders, deps, canonicalFolderScopes, skippedFolders, runner, multiSource);
@@ -1385,6 +1904,7 @@ async function withGroundedContinuity(prepared, deps) {
1385
1904
  ...prepared.input,
1386
1905
  content,
1387
1906
  retrievalContent: continuity.retrievalContent,
1907
+ ...groundedRetrievalContinuityFields(continuity),
1388
1908
  answerContent: [continuity.answerContext, content].filter(Boolean).join("\n\n"),
1389
1909
  },
1390
1910
  };
@@ -1410,8 +1930,8 @@ function groundedAnswerContent(content, memory) {
1410
1930
  return content;
1411
1931
  return ["User question:", content, "", renderConversationMemoryContextBlock(memoryText)].join("\n");
1412
1932
  }
1413
- function groundedMemoryPreparationFailure(prepared, deps, errorClass) {
1414
- recordGroundedMemoryFailure(deps, prepared.chat.id, errorClass);
1933
+ function groundedMemoryPreparationFailure(prepared, deps, error) {
1934
+ recordGroundedMemoryFailure(prepared, deps, error);
1415
1935
  return prepared;
1416
1936
  }
1417
1937
  function withPreparedGroundedMemory(prepared, context, result) {
@@ -1436,7 +1956,9 @@ async function prepareGroundedMemory(prepared, deps) {
1436
1956
  return prepared;
1437
1957
  const context = prepared.memoryContext;
1438
1958
  if (context === undefined) {
1439
- return groundedMemoryPreparationFailure(prepared, deps, "GroundedMemoryContextUnavailable");
1959
+ return groundedMemoryPreparationFailure(prepared, deps, Object.assign(new Error("Grounded memory context is unavailable"), {
1960
+ name: "GroundedMemoryContextUnavailable",
1961
+ }));
1440
1962
  }
1441
1963
  try {
1442
1964
  const result = await buildMemoryResult({
@@ -1452,32 +1974,74 @@ async function prepareGroundedMemory(prepared, deps) {
1452
1974
  return withPreparedGroundedMemory(prepared, context, result);
1453
1975
  }
1454
1976
  catch (error) {
1455
- return groundedMemoryPreparationFailure(prepared, deps, contentFreeErrorClass(error));
1977
+ return groundedMemoryPreparationFailure(prepared, deps, error);
1456
1978
  }
1457
1979
  }
1980
+ function groundedScopeRefusal(admitted, deps, reason) {
1981
+ const message = {
1982
+ "scope-identity-mismatch": "The grounded source scope changed before the turn could run.",
1983
+ "grounding-mode-changed": "The chat grounding mode changed before the turn could run.",
1984
+ "scope-changed-during-answer": "The grounded source scope changed while the answer was in progress.",
1985
+ }[reason];
1986
+ logChatRejection("chat.send.rejected", admitted.correlationId, groundedModelId(admitted), deps, 409, "grounding-scope");
1987
+ emitServerDiagnostic(deps.diagnostics, {
1988
+ ...serverDiagnosticFromError({
1989
+ correlationId: correlationIdOrUnknown(admitted.correlationId),
1990
+ operation: "POST /api/chats/messages/grounded",
1991
+ source: `grounded.qa.${reason}`,
1992
+ error: Object.assign(new Error(message), { code: "GROUNDING_SCOPE_CHANGED" }),
1993
+ redact: (value) => redactString(deps.redactor, value),
1994
+ }),
1995
+ errorClass: "invalid-request",
1996
+ httpStatus: 409,
1997
+ diagnosticOutcome: "request-refused",
1998
+ });
1999
+ return settleGroundedChatTurn(admitted, deps, {
2000
+ status: 409,
2001
+ body: errorBody("GROUNDING_SCOPE_CHANGED", message, admitted.correlationId),
2002
+ });
2003
+ }
1458
2004
  function admittedGroundingScopeFailure(admitted, deps) {
1459
2005
  const expectedIdentity = admitted.input.expectedGroundingScopeIdentity;
1460
2006
  if (expectedIdentity !== undefined &&
1461
2007
  expectedIdentity !== deriveChatGroundingScopeIdentity(admitted.chat)) {
1462
- return settleGroundedChatTurn(admitted, deps, {
1463
- status: 409,
1464
- body: errorBody("GROUNDING_SCOPE_CHANGED", "The grounded source scope changed before the turn could run."),
1465
- });
2008
+ return groundedScopeRefusal(admitted, deps, "scope-identity-mismatch");
1466
2009
  }
1467
2010
  if (expectedIdentity === undefined ||
1468
2011
  buildConnectedScopes(admitted.chat).length > 0 ||
1469
2012
  buildLocalKnowledgeScopes(admitted.chat).length > 0) {
1470
2013
  return undefined;
1471
2014
  }
1472
- return settleGroundedChatTurn(admitted, deps, {
1473
- status: 409,
1474
- body: errorBody("GROUNDING_SCOPE_CHANGED", "The chat grounding mode changed before the turn could run."),
1475
- });
2015
+ return groundedScopeRefusal(admitted, deps, "grounding-mode-changed");
2016
+ }
2017
+ function withHistoryCompactionSummary(pack) {
2018
+ return pack.contextSummary === undefined
2019
+ ? pack
2020
+ : {
2021
+ ...pack,
2022
+ contextSummary: { ...pack.contextSummary, compactionActive: true },
2023
+ };
2024
+ }
2025
+ function withGroundedCompactionSummary(prepared, result) {
2026
+ if (prepared.continuity?.compaction === undefined ||
2027
+ result.status !== 200 ||
2028
+ !groundedAnswerBody(result.body))
2029
+ return result;
2030
+ const answer = result.body;
2031
+ if (answer.groundingKind === "local-knowledge")
2032
+ return result;
2033
+ const contextPack = answer.groundingKind === "hybrid"
2034
+ ? { ...answer.contextPack, folder: withHistoryCompactionSummary(answer.contextPack.folder) }
2035
+ : withHistoryCompactionSummary(answer.contextPack);
2036
+ return { ...result, body: { ...answer, contextPack } };
2037
+ }
2038
+ async function prepareGroundedMemoryWithContinuity(admitted, deps) {
2039
+ return prepareGroundedMemory(await withGroundedContinuity(admitted, deps), deps);
1476
2040
  }
1477
2041
  async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybrid) {
1478
2042
  let stagedAssistantId;
1479
2043
  try {
1480
- const memoryPrepared = await prepareGroundedMemory(await withGroundedContinuity(admitted, deps), deps);
2044
+ const memoryPrepared = await prepareGroundedMemoryWithContinuity(admitted, deps);
1481
2045
  ensureNotCancelled(admitted.signal);
1482
2046
  if (isRouteResult(memoryPrepared)) {
1483
2047
  return settleGroundedChatTurn(admitted, deps, memoryPrepared);
@@ -1491,7 +2055,7 @@ async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybri
1491
2055
  stagedAssistantId = result.body.assistantMessageId;
1492
2056
  }
1493
2057
  ensureNotCancelled(memoryPrepared.signal);
1494
- const withMemory = await attachGroundedMemory(memoryPrepared, deps, result);
2058
+ const withMemory = withGroundedCompactionSummary(memoryPrepared, await attachGroundedMemory(memoryPrepared, deps, result));
1495
2059
  ensureNotCancelled(memoryPrepared.signal);
1496
2060
  const settled = settleGroundedChatTurn(memoryPrepared, deps, withMemory);
1497
2061
  persistGroundedContinuity(memoryPrepared, deps, settled);
@@ -1500,7 +2064,7 @@ async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybri
1500
2064
  catch (error) {
1501
2065
  if (stagedAssistantId !== undefined)
1502
2066
  discardGroundedTurn(stagedAssistantId);
1503
- deps.store.failChatTurn(admitted.chat.id, groundedCommitTurnId(admitted));
2067
+ failGroundedChatTurn(admitted, deps, error instanceof CancelledError);
1504
2068
  if (admitted.signal.aborted)
1505
2069
  return groundedCancelledResult();
1506
2070
  throw error;
@@ -1514,7 +2078,18 @@ async function executeGroundedAskInTurn(prepared, deps, runner, multiSource, hyb
1514
2078
  if (isRouteResult(admitted))
1515
2079
  return admitted;
1516
2080
  const scopeFailure = admittedGroundingScopeFailure(admitted, deps);
1517
- return scopeFailure ?? runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybrid);
2081
+ if (scopeFailure !== undefined)
2082
+ return scopeFailure;
2083
+ const releaseSession = beginAppSessionOperation(deps, admitted.request, admitted.signal, {
2084
+ correlationId: admitted.correlationId,
2085
+ surface: "grounded-chat",
2086
+ });
2087
+ try {
2088
+ return await runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybrid);
2089
+ }
2090
+ finally {
2091
+ releaseSession();
2092
+ }
1518
2093
  }
1519
2094
  async function executeGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
1520
2095
  const result = await runSerializedChatTurn(deps, prepared.chat.id, prepared.signal, () => {
@@ -1547,21 +2122,22 @@ async function executeGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
1547
2122
  function groundedCancelledResult() {
1548
2123
  return { status: 499, body: errorBody("CANCELLED", "Grounded request was cancelled.") };
1549
2124
  }
2125
+ function failGroundedChatTurn(prepared, deps, cancelled) {
2126
+ deps.store.failChatTurn(prepared.chat.id, groundedCommitTurnId(prepared), prepared.signal.aborted || cancelled ? "cancelled" : "failed");
2127
+ }
1550
2128
  function settleGroundedChatTurn(prepared, deps, result) {
1551
2129
  const commitTurnId = groundedCommitTurnId(prepared);
1552
2130
  if (result.status !== 200 || !groundedAnswerBody(result.body)) {
1553
- deps.store.failChatTurn(prepared.chat.id, commitTurnId);
2131
+ failGroundedChatTurn(prepared, deps, result.status === 499);
1554
2132
  return result;
1555
2133
  }
1556
2134
  if (!groundedScopeStillCurrent(prepared, deps)) {
1557
2135
  discardGroundedTurn(result.body.assistantMessageId);
1558
- deps.store.failChatTurn(prepared.chat.id, commitTurnId);
1559
- return {
1560
- status: 409,
1561
- body: errorBody("GROUNDING_SCOPE_CHANGED", "The grounded source scope changed while the answer was in progress."),
1562
- };
2136
+ return groundedScopeRefusal(prepared, deps, "scope-changed-during-answer");
1563
2137
  }
1564
- if (result.body.memory !== undefined || hasAnswerOnlyContext(prepared)) {
2138
+ if (result.body.memory !== undefined ||
2139
+ hasAnswerOnlyContext(prepared) ||
2140
+ prepared.continuity?.compaction !== undefined) {
1565
2141
  deps.store.attachGroundedAnswer(result.body.assistantMessageId, result.body);
1566
2142
  }
1567
2143
  let completion;
@@ -1575,7 +2151,7 @@ function settleGroundedChatTurn(prepared, deps, result) {
1575
2151
  if (completion.kind !== "completed") {
1576
2152
  discardGroundedTurn(result.body.assistantMessageId);
1577
2153
  deps.store.failChatTurn(prepared.chat.id, commitTurnId);
1578
- return internalError("Canonical grounded chat turn completion conflicted.");
2154
+ return groundedCompletionFailure(deps, prepared.correlationId, completion.kind);
1579
2155
  }
1580
2156
  commitGroundedTurn(result.body.assistantMessageId);
1581
2157
  runGroundedPostCommitMemorySideEffects(prepared, deps, result.body);
@@ -1600,15 +2176,15 @@ function groundedAnswerBody(value) {
1600
2176
  "assistantMessageId" in value &&
1601
2177
  "content" in value);
1602
2178
  }
1603
- function recordGroundedMemoryFailure(deps, assistantMessageId, errorClass) {
1604
- emitServerDiagnostic(deps.diagnostics, {
1605
- correlationId: assistantMessageId,
1606
- timestamp: new Date(Date.now()).toISOString(),
2179
+ function recordGroundedMemoryFailure(prepared, deps, error) {
2180
+ emitServerDiagnostic(deps.diagnostics, serverDiagnosticFromError({
2181
+ correlationId: correlationIdOrUnknown(prepared.correlationId),
1607
2182
  operation: "grounded.memory",
1608
2183
  source: "grounded-qa.attach-memory",
1609
- errorClass,
1610
- message: "grounded-memory-enrichment-failed",
1611
- });
2184
+ summary: "grounded-memory-enrichment-failed",
2185
+ error,
2186
+ redact: (value) => redactString(deps.redactor, value),
2187
+ }));
1612
2188
  }
1613
2189
  function groundedCanonicalMemoryRequest(prepared, assistantContent) {
1614
2190
  return {
@@ -1646,7 +2222,7 @@ async function attachGroundedMemory(prepared, deps, result) {
1646
2222
  return memory === undefined ? markedResult : { ...markedResult, body: { ...body, memory } };
1647
2223
  }
1648
2224
  catch (error) {
1649
- recordGroundedMemoryFailure(deps, result.body.assistantMessageId, contentFreeErrorClass(error));
2225
+ recordGroundedMemoryFailure(prepared, deps, error);
1650
2226
  return markedResult;
1651
2227
  }
1652
2228
  }
@@ -1660,6 +2236,14 @@ function groundedAnswerWithMemoryUncertainty(body, deps) {
1660
2236
  ],
1661
2237
  };
1662
2238
  }
2239
+ function finalGroundedMemoryActivity(prepared, body) {
2240
+ const markerCount = body.uncertainty.filter((marker) => marker.kind === "uncited-memory-context").length;
2241
+ const requestedDisposition = markerCount > 0 ? "included" : "excluded";
2242
+ return {
2243
+ uncitedMemoryContextMarkerCount: markerCount,
2244
+ memoryContextDisposition: prepared.input.memory?.enabled !== true ? "not-requested" : requestedDisposition,
2245
+ };
2246
+ }
1663
2247
  export async function handleGroundedAsk(ctx, deps, runner, multiSource, hybrid) {
1664
2248
  const cancellation = createRequestCancellation(ctx, "grounded request cancelled");
1665
2249
  try {
@@ -1670,7 +2254,7 @@ export async function handleGroundedAsk(ctx, deps, runner, multiSource, hybrid)
1670
2254
  return prepared;
1671
2255
  const result = await executeGroundedAsk(prepared, deps, runner, multiSource, hybrid);
1672
2256
  if (result.status === 200 && groundedAnswerBody(result.body)) {
1673
- logChatResponseMessage(result.body.assistantMessageId, ctx.correlationId);
2257
+ logChatResponseMessage(result.body.assistantMessageId, ctx.correlationId, finalGroundedMemoryActivity(prepared, result.body));
1674
2258
  }
1675
2259
  return result;
1676
2260
  }