@oscharko-dev/keiko 1.2.0 → 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 (1015) hide show
  1. package/README.md +10 -2
  2. package/dist/ui/csp-hashes.json +7 -7
  3. package/dist/ui/static/404.html +1 -1
  4. package/dist/ui/static/__next.__PAGE__.txt +12 -12
  5. package/dist/ui/static/__next._full.txt +23 -22
  6. package/dist/ui/static/__next._tree.txt +2 -2
  7. package/dist/ui/static/_next/static/chunks/014h2nyfet3kr.js +1 -0
  8. package/dist/ui/static/_next/static/chunks/02ahxxpsbao7z.js +1 -0
  9. package/dist/ui/static/_next/static/chunks/0851fl0j1ja4e.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/08896ukd2zxg6.js +1 -0
  11. package/dist/ui/static/_next/static/chunks/08nml2svyd9vv.js +4 -0
  12. package/dist/ui/static/_next/static/chunks/08tg5xjyy073b.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/09p2ty64ellxo.js +1 -0
  14. package/dist/ui/static/_next/static/chunks/0b7xat6jxvrmr.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/{196257vfyrtgu.js → 0d3a8-uxb000v.js} +1 -1
  16. package/dist/ui/static/_next/static/chunks/{388eokaf_2t9k.js → 0jjhji-e9mg99.js} +1 -1
  17. package/dist/ui/static/_next/static/chunks/0jtp8te-03j1-.js +1 -0
  18. package/dist/ui/static/_next/static/chunks/0lw_ax6yn_z8w.js +1 -0
  19. package/dist/ui/static/_next/static/chunks/0oocu54xdbxf3.js +2 -0
  20. package/dist/ui/static/_next/static/chunks/{3h-rh_lx0l8_3.js → 0pf5ot48kepng.js} +1 -1
  21. package/dist/ui/static/_next/static/chunks/0rs9egrg2q85w.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/{3hclt6m3ok4n9.js → 0rsutf6da798_.js} +1 -1
  23. package/dist/ui/static/_next/static/chunks/0rw0et8bt6w-b.js +1 -0
  24. package/dist/ui/static/_next/static/chunks/{2b_t95bbpmtej.js → 0su17ctiaqfp0.js} +1 -1
  25. package/dist/ui/static/_next/static/chunks/0wok-g3ndtvch.js +1 -0
  26. package/dist/ui/static/_next/static/chunks/0y3402xorco2c.js +1 -0
  27. package/dist/ui/static/_next/static/chunks/10p1rdlk7n_9w.js +1 -0
  28. package/dist/ui/static/_next/static/chunks/12aem44im45f-.js +1 -0
  29. package/dist/ui/static/_next/static/chunks/18kcx5kpyxr16.js +1 -0
  30. package/dist/ui/static/_next/static/chunks/1ggcq_lho062y.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/1o-own3kgpojf.js +1 -0
  32. package/dist/ui/static/_next/static/chunks/{0l72usw6suk0h.js → 1osovjtjgxmbl.js} +1 -1
  33. package/dist/ui/static/_next/static/chunks/1uu9slkxpbe4y.js +1 -0
  34. package/dist/ui/static/_next/static/chunks/1vy80v9kp_rqv.js +1 -0
  35. package/dist/ui/static/_next/static/chunks/1x-sfb1_rl15-.js +1 -0
  36. package/dist/ui/static/_next/static/chunks/1zqfkyeqq5cl8.js +1 -0
  37. package/dist/ui/static/_next/static/chunks/{3603jy78awb1p.js → 1zw11x_e-3fzu.js} +1 -1
  38. package/dist/ui/static/_next/static/chunks/20-u8pg5ve_cz.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/22zxuap4am9bs.js +1 -0
  40. package/dist/ui/static/_next/static/chunks/23lstlpeh2rb-.js +1 -0
  41. package/dist/ui/static/_next/static/chunks/261euyxjrb0lv.js +1 -0
  42. package/dist/ui/static/_next/static/chunks/2astwwmbb8e53.js +1 -0
  43. package/dist/ui/static/_next/static/chunks/2duxlo7cg_s7_.js +3 -0
  44. package/dist/ui/static/_next/static/chunks/2dwrkrp-gqyej.js +1 -0
  45. package/dist/ui/static/_next/static/chunks/{1m-9yzfpcm7wc.js → 2ef4l5re80dgi.js} +1 -1
  46. package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +1 -0
  47. package/dist/ui/static/_next/static/chunks/{09zc5hgtb7s-z.js → 2h4vqb2rt3mr1.js} +1 -1
  48. package/dist/ui/static/_next/static/chunks/{3qjkuhjy_-_br.js → 2imh4llefx9d1.js} +1 -1
  49. package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +1 -0
  50. package/dist/ui/static/_next/static/chunks/{0--s8pmsbkf62.js → 2ta3jr_uw2j0x.js} +1 -1
  51. package/dist/ui/static/_next/static/chunks/{2y98z-sun8_ew.js → 2u5_pu1uc6seh.js} +1 -1
  52. package/dist/ui/static/_next/static/chunks/2xd3_a4jlxum2.css +1 -0
  53. package/dist/ui/static/_next/static/chunks/{0mjsj7bp-ukgh.css → 2yuvdrio9ki3a.css} +26 -9
  54. package/dist/ui/static/_next/static/chunks/3-pcgkdsv7x4z.js +1 -0
  55. package/dist/ui/static/_next/static/chunks/{0yzmg9aoglud6.js → 3007ncr8g751a.js} +1 -1
  56. package/dist/ui/static/_next/static/chunks/307xuhrdmetj7.js +1 -0
  57. package/dist/ui/static/_next/static/chunks/30og31pxg8wrp.js +1 -0
  58. package/dist/ui/static/_next/static/chunks/32jgtvf2y-f54.js +1 -0
  59. package/dist/ui/static/_next/static/chunks/35ivnhnxr9dmz.js +1 -0
  60. package/dist/ui/static/_next/static/chunks/363iuc3t94rie.js +1 -0
  61. package/dist/ui/static/_next/static/chunks/37qsy798-g74f.js +1 -0
  62. package/dist/ui/static/_next/static/chunks/37v998g0cm36x.js +1 -0
  63. package/dist/ui/static/_next/static/chunks/3b05n-007vc3e.js +1 -0
  64. package/dist/ui/static/_next/static/chunks/3cpuzx4fetu6y.js +1 -0
  65. package/dist/ui/static/_next/static/chunks/3d27ozm1boe_5.js +3 -0
  66. package/dist/ui/static/_next/static/chunks/{1a6ri-sriyu-m.js → 3ftqojkan-5cl.js} +1 -1
  67. package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +1 -0
  68. package/dist/ui/static/_next/static/chunks/{196x_tfexoucg.js → 3g4px251sg85e.js} +1 -1
  69. package/dist/ui/static/_next/static/chunks/3hjs3gk92eave.js +1 -0
  70. package/dist/ui/static/_next/static/chunks/{1n3b0bhd9q0p6.js → 3l3xw2fmr7pct.js} +3 -3
  71. package/dist/ui/static/_next/static/chunks/3neoxf-shnu-d.js +1 -0
  72. package/dist/ui/static/_next/static/chunks/3payvp5ps2fne.css +3 -0
  73. package/dist/ui/static/_next/static/chunks/3q-93bizla3k1.js +1 -0
  74. package/dist/ui/static/_next/static/chunks/{3eduf6vevclfm.js → 3qbbcm9fuk494.js} +1 -1
  75. package/dist/ui/static/_next/static/chunks/{2ta3xj9td_qot.js → 3rhep1yhgo6a7.js} +1 -1
  76. package/dist/ui/static/_next/static/chunks/{0bpexy600ffpg.js → 3ty06iqiblqi4.js} +1 -1
  77. package/dist/ui/static/_next/static/chunks/{0iu3dyqe7m7_7.js → 3wz98o059mhtf.js} +1 -1
  78. package/dist/ui/static/_next/static/chunks/{2kylv1kq1_4p1.js → 3x2p8mgrihuet.js} +1 -1
  79. package/dist/ui/static/_next/static/chunks/3xi3iilmw9_vy.js +5 -0
  80. package/dist/ui/static/_next/static/chunks/3zxbqudoeow_a.js +1 -0
  81. package/dist/ui/static/_next/static/chunks/3zxwlxhzm5swe.js +1 -0
  82. package/dist/ui/static/_next/static/chunks/{24u-5fslcj3n9.js → 405vbzo164i84.js} +2 -2
  83. package/dist/ui/static/_next/static/chunks/42pls95xys34g.js +1 -0
  84. package/dist/ui/static/_next/static/chunks/43z5mfwx4lk4w.js +1 -0
  85. package/dist/ui/static/_next/static/chunks/{turbopack-2rwr7ign9ynaa.js → turbopack-34k8wgx0iwdzg.js} +1 -1
  86. package/dist/ui/static/_not-found/__next._full.txt +21 -20
  87. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +9 -9
  88. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  89. package/dist/ui/static/_not-found.html +1 -1
  90. package/dist/ui/static/_not-found.txt +21 -20
  91. package/dist/ui/static/atlassian-connectors/__next._full.txt +23 -22
  92. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  93. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +11 -11
  94. package/dist/ui/static/atlassian-connectors.html +1 -1
  95. package/dist/ui/static/atlassian-connectors.txt +23 -22
  96. package/dist/ui/static/index.html +1 -1
  97. package/dist/ui/static/index.txt +23 -22
  98. package/dist/ui/static/launch/__next._full.txt +26 -25
  99. package/dist/ui/static/launch/__next._tree.txt +2 -2
  100. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +12 -12
  101. package/dist/ui/static/launch.html +1 -1
  102. package/dist/ui/static/launch.txt +26 -25
  103. package/dist/ui/static/local-knowledge/__next._full.txt +26 -25
  104. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
  105. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +12 -12
  106. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +11 -11
  107. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  108. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +11 -11
  109. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  110. package/dist/ui/static/local-knowledge/capsule.txt +11 -11
  111. package/dist/ui/static/local-knowledge.html +1 -1
  112. package/dist/ui/static/local-knowledge.txt +26 -25
  113. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts +5 -1
  114. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts.map +1 -1
  115. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.js +26 -1
  116. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
  117. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
  118. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +112 -1
  119. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +12 -5
  120. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
  121. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +14 -6
  122. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts +13 -0
  123. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts.map +1 -0
  124. package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.js +363 -0
  125. package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
  126. package/node_modules/@oscharko-dev/keiko-cli/dist/init.d.ts.map +1 -1
  127. package/node_modules/@oscharko-dev/keiko-cli/dist/init.js +1 -0
  128. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts +22 -0
  129. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts.map +1 -0
  130. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.js +50 -0
  131. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +4 -1
  132. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
  133. package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +137 -32
  134. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +24 -3
  135. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
  136. package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +126 -5
  137. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts +15 -0
  138. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts.map +1 -0
  139. package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.js +91 -0
  140. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +2 -0
  141. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
  142. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +31 -3
  143. package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
  144. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  145. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  146. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  147. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +229 -49
  148. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
  149. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +313 -24
  150. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +2406 -98
  151. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
  152. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +2924 -183
  153. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +2489 -206
  154. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
  155. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +2867 -35
  156. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +35 -5
  157. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
  158. package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +63 -3
  159. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts +37 -0
  160. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts.map +1 -0
  161. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.js +67 -0
  162. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts +2 -35
  163. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts.map +1 -1
  164. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.js +1 -62
  165. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts +1 -0
  166. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts.map +1 -1
  167. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.js +12 -9
  168. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts +38 -1
  169. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts.map +1 -1
  170. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.js +94 -2
  171. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts +3 -3
  172. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts.map +1 -1
  173. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.js +64 -17
  174. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +8 -4
  175. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts.map +1 -1
  176. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.js +1 -0
  177. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts +17 -1
  178. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts.map +1 -1
  179. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.js +13 -0
  180. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime.js +1 -1
  181. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts.map +1 -1
  182. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.js +27 -3
  183. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +28 -2
  184. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
  185. package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +27 -0
  186. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +28 -1
  187. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
  188. package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +60 -1
  189. package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts +3 -0
  190. package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts.map +1 -0
  191. package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.js +12 -0
  192. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +70 -2
  193. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  194. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +266 -5
  195. package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +11 -0
  196. package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts.map +1 -1
  197. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +57 -1
  198. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
  199. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +4 -2
  200. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +1 -1
  201. package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
  202. package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts +10 -2
  203. package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts.map +1 -1
  204. package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.js +52 -12
  205. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +5 -5
  206. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  207. package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts.map +1 -1
  208. package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.js +29 -0
  209. package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts +42 -0
  210. package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts.map +1 -0
  211. package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.js +151 -0
  212. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts +36 -0
  213. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts.map +1 -1
  214. package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.js +11 -0
  215. package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.d.ts.map +1 -1
  216. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  217. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  218. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +41 -0
  219. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts.map +1 -1
  220. package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.js +18 -0
  221. package/node_modules/@oscharko-dev/keiko-contracts/package.json +9 -1
  222. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  223. package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts +5 -0
  224. package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts.map +1 -1
  225. package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.js +23 -3
  226. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  227. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  228. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  229. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  230. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  231. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  232. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  233. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  234. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  235. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.d.ts.map +1 -1
  236. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.js +3 -0
  237. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts +1 -1
  238. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts.map +1 -1
  239. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.js +2 -33
  240. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/html-parser.js +5 -4
  241. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts +2 -0
  242. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts.map +1 -1
  243. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.js +2 -0
  244. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts +2 -1
  245. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts.map +1 -1
  246. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.js +1 -0
  247. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts +9 -2
  248. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts.map +1 -1
  249. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.js +18 -10
  250. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  251. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  252. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  253. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  254. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  255. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  256. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  257. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  258. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  259. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  260. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  261. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  262. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  263. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  264. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  265. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  266. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  267. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  268. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
  269. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +103 -1
  270. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts +2 -0
  271. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts.map +1 -1
  272. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.js +2 -0
  273. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts +8 -0
  274. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts.map +1 -0
  275. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.js +44 -0
  276. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +89 -1
  277. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
  278. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +617 -129
  279. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts +4 -0
  280. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
  281. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +28 -3
  282. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +3 -2
  283. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
  284. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +2 -2
  285. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +23 -0
  286. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
  287. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +50 -5
  288. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts +10 -0
  289. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts.map +1 -1
  290. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.js +54 -2
  291. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
  292. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +2 -0
  293. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +11 -3
  294. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  295. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +262 -58
  296. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +1 -0
  297. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
  298. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +1 -0
  299. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +143 -3
  300. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
  301. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +361 -39
  302. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts +9 -1
  303. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
  304. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +62 -16
  305. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +15 -0
  306. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts.map +1 -1
  307. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  308. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  309. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  310. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  311. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts +2 -2
  312. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
  313. package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +30 -15
  314. package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +1 -1
  315. package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
  316. package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
  317. package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +24 -3
  318. package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts +3 -0
  319. package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts.map +1 -1
  320. package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.js +31 -6
  321. package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts +11 -0
  322. package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts.map +1 -0
  323. package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.js +141 -0
  324. package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.d.ts.map +1 -1
  325. package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.js +2 -0
  326. package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts +8 -0
  327. package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
  328. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  329. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  330. package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts +10 -1
  331. package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts.map +1 -1
  332. package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.js +25 -2
  333. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +1 -1
  334. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
  335. package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -1
  336. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts +14 -0
  337. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts.map +1 -1
  338. package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.js +183 -25
  339. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +9 -0
  340. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
  341. package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +16 -1
  342. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  343. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  344. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  345. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts +9 -2
  346. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -1
  347. package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +47 -2
  348. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  349. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +2 -0
  350. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  351. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +4 -0
  352. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
  353. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +274 -7
  354. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts +11 -1
  355. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts.map +1 -1
  356. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.js +21 -7
  357. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +50 -2
  358. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
  359. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +25 -0
  360. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts +14 -7
  361. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts.map +1 -1
  362. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.js +33 -26
  363. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +46 -0
  364. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
  365. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +33 -0
  366. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts +51 -3
  367. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts.map +1 -1
  368. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.js +97 -5
  369. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +8 -2
  370. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
  371. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +265 -29
  372. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +37 -1
  373. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
  374. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +416 -34
  375. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts +5 -3
  376. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts.map +1 -1
  377. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.js +14 -7
  378. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +21 -0
  379. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts.map +1 -1
  380. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts +79 -0
  381. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts.map +1 -0
  382. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.js +305 -0
  383. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts +100 -0
  384. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts.map +1 -0
  385. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.js +363 -0
  386. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
  387. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +13 -0
  388. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts +71 -0
  389. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts.map +1 -0
  390. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.js +294 -0
  391. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts +47 -0
  392. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts.map +1 -0
  393. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.js +65 -0
  394. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts +7 -0
  395. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts.map +1 -0
  396. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.js +79 -0
  397. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +18 -0
  398. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
  399. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +201 -42
  400. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts +6 -1
  401. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
  402. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +733 -17
  403. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +5 -1
  404. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
  405. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +262 -57
  406. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +185 -2
  407. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
  408. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.js +57 -1
  409. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts +3 -1
  410. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts.map +1 -1
  411. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.js +14 -2
  412. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts +4 -0
  413. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts.map +1 -1
  414. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.js +50 -1
  415. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +21 -3
  416. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
  417. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +143 -8
  418. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts +63 -1
  419. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts.map +1 -1
  420. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +710 -170
  421. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts +108 -0
  422. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts.map +1 -0
  423. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.js +477 -0
  424. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts +2 -4
  425. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts.map +1 -1
  426. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +53 -46
  427. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +4 -1
  428. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts.map +1 -1
  429. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.js +51 -52
  430. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts +48 -0
  431. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts.map +1 -0
  432. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.js +179 -0
  433. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts +60 -0
  434. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts.map +1 -0
  435. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.js +61 -0
  436. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts +7 -7
  437. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts.map +1 -1
  438. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.js +48 -15
  439. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts +3 -0
  440. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts.map +1 -1
  441. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.js +14 -0
  442. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts.map +1 -1
  443. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.js +11 -4
  444. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts +2 -0
  445. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map +1 -1
  446. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js +28 -14
  447. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts +3 -0
  448. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts.map +1 -1
  449. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.js +48 -20
  450. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +5 -4
  451. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
  452. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +11 -12
  453. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts +10 -0
  454. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts.map +1 -0
  455. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.js +27 -0
  456. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts +6 -3
  457. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts.map +1 -1
  458. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.js +15 -15
  459. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +17 -3
  460. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
  461. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +198 -43
  462. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +97 -5
  463. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
  464. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +1334 -103
  465. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts +79 -0
  466. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts.map +1 -0
  467. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.js +176 -0
  468. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +177 -25
  469. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
  470. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +131 -38
  471. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +18 -0
  472. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
  473. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +298 -32
  474. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +6 -0
  475. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
  476. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +14 -3
  477. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +33 -0
  478. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -0
  479. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +213 -0
  480. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts +1 -1
  481. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
  482. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +2 -8
  483. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.js +15 -5
  484. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +5 -0
  485. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +25 -3
  486. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
  487. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +227 -40
  488. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +20 -1
  489. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
  490. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +217 -12
  491. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +3 -1
  492. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
  493. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +20 -5
  494. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +8 -1
  495. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
  496. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.d.ts.map +1 -1
  497. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.js +2 -1
  498. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts.map +1 -1
  499. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.js +2 -1
  500. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +262 -60
  501. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +18 -0
  502. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
  503. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +43 -6
  504. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +38 -0
  505. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts.map +1 -1
  506. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.js +115 -16
  507. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts +20 -0
  508. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts.map +1 -0
  509. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.js +48 -0
  510. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts +5 -0
  511. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts.map +1 -1
  512. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.js +5 -1
  513. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts +100 -4
  514. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts.map +1 -1
  515. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.js +435 -25
  516. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts +61 -0
  517. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts.map +1 -0
  518. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.js +123 -0
  519. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts +7 -0
  520. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts.map +1 -1
  521. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.js +26 -3
  522. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.d.ts.map +1 -1
  523. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.js +10 -0
  524. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts +2 -0
  525. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts.map +1 -1
  526. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.js +17 -2
  527. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts +69 -2
  528. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts.map +1 -1
  529. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.js +266 -7
  530. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +14 -3
  531. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
  532. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +761 -122
  533. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts +2 -2
  534. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts.map +1 -1
  535. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +139 -0
  536. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts +2 -0
  537. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts.map +1 -1
  538. package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.js +176 -19
  539. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts.map +1 -1
  540. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.js +72 -13
  541. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts +3 -0
  542. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts.map +1 -0
  543. package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.js +48 -0
  544. package/node_modules/@oscharko-dev/keiko-server/dist/correlation.d.ts.map +1 -1
  545. package/node_modules/@oscharko-dev/keiko-server/dist/correlation.js +8 -5
  546. package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.d.ts.map +1 -1
  547. package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.js +5 -0
  548. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +39 -8
  549. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  550. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +234 -77
  551. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -1
  552. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  553. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +6 -0
  554. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +8 -0
  555. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts.map +1 -1
  556. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.js +16 -0
  557. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts +5 -1
  558. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts.map +1 -1
  559. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.js +60 -12
  560. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts +13 -2
  561. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
  562. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +131 -18
  563. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts +5 -0
  564. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts.map +1 -0
  565. package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.js +44 -0
  566. package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts +26 -0
  567. package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts.map +1 -0
  568. package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.js +87 -0
  569. package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.d.ts.map +1 -1
  570. package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.js +0 -3
  571. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +4 -1
  572. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
  573. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +62 -5
  574. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts +128 -0
  575. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts.map +1 -0
  576. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.js +213 -0
  577. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
  578. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +68 -24
  579. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts +13 -0
  580. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts.map +1 -0
  581. package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.js +121 -0
  582. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +10 -10
  583. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  584. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +280 -88
  585. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts +1 -1
  586. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts.map +1 -1
  587. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.js +11 -5
  588. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts +15 -2
  589. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  590. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +445 -45
  591. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts +31 -0
  592. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts.map +1 -0
  593. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.js +74 -0
  594. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts +7 -0
  595. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts.map +1 -0
  596. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.js +282 -0
  597. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
  598. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +7 -3
  599. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts.map +1 -1
  600. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.js +7 -3
  601. package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts +5 -0
  602. package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts.map +1 -1
  603. package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.js +46 -0
  604. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts +19 -0
  605. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts.map +1 -0
  606. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.js +177 -0
  607. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts +7 -0
  608. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts.map +1 -0
  609. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.js +69 -0
  610. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts +11 -0
  611. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts.map +1 -0
  612. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.js +53 -0
  613. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts +25 -0
  614. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts.map +1 -0
  615. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.js +120 -0
  616. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts +56 -2
  617. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts.map +1 -1
  618. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.js +194 -0
  619. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts +16 -0
  620. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts.map +1 -0
  621. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.js +133 -0
  622. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts +16 -0
  623. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts.map +1 -0
  624. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.js +103 -0
  625. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts +7 -0
  626. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts.map +1 -0
  627. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.js +79 -0
  628. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts +22 -4
  629. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -1
  630. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +112 -11
  631. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts +4 -0
  632. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts.map +1 -0
  633. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.js +117 -0
  634. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts.map +1 -1
  635. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.js +4 -0
  636. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts +10 -0
  637. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts.map +1 -0
  638. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.js +41 -0
  639. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts +6 -0
  640. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -1
  641. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +54 -5
  642. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts +42 -0
  643. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts.map +1 -0
  644. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.js +91 -0
  645. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts +6 -2
  646. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts.map +1 -1
  647. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +61 -8
  648. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts +28 -1
  649. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts.map +1 -1
  650. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.js +140 -0
  651. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts +9 -1
  652. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts.map +1 -1
  653. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.js +40 -3
  654. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts +44 -0
  655. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts.map +1 -0
  656. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.js +385 -0
  657. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts +5 -2
  658. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts.map +1 -1
  659. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.js +91 -39
  660. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +43 -4
  661. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts.map +1 -1
  662. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.js +247 -34
  663. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts +27 -0
  664. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts.map +1 -0
  665. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.js +198 -0
  666. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts +16 -2
  667. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts.map +1 -1
  668. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.js +69 -1
  669. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +106 -7
  670. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
  671. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +2618 -376
  672. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts +27 -0
  673. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts.map +1 -0
  674. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.js +74 -0
  675. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts +25 -0
  676. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts.map +1 -0
  677. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.js +93 -0
  678. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts +1 -0
  679. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts.map +1 -1
  680. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts +7 -0
  681. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts.map +1 -1
  682. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.js +26 -13
  683. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +23 -9
  684. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
  685. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +403 -90
  686. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +31 -8
  687. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
  688. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +485 -99
  689. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +24 -8
  690. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
  691. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +395 -90
  692. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts +32 -2
  693. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts.map +1 -1
  694. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.js +370 -48
  695. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +2 -0
  696. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
  697. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +22 -1
  698. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts +2 -0
  699. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts.map +1 -1
  700. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.js +5 -1
  701. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts +1 -1
  702. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts.map +1 -1
  703. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.js +25 -7
  704. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts +19 -0
  705. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts.map +1 -0
  706. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.js +55 -0
  707. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts +31 -0
  708. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts.map +1 -0
  709. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.js +55 -0
  710. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts +3 -0
  711. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts.map +1 -0
  712. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.js +90 -0
  713. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts +44 -2
  714. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts.map +1 -1
  715. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.js +1053 -83
  716. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts +34 -0
  717. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts.map +1 -0
  718. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.js +190 -0
  719. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts +5 -0
  720. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts.map +1 -0
  721. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.js +19 -0
  722. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
  723. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +4 -0
  724. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts +1 -1
  725. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
  726. package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +3 -1
  727. package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
  728. package/node_modules/@oscharko-dev/keiko-server/dist/server.js +7 -0
  729. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
  730. package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +3 -1
  731. package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +2 -2
  732. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
  733. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
  734. package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +159 -1
  735. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts.map +1 -1
  736. package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.js +4 -7
  737. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.js +3 -3
  738. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.d.ts.map +1 -1
  739. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.js +2 -2
  740. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts +20 -4
  741. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
  742. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +96 -20
  743. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts +2 -0
  744. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts.map +1 -1
  745. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts +2 -2
  746. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts.map +1 -1
  747. package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.js +47 -3
  748. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts +3 -0
  749. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts.map +1 -1
  750. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.js +23 -7
  751. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +3 -0
  752. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -1
  753. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +12 -0
  754. package/node_modules/@oscharko-dev/keiko-server/dist/workspace-index-provider.js +4 -4
  755. package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
  756. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts +1 -1
  757. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts.map +1 -1
  758. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.js +1 -1
  759. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +9 -25
  760. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
  761. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +207 -112
  762. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.d.ts.map +1 -1
  763. package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.js +15 -2
  764. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  765. package/node_modules/@oscharko-dev/keiko-tools/dist/exec.d.ts.map +1 -1
  766. package/node_modules/@oscharko-dev/keiko-tools/dist/exec.js +44 -5
  767. package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts +1 -1
  768. package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts.map +1 -1
  769. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.d.ts.map +1 -1
  770. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.js +142 -49
  771. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts.map +1 -1
  772. package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.js +14 -3
  773. package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts +15 -0
  774. package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts.map +1 -1
  775. package/node_modules/@oscharko-dev/keiko-tools/dist/patch.js +24 -9
  776. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  777. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  778. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  779. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +16 -4
  780. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
  781. package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +198 -25
  782. package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts +1 -1
  783. package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts.map +1 -1
  784. package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.js +34 -17
  785. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +4 -1
  786. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
  787. package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +32 -2
  788. package/node_modules/@oscharko-dev/keiko-verification/dist/plan.d.ts.map +1 -1
  789. package/node_modules/@oscharko-dev/keiko-verification/dist/plan.js +25 -16
  790. package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts +7 -0
  791. package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts.map +1 -0
  792. package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.js +37 -0
  793. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  794. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts +10 -1
  795. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts.map +1 -1
  796. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.js +93 -15
  797. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts +1 -1
  798. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts.map +1 -1
  799. package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.js +1 -1
  800. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
  801. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +16 -16
  802. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts +3 -0
  803. package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts.map +1 -1
  804. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts +4 -1
  805. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
  806. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +296 -15
  807. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.d.ts.map +1 -1
  808. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +3 -1
  809. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
  810. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +1 -0
  811. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts +7 -2
  812. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
  813. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +85 -5
  814. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +11 -0
  815. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
  816. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +507 -32
  817. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts +19 -0
  818. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts.map +1 -0
  819. package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.js +159 -0
  820. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +1 -0
  821. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts.map +1 -1
  822. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.js +13 -16
  823. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts +2 -2
  824. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts.map +1 -1
  825. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.js +2 -2
  826. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.d.ts.map +1 -1
  827. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.js +21 -4
  828. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts +6 -0
  829. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts.map +1 -1
  830. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.js +44 -29
  831. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts +5 -2
  832. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts.map +1 -1
  833. package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.js +141 -45
  834. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  835. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
  836. package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +91 -15
  837. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts +22 -1
  838. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts.map +1 -1
  839. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +661 -106
  840. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +3 -1
  841. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts.map +1 -1
  842. package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.js +3 -1
  843. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +24 -4
  844. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
  845. package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +89 -26
  846. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.d.ts.map +1 -1
  847. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.js +31 -9
  848. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts +3 -2
  849. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts.map +1 -1
  850. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.js +35 -5
  851. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts +7 -1
  852. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts.map +1 -1
  853. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.js +40 -7
  854. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts +1 -1
  855. package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts.map +1 -1
  856. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.d.ts.map +1 -1
  857. package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +11 -5
  858. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +8 -3
  859. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
  860. package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +7 -2
  861. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +26 -5
  862. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
  863. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +418 -35
  864. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts +5 -0
  865. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts.map +1 -0
  866. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.js +21 -0
  867. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +2 -1
  868. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
  869. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +5 -3
  870. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +10 -0
  871. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
  872. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +32 -4
  873. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +5 -1
  874. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
  875. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +41 -22
  876. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts +14 -0
  877. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -1
  878. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +97 -0
  879. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts +11 -0
  880. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts.map +1 -1
  881. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.js +154 -18
  882. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +6 -5
  883. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
  884. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +88 -24
  885. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts.map +1 -1
  886. package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.js +21 -14
  887. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +4 -1
  888. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
  889. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +205 -14
  890. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts +1 -0
  891. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts.map +1 -1
  892. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.js +17 -13
  893. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +1 -0
  894. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts.map +1 -1
  895. package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.js +1 -1
  896. package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.d.ts.map +1 -1
  897. package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.js +13 -7
  898. package/node_modules/@oscharko-dev/keiko-workspace/dist/testSourcePairing.js +1 -1
  899. package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts +2 -2
  900. package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts.map +1 -1
  901. package/node_modules/@oscharko-dev/keiko-workspace/dist/types.js +1 -1
  902. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  903. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  904. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +13 -5
  905. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
  906. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +112 -42
  907. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts +11 -0
  908. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts.map +1 -0
  909. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.js +71 -0
  910. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts +47 -0
  911. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts.map +1 -0
  912. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.js +231 -0
  913. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts +8 -0
  914. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts.map +1 -0
  915. package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.js +178 -0
  916. package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts +2 -0
  917. package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts.map +1 -0
  918. package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.js +34 -0
  919. package/node_modules/@oscharko-dev/keiko-workspace/package.json +4 -3
  920. package/package.json +28 -27
  921. package/release-impact.catalog.json +100 -0
  922. package/vendor/oscharko-dev-keiko-activity-log-1.2.1.tgz +0 -0
  923. package/vendor/oscharko-dev-keiko-cli-1.2.1.tgz +0 -0
  924. package/vendor/{oscharko-dev-keiko-connectors-1.2.0.tgz → oscharko-dev-keiko-connectors-1.2.1.tgz} +0 -0
  925. package/vendor/oscharko-dev-keiko-contracts-1.2.1.tgz +0 -0
  926. package/vendor/{oscharko-dev-keiko-evaluations-1.2.0.tgz → oscharko-dev-keiko-evaluations-1.2.1.tgz} +0 -0
  927. package/vendor/oscharko-dev-keiko-evidence-1.2.1.tgz +0 -0
  928. package/vendor/{oscharko-dev-keiko-git-1.2.0.tgz → oscharko-dev-keiko-git-1.2.1.tgz} +0 -0
  929. package/vendor/{oscharko-dev-keiko-harness-1.2.0.tgz → oscharko-dev-keiko-harness-1.2.1.tgz} +0 -0
  930. package/vendor/oscharko-dev-keiko-local-knowledge-1.2.1.tgz +0 -0
  931. package/vendor/{oscharko-dev-keiko-memory-capture-1.2.0.tgz → oscharko-dev-keiko-memory-capture-1.2.1.tgz} +0 -0
  932. package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.0.tgz → oscharko-dev-keiko-memory-consolidation-1.2.1.tgz} +0 -0
  933. package/vendor/{oscharko-dev-keiko-memory-governance-1.2.0.tgz → oscharko-dev-keiko-memory-governance-1.2.1.tgz} +0 -0
  934. package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.0.tgz → oscharko-dev-keiko-memory-retrieval-1.2.1.tgz} +0 -0
  935. package/vendor/{oscharko-dev-keiko-memory-vault-1.2.0.tgz → oscharko-dev-keiko-memory-vault-1.2.1.tgz} +0 -0
  936. package/vendor/oscharko-dev-keiko-model-gateway-1.2.1.tgz +0 -0
  937. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.0.tgz → oscharko-dev-keiko-quality-intelligence-1.2.1.tgz} +0 -0
  938. package/vendor/oscharko-dev-keiko-sandbox-1.2.1.tgz +0 -0
  939. package/vendor/{oscharko-dev-keiko-sdk-1.2.0.tgz → oscharko-dev-keiko-sdk-1.2.1.tgz} +0 -0
  940. package/vendor/oscharko-dev-keiko-security-1.2.1.tgz +0 -0
  941. package/vendor/oscharko-dev-keiko-server-1.2.1.tgz +0 -0
  942. package/vendor/oscharko-dev-keiko-tool-catalog-1.2.1.tgz +0 -0
  943. package/vendor/oscharko-dev-keiko-tools-1.2.1.tgz +0 -0
  944. package/vendor/oscharko-dev-keiko-verification-1.2.1.tgz +0 -0
  945. package/vendor/oscharko-dev-keiko-workflows-1.2.1.tgz +0 -0
  946. package/vendor/oscharko-dev-keiko-workspace-1.2.1.tgz +0 -0
  947. package/dist/ui/static/_next/static/chunks/07skh7tlpfo1v.js +0 -1
  948. package/dist/ui/static/_next/static/chunks/09i_8713x46yr.js +0 -1
  949. package/dist/ui/static/_next/static/chunks/0a6ri2ug5xf10.js +0 -1
  950. package/dist/ui/static/_next/static/chunks/0bbrrvuzilpy5.js +0 -1
  951. package/dist/ui/static/_next/static/chunks/0bg7uh6tq8-dx.js +0 -1
  952. package/dist/ui/static/_next/static/chunks/0cwy6mtvshbuo.js +0 -1
  953. package/dist/ui/static/_next/static/chunks/0fpbvpzg-omn0.js +0 -1
  954. package/dist/ui/static/_next/static/chunks/0fz9qig_5p73f.js +0 -1
  955. package/dist/ui/static/_next/static/chunks/0hvxxuef1gw9p.js +0 -1
  956. package/dist/ui/static/_next/static/chunks/0ktvc8fs3spkb.js +0 -1
  957. package/dist/ui/static/_next/static/chunks/0kvy_ru-kodgv.js +0 -1
  958. package/dist/ui/static/_next/static/chunks/0parm4c86umwk.js +0 -1
  959. package/dist/ui/static/_next/static/chunks/0q_08tk2d3m2n.js +0 -1
  960. package/dist/ui/static/_next/static/chunks/0r2lwkgws6jm8.js +0 -1
  961. package/dist/ui/static/_next/static/chunks/0t73kckx3olud.js +0 -1
  962. package/dist/ui/static/_next/static/chunks/0u7vyqk91gjb8.js +0 -1
  963. package/dist/ui/static/_next/static/chunks/0weojtwxo6qw7.js +0 -1
  964. package/dist/ui/static/_next/static/chunks/0x-r45yl06rdn.js +0 -1
  965. package/dist/ui/static/_next/static/chunks/0zlw46qz0crxg.css +0 -1
  966. package/dist/ui/static/_next/static/chunks/0zuaq_9l5pma_.js +0 -1
  967. package/dist/ui/static/_next/static/chunks/10kb8j7vggfwk.js +0 -1
  968. package/dist/ui/static/_next/static/chunks/14qdwomthzucj.js +0 -1
  969. package/dist/ui/static/_next/static/chunks/1a7ko-_7t4wjo.js +0 -1
  970. package/dist/ui/static/_next/static/chunks/1czgn62g6km38.js +0 -3
  971. package/dist/ui/static/_next/static/chunks/1juiifi_xnx68.js +0 -1
  972. package/dist/ui/static/_next/static/chunks/1wg1s3jm779ro.js +0 -3
  973. package/dist/ui/static/_next/static/chunks/224bbe_3ksnlw.js +0 -1
  974. package/dist/ui/static/_next/static/chunks/263_uck8el32f.js +0 -1
  975. package/dist/ui/static/_next/static/chunks/26gmn1z4oegqh.js +0 -1
  976. package/dist/ui/static/_next/static/chunks/28ylcw-leje_k.js +0 -1
  977. package/dist/ui/static/_next/static/chunks/2937s9os9u2tn.js +0 -1
  978. package/dist/ui/static/_next/static/chunks/29rlw6dih8owf.js +0 -1
  979. package/dist/ui/static/_next/static/chunks/2hq0zlnvfqol9.js +0 -1
  980. package/dist/ui/static/_next/static/chunks/2o584howfzzak.js +0 -3
  981. package/dist/ui/static/_next/static/chunks/2p66e_a0j23r8.js +0 -1
  982. package/dist/ui/static/_next/static/chunks/2r4vn_6anv2cw.js +0 -5
  983. package/dist/ui/static/_next/static/chunks/2ribv7pn1hr-l.js +0 -1
  984. package/dist/ui/static/_next/static/chunks/2tb2nt2wvu643.js +0 -1
  985. package/dist/ui/static/_next/static/chunks/2yot6vshhc19p.css +0 -1
  986. package/dist/ui/static/_next/static/chunks/30j8jo5v60ga1.js +0 -2
  987. package/dist/ui/static/_next/static/chunks/30q9b_aw8driv.js +0 -1
  988. package/dist/ui/static/_next/static/chunks/387k5c-bf1b2e.js +0 -1
  989. package/dist/ui/static/_next/static/chunks/3_alxp77ewgk_.js +0 -1
  990. package/dist/ui/static/_next/static/chunks/3_ycy0h8pq58a.js +0 -1
  991. package/dist/ui/static/_next/static/chunks/3ho1f5n8lir4r.js +0 -1
  992. package/dist/ui/static/_next/static/chunks/3kgc_j74tblcn.js +0 -1
  993. package/dist/ui/static/_next/static/chunks/3mxpjroefk8ou.js +0 -1
  994. package/dist/ui/static/_next/static/chunks/3q5jidle0lb3-.js +0 -1
  995. package/dist/ui/static/_next/static/chunks/3ua7si017r4dg.js +0 -1
  996. package/dist/ui/static/_next/static/chunks/3v2iluxqnsug9.css +0 -15
  997. package/dist/ui/static/_next/static/chunks/3z5f2s7yd35cu.js +0 -1
  998. package/dist/ui/static/_next/static/chunks/40co1uetczqcs.js +0 -1
  999. package/vendor/oscharko-dev-keiko-activity-log-1.2.0.tgz +0 -0
  1000. package/vendor/oscharko-dev-keiko-cli-1.2.0.tgz +0 -0
  1001. package/vendor/oscharko-dev-keiko-contracts-1.2.0.tgz +0 -0
  1002. package/vendor/oscharko-dev-keiko-evidence-1.2.0.tgz +0 -0
  1003. package/vendor/oscharko-dev-keiko-local-knowledge-1.2.0.tgz +0 -0
  1004. package/vendor/oscharko-dev-keiko-model-gateway-1.2.0.tgz +0 -0
  1005. package/vendor/oscharko-dev-keiko-sandbox-1.2.0.tgz +0 -0
  1006. package/vendor/oscharko-dev-keiko-security-1.2.0.tgz +0 -0
  1007. package/vendor/oscharko-dev-keiko-server-1.2.0.tgz +0 -0
  1008. package/vendor/oscharko-dev-keiko-tool-catalog-1.2.0.tgz +0 -0
  1009. package/vendor/oscharko-dev-keiko-tools-1.2.0.tgz +0 -0
  1010. package/vendor/oscharko-dev-keiko-verification-1.2.0.tgz +0 -0
  1011. package/vendor/oscharko-dev-keiko-workflows-1.2.0.tgz +0 -0
  1012. package/vendor/oscharko-dev-keiko-workspace-1.2.0.tgz +0 -0
  1013. /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → FS1LLJ_p3joZhfRkXBRhf}/_buildManifest.js +0 -0
  1014. /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → FS1LLJ_p3joZhfRkXBRhf}/_clientMiddlewareManifest.js +0 -0
  1015. /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → FS1LLJ_p3joZhfRkXBRhf}/_ssgManifest.js +0 -0
@@ -1,9 +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";
1
8
  import { caughtGroundedPackValidation, inspectGroundedPack, recordGroundedPackValidation, GROUNDED_PACK_VALIDATION_MESSAGE, } from "./grounded-pack-validation.js";
2
9
  import { deriveChatGroundingScopeIdentity, parseExpectedGroundingScopeIdentity, } from "./store/chat-grounding-scope-identity.js";
3
10
  import { withAdoptedContextWindowRetry } from "./gateway-context-window.js";
4
11
  import { sentPromptContext } from "./grounded-prompt-context.js";
5
12
  import { compactCurrentChatPrompt } from "./chat-prompt-compaction.js";
6
- import { logChatResponseMessage } from "./chat-activity.js";
7
13
  import { groundedConversationContinuity, } from "./grounded-conversation-continuity.js";
8
14
  import { persistChatCompactionEvidence } from "./chat-compaction-evidence.js";
9
15
  import { countGatewayPromptTokens } from "@oscharko-dev/keiko-model-gateway/internal/prompt-token-accounting";
@@ -14,30 +20,32 @@ import { countGatewayPromptTokens } from "@oscharko-dev/keiko-model-gateway/inte
14
20
  // inputs (chatId + content) and enforces that the chat carries a connected scope.
15
21
  import { createHash, randomUUID } from "node:crypto";
16
22
  import { basename } from "node:path";
17
- import { CancelledError, ContextOverflowError, GatewayError, ProviderError, findCapability, findConfiguredCapability, resolveCostClass, } from "@oscharko-dev/keiko-model-gateway";
18
- import { DEFAULT_LEXICAL_MATCH_LIMIT } from "@oscharko-dev/keiko-workflows";
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";
19
25
  import { persistConnectedContextEvidence, } from "@oscharko-dev/keiko-evidence";
20
26
  import { redact } from "@oscharko-dev/keiko-security";
21
- import { isDenied, PathDeniedError, RepoSearchInvalidQueryError, RepoSearchInvalidRangeError, RepoSearchUnsupportedFileError, WorkspaceNotFoundError, WorkspaceError, } from "@oscharko-dev/keiko-workspace";
22
27
  import { nodeWorkspaceFs } from "@oscharko-dev/keiko-workspace/internal/fs";
23
28
  import { connectedContextOmittedCount, connectedContextOmittedCounts, CONNECTED_CONTEXT_SCHEMA_VERSION, DEFAULT_EXPLORATION_BUDGET, isValidScopePath, } from "@oscharko-dev/keiko-contracts/connected-context";
24
29
  import { buildGroundedAnswerContextPackSummary, MAX_DESKTOP_CHAT_INPUT_BYTES, MAX_DESKTOP_CHAT_INPUT_CHARS, } from "@oscharko-dev/keiko-contracts/bff-wire";
25
30
  import { deriveContextProfileFromCapability, DEFAULT_CONTEXT_PROFILE, maxUtf8BytesForTokenBudget, } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
26
31
  import { stripUnsafeFormatChars } from "@oscharko-dev/keiko-contracts/text-safety";
27
32
  import { errorBody } from "./routes.js";
28
- import { currentContextProfileForModel, currentGatewayConfig, currentGroundingLimits, currentRedactionSecrets, } from "./deps.js";
33
+ import { currentContextProfileForModel, currentGatewayConfig, currentGroundingLimits, currentOwnAssessmentPolicy, currentRedactionSecrets, } from "./deps.js";
29
34
  import { ClarificationNeededError, clarificationUserMessage, runGroundedExploration, } from "./grounded-orchestrator.js";
30
35
  import { createEntailmentStage } from "./grounded-entailment-stage.js";
36
+ import { createGroundedSynthesisCallBudget, createGroundedSynthesisAttemptAdmission, } from "./grounded-answer.js";
31
37
  import { microIndexForGroundedScope } from "./grounded-context-index.js";
32
38
  import { deriveGroundedContextAssembly } from "./grounded-context-diagnostics.js";
33
39
  import { configuredContextPackRerankerFor } from "./grounded-context-pack-reranker.js";
34
- 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";
35
42
  import { handleLocalKnowledgeGroundedAsk } from "./local-knowledge-grounded-qa.js";
36
43
  import { buildConnectedScopes, createMultiSourceAnswerer, defaultRetriever, groundedSourceScopeFingerprint, runMultiSourceAsk, } from "./grounded-qa-multi-source.js";
37
44
  import { buildLocalKnowledgeScopes, runHybridGroundedAsk, } from "./grounded-qa-hybrid.js";
38
- import { GROUNDED_SYSTEM_PROMPT } from "./grounded-prompt.js";
45
+ import { groundedSystemPrompt } from "./grounded-prompt.js";
46
+ import { singleSentEvidencePack, withSentEvidenceInventory } from "./grounded-answer-evidence.js";
39
47
  import { isExpectedWorkspaceRootFailure, recordWorkspaceRootDenial, recordWorkspaceRootDenied, recordWorkspaceRootUnavailable, resolveRecordedWorkspaceRoot, workspaceRootFailureStatus, } from "./workspace-root-denial-log.js";
40
- import { uncitedMemoryContextMarker, } from "./grounded-faithfulness.js";
48
+ import { uncitedMemoryContextMarker, connectedSearchNoEvidenceAnswer, } from "./grounded-faithfulness.js";
41
49
  import { commitGroundedTurn, discardGroundedTurn, rememberGroundedTurn, stageGroundedTurn, } from "./grounded-turn-registry.js";
42
50
  import { assertUsableAssistantContent } from "./assistant-response.js";
43
51
  import { buildCanonicalTurnMemoryResult, buildMemoryResult, chatClosedResult, parseClientTurnId, parseMemoryRequest, logChatRejection, runPostCommitCanonicalTurnMemorySideEffects, } from "./chat-handlers.js";
@@ -117,6 +125,8 @@ export function mappedContextPackValidationError(error, deps, correlationId) {
117
125
  export function gatewayErrorStatus(error) {
118
126
  if (error.code === "GATEWAY_AUTHENTICATION")
119
127
  return 401;
128
+ if (error.code === "GATEWAY_ATTEMPT_ADMISSION_DENIED")
129
+ return 403;
120
130
  if (error.retryable)
121
131
  return 503;
122
132
  return 502;
@@ -178,6 +188,31 @@ export function mappedWorkspaceError(error, context = {}) {
178
188
  }
179
189
  return undefined;
180
190
  }
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
+ };
215
+ }
181
216
  function parseJsonObject(raw) {
182
217
  let parsed;
183
218
  try {
@@ -463,10 +498,12 @@ function contextProfileForGroundedModel(deps, modelId) {
463
498
  }
464
499
  export function modelWindowAwareBudget(deps, modelId) {
465
500
  const profile = contextProfileForGroundedModel(deps, modelId);
501
+ const followUpPassesMax = connectedFollowUpConfiguration(deps.env.KEIKO_CONNECTED_FOLLOW_UP_PASSES_MAX).passesMax;
466
502
  if (profile === undefined)
467
- return DEFAULT_EXPLORATION_BUDGET;
503
+ return { ...DEFAULT_EXPLORATION_BUDGET, followUpPassesMax };
468
504
  return {
469
505
  ...DEFAULT_EXPLORATION_BUDGET,
506
+ followUpPassesMax,
470
507
  modelInputTokensMax: profile.effectiveInputBudget,
471
508
  modelOutputTokensMax: profile.reservedOutputTokens,
472
509
  };
@@ -487,7 +524,7 @@ function clampUtf8Bytes(value, maxBytes) {
487
524
  high = mid - 1;
488
525
  }
489
526
  }
490
- return value.slice(0, low);
527
+ return value.slice(0, (value.codePointAt(low - 1) ?? 0) > 0xffff ? low - 1 : low);
491
528
  }
492
529
  function positiveInteger(value) {
493
530
  const n = Math.floor(value);
@@ -509,6 +546,21 @@ function withPromptModelInputBudget(pack, modelInputTokensMax) {
509
546
  return pack;
510
547
  return { ...pack, budget: { ...pack.budget, modelInputTokensMax: effective } };
511
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
+ }
512
564
  function packExcerptCount(pack) {
513
565
  return pack.files.reduce((count, file) => count + file.excerpts.length, 0);
514
566
  }
@@ -532,7 +584,7 @@ export function withPromptExcerptByteLimit(pack, maxExcerptBytes) {
532
584
  const excerptCount = packExcerptCount(pack);
533
585
  return withPromptExcerptTotalByteBudget(pack, Math.max(0, maxExcerptBytes) * excerptCount);
534
586
  }
535
- function rankedPromptExcerpts(pack) {
587
+ function rankedPromptExcerpts(pack, requiredEvidencePaths = [], requiredEvidenceAtomIds = []) {
536
588
  const ranked = [];
537
589
  for (let fileIndex = 0; fileIndex < pack.files.length; fileIndex += 1) {
538
590
  const file = pack.files[fileIndex];
@@ -545,33 +597,117 @@ function rankedPromptExcerpts(pack) {
545
597
  ranked.push({ fileIndex, excerptIndex, excerpt });
546
598
  }
547
599
  }
548
- 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) ||
549
605
  promptExcerptProvenancePriority(b.excerpt) - promptExcerptProvenancePriority(a.excerpt) ||
550
606
  a.fileIndex - b.fileIndex ||
551
607
  a.excerptIndex - b.excerptIndex);
552
608
  return ranked;
553
609
  }
554
- function excerptWithContent(excerpt, content) {
555
- 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;
653
+ }
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");
556
690
  }
557
- function withPromptExcerptTotalByteBudget(pack, maxExcerptBytes) {
691
+ function trimPromptExcerptTotalByteBudget(pack, maxExcerptBytes, requiredEvidencePaths = [], requiredEvidenceAtomIds) {
558
692
  if (maxExcerptBytes <= 0)
559
693
  return { ...pack, files: [] };
560
694
  const byFile = new Map();
695
+ const anchors = fittingQueryAnchors(pack.query);
561
696
  let remaining = Math.floor(maxExcerptBytes);
562
- for (const ranked of rankedPromptExcerpts(pack)) {
697
+ for (const ranked of rankedPromptExcerpts(pack, requiredEvidencePaths, requiredEvidenceAtomIds)) {
563
698
  if (remaining <= 0)
564
699
  break;
565
700
  const fullBytes = Buffer.byteLength(ranked.excerpt.content, "utf8");
566
701
  if (fullBytes === 0)
567
702
  continue;
568
- const content = fullBytes <= remaining
569
- ? ranked.excerpt.content
570
- : 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;
571
707
  if (content.length === 0)
572
708
  break;
573
709
  const bucket = byFile.get(ranked.fileIndex) ?? [];
574
- bucket.push(excerptWithContent(ranked.excerpt, content));
710
+ bucket.push(excerptWithContent(ranked.excerpt, content, pack.scope.scopeId, lineOffset));
575
711
  byFile.set(ranked.fileIndex, bucket);
576
712
  remaining -= Buffer.byteLength(content, "utf8");
577
713
  if (fullBytes > Buffer.byteLength(content, "utf8"))
@@ -598,8 +734,19 @@ function withPromptExcerptTotalByteBudget(pack, maxExcerptBytes) {
598
734
  files,
599
735
  };
600
736
  }
601
- export function withPromptExcerptBudget(pack, totalExcerptBytes) {
602
- return withPromptExcerptTotalByteBudget(pack, totalExcerptBytes);
737
+ export function withPromptExcerptBudget(pack, totalExcerptBytes, requiredEvidencePaths, requiredEvidenceAtomIds) {
738
+ return withPromptExcerptTotalByteBudget(pack, totalExcerptBytes, requiredEvidencePaths, requiredEvidenceAtomIds);
739
+ }
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());
603
750
  }
604
751
  export function fitPromptOmissionMetadata(build, fits, pathByteLimit) {
605
752
  const minimum = build(0);
@@ -621,7 +768,9 @@ export function fitPromptOmissionMetadata(build, fits, pathByteLimit) {
621
768
  return best;
622
769
  }
623
770
  function fitGroundedPrompt(question, pack, redactor, build, options = {}) {
624
- const budgetedPack = withPromptModelInputBudget(pack, options.modelInputTokensMax);
771
+ const modelPack = withPromptModelInputBudget(pack, options.modelInputTokensMax);
772
+ const budgetedPack = withCallerPromptInputBudget(modelPack, options.callerInputTokensMax);
773
+ const fitOptions = { ...options, modelInputTokensMax: modelPack.budget.modelInputTokensMax };
625
774
  const limit = modelInputPromptByteLimit(budgetedPack.budget.modelInputTokensMax);
626
775
  const fits = (candidate) => promptByteLength(candidate) <= limit &&
627
776
  countGatewayPromptTokens({ messages: candidate }, options.tokenAccounting) <=
@@ -632,22 +781,31 @@ function fitGroundedPrompt(question, pack, redactor, build, options = {}) {
632
781
  const metadataFit = fitPromptOmissionMetadata((bytes) => build(question, budgetedPack, redactor, bytes), fits, limit);
633
782
  if (metadataFit !== undefined)
634
783
  return { ...metadataFit, pack: budgetedPack };
635
- const emptyPack = withPromptExcerptBudget(budgetedPack, 0);
636
- const emptyMessages = build(question, emptyPack, redactor, 0);
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);
637
797
  const overheadBytes = promptByteLength(emptyMessages);
638
- // When overhead alone (system prompt + question + framing) exceeds the limit, no amount of
639
- // excerpt trimming can bring the prompt within budget. Throw instead of sending an over-limit
640
- // prompt to the provider which would result in an opaque 400 context-window error.
641
- if (!fits(emptyMessages)) {
642
- throw new ContextOverflowError(`Grounded prompt overhead (${String(overheadBytes)} bytes) exceeds model input limit (${String(limit)} bytes).`);
643
- }
798
+ assertGroundedPromptOverheadFits({
799
+ bytes: overheadBytes,
800
+ tokens: countGatewayPromptTokens({ messages: emptyMessages }, options.tokenAccounting),
801
+ }, options.modelInputTokensMax ?? pack.budget.modelInputTokensMax, options.callerInputTokensMax);
644
802
  let low = 0;
645
803
  let high = Math.max(0, limit - overheadBytes);
646
804
  let best = { messages: emptyMessages, pack: emptyPack, omissionPathBytes: 0 };
647
805
  while (low <= high) {
648
806
  const totalExcerptBytes = Math.floor((low + high) / 2);
649
- const candidatePack = withPromptExcerptBudget(budgetedPack, totalExcerptBytes);
650
- const candidate = build(question, candidatePack, redactor, 0);
807
+ const candidatePack = trim(pack, totalExcerptBytes, options.requiredEvidencePaths, options.requiredEvidenceAtomIds);
808
+ const candidate = build(candidatePack);
651
809
  if (fits(candidate)) {
652
810
  best = { messages: candidate, pack: candidatePack, omissionPathBytes: 0 };
653
811
  low = totalExcerptBytes + 1;
@@ -672,10 +830,11 @@ export function promptExcerptCount(packs) {
672
830
  * (grounded-prompt-context.ts).
673
831
  */
674
832
  export function fittedGroundedGatewayPrompt(question, pack, redactor, options) {
675
- const fitted = fitGroundedPrompt(question, pack, redactor, buildRawGroundedGatewayMessages, options);
833
+ const fitted = fitGroundedPrompt(question, pack, redactor, groundedPromptBuilder(options), options);
676
834
  return {
677
835
  messages: fitted.messages,
678
- withoutSources: buildRawGroundedGatewayMessages(question, withPromptExcerptBudget(fitted.pack, 0), redactor, -1),
836
+ sentEvidencePacks: [fitted.pack],
837
+ withoutSources: buildRawGroundedGatewayMessages(question, { ...fitted.pack, files: [] }, redactor, -1, options?.ownAssessmentPolicy),
679
838
  sentReferenceCount: promptExcerptCount([fitted.pack]),
680
839
  availableReferenceCount: promptExcerptCount([pack]),
681
840
  };
@@ -814,13 +973,10 @@ export function uncertaintyLines(pack, redactor) {
814
973
  // paths so both apply the identical capability, untrusted-evidence, citation and no-secret rules.
815
974
  // GROUNDED_SYSTEM_PROMPT now lives in the dependency-free ./grounded-prompt.js leaf (re-exported
816
975
  // here for back-compat) so the hybrid path can interpolate it without a circular-import TDZ.
817
- export { GROUNDED_SYSTEM_PROMPT };
818
- function buildRawGroundedGatewayMessages(question, pack, redactor, omissionPathBytes) {
976
+ export { GROUNDED_SYSTEM_PROMPT } from "./grounded-prompt.js";
977
+ function buildRawGroundedGatewayMessages(question, pack, redactor, omissionPathBytes, ownAssessmentPolicy = "disabled") {
819
978
  const safeQuestion = redactedString(redactor, question);
820
979
  const userContent = [
821
- "User question:",
822
- safeQuestion,
823
- "",
824
980
  "Connected repository context pack:",
825
981
  `- schemaVersion: ${pack.schemaVersion}`,
826
982
  `- stableId: ${redactedString(redactor, pack.stableId)}`,
@@ -836,49 +992,161 @@ function buildRawGroundedGatewayMessages(question, pack, redactor, omissionPathB
836
992
  "",
837
993
  "Known uncertainty from retrieval:",
838
994
  ...uncertaintyLines(pack, redactor),
995
+ "",
996
+ "User question:",
997
+ safeQuestion,
839
998
  ].join("\n");
840
999
  return [
841
- { role: "system", content: GROUNDED_SYSTEM_PROMPT },
1000
+ { role: "system", content: groundedSystemPrompt(ownAssessmentPolicy) },
842
1001
  { role: "user", content: userContent },
843
1002
  ];
844
1003
  }
845
1004
  export function buildGroundedGatewayMessages(question, pack, redactor, options) {
846
- return promptBudgetedMessages(question, pack, redactor, buildRawGroundedGatewayMessages, options);
847
- }
848
- function createGatewayAnswerer(deps, model, modelId, signal, correlationId, tokenAccounting) {
849
- // The input budget is read per attempt, not captured once: when the provider's overflow answer
850
- // taught Keiko the model's real window, the retry re-budgets the excerpts to fit it. The prompt
851
- // of the last attempt is kept for the context meter's share of this answer.
852
- let sent;
853
- const call = (question, pack) => {
854
- const promptOptions = groundedPromptOptions(deps, modelId, tokenAccounting);
855
- sent = fittedGroundedGatewayPrompt(question, pack, deps.redactor, promptOptions);
856
- return model.call({ modelId, messages: sent.messages, stream: false, logContext: { correlationId } }, signal);
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 ?? [],
857
1021
  };
858
1022
  return {
859
- answer: async (question, pack) => {
860
- ensureNotCancelled(signal);
861
- const response = await withAdoptedContextWindowRetry(deps, { modelId, surface: "grounded", correlationId }, () => call(question, pack));
862
- const content = response.content.trim();
863
- assertUsableAssistantContent(content, modelId);
864
- return {
865
- content,
866
- usage: {
867
- promptTokens: response.usage.promptTokens,
868
- completionTokens: response.usage.completionTokens,
869
- },
870
- // GEN-AI-GATEWAY-001 (RB-4): carry the finishReason so a truncated ("length") completion is
871
- // surfaced by runGroundedExploration instead of being consumed as a complete answer.
872
- finishReason: response.finishReason,
873
- ...sentPromptContextField(sent, response, currentContextProfileForModel(deps, modelId)),
874
- };
875
- },
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
+ };
1031
+ }
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);
1057
+ return {
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),
876
1080
  };
877
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
+ }
878
1145
  // The input budget of one attempt, read from the model's current capability.
879
1146
  export function groundedPromptOptions(deps, modelId, tokenAccounting) {
880
1147
  const modelInputTokensMax = groundedPromptInputTokensForCapability(chatCapability(deps, modelId));
881
1148
  return {
1149
+ ownAssessmentPolicy: currentOwnAssessmentPolicy(deps),
882
1150
  ...(modelInputTokensMax === undefined ? {} : { modelInputTokensMax }),
883
1151
  ...(tokenAccounting === undefined ? {} : { tokenAccounting }),
884
1152
  };
@@ -899,26 +1167,28 @@ function resolveGroundedAnswerModel(deps, modelId, readinessAdmission) {
899
1167
  // invoked once per exploration input.
900
1168
  function runDefaultGroundedExploration(runnerCtx, input) {
901
1169
  const { deps, modelId, signal, contextProfile, model, entailmentStage } = runnerCtx;
902
- const nowMs = Date.now;
903
1170
  const budgetedInput = {
904
1171
  ...input,
905
1172
  budget: input.budget ?? modelWindowAwareBudget(deps, modelId),
906
1173
  };
907
1174
  const contextPackReranker = configuredContextPackRerankerFor(deps, budgetedInput.query, signal, budgetedInput.budget.excerptBytesMax);
908
- const semanticLease = configuredRepoSemanticSearchProviderLeaseFor(deps, signal, budgetedInput.workspaceRoot);
1175
+ const semanticLease = configuredGroundedSemanticRequest(deps, budgetedInput.workspaceRoot, runnerCtx.refreshDocuments);
909
1176
  return runGroundedExploration(budgetedInput, {
910
- answerer: createGatewayAnswerer(deps, model, modelId, signal, runnerCtx.correlationId, contextProfile?.tokenAccounting),
911
- 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,
912
1183
  signal,
913
1184
  // ADR-0173 D5: the same id the Gateway answerer above already carries, so a git-history read
914
1185
  // that failed during THIS ask is joinable to it in `server.log`.
915
1186
  correlationId: runnerCtx.correlationId,
916
- microIndex: microIndexForGroundedScope(budgetedInput.scope, nowMs),
1187
+ microIndex: microIndexForGroundedScope(budgetedInput.scope, Date.now),
917
1188
  workspaceIndexForRoot: deps.workspaceIndexForRoot,
918
1189
  ...(contextPackReranker === undefined ? {} : { contextPackReranker }),
919
- ...(semanticLease.provider === undefined
920
- ? {}
921
- : { repoSemanticSearchProvider: semanticLease.provider }),
1190
+ repoSemanticSearchProviderFor: semanticLease.providerFor,
1191
+ diagnostics: deps.diagnostics,
922
1192
  ...(entailmentStage === undefined ? {} : { entailmentStage }),
923
1193
  // ADR-0055 D1/D5 (PR4-W1): thread the provisioned profile so the diagnostics observer fires
924
1194
  // on the assembled pack. exactOptionalPropertyTypes — omit the key entirely when absent so
@@ -939,6 +1209,7 @@ function defaultRunner(deps, modelId, readinessAdmission, signal, contextProfile
939
1209
  // The request's correlation, so the verdict line joins the ask (PR #3678 review).
940
1210
  { diagnostics: deps.diagnostics, correlationId }, signal);
941
1211
  const runnerCtx = {
1212
+ refreshDocuments: createSemanticRefreshDocumentBudget(deps),
942
1213
  deps,
943
1214
  modelId,
944
1215
  signal,
@@ -1130,6 +1401,7 @@ export function registerGroundedTurn(record, clientTurnId) {
1130
1401
  }
1131
1402
  }
1132
1403
  function persistGroundedAuditEvidence(workerCtx, output, citationCount) {
1404
+ const pack = withSentEvidenceInventory(output.pack, output.sentEvidencePacks);
1133
1405
  const finishedAt = Date.now();
1134
1406
  const startedAt = Math.max(0, finishedAt - output.elapsedMs);
1135
1407
  const runId = groundedEvidenceRunId({
@@ -1147,13 +1419,17 @@ function persistGroundedAuditEvidence(workerCtx, output, citationCount) {
1147
1419
  // the real grounding root so the audit trail is honest about which tree produced the answer.
1148
1420
  workspaceRoot: workerCtx.scope.workspaceRoot,
1149
1421
  chatId: workerCtx.chat.id,
1422
+ sourceScopeFingerprint: groundedSourceScopeFingerprint(output.pack.scope),
1423
+ followUp: output.followUp,
1424
+ completedSynthesisCallCount: output.completedSynthesisCallCount,
1150
1425
  plan: output.plan,
1151
- pack: output.pack,
1426
+ pack,
1427
+ retrievedFileCount: output.pack.files.length,
1152
1428
  citationCount,
1153
1429
  elapsedMs: output.elapsedMs,
1154
1430
  startedAt,
1155
1431
  finishedAt,
1156
- ...groundedContextAssemblyInput({ contextProfile: workerCtx.contextProfile }, output.pack),
1432
+ ...groundedContextAssemblyInput({ contextProfile: workerCtx.contextProfile }, pack),
1157
1433
  }, {
1158
1434
  store: workerCtx.deps.evidenceStore,
1159
1435
  env: workerCtx.deps.env,
@@ -1194,6 +1470,20 @@ function registerSingleGroundedTurn(workerCtx, output, assistantMessageId, evide
1194
1470
  packs: [output.pack],
1195
1471
  }, workerCtx.commitTurnId);
1196
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
+ }
1197
1487
  // Persists the exchange, projects citations/uncertainty, and assembles the wire answer for a
1198
1488
  // single-source folder ask. Split out of runAsk to keep both under the LOC bound.
1199
1489
  function finalizeGroundedAnswer(workerCtx, output) {
@@ -1206,24 +1496,24 @@ function finalizeGroundedAnswer(workerCtx, output) {
1206
1496
  const sourceEvidenceAvailable = output.noEvidence !== true;
1207
1497
  const modelInvoked = output.modelInvoked ?? sourceEvidenceAvailable;
1208
1498
  const citations = modelInvoked
1209
- ? buildAnswerCitations(output.pack, output.assistantContent, deps.redactor)
1499
+ ? buildAnswerCitations(singleSentEvidencePack(output, output.pack), output.assistantContent, deps.redactor)
1210
1500
  : [];
1211
1501
  const evidenceRunId = sourceEvidenceAvailable
1212
1502
  ? persistGroundedAuditEvidence(workerCtx, output, citations.length)
1213
1503
  : undefined;
1214
1504
  const [userMessage, assistantMessage] = persistGroundedExchange(deps, chat.id, userContent, assistantContent, workerCtx.userMessage);
1215
- const contextPack = buildGroundedAnswerContextPackSummary(output.pack, citations.length, output.elapsedMs, groundedContextSummaryInput({ contextProfile: workerCtx.contextProfile }, output.pack));
1216
1505
  const answer = {
1217
1506
  groundingKind: "connected-context",
1218
1507
  userMessageId: userMessage.id,
1219
1508
  assistantMessageId: assistantMessage.id,
1220
1509
  ...(evidenceRunId === undefined ? {} : { evidenceRunId }),
1221
1510
  content: assistantContent,
1511
+ ...singleAnswerEvidenceDeclaration(output),
1222
1512
  citations,
1223
1513
  uncertainty: buildUncertainty(output.pack, deps.redactor),
1224
1514
  omittedCount: connectedContextOmittedCount(output.pack),
1225
1515
  elapsedMs: output.elapsedMs,
1226
- contextPack,
1516
+ contextPack: singleAnswerContextSummary(workerCtx, output, citations.length),
1227
1517
  ...(modelInvoked && output.promptContext !== undefined
1228
1518
  ? { promptContext: output.promptContext }
1229
1519
  : {}),
@@ -1259,6 +1549,7 @@ async function runGroundedRunner(workerCtx, query) {
1259
1549
  const output = await runner({
1260
1550
  scope,
1261
1551
  query,
1552
+ ...groundedRetrievalContinuityFields(workerCtx, scope),
1262
1553
  answerQuestion: answerContent,
1263
1554
  currentQuestion: workerCtx.content,
1264
1555
  answerOnlyContextAvailable: workerCtx.answerOnlyContextAvailable,
@@ -1320,7 +1611,7 @@ function resolveGroundedRunner(deps, modelId, readinessAdmission, signal, runner
1320
1611
  return builtRunner;
1321
1612
  return { modelId, contextProfile, runner: builtRunner };
1322
1613
  }
1323
- function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, override, correlationId) {
1614
+ function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, override, correlationId, answerOptions) {
1324
1615
  if (override !== undefined)
1325
1616
  return override;
1326
1617
  const resolvedModel = deps.modelPortFactory(modelId);
@@ -1330,7 +1621,7 @@ function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, overr
1330
1621
  const model = withConversationReadinessAdmission(resolvedModel, modelId, readinessAdmission, deps);
1331
1622
  return {
1332
1623
  retriever: defaultRetriever(signal, deps, correlationId),
1333
- answerer: createMultiSourceAnswerer(deps, model, modelId, signal, correlationId),
1624
+ answerer: createMultiSourceAnswerer(deps, model, modelId, signal, correlationId, answerOptions),
1334
1625
  };
1335
1626
  }
1336
1627
  async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOverride) {
@@ -1339,10 +1630,11 @@ async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOv
1339
1630
  // does for an injected runner: there is no real model port to validate against. Production (no
1340
1631
  // override) resolves the chat-model guardrails once, shared with the single path.
1341
1632
  const modelId = groundedModelId(args);
1342
- 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) });
1343
1634
  if ("status" in seam)
1344
1635
  return seam;
1345
1636
  return runMultiSourceAsk({
1637
+ ...groundedRetrievalContinuityFields(input),
1346
1638
  chat,
1347
1639
  scopes,
1348
1640
  ...(args.sourceScopeFingerprints === undefined
@@ -1413,8 +1705,8 @@ async function dispatchFolderAsk(prepared, deps, allScopes, allSkippedFolders, r
1413
1705
  const resolved = resolveGroundedRunner(deps, groundedModelId(prepared), groundedReadinessAdmission(prepared), signal, runner, prepared.correlationId);
1414
1706
  if ("status" in resolved)
1415
1707
  return resolved;
1416
- const workspaceFs = firstScopeWorkspaceFs(scopes);
1417
1708
  return runAsk({
1709
+ ...groundedRetrievalContinuityFields(input),
1418
1710
  chat,
1419
1711
  scope,
1420
1712
  content: input.content,
@@ -1428,7 +1720,7 @@ async function dispatchFolderAsk(prepared, deps, allScopes, allSkippedFolders, r
1428
1720
  contextProfile: resolved.contextProfile,
1429
1721
  deps,
1430
1722
  runner: resolved.runner,
1431
- ...optionalWorkspaceFs(workspaceFs),
1723
+ ...optionalWorkspaceFs(firstScopeWorkspaceFs(scopes)),
1432
1724
  signal,
1433
1725
  correlationId: prepared.correlationId,
1434
1726
  });
@@ -1451,6 +1743,7 @@ async function dispatchHybridAsk(prepared, deps, skippedFolders, seam) {
1451
1743
  // path does: there is no real model port to validate. Production resolves the guardrails once.
1452
1744
  const modelId = groundedModelId(prepared);
1453
1745
  return runHybridGroundedAsk({
1746
+ ...groundedRetrievalContinuityFields(input),
1454
1747
  chat,
1455
1748
  ...(prepared.sourceScopeFingerprints === undefined
1456
1749
  ? {}
@@ -1611,6 +1904,7 @@ async function withGroundedContinuity(prepared, deps) {
1611
1904
  ...prepared.input,
1612
1905
  content,
1613
1906
  retrievalContent: continuity.retrievalContent,
1907
+ ...groundedRetrievalContinuityFields(continuity),
1614
1908
  answerContent: [continuity.answerContext, content].filter(Boolean).join("\n\n"),
1615
1909
  },
1616
1910
  };
@@ -1770,7 +2064,7 @@ async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybri
1770
2064
  catch (error) {
1771
2065
  if (stagedAssistantId !== undefined)
1772
2066
  discardGroundedTurn(stagedAssistantId);
1773
- deps.store.failChatTurn(admitted.chat.id, groundedCommitTurnId(admitted));
2067
+ failGroundedChatTurn(admitted, deps, error instanceof CancelledError);
1774
2068
  if (admitted.signal.aborted)
1775
2069
  return groundedCancelledResult();
1776
2070
  throw error;
@@ -1828,10 +2122,13 @@ async function executeGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
1828
2122
  function groundedCancelledResult() {
1829
2123
  return { status: 499, body: errorBody("CANCELLED", "Grounded request was cancelled.") };
1830
2124
  }
2125
+ function failGroundedChatTurn(prepared, deps, cancelled) {
2126
+ deps.store.failChatTurn(prepared.chat.id, groundedCommitTurnId(prepared), prepared.signal.aborted || cancelled ? "cancelled" : "failed");
2127
+ }
1831
2128
  function settleGroundedChatTurn(prepared, deps, result) {
1832
2129
  const commitTurnId = groundedCommitTurnId(prepared);
1833
2130
  if (result.status !== 200 || !groundedAnswerBody(result.body)) {
1834
- deps.store.failChatTurn(prepared.chat.id, commitTurnId);
2131
+ failGroundedChatTurn(prepared, deps, result.status === 499);
1835
2132
  return result;
1836
2133
  }
1837
2134
  if (!groundedScopeStillCurrent(prepared, deps)) {
@@ -1939,6 +2236,14 @@ function groundedAnswerWithMemoryUncertainty(body, deps) {
1939
2236
  ],
1940
2237
  };
1941
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
+ }
1942
2247
  export async function handleGroundedAsk(ctx, deps, runner, multiSource, hybrid) {
1943
2248
  const cancellation = createRequestCancellation(ctx, "grounded request cancelled");
1944
2249
  try {
@@ -1949,7 +2254,7 @@ export async function handleGroundedAsk(ctx, deps, runner, multiSource, hybrid)
1949
2254
  return prepared;
1950
2255
  const result = await executeGroundedAsk(prepared, deps, runner, multiSource, hybrid);
1951
2256
  if (result.status === 200 && groundedAnswerBody(result.body)) {
1952
- logChatResponseMessage(result.body.assistantMessageId, ctx.correlationId);
2257
+ logChatResponseMessage(result.body.assistantMessageId, ctx.correlationId, finalGroundedMemoryActivity(prepared, result.body));
1953
2258
  }
1954
2259
  return result;
1955
2260
  }