@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
@@ -310,12 +310,16 @@ function exportTargets(value) {
310
310
  }
311
311
  return out;
312
312
  }
313
- function packageEntryTargets(parsed) {
314
- const exportsTargets = isRecord(parsed.exports)
313
+ function explicitPackageEntryTargets(parsed) {
314
+ return isRecord(parsed.exports)
315
315
  ? exportTargets(parsed.exports["."])
316
316
  : exportTargets(parsed.exports);
317
+ }
318
+ function packageEntryTargets(parsed) {
319
+ const exportsTargets = explicitPackageEntryTargets(parsed);
317
320
  const fallback = [parsed.module, parsed.main, parsed.types].filter((value) => typeof value === "string");
318
- return [...new Set([...exportsTargets, ...fallback, "."])];
321
+ const targets = [...new Set([...exportsTargets, ...fallback])];
322
+ return targets.length > 0 || parsed.exports !== undefined ? targets : ["."];
319
323
  }
320
324
  function packageExports(parsed) {
321
325
  if (!isRecord(parsed.exports)) {
@@ -391,6 +395,9 @@ function collectWorkspacePackages(scope, fs, candidates, control) {
391
395
  root: tsconfigDir(candidate.relativePath),
392
396
  manifestPath: candidate.relativePath,
393
397
  entryTargets: packageEntryTargets(parsed),
398
+ ...(parsed.exports === undefined
399
+ ? {}
400
+ : { explicitEntryTargets: explicitPackageEntryTargets(parsed) }),
394
401
  exports: packageExports(parsed),
395
402
  dependencies: packageDependencies(parsed),
396
403
  });
@@ -456,9 +463,15 @@ function collectTsConfigAliases(aliases, compilerOptions, configDir, baseUrl) {
456
463
  aliases.push({ configDir, baseUrl, pattern, targets: asStringArray(targets) });
457
464
  }
458
465
  }
466
+ function collectExplicitSourceMapping(mappings, options, configDir) {
467
+ if (typeof options.rootDir !== "string" || typeof options.outDir !== "string")
468
+ return;
469
+ mappings.push({ configDir, rootDir: options.rootDir, outDir: options.outDir });
470
+ }
459
471
  function collectTsImportResolverConfig(scope, fs, candidates, control) {
460
472
  const aliases = [];
461
473
  const baseUrls = [];
474
+ const sourceMappings = [];
462
475
  let filesSkipped = 0;
463
476
  let truncated = false;
464
477
  for (const candidate of candidates) {
@@ -480,6 +493,7 @@ function collectTsImportResolverConfig(scope, fs, candidates, control) {
480
493
  continue;
481
494
  const baseUrl = typeof compilerOptions.baseUrl === "string" ? compilerOptions.baseUrl : ".";
482
495
  const configDir = tsconfigDir(candidate.relativePath);
496
+ collectExplicitSourceMapping(sourceMappings, compilerOptions, configDir);
483
497
  if (typeof compilerOptions.baseUrl === "string") {
484
498
  baseUrls.push(normalizeScopePath(posix.join(configDir, compilerOptions.baseUrl)));
485
499
  }
@@ -490,6 +504,7 @@ function collectTsImportResolverConfig(scope, fs, candidates, control) {
490
504
  return {
491
505
  aliases,
492
506
  baseUrls: [...new Set(baseUrls)],
507
+ sourceMappings,
493
508
  packages: packages.items,
494
509
  goModules: goModules.items,
495
510
  filesSkipped: filesSkipped + packages.filesSkipped + goModules.filesSkipped,
@@ -558,8 +573,43 @@ function resolveTsAliasTarget(specifier, pathSet, resolver) {
558
573
  }
559
574
  return undefined;
560
575
  }
561
- function resolvePackageTargetPath(pathSet, pkg, target) {
562
- const base = normalizeScopePath(posix.join(pkg.root, target));
576
+ function containedMappingDirectory(value) {
577
+ if (value.length === 0 ||
578
+ posix.isAbsolute(value) ||
579
+ value.includes("\\") ||
580
+ /^[A-Za-z]:/u.test(value))
581
+ return undefined;
582
+ const directory = posix.normalize(value);
583
+ return directory === ".." || directory.startsWith("../") ? undefined : directory;
584
+ }
585
+ function owningPackageSourceMapping(pkg, mappings) {
586
+ const owning = mappings.filter((mapping) => mapping.configDir === pkg.root);
587
+ const first = owning[0];
588
+ return first !== undefined &&
589
+ owning.every((mapping) => mapping.rootDir === first.rootDir && mapping.outDir === first.outDir)
590
+ ? first
591
+ : undefined;
592
+ }
593
+ function resolveMappedPackageSource(pathSet, pkg, target, mappings) {
594
+ const mapping = owningPackageSourceMapping(pkg, mappings);
595
+ if (mapping === undefined)
596
+ return undefined;
597
+ const root = containedMappingDirectory(mapping.rootDir);
598
+ const output = containedMappingDirectory(mapping.outDir);
599
+ const relativeTarget = containedMappingDirectory(target);
600
+ if (root === undefined || output === undefined || relativeTarget === undefined || root === output)
601
+ return undefined;
602
+ const prefix = `${output}/`;
603
+ if (!relativeTarget.startsWith(prefix))
604
+ return undefined;
605
+ const source = posix.join(pkg.root, root, relativeTarget.slice(prefix.length));
606
+ return resolveSourceSiblingCandidate(pathSet, source);
607
+ }
608
+ function resolvePackageTargetPath(pathSet, pkg, target, mappings) {
609
+ return (resolveSourceSiblingCandidate(pathSet, posix.join(pkg.root, target)) ??
610
+ resolveMappedPackageSource(pathSet, pkg, target, mappings));
611
+ }
612
+ function resolveSourceSiblingCandidate(pathSet, base) {
563
613
  const direct = resolveCandidate(pathSet, base, JS_EXTENSIONS);
564
614
  if (direct !== undefined) {
565
615
  return direct;
@@ -569,36 +619,42 @@ function resolvePackageTargetPath(pathSet, pkg, target) {
569
619
  ? undefined
570
620
  : resolveCandidate(pathSet, sourceSibling, JS_EXTENSIONS);
571
621
  }
572
- function resolveWorkspacePackageEntry(pathSet, pkg) {
573
- for (const target of pkg.entryTargets) {
574
- const resolved = resolvePackageTargetPath(pathSet, pkg, target);
622
+ function resolveWorkspacePackageEntry(pathSet, pkg, mappings, lexical) {
623
+ const targets = lexical ? (pkg.explicitEntryTargets ?? pkg.entryTargets) : pkg.entryTargets;
624
+ for (const target of targets) {
625
+ const resolved = resolvePackageTargetPath(pathSet, pkg, target, mappings);
575
626
  if (resolved !== undefined)
576
627
  return resolved;
577
628
  }
578
629
  return undefined;
579
630
  }
580
- function resolveWorkspacePackageSubpath(subpath, pathSet, pkg) {
631
+ function resolveWorkspacePackageSubpath(subpath, pathSet, pkg, mappings, lexical) {
581
632
  const exact = pkg.exports.find((item) => item.subpath === subpath);
582
633
  const wildcard = pkg.exports
583
634
  .map((item) => ({ item, substitution: wildcardSubstitution(item.subpath, subpath) }))
584
635
  .find((entry) => entry.substitution !== undefined);
636
+ if (lexical &&
637
+ pkg.explicitEntryTargets !== undefined &&
638
+ exact === undefined &&
639
+ wildcard === undefined)
640
+ return undefined;
585
641
  const targets = exact?.targets ?? wildcard?.item.targets ?? [subpath];
586
642
  const substitution = wildcard?.substitution ?? "";
587
643
  for (const target of targets.map((candidate) => applyWildcard(candidate, substitution))) {
588
- const resolved = resolvePackageTargetPath(pathSet, pkg, target);
644
+ const resolved = resolvePackageTargetPath(pathSet, pkg, target, mappings);
589
645
  if (resolved !== undefined)
590
646
  return resolved;
591
647
  }
592
648
  return undefined;
593
649
  }
594
- function resolveWorkspacePackageTarget(specifier, pathSet, resolver) {
650
+ function resolveWorkspacePackageTarget(specifier, pathSet, resolver, lexical) {
595
651
  for (const pkg of resolver.packages) {
596
652
  if (specifier === pkg.name)
597
- return resolveWorkspacePackageEntry(pathSet, pkg);
653
+ return resolveWorkspacePackageEntry(pathSet, pkg, resolver.sourceMappings, lexical);
598
654
  if (!specifier.startsWith(`${pkg.name}/`))
599
655
  continue;
600
656
  const subpath = specifier.slice(pkg.name.length + 1);
601
- return resolveWorkspacePackageSubpath(subpath, pathSet, pkg);
657
+ return resolveWorkspacePackageSubpath(subpath, pathSet, pkg, resolver.sourceMappings, lexical);
602
658
  }
603
659
  return undefined;
604
660
  }
@@ -649,11 +705,13 @@ function resolveLocalImport(edge, pathSet) {
649
705
  const joined = edge.specifier.startsWith("/")
650
706
  ? edge.specifier.slice(1)
651
707
  : posix.join(relativeBase, edge.specifier);
652
- return importResolution(resolveCandidate(pathSet, joined, edge.language === "python" ? PY_EXTENSIONS : JS_EXTENSIONS));
708
+ return importResolution(edge.language === "python"
709
+ ? resolveCandidate(pathSet, joined, PY_EXTENSIONS)
710
+ : resolveSourceSiblingCandidate(pathSet, joined));
653
711
  }
654
- function resolveTypescriptImportTarget(specifier, pathSet, resolver) {
712
+ function resolveTypescriptImportTarget(specifier, pathSet, resolver, lexical = false) {
655
713
  return (resolveTsAliasTarget(specifier, pathSet, resolver) ??
656
- resolveWorkspacePackageTarget(specifier, pathSet, resolver));
714
+ resolveWorkspacePackageTarget(specifier, pathSet, resolver, lexical));
657
715
  }
658
716
  function jvmSourceExtension(language) {
659
717
  switch (language) {
@@ -898,16 +956,45 @@ function resolvedTargetsBySpecifier(file, imports, kind) {
898
956
  }
899
957
  return targets;
900
958
  }
901
- function appendTypescriptImportBinding(bindings, file, resolver, targetBySpecifier, specifier, localName, importedName) {
959
+ function certifiedModuleImportPath(edge, pathSet, resolver) {
960
+ if (edge.language !== "typescript" && edge.language !== "javascript")
961
+ return undefined;
962
+ if (edge.specifier.startsWith(".") || edge.specifier.startsWith("/"))
963
+ return resolveLocalImport(edge, pathSet).targetPath;
964
+ if (edge.specifier.startsWith("@/"))
965
+ return resolveCandidate(pathSet, `src/${edge.specifier.slice(2)}`, JS_EXTENSIONS);
966
+ return resolveTypescriptImportTarget(edge.specifier, pathSet, resolver, true);
967
+ }
968
+ function certifiedModuleImportsByFile(imports, pathSet, resolver, control) {
969
+ const files = new Map();
970
+ for (const edge of imports) {
971
+ if (structuralExecutionStopped(control))
972
+ return new Map();
973
+ const target = certifiedModuleImportPath(edge, pathSet, resolver);
974
+ if (target === undefined || target !== edge.targetPath)
975
+ continue;
976
+ const targets = files.get(edge.importerPath) ?? new Map();
977
+ targets.set(edge.specifier, target);
978
+ files.set(edge.importerPath, targets);
979
+ }
980
+ return files;
981
+ }
982
+ function appendTypescriptImportBinding(bindings, file, resolver, targetBySpecifier, binding) {
983
+ const { specifier, localName, importedName, runtimeBinding } = binding;
902
984
  const targetPath = targetBySpecifier.get(specifier);
903
985
  if (targetPath === undefined)
904
986
  return;
905
987
  const resolved = resolveTypescriptReExportedSymbol(targetPath, importedName, resolver);
988
+ const lexical = runtimeBinding &&
989
+ resolver.moduleImportsByFile.get(file.scopePath)?.get(specifier) === targetPath
990
+ ? resolveTypescriptReExportedSymbol(targetPath, importedName, resolver, new Set(), 0, true)
991
+ : undefined;
906
992
  bindings.push({
907
993
  importerPath: file.scopePath,
908
994
  localName,
909
995
  importedName: resolved?.importedName ?? importedName,
910
996
  targetPath: resolved?.targetPath ?? targetPath,
997
+ ...(lexical?.symbol === undefined ? {} : { lexicalTarget: lexical.symbol }),
911
998
  });
912
999
  }
913
1000
  function appendTypescriptImportDeclarationBindings(bindings, file, resolver, targetBySpecifier, statement) {
@@ -916,13 +1003,23 @@ function appendTypescriptImportDeclarationBindings(bindings, file, resolver, tar
916
1003
  if (specifier === undefined || clause === undefined)
917
1004
  return;
918
1005
  if (clause.name !== undefined) {
919
- appendTypescriptImportBinding(bindings, file, resolver, targetBySpecifier, specifier, clause.name.text, "default");
1006
+ appendTypescriptImportBinding(bindings, file, resolver, targetBySpecifier, {
1007
+ specifier,
1008
+ localName: clause.name.text,
1009
+ importedName: "default",
1010
+ runtimeBinding: clause.phaseModifier !== typeScriptCompiler().SyntaxKind.TypeKeyword,
1011
+ });
920
1012
  }
921
1013
  if (clause.namedBindings === undefined ||
922
1014
  !typeScriptCompiler().isNamedImports(clause.namedBindings))
923
1015
  return;
924
1016
  for (const element of clause.namedBindings.elements) {
925
- appendTypescriptImportBinding(bindings, file, resolver, targetBySpecifier, specifier, element.name.text, element.propertyName?.text ?? element.name.text);
1017
+ appendTypescriptImportBinding(bindings, file, resolver, targetBySpecifier, {
1018
+ specifier,
1019
+ localName: element.name.text,
1020
+ importedName: element.propertyName?.text ?? element.name.text,
1021
+ runtimeBinding: clause.phaseModifier !== typeScriptCompiler().SyntaxKind.TypeKeyword && !element.isTypeOnly,
1022
+ });
926
1023
  }
927
1024
  }
928
1025
  function collectTypescriptImportBindings(file, imports, resolver) {
@@ -1038,12 +1135,17 @@ function collectPolyglotImportBindings(file, imports) {
1038
1135
  }
1039
1136
  function appendTypescriptReExportBindings(bindings, exporterPath, targetBySpecifier, statement) {
1040
1137
  const specifier = stringLiteralText(statement.moduleSpecifier);
1041
- const targetPath = specifier === undefined ? undefined : targetBySpecifier.get(specifier);
1042
- if (targetPath === undefined)
1138
+ if (specifier === undefined)
1043
1139
  return;
1140
+ const targetPath = targetBySpecifier.get(specifier);
1044
1141
  const clause = statement.exportClause;
1045
1142
  if (clause === undefined) {
1046
- bindings.push({ exporterPath, targetPath });
1143
+ bindings.push({
1144
+ exporterPath,
1145
+ targetPath,
1146
+ specifier,
1147
+ ...(statement.isTypeOnly ? { typeOnly: true } : {}),
1148
+ });
1047
1149
  return;
1048
1150
  }
1049
1151
  if (!typeScriptCompiler().isNamedExports(clause))
@@ -1054,6 +1156,8 @@ function appendTypescriptReExportBindings(bindings, exporterPath, targetBySpecif
1054
1156
  exportedName: element.name.text,
1055
1157
  importedName: element.propertyName?.text ?? element.name.text,
1056
1158
  targetPath,
1159
+ specifier,
1160
+ ...(statement.isTypeOnly || element.isTypeOnly ? { typeOnly: true } : {}),
1057
1161
  });
1058
1162
  }
1059
1163
  }
@@ -1114,7 +1218,125 @@ function collectTypescriptDefaultExports(file) {
1114
1218
  }
1115
1219
  return defaults;
1116
1220
  }
1117
- function buildTypescriptReExportResolverContext(reExports, defaultExports, symbols) {
1221
+ function topLevelSymbolDeclarations(statement) {
1222
+ const compiler = typeScriptCompiler();
1223
+ if (compiler.isVariableStatement(statement))
1224
+ return [...statement.declarationList.declarations];
1225
+ return [statement];
1226
+ }
1227
+ function declarationGeometryKey(range, span) {
1228
+ if (span === undefined)
1229
+ return undefined;
1230
+ return [range.startLine, range.endLine, span.startColumn, span.endLine, span.endColumn].join(":");
1231
+ }
1232
+ function symbolsByDeclarationGeometry(symbols) {
1233
+ const byGeometry = new Map();
1234
+ for (const symbol of symbols) {
1235
+ const key = declarationGeometryKey(symbol.lineRange, symbol.declarationSpan);
1236
+ if (key === undefined)
1237
+ continue;
1238
+ const bucket = byGeometry.get(key);
1239
+ if (bucket === undefined)
1240
+ byGeometry.set(key, [symbol]);
1241
+ else
1242
+ bucket.push(symbol);
1243
+ }
1244
+ return byGeometry;
1245
+ }
1246
+ function appendDeclaredSymbols(byName, byGeometry, source, declaration) {
1247
+ const span = nodeSourceSpan(source, declaration);
1248
+ const range = nodeLineRange(source, declaration);
1249
+ const key = declarationGeometryKey(range, span);
1250
+ for (const symbol of byGeometry.get(key ?? "") ?? []) {
1251
+ if (!sameLineRange(symbol.lineRange, range) || !sameSourceSpan(symbol.declarationSpan, span))
1252
+ continue;
1253
+ const bucket = byName.get(symbol.name);
1254
+ if (bucket === undefined)
1255
+ byName.set(symbol.name, [symbol]);
1256
+ else
1257
+ bucket.push(symbol);
1258
+ }
1259
+ }
1260
+ function topLevelDeclaredSymbols(file, symbols) {
1261
+ const source = file.syntaxTree;
1262
+ const byName = new Map();
1263
+ if (source === undefined)
1264
+ return byName;
1265
+ const byGeometry = symbolsByDeclarationGeometry(symbols);
1266
+ for (const statement of source.statements) {
1267
+ for (const declaration of topLevelSymbolDeclarations(statement)) {
1268
+ appendDeclaredSymbols(byName, byGeometry, source, declaration);
1269
+ }
1270
+ }
1271
+ return byName;
1272
+ }
1273
+ function hasExportModifier(node) {
1274
+ const compiler = typeScriptCompiler();
1275
+ return (compiler.canHaveModifiers(node) &&
1276
+ compiler
1277
+ .getModifiers(node)
1278
+ ?.some((modifier) => modifier.kind === compiler.SyntaxKind.ExportKeyword) === true);
1279
+ }
1280
+ function localModuleExportNames(statement) {
1281
+ const compiler = typeScriptCompiler();
1282
+ if (compiler.isExportDeclaration(statement)) {
1283
+ if (statement.moduleSpecifier !== undefined ||
1284
+ statement.isTypeOnly ||
1285
+ statement.exportClause === undefined ||
1286
+ !compiler.isNamedExports(statement.exportClause))
1287
+ return [];
1288
+ return statement.exportClause.elements
1289
+ .filter((element) => !element.isTypeOnly)
1290
+ .map((element) => ({
1291
+ name: element.name.text,
1292
+ local: element.propertyName?.text ?? element.name.text,
1293
+ }));
1294
+ }
1295
+ if (compiler.isExportAssignment(statement) && !statement.isExportEquals) {
1296
+ return [
1297
+ {
1298
+ name: "default",
1299
+ local: compiler.isIdentifier(statement.expression) ? statement.expression.text : "default",
1300
+ },
1301
+ ];
1302
+ }
1303
+ if (!hasExportModifier(statement))
1304
+ return [];
1305
+ return topLevelSymbolDeclarations(statement).flatMap((node) => {
1306
+ const name = callableDeclarationName(node) ??
1307
+ (compiler.isClassDeclaration(node) ? declarationNameText(node.name) : undefined);
1308
+ return name === undefined
1309
+ ? []
1310
+ : [{ name: hasDefaultModifier(statement) ? "default" : name, local: name }];
1311
+ });
1312
+ }
1313
+ function collectTypescriptModuleExports(file, symbols) {
1314
+ const exports = new Map();
1315
+ if (file.syntaxTree === undefined)
1316
+ return exports;
1317
+ const local = topLevelDeclaredSymbols(file, symbols);
1318
+ for (const statement of file.syntaxTree.statements) {
1319
+ for (const binding of localModuleExportNames(statement)) {
1320
+ exports.set(binding.name, [
1321
+ ...(exports.get(binding.name) ?? []),
1322
+ ...(local.get(binding.local) ?? []),
1323
+ ]);
1324
+ }
1325
+ }
1326
+ return exports;
1327
+ }
1328
+ function moduleExportsByFile(files, symbolsByFile, control) {
1329
+ const exports = new Map();
1330
+ for (const file of files) {
1331
+ if (structuralExecutionStopped(control))
1332
+ return new Map();
1333
+ if (file.syntaxTree === undefined || file.partial)
1334
+ continue;
1335
+ exports.set(file.scopePath, collectTypescriptModuleExports(file, symbolsByFile.get(file.scopePath) ?? []));
1336
+ }
1337
+ return structuralExecutionStopped(control) ? new Map() : exports;
1338
+ }
1339
+ function buildTypescriptReExportResolverContext(reExports, defaultExports, symbols, files, control, moduleImports) {
1118
1340
  const reExportsByFile = new Map();
1119
1341
  for (const binding of reExports) {
1120
1342
  reExportsByFile.set(binding.exporterPath, [
@@ -1131,9 +1353,19 @@ function buildTypescriptReExportResolverContext(reExports, defaultExports, symbo
1131
1353
  }
1132
1354
  const symbolsByFile = new Map();
1133
1355
  for (const symbol of symbols) {
1134
- symbolsByFile.set(symbol.scopePath, [...(symbolsByFile.get(symbol.scopePath) ?? []), symbol]);
1356
+ const bucket = symbolsByFile.get(symbol.scopePath);
1357
+ if (bucket === undefined)
1358
+ symbolsByFile.set(symbol.scopePath, [symbol]);
1359
+ else
1360
+ bucket.push(symbol);
1135
1361
  }
1136
- return { reExportsByFile, defaultExportsByFile, symbolsByFile };
1362
+ return {
1363
+ reExportsByFile,
1364
+ defaultExportsByFile,
1365
+ symbolsByFile,
1366
+ moduleExportsByFile: moduleExportsByFile(files, symbolsByFile, control),
1367
+ moduleImportsByFile: moduleImports,
1368
+ };
1137
1369
  }
1138
1370
  function fileDefinesTypescriptSymbol(resolver, scopePath, symbolName) {
1139
1371
  return (resolver.symbolsByFile.get(scopePath) ?? []).some((symbol) => symbol.name === symbolName);
@@ -1147,14 +1379,30 @@ function resolveDefaultTypescriptExport(exporterPath, resolver) {
1147
1379
  return undefined;
1148
1380
  }
1149
1381
  function resolveTypescriptReExportBinding(binding, importedName, request) {
1150
- const resolved = resolveTypescriptReExportedSymbol(binding.targetPath, importedName, request.resolver, request.seen, request.depth + 1);
1151
- if (resolved !== undefined)
1382
+ if (binding.targetPath === undefined)
1383
+ return request.lexical
1384
+ ? blockedTypescriptExport(binding.exporterPath, importedName)
1385
+ : undefined;
1386
+ if (request.lexical &&
1387
+ request.resolver.moduleImportsByFile.get(binding.exporterPath)?.get(binding.specifier) !==
1388
+ binding.targetPath)
1389
+ return blockedTypescriptExport(binding.targetPath, importedName);
1390
+ const resolved = resolveTypescriptReExportedSymbol(binding.targetPath, importedName, request.resolver, request.seen, request.depth + 1, request.lexical);
1391
+ if (resolved !== undefined || request.lexical)
1152
1392
  return resolved;
1153
1393
  return fileDefinesTypescriptSymbol(request.resolver, binding.targetPath, importedName)
1154
1394
  ? { targetPath: binding.targetPath, importedName }
1155
1395
  : undefined;
1156
1396
  }
1157
1397
  function resolveNamedTypescriptReExport(bindings, request) {
1398
+ if (request.lexical) {
1399
+ const matching = bindings.filter((binding) => binding.exportedName === request.exportedName);
1400
+ if (matching.length !== 1 || matching[0]?.importedName === undefined)
1401
+ return matching.length === 0
1402
+ ? undefined
1403
+ : blockedTypescriptExport(matching[0]?.exporterPath ?? "", request.exportedName);
1404
+ return resolveTypescriptReExportBinding(matching[0], matching[0].importedName, request);
1405
+ }
1158
1406
  for (const binding of bindings) {
1159
1407
  if (binding.exportedName !== request.exportedName || binding.importedName === undefined) {
1160
1408
  continue;
@@ -1166,6 +1414,21 @@ function resolveNamedTypescriptReExport(bindings, request) {
1166
1414
  return undefined;
1167
1415
  }
1168
1416
  function resolveWildcardTypescriptReExport(bindings, request) {
1417
+ if (request.lexical) {
1418
+ const resolutions = bindings
1419
+ .filter((binding) => binding.exportedName === undefined)
1420
+ .map((binding) => resolveTypescriptReExportBinding(binding, request.exportedName, request));
1421
+ const blocked = resolutions.find((target) => target?.blocked === true);
1422
+ if (blocked !== undefined)
1423
+ return blocked;
1424
+ const targets = resolutions.filter((target) => target?.symbol !== undefined);
1425
+ const first = targets[0];
1426
+ if (first === undefined)
1427
+ return undefined;
1428
+ return targets.every((target) => target?.symbol === first.symbol)
1429
+ ? first
1430
+ : blockedTypescriptExport(first.targetPath, request.exportedName);
1431
+ }
1169
1432
  for (const binding of bindings) {
1170
1433
  if (binding.exportedName !== undefined)
1171
1434
  continue;
@@ -1175,28 +1438,61 @@ function resolveWildcardTypescriptReExport(bindings, request) {
1175
1438
  }
1176
1439
  return undefined;
1177
1440
  }
1178
- function resolveTypescriptReExportedSymbol(exporterPath, exportedName, resolver, seen = new Set(), depth = 0) {
1179
- if (depth > RE_EXPORT_RESOLUTION_DEPTH_LIMIT) {
1180
- return undefined;
1181
- }
1182
- const key = `${exporterPath}\0${exportedName}`;
1183
- if (seen.has(key)) {
1441
+ function blockedTypescriptExport(targetPath, importedName) {
1442
+ return { targetPath, importedName, blocked: true };
1443
+ }
1444
+ function directLexicalModuleExport(exporterPath, exportedName, resolver) {
1445
+ const exports = resolver.moduleExportsByFile.get(exporterPath);
1446
+ if (exports === undefined)
1447
+ return blockedTypescriptExport(exporterPath, exportedName);
1448
+ const local = exports.get(exportedName);
1449
+ if (local === undefined)
1184
1450
  return undefined;
1451
+ if ((resolver.reExportsByFile.get(exporterPath) ?? []).some((binding) => binding.typeOnly !== true && binding.exportedName === exportedName))
1452
+ return blockedTypescriptExport(exporterPath, exportedName);
1453
+ const symbol = local.length === 1 ? local[0] : undefined;
1454
+ return symbol === undefined
1455
+ ? blockedTypescriptExport(exporterPath, exportedName)
1456
+ : { targetPath: exporterPath, importedName: symbol.name, symbol };
1457
+ }
1458
+ function directTypescriptImportTarget(exporterPath, exportedName, resolver, lexical) {
1459
+ if (lexical) {
1460
+ const direct = directLexicalModuleExport(exporterPath, exportedName, resolver);
1461
+ if (direct !== undefined)
1462
+ return direct;
1185
1463
  }
1186
- const nextSeen = new Set(seen);
1187
- nextSeen.add(key);
1188
- if (exportedName === "default") {
1464
+ if (!lexical && exportedName === "default") {
1189
1465
  const resolvedDefault = resolveDefaultTypescriptExport(exporterPath, resolver);
1190
1466
  if (resolvedDefault !== undefined)
1191
1467
  return resolvedDefault;
1192
1468
  }
1193
- if (fileDefinesTypescriptSymbol(resolver, exporterPath, exportedName)) {
1469
+ if (!lexical && fileDefinesTypescriptSymbol(resolver, exporterPath, exportedName)) {
1194
1470
  return { targetPath: exporterPath, importedName: exportedName };
1195
1471
  }
1196
- const reExports = resolver.reExportsByFile.get(exporterPath) ?? [];
1197
- const request = { exportedName, resolver, seen: nextSeen, depth };
1472
+ return undefined;
1473
+ }
1474
+ function resolveTypescriptReExportedSymbol(exporterPath, exportedName, resolver, seen = new Set(), depth = 0, lexical = false) {
1475
+ if (depth > RE_EXPORT_RESOLUTION_DEPTH_LIMIT) {
1476
+ return lexical ? blockedTypescriptExport(exporterPath, exportedName) : undefined;
1477
+ }
1478
+ const key = `${exporterPath}\0${exportedName}`;
1479
+ if (seen.has(key)) {
1480
+ return lexical ? blockedTypescriptExport(exporterPath, exportedName) : undefined;
1481
+ }
1482
+ const nextSeen = new Set(seen);
1483
+ nextSeen.add(key);
1484
+ const direct = directTypescriptImportTarget(exporterPath, exportedName, resolver, lexical);
1485
+ if (direct !== undefined)
1486
+ return direct;
1487
+ const allReExports = resolver.reExportsByFile.get(exporterPath) ?? [];
1488
+ const reExports = lexical
1489
+ ? allReExports.filter((binding) => binding.typeOnly !== true)
1490
+ : allReExports;
1491
+ const request = { exportedName, resolver, seen: nextSeen, depth, lexical };
1198
1492
  const named = resolveNamedTypescriptReExport(reExports, request);
1199
- if (named !== undefined || exportedName === "default")
1493
+ if (named !== undefined ||
1494
+ exportedName === "default" ||
1495
+ (lexical && reExports.some((binding) => binding.exportedName === exportedName)))
1200
1496
  return named;
1201
1497
  return resolveWildcardTypescriptReExport(reExports, request);
1202
1498
  }
@@ -1757,6 +2053,18 @@ function collectTypescriptFields(node) {
1757
2053
  }
1758
2054
  return [...new Set(fields)];
1759
2055
  }
2056
+ function isTopLevelExportedConstant(node) {
2057
+ const compiler = typeScriptCompiler();
2058
+ if (!compiler.isVariableDeclaration(node))
2059
+ return false;
2060
+ const declarations = node.parent;
2061
+ const statement = declarations.parent;
2062
+ return (compiler.isVariableDeclarationList(declarations) &&
2063
+ (declarations.flags & compiler.NodeFlags.Const) !== 0 &&
2064
+ compiler.isVariableStatement(statement) &&
2065
+ compiler.isSourceFile(statement.parent) &&
2066
+ hasExportModifier(statement));
2067
+ }
1760
2068
  function collectTypescriptSymbols(file) {
1761
2069
  const sourceFile = file.syntaxTree;
1762
2070
  if (sourceFile === undefined) {
@@ -1773,6 +2081,8 @@ function collectTypescriptSymbols(file) {
1773
2081
  scopePath: file.scopePath,
1774
2082
  language: file.language,
1775
2083
  lineRange: nodeLineRange(sourceFile, node),
2084
+ declarationSpan: nodeSourceSpan(sourceFile, node),
2085
+ ...(isTopLevelExportedConstant(node) ? { topLevelExport: true } : {}),
1776
2086
  fields,
1777
2087
  parser: "typescript-compiler-ast",
1778
2088
  });
@@ -2128,7 +2438,7 @@ function resolveImportedSymbolTarget(referenceName, byName, importBindings) {
2128
2438
  if (binding === undefined) {
2129
2439
  return undefined;
2130
2440
  }
2131
- return (byName.get(binding.importedName.toLowerCase()) ?? []).find((symbol) => symbol.scopePath === binding.targetPath);
2441
+ return (byName.get(binding.importedName.toLowerCase()) ?? []).find((symbol) => symbol.scopePath === binding.targetPath && symbol.name === binding.importedName);
2132
2442
  }
2133
2443
  function resolveCallTarget(callerPath, calleeName, byName, imports, importBindings) {
2134
2444
  const importedSymbol = resolveImportedSymbolTarget(calleeName, byName, importBindings);
@@ -2156,31 +2466,234 @@ function calleeNameFromExpression(expression) {
2156
2466
  }
2157
2467
  return undefined;
2158
2468
  }
2469
+ function transparentReturnedExpression(node) {
2470
+ const compiler = typeScriptCompiler();
2471
+ return (compiler.isAwaitExpression(node) ||
2472
+ compiler.isParenthesizedExpression(node) ||
2473
+ compiler.isAsExpression(node) ||
2474
+ compiler.isTypeAssertionExpression(node) ||
2475
+ compiler.isNonNullExpression(node) ||
2476
+ compiler.isSatisfiesExpression(node));
2477
+ }
2478
+ function callReturnsOwnValue(node) {
2479
+ let expression = node;
2480
+ while (transparentReturnedExpression(expression.parent))
2481
+ expression = expression.parent;
2482
+ const parent = expression.parent;
2483
+ return ((typeScriptCompiler().isReturnStatement(parent) && parent.expression === expression) ||
2484
+ (typeScriptCompiler().isArrowFunction(parent) && parent.body === expression));
2485
+ }
2486
+ function callIsDirectlyAwaited(node) {
2487
+ let expression = node;
2488
+ while (transparentReturnedExpression(expression.parent)) {
2489
+ if (typeScriptCompiler().isAwaitExpression(expression.parent))
2490
+ return true;
2491
+ expression = expression.parent;
2492
+ }
2493
+ return false;
2494
+ }
2495
+ function nodeSourceSpan(source, node) {
2496
+ const start = source.getLineAndCharacterOfPosition(node.getStart(source));
2497
+ const end = source.getLineAndCharacterOfPosition(node.getEnd());
2498
+ return { startColumn: start.character, endLine: end.line + 1, endColumn: end.character };
2499
+ }
2500
+ function callBindingScope(node, functionScoped = false) {
2501
+ let current = node;
2502
+ while (!typeScriptCompiler().isSourceFile(current)) {
2503
+ if (typeScriptCompiler().isFunctionLike(current))
2504
+ return current;
2505
+ if (!functionScoped &&
2506
+ (typeScriptCompiler().isBlock(current) ||
2507
+ typeScriptCompiler().isCatchClause(current) ||
2508
+ typeScriptCompiler().isForStatement(current) ||
2509
+ typeScriptCompiler().isForInStatement(current) ||
2510
+ typeScriptCompiler().isForOfStatement(current)))
2511
+ return current;
2512
+ current = current.parent;
2513
+ }
2514
+ return current;
2515
+ }
2516
+ function callBindingNames(name) {
2517
+ if (typeScriptCompiler().isIdentifier(name))
2518
+ return [name.text];
2519
+ return name.elements.flatMap((element) => typeScriptCompiler().isBindingElement(element) ? callBindingNames(element.name) : []);
2520
+ }
2521
+ function declarationCallBinding(node) {
2522
+ const compiler = typeScriptCompiler();
2523
+ if (compiler.isFunctionExpression(node) || compiler.isClassExpression(node)) {
2524
+ return node.name === undefined ? undefined : { scope: node, names: [node.name.text] };
2525
+ }
2526
+ if (compiler.isFunctionDeclaration(node) || compiler.isClassDeclaration(node)) {
2527
+ const scope = callBindingScope(node.parent);
2528
+ return scope === undefined || node.name === undefined
2529
+ ? undefined
2530
+ : { scope, names: [node.name.text] };
2531
+ }
2532
+ if (compiler.isParameter(node))
2533
+ return { scope: node.parent, names: callBindingNames(node.name) };
2534
+ if (!compiler.isVariableDeclaration(node))
2535
+ return undefined;
2536
+ const isVar = compiler.isVariableDeclarationList(node.parent) &&
2537
+ (node.parent.flags & compiler.NodeFlags.BlockScoped) === 0;
2538
+ const scope = callBindingScope(node.parent, isVar);
2539
+ return scope === undefined ? undefined : { scope, names: callBindingNames(node.name) };
2540
+ }
2541
+ function collectCallBindingScopes(source) {
2542
+ const scopes = new Map();
2543
+ const visit = (node) => {
2544
+ const binding = declarationCallBinding(node);
2545
+ if (binding !== undefined) {
2546
+ const names = scopes.get(binding.scope) ?? new Map();
2547
+ for (const name of binding.names)
2548
+ names.set(name, [...(names.get(name) ?? []), node]);
2549
+ scopes.set(binding.scope, names);
2550
+ }
2551
+ typeScriptCompiler().forEachChild(node, visit);
2552
+ };
2553
+ visit(source);
2554
+ return scopes;
2555
+ }
2556
+ function visibleCallBinding(reference, name, scopes) {
2557
+ let node = reference.parent;
2558
+ for (;;) {
2559
+ const binding = scopes.get(node)?.get(name);
2560
+ if (binding !== undefined)
2561
+ return binding;
2562
+ if (typeScriptCompiler().isSourceFile(node))
2563
+ return undefined;
2564
+ node = node.parent;
2565
+ }
2566
+ }
2567
+ function certifiedIdentifierTarget(file, identifier, scopes, byName, importBindings) {
2568
+ const name = identifier.text;
2569
+ const binding = visibleCallBinding(identifier, name, scopes);
2570
+ if (binding === undefined) {
2571
+ const imports = importBindings.filter((candidate) => candidate.localName === name);
2572
+ const imported = imports.length === 1 ? imports[0]?.lexicalTarget : undefined;
2573
+ return imported?.parser === "typescript-compiler-ast" && imported.declarationSpan !== undefined
2574
+ ? imported
2575
+ : undefined;
2576
+ }
2577
+ const declaration = binding.length === 1 ? binding[0] : undefined;
2578
+ if (declaration === undefined ||
2579
+ !typeScriptCompiler().isFunctionDeclaration(declaration) ||
2580
+ file.syntaxTree === undefined)
2581
+ return undefined;
2582
+ const range = nodeLineRange(file.syntaxTree, declaration);
2583
+ const span = nodeSourceSpan(file.syntaxTree, declaration);
2584
+ return (byName.get(name.toLowerCase()) ?? []).find((symbol) => symbol.parser === "typescript-compiler-ast" &&
2585
+ symbol.name === name &&
2586
+ symbol.scopePath === file.scopePath &&
2587
+ sameLineRange(symbol.lineRange, range) &&
2588
+ sameSourceSpan(symbol.declarationSpan, span));
2589
+ }
2590
+ function certifiedIdentifierCallTarget(file, call, scopes, byName, importBindings) {
2591
+ return typeScriptCompiler().isIdentifier(call.expression)
2592
+ ? certifiedIdentifierTarget(file, call.expression, scopes, byName, importBindings)
2593
+ : undefined;
2594
+ }
2595
+ function sameSourceSpan(left, right) {
2596
+ if (left === undefined || right === undefined)
2597
+ return false;
2598
+ return (left.startColumn === right.startColumn &&
2599
+ left.endLine === right.endLine &&
2600
+ left.endColumn === right.endColumn);
2601
+ }
2602
+ function callableDeclaration(node) {
2603
+ const compiler = typeScriptCompiler();
2604
+ if (compiler.isFunctionDeclaration(node) || compiler.isMethodDeclaration(node))
2605
+ return node;
2606
+ if (!compiler.isFunctionExpression(node) && !compiler.isArrowFunction(node))
2607
+ return undefined;
2608
+ let expression = node;
2609
+ while (transparentReturnedExpression(expression.parent))
2610
+ expression = expression.parent;
2611
+ const parent = expression.parent;
2612
+ return (compiler.isVariableDeclaration(parent) && parent.initializer === expression) ||
2613
+ (compiler.isExportAssignment(parent) &&
2614
+ !parent.isExportEquals &&
2615
+ parent.expression === expression)
2616
+ ? parent
2617
+ : undefined;
2618
+ }
2619
+ function callableDeclarationName(node) {
2620
+ const compiler = typeScriptCompiler();
2621
+ if (compiler.isExportAssignment(node))
2622
+ return "default";
2623
+ if (compiler.isFunctionDeclaration(node))
2624
+ return declarationNameText(node.name) ?? (hasDefaultModifier(node) ? "default" : undefined);
2625
+ if (compiler.isMethodDeclaration(node) || compiler.isVariableDeclaration(node))
2626
+ return declarationNameText(node.name);
2627
+ return undefined;
2628
+ }
2629
+ function containingCallableDefinition(file, reference, byName) {
2630
+ if (file.syntaxTree === undefined)
2631
+ return undefined;
2632
+ let owner = reference.parent;
2633
+ while (!typeScriptCompiler().isSourceFile(owner)) {
2634
+ if (typeScriptCompiler().isFunctionLike(owner)) {
2635
+ const declaration = callableDeclaration(owner);
2636
+ const name = declaration === undefined ? undefined : callableDeclarationName(declaration);
2637
+ if (declaration === undefined || name === undefined)
2638
+ return undefined;
2639
+ const range = nodeLineRange(file.syntaxTree, declaration);
2640
+ const span = nodeSourceSpan(file.syntaxTree, declaration);
2641
+ const symbol = (byName.get(name.toLowerCase()) ?? []).find((candidate) => candidate.parser === "typescript-compiler-ast" &&
2642
+ candidate.scopePath === file.scopePath &&
2643
+ candidate.name === name &&
2644
+ sameLineRange(candidate.lineRange, range) &&
2645
+ sameSourceSpan(candidate.declarationSpan, span));
2646
+ return symbol === undefined
2647
+ ? undefined
2648
+ : { name: symbol.name, lineRange: symbol.lineRange, declarationSpan: span };
2649
+ }
2650
+ owner = owner.parent;
2651
+ }
2652
+ return undefined;
2653
+ }
2654
+ function observedTypescriptCallTarget(certified, heuristic) {
2655
+ if (certified !== undefined)
2656
+ return { symbol: certified, confidence: "resolved" };
2657
+ return heuristic === undefined ? undefined : { ...heuristic, confidence: "heuristic" };
2658
+ }
2659
+ function appendTypescriptCall(file, observation, byName, imports, importBindings, bindingScopes, calls) {
2660
+ const { node, sourceFile } = observation;
2661
+ const name = calleeNameFromExpression(node.expression);
2662
+ if (name === undefined || IGNORED_CALL_NAMES.has(name.toLowerCase()))
2663
+ return;
2664
+ const certified = certifiedIdentifierCallTarget(file, node, bindingScopes, byName, importBindings);
2665
+ const heuristic = resolveCallTarget(file.scopePath, name, byName, imports, importBindings);
2666
+ const resolved = observedTypescriptCallTarget(certified, heuristic);
2667
+ if (resolved === undefined)
2668
+ return;
2669
+ const callerDefinition = containingCallableDefinition(file, node, byName);
2670
+ calls.push({
2671
+ callerPath: file.scopePath,
2672
+ callerLine: nodeStartLine(sourceFile, node),
2673
+ callerSpan: nodeSourceSpan(sourceFile, node),
2674
+ ...(callerDefinition === undefined ? {} : { callerDefinition }),
2675
+ calleeName: name,
2676
+ targetName: resolved.symbol.name,
2677
+ targetPath: resolved.symbol.scopePath,
2678
+ targetLineRange: resolved.symbol.lineRange,
2679
+ confidence: resolved.confidence,
2680
+ parser: "typescript-compiler-ast",
2681
+ ...(certified === undefined
2682
+ ? {}
2683
+ : { binding: "lexical", targetDeclarationSpan: certified.declarationSpan }),
2684
+ ...(callReturnsOwnValue(node) ? { resultUsage: "returned" } : {}),
2685
+ ...(callIsDirectlyAwaited(node) ? { awaited: true } : {}),
2686
+ });
2687
+ }
2159
2688
  function collectTypescriptCalls(file, byName, imports, importBindings) {
2160
2689
  const sourceFile = file.syntaxTree;
2161
- if (sourceFile === undefined) {
2690
+ if (sourceFile === undefined)
2162
2691
  return [];
2163
- }
2164
2692
  const calls = [];
2693
+ const bindingScopes = collectCallBindingScopes(sourceFile);
2165
2694
  const visit = (node) => {
2166
- if (typeScriptCompiler().isCallExpression(node)) {
2167
- const name = calleeNameFromExpression(node.expression);
2168
- if (name !== undefined && !IGNORED_CALL_NAMES.has(name.toLowerCase())) {
2169
- const resolved = resolveCallTarget(file.scopePath, name, byName, imports, importBindings);
2170
- if (resolved !== undefined) {
2171
- calls.push({
2172
- callerPath: file.scopePath,
2173
- callerLine: nodeStartLine(sourceFile, node),
2174
- calleeName: name,
2175
- targetName: resolved.symbol.name,
2176
- targetPath: resolved.symbol.scopePath,
2177
- targetLineRange: resolved.symbol.lineRange,
2178
- confidence: resolved.confidence,
2179
- parser: "typescript-compiler-ast",
2180
- });
2181
- }
2182
- }
2183
- }
2695
+ if (typeScriptCompiler().isCallExpression(node))
2696
+ appendTypescriptCall(file, { node, sourceFile }, byName, imports, importBindings, bindingScopes, calls);
2184
2697
  typeScriptCompiler().forEachChild(node, visit);
2185
2698
  };
2186
2699
  visit(sourceFile);
@@ -2306,43 +2819,59 @@ function collectPolyglotReferences(file, byName, importBindings) {
2306
2819
  function isPolyglotImportOrNamespaceLine(line) {
2307
2820
  return /^\s*(?:import|from|package|using|namespace)\b/u.test(line);
2308
2821
  }
2822
+ function appendTypescriptReference(file, observation, byName, importBindings, bindingScopes, references, seen) {
2823
+ const { node, sourceFile } = observation;
2824
+ const certified = certifiedIdentifierTarget(file, node, bindingScopes, byName, importBindings);
2825
+ const resolved = certified === undefined
2826
+ ? resolveReferenceTarget(file, node.text, byName, importBindings)
2827
+ : { symbol: certified, confidence: "resolved" };
2828
+ const range = nodeLineRange(sourceFile, node);
2829
+ const span = nodeSourceSpan(sourceFile, node);
2830
+ if (resolved === undefined ||
2831
+ (resolved.symbol.scopePath === file.scopePath &&
2832
+ sameLineRange(resolved.symbol.lineRange, range) &&
2833
+ (certified === undefined || sameSourceSpan(resolved.symbol.declarationSpan, span))))
2834
+ return;
2835
+ const key = [
2836
+ file.scopePath,
2837
+ String(range.startLine),
2838
+ String(range.endLine),
2839
+ String(span.startColumn),
2840
+ String(span.endColumn),
2841
+ node.text,
2842
+ resolved.symbol.scopePath,
2843
+ resolved.symbol.name,
2844
+ ].join("|");
2845
+ if (seen.has(key))
2846
+ return;
2847
+ seen.add(key);
2848
+ const referencerDefinition = certified === undefined ? undefined : containingCallableDefinition(file, node, byName);
2849
+ references.push({
2850
+ referencerPath: file.scopePath,
2851
+ referenceLineRange: range,
2852
+ referenceSpan: span,
2853
+ ...(referencerDefinition === undefined ? {} : { referencerDefinition }),
2854
+ referenceName: node.text,
2855
+ targetName: resolved.symbol.name,
2856
+ targetPath: resolved.symbol.scopePath,
2857
+ targetLineRange: resolved.symbol.lineRange,
2858
+ confidence: resolved.confidence,
2859
+ parser: "typescript-compiler-ast",
2860
+ ...(certified === undefined
2861
+ ? {}
2862
+ : { binding: "lexical", targetDeclarationSpan: certified.declarationSpan }),
2863
+ });
2864
+ }
2309
2865
  function collectTypescriptReferences(file, byName, importBindings) {
2310
2866
  const sourceFile = file.syntaxTree;
2311
- if (sourceFile === undefined) {
2867
+ if (sourceFile === undefined)
2312
2868
  return [];
2313
- }
2314
2869
  const references = [];
2315
2870
  const seen = new Set();
2871
+ const bindingScopes = collectCallBindingScopes(sourceFile);
2316
2872
  const visit = (node) => {
2317
- if (typeScriptCompiler().isIdentifier(node) && !isNonReferenceIdentifier(node)) {
2318
- const resolved = resolveReferenceTarget(file, node.text, byName, importBindings);
2319
- const range = nodeLineRange(sourceFile, node);
2320
- if (resolved !== undefined &&
2321
- !(resolved.symbol.scopePath === file.scopePath &&
2322
- sameLineRange(resolved.symbol.lineRange, range))) {
2323
- const key = [
2324
- file.scopePath,
2325
- String(range.startLine),
2326
- String(range.endLine),
2327
- node.text,
2328
- resolved.symbol.scopePath,
2329
- resolved.symbol.name,
2330
- ].join("|");
2331
- if (!seen.has(key)) {
2332
- seen.add(key);
2333
- references.push({
2334
- referencerPath: file.scopePath,
2335
- referenceLineRange: range,
2336
- referenceName: node.text,
2337
- targetName: resolved.symbol.name,
2338
- targetPath: resolved.symbol.scopePath,
2339
- targetLineRange: resolved.symbol.lineRange,
2340
- confidence: resolved.confidence,
2341
- parser: "typescript-compiler-ast",
2342
- });
2343
- }
2344
- }
2345
- }
2873
+ if (typeScriptCompiler().isIdentifier(node) && !isNonReferenceIdentifier(node))
2874
+ appendTypescriptReference(file, { node, sourceFile }, byName, importBindings, bindingScopes, references, seen);
2346
2875
  typeScriptCompiler().forEachChild(node, visit);
2347
2876
  };
2348
2877
  visit(sourceFile);
@@ -3419,7 +3948,7 @@ function cacheFingerprintFor(scope, limits, fs, candidates, candidateLimitReache
3419
3948
  return JSON.stringify({
3420
3949
  root: scope.workspace.root,
3421
3950
  scope: scope.relativePaths,
3422
- maxFilesScanned: limits.maxFilesScanned ?? 2048,
3951
+ maxFilesScanned: limits.maxFilesScanned,
3423
3952
  maxBytesPerFileScanned: limits.maxBytesPerFileScanned,
3424
3953
  codeIndexMaxSourceBytes: CODE_INDEX_MAX_SOURCE_BYTES,
3425
3954
  candidateLimitReached,
@@ -3452,9 +3981,13 @@ function sourceReadCap(limits) {
3452
3981
  function sourceText(scopePath, text, language, partial) {
3453
3982
  return { scopePath, text, language, partial };
3454
3983
  }
3455
- function readOversizedSourcePrefix(scope, limits, fs, relativePath, language) {
3984
+ function readOversizedSourcePrefix(scope, limits, fs, relativePath, language, assertSourceAllowed) {
3456
3985
  try {
3457
- const text = readWorkspaceFilePrefixForEvidence(scope.workspace, relativePath, sourceReadCap(limits), fs);
3986
+ const text = readWorkspaceFilePrefixForEvidence(scope.workspace, relativePath, sourceReadCap(limits), fs, assertSourceAllowed === undefined
3987
+ ? undefined
3988
+ : () => {
3989
+ assertSourceAllowed(relativePath);
3990
+ });
3458
3991
  return text === undefined || text.length === 0
3459
3992
  ? undefined
3460
3993
  : sourceText(relativePath, text, language, true);
@@ -3463,14 +3996,17 @@ function readOversizedSourcePrefix(scope, limits, fs, relativePath, language) {
3463
3996
  return undefined;
3464
3997
  }
3465
3998
  }
3466
- function readSource(scope, limits, fs, relativePath, language) {
3999
+ function readSource(scope, limits, fs, relativePath, language, readCompleteSource, assertSourceAllowed) {
3467
4000
  try {
3468
- const content = readWorkspaceFile(scope.workspace, relativePath, { maxBytes: sourceReadCap(limits) }, fs);
3469
- return sourceText(relativePath, content.text, language, false);
4001
+ const text = readCompleteSource === undefined
4002
+ ? readWorkspaceFile(scope.workspace, relativePath, { maxBytes: sourceReadCap(limits) }, fs)
4003
+ .text
4004
+ : readCompleteSource(relativePath, sourceReadCap(limits));
4005
+ return sourceText(relativePath, text, language, false);
3470
4006
  }
3471
4007
  catch (error) {
3472
4008
  if (error instanceof FileTooLargeError) {
3473
- const partial = readOversizedSourcePrefix(scope, limits, fs, relativePath, language);
4009
+ const partial = readOversizedSourcePrefix(scope, limits, fs, relativePath, language, assertSourceAllowed);
3474
4010
  if (partial !== undefined) {
3475
4011
  return partial;
3476
4012
  }
@@ -3489,6 +4025,7 @@ function parseSourceFile(source) {
3489
4025
  scopePath: source.scopePath,
3490
4026
  text: source.text,
3491
4027
  language: source.language,
4028
+ partial: source.partial,
3492
4029
  parser,
3493
4030
  syntaxTree: parser === "typescript-compiler-ast" ? parseTypescriptSource(source) : undefined,
3494
4031
  };
@@ -3497,7 +4034,7 @@ function parseSourceFile(source) {
3497
4034
  // sides of it: a stop observed before the file is recorded discards that file entirely, while a
3498
4035
  // stop observed once it is recorded keeps it and truncates only the remaining candidates.
3499
4036
  function recordCandidateSource(args, relativePath, language) {
3500
- const source = readSource(args.scope, args.limits, args.fs, relativePath, language);
4037
+ const source = readSource(args.scope, args.limits, args.fs, relativePath, language, args.readCompleteSource, args.assertSourceAllowed);
3501
4038
  if (structuralExecutionStopped(args.control)) {
3502
4039
  args.tally.truncated = true;
3503
4040
  return "stop";
@@ -3528,9 +4065,17 @@ function readCandidateInto(args, relativePath) {
3528
4065
  return "continue";
3529
4066
  }
3530
4067
  }
3531
- function readSources(scope, limits, fs, candidates, control) {
4068
+ function readSources(scope, limits, fs, candidates, control, readCompleteSource, assertSourceAllowed) {
3532
4069
  const tally = { files: [], skipped: 0, partiallyIndexed: 0, truncated: false };
3533
- const args = { scope, limits, fs, control, tally };
4070
+ const args = {
4071
+ scope,
4072
+ limits,
4073
+ fs,
4074
+ control,
4075
+ tally,
4076
+ readCompleteSource,
4077
+ assertSourceAllowed,
4078
+ };
3534
4079
  for (const candidate of candidates) {
3535
4080
  if (structuralExecutionStopped(control)) {
3536
4081
  tally.truncated = true;
@@ -3569,6 +4114,16 @@ export function buildCodeIntelligenceIndex(scope, limits, fs, deps) {
3569
4114
  createStructuralExecutionControl(limits.elapsedMsMax, deps?.nowMs ?? Date.now, deps?.signal);
3570
4115
  return buildCodeIntelligenceIndexFromCandidates(scope, limits, fs, gatherCandidatesWithControl(scope, limits, fs, executionControl), { ...deps, executionControl });
3571
4116
  }
4117
+ function preferredCodeSources(files, preferences) {
4118
+ const available = new Set(files.map((file) => file.relativePath));
4119
+ const priority = new Map([...new Set(preferences)]
4120
+ .filter((path) => available.has(path))
4121
+ .map((path, index) => [path, index]));
4122
+ if (priority.size === 0)
4123
+ return files;
4124
+ return [...files].sort((left, right) => (priority.get(left.relativePath) ?? priority.size) -
4125
+ (priority.get(right.relativePath) ?? priority.size));
4126
+ }
3572
4127
  // Internal owning-layer entry point for one request-scoped structural inventory. The public
3573
4128
  // builder above deliberately keeps its established cold-call behaviour; the structural adapter
3574
4129
  // request context calls this variant so concurrent adapter queries do not rediscover the same
@@ -3582,9 +4137,9 @@ export function buildCodeIntelligenceIndexFromCandidates(scope, limits, fs, cand
3582
4137
  // otherwise resolvable workspace edges into heuristics. Rank that reservation by the nearest
3583
4138
  // ancestor of a source guaranteed to remain inside the same cap, so unrelated manifests cannot
3584
4139
  // crowd out the selected source tree's resolver configuration.
3585
- const sourceInputs = candidateSet.files.filter((file) => isIndexable(file.relativePath));
4140
+ const sourceInputs = preferredCodeSources(candidateSet.files.filter((file) => isIndexable(file.relativePath)), deps?.preferredSourcePaths);
3586
4141
  const metadataInputs = candidateSet.files.filter((file) => !isIndexable(file.relativePath) && isImportResolverMetadataPath(file.relativePath));
3587
- const fileBudget = Math.max(0, limits.maxFilesScanned ?? 2048);
4142
+ const fileBudget = Math.max(0, limits.maxFilesScanned ?? candidateSet.files.length);
3588
4143
  const metadataCapacity = sourceInputs.length === 0 ? fileBudget : Math.floor(fileBudget / 2);
3589
4144
  const guaranteedSourceCapacity = fileBudget - metadataCapacity;
3590
4145
  const rankedMetadata = rankResolverMetadata(metadataInputs, sourceInputs.slice(0, guaranteedSourceCapacity));
@@ -3614,7 +4169,7 @@ export function buildCodeIntelligenceIndexFromCandidates(scope, limits, fs, cand
3614
4169
  indexCache.delete(cacheKey);
3615
4170
  }
3616
4171
  }
3617
- const { files, skipped, partiallyIndexed, truncated } = readSources(scope, limits, fs, candidates, executionControl);
4172
+ const { files, skipped, partiallyIndexed, truncated } = readSources(scope, limits, fs, candidates, executionControl, deps?.readSource, deps?.assertSourceAllowed);
3618
4173
  const pathSet = new Set(files.map((file) => file.scopePath));
3619
4174
  const importResolver = collectTsImportResolverConfig(scope, fs, resolverMetadata, executionControl);
3620
4175
  const buildState = {
@@ -3625,7 +4180,7 @@ export function buildCodeIntelligenceIndexFromCandidates(scope, limits, fs, cand
3625
4180
  const symbols = controlledBuild(executionControl, buildState, [], () => files.flatMap((file) => collectSymbols(file)));
3626
4181
  const reExports = controlledBuild(executionControl, buildState, [], () => files.flatMap((file) => collectTypescriptReExportBindings(file, imports)));
3627
4182
  const defaultExports = controlledBuild(executionControl, buildState, [], () => files.flatMap((file) => collectTypescriptDefaultExports(file)));
3628
- const reExportResolver = buildTypescriptReExportResolverContext(reExports, defaultExports, symbols);
4183
+ const reExportResolver = buildTypescriptReExportResolverContext(reExports, defaultExports, symbols, files, executionControl, certifiedModuleImportsByFile(imports, pathSet, importResolver, executionControl));
3629
4184
  const importBindings = controlledBuild(executionControl, buildState, [], () => files.flatMap((file) => file.syntaxTree === undefined
3630
4185
  ? collectPolyglotImportBindings(file, imports)
3631
4186
  : collectTypescriptImportBindings(file, imports, reExportResolver)));