@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.
- package/README.md +10 -2
- package/dist/ui/csp-hashes.json +7 -7
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +12 -12
- package/dist/ui/static/__next._full.txt +23 -22
- package/dist/ui/static/__next._tree.txt +2 -2
- package/dist/ui/static/_next/static/chunks/014h2nyfet3kr.js +1 -0
- package/dist/ui/static/_next/static/chunks/02ahxxpsbao7z.js +1 -0
- package/dist/ui/static/_next/static/chunks/0851fl0j1ja4e.js +1 -0
- package/dist/ui/static/_next/static/chunks/08896ukd2zxg6.js +1 -0
- package/dist/ui/static/_next/static/chunks/08nml2svyd9vv.js +4 -0
- package/dist/ui/static/_next/static/chunks/08tg5xjyy073b.js +1 -0
- package/dist/ui/static/_next/static/chunks/09p2ty64ellxo.js +1 -0
- package/dist/ui/static/_next/static/chunks/0b7xat6jxvrmr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{196257vfyrtgu.js → 0d3a8-uxb000v.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{388eokaf_2t9k.js → 0jjhji-e9mg99.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0jtp8te-03j1-.js +1 -0
- package/dist/ui/static/_next/static/chunks/0lw_ax6yn_z8w.js +1 -0
- package/dist/ui/static/_next/static/chunks/0oocu54xdbxf3.js +2 -0
- package/dist/ui/static/_next/static/chunks/{3h-rh_lx0l8_3.js → 0pf5ot48kepng.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0rs9egrg2q85w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3hclt6m3ok4n9.js → 0rsutf6da798_.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0rw0et8bt6w-b.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2b_t95bbpmtej.js → 0su17ctiaqfp0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0wok-g3ndtvch.js +1 -0
- package/dist/ui/static/_next/static/chunks/0y3402xorco2c.js +1 -0
- package/dist/ui/static/_next/static/chunks/10p1rdlk7n_9w.js +1 -0
- package/dist/ui/static/_next/static/chunks/12aem44im45f-.js +1 -0
- package/dist/ui/static/_next/static/chunks/18kcx5kpyxr16.js +1 -0
- package/dist/ui/static/_next/static/chunks/1ggcq_lho062y.js +1 -0
- package/dist/ui/static/_next/static/chunks/1o-own3kgpojf.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0l72usw6suk0h.js → 1osovjtjgxmbl.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1uu9slkxpbe4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/1vy80v9kp_rqv.js +1 -0
- package/dist/ui/static/_next/static/chunks/1x-sfb1_rl15-.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zqfkyeqq5cl8.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3603jy78awb1p.js → 1zw11x_e-3fzu.js} +1 -1
- package/dist/ui/static/_next/static/chunks/20-u8pg5ve_cz.js +1 -0
- package/dist/ui/static/_next/static/chunks/22zxuap4am9bs.js +1 -0
- package/dist/ui/static/_next/static/chunks/23lstlpeh2rb-.js +1 -0
- package/dist/ui/static/_next/static/chunks/261euyxjrb0lv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2astwwmbb8e53.js +1 -0
- package/dist/ui/static/_next/static/chunks/2duxlo7cg_s7_.js +3 -0
- package/dist/ui/static/_next/static/chunks/2dwrkrp-gqyej.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1m-9yzfpcm7wc.js → 2ef4l5re80dgi.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +1 -0
- package/dist/ui/static/_next/static/chunks/{09zc5hgtb7s-z.js → 2h4vqb2rt3mr1.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3qjkuhjy_-_br.js → 2imh4llefx9d1.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0--s8pmsbkf62.js → 2ta3jr_uw2j0x.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2y98z-sun8_ew.js → 2u5_pu1uc6seh.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2xd3_a4jlxum2.css +1 -0
- package/dist/ui/static/_next/static/chunks/{0mjsj7bp-ukgh.css → 2yuvdrio9ki3a.css} +26 -9
- package/dist/ui/static/_next/static/chunks/3-pcgkdsv7x4z.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0yzmg9aoglud6.js → 3007ncr8g751a.js} +1 -1
- package/dist/ui/static/_next/static/chunks/307xuhrdmetj7.js +1 -0
- package/dist/ui/static/_next/static/chunks/30og31pxg8wrp.js +1 -0
- package/dist/ui/static/_next/static/chunks/32jgtvf2y-f54.js +1 -0
- package/dist/ui/static/_next/static/chunks/35ivnhnxr9dmz.js +1 -0
- package/dist/ui/static/_next/static/chunks/363iuc3t94rie.js +1 -0
- package/dist/ui/static/_next/static/chunks/37qsy798-g74f.js +1 -0
- package/dist/ui/static/_next/static/chunks/37v998g0cm36x.js +1 -0
- package/dist/ui/static/_next/static/chunks/3b05n-007vc3e.js +1 -0
- package/dist/ui/static/_next/static/chunks/3cpuzx4fetu6y.js +1 -0
- package/dist/ui/static/_next/static/chunks/3d27ozm1boe_5.js +3 -0
- package/dist/ui/static/_next/static/chunks/{1a6ri-sriyu-m.js → 3ftqojkan-5cl.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +1 -0
- package/dist/ui/static/_next/static/chunks/{196x_tfexoucg.js → 3g4px251sg85e.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3hjs3gk92eave.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1n3b0bhd9q0p6.js → 3l3xw2fmr7pct.js} +3 -3
- package/dist/ui/static/_next/static/chunks/3neoxf-shnu-d.js +1 -0
- package/dist/ui/static/_next/static/chunks/3payvp5ps2fne.css +3 -0
- package/dist/ui/static/_next/static/chunks/3q-93bizla3k1.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3eduf6vevclfm.js → 3qbbcm9fuk494.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2ta3xj9td_qot.js → 3rhep1yhgo6a7.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0bpexy600ffpg.js → 3ty06iqiblqi4.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0iu3dyqe7m7_7.js → 3wz98o059mhtf.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2kylv1kq1_4p1.js → 3x2p8mgrihuet.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3xi3iilmw9_vy.js +5 -0
- package/dist/ui/static/_next/static/chunks/3zxbqudoeow_a.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zxwlxhzm5swe.js +1 -0
- package/dist/ui/static/_next/static/chunks/{24u-5fslcj3n9.js → 405vbzo164i84.js} +2 -2
- package/dist/ui/static/_next/static/chunks/42pls95xys34g.js +1 -0
- package/dist/ui/static/_next/static/chunks/43z5mfwx4lk4w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{turbopack-2rwr7ign9ynaa.js → turbopack-34k8wgx0iwdzg.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +21 -20
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +9 -9
- package/dist/ui/static/_not-found/__next._tree.txt +1 -1
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +21 -20
- package/dist/ui/static/atlassian-connectors/__next._full.txt +23 -22
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +11 -11
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +23 -22
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +23 -22
- package/dist/ui/static/launch/__next._full.txt +26 -25
- package/dist/ui/static/launch/__next._tree.txt +2 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +12 -12
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +26 -25
- package/dist/ui/static/local-knowledge/__next._full.txt +26 -25
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +12 -12
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +11 -11
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +26 -25
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.js +26 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +112 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +12 -5
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +14 -6
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.js +363 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/init.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/init.js +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.js +50 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +137 -32
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +24 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +126 -5
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.js +91 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +31 -3
- package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +229 -49
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +313 -24
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +2406 -98
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +2924 -183
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +2489 -206
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +2867 -35
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +35 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +63 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts +37 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.js +67 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts +2 -35
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.js +1 -62
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.js +12 -9
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts +38 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.js +94 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.js +64 -17
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +8 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts +17 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.js +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime.js +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.js +27 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +28 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +27 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +28 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +60 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.js +12 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +70 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +266 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +57 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +4 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts +10 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.js +52 -12
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +5 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.js +29 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.js +151 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.js +11 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +41 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.js +18 -0
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +9 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.js +23 -3
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.js +3 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.js +2 -33
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/html-parser.js +5 -4
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.js +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.js +18 -10
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +103 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.js +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.js +44 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +89 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +617 -129
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +28 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +2 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +50 -5
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.js +54 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +11 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +262 -58
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +143 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +361 -39
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +62 -16
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +30 -15
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +24 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.js +31 -6
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.js +141 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.js +2 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.js +25 -2
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.js +183 -25
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +16 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +47 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +274 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts +11 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.js +21 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +50 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts +14 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.js +33 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +46 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts +51 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.js +97 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +8 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +265 -29
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +37 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +416 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts +5 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.js +14 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.js +305 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts +100 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.js +363 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts +71 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.js +294 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.js +65 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.js +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +201 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +733 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +262 -57
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +185 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.js +57 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.js +14 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.js +50 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +21 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +143 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts +63 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +710 -170
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts +108 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.js +477 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts +2 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +53 -46
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.js +51 -52
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.js +179 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.js +61 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts +7 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.js +48 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.js +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.js +11 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js +28 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.js +48 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +5 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +11 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.js +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts +6 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.js +15 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +17 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +198 -43
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +97 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +1334 -103
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.js +176 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +177 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +131 -38
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +298 -32
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +14 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +213 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +2 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.js +15 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +25 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +227 -40
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +20 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +217 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +20 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +262 -60
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +43 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.js +115 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.js +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.js +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts +100 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.js +435 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts +61 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.js +123 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.js +26 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.js +17 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts +69 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.js +266 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +14 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +761 -122
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +139 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.js +176 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.js +72 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.js +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/correlation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/correlation.js +8 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +39 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +234 -77
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.js +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.js +60 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts +13 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +131 -18
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.js +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.js +87 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.js +0 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +62 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts +128 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.js +213 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +68 -24
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.js +121 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +10 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +280 -88
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.js +11 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts +15 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +445 -45
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.js +74 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.js +282 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.js +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.js +46 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.js +177 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.js +69 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.js +53 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.js +120 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts +56 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.js +194 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.js +133 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.js +103 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.js +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts +22 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +112 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.js +117 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.js +41 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +54 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.js +91 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +61 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts +28 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.js +140 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.js +40 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.js +385 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.js +91 -39
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +43 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.js +247 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.js +198 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts +16 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.js +69 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +106 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +2618 -376
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.js +74 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.js +93 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.js +26 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +23 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +403 -90
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +31 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +485 -99
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +24 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +395 -90
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts +32 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.js +370 -48
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +22 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.js +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.js +25 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.js +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.js +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.js +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts +44 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.js +1053 -83
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.js +190 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.js +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/server.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +159 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.js +4 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.js +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts +20 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +96 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.js +47 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.js +23 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-index-provider.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +9 -25
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +207 -112
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.js +15 -2
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.js +44 -5
- package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.js +142 -49
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.js +14 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch.js +24 -9
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +16 -4
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +198 -25
- package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.js +34 -17
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +32 -2
- package/node_modules/@oscharko-dev/keiko-verification/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/plan.js +25 -16
- package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.js +37 -0
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.js +93 -15
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +16 -16
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +296 -15
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts +7 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +85 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +507 -32
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.js +159 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.js +13 -16
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.js +2 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.js +21 -4
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.js +44 -29
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.js +141 -45
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +91 -15
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts +22 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +661 -106
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.js +3 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +24 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +89 -26
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.js +31 -9
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.js +35 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.js +40 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +11 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +8 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +7 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +26 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +418 -35
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.js +21 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +5 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +32 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +41 -22
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +97 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.js +154 -18
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +6 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +88 -24
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.js +21 -14
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +205 -14
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.js +17 -13
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.js +13 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testSourcePairing.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/types.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +13 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +112 -42
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.js +71 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts +47 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.js +231 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.js +178 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.js +34 -0
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +4 -3
- package/package.json +28 -27
- package/release-impact.catalog.json +100 -0
- package/vendor/oscharko-dev-keiko-activity-log-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.2.0.tgz → oscharko-dev-keiko-connectors-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.2.0.tgz → oscharko-dev-keiko-evaluations-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.2.0.tgz → oscharko-dev-keiko-git-1.2.1.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.2.0.tgz → oscharko-dev-keiko-harness-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.2.0.tgz → oscharko-dev-keiko-memory-capture-1.2.1.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.0.tgz → oscharko-dev-keiko-memory-consolidation-1.2.1.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.2.0.tgz → oscharko-dev-keiko-memory-governance-1.2.1.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.0.tgz → oscharko-dev-keiko-memory-retrieval-1.2.1.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.2.0.tgz → oscharko-dev-keiko-memory-vault-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.0.tgz → oscharko-dev-keiko-quality-intelligence-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.2.0.tgz → oscharko-dev-keiko-sdk-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.1.tgz +0 -0
- package/dist/ui/static/_next/static/chunks/07skh7tlpfo1v.js +0 -1
- package/dist/ui/static/_next/static/chunks/09i_8713x46yr.js +0 -1
- package/dist/ui/static/_next/static/chunks/0a6ri2ug5xf10.js +0 -1
- package/dist/ui/static/_next/static/chunks/0bbrrvuzilpy5.js +0 -1
- package/dist/ui/static/_next/static/chunks/0bg7uh6tq8-dx.js +0 -1
- package/dist/ui/static/_next/static/chunks/0cwy6mtvshbuo.js +0 -1
- package/dist/ui/static/_next/static/chunks/0fpbvpzg-omn0.js +0 -1
- package/dist/ui/static/_next/static/chunks/0fz9qig_5p73f.js +0 -1
- package/dist/ui/static/_next/static/chunks/0hvxxuef1gw9p.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ktvc8fs3spkb.js +0 -1
- package/dist/ui/static/_next/static/chunks/0kvy_ru-kodgv.js +0 -1
- package/dist/ui/static/_next/static/chunks/0parm4c86umwk.js +0 -1
- package/dist/ui/static/_next/static/chunks/0q_08tk2d3m2n.js +0 -1
- package/dist/ui/static/_next/static/chunks/0r2lwkgws6jm8.js +0 -1
- package/dist/ui/static/_next/static/chunks/0t73kckx3olud.js +0 -1
- package/dist/ui/static/_next/static/chunks/0u7vyqk91gjb8.js +0 -1
- package/dist/ui/static/_next/static/chunks/0weojtwxo6qw7.js +0 -1
- package/dist/ui/static/_next/static/chunks/0x-r45yl06rdn.js +0 -1
- package/dist/ui/static/_next/static/chunks/0zlw46qz0crxg.css +0 -1
- package/dist/ui/static/_next/static/chunks/0zuaq_9l5pma_.js +0 -1
- package/dist/ui/static/_next/static/chunks/10kb8j7vggfwk.js +0 -1
- package/dist/ui/static/_next/static/chunks/14qdwomthzucj.js +0 -1
- package/dist/ui/static/_next/static/chunks/1a7ko-_7t4wjo.js +0 -1
- package/dist/ui/static/_next/static/chunks/1czgn62g6km38.js +0 -3
- package/dist/ui/static/_next/static/chunks/1juiifi_xnx68.js +0 -1
- package/dist/ui/static/_next/static/chunks/1wg1s3jm779ro.js +0 -3
- package/dist/ui/static/_next/static/chunks/224bbe_3ksnlw.js +0 -1
- package/dist/ui/static/_next/static/chunks/263_uck8el32f.js +0 -1
- package/dist/ui/static/_next/static/chunks/26gmn1z4oegqh.js +0 -1
- package/dist/ui/static/_next/static/chunks/28ylcw-leje_k.js +0 -1
- package/dist/ui/static/_next/static/chunks/2937s9os9u2tn.js +0 -1
- package/dist/ui/static/_next/static/chunks/29rlw6dih8owf.js +0 -1
- package/dist/ui/static/_next/static/chunks/2hq0zlnvfqol9.js +0 -1
- package/dist/ui/static/_next/static/chunks/2o584howfzzak.js +0 -3
- package/dist/ui/static/_next/static/chunks/2p66e_a0j23r8.js +0 -1
- package/dist/ui/static/_next/static/chunks/2r4vn_6anv2cw.js +0 -5
- package/dist/ui/static/_next/static/chunks/2ribv7pn1hr-l.js +0 -1
- package/dist/ui/static/_next/static/chunks/2tb2nt2wvu643.js +0 -1
- package/dist/ui/static/_next/static/chunks/2yot6vshhc19p.css +0 -1
- package/dist/ui/static/_next/static/chunks/30j8jo5v60ga1.js +0 -2
- package/dist/ui/static/_next/static/chunks/30q9b_aw8driv.js +0 -1
- package/dist/ui/static/_next/static/chunks/387k5c-bf1b2e.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_alxp77ewgk_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_ycy0h8pq58a.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ho1f5n8lir4r.js +0 -1
- package/dist/ui/static/_next/static/chunks/3kgc_j74tblcn.js +0 -1
- package/dist/ui/static/_next/static/chunks/3mxpjroefk8ou.js +0 -1
- package/dist/ui/static/_next/static/chunks/3q5jidle0lb3-.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ua7si017r4dg.js +0 -1
- package/dist/ui/static/_next/static/chunks/3v2iluxqnsug9.css +0 -15
- package/dist/ui/static/_next/static/chunks/3z5f2s7yd35cu.js +0 -1
- package/dist/ui/static/_next/static/chunks/40co1uetczqcs.js +0 -1
- package/vendor/oscharko-dev-keiko-activity-log-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.0.tgz +0 -0
- /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → FS1LLJ_p3joZhfRkXBRhf}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → FS1LLJ_p3joZhfRkXBRhf}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → FS1LLJ_p3joZhfRkXBRhf}/_ssgManifest.js +0 -0
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
|
+
import { observedOwnedCallCycles } from "./grounded-symbol-trace-cycles.js";
|
|
2
3
|
import { CONTEXT_COVERAGE_TRUNCATION_REASONS } from "@oscharko-dev/keiko-contracts/connected-context";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
4
|
+
import { compareStrings } from "@oscharko-dev/keiko-contracts/runtime/comparators";
|
|
5
|
+
import { isDirectEvidenceLookup, resolveQueryTargetDecision, } from "@oscharko-dev/keiko-workflows";
|
|
6
|
+
import { DEFAULT_SEARCH_LIMITS, candidateBucketForPath, evidenceAtomStableId, followSymbolTrace, readExcerpt, RepoSearchUnsupportedFileError, searchText, } from "@oscharko-dev/keiko-workspace";
|
|
7
|
+
import { repositoryConfiguredRouteDeclarations, repositoryRouteQuery, repositorySourceLines, buildMatcher, repositorySourceMaxLineScore, } from "@oscharko-dev/keiko-workspace/code-intelligence";
|
|
5
8
|
import { CancelledError } from "@oscharko-dev/keiko-model-gateway";
|
|
6
9
|
const TRACE_MAX_DEPTH = 3;
|
|
7
10
|
const TRACE_MAX_RECORDS = 48;
|
|
8
11
|
const MAX_DISCOVERY_ATOMS = 12;
|
|
9
12
|
const MAX_DISCOVERED_SYMBOLS = 4;
|
|
10
|
-
const MAX_DISCOVERED_TRACE_HOPS = 2;
|
|
11
13
|
const MAX_DISCOVERY_EXCERPT_BYTES = 4096;
|
|
12
|
-
const
|
|
13
|
-
const ROUTER_HANDLER_RE = /\b(?:router|app|server)\s*\.\s*(?:get|post|put|patch|delete|head|options)\s*\([^,\n]+,\s*([a-z_$][a-z0-9_$]{1,127})\b/giu;
|
|
14
|
-
const CALLED_SYMBOL_RE = /\b([A-Za-z_$][A-Za-z0-9_$]{2,127})\s*\(/gu;
|
|
14
|
+
const ROUTER_HANDLER_RE = /\b(?:router|app|server)\s*\.\s*(\w{3,7})\s*\(\s*(["'])([^"'\n]+)\2\s*,\s*([a-z_$][a-z0-9_$]{0,127})(?=\s*[,)])/giu;
|
|
15
15
|
const ROUTE_TRACE_QUERY_RE = /\b(?:GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS)\b[^\n]*\/[a-z0-9._~!$&'()*+,;=:@%/-]+/iu;
|
|
16
16
|
const TEST_DIRECTORY_PATH_RE = /(?:^|\/)(?:tests?|__tests__)(?:\/|$)/iu;
|
|
17
17
|
const TEST_FILE_PATH_RE = /\.(?:test|spec)\.[^/]+$/iu;
|
|
18
|
-
const IGNORED_CALLED_SYMBOLS = new Set([
|
|
19
|
-
"catch",
|
|
20
|
-
"for",
|
|
21
|
-
"function",
|
|
22
|
-
"if",
|
|
23
|
-
"promise",
|
|
24
|
-
"switch",
|
|
25
|
-
"while",
|
|
26
|
-
]);
|
|
27
18
|
export const GROUNDED_TRACE_SEARCH_LIMITS = {
|
|
28
19
|
...DEFAULT_SEARCH_LIMITS,
|
|
29
20
|
maxMatchesReturned: TRACE_MAX_RECORDS,
|
|
@@ -96,12 +87,16 @@ function eligibleDiscoveryAtoms(atoms) {
|
|
|
96
87
|
!TEST_DIRECTORY_PATH_RE.test(atom.scopePath) &&
|
|
97
88
|
!TEST_FILE_PATH_RE.test(atom.scopePath));
|
|
98
89
|
}
|
|
99
|
-
function discoveryAtoms(atoms) {
|
|
90
|
+
function discoveryAtoms(atoms, maxAtoms = MAX_DISCOVERY_ATOMS) {
|
|
100
91
|
return [...eligibleDiscoveryAtoms(atoms)]
|
|
101
92
|
.sort((a, b) => b.score !== a.score ? b.score - a.score : a.scopePath.localeCompare(b.scopePath))
|
|
102
|
-
.slice(0,
|
|
93
|
+
.slice(0, maxAtoms);
|
|
103
94
|
}
|
|
104
95
|
function compareRouteDiscoveryAtoms(a, b) {
|
|
96
|
+
const certifiedDelta = Number(b.provenance.tool === "endpoint-contract-server-route") -
|
|
97
|
+
Number(a.provenance.tool === "endpoint-contract-server-route");
|
|
98
|
+
if (certifiedDelta !== 0)
|
|
99
|
+
return certifiedDelta;
|
|
105
100
|
const routeDelta = Number(ROUTE_REGISTRATION_PATH_RE.test(b.scopePath)) -
|
|
106
101
|
Number(ROUTE_REGISTRATION_PATH_RE.test(a.scopePath));
|
|
107
102
|
if (routeDelta !== 0)
|
|
@@ -115,19 +110,69 @@ function routeDiscoveryAtoms(atoms) {
|
|
|
115
110
|
.sort(compareRouteDiscoveryAtoms)
|
|
116
111
|
.slice(0, MAX_DISCOVERY_ATOMS);
|
|
117
112
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
function discoveredDefinitionCurrent(input, atom) {
|
|
114
|
+
return ((atom.provenance.tool !== "discovered-symbol-definition" &&
|
|
115
|
+
input.definitionCertificates?.has(atom) !== true) ||
|
|
116
|
+
input.requestContext === undefined ||
|
|
117
|
+
input.requestContext.isCodeIntelligenceSourceCurrent(atom.scopePath));
|
|
118
|
+
}
|
|
119
|
+
async function discoveryExcerptObservation(input, atom) {
|
|
120
|
+
const unavailable = {
|
|
121
|
+
content: "",
|
|
122
|
+
scopePath: atom.scopePath,
|
|
123
|
+
lineRange: undefined,
|
|
124
|
+
truncated: false,
|
|
125
|
+
};
|
|
126
|
+
if (traceWorkStopped(input) || !discoveredDefinitionCurrent(input, atom))
|
|
127
|
+
return unavailable;
|
|
121
128
|
const range = atom.lineRange;
|
|
122
129
|
if (range === undefined)
|
|
123
|
-
return
|
|
124
|
-
const result = await readExcerpt(input.searchScope, {
|
|
130
|
+
return unavailable;
|
|
131
|
+
const result = await readExcerpt(input.searchScope, {
|
|
132
|
+
scopePath: atom.scopePath,
|
|
133
|
+
...range,
|
|
134
|
+
endLine: atom.provenance.tool === "endpoint-contract-server-route"
|
|
135
|
+
? range.startLine + 3
|
|
136
|
+
: range.endLine,
|
|
137
|
+
maxBytes: MAX_DISCOVERY_EXCERPT_BYTES,
|
|
138
|
+
}, {
|
|
125
139
|
fs: input.fs,
|
|
126
140
|
nowMs: input.nowMs,
|
|
127
141
|
...(input.deadlineAtMs === undefined ? {} : { deadlineAtMs: input.deadlineAtMs }),
|
|
128
142
|
...(input.signal === undefined ? {} : { signal: input.signal }),
|
|
129
143
|
});
|
|
130
|
-
|
|
144
|
+
recordObservedDefinitionBytes(input, atom, result);
|
|
145
|
+
return discoveredDefinitionCurrent(input, atom)
|
|
146
|
+
? {
|
|
147
|
+
content: result.content,
|
|
148
|
+
scopePath: atom.scopePath,
|
|
149
|
+
lineRange: result.atom.lineRange,
|
|
150
|
+
truncated: result.truncated,
|
|
151
|
+
anchoredWindowApplied: result.anchoredWindowApplied,
|
|
152
|
+
definition: input.definitionCertificates?.get(atom),
|
|
153
|
+
sourceReference: atom.edge?.kind === "reference",
|
|
154
|
+
}
|
|
155
|
+
: unavailable;
|
|
156
|
+
}
|
|
157
|
+
function recordObservedDefinitionBytes(input, atom, result) {
|
|
158
|
+
const definition = input.definitionCertificates?.get(atom);
|
|
159
|
+
if (definition !== undefined && discoveredDefinitionCurrent(input, atom))
|
|
160
|
+
input.observedDefinitionBytes?.set(definitionIdentity(definition), {
|
|
161
|
+
bytes: Buffer.byteLength(result.content),
|
|
162
|
+
lines: observedLineBudget(result.content, result.atom.lineRange),
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function observedLineBudget(content, range) {
|
|
166
|
+
if (range === undefined)
|
|
167
|
+
return undefined;
|
|
168
|
+
const lines = content.split("\n");
|
|
169
|
+
return {
|
|
170
|
+
startLine: range.startLine,
|
|
171
|
+
lineBytes: lines.map((line) => Buffer.byteLength(line)),
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
async function discoveryExcerpt(input, atom) {
|
|
175
|
+
return (await discoveryExcerptObservation(input, atom)).content;
|
|
131
176
|
}
|
|
132
177
|
function traceWorkStopped(input) {
|
|
133
178
|
if (input.signal?.aborted === true) {
|
|
@@ -135,14 +180,325 @@ function traceWorkStopped(input) {
|
|
|
135
180
|
}
|
|
136
181
|
return input.deadlineAtMs !== undefined && input.nowMs() >= input.deadlineAtMs;
|
|
137
182
|
}
|
|
138
|
-
function handlerSymbolsFromContent(content) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
183
|
+
function handlerSymbolsFromContent(content, scopePath, query) {
|
|
184
|
+
const endpoint = repositoryRouteQuery(query.text);
|
|
185
|
+
if (endpoint === undefined)
|
|
186
|
+
return [];
|
|
187
|
+
const lines = repositorySourceLines(content, scopePath);
|
|
188
|
+
const code = lines.map((line) => line.code).join("\n");
|
|
189
|
+
const structural = lines.map((line) => line.structural).join("\n");
|
|
190
|
+
const configured = repositoryConfiguredRouteDeclarations(code, structural)
|
|
191
|
+
.filter((route) => route.method === endpoint.method && route.path.toLowerCase() === endpoint.path)
|
|
192
|
+
.map((route) => ({ name: route.handler, start: route.handlerStart, end: route.handlerEnd }));
|
|
193
|
+
const fluent = [...code.matchAll(ROUTER_HANDLER_RE)]
|
|
194
|
+
.filter((match) => match[1]?.toLowerCase() === endpoint.method &&
|
|
195
|
+
match[3]?.toLowerCase() === endpoint.path &&
|
|
196
|
+
/^(?:router|app|server)\b/u.test(structural.slice(match.index)))
|
|
197
|
+
.flatMap((match) => {
|
|
198
|
+
const name = match[4];
|
|
199
|
+
if (name === undefined)
|
|
200
|
+
return [];
|
|
201
|
+
const start = match.index + match[0].lastIndexOf(name);
|
|
202
|
+
return [{ name, start, end: start + name.length }];
|
|
203
|
+
});
|
|
204
|
+
return [...configured, ...fluent];
|
|
205
|
+
}
|
|
206
|
+
function observedReferenceSpan(reference, line, column, width) {
|
|
207
|
+
const span = reference.referenceSpan;
|
|
208
|
+
if (span === undefined)
|
|
209
|
+
return false;
|
|
210
|
+
return span.startColumn === column && span.endLine === line && span.endColumn === column + width;
|
|
211
|
+
}
|
|
212
|
+
function observedHandlerReference(handler, observation, reference) {
|
|
213
|
+
if (observation.lineRange === undefined)
|
|
214
|
+
return false;
|
|
215
|
+
const start = observation.content.slice(0, handler.start).split("\n");
|
|
216
|
+
const line = observation.lineRange.startLine + start.length - 1;
|
|
217
|
+
const column = start.at(-1)?.length ?? 0;
|
|
218
|
+
return (reference.referencerPath === observation.scopePath &&
|
|
219
|
+
reference.referenceName === handler.name &&
|
|
220
|
+
reference.referenceLineRange.startLine === line &&
|
|
221
|
+
observedReferenceSpan(reference, line, column, handler.name.length));
|
|
222
|
+
}
|
|
223
|
+
function boundRouteHandlerTargets(input, observation, index) {
|
|
224
|
+
if (input.requestContext?.isCodeIntelligenceSourceCurrent(observation.scopePath) !== true)
|
|
225
|
+
return [];
|
|
226
|
+
return handlerSymbolsFromContent(observation.content, observation.scopePath, input.query)
|
|
227
|
+
.flatMap((handler) => index.references.filter((reference) => reference.parser === "typescript-compiler-ast" &&
|
|
228
|
+
reference.binding === "lexical" &&
|
|
229
|
+
reference.confidence === "resolved" &&
|
|
230
|
+
observedHandlerReference(handler, observation, reference)))
|
|
231
|
+
.flatMap((reference) => {
|
|
232
|
+
const definition = indexedReferenceTarget(reference, index);
|
|
233
|
+
return definition !== undefined &&
|
|
234
|
+
input.requestContext?.isCodeIntelligenceSourceCurrent(definition.scopePath) === true
|
|
235
|
+
? [{ symbol: definition.name, definition }]
|
|
236
|
+
: [];
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
function indexedReferenceTarget(reference, index) {
|
|
240
|
+
return index.symbols.find((symbol) => symbol.parser === "typescript-compiler-ast" &&
|
|
241
|
+
symbol.name === reference.targetName &&
|
|
242
|
+
symbol.scopePath === reference.targetPath &&
|
|
243
|
+
symbol.lineRange.startLine === reference.targetLineRange.startLine &&
|
|
244
|
+
sameDeclarationSpan(symbol.declarationSpan, reference.targetDeclarationSpan));
|
|
142
245
|
}
|
|
143
246
|
async function discoveredHandlerSymbols(input) {
|
|
144
|
-
const
|
|
145
|
-
|
|
247
|
+
const candidates = routeDiscoveryAtoms(input.atoms);
|
|
248
|
+
const index = await admittedDefinitionIndex(input, candidates);
|
|
249
|
+
if (index === undefined)
|
|
250
|
+
return [];
|
|
251
|
+
const observations = await Promise.all(candidates.map(async (atom) => discoveryExcerptObservation(input, atom)));
|
|
252
|
+
const targets = observations.flatMap((observation) => boundRouteHandlerTargets(input, observation, index));
|
|
253
|
+
return [
|
|
254
|
+
...new Map(targets.map((target) => [definitionIdentity(target.definition), target])).values(),
|
|
255
|
+
].slice(0, MAX_DISCOVERED_SYMBOLS);
|
|
256
|
+
}
|
|
257
|
+
function addressedContextualPaths(input) {
|
|
258
|
+
return new Set(input.atoms
|
|
259
|
+
.filter((atom) => atom.provenance.tool === "repo.selectedFile" && atom.lineRange === undefined)
|
|
260
|
+
.map((atom) => atom.scopePath));
|
|
261
|
+
}
|
|
262
|
+
function contextualDiscoveryAtoms(input) {
|
|
263
|
+
const atoms = input.atoms.filter((atom) => atom.provenance.kind === "lexical-search" &&
|
|
264
|
+
atom.provenance.tool === "repo.searchText" &&
|
|
265
|
+
candidateBucketForPath(atom.scopePath) === "source");
|
|
266
|
+
const addressed = addressedContextualPaths(input);
|
|
267
|
+
const primary = atoms.filter((atom) => addressed.has(atom.scopePath));
|
|
268
|
+
return primary.length === 0 ? discoveryAtoms(atoms) : eligibleDiscoveryAtoms(primary);
|
|
269
|
+
}
|
|
270
|
+
function indexedCallableOwners(index, scopePath) {
|
|
271
|
+
const calls = index.calls.filter((call) => call.parser === "typescript-compiler-ast" &&
|
|
272
|
+
call.binding === "lexical" &&
|
|
273
|
+
call.confidence === "resolved" &&
|
|
274
|
+
call.callerPath === scopePath);
|
|
275
|
+
const references = index.references.filter((reference) => reference.parser === "typescript-compiler-ast" &&
|
|
276
|
+
reference.binding === "lexical" &&
|
|
277
|
+
reference.confidence === "resolved" &&
|
|
278
|
+
reference.referencerPath === scopePath);
|
|
279
|
+
return [
|
|
280
|
+
...calls.map((call) => call.callerDefinition),
|
|
281
|
+
...references.map((reference) => reference.referencerDefinition),
|
|
282
|
+
];
|
|
283
|
+
}
|
|
284
|
+
function certifiedCallableDefinition(symbol, owners) {
|
|
285
|
+
if (symbol.kind === "function" || symbol.kind === "method")
|
|
286
|
+
return true;
|
|
287
|
+
return (symbol.kind === "constant" &&
|
|
288
|
+
owners.some((owner) => owner?.name === symbol.name &&
|
|
289
|
+
owner.lineRange.startLine === symbol.lineRange.startLine &&
|
|
290
|
+
owner.lineRange.endLine === symbol.lineRange.endLine &&
|
|
291
|
+
sameDeclarationSpan(owner.declarationSpan, symbol.declarationSpan)));
|
|
292
|
+
}
|
|
293
|
+
function unambiguousConstantOwner(definition, index, line) {
|
|
294
|
+
return !index.symbols.some((symbol) => symbol !== definition &&
|
|
295
|
+
symbol.parser === "typescript-compiler-ast" &&
|
|
296
|
+
symbol.kind === "constant" &&
|
|
297
|
+
symbol.scopePath === definition.scopePath &&
|
|
298
|
+
symbol.declarationSpan !== undefined &&
|
|
299
|
+
symbol.lineRange.startLine <= line &&
|
|
300
|
+
symbol.lineRange.endLine >= line);
|
|
301
|
+
}
|
|
302
|
+
function currentCallableOwner(input, index, owners, scopePath, line) {
|
|
303
|
+
if (input.requestContext?.isCodeIntelligenceSourceCurrent(scopePath) !== true)
|
|
304
|
+
return undefined;
|
|
305
|
+
const definitions = index.symbols.filter((symbol) => symbol.parser === "typescript-compiler-ast" &&
|
|
306
|
+
symbol.scopePath === scopePath &&
|
|
307
|
+
symbol.declarationSpan !== undefined &&
|
|
308
|
+
symbol.lineRange.startLine <= line &&
|
|
309
|
+
symbol.lineRange.endLine >= line &&
|
|
310
|
+
certifiedCallableDefinition(symbol, owners));
|
|
311
|
+
const definition = definitions.length === 1 ? definitions[0] : undefined;
|
|
312
|
+
return definition?.kind === "constant" && !unambiguousConstantOwner(definition, index, line)
|
|
313
|
+
? undefined
|
|
314
|
+
: definition;
|
|
315
|
+
}
|
|
316
|
+
function contextualCallableContext(index, path) {
|
|
317
|
+
return {
|
|
318
|
+
index: { ...index, symbols: index.symbols.filter((symbol) => symbol.scopePath === path) },
|
|
319
|
+
owners: indexedCallableOwners(index, path),
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
function contextualCallableTargets(input, observation, context) {
|
|
323
|
+
const startLine = observation.lineRange?.startLine;
|
|
324
|
+
if (startLine === undefined)
|
|
325
|
+
return [];
|
|
326
|
+
const matcher = buildMatcher(input.query);
|
|
327
|
+
return repositorySourceLines(observation.content, observation.scopePath).flatMap((line, offset) => {
|
|
328
|
+
if (line.structural.trim().length === 0 || matcher.match(line.code, line) <= 0)
|
|
329
|
+
return [];
|
|
330
|
+
const definition = currentCallableOwner(input, context.index, context.owners, observation.scopePath, startLine + offset);
|
|
331
|
+
return definition === undefined
|
|
332
|
+
? []
|
|
333
|
+
: [
|
|
334
|
+
{
|
|
335
|
+
target: { symbol: definition.name, definition },
|
|
336
|
+
groups: matcher.matchedQueryGroups?.(line.code) ?? [],
|
|
337
|
+
},
|
|
338
|
+
];
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function contextualTargetSelection(observations, limit) {
|
|
342
|
+
const unique = new Map();
|
|
343
|
+
for (const observed of observations) {
|
|
344
|
+
const id = definitionIdentity(observed.target.definition);
|
|
345
|
+
const value = unique.get(id) ?? { target: observed.target, groups: new Set() };
|
|
346
|
+
for (const group of observed.groups)
|
|
347
|
+
value.groups.add(group);
|
|
348
|
+
unique.set(id, value);
|
|
349
|
+
}
|
|
350
|
+
const pending = [...unique.values()];
|
|
351
|
+
const covered = new Set();
|
|
352
|
+
const selected = [];
|
|
353
|
+
while (pending.length > 0 && selected.length < limit) {
|
|
354
|
+
const novelty = (groups) => [...groups].filter((group) => !covered.has(group)).length;
|
|
355
|
+
const best = pending.reduce((chosen, value, index) => novelty(value.groups) > novelty(pending[chosen]?.groups ?? new Set()) ? index : chosen, 0);
|
|
356
|
+
const value = pending.splice(best, 1)[0];
|
|
357
|
+
if (value === undefined)
|
|
358
|
+
break;
|
|
359
|
+
selected.push(value.target);
|
|
360
|
+
for (const group of value.groups)
|
|
361
|
+
covered.add(group);
|
|
362
|
+
}
|
|
363
|
+
return selected;
|
|
364
|
+
}
|
|
365
|
+
function currentCallableRanges(input, index, path, atoms) {
|
|
366
|
+
if (input.requestContext?.isCodeIntelligenceSourceCurrent(path) !== true)
|
|
367
|
+
return [];
|
|
368
|
+
const owners = indexedCallableOwners(index, path);
|
|
369
|
+
const symbols = index.symbols.filter((symbol) => symbol.scopePath === path &&
|
|
370
|
+
symbol.parser === "typescript-compiler-ast" &&
|
|
371
|
+
symbol.declarationSpan !== undefined &&
|
|
372
|
+
certifiedCallableDefinition(symbol, owners));
|
|
373
|
+
return [...atoms]
|
|
374
|
+
.sort((left, right) => right.score - left.score)
|
|
375
|
+
.flatMap((atom) => {
|
|
376
|
+
const range = atom.lineRange;
|
|
377
|
+
return range !== undefined &&
|
|
378
|
+
symbols.some((symbol) => symbol.lineRange.startLine <= range.endLine &&
|
|
379
|
+
symbol.lineRange.endLine >= range.startLine)
|
|
380
|
+
? [range]
|
|
381
|
+
: [];
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
async function addressedContextualObservations(input, index, candidates) {
|
|
385
|
+
const paths = [...new Set(candidates.map((atom) => atom.scopePath))].slice(0, MAX_DISCOVERY_ATOMS);
|
|
386
|
+
const totalBytes = MAX_DISCOVERY_ATOMS * MAX_DISCOVERY_EXCERPT_BYTES;
|
|
387
|
+
const observations = [];
|
|
388
|
+
for (const path of paths) {
|
|
389
|
+
if (traceWorkStopped(input))
|
|
390
|
+
break;
|
|
391
|
+
const pathAtoms = candidates.filter((atom) => atom.scopePath === path);
|
|
392
|
+
const ranges = currentCallableRanges(input, index, path, pathAtoms);
|
|
393
|
+
if (ranges.length === 0)
|
|
394
|
+
continue;
|
|
395
|
+
const result = await contextualBatchObservation(input, path, ranges, Math.floor(totalBytes / paths.length), pathAtoms.map((atom) => atom.stableId));
|
|
396
|
+
observations.push(...result);
|
|
397
|
+
}
|
|
398
|
+
return observations;
|
|
399
|
+
}
|
|
400
|
+
async function contextualBatchObservation(input, path, ranges, bytes, impactedAtomIds) {
|
|
401
|
+
try {
|
|
402
|
+
const result = await readExcerpt(input.searchScope, {
|
|
403
|
+
scopePath: path,
|
|
404
|
+
query: input.query,
|
|
405
|
+
startLine: Math.min(...ranges.map((range) => range.startLine)),
|
|
406
|
+
endLine: Math.max(...ranges.map((range) => range.endLine)),
|
|
407
|
+
ranges: [],
|
|
408
|
+
rangeQueues: [ranges],
|
|
409
|
+
maxBytes: MAX_DISCOVERY_EXCERPT_BYTES,
|
|
410
|
+
maxTotalBytes: bytes,
|
|
411
|
+
}, {
|
|
412
|
+
fs: input.fs,
|
|
413
|
+
nowMs: input.nowMs,
|
|
414
|
+
...(input.deadlineAtMs === undefined ? {} : { deadlineAtMs: input.deadlineAtMs }),
|
|
415
|
+
...(input.signal === undefined ? {} : { signal: input.signal }),
|
|
416
|
+
});
|
|
417
|
+
if (input.requestContext?.isCodeIntelligenceSourceCurrent(path) !== true)
|
|
418
|
+
return [];
|
|
419
|
+
return (result.windows ?? [result]).map((window) => ({
|
|
420
|
+
content: window.content,
|
|
421
|
+
scopePath: path,
|
|
422
|
+
lineRange: window.atom.lineRange,
|
|
423
|
+
truncated: window.truncated,
|
|
424
|
+
anchoredWindowApplied: window.anchoredWindowApplied,
|
|
425
|
+
}));
|
|
426
|
+
}
|
|
427
|
+
catch (error) {
|
|
428
|
+
if (!contextualReadUnavailable(error))
|
|
429
|
+
throw error;
|
|
430
|
+
return contextualUnavailableObservation(input, impactedAtomIds);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
async function discoveredContextualSymbols(input) {
|
|
434
|
+
const candidates = contextualDiscoveryAtoms(input);
|
|
435
|
+
const index = await admittedDefinitionIndex(input, candidates);
|
|
436
|
+
if (index === undefined)
|
|
437
|
+
return [];
|
|
438
|
+
const addressed = addressedContextualPaths(input);
|
|
439
|
+
const continuationPaths = contextualContinuationPaths(index);
|
|
440
|
+
const primary = candidates.some((atom) => addressed.has(atom.scopePath));
|
|
441
|
+
const observations = primary
|
|
442
|
+
? await addressedContextualObservations(input, index, candidates)
|
|
443
|
+
: (await Promise.all(candidates
|
|
444
|
+
.filter((atom) => continuationPaths.has(atom.scopePath))
|
|
445
|
+
.map((atom) => contextualExcerptObservation(input, atom)))).flat();
|
|
446
|
+
const contexts = new Map();
|
|
447
|
+
const targets = observations.flatMap((observation) => {
|
|
448
|
+
const context = contexts.get(observation.scopePath) ??
|
|
449
|
+
contextualCallableContext(index, observation.scopePath);
|
|
450
|
+
contexts.set(observation.scopePath, context);
|
|
451
|
+
return contextualCallableTargets(input, observation, context);
|
|
452
|
+
});
|
|
453
|
+
return primary
|
|
454
|
+
? contextualTargetSelection(targets, certifiedTargetCapacity(index, input.query))
|
|
455
|
+
: [
|
|
456
|
+
...new Map(targets.map(({ target }) => [definitionIdentity(target.definition), target])).values(),
|
|
457
|
+
].slice(0, MAX_DISCOVERED_SYMBOLS);
|
|
458
|
+
}
|
|
459
|
+
async function contextualExcerptObservation(input, atom) {
|
|
460
|
+
try {
|
|
461
|
+
return [await discoveryExcerptObservation(input, atom)];
|
|
462
|
+
}
|
|
463
|
+
catch (error) {
|
|
464
|
+
if (!contextualReadUnavailable(error))
|
|
465
|
+
throw error;
|
|
466
|
+
return contextualUnavailableObservation(input, [atom.stableId]);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
function contextualReadUnavailable(error) {
|
|
470
|
+
return (error instanceof RepoSearchUnsupportedFileError &&
|
|
471
|
+
(error.reason === "file-unreadable" || error.reason === "io-error" || error.reason === "binary"));
|
|
472
|
+
}
|
|
473
|
+
function contextualUnavailableObservation(input, impactedAtomIds = []) {
|
|
474
|
+
input.contextualReadFailures?.push({
|
|
475
|
+
kind: "tool-unavailable",
|
|
476
|
+
claim: "Contextual source definition evidence is unavailable during excerpt reading.",
|
|
477
|
+
impactedAtomIds,
|
|
478
|
+
emittedAtMs: input.nowMs(),
|
|
479
|
+
});
|
|
480
|
+
return [];
|
|
481
|
+
}
|
|
482
|
+
function contextualContinuationPaths(index) {
|
|
483
|
+
return new Set([
|
|
484
|
+
...index.calls
|
|
485
|
+
.filter((call) => call.parser === "typescript-compiler-ast" &&
|
|
486
|
+
call.binding === "lexical" &&
|
|
487
|
+
call.confidence === "resolved" &&
|
|
488
|
+
call.callerDefinition !== undefined)
|
|
489
|
+
.map((call) => call.callerPath),
|
|
490
|
+
...index.references
|
|
491
|
+
.filter((reference) => reference.parser === "typescript-compiler-ast" &&
|
|
492
|
+
reference.binding === "lexical" &&
|
|
493
|
+
reference.confidence === "resolved" &&
|
|
494
|
+
reference.referencerDefinition !== undefined)
|
|
495
|
+
.map((reference) => reference.referencerPath),
|
|
496
|
+
]);
|
|
497
|
+
}
|
|
498
|
+
export function contextualDiscoveredSymbolTraceRequested(query, anchors) {
|
|
499
|
+
return (!ROUTE_TRACE_QUERY_RE.test(query.text) &&
|
|
500
|
+
query.kind === "natural-language" &&
|
|
501
|
+
resolveQueryTargetDecision(query, anchors).kind === "contextual");
|
|
146
502
|
}
|
|
147
503
|
function exactSymbolQuery(symbol, nowMs) {
|
|
148
504
|
return {
|
|
@@ -153,8 +509,8 @@ function exactSymbolQuery(symbol, nowMs) {
|
|
|
153
509
|
emittedAtMs: nowMs(),
|
|
154
510
|
};
|
|
155
511
|
}
|
|
156
|
-
async function searchDiscoveredSymbol(input,
|
|
157
|
-
const query = exactSymbolQuery(symbol, input.nowMs);
|
|
512
|
+
async function searchDiscoveredSymbol(input, target) {
|
|
513
|
+
const query = exactSymbolQuery(target.symbol, input.nowMs);
|
|
158
514
|
const requestDeps = {
|
|
159
515
|
searchHints: { retrievalIntent: "targeted-code-search" },
|
|
160
516
|
...(input.signal === undefined ? {} : { signal: input.signal }),
|
|
@@ -169,12 +525,11 @@ async function searchDiscoveredSymbol(input, symbol) {
|
|
|
169
525
|
})
|
|
170
526
|
: await input.requestContext.searchText(query, GROUNDED_TRACE_SEARCH_LIMITS, requestDeps);
|
|
171
527
|
return {
|
|
172
|
-
atoms: await promoteDiscoveredSymbolAtoms(input,
|
|
528
|
+
atoms: await promoteDiscoveredSymbolAtoms(input, target, result.atoms),
|
|
173
529
|
coverage: result.coverage,
|
|
174
530
|
};
|
|
175
531
|
}
|
|
176
|
-
function
|
|
177
|
-
const tool = isDeclaration ? "discovered-symbol-definition" : "structural-edge-target";
|
|
532
|
+
function discoveredTraceProvenance(scopeId, atom, tool) {
|
|
178
533
|
const lineRange = atom.lineRange;
|
|
179
534
|
const provenance = {
|
|
180
535
|
kind: "structural",
|
|
@@ -190,74 +545,642 @@ function discoveredTraceAtom(scopeId, atom, isDeclaration) {
|
|
|
190
545
|
provenanceKind: provenance.kind,
|
|
191
546
|
provenanceTool: tool,
|
|
192
547
|
queryFingerprint: provenance.queryFingerprint,
|
|
548
|
+
edge: atom.edge,
|
|
193
549
|
}),
|
|
194
|
-
score: isDeclaration ? 1 : Math.max(0.6, atom.score * 0.75),
|
|
195
550
|
lineRange,
|
|
196
551
|
provenance,
|
|
197
552
|
};
|
|
198
553
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
554
|
+
function discoveredTraceAtom(scopeId, atom, isDeclaration) {
|
|
555
|
+
return {
|
|
556
|
+
...discoveredTraceProvenance(scopeId, atom, isDeclaration ? "discovered-symbol-definition" : "structural-edge-target"),
|
|
557
|
+
score: isDeclaration ? atom.score : Math.max(0.6, atom.score * 0.75),
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
async function admittedDefinitionIndex(input, candidates) {
|
|
561
|
+
if (candidates.length === 0 || input.requestContext === undefined || traceWorkStopped(input))
|
|
562
|
+
return undefined;
|
|
563
|
+
input.requestContext.assertGraphBinding(input.searchScope, input.graphSearchLimits ?? GROUNDED_TRACE_SEARCH_LIMITS, input.fs);
|
|
564
|
+
const index = await input.requestContext.codeIntelligenceIndex();
|
|
565
|
+
input.requestContext.assertGraphBinding(input.searchScope, input.graphSearchLimits ?? GROUNDED_TRACE_SEARCH_LIMITS, input.fs);
|
|
566
|
+
return traceWorkStopped(input) ? undefined : index;
|
|
567
|
+
}
|
|
568
|
+
function sameDeclarationSpan(left, right) {
|
|
569
|
+
if (left === undefined || right === undefined)
|
|
570
|
+
return false;
|
|
571
|
+
return (left.startColumn === right.startColumn &&
|
|
572
|
+
left.endLine === right.endLine &&
|
|
573
|
+
left.endColumn === right.endColumn);
|
|
574
|
+
}
|
|
575
|
+
function definitionIdentity(definition) {
|
|
576
|
+
return JSON.stringify([
|
|
577
|
+
definition.scopePath,
|
|
578
|
+
definition.name,
|
|
579
|
+
definition.lineRange.startLine,
|
|
580
|
+
definition.declarationSpan,
|
|
581
|
+
]);
|
|
582
|
+
}
|
|
583
|
+
function certifyDefinitionAtom(input, atom, definition) {
|
|
584
|
+
input.definitionCertificates?.set(atom, definition);
|
|
585
|
+
return atom;
|
|
586
|
+
}
|
|
587
|
+
async function promotedDiscoveredAtom(input, atom, target) {
|
|
588
|
+
const current = input.requestContext?.isCodeIntelligenceSourceCurrent(atom.scopePath) === true;
|
|
589
|
+
const admitted = current ? { ...atom, lineRange: target.definition.lineRange } : atom;
|
|
590
|
+
await discoveryExcerpt(input, admitted);
|
|
591
|
+
const certified = current && input.requestContext.isCodeIntelligenceSourceCurrent(atom.scopePath);
|
|
592
|
+
const promoted = discoveredTraceAtom(input.scope.scopeId, certified ? admitted : atom, certified);
|
|
593
|
+
return certified ? certifyDefinitionAtom(input, promoted, target.definition) : promoted;
|
|
594
|
+
}
|
|
595
|
+
async function promoteDiscoveredSymbolAtoms(input, target, atoms) {
|
|
596
|
+
const candidates = eligibleDiscoveryAtoms(atoms)
|
|
597
|
+
.filter((atom) => atom.scopePath === target.definition.scopePath &&
|
|
598
|
+
atom.lineRange?.startLine === target.definition.lineRange.startLine)
|
|
599
|
+
.slice(0, MAX_DISCOVERY_ATOMS);
|
|
600
|
+
return Promise.all(candidates.map((atom) => promotedDiscoveredAtom(input, atom, target)));
|
|
601
|
+
}
|
|
602
|
+
function callWithinObservedExcerpt(call, observation) {
|
|
603
|
+
const range = observation.lineRange;
|
|
604
|
+
const span = call.callerSpan;
|
|
605
|
+
if (range === undefined ||
|
|
606
|
+
span === undefined ||
|
|
607
|
+
call.callerLine < range.startLine ||
|
|
608
|
+
span.endLine > range.endLine)
|
|
609
|
+
return false;
|
|
610
|
+
const lines = observation.content.split("\n");
|
|
611
|
+
const start = lines[call.callerLine - range.startLine];
|
|
612
|
+
const end = lines[span.endLine - range.startLine];
|
|
613
|
+
return (start !== undefined &&
|
|
614
|
+
end !== undefined &&
|
|
615
|
+
span.startColumn < start.length &&
|
|
616
|
+
span.endColumn <= end.length);
|
|
617
|
+
}
|
|
618
|
+
function callOwnedByObservation(call, observation) {
|
|
619
|
+
const owner = call.callerDefinition;
|
|
620
|
+
const definition = observation.definition;
|
|
621
|
+
if (owner === undefined || definition === undefined)
|
|
622
|
+
return false;
|
|
623
|
+
return (owner.name === definition.name &&
|
|
624
|
+
owner.lineRange.startLine === definition.lineRange.startLine &&
|
|
625
|
+
sameDeclarationSpan(owner.declarationSpan, definition.declarationSpan));
|
|
626
|
+
}
|
|
627
|
+
function currentObservedSourceCall(input, observation, call) {
|
|
628
|
+
return (call.parser === "typescript-compiler-ast" &&
|
|
629
|
+
call.confidence === "resolved" &&
|
|
630
|
+
call.binding === "lexical" &&
|
|
631
|
+
call.callerPath === observation.scopePath &&
|
|
632
|
+
callWithinObservedExcerpt(call, observation) &&
|
|
633
|
+
input.requestContext?.isCodeIntelligenceSourceCurrent(call.targetPath) === true);
|
|
634
|
+
}
|
|
635
|
+
function sameCallReferenceSource(call, reference) {
|
|
636
|
+
const referenceSpan = reference.referenceSpan;
|
|
637
|
+
const callSpan = call.callerSpan;
|
|
638
|
+
if (referenceSpan === undefined || callSpan === undefined)
|
|
639
|
+
return false;
|
|
640
|
+
return (reference.referencerPath === call.callerPath &&
|
|
641
|
+
reference.referenceName === call.calleeName &&
|
|
642
|
+
reference.referenceLineRange.startLine === call.callerLine &&
|
|
643
|
+
referenceSpan.startColumn === callSpan.startColumn &&
|
|
644
|
+
referenceSpan.endLine === call.callerLine &&
|
|
645
|
+
referenceSpan.endColumn === callSpan.startColumn + call.calleeName.length);
|
|
646
|
+
}
|
|
647
|
+
function sameCallReferenceTarget(call, reference) {
|
|
648
|
+
return (reference.targetPath === call.targetPath &&
|
|
649
|
+
reference.targetName === call.targetName &&
|
|
650
|
+
reference.targetLineRange.startLine === call.targetLineRange.startLine &&
|
|
651
|
+
sameDeclarationSpan(reference.targetDeclarationSpan, call.targetDeclarationSpan));
|
|
652
|
+
}
|
|
653
|
+
function observedCallReference(call, reference) {
|
|
654
|
+
return (reference.parser === "typescript-compiler-ast" &&
|
|
655
|
+
reference.binding === "lexical" &&
|
|
656
|
+
reference.confidence === "resolved" &&
|
|
657
|
+
sameCallReferenceSource(call, reference) &&
|
|
658
|
+
sameCallReferenceTarget(call, reference));
|
|
659
|
+
}
|
|
660
|
+
function observedParentWitness(call, observation) {
|
|
661
|
+
const span = call.callerSpan;
|
|
662
|
+
const definition = observation.definition;
|
|
663
|
+
const budget = observedLineBudget(observation.content, observation.lineRange);
|
|
664
|
+
if (span === undefined ||
|
|
665
|
+
definition === undefined ||
|
|
666
|
+
budget === undefined ||
|
|
667
|
+
observation.anchoredWindowApplied === true)
|
|
668
|
+
return undefined;
|
|
669
|
+
const first = call.callerLine - budget.startLine;
|
|
670
|
+
const last = span.endLine - budget.startLine;
|
|
671
|
+
if (first < 0 || last >= budget.lineBytes.length - Number(observation.truncated))
|
|
672
|
+
return undefined;
|
|
673
|
+
return {
|
|
674
|
+
parentIdentity: definitionIdentity(definition),
|
|
675
|
+
targetIdentity: targetIdentity(call),
|
|
676
|
+
startLine: call.callerLine,
|
|
677
|
+
lineRange: { startLine: call.callerLine, endLine: span.endLine },
|
|
678
|
+
lineBytes: budget.lineBytes.slice(first, last + 1),
|
|
679
|
+
callerSpan: span,
|
|
680
|
+
};
|
|
681
|
+
}
|
|
682
|
+
function certifiedBodyCalls(input, observation, index, clipping) {
|
|
683
|
+
if (observation.content.length === 0 ||
|
|
684
|
+
input.requestContext?.isCodeIntelligenceSourceCurrent(observation.scopePath) !== true)
|
|
685
|
+
return [];
|
|
686
|
+
const current = index.calls.filter((call) => currentObservedSourceCall(input, observation, call));
|
|
687
|
+
const unsupported = current.filter((call) => call.callerDefinition === undefined).length;
|
|
688
|
+
if (unsupported > 0) {
|
|
689
|
+
clipping.reasons.add("source-graph-incomplete");
|
|
690
|
+
clipping.frontierOmitted += unsupported;
|
|
691
|
+
}
|
|
692
|
+
return current.flatMap((call) => {
|
|
693
|
+
const parentIdentity = observation.definition === undefined ? undefined : definitionIdentity(observation.definition);
|
|
694
|
+
const parentWitness = observedParentWitness(call, observation);
|
|
695
|
+
if (callOwnedByObservation(call, observation))
|
|
696
|
+
return [
|
|
697
|
+
{
|
|
698
|
+
call,
|
|
699
|
+
sourceReference: observation.sourceReference === true,
|
|
700
|
+
parentIdentity,
|
|
701
|
+
parentWitness: parentWitness === undefined ? undefined : { ...parentWitness, ownedSourceCall: true },
|
|
702
|
+
},
|
|
703
|
+
];
|
|
704
|
+
return call.callerDefinition === undefined &&
|
|
705
|
+
index.references.some((reference) => observedCallReference(call, reference))
|
|
706
|
+
? [{ call, sourceReference: true, parentIdentity, parentWitness }]
|
|
707
|
+
: [];
|
|
212
708
|
});
|
|
213
709
|
}
|
|
214
|
-
function
|
|
215
|
-
return [...
|
|
216
|
-
.
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
!declaresAnySymbol(content, [symbol]));
|
|
710
|
+
function orderedBodyCalls(calls) {
|
|
711
|
+
return [...calls].sort((a, b) => Number(b.call.resultUsage === "returned") - Number(a.call.resultUsage === "returned") ||
|
|
712
|
+
(a.call.resultUsage === "returned"
|
|
713
|
+
? b.call.callerLine - a.call.callerLine
|
|
714
|
+
: a.call.callerLine - b.call.callerLine));
|
|
220
715
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
716
|
+
function targetIdentity(call) {
|
|
717
|
+
return JSON.stringify([
|
|
718
|
+
call.targetPath,
|
|
719
|
+
call.targetName,
|
|
720
|
+
call.targetLineRange.startLine,
|
|
721
|
+
call.targetDeclarationSpan,
|
|
722
|
+
]);
|
|
723
|
+
}
|
|
724
|
+
function resolvedTargetAtom(input, call, index) {
|
|
725
|
+
const definition = index.symbols.find((symbol) => symbol.parser === "typescript-compiler-ast" &&
|
|
726
|
+
symbol.scopePath === call.targetPath &&
|
|
727
|
+
symbol.name === call.targetName &&
|
|
728
|
+
symbol.lineRange.startLine === call.targetLineRange.startLine &&
|
|
729
|
+
symbol.lineRange.endLine === call.targetLineRange.endLine &&
|
|
730
|
+
sameDeclarationSpan(symbol.declarationSpan, call.targetDeclarationSpan));
|
|
731
|
+
if (definition === undefined ||
|
|
732
|
+
input.requestContext?.isCodeIntelligenceSourceCurrent(definition.scopePath) !== true)
|
|
733
|
+
return undefined;
|
|
734
|
+
return certifiedDefinitionTargetAtom(input, definition, targetIdentity(call));
|
|
735
|
+
}
|
|
736
|
+
function certifiedDefinitionTargetAtom(input, definition, identity) {
|
|
737
|
+
const fingerprint = traceFingerprint(input.query, [identity]);
|
|
738
|
+
const provenance = {
|
|
739
|
+
kind: "structural",
|
|
740
|
+
tool: "discovered-symbol-definition",
|
|
741
|
+
queryFingerprint: fingerprint,
|
|
742
|
+
};
|
|
743
|
+
return certifyDefinitionAtom(input, {
|
|
744
|
+
schemaVersion: input.scope.schemaVersion,
|
|
745
|
+
stableId: evidenceAtomStableId({
|
|
746
|
+
scopeId: input.scope.scopeId,
|
|
747
|
+
scopePath: definition.scopePath,
|
|
748
|
+
lineRange: definition.lineRange,
|
|
749
|
+
provenanceKind: provenance.kind,
|
|
750
|
+
provenanceTool: provenance.tool,
|
|
751
|
+
queryFingerprint: fingerprint,
|
|
752
|
+
}),
|
|
753
|
+
scopePath: definition.scopePath,
|
|
754
|
+
lineRange: definition.lineRange,
|
|
755
|
+
score: 0,
|
|
756
|
+
provenance,
|
|
757
|
+
redactionState: "redacted",
|
|
758
|
+
emittedAtMs: input.nowMs(),
|
|
759
|
+
ledgerRef: undefined,
|
|
760
|
+
}, definition);
|
|
761
|
+
}
|
|
762
|
+
function observedReferenceEdge(call) {
|
|
763
|
+
if (call.callerSpan === undefined)
|
|
764
|
+
return undefined;
|
|
765
|
+
return {
|
|
766
|
+
kind: "reference",
|
|
767
|
+
source: {
|
|
768
|
+
scopePath: call.callerPath,
|
|
769
|
+
lineRange: { startLine: call.callerLine, endLine: call.callerSpan.endLine },
|
|
770
|
+
symbol: call.calleeName,
|
|
771
|
+
},
|
|
772
|
+
target: {
|
|
773
|
+
scopePath: call.targetPath,
|
|
774
|
+
lineRange: call.targetLineRange,
|
|
775
|
+
symbol: call.targetName,
|
|
776
|
+
},
|
|
777
|
+
confidence: "resolved",
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
async function certifiedTargetAtom(input, call, index, sourceReference) {
|
|
781
|
+
const target = resolvedTargetAtom(input, call, index);
|
|
782
|
+
if (target === undefined || traceWorkStopped(input))
|
|
783
|
+
return undefined;
|
|
784
|
+
const definition = input.definitionCertificates?.get(target);
|
|
785
|
+
if (definition === undefined)
|
|
786
|
+
return undefined;
|
|
787
|
+
const atom = certifyDefinitionAtom(input, { ...target, lineRange: call.targetLineRange }, definition);
|
|
788
|
+
const observation = await discoveryExcerptObservation(input, atom);
|
|
789
|
+
if (observation.content.length === 0 ||
|
|
790
|
+
input.requestContext?.isCodeIntelligenceSourceCurrent(call.targetPath) !== true)
|
|
791
|
+
return undefined;
|
|
792
|
+
const emitted = observedTargetDefinitionAtom(input, atom, call, observation, sourceReference);
|
|
793
|
+
return emitted === undefined ? undefined : certifyDefinitionAtom(input, emitted, definition);
|
|
794
|
+
}
|
|
795
|
+
function observedTargetDefinitionAtom(input, atom, call, observation, sourceReference) {
|
|
796
|
+
const edge = sourceReference ? observedReferenceEdge(call) : undefined;
|
|
797
|
+
if (sourceReference && edge === undefined)
|
|
798
|
+
return undefined;
|
|
799
|
+
return discoveredTraceProvenance(input.scope.scopeId, {
|
|
800
|
+
...atom,
|
|
801
|
+
...(edge === undefined ? {} : { edge }),
|
|
802
|
+
score: observedDefinitionScore(input.query, observation),
|
|
803
|
+
}, "discovered-symbol-definition");
|
|
804
|
+
}
|
|
805
|
+
function observedDefinitionScore(query, observation) {
|
|
806
|
+
const matcher = buildMatcher(query);
|
|
807
|
+
return repositorySourceMaxLineScore(repositorySourceLines(observation.content, observation.scopePath).map((line) => ({
|
|
808
|
+
score: matcher.match(line.raw, line),
|
|
809
|
+
})));
|
|
810
|
+
}
|
|
811
|
+
function interleaveCallGroup(frontiers) {
|
|
812
|
+
const out = [];
|
|
813
|
+
const length = Math.max(0, ...frontiers.map((frontier) => frontier.length));
|
|
814
|
+
for (let index = 0; index < length; index += 1) {
|
|
815
|
+
for (const frontier of frontiers) {
|
|
816
|
+
const call = frontier[index];
|
|
817
|
+
if (call !== undefined)
|
|
818
|
+
out.push(call);
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
return out;
|
|
822
|
+
}
|
|
823
|
+
function interleaveBodyCalls(frontiers) {
|
|
824
|
+
return [
|
|
825
|
+
...interleaveCallGroup(frontiers.map((calls) => calls.filter((target) => target.call.awaited === true))),
|
|
826
|
+
...interleaveCallGroup(frontiers.map((calls) => calls.filter((target) => target.call.awaited !== true))),
|
|
827
|
+
];
|
|
828
|
+
}
|
|
829
|
+
function boundedDefinitionObservations(input, atoms, clipping, query) {
|
|
830
|
+
const definitions = eligibleDiscoveryAtoms(atoms.filter((atom) => input.definitionCertificates?.has(atom) === true));
|
|
831
|
+
const candidates = discoveryAtoms(definitions, continuationLimit(query));
|
|
832
|
+
const omitted = definitions.length - candidates.length;
|
|
833
|
+
clipping.frontierOmitted += omitted;
|
|
834
|
+
if (omitted > 0)
|
|
835
|
+
clipping.reasons.add("frontier-width");
|
|
836
|
+
return candidates;
|
|
837
|
+
}
|
|
838
|
+
function continuationLimit(query) {
|
|
839
|
+
return Number.isSafeInteger(query.maxResults) && query.maxResults >= 0 ? query.maxResults : 0;
|
|
840
|
+
}
|
|
841
|
+
function observedDefinitionCalls(input, observations, index, clipping) {
|
|
842
|
+
return interleaveBodyCalls(observations.map((observation) => orderedBodyCalls(certifiedBodyCalls(input, observation, index, clipping))));
|
|
843
|
+
}
|
|
844
|
+
async function nextDefinitionFrontier(input, atoms, seen, clipping, remainingTargets) {
|
|
845
|
+
const candidates = boundedDefinitionObservations(input, atoms, clipping, input.query);
|
|
846
|
+
const maxContinuations = Math.min(continuationLimit(input.query), remainingTargets);
|
|
847
|
+
const index = await admittedDefinitionIndex(input, candidates);
|
|
848
|
+
if (index === undefined)
|
|
849
|
+
return [];
|
|
850
|
+
if (index.candidateLimitReached === true ||
|
|
851
|
+
index.filesSkipped > 0 ||
|
|
852
|
+
index.filesPartiallyIndexed > 0)
|
|
853
|
+
clipping.reasons.add("source-graph-incomplete");
|
|
854
|
+
const observations = await Promise.all(candidates.map((atom) => discoveryExcerptObservation(input, atom)));
|
|
855
|
+
clipping.excerptsClipped += observations.filter((observation) => observation.truncated).length;
|
|
856
|
+
if (clipping.excerptsClipped > 0)
|
|
857
|
+
clipping.reasons.add("excerpt-clipped");
|
|
858
|
+
const calls = observedDefinitionCalls(input, observations, index, clipping);
|
|
224
859
|
const frontier = [];
|
|
225
|
-
for (const
|
|
226
|
-
const
|
|
860
|
+
for (const target of calls) {
|
|
861
|
+
const call = target.call;
|
|
862
|
+
const key = targetIdentity(call);
|
|
863
|
+
retainObservedOwnedCall(input, target, key);
|
|
227
864
|
if (seen.has(key))
|
|
228
865
|
continue;
|
|
229
866
|
seen.add(key);
|
|
230
|
-
frontier.
|
|
231
|
-
|
|
232
|
-
|
|
867
|
+
if (frontier.length >= maxContinuations) {
|
|
868
|
+
clipping.frontierOmitted += 1;
|
|
869
|
+
clipping.reasons.add("frontier-width");
|
|
870
|
+
continue;
|
|
871
|
+
}
|
|
872
|
+
const atom = await certifiedTargetAtom(input, call, index, target.sourceReference);
|
|
873
|
+
retainDefinitionFrontierAtom(input, target, atom, frontier);
|
|
874
|
+
}
|
|
875
|
+
return appendReferencedValueFrontier(input, observations, index, seen, clipping, maxContinuations, frontier);
|
|
876
|
+
}
|
|
877
|
+
function referenceOwnedByObservation(reference, observation) {
|
|
878
|
+
const owner = reference.referencerDefinition;
|
|
879
|
+
const definition = observation.definition;
|
|
880
|
+
if (definition === undefined)
|
|
881
|
+
return false;
|
|
882
|
+
return (owner?.name === definition.name &&
|
|
883
|
+
owner.lineRange.startLine === definition.lineRange.startLine &&
|
|
884
|
+
sameDeclarationSpan(owner.declarationSpan, definition.declarationSpan));
|
|
885
|
+
}
|
|
886
|
+
function referenceWithinObservation(reference, observation) {
|
|
887
|
+
const range = observation.lineRange;
|
|
888
|
+
const span = reference.referenceSpan;
|
|
889
|
+
if (range === undefined ||
|
|
890
|
+
span === undefined ||
|
|
891
|
+
reference.referenceLineRange.startLine < range.startLine ||
|
|
892
|
+
span.endLine > range.endLine)
|
|
893
|
+
return false;
|
|
894
|
+
const lines = observation.content.split("\n");
|
|
895
|
+
const line = lines[reference.referenceLineRange.startLine - range.startLine];
|
|
896
|
+
return (line !== undefined &&
|
|
897
|
+
span.endLine === reference.referenceLineRange.startLine &&
|
|
898
|
+
line.slice(span.startColumn, span.endColumn) === reference.referenceName);
|
|
899
|
+
}
|
|
900
|
+
function observedImportedReference(reference, observation) {
|
|
901
|
+
return (reference.parser === "typescript-compiler-ast" &&
|
|
902
|
+
reference.binding === "lexical" &&
|
|
903
|
+
reference.confidence === "resolved" &&
|
|
904
|
+
reference.referencerPath === observation.scopePath &&
|
|
905
|
+
reference.targetPath !== observation.scopePath &&
|
|
906
|
+
referenceWithinObservation(reference, observation));
|
|
907
|
+
}
|
|
908
|
+
function certifiedValueReferences(input, observation, index, clipping) {
|
|
909
|
+
if (input.requestContext?.isCodeIntelligenceSourceCurrent(observation.scopePath) !== true)
|
|
910
|
+
return [];
|
|
911
|
+
const current = index.references.filter((reference) => observedImportedReference(reference, observation));
|
|
912
|
+
const unsupported = current.filter((reference) => reference.referencerDefinition === undefined).length;
|
|
913
|
+
if (unsupported > 0) {
|
|
914
|
+
clipping.reasons.add("source-graph-incomplete");
|
|
915
|
+
clipping.frontierOmitted += unsupported;
|
|
916
|
+
}
|
|
917
|
+
return current.flatMap((reference) => {
|
|
918
|
+
if (!referenceOwnedByObservation(reference, observation))
|
|
919
|
+
return [];
|
|
920
|
+
const definition = indexedReferenceTarget(reference, index);
|
|
921
|
+
return definition?.kind === "constant" &&
|
|
922
|
+
input.requestContext?.isCodeIntelligenceSourceCurrent(definition.scopePath) === true
|
|
923
|
+
? [{ reference, definition, observation }]
|
|
924
|
+
: [];
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
function observedValueWitness(reference, observation) {
|
|
928
|
+
const span = reference.referenceSpan;
|
|
929
|
+
const definition = observation.definition;
|
|
930
|
+
const budget = observedLineBudget(observation.content, observation.lineRange);
|
|
931
|
+
if (span === undefined ||
|
|
932
|
+
definition === undefined ||
|
|
933
|
+
budget === undefined ||
|
|
934
|
+
observation.anchoredWindowApplied === true)
|
|
935
|
+
return undefined;
|
|
936
|
+
const first = reference.referenceLineRange.startLine - budget.startLine;
|
|
937
|
+
const last = span.endLine - budget.startLine;
|
|
938
|
+
if (first < 0 || last >= budget.lineBytes.length - Number(observation.truncated))
|
|
939
|
+
return undefined;
|
|
940
|
+
return {
|
|
941
|
+
parentIdentity: definitionIdentity(definition),
|
|
942
|
+
targetIdentity: JSON.stringify([
|
|
943
|
+
reference.targetPath,
|
|
944
|
+
reference.targetName,
|
|
945
|
+
reference.targetLineRange.startLine,
|
|
946
|
+
reference.targetDeclarationSpan,
|
|
947
|
+
]),
|
|
948
|
+
startLine: reference.referenceLineRange.startLine,
|
|
949
|
+
lineRange: reference.referenceLineRange,
|
|
950
|
+
lineBytes: budget.lineBytes.slice(first, last + 1),
|
|
951
|
+
callerSpan: span,
|
|
952
|
+
};
|
|
953
|
+
}
|
|
954
|
+
async function certifiedValueReferenceAtom(input, target) {
|
|
955
|
+
const { reference, definition } = target;
|
|
956
|
+
const atom = certifiedDefinitionTargetAtom(input, definition, definitionIdentity(definition));
|
|
957
|
+
const observation = await discoveryExcerptObservation(input, atom);
|
|
958
|
+
if (observation.content.length === 0 ||
|
|
959
|
+
input.requestContext?.isCodeIntelligenceSourceCurrent(definition.scopePath) !== true)
|
|
960
|
+
return undefined;
|
|
961
|
+
return certifyDefinitionAtom(input, discoveredTraceProvenance(input.scope.scopeId, {
|
|
962
|
+
...atom,
|
|
963
|
+
score: observedDefinitionScore(input.query, observation),
|
|
964
|
+
edge: {
|
|
965
|
+
kind: "reference",
|
|
966
|
+
confidence: "resolved",
|
|
967
|
+
source: {
|
|
968
|
+
scopePath: reference.referencerPath,
|
|
969
|
+
lineRange: reference.referenceLineRange,
|
|
970
|
+
symbol: reference.referenceName,
|
|
971
|
+
},
|
|
972
|
+
target: {
|
|
973
|
+
scopePath: definition.scopePath,
|
|
974
|
+
lineRange: definition.lineRange,
|
|
975
|
+
symbol: definition.name,
|
|
976
|
+
},
|
|
977
|
+
},
|
|
978
|
+
}, "discovered-symbol-definition"), definition);
|
|
979
|
+
}
|
|
980
|
+
async function appendReferencedValueFrontier(input, observations, index, seen, clipping, capacity, frontier) {
|
|
981
|
+
const references = observations.flatMap((observation) => certifiedValueReferences(input, observation, index, clipping));
|
|
982
|
+
const retainedNames = new Set();
|
|
983
|
+
for (const target of references) {
|
|
984
|
+
const identity = definitionIdentity(target.definition);
|
|
985
|
+
if (seen.has(identity))
|
|
986
|
+
continue;
|
|
987
|
+
seen.add(identity);
|
|
988
|
+
if (frontier.length >= capacity) {
|
|
989
|
+
clipping.frontierOmitted += 1;
|
|
990
|
+
clipping.reasons.add("frontier-width");
|
|
991
|
+
continue;
|
|
992
|
+
}
|
|
993
|
+
const atom = await certifiedValueReferenceAtom(input, target);
|
|
994
|
+
if (atom !== undefined)
|
|
995
|
+
retainedNames.add(target.definition.name);
|
|
996
|
+
retainDefinitionFrontierAtom(input, {
|
|
997
|
+
parentIdentity: target.observation.definition === undefined
|
|
998
|
+
? undefined
|
|
999
|
+
: definitionIdentity(target.observation.definition),
|
|
1000
|
+
parentWitness: observedValueWitness(target.reference, target.observation),
|
|
1001
|
+
}, atom, frontier);
|
|
1002
|
+
}
|
|
1003
|
+
return appendComparisonDeclarations(input, index, retainedNames, seen, clipping, capacity, frontier);
|
|
1004
|
+
}
|
|
1005
|
+
function requestsTestDeclarationComparison(query) {
|
|
1006
|
+
if (query.kind !== "natural-language")
|
|
1007
|
+
return false;
|
|
1008
|
+
const subject = query.text.replace(/"[^"\n]*"|'[^'\n]*'|`[^`\n]*`/gu, " ");
|
|
1009
|
+
return (/\b(?:tests?|fixtures?|testdaten|testwerte|testfälle)\b/iu.test(subject) &&
|
|
1010
|
+
(/\b(?:compar(?:e[ds]?|ing|isons?)|differ(?:ent|ences?))\b/iu.test(subject) ||
|
|
1011
|
+
/\b(?:contrast|versus|whether|similarly)\b/iu.test(subject) ||
|
|
1012
|
+
/\b(?:vergleich(?:e|en|t)?|verglichen|unterschied(?:e|en)?|ob|ähnlich(?:e|en)?)\b/iu.test(subject)));
|
|
1013
|
+
}
|
|
1014
|
+
function comparisonDeclarations(index, names) {
|
|
1015
|
+
const candidates = index.symbols.filter((definition) => definition.parser === "typescript-compiler-ast" &&
|
|
1016
|
+
definition.kind === "constant" &&
|
|
1017
|
+
definition.declarationSpan !== undefined &&
|
|
1018
|
+
definition.topLevelExport === true &&
|
|
1019
|
+
names.has(definition.name) &&
|
|
1020
|
+
candidateBucketForPath(definition.scopePath) === "test");
|
|
1021
|
+
const counts = new Map();
|
|
1022
|
+
const key = (definition) => JSON.stringify([definition.scopePath, definition.name]);
|
|
1023
|
+
for (const definition of candidates)
|
|
1024
|
+
counts.set(key(definition), (counts.get(key(definition)) ?? 0) + 1);
|
|
1025
|
+
return candidates.filter((definition) => counts.get(key(definition)) === 1);
|
|
1026
|
+
}
|
|
1027
|
+
async function observedCurrentDefinitionAtom(input, definition) {
|
|
1028
|
+
if (input.requestContext?.isCodeIntelligenceSourceCurrent(definition.scopePath) !== true)
|
|
1029
|
+
return undefined;
|
|
1030
|
+
const atom = certifiedDefinitionTargetAtom(input, definition, definitionIdentity(definition));
|
|
1031
|
+
const observation = await discoveryExcerptObservation(input, atom);
|
|
1032
|
+
if (observation.content.length === 0)
|
|
1033
|
+
return undefined;
|
|
1034
|
+
return certifyDefinitionAtom(input, { ...atom, score: observedDefinitionScore(input.query, observation) }, definition);
|
|
1035
|
+
}
|
|
1036
|
+
async function appendComparisonDeclarations(input, index, names, seen, clipping, capacity, frontier) {
|
|
1037
|
+
if (names.size === 0 || !requestsTestDeclarationComparison(input.query))
|
|
1038
|
+
return frontier;
|
|
1039
|
+
for (const definition of comparisonDeclarations(index, names)) {
|
|
1040
|
+
const identity = definitionIdentity(definition);
|
|
1041
|
+
if (seen.has(identity))
|
|
1042
|
+
continue;
|
|
1043
|
+
seen.add(identity);
|
|
1044
|
+
if (frontier.length >= capacity) {
|
|
1045
|
+
clipping.frontierOmitted += 1;
|
|
1046
|
+
clipping.reasons.add("frontier-width");
|
|
1047
|
+
continue;
|
|
1048
|
+
}
|
|
1049
|
+
const atom = await observedCurrentDefinitionAtom(input, definition);
|
|
1050
|
+
if (atom !== undefined)
|
|
1051
|
+
frontier.push(atom);
|
|
1052
|
+
else {
|
|
1053
|
+
clipping.frontierOmitted += 1;
|
|
1054
|
+
clipping.reasons.add("source-graph-incomplete");
|
|
1055
|
+
}
|
|
233
1056
|
}
|
|
234
1057
|
return frontier;
|
|
235
1058
|
}
|
|
236
|
-
|
|
1059
|
+
function retainObservedOwnedCall(input, target, identity) {
|
|
1060
|
+
const witness = target.parentWitness;
|
|
1061
|
+
if (witness?.ownedSourceCall !== true ||
|
|
1062
|
+
witness.parentIdentity !== target.parentIdentity ||
|
|
1063
|
+
witness.targetIdentity !== identity)
|
|
1064
|
+
return;
|
|
1065
|
+
const calls = input.observedOwnedCalls?.get(witness.parentIdentity) ?? new Set();
|
|
1066
|
+
calls.add(identity);
|
|
1067
|
+
input.observedOwnedCalls?.set(witness.parentIdentity, calls);
|
|
1068
|
+
}
|
|
1069
|
+
function retainDefinitionFrontierAtom(input, target, atom, frontier) {
|
|
1070
|
+
if (atom === undefined)
|
|
1071
|
+
return;
|
|
1072
|
+
const definition = input.definitionCertificates?.get(atom);
|
|
1073
|
+
if (definition !== undefined && target.parentIdentity !== undefined)
|
|
1074
|
+
input.observedDefinitionParents?.set(definitionIdentity(definition), {
|
|
1075
|
+
identity: target.parentIdentity,
|
|
1076
|
+
witness: target.parentWitness,
|
|
1077
|
+
});
|
|
1078
|
+
frontier.push(atom);
|
|
1079
|
+
}
|
|
1080
|
+
function certifiedTargetCapacity(index, query) {
|
|
1081
|
+
const identities = new Set(index?.symbols
|
|
1082
|
+
.filter((symbol) => symbol.parser === "typescript-compiler-ast" && symbol.declarationSpan !== undefined)
|
|
1083
|
+
.map(definitionIdentity));
|
|
1084
|
+
return Math.min(continuationLimit(query), identities.size);
|
|
1085
|
+
}
|
|
1086
|
+
function boundedCertifiedSeeds(input, atoms, capacity, clipping) {
|
|
1087
|
+
const identities = new Set();
|
|
1088
|
+
return atoms.filter((atom) => {
|
|
1089
|
+
if (atom.provenance.tool !== "discovered-symbol-definition")
|
|
1090
|
+
return true;
|
|
1091
|
+
const definition = input.definitionCertificates?.get(atom);
|
|
1092
|
+
if (definition === undefined)
|
|
1093
|
+
return false;
|
|
1094
|
+
const identity = definitionIdentity(definition);
|
|
1095
|
+
if (identities.has(identity))
|
|
1096
|
+
return true;
|
|
1097
|
+
if (identities.size >= capacity) {
|
|
1098
|
+
clipping.frontierOmitted += 1;
|
|
1099
|
+
clipping.reasons.add("frontier-width");
|
|
1100
|
+
return false;
|
|
1101
|
+
}
|
|
1102
|
+
identities.add(identity);
|
|
1103
|
+
return true;
|
|
1104
|
+
});
|
|
1105
|
+
}
|
|
1106
|
+
async function searchSymbolFrontier(input, symbols, clipping, contextual) {
|
|
237
1107
|
const pending = [];
|
|
238
1108
|
for (const symbol of symbols) {
|
|
239
|
-
if (traceWorkStopped(input)
|
|
1109
|
+
if (traceWorkStopped(input)) {
|
|
1110
|
+
clipping.reasons.add("deadline");
|
|
240
1111
|
break;
|
|
241
|
-
|
|
1112
|
+
}
|
|
1113
|
+
if (!contextual && input.tryReserveSearchCall?.() === false) {
|
|
1114
|
+
clipping.reasons.add("search-budget");
|
|
1115
|
+
break;
|
|
1116
|
+
}
|
|
1117
|
+
pending.push(contextual
|
|
1118
|
+
? observedContextualSeed(input, symbol, clipping)
|
|
1119
|
+
: searchDiscoveredSymbol(input, symbol));
|
|
242
1120
|
}
|
|
1121
|
+
clipping.frontierOmitted += symbols.length - pending.length;
|
|
243
1122
|
return await Promise.all(pending);
|
|
244
1123
|
}
|
|
245
|
-
async function
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
1124
|
+
async function observedContextualSeed(input, target, clipping) {
|
|
1125
|
+
const atom = await observedCurrentDefinitionAtom(input, target.definition);
|
|
1126
|
+
if (atom !== undefined)
|
|
1127
|
+
return { atoms: [atom] };
|
|
1128
|
+
clipping.frontierOmitted += 1;
|
|
1129
|
+
clipping.reasons.add("source-graph-incomplete");
|
|
1130
|
+
return { atoms: [] };
|
|
1131
|
+
}
|
|
1132
|
+
function certifiedSeedIdentities(input, atoms) {
|
|
1133
|
+
return new Set(atoms.flatMap((atom) => {
|
|
1134
|
+
const definition = input.definitionCertificates?.get(atom);
|
|
1135
|
+
return definition === undefined ? [] : [definitionIdentity(definition)];
|
|
1136
|
+
}));
|
|
1137
|
+
}
|
|
1138
|
+
function attenuatedTraceAtom(input, atom) {
|
|
1139
|
+
const emitted = { ...atom, score: atom.score * 0.92 };
|
|
1140
|
+
const definition = input.definitionCertificates?.get(atom);
|
|
1141
|
+
return definition === undefined ? emitted : certifyDefinitionAtom(input, emitted, definition);
|
|
1142
|
+
}
|
|
1143
|
+
async function traceDiscoveredSymbols(input, seedSymbols, contextual) {
|
|
1144
|
+
const clipping = {
|
|
1145
|
+
reasons: new Set(),
|
|
1146
|
+
frontierOmitted: 0,
|
|
1147
|
+
excerptsClipped: 0,
|
|
1148
|
+
depthsVisited: 0,
|
|
1149
|
+
};
|
|
1150
|
+
const searches = await searchSymbolFrontier(input, seedSymbols, clipping, contextual);
|
|
1151
|
+
const found = searches.flatMap((search) => search.atoms);
|
|
1152
|
+
const capacity = certifiedTargetCapacity(await admittedDefinitionIndex(input, found), input.query);
|
|
1153
|
+
const atoms = [...boundedCertifiedSeeds(input, found, capacity, clipping)];
|
|
1154
|
+
const seen = certifiedSeedIdentities(input, atoms);
|
|
1155
|
+
let retained = seen.size;
|
|
1156
|
+
let frontier = atoms;
|
|
1157
|
+
while (frontier.length > 0) {
|
|
1158
|
+
if (traceWorkStopped(input)) {
|
|
1159
|
+
clipping.reasons.add("deadline");
|
|
1160
|
+
clipping.frontierOmitted += frontier.length;
|
|
1161
|
+
break;
|
|
1162
|
+
}
|
|
1163
|
+
frontier = await nextDefinitionFrontier(input, frontier, seen, clipping, Math.max(0, capacity - retained));
|
|
1164
|
+
retained += frontier.length;
|
|
1165
|
+
clipping.depthsVisited += 1;
|
|
1166
|
+
atoms.push(...frontier.map((atom) => attenuatedTraceAtom(input, atom)));
|
|
257
1167
|
}
|
|
258
1168
|
return {
|
|
259
1169
|
atoms: [...new Map(atoms.map((atom) => [atom.stableId, atom])).values()],
|
|
260
|
-
coverage,
|
|
1170
|
+
coverage: searches.flatMap((search) => search.coverage === undefined ? [] : [search.coverage]),
|
|
1171
|
+
clipping,
|
|
1172
|
+
};
|
|
1173
|
+
}
|
|
1174
|
+
function discoveredTraversalMarker(clipping, nowMs) {
|
|
1175
|
+
if (clipping.reasons.size === 0)
|
|
1176
|
+
return undefined;
|
|
1177
|
+
const reasons = [...clipping.reasons];
|
|
1178
|
+
reasons.sort(compareStrings);
|
|
1179
|
+
return {
|
|
1180
|
+
kind: "scope-incomplete",
|
|
1181
|
+
claim: `Discovered-symbol traversal was incomplete: reasons=${reasons.join(",")}; frontierOmitted=${String(clipping.frontierOmitted)}, excerptsClipped=${String(clipping.excerptsClipped)}, depthsVisited=${String(clipping.depthsVisited)}.`,
|
|
1182
|
+
impactedAtomIds: [],
|
|
1183
|
+
emittedAtMs: nowMs(),
|
|
261
1184
|
};
|
|
262
1185
|
}
|
|
263
1186
|
function discoveredTraceCoverageMarker(coverage, nowMs) {
|
|
@@ -282,16 +1205,63 @@ export async function collectDiscoveredSymbolTraceEvidence(input) {
|
|
|
282
1205
|
return { atoms: [], uncertainty: [] };
|
|
283
1206
|
if (!shouldTrace(input))
|
|
284
1207
|
return { atoms: [], uncertainty: [] };
|
|
285
|
-
|
|
1208
|
+
const route = ROUTE_TRACE_QUERY_RE.test(input.query.text);
|
|
1209
|
+
if (!route && !contextualDiscoveredSymbolTraceRequested(input.query, input.anchors))
|
|
286
1210
|
return { atoms: [], uncertainty: [] };
|
|
287
|
-
const
|
|
1211
|
+
const requestInput = {
|
|
1212
|
+
...input,
|
|
1213
|
+
definitionCertificates: new WeakMap(),
|
|
1214
|
+
observedDefinitionBytes: new Map(),
|
|
1215
|
+
observedDefinitionParents: new Map(),
|
|
1216
|
+
observedOwnedCalls: new Map(),
|
|
1217
|
+
contextualReadFailures: [],
|
|
1218
|
+
};
|
|
1219
|
+
const symbols = route
|
|
1220
|
+
? await discoveredHandlerSymbols(requestInput)
|
|
1221
|
+
: await discoveredContextualSymbols(requestInput);
|
|
1222
|
+
const seedCount = route ? {} : { contextualDefinitionSeedCount: symbols.length };
|
|
288
1223
|
if (symbols.length === 0)
|
|
289
|
-
return { atoms: [], uncertainty:
|
|
290
|
-
const trace = await traceDiscoveredSymbols(
|
|
1224
|
+
return { atoms: [], uncertainty: requestInput.contextualReadFailures, ...seedCount };
|
|
1225
|
+
const trace = await traceDiscoveredSymbols(requestInput, symbols, !route);
|
|
291
1226
|
const marker = discoveredTraceCoverageMarker(trace.coverage, input.nowMs);
|
|
292
1227
|
return {
|
|
1228
|
+
...seedCount,
|
|
293
1229
|
atoms: trace.atoms,
|
|
294
|
-
|
|
1230
|
+
routeCoverage: discoveredRouteCoverage(requestInput, trace.atoms),
|
|
1231
|
+
uncertainty: [
|
|
1232
|
+
...requestInput.contextualReadFailures,
|
|
1233
|
+
...[marker, discoveredTraversalMarker(trace.clipping, input.nowMs)].filter((entry) => entry !== undefined),
|
|
1234
|
+
],
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
function discoveredRouteCoverage(input, atoms) {
|
|
1238
|
+
const entries = atoms.flatMap((atom) => {
|
|
1239
|
+
const definition = input.definitionCertificates?.get(atom);
|
|
1240
|
+
if (definition === undefined)
|
|
1241
|
+
return [];
|
|
1242
|
+
const identity = definitionIdentity(definition);
|
|
1243
|
+
const bytes = input.observedDefinitionBytes?.get(identity);
|
|
1244
|
+
const parent = input.observedDefinitionParents?.get(identity);
|
|
1245
|
+
return bytes === undefined || bytes.bytes <= 0
|
|
1246
|
+
? []
|
|
1247
|
+
: [
|
|
1248
|
+
{
|
|
1249
|
+
atom,
|
|
1250
|
+
definitionIdentity: identity,
|
|
1251
|
+
parentIdentity: parent?.identity,
|
|
1252
|
+
parentWitness: parent?.witness,
|
|
1253
|
+
observedBytes: Math.min(MAX_DISCOVERY_EXCERPT_BYTES, bytes.bytes),
|
|
1254
|
+
observedLines: bytes.lines,
|
|
1255
|
+
},
|
|
1256
|
+
];
|
|
1257
|
+
});
|
|
1258
|
+
return {
|
|
1259
|
+
entries,
|
|
1260
|
+
ownedCycles: observedOwnedCallCycles(entries.map((entry) => entry.definitionIdentity), input.observedOwnedCalls ?? new Map()),
|
|
1261
|
+
isCurrent: (atom) => input.definitionCertificates?.has(atom) === true &&
|
|
1262
|
+
!traceWorkStopped(input) &&
|
|
1263
|
+
discoveredDefinitionCurrent(input, atom),
|
|
1264
|
+
matches: (scope, fs) => scope === input.searchScope && fs === input.fs,
|
|
295
1265
|
};
|
|
296
1266
|
}
|
|
297
1267
|
function reservedFollowTraceSymbols(input) {
|