@oscharko-dev/keiko 1.1.13 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -5
- package/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +13 -13
- package/dist/ui/static/__next._full.txt +24 -22
- package/dist/ui/static/__next._tree.txt +3 -3
- package/dist/ui/static/_next/static/chunks/00_o0v2hokzqm.js +1 -0
- 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/0339vdalk0q6h.js +3 -0
- package/dist/ui/static/_next/static/chunks/{13fx5sqcncq4_.js → 05k2u3763ih_i.js} +1 -1
- package/dist/ui/static/_next/static/chunks/07f-n_9zq-s8q.js +1 -0
- package/dist/ui/static/_next/static/chunks/07l0sfn1-mid2.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/{2cn33khz2ae-h.js → 08v-jyhi2uk8t.js} +1 -1
- package/dist/ui/static/_next/static/chunks/09p2ty64ellxo.js +1 -0
- package/dist/ui/static/_next/static/chunks/0_yx8_bs1t-27.js +1 -0
- package/dist/ui/static/_next/static/chunks/0b7xat6jxvrmr.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bz731buimrpv.js +1 -0
- package/dist/ui/static/_next/static/chunks/0d3a8-uxb000v.js +1 -0
- package/dist/ui/static/_next/static/chunks/0gf88p0jy1g5w.js +1 -0
- package/dist/ui/static/_next/static/chunks/0jjhji-e9mg99.js +1 -0
- 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/0mcg_spbohpl3.css +1 -0
- package/dist/ui/static/_next/static/chunks/0oocu54xdbxf3.js +2 -0
- package/dist/ui/static/_next/static/chunks/{39w0xj7fyy7sp.js → 0pf5ot48kepng.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0rs9egrg2q85w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1o2cihsnxhmh6.js → 0rsutf6da798_.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0rw0et8bt6w-b.js +1 -0
- package/dist/ui/static/_next/static/chunks/0su17ctiaqfp0.js +1 -0
- package/dist/ui/static/_next/static/chunks/0w2fp3hjrfx32.js +1 -0
- package/dist/ui/static/_next/static/chunks/0wdn9qetndtsj.js +1 -0
- package/dist/ui/static/_next/static/chunks/0wok-g3ndtvch.js +1 -0
- package/dist/ui/static/_next/static/chunks/0x42c1na2ia6m.js +1 -0
- package/dist/ui/static/_next/static/chunks/0xu2rnpdr4kzd.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/1aivbuztyv67o.js +10 -0
- package/dist/ui/static/_next/static/chunks/1c0u0qq0vwkc4.js +1 -0
- package/dist/ui/static/_next/static/chunks/1f05h21irrvbs.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/{25f22x86d_a1n.js → 1osovjtjgxmbl.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{29dj-5kj_vfl_.js → 1qh0x9_258ol2.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2kh0qihno0n1w.js → 1rp_smu1jjw45.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/{0l7cc8q83migz.css → 1wj7exxi550gi.css} +1 -1
- package/dist/ui/static/_next/static/chunks/1x-sfb1_rl15-.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zczte6xkwvcl.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zqfkyeqq5cl8.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zudszthinjcb.js +1 -0
- package/dist/ui/static/_next/static/chunks/{18qu5m_in_h3x.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/{1kacubgk0y2ki.js → 21-6b7rkmtvg8.js} +1 -1
- 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/25x9hf4wdlde7.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/2ef4l5re80dgi.js +1 -0
- package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +1 -0
- package/dist/ui/static/_next/static/chunks/{199p3upt-xa37.js → 2h4vqb2rt3mr1.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3inx1ugcc-jd-.css → 2hu5w89yy7_s-.css} +1 -0
- package/dist/ui/static/_next/static/chunks/2imh4llefx9d1.js +1 -0
- package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0m1163red7mw7.js → 2nlmtsm3kjmbh.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1c1gbfapof8m0.js → 2oq1uk07ft9l0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2ov72plu69iiv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ta3jr_uw2j0x.js +1 -0
- package/dist/ui/static/_next/static/chunks/2u5_pu1uc6seh.js +1 -0
- package/dist/ui/static/_next/static/chunks/2wuj7qxm6mleh.js +1 -0
- package/dist/ui/static/_next/static/chunks/2xd3_a4jlxum2.css +1 -0
- package/dist/ui/static/_next/static/chunks/2yuvdrio9ki3a.css +39 -0
- package/dist/ui/static/_next/static/chunks/2z5c2glupanq_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-7tka4cib69h.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-dorttkhs3i2.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-pcgkdsv7x4z.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0o_lmzxpjfeky.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/36c8jty3kllje.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/3946_dfcd9xr-.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/3eg8pcox5copv.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ftqojkan-5cl.js +1 -0
- package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3kmozkq6tgqnz.js → 3g4px251sg85e.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3gyetohi_flhb.js +1 -0
- package/dist/ui/static/_next/static/chunks/3hjs3gk92eave.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ksbq-nwkgwob.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/3or_0c84ozskx.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/3qbbcm9fuk494.js +1 -0
- package/dist/ui/static/_next/static/chunks/3rhep1yhgo6a7.js +1 -0
- package/dist/ui/static/_next/static/chunks/3sgbsntbbci5y.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tcw3qy3rrkyf.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tqd6avtamgd5.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ty06iqiblqi4.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1ydfda18zlx4w.js → 3vjm30f1if00s.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3wz98o059mhtf.js +1 -0
- package/dist/ui/static/_next/static/chunks/3x2p8mgrihuet.js +1 -0
- package/dist/ui/static/_next/static/chunks/3xi3iilmw9_vy.js +5 -0
- package/dist/ui/static/_next/static/chunks/3z5edm1fpkcuq.js +1 -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/{3chx0gpjqrhod.js → 405vbzo164i84.js} +3 -3
- package/dist/ui/static/_next/static/chunks/42pls95xys34g.js +1 -0
- package/dist/ui/static/_next/static/chunks/43kutp14mqi-j.js +1 -0
- package/dist/ui/static/_next/static/chunks/43y3xn64quyo2.js +1 -0
- package/dist/ui/static/_next/static/chunks/43z5mfwx4lk4w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{turbopack-2fb3mn6go2p-t.js → turbopack-34k8wgx0iwdzg.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +22 -21
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +10 -10
- package/dist/ui/static/_not-found/__next._tree.txt +2 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +22 -21
- package/dist/ui/static/atlassian-connectors/__next._full.txt +24 -23
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +2 -2
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +12 -12
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +24 -23
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +24 -22
- package/dist/ui/static/launch/__next._full.txt +27 -26
- package/dist/ui/static/launch/__next._tree.txt +3 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +13 -13
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +27 -26
- package/dist/ui/static/local-knowledge/__next._full.txt +27 -26
- package/dist/ui/static/local-knowledge/__next._tree.txt +3 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +13 -13
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +25 -24
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +12 -12
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +25 -24
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +27 -26
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.js +54 -8
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.js +66 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.js +2 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts +13 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.js +67 -126
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.js +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts +10 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.js +59 -46
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts +18 -3
- 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 +176 -53
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +3650 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.js +74 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.js +184 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.js +195 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.js +19 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.js +20 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.js +442 -60
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +45 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +53 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.js +46 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.js +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.js +226 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts +41 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.js +672 -0
- 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/dist/reader/support-segment-manifest.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.js +17 -5
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.js +16 -9
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.js +16 -10
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.js +21 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts +11 -3
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.js +142 -23
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts +25 -22
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.js +694 -198
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.js +25 -1
- 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/investigate.js +1 -1
- 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/process-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.js +3 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/runner.js +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +25 -4
- 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 +144 -12
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +16 -113
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +71 -358
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts +1 -21
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.js +14 -112
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.js +6 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.js +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.js +521 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts +647 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.js +338 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts +3 -5
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.js +6 -42
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +0 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +118 -1276
- 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.d.ts.map +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 +519 -139
- 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 +783 -113
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.js +123 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +31805 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +35636 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +12694 -34263
- 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 +16845 -40229
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +174 -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 +99 -14
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts +49 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.js +380 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.js +63 -0
- 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 +25 -5
- 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 +28 -14
- 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 +30 -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 +39 -6
- 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 +230 -100
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.js +14 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.js +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.js +8 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.js +20 -6
- 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 +184 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +750 -11
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +17 -12
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +76 -36
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.js +0 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +15 -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 +92 -7
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +54 -10
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.js +13 -0
- 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 +35 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.js +125 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +9 -9
- 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 +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.js +388 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts +26 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.js +109 -6
- 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/store-fingerprint.d.ts +5 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.js +16 -16
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts +33 -17
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.js +230 -26
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.js +206 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.js +11 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.js +107 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts +154 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.js +74 -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 +6 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +71 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.js +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +42 -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 +25 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.js +3 -0
- 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 +28 -5
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.js +1 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts.map +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.d.ts.map +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.d.ts.map +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/citation-attacher.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.js +49 -38
- 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 +64 -25
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.js +6 -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/store-content-encryption.d.ts +0 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.js +0 -11
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts +0 -11
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.js +9 -78
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts.map +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.d.ts.map +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/consolidate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +3 -0
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts.map +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.d.ts.map +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.d.ts.map +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/cipher.d.ts +0 -12
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.js +0 -32
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts +2 -11
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.js +10 -144
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.js +7 -14
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.js +17 -48
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts.map +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/capabilities.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.js +24 -10
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts +1 -0
- 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 +203 -2
- 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 +113 -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 +696 -138
- 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 +5 -4
- 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 +3 -3
- 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 +83 -10
- 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 +17 -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 +377 -77
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +3 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.js +4 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.js +5 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +18 -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 +49 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +168 -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 +629 -72
- 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 +25 -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.d.ts.map +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 +41 -15
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.js +128 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +49 -7
- 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 +18 -3
- 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 +40 -7
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts +85 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.js +128 -3
- 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 +12 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +65 -15
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +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/bounded-concurrency.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.js +84 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts +13 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.js +14 -25
- 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 +48 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.js +28 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.js +111 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.js +101 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +235 -33
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.js +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +2 -1
- 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 +161 -79
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts +27 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.js +48 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.js +51 -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 +58 -21
- 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 +790 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.js +112 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +31 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +6 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +10 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.js +13 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.js +59 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.js +1 -0
- 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/codingHistoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +8 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.js +85 -2
- 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 +190 -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 +15 -14
- 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 +224 -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/productionWorkspaceHeadReader.js +23 -3
- 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 +15 -4
- 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 +792 -126
- 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 +61 -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 +281 -77
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +15 -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 +108 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +9 -3
- 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 +21 -94
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.js +1 -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 +180 -74
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.js +81 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.js +35 -0
- 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 +5 -2
- 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 +91 -13
- 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 +72 -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/editor/watch/workspaceWatchEvidence.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.js +75 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.js +230 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts +2 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files.js +76 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts +56 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.js +432 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.js +59 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +16 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +12 -2
- 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 +367 -109
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.js +30 -0
- 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 +38 -4
- 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 +1354 -184
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.js +6 -3
- 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 +1 -1
- 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 +12 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +30 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.js +5 -2
- 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 +11 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +7 -0
- 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/gitRepositoryRoutes.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.js +68 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +57 -1
- 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 +57 -1
- 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 +195 -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 +57 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +297 -0
- 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-diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.js +25 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts +2 -2
- 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 +39 -3
- 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 +15 -1
- 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 +126 -24
- 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-directory-iteration.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.js +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts +7 -3
- 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 +63 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.js +61 -1
- 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 +20 -3
- 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 +116 -53
- 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 +123 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +76 -6
- 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 +677 -121
- 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-metadata-retention.d.ts +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.js +123 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.js +6 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +128 -8
- 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 +4801 -850
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.js +81 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.js +87 -0
- 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 +20 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.js +33 -0
- 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 +35 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +37 -8
- 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 +712 -212
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +42 -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 +682 -142
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +49 -11
- 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 +756 -172
- 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 +382 -58
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +4 -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 +57 -2
- 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 +29 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts +32 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.js +75 -0
- 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-diagnostics.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.js +109 -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 +47 -5
- 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 +1054 -84
- 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/index.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/index.js +8 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.js +136 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts +1 -1
- 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 +235 -65
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +19 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.js +43 -32
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaSnapshotBuilder.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.js +36 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +4 -2
- 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/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +8 -0
- 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/chat-grounding-scope-identity.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.js +21 -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 +22 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts +0 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +26 -129
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.js +26 -42
- 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 +161 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +102 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.js +239 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.js +347 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.js +169 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.js +149 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.js +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.js +37 -4
- 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 +10 -3
- 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/tool-catalog/catalogToolSettlement.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.js +3 -0
- 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/update-preflight-registry.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.js +3 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-index-provider.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +76 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.js +3 -100
- 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 +210 -113
- 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 +80 -10
- 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.d.ts.map +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 +35 -3
- 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 +10 -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 +331 -49
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/compaction.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.js +1 -1
- 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 +8 -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 +374 -42
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +5 -3
- 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 +2 -1
- 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 +124 -7
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +25 -1
- 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 +707 -91
- 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 +3 -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 +21 -18
- 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 +28 -64
- 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/_memfs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/_memfs.js +7 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +235 -38
- 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 +660 -105
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.js +4 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.js +140 -57
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts +1 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.js +0 -15
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +37 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +306 -18
- 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/fs.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.js +48 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.js +2 -2
- 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 +10 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +9 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +57 -8
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +849 -144
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.js +29 -24
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.js +189 -0
- 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 +5 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +50 -21
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +121 -34
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +26 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +65 -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/repoSearchRetention.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.js +70 -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 +20 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +253 -56
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts +14 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.js +63 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.js +37 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.js +473 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +10 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +237 -20
- 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 +18 -14
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.js +61 -2
- 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/testing.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.js +4 -0
- 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.d.ts.map +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 +14 -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 +119 -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 +33 -31
- package/release-impact.catalog.json +211 -0
- package/scripts/lib/local-state-audit.mjs +26 -11
- 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.1.13.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.1.13.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.1.13.tgz → oscharko-dev-keiko-git-1.2.1.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.1.13.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.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.1.13.tgz → oscharko-dev-keiko-memory-governance-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.2.1.tgz +0 -0
- package/vendor/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.1.13.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.1.13.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/000t9p2ysi3dv.css +0 -1
- package/dist/ui/static/_next/static/chunks/00dd_gyzi9unw.js +0 -1
- package/dist/ui/static/_next/static/chunks/00n029ow-5_tt.js +0 -3
- package/dist/ui/static/_next/static/chunks/01n8x8_z3012u.js +0 -1
- package/dist/ui/static/_next/static/chunks/02epwnm5oro9c.css +0 -26
- package/dist/ui/static/_next/static/chunks/04y8gqfjksqzo.js +0 -1
- package/dist/ui/static/_next/static/chunks/0cksy9u2ysiuy.js +0 -1
- package/dist/ui/static/_next/static/chunks/0elflgy2cg1jb.js +0 -1
- package/dist/ui/static/_next/static/chunks/0gia_iwqox3xm.js +0 -1
- package/dist/ui/static/_next/static/chunks/0k931k8qwqyft.js +0 -1
- package/dist/ui/static/_next/static/chunks/0kmepj4rmkj19.js +0 -1
- package/dist/ui/static/_next/static/chunks/0l46-80gche_i.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ojvvjnsf38bk.js +0 -1
- package/dist/ui/static/_next/static/chunks/0p2ekj8g4s6t2.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +0 -1
- package/dist/ui/static/_next/static/chunks/0tl_05c5ux5ut.js +0 -1
- package/dist/ui/static/_next/static/chunks/0u7vyqk91gjb8.js +0 -1
- package/dist/ui/static/_next/static/chunks/0v9jkxfma7fks.js +0 -1
- package/dist/ui/static/_next/static/chunks/0y68jeskhcm2k.js +0 -1
- package/dist/ui/static/_next/static/chunks/0z5be09yla9lp.js +0 -1
- package/dist/ui/static/_next/static/chunks/0zlw46qz0crxg.css +0 -1
- package/dist/ui/static/_next/static/chunks/117xhn896fsmt.js +0 -1
- package/dist/ui/static/_next/static/chunks/13q3e5wnz6lps.css +0 -1
- package/dist/ui/static/_next/static/chunks/14rs31u4u36yy.js +0 -1
- package/dist/ui/static/_next/static/chunks/159szpr5ffygs.js +0 -1
- package/dist/ui/static/_next/static/chunks/15orau2hhjb1f.js +0 -1
- package/dist/ui/static/_next/static/chunks/1b7ig6f2t71i_.js +0 -1
- package/dist/ui/static/_next/static/chunks/1bdojlx9hv0c5.js +0 -1
- package/dist/ui/static/_next/static/chunks/1be0-x1mk56wu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1d7xigpwq-xq8.js +0 -1
- package/dist/ui/static/_next/static/chunks/1dwc7p2rl-hs6.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hk335vrug1rc.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hucqkor7zgbn.js +0 -1
- package/dist/ui/static/_next/static/chunks/1j6nqp8yrqyhu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1kxhf3ld28pzk.js +0 -1
- package/dist/ui/static/_next/static/chunks/1logclobi6726.js +0 -1
- package/dist/ui/static/_next/static/chunks/1lrj3d157kay1.js +0 -5
- package/dist/ui/static/_next/static/chunks/1nie2fvj8iyvq.js +0 -1
- package/dist/ui/static/_next/static/chunks/1o3z4r4xrlbda.js +0 -1
- package/dist/ui/static/_next/static/chunks/1pnysuel-a2r1.js +0 -1
- package/dist/ui/static/_next/static/chunks/1szpnddxqmzhy.js +0 -1
- package/dist/ui/static/_next/static/chunks/1tkt9f0xnc4fe.js +0 -1
- package/dist/ui/static/_next/static/chunks/1u_s3uvh9p4j7.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uetvnnpa5z22.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uigiy7xdzirs.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uulmf99vtuyt.js +0 -1
- package/dist/ui/static/_next/static/chunks/1wa9m6c88mg3p.js +0 -1
- package/dist/ui/static/_next/static/chunks/1xzxhtenb7_sx.css +0 -1
- package/dist/ui/static/_next/static/chunks/202kx3p8axlmr.js +0 -1
- package/dist/ui/static/_next/static/chunks/20b456jf1ggzu.css +0 -1
- package/dist/ui/static/_next/static/chunks/2384n1pce2w1h.js +0 -1
- package/dist/ui/static/_next/static/chunks/252wybdcea74g.js +0 -1
- package/dist/ui/static/_next/static/chunks/271r_v0nh0vy-.js +0 -1
- package/dist/ui/static/_next/static/chunks/2_o61-akoq549.js +0 -1
- package/dist/ui/static/_next/static/chunks/2_u63ddjyhbpm.js +0 -3
- package/dist/ui/static/_next/static/chunks/2b78j2josay3e.js +0 -1
- package/dist/ui/static/_next/static/chunks/2cw7v8t4jg669.js +0 -1
- package/dist/ui/static/_next/static/chunks/2gqs8fif3137x.js +0 -3
- package/dist/ui/static/_next/static/chunks/2iehfums033xv.css +0 -3
- package/dist/ui/static/_next/static/chunks/2j16o4ghz4iqx.js +0 -1
- package/dist/ui/static/_next/static/chunks/2oxvgl3qb19wf.js +0 -1
- package/dist/ui/static/_next/static/chunks/2r4vn_6anv2cw.js +0 -5
- package/dist/ui/static/_next/static/chunks/2s5wt9bf-ox40.js +0 -1
- package/dist/ui/static/_next/static/chunks/2s9-91g2jic6u.js +0 -1
- package/dist/ui/static/_next/static/chunks/2tmor5n3xss6c.js +0 -3
- package/dist/ui/static/_next/static/chunks/2wd7di0z2l6il.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ymm_n9gbcdcw.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ywqac8g8us1n.css +0 -1
- package/dist/ui/static/_next/static/chunks/3-ys11qyww0y6.js +0 -1
- package/dist/ui/static/_next/static/chunks/30botqyyk9ugo.js +0 -1
- package/dist/ui/static/_next/static/chunks/30p9b535cwzhr.js +0 -1
- package/dist/ui/static/_next/static/chunks/31mnda46lo2b0.js +0 -1
- package/dist/ui/static/_next/static/chunks/338jl640mvtkg.js +0 -1
- package/dist/ui/static/_next/static/chunks/351uy__m9eafa.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_cgafsc6hy1_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_exo95bp9tt2.js +0 -1
- package/dist/ui/static/_next/static/chunks/3aqtjd-a1ygis.js +0 -1
- package/dist/ui/static/_next/static/chunks/3bl12pe7lsanc.js +0 -1
- package/dist/ui/static/_next/static/chunks/3buu6m28ig2oz.js +0 -1
- package/dist/ui/static/_next/static/chunks/3hft62celuigp.js +0 -1
- package/dist/ui/static/_next/static/chunks/3i0iog52c1ajg.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ibevys2o09xx.js +0 -1
- package/dist/ui/static/_next/static/chunks/3im1pldojqzmu.js +0 -1
- package/dist/ui/static/_next/static/chunks/3iptbrztxckih.js +0 -1
- package/dist/ui/static/_next/static/chunks/3iv5llh4xg-7v.js +0 -1
- package/dist/ui/static/_next/static/chunks/3jtbes4v4ouyw.js +0 -1
- package/dist/ui/static/_next/static/chunks/3lq5zd1qvhcfw.js +0 -1
- package/dist/ui/static/_next/static/chunks/3m_idsf90zq5u.js +0 -1
- package/dist/ui/static/_next/static/chunks/3mes_qld9wgti.js +0 -1
- package/dist/ui/static/_next/static/chunks/3n4gsbv-im5ia.js +0 -1
- package/dist/ui/static/_next/static/chunks/3timx0h4kcna0.js +0 -1
- package/dist/ui/static/_next/static/chunks/3u-4amh4iusi1.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uacpjje41xz5.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uovpxgynmdkk.js +0 -1
- package/dist/ui/static/_next/static/chunks/3wcuc7e2bz4-l.js +0 -1
- package/dist/ui/static/_next/static/chunks/3xaa0t5drdxz3.js +0 -1
- package/dist/ui/static/_next/static/chunks/3yqrxwndy9_f3.js +0 -1
- package/dist/ui/static/_next/static/chunks/40g2_9ovqiuiu.js +0 -1
- package/dist/ui/static/_next/static/chunks/40ol4dc9uptck.js +0 -10
- package/dist/ui/static/_next/static/chunks/413lmui4la1xe.js +0 -1
- package/dist/ui/static/_next/static/chunks/41ca6l5ikqt65.js +0 -1
- package/dist/ui/static/_next/static/chunks/44jv6p8ly-u3e.js +0 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts +0 -29
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.js +0 -30
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts +0 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.js +0 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts +0 -29
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.js +0 -135
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts +0 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.js +0 -24
- package/vendor/oscharko-dev-keiko-activity-log-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.1.13.tgz +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_ssgManifest.js +0 -0
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { logAliasIntersection } from "./gateway-discovery-log.js";
|
|
1
|
+
import { logAliasIntersection, logRerankerSetupResolution, } from "./gateway-discovery-log.js";
|
|
2
2
|
import { gatewaySpendBudgetForEnv, reserveGatewaySpendForAttempt } from "./gateway-spend-budget.js";
|
|
3
3
|
// First-run gateway setup for non-technical UI users. The browser provides a base URL, API token,
|
|
4
4
|
// and optionally a Figma PAT; the loopback BFF builds the local provider config, performs a real
|
|
5
5
|
// chat-completions smoke call, stores the resulting config on disk with private permissions, and
|
|
6
6
|
// updates the in-memory runtime config without exposing credentials back to the browser.
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
8
|
+
import { causeChain, keikoStackFrames } from "@oscharko-dev/keiko-activity-log";
|
|
9
|
+
import { createRequestCancellation } from "./request-cancellation.js";
|
|
8
10
|
import { existsSync, readFileSync } from "node:fs";
|
|
9
11
|
import { resolveEvidenceDir } from "@oscharko-dev/keiko-evidence";
|
|
10
12
|
import { apiKeyHeaderValue, ConfigInvalidError, DEFAULT_API_KEY_HEADER_NAME, ERROR_CODES, Gateway, GATEWAY_CONFIG_SCHEMA_VERSION, createDefaultChatCapability, createDefaultEmbeddingCapability, findConfiguredCapability, GatewayError, MODEL_REASONING_EFFORTS, isLikelyEmbeddingModelId, isVoiceCapability, isCompleteRealtimeVoiceCapability, listConfiguredCapabilities, loadConfigFromFile, modelSupportsRealtimeVoice, modelSupportsSpeechInput, modelSupportsSpeechOutput, normalizeApiKeyHeaderName, parseGatewayConfig, requestOpenAIEmbedding, selectRealtimeVoiceModel, selectSpeechOutputModel, selectSpeechToTextModel, toSafeObject, validateBaseUrl, PROVIDER_ENDPOINT_STYLES, REALTIME_AUTH_MODES, toolCallingConfigurationFingerprint, VOICE_PROVIDER_LOCALITIES,
|
|
11
13
|
// KEIKO-0572: shared circuitBreaker defaults; hoisted into this import block instead of the
|
|
12
14
|
// separate `import { DEFAULT_CIRCUIT_BREAKER_CONFIG } from ...` line Sonar S3863 flagged.
|
|
13
15
|
DEFAULT_CIRCUIT_BREAKER_CONFIG, } from "@oscharko-dev/keiko-model-gateway";
|
|
14
|
-
import { boundedUnsupportedReason, isChatCompatibleDeclaredMode, modelKindForDeclaredMode, } from "@oscharko-dev/keiko-contracts/runtime/gateway";
|
|
16
|
+
import { boundedUnsupportedReason, isChatCompatibleDeclaredMode, isLikelyRerankModelId, modelKindForDeclaredMode, } from "@oscharko-dev/keiko-contracts/runtime/gateway";
|
|
15
17
|
import { GATEWAY_SETUP_AUDIT_SCHEMA_VERSION, validateGatewaySetupAuditRecord, } from "@oscharko-dev/keiko-contracts/runtime/gateway-setup-audit";
|
|
16
18
|
import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
17
|
-
import { classifyOutboundHost, gatewayFetch, readJsonCapped, } from "@oscharko-dev/keiko-model-gateway/internal/http";
|
|
19
|
+
import { classifyOutboundHost, gatewayFetch, readJsonCapped, GatewayResponseBodyValidationError, } from "@oscharko-dev/keiko-model-gateway/internal/http";
|
|
18
20
|
import { errorBody } from "./routes.js";
|
|
19
21
|
import { currentGatewayConfig, currentGatewayEgressConfig } from "./deps.js";
|
|
20
22
|
import { correlationIdOrUnknown, UNKNOWN_CORRELATION_ID } from "./correlation.js";
|
|
21
23
|
import { emitServerDiagnostic, serverDiagnosticFromError, } from "./diagnostics-log.js";
|
|
22
24
|
import { CONVERSATION_SYSTEM_PROMPT } from "./conversation-prompt.js";
|
|
25
|
+
import { logAutomaticCatalog } from "./gateway-startup-activity.js";
|
|
23
26
|
import { processServerLogSink } from "./process-log-sink.js";
|
|
24
27
|
import { classifyFigmaTransportError, FigmaConnectorError, } from "./qualityIntelligence/figma/figmaConnectorErrors.js";
|
|
25
28
|
import { classifyTokenFailure } from "./qualityIntelligence/figma/figmaTokenSource.js";
|
|
@@ -27,6 +30,7 @@ import { buildQiJudgePreflightRequest, tryParseJudgeVerdict, } from "./qualityIn
|
|
|
27
30
|
import { persistSealedGatewayConfig } from "./credentialPersistence.js";
|
|
28
31
|
import { bindSecurityLogCorrelation } from "@oscharko-dev/keiko-security";
|
|
29
32
|
import { probeGatewayToolCalling, transientGatewayStatus } from "./gateway-tool-calling-probe.js";
|
|
33
|
+
import { requestRerankerProbe, rerankerProbePassed } from "./gateway-reranker-probe.js";
|
|
30
34
|
const MODEL_REASONING_EFFORT_SET = new Set(MODEL_REASONING_EFFORTS);
|
|
31
35
|
function isModelReasoningEffort(value) {
|
|
32
36
|
return MODEL_REASONING_EFFORT_SET.has(value);
|
|
@@ -49,6 +53,8 @@ const MISTRAL_TOOL_CALLING_LIMITATION = "Tool calling is disabled by default for
|
|
|
49
53
|
// exact value instead of restating it (Issue #144 precedent — see `MAX_DISCOVERED_MODELS`).
|
|
50
54
|
export const DISCOVERED_MODEL_SMOKE_TIMEOUT_MS = 120_000;
|
|
51
55
|
const DEPLOYMENT_SMOKE_TIMEOUT_MS = 30_000;
|
|
56
|
+
const DISCOVERY_TIMEOUT_MS = 30_000;
|
|
57
|
+
const DISCOVERY_FALLBACK_RESERVE_MS = 5_000;
|
|
52
58
|
// The whole discovery smoke ROUND's own patience budget — distinct from the per-candidate ceiling
|
|
53
59
|
// above. Past this deadline no further candidate probe is even started: the remaining candidates
|
|
54
60
|
// are retained unverified without being called, so a large discovery batch of temporarily-transient
|
|
@@ -109,6 +115,97 @@ const GATEWAY_VOICE_SETUP_OPERATION = defineActivityLogOperation({
|
|
|
109
115
|
proofIds: ["gateway.voice.setup.resolved.line"],
|
|
110
116
|
releaseImpact: "minor",
|
|
111
117
|
});
|
|
118
|
+
const DISCOVERY_ROUTE_OUTCOME_FIELD = {
|
|
119
|
+
type: "string",
|
|
120
|
+
dataClass: "closed-enum",
|
|
121
|
+
required: true,
|
|
122
|
+
values: [
|
|
123
|
+
"not-attempted",
|
|
124
|
+
"available",
|
|
125
|
+
"timeout",
|
|
126
|
+
"http-error",
|
|
127
|
+
"unusable",
|
|
128
|
+
"transport-error",
|
|
129
|
+
"cancelled",
|
|
130
|
+
"failed",
|
|
131
|
+
],
|
|
132
|
+
};
|
|
133
|
+
function createSetupDiscoveryTrace() {
|
|
134
|
+
return {
|
|
135
|
+
discoverySource: "custom",
|
|
136
|
+
modelInfoOutcome: "not-attempted",
|
|
137
|
+
modelGroupInfoOutcome: "not-attempted",
|
|
138
|
+
modelListOutcome: "not-attempted",
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
const GATEWAY_SETUP_METADATA_OPERATION = defineActivityLogOperation({
|
|
142
|
+
contractKind: "activity-log-operation",
|
|
143
|
+
schemaVersion: 1,
|
|
144
|
+
op: "gateway.setup.metadata.resolved",
|
|
145
|
+
category: "gateway",
|
|
146
|
+
owner: "keiko-server",
|
|
147
|
+
emitter: "gateway-setup.logSetupMetadataOutcome",
|
|
148
|
+
fields: {
|
|
149
|
+
outcome: {
|
|
150
|
+
type: "string",
|
|
151
|
+
dataClass: "closed-enum",
|
|
152
|
+
required: true,
|
|
153
|
+
values: ["available", "unavailable", "cancelled", "failed"],
|
|
154
|
+
},
|
|
155
|
+
discoverySource: {
|
|
156
|
+
type: "string",
|
|
157
|
+
dataClass: "closed-enum",
|
|
158
|
+
required: true,
|
|
159
|
+
values: ["custom", "model-info", "model-group-info", "model-list"],
|
|
160
|
+
},
|
|
161
|
+
modelInfoOutcome: DISCOVERY_ROUTE_OUTCOME_FIELD,
|
|
162
|
+
modelGroupInfoOutcome: DISCOVERY_ROUTE_OUTCOME_FIELD,
|
|
163
|
+
modelListOutcome: DISCOVERY_ROUTE_OUTCOME_FIELD,
|
|
164
|
+
elapsedMs: { type: "integer", dataClass: "duration", required: true },
|
|
165
|
+
selectedModelCount: { type: "integer", dataClass: "count", required: false },
|
|
166
|
+
metadataEnrichedModelCount: { type: "integer", dataClass: "count", required: false },
|
|
167
|
+
roleMismatchModelCount: { type: "integer", dataClass: "count", required: false },
|
|
168
|
+
notDiscoveredModelCount: { type: "integer", dataClass: "count", required: false },
|
|
169
|
+
httpStatus: { type: "integer", dataClass: "count", required: false },
|
|
170
|
+
frames: {
|
|
171
|
+
type: "string-array",
|
|
172
|
+
dataClass: "safe-platform-class",
|
|
173
|
+
required: false,
|
|
174
|
+
maxItems: 8,
|
|
175
|
+
maxLength: 512,
|
|
176
|
+
},
|
|
177
|
+
causeChain: {
|
|
178
|
+
type: "string-array",
|
|
179
|
+
dataClass: "error-kind",
|
|
180
|
+
required: false,
|
|
181
|
+
maxItems: 5,
|
|
182
|
+
maxLength: 128,
|
|
183
|
+
},
|
|
184
|
+
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
185
|
+
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
186
|
+
},
|
|
187
|
+
causal: "correlation",
|
|
188
|
+
lifecycle: "state",
|
|
189
|
+
analyzerProjection: "timeline",
|
|
190
|
+
failureClasses: ["gateway-setup-metadata"],
|
|
191
|
+
proofIds: ["gateway.setup.metadata.resolved.line"],
|
|
192
|
+
releaseImpact: "patch",
|
|
193
|
+
});
|
|
194
|
+
function logSetupMetadataOutcome(input, trace, startedAt, correlationId, sink = processServerLogSink()) {
|
|
195
|
+
const failure = input.outcome === "available" ? undefined : input.failure;
|
|
196
|
+
sink.write(activityLogEvent(GATEWAY_SETUP_METADATA_OPERATION, {
|
|
197
|
+
correlationId: correlationIdOrUnknown(correlationId),
|
|
198
|
+
...(failure === undefined ? {} : { errorKind: failure.errorKind }),
|
|
199
|
+
}, {
|
|
200
|
+
outcome: input.outcome,
|
|
201
|
+
...trace,
|
|
202
|
+
elapsedMs: Math.max(0, Date.now() - startedAt),
|
|
203
|
+
completeness: "complete",
|
|
204
|
+
loss: "none",
|
|
205
|
+
...input.selectionCounts,
|
|
206
|
+
...failure?.evidence,
|
|
207
|
+
}));
|
|
208
|
+
}
|
|
112
209
|
const FIGMA_CREDENTIAL_SMOKE_TIMEOUT_MS = 15_000;
|
|
113
210
|
const FIGMA_CREDENTIAL_SMOKE_RESPONSE_BYTES = 64_000;
|
|
114
211
|
const SETUP_SMOKE_CONCURRENCY = 4;
|
|
@@ -379,6 +476,9 @@ function discoveredCapabilityFields(discovered) {
|
|
|
379
476
|
// Keiko's forced tool call. Keep it out of toolCalling: only the live probe can enable tools.
|
|
380
477
|
return {
|
|
381
478
|
...(discovered?.contextWindow === undefined ? {} : { contextWindow: discovered.contextWindow }),
|
|
479
|
+
...(discovered?.maxInputTokens === undefined
|
|
480
|
+
? {}
|
|
481
|
+
: { maxInputTokens: discovered.maxInputTokens }),
|
|
382
482
|
...(discovered?.maxOutputTokens === undefined
|
|
383
483
|
? {}
|
|
384
484
|
: { maxOutputTokens: discovered.maxOutputTokens }),
|
|
@@ -403,6 +503,16 @@ function workflowCapabilityFields(modelId, baseCapability, existing, workflowEli
|
|
|
403
503
|
preferredUseCases: codingUseCases(existing ?? baseCapability),
|
|
404
504
|
};
|
|
405
505
|
}
|
|
506
|
+
function declaresContextWindow(discovered) {
|
|
507
|
+
return discovered?.contextWindow !== undefined && discovered.contextWindowUndeclared !== true;
|
|
508
|
+
}
|
|
509
|
+
// Only declared context geometry replaces a stored optional input ceiling; a degraded list preserves it.
|
|
510
|
+
function refreshedSetupCapability(existing, discovered) {
|
|
511
|
+
if (existing === undefined || !declaresContextWindow(discovered))
|
|
512
|
+
return existing;
|
|
513
|
+
const { maxInputTokens, ...retained } = existing;
|
|
514
|
+
return retained;
|
|
515
|
+
}
|
|
406
516
|
function createDefaultSetupCapability(modelId, baseUrl, embeddingModelIds, options) {
|
|
407
517
|
const baseCapability = embeddingModelIds?.includes(modelId) === true
|
|
408
518
|
? createDefaultEmbeddingCapability(modelId)
|
|
@@ -421,9 +531,9 @@ function createDefaultSetupCapability(modelId, baseUrl, embeddingModelIds, optio
|
|
|
421
531
|
// fields (contextWindow, maxOutputTokens) belong to the wrong kind — a chat capability with an
|
|
422
532
|
// embedding's contextWindow: 0 fails config-parse under KEIKO-0520. Treat existing as absent
|
|
423
533
|
// when its kind no longer matches so the flow restarts from baseCapability's defaults.
|
|
424
|
-
const existing = rawExisting?.kind === baseCapability.kind ? rawExisting : undefined;
|
|
425
534
|
const discovered = options.modelMetadata?.[modelId];
|
|
426
|
-
const
|
|
535
|
+
const existing = refreshedSetupCapability(rawExisting?.kind === baseCapability.kind ? rawExisting : undefined, discovered);
|
|
536
|
+
const capability = withContextWindowProvenance(existing, discovered, {
|
|
427
537
|
...baseCapability,
|
|
428
538
|
// The endpoint-move restriction is PRESERVE semantics: a fresh replacement deliberately
|
|
429
539
|
// treats stored capabilities as absent, like every stored list on this route (review
|
|
@@ -436,9 +546,28 @@ function createDefaultSetupCapability(modelId, baseUrl, embeddingModelIds, optio
|
|
|
436
546
|
id: modelId,
|
|
437
547
|
kind: baseCapability.kind,
|
|
438
548
|
...workflowCapabilityFields(modelId, baseCapability, existing, options.workflowEligibleModelIds),
|
|
439
|
-
};
|
|
549
|
+
});
|
|
440
550
|
return capability;
|
|
441
551
|
}
|
|
552
|
+
/** The capability without its window provenance flags (assumed / provider-reported). */
|
|
553
|
+
export function withoutAssumedContextWindow(capability) {
|
|
554
|
+
const { contextWindowAssumed, contextWindowReported, ...measured } = capability;
|
|
555
|
+
return contextWindowAssumed === true || contextWindowReported === true ? measured : capability;
|
|
556
|
+
}
|
|
557
|
+
// A window is assumed only while nobody has stated it: a discovered declaration ends the
|
|
558
|
+
// assumption, a stored capability keeps its own provenance (a probed or provider-reported window
|
|
559
|
+
// survives a rediscovery that declares nothing), and a brand-new chat model starts assumed.
|
|
560
|
+
function withContextWindowProvenance(existing, discovered, capability) {
|
|
561
|
+
const measured = withoutAssumedContextWindow(capability);
|
|
562
|
+
if (capability.kind !== "chat" || declaresContextWindow(discovered))
|
|
563
|
+
return measured;
|
|
564
|
+
if (existing === undefined || existing.contextWindowAssumed === true) {
|
|
565
|
+
return { ...measured, contextWindowAssumed: true };
|
|
566
|
+
}
|
|
567
|
+
return existing.contextWindowReported === true
|
|
568
|
+
? { ...measured, contextWindowReported: true }
|
|
569
|
+
: measured;
|
|
570
|
+
}
|
|
442
571
|
// The generic endpoint protocol persists VERBATIM — absent fields stay absent so the runtime
|
|
443
572
|
// default layering is unchanged (#3042).
|
|
444
573
|
function genericEndpointProtocolRaw(options) {
|
|
@@ -447,6 +576,17 @@ function genericEndpointProtocolRaw(options) {
|
|
|
447
576
|
...(options.apiVersion === undefined ? {} : { apiVersion: options.apiVersion }),
|
|
448
577
|
};
|
|
449
578
|
}
|
|
579
|
+
function providerCatalogOrigin(modelId, options) {
|
|
580
|
+
const existing = (options.stored ?? options.current)?.providers.find((provider) => provider.modelId === modelId);
|
|
581
|
+
let origin;
|
|
582
|
+
if (options.explicitDeploymentNames?.includes(modelId) === true)
|
|
583
|
+
origin = "explicit";
|
|
584
|
+
else if (existing === undefined)
|
|
585
|
+
origin = options.catalogOrigin;
|
|
586
|
+
else
|
|
587
|
+
origin = existing.catalogOrigin;
|
|
588
|
+
return origin === undefined ? {} : { catalogOrigin: origin };
|
|
589
|
+
}
|
|
450
590
|
function providerRaw(modelId, baseUrl, apiKey, options = {}) {
|
|
451
591
|
const defaultCapability = createDefaultSetupCapability(modelId, baseUrl, options.embeddingModelIds, options);
|
|
452
592
|
const supportsResponseFormat = options.responseFormatModelIds?.includes(modelId) === true;
|
|
@@ -456,6 +596,7 @@ function providerRaw(modelId, baseUrl, apiKey, options = {}) {
|
|
|
456
596
|
apiKey,
|
|
457
597
|
apiKeyHeaderName: options.apiKeyHeaderName ?? DEFAULT_API_KEY_HEADER_NAME,
|
|
458
598
|
...genericEndpointProtocolRaw(options),
|
|
599
|
+
...providerCatalogOrigin(modelId, options),
|
|
459
600
|
...modelTokenCounterMetadata(options, modelId),
|
|
460
601
|
capability: {
|
|
461
602
|
...defaultCapability,
|
|
@@ -593,9 +734,21 @@ function reasoningEffortsFromDiscoveryRecords(records) {
|
|
|
593
734
|
? [...new Set(stringListFieldFromRecords(records, fields).filter(isModelReasoningEffort))]
|
|
594
735
|
: undefined;
|
|
595
736
|
}
|
|
737
|
+
// Explicit total-window declarations are distinct from LiteLLM's prompt-input ceiling.
|
|
738
|
+
// All declarations of the same constraint intersect; replicas cannot widen a smaller bound.
|
|
739
|
+
const DECLARED_CONTEXT_WINDOW_FIELDS = [
|
|
740
|
+
"max_model_len",
|
|
741
|
+
"context_length",
|
|
742
|
+
"context_window",
|
|
743
|
+
];
|
|
744
|
+
function declaredContextWindow(records) {
|
|
745
|
+
return (numberFieldFromRecords(records, DECLARED_CONTEXT_WINDOW_FIELDS) ??
|
|
746
|
+
numberFieldFromRecords(records, ["max_input_tokens"]));
|
|
747
|
+
}
|
|
596
748
|
function metadataFromDiscoveryItem(item) {
|
|
597
749
|
const records = discoveryRecords(item);
|
|
598
|
-
const contextWindow =
|
|
750
|
+
const contextWindow = declaredContextWindow(records);
|
|
751
|
+
const maxInputTokens = numberFieldFromRecords(records, ["max_input_tokens"]);
|
|
599
752
|
const maxOutputTokens = numberFieldFromRecords(records, ["max_output_tokens", "max_tokens"]);
|
|
600
753
|
const toolCalling = optionalBooleanFieldFromRecords(records, [
|
|
601
754
|
"supports_function_calling",
|
|
@@ -609,6 +762,7 @@ function metadataFromDiscoveryItem(item) {
|
|
|
609
762
|
const chatModeDeclared = declaresChatCompatibleMode(mode);
|
|
610
763
|
return {
|
|
611
764
|
...(contextWindow === undefined ? {} : { contextWindow }),
|
|
765
|
+
...(maxInputTokens === undefined ? {} : { maxInputTokens }),
|
|
612
766
|
...(maxOutputTokens === undefined ? {} : { maxOutputTokens }),
|
|
613
767
|
...(toolCalling === undefined ? {} : { toolCalling }),
|
|
614
768
|
...(reasoningEfforts === undefined ? {} : { reasoningEfforts }),
|
|
@@ -750,12 +904,16 @@ function stripDerivedVoicePersonas(capability) {
|
|
|
750
904
|
// the preserve-existing save path round-trips a parsed config back to raw for persistence, and the
|
|
751
905
|
// Issue #1557 voice-persona round-trip (voiceProfiles preserved, derived supportedVoicePersonas
|
|
752
906
|
// stripped and re-derived on reload — ADR-0094 D2) is pinned directly against this function.
|
|
907
|
+
function storedCatalogOrigin(provider) {
|
|
908
|
+
return provider.catalogOrigin === undefined ? {} : { catalogOrigin: provider.catalogOrigin };
|
|
909
|
+
}
|
|
753
910
|
function rawProviderFromCurrent(provider, capability, timeoutMs) {
|
|
754
911
|
return {
|
|
755
912
|
modelId: provider.modelId,
|
|
756
913
|
baseUrl: provider.baseUrl,
|
|
757
|
-
|
|
914
|
+
...rawProviderCredential(provider),
|
|
758
915
|
apiKeyHeaderName: provider.apiKeyHeaderName ?? DEFAULT_API_KEY_HEADER_NAME,
|
|
916
|
+
...storedCatalogOrigin(provider),
|
|
759
917
|
...(provider.endpointStyle === undefined ? {} : { endpointStyle: provider.endpointStyle }),
|
|
760
918
|
...(provider.apiVersion === undefined ? {} : { apiVersion: provider.apiVersion }),
|
|
761
919
|
...(provider.outputTokenParameter === undefined
|
|
@@ -777,6 +935,28 @@ function rawProviderFromCurrent(provider, capability, timeoutMs) {
|
|
|
777
935
|
...(capability === undefined ? {} : { capability: stripDerivedVoicePersonas(capability) }),
|
|
778
936
|
};
|
|
779
937
|
}
|
|
938
|
+
function rawProviderCredential(provider) {
|
|
939
|
+
return provider.apiKeySourceModelId === undefined
|
|
940
|
+
? {
|
|
941
|
+
apiKey: provider.apiKey,
|
|
942
|
+
...(provider.apiKeySecretRef === undefined
|
|
943
|
+
? {}
|
|
944
|
+
: { apiKeySecretRef: provider.apiKeySecretRef }),
|
|
945
|
+
}
|
|
946
|
+
: { apiKeySourceModelId: provider.apiKeySourceModelId };
|
|
947
|
+
}
|
|
948
|
+
// The operator's coding opt-outs (owner decision 2026-10-06: live streaming and the model
|
|
949
|
+
// reasoning display are on unless switched off) are operator blocks no setup step produces: a
|
|
950
|
+
// setup save keeps them verbatim, or an unrelated credential or capability update would silently
|
|
951
|
+
// switch an operator back to the default.
|
|
952
|
+
function codingOperatorSwitches(config) {
|
|
953
|
+
return {
|
|
954
|
+
...(config?.codingStreaming === undefined ? {} : { codingStreaming: config.codingStreaming }),
|
|
955
|
+
...(config?.codingReasoningDisplay === undefined
|
|
956
|
+
? {}
|
|
957
|
+
: { codingReasoningDisplay: config.codingReasoningDisplay }),
|
|
958
|
+
};
|
|
959
|
+
}
|
|
780
960
|
export function rawConfigFromCurrent(config, figmaAccessToken, timeoutMs) {
|
|
781
961
|
return {
|
|
782
962
|
providers: config.providers.map((provider) => rawProviderFromCurrent(provider, config.capabilities?.find((item) => item.id === provider.modelId), timeoutMs)),
|
|
@@ -787,6 +967,21 @@ export function rawConfigFromCurrent(config, figmaAccessToken, timeoutMs) {
|
|
|
787
967
|
...(config.grounding === undefined ? {} : { grounding: config.grounding }),
|
|
788
968
|
...(config.reranker === undefined ? {} : { reranker: config.reranker }),
|
|
789
969
|
...(figmaAccessToken === undefined ? {} : { figma: { accessToken: figmaAccessToken } }),
|
|
970
|
+
...operatorPolicyBlocks(config),
|
|
971
|
+
...codingOperatorSwitches(config),
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
// Operator-declared blocks no setup step produces: they survive every rebuild verbatim, so a
|
|
975
|
+
// capability update never drops the grounded-answer policy, the PR branding (PR #3678) or the
|
|
976
|
+
// coding outage window (#3873). Present-only, never truthy: an explicit `codingOutageWindowMs: 0`
|
|
977
|
+
// is the operator's fail-fast opt-out and must survive a save as well.
|
|
978
|
+
function operatorPolicyBlocks(config) {
|
|
979
|
+
return {
|
|
980
|
+
...(config?.groundedAnswers === undefined ? {} : { groundedAnswers: config.groundedAnswers }),
|
|
981
|
+
...(config?.branding === undefined ? {} : { branding: config.branding }),
|
|
982
|
+
...(config?.codingOutageWindowMs === undefined
|
|
983
|
+
? {}
|
|
984
|
+
: { codingOutageWindowMs: config.codingOutageWindowMs }),
|
|
790
985
|
};
|
|
791
986
|
}
|
|
792
987
|
function rawCapabilityIsVoice(value) {
|
|
@@ -955,11 +1150,40 @@ export function isExplicitlyNonChatModel(item) {
|
|
|
955
1150
|
function isUnsupportedEntry(entry) {
|
|
956
1151
|
return entry.kind === "unsupported" && entry.reason !== undefined;
|
|
957
1152
|
}
|
|
1153
|
+
// A rerank engine is recognised and REPORTED here, never configured as chat or embedding. Setup
|
|
1154
|
+
// wires it as the retrieval reranker afterwards, and only when a live probe answers — the entry
|
|
1155
|
+
// stays in the unsupported list until then, and after it whenever the operator already owns one.
|
|
1156
|
+
function rerankDiscoveryModel(id, metadata, declared) {
|
|
1157
|
+
return {
|
|
1158
|
+
id,
|
|
1159
|
+
kind: "unsupported",
|
|
1160
|
+
...(declared ? { declaredNonChat: true } : {}),
|
|
1161
|
+
supportsImageInput: false,
|
|
1162
|
+
metadata,
|
|
1163
|
+
reason: "rerank",
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
958
1166
|
// Classification WITHOUT a declaration: the id heuristic is all a `/models`-only gateway gives us.
|
|
1167
|
+
// A name that says "reranker" is decided FIRST — "bge-reranker-v2-m3" carries the "bge" embedding
|
|
1168
|
+
// family prefix and must never be claimed as an embedding model. `capabilities.chat_completion ===
|
|
1169
|
+
// false` states what the model is NOT, which is not a role: an embedding model legitimately carries
|
|
1170
|
+
// it, so the id heuristic still decides and cannot fall through to "chat".
|
|
959
1171
|
function classifyUndeclaredDiscoveryItem(item, id, metadata) {
|
|
1172
|
+
if (isLikelyRerankModelId(id))
|
|
1173
|
+
return rerankDiscoveryModel(id, metadata, false);
|
|
960
1174
|
if (isLikelyEmbeddingModelId(id)) {
|
|
961
1175
|
return { id, kind: "embedding", supportsImageInput: false, metadata };
|
|
962
1176
|
}
|
|
1177
|
+
if (isExplicitlyNonChatModel(item)) {
|
|
1178
|
+
return {
|
|
1179
|
+
id,
|
|
1180
|
+
kind: "unsupported",
|
|
1181
|
+
supportsImageInput: false,
|
|
1182
|
+
metadata,
|
|
1183
|
+
reason: "not-chat-capable",
|
|
1184
|
+
declaredNonChat: true,
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
963
1187
|
return {
|
|
964
1188
|
id,
|
|
965
1189
|
kind: "chat",
|
|
@@ -982,52 +1206,38 @@ function classifyDiscoveryItem(item) {
|
|
|
982
1206
|
}
|
|
983
1207
|
const metadata = metadataFromDiscoveryItem(item);
|
|
984
1208
|
const declaredMode = modelModeFromDiscoveryItem(item);
|
|
985
|
-
if (declaredMode
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
declaredNonChat: true,
|
|
1000
|
-
supportsImageInput: false,
|
|
1001
|
-
metadata,
|
|
1002
|
-
reason,
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
if (role === "embedding") {
|
|
1006
|
-
return { id, kind: "embedding", supportsImageInput: false, metadata };
|
|
1007
|
-
}
|
|
1209
|
+
if (declaredMode === undefined)
|
|
1210
|
+
return classifyUndeclaredDiscoveryItem(item, id, metadata);
|
|
1211
|
+
const voiceRole = voiceRoleForDeclaredMode(declaredMode);
|
|
1212
|
+
if (voiceRole !== undefined) {
|
|
1213
|
+
return { id, kind: "voice", voiceRole, supportsImageInput: false, metadata };
|
|
1214
|
+
}
|
|
1215
|
+
const role = modelKindForDeclaredMode(declaredMode);
|
|
1216
|
+
if (role === "rerank")
|
|
1217
|
+
return rerankDiscoveryModel(id, metadata, true);
|
|
1218
|
+
if (role === "unsupported") {
|
|
1219
|
+
// The reason is drawn from a CLOSED vocabulary. A declared mode is gateway-controlled text of
|
|
1220
|
+
// unbounded shape; echoing it verbatim would put foreign strings into the diagnostic channel
|
|
1221
|
+
// and the setup response, which the redaction rules forbid.
|
|
1222
|
+
const reason = boundedUnsupportedReason(declaredMode);
|
|
1008
1223
|
return {
|
|
1009
1224
|
id,
|
|
1010
|
-
kind: "
|
|
1011
|
-
|
|
1225
|
+
kind: "unsupported",
|
|
1226
|
+
declaredNonChat: true,
|
|
1227
|
+
supportsImageInput: false,
|
|
1012
1228
|
metadata,
|
|
1229
|
+
reason,
|
|
1013
1230
|
};
|
|
1014
1231
|
}
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
// exactly as before — it just cannot fall through to "chat".
|
|
1018
|
-
if (isExplicitlyNonChatModel(item)) {
|
|
1019
|
-
return isLikelyEmbeddingModelId(id)
|
|
1020
|
-
? { id, kind: "embedding", supportsImageInput: false, metadata }
|
|
1021
|
-
: {
|
|
1022
|
-
id,
|
|
1023
|
-
kind: "unsupported",
|
|
1024
|
-
supportsImageInput: false,
|
|
1025
|
-
metadata,
|
|
1026
|
-
reason: "not-chat-capable",
|
|
1027
|
-
declaredNonChat: true,
|
|
1028
|
-
};
|
|
1232
|
+
if (role === "embedding") {
|
|
1233
|
+
return { id, kind: "embedding", declaredRole: true, supportsImageInput: false, metadata };
|
|
1029
1234
|
}
|
|
1030
|
-
return
|
|
1235
|
+
return {
|
|
1236
|
+
id,
|
|
1237
|
+
kind: "chat",
|
|
1238
|
+
supportsImageInput: supportsImageInputFromDiscoveryItem(item, id),
|
|
1239
|
+
metadata,
|
|
1240
|
+
};
|
|
1031
1241
|
}
|
|
1032
1242
|
function voiceRoleForDeclaredMode(mode) {
|
|
1033
1243
|
if (mode === "audio_transcription")
|
|
@@ -1051,23 +1261,15 @@ export function modelIdFromDiscoveryItem(item) {
|
|
|
1051
1261
|
? undefined
|
|
1052
1262
|
: classified.id;
|
|
1053
1263
|
}
|
|
1054
|
-
//
|
|
1055
|
-
//
|
|
1056
|
-
|
|
1057
|
-
export function parseModelDiscovery(payload, correlationId) {
|
|
1264
|
+
// Setup remains strict on empty discovery. Runtime refresh admits a complete empty listing,
|
|
1265
|
+
// but rejects malformed entries so a partial response cannot remove active models.
|
|
1266
|
+
export function parseModelDiscovery(payload, correlationId, options) {
|
|
1058
1267
|
if (!isRecord(payload) || !Array.isArray(payload.data)) {
|
|
1059
1268
|
throw new Error("model discovery response must contain a data array");
|
|
1060
1269
|
}
|
|
1061
1270
|
// An alias may route to any deployment. Its usable geometry is their intersection; list order
|
|
1062
1271
|
// must never grant the largest deployment's capabilities to its smaller peers.
|
|
1063
|
-
const
|
|
1064
|
-
for (const item of payload.data) {
|
|
1065
|
-
const classified = classifyDiscoveryItem(item);
|
|
1066
|
-
if (classified === undefined)
|
|
1067
|
-
continue;
|
|
1068
|
-
collectDiscoveryDeployment(byId, classified);
|
|
1069
|
-
}
|
|
1070
|
-
const entries = [...byId.values()];
|
|
1272
|
+
const entries = discoveryEntries(payload.data, options?.allowEmpty === true);
|
|
1071
1273
|
// LiteLLM declares audio roles in /model/info. Preserve the existing chat/embedding discovery
|
|
1072
1274
|
// contract while routing these declarations to Voice setup; a Whisper alias is never a chat model.
|
|
1073
1275
|
const voiceEntries = entries.filter((entry) => entry.kind === "voice");
|
|
@@ -1086,9 +1288,23 @@ export function parseModelDiscovery(payload, correlationId) {
|
|
|
1086
1288
|
const boundedVoice = voiceEntries.slice(0, MAX_DISCOVERED_MODELS);
|
|
1087
1289
|
for (const entry of [...usable, ...boundedVoice, ...unsupported.slice(0, MAX_DISCOVERED_MODELS)])
|
|
1088
1290
|
logDiscoveryMerge(entry, correlationId);
|
|
1089
|
-
|
|
1291
|
+
if (options?.allowEmpty !== true)
|
|
1292
|
+
assertDiscoveryYieldedUsableModels([...usable, ...boundedVoice], unsupported);
|
|
1090
1293
|
return discoveredModelLists(usable, boundedVoice, unsupported, wasTruncated);
|
|
1091
1294
|
}
|
|
1295
|
+
function discoveryEntries(data, runtime) {
|
|
1296
|
+
const byId = new Map();
|
|
1297
|
+
for (const item of data) {
|
|
1298
|
+
const classified = classifyDiscoveryItem(item);
|
|
1299
|
+
if (classified === undefined) {
|
|
1300
|
+
if (runtime)
|
|
1301
|
+
throw new Error("runtime model catalog contains an invalid entry");
|
|
1302
|
+
continue;
|
|
1303
|
+
}
|
|
1304
|
+
collectDiscoveryDeployment(byId, classified);
|
|
1305
|
+
}
|
|
1306
|
+
return [...byId.values()];
|
|
1307
|
+
}
|
|
1092
1308
|
function collectDiscoveryDeployment(byId, incoming) {
|
|
1093
1309
|
const existing = byId.get(incoming.id);
|
|
1094
1310
|
byId.set(incoming.id, {
|
|
@@ -1102,38 +1318,55 @@ function mergeDiscoveryDeployment(existing, incoming) {
|
|
|
1102
1318
|
return incoming;
|
|
1103
1319
|
if (existing.deploymentConflict === true)
|
|
1104
1320
|
return existing;
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
};
|
|
1112
|
-
}
|
|
1321
|
+
// Load-balanced replicas of one declared non-chat role (two `mode: "rerank"` entries of one
|
|
1322
|
+
// alias) are one engine; only an alias that MIXES roles is a conflict.
|
|
1323
|
+
if (isSameRoleUnsupportedReplica(existing, incoming))
|
|
1324
|
+
return mergedReplica(existing, incoming);
|
|
1325
|
+
if (hasDeclaredNonChatDeployment(existing, incoming))
|
|
1326
|
+
return conflictingDeployment(existing);
|
|
1113
1327
|
if (existing.kind === "unsupported")
|
|
1114
1328
|
return incoming;
|
|
1115
1329
|
if (incoming.kind === "unsupported")
|
|
1116
1330
|
return existing;
|
|
1117
1331
|
if (existing.kind !== incoming.kind || existing.voiceRole !== incoming.voiceRole) {
|
|
1118
|
-
return
|
|
1119
|
-
...existing,
|
|
1120
|
-
kind: "unsupported",
|
|
1121
|
-
deploymentConflict: true,
|
|
1122
|
-
reason: "not-chat-capable",
|
|
1123
|
-
};
|
|
1332
|
+
return conflictingDeployment(existing);
|
|
1124
1333
|
}
|
|
1334
|
+
return mergedReplica(existing, incoming);
|
|
1335
|
+
}
|
|
1336
|
+
function isSameRoleUnsupportedReplica(existing, incoming) {
|
|
1337
|
+
return (existing.kind === "unsupported" &&
|
|
1338
|
+
incoming.kind === "unsupported" &&
|
|
1339
|
+
existing.reason === incoming.reason);
|
|
1340
|
+
}
|
|
1341
|
+
function mergedReplica(existing, incoming) {
|
|
1125
1342
|
return {
|
|
1126
1343
|
...existing,
|
|
1344
|
+
...(existing.declaredNonChat === true || incoming.declaredNonChat === true
|
|
1345
|
+
? { declaredNonChat: true }
|
|
1346
|
+
: {}),
|
|
1347
|
+
// One declared replica is a declaration for the alias, whichever the gateway listed first.
|
|
1348
|
+
...(existing.declaredRole === true || incoming.declaredRole === true
|
|
1349
|
+
? { declaredRole: true }
|
|
1350
|
+
: {}),
|
|
1127
1351
|
supportsImageInput: existing.supportsImageInput && incoming.supportsImageInput,
|
|
1128
1352
|
metadata: intersectDeploymentMetadata(existing.metadata, incoming.metadata),
|
|
1129
1353
|
};
|
|
1130
1354
|
}
|
|
1355
|
+
function conflictingDeployment(existing) {
|
|
1356
|
+
return {
|
|
1357
|
+
...existing,
|
|
1358
|
+
kind: "unsupported",
|
|
1359
|
+
deploymentConflict: true,
|
|
1360
|
+
reason: "not-chat-capable",
|
|
1361
|
+
};
|
|
1362
|
+
}
|
|
1131
1363
|
function hasDeclaredNonChatDeployment(left, right) {
|
|
1132
1364
|
return left.declaredNonChat === true || right.declaredNonChat === true;
|
|
1133
1365
|
}
|
|
1134
1366
|
function intersectDeploymentMetadata(left, right) {
|
|
1135
1367
|
return {
|
|
1136
1368
|
...intersectContextWindow(left, right),
|
|
1369
|
+
...intersectInputLimit(left, right),
|
|
1137
1370
|
...commonTokenCounter(left, right),
|
|
1138
1371
|
maxOutputTokens: Math.min(left.maxOutputTokens ?? 0, right.maxOutputTokens ?? 0),
|
|
1139
1372
|
toolCalling: left.toolCalling === true && right.toolCalling === true,
|
|
@@ -1143,6 +1376,10 @@ function intersectDeploymentMetadata(left, right) {
|
|
|
1143
1376
|
: {}),
|
|
1144
1377
|
};
|
|
1145
1378
|
}
|
|
1379
|
+
function intersectInputLimit(left, right) {
|
|
1380
|
+
const limits = [left.maxInputTokens, right.maxInputTokens].filter((limit) => limit !== undefined);
|
|
1381
|
+
return limits.length === 0 ? {} : { maxInputTokens: Math.min(...limits) };
|
|
1382
|
+
}
|
|
1146
1383
|
function intersectContextWindow(left, right) {
|
|
1147
1384
|
if (left.contextWindow === undefined && right.contextWindow === undefined)
|
|
1148
1385
|
return {};
|
|
@@ -1161,9 +1398,7 @@ function discoveredModelLists(usable, boundedVoice, unsupported, wasTruncated) {
|
|
|
1161
1398
|
return {
|
|
1162
1399
|
modelIds: usable.map((entry) => entry.id),
|
|
1163
1400
|
chatModelIds: usable.filter((entry) => entry.kind === "chat").map((entry) => entry.id),
|
|
1164
|
-
embeddingModelIds: usable
|
|
1165
|
-
.filter((entry) => entry.kind === "embedding")
|
|
1166
|
-
.map((entry) => entry.id),
|
|
1401
|
+
embeddingModelIds: declaredThenIdOrder(usable.filter((entry) => entry.kind === "embedding")),
|
|
1167
1402
|
voiceSpeechInputModelIds: boundedVoice
|
|
1168
1403
|
.filter((entry) => entry.voiceRole === "speech-input")
|
|
1169
1404
|
.map((entry) => entry.id),
|
|
@@ -1176,7 +1411,7 @@ function discoveredModelLists(usable, boundedVoice, unsupported, wasTruncated) {
|
|
|
1176
1411
|
imageInputModelIds: usable
|
|
1177
1412
|
.filter((entry) => entry.kind === "chat" && entry.supportsImageInput)
|
|
1178
1413
|
.map((entry) => entry.id),
|
|
1179
|
-
modelMetadata: Object.fromEntries(usable.map((entry) => [entry.id, entry
|
|
1414
|
+
modelMetadata: Object.fromEntries(usable.map((entry) => [entry.id, discoveredMetadata(entry)])),
|
|
1180
1415
|
...(unsupported.length > 0
|
|
1181
1416
|
? {
|
|
1182
1417
|
unsupportedModels: unsupported.map((entry) => ({
|
|
@@ -1185,9 +1420,35 @@ function discoveredModelLists(usable, boundedVoice, unsupported, wasTruncated) {
|
|
|
1185
1420
|
})),
|
|
1186
1421
|
}
|
|
1187
1422
|
: {}),
|
|
1423
|
+
...rerankCandidateList(unsupported),
|
|
1188
1424
|
...(wasTruncated ? { truncated: true } : {}),
|
|
1189
1425
|
};
|
|
1190
1426
|
}
|
|
1427
|
+
// A replica set in which one deployment declared no window merges to the conservative fallback;
|
|
1428
|
+
// the metadata says so, so setup keeps that window assumed instead of treating 4,096 as declared.
|
|
1429
|
+
function discoveredMetadata(entry) {
|
|
1430
|
+
return entry.undeclaredContext === true && entry.metadata.contextWindow !== undefined
|
|
1431
|
+
? { ...entry.metadata, contextWindowUndeclared: true }
|
|
1432
|
+
: entry.metadata;
|
|
1433
|
+
}
|
|
1434
|
+
// Declared before name-inferred, then by id. Two lanes are ORDERED, not merely listed — the rerank
|
|
1435
|
+
// candidates (setup probes only the first few) and the embedding candidates (the first one becomes
|
|
1436
|
+
// the default new Knowledge Pods bind) — and neither may depend on how the gateway happens to list
|
|
1437
|
+
// its models: a restart that lists them in another order must not change what is probed or bound.
|
|
1438
|
+
// A role the gateway stated in a `mode` outranks one Keiko only inferred from the id.
|
|
1439
|
+
function declaredThenIdOrder(entries) {
|
|
1440
|
+
const declared = (entry) => Number(entry.declaredNonChat === true || entry.declaredRole === true);
|
|
1441
|
+
return [...entries]
|
|
1442
|
+
.sort((left, right) => declared(right) - declared(left) || left.id.localeCompare(right.id, "en"))
|
|
1443
|
+
.map((entry) => entry.id);
|
|
1444
|
+
}
|
|
1445
|
+
// The rerank engines among the recognised-but-unconfigured models. They are partitioned out of the
|
|
1446
|
+
// same pre-cap entry list as every other role, so a gateway listing dozens of chat aliases ahead of
|
|
1447
|
+
// its reranker cannot push the reranker out of reach.
|
|
1448
|
+
function rerankCandidateList(unsupported) {
|
|
1449
|
+
const rerankModelIds = declaredThenIdOrder(unsupported.filter((entry) => entry.reason === "rerank"));
|
|
1450
|
+
return rerankModelIds.length === 0 ? {} : { rerankModelIds };
|
|
1451
|
+
}
|
|
1191
1452
|
function assertDiscoveryYieldedUsableModels(usable, unsupported) {
|
|
1192
1453
|
if (usable.length > 0)
|
|
1193
1454
|
return;
|
|
@@ -1216,26 +1477,41 @@ export function normalizeDiscoveryPayload(payload) {
|
|
|
1216
1477
|
export function normalizeDiscoveryPayloadForSetup(payload) {
|
|
1217
1478
|
return parseModelDiscovery(payload);
|
|
1218
1479
|
}
|
|
1219
|
-
async function fetchDiscoveryJson(url, apiKey, apiKeyHeaderName, egress) {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
headers: apiKeyHeaders(apiKey, apiKeyHeaderName),
|
|
1223
|
-
signal: AbortSignal.timeout(30_000),
|
|
1224
|
-
...(egress !== undefined ? { egress } : {}),
|
|
1225
|
-
});
|
|
1480
|
+
async function fetchDiscoveryJson(url, apiKey, apiKeyHeaderName, egress, signal = AbortSignal.timeout(DISCOVERY_TIMEOUT_MS)) {
|
|
1481
|
+
signal.throwIfAborted();
|
|
1482
|
+
const response = await fetchDiscoveryResponse(url, apiKey, apiKeyHeaderName, egress, signal);
|
|
1226
1483
|
if (!response.ok) {
|
|
1227
|
-
|
|
1228
|
-
// property; carrying it only inside the message left a 401/403 discovery — a wrong or
|
|
1229
|
-
// model-restricted proxy key — as the generic body-free 502 (LiteLLM production audit).
|
|
1230
|
-
throw Object.assign(new Error(`model discovery returned HTTP ${String(response.status)}`), {
|
|
1484
|
+
throw Object.assign(new Error("model discovery returned an error status"), {
|
|
1231
1485
|
httpStatus: response.status,
|
|
1232
1486
|
});
|
|
1233
1487
|
}
|
|
1234
1488
|
try {
|
|
1235
1489
|
return await readJsonCapped(response);
|
|
1236
1490
|
}
|
|
1237
|
-
catch {
|
|
1238
|
-
|
|
1491
|
+
catch (cause) {
|
|
1492
|
+
signal.throwIfAborted();
|
|
1493
|
+
if (cause instanceof GatewayResponseBodyValidationError) {
|
|
1494
|
+
throw discoveryTerminal("model discovery response was not readable JSON", "DISCOVERY_INVALID_RESPONSE");
|
|
1495
|
+
}
|
|
1496
|
+
if (cause instanceof TypeError)
|
|
1497
|
+
throw new Error("Model metadata transport was unavailable.", { cause });
|
|
1498
|
+
throw cause;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
async function fetchDiscoveryResponse(url, apiKey, apiKeyHeaderName, egress, signal) {
|
|
1502
|
+
try {
|
|
1503
|
+
return await gatewayFetch(url, {
|
|
1504
|
+
method: "GET",
|
|
1505
|
+
headers: apiKeyHeaders(apiKey, apiKeyHeaderName),
|
|
1506
|
+
signal,
|
|
1507
|
+
...(egress !== undefined ? { egress } : {}),
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
catch (cause) {
|
|
1511
|
+
signal.throwIfAborted();
|
|
1512
|
+
if (cause instanceof TypeError)
|
|
1513
|
+
throw new Error("Model metadata transport was unavailable.", { cause });
|
|
1514
|
+
throw cause;
|
|
1239
1515
|
}
|
|
1240
1516
|
}
|
|
1241
1517
|
// `/model/info` is a LiteLLM management route. Plenty of healthy deployments refuse it — an
|
|
@@ -1252,31 +1528,337 @@ function modelInfoAnswerIsUnusable(cause) {
|
|
|
1252
1528
|
return (cause?.discoveryCode ===
|
|
1253
1529
|
"DISCOVERY_ALL_ENTRIES_UNSUPPORTED");
|
|
1254
1530
|
}
|
|
1255
|
-
async function discoverLiteLlmModelInfo(baseUrl, apiKey, apiKeyHeaderName, egress, correlationId) {
|
|
1256
|
-
|
|
1531
|
+
async function discoverLiteLlmModelInfo(baseUrl, apiKey, apiKeyHeaderName, egress, correlationId, { signal, deadlineAt, trace, }) {
|
|
1532
|
+
const endpoints = modelInfoEndpointCandidates(baseUrl);
|
|
1533
|
+
for (const [index, endpoint] of endpoints.entries()) {
|
|
1534
|
+
trace.discoverySource = index === 0 ? "model-info" : "model-group-info";
|
|
1535
|
+
const outcomeKey = index === 0 ? "modelInfoOutcome" : "modelGroupInfoOutcome";
|
|
1257
1536
|
try {
|
|
1258
|
-
const
|
|
1537
|
+
const payload = await fetchDiscoveryJson(endpoint, apiKey, apiKeyHeaderName, egress, discoveryManagementSignal(signal, deadlineAt, endpoints.length - index));
|
|
1538
|
+
const discovered = parseModelDiscovery(payload, correlationId);
|
|
1539
|
+
trace[outcomeKey] = "available";
|
|
1259
1540
|
return {
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
id,
|
|
1263
|
-
{ ...discovered.modelMetadata?.[id], tokenCounter: "litellm" },
|
|
1264
|
-
])),
|
|
1541
|
+
payload,
|
|
1542
|
+
models: withLiteLlmTokenCounter(discovered),
|
|
1265
1543
|
};
|
|
1266
1544
|
}
|
|
1267
1545
|
catch (cause) {
|
|
1546
|
+
trace[outcomeKey] = discoveryRouteOutcome(cause, signal);
|
|
1547
|
+
signal.throwIfAborted();
|
|
1548
|
+
if (discoveryProgrammingFailure(cause))
|
|
1549
|
+
throw cause;
|
|
1268
1550
|
if (modelInfoAnswerIsUnusable(cause) && cause instanceof Error)
|
|
1269
1551
|
throw cause;
|
|
1270
1552
|
}
|
|
1271
1553
|
}
|
|
1272
1554
|
return undefined;
|
|
1273
1555
|
}
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1556
|
+
// Let the primary management route use the shared budget while retaining a short fallback window.
|
|
1557
|
+
function discoveryManagementSignal(signal, deadlineAt, routesLeft) {
|
|
1558
|
+
signal.throwIfAborted();
|
|
1559
|
+
const remaining = Math.max(1, deadlineAt - Date.now());
|
|
1560
|
+
return AbortSignal.any([
|
|
1561
|
+
signal,
|
|
1562
|
+
AbortSignal.timeout(Math.max(1, remaining - routesLeft * DISCOVERY_FALLBACK_RESERVE_MS)),
|
|
1563
|
+
]);
|
|
1564
|
+
}
|
|
1565
|
+
async function defaultGatewayModelDiscovery(baseUrl, apiKey, requestedApiKeyHeaderName, egress, correlationId, trace, options) {
|
|
1566
|
+
const { callerSignal, metadataOnly, allowEmpty } = options;
|
|
1567
|
+
const apiKeyHeaderName = requestedApiKeyHeaderName ?? DEFAULT_API_KEY_HEADER_NAME;
|
|
1568
|
+
// One existing discovery budget covers the management fallbacks and model list together.
|
|
1569
|
+
const deadlineAt = Date.now() + DISCOVERY_TIMEOUT_MS;
|
|
1570
|
+
const signal = AbortSignal.any([
|
|
1571
|
+
AbortSignal.timeout(DISCOVERY_TIMEOUT_MS),
|
|
1572
|
+
...(callerSignal === undefined ? [] : [callerSignal]),
|
|
1573
|
+
]);
|
|
1574
|
+
const litellmModels = await discoverLiteLlmModelInfo(baseUrl, apiKey, apiKeyHeaderName, egress, correlationId, { signal, deadlineAt, trace });
|
|
1575
|
+
// Explicit human deployment names remain authoritative on gateways without a models route.
|
|
1576
|
+
if (litellmModels !== undefined && metadataOnly)
|
|
1577
|
+
return litellmModels.models;
|
|
1578
|
+
if (litellmModels === undefined)
|
|
1579
|
+
trace.discoverySource = "model-list";
|
|
1580
|
+
try {
|
|
1581
|
+
const payload = await fetchDiscoveryJson(modelsEndpoint(baseUrl), apiKey, apiKeyHeaderName, egress, signal);
|
|
1582
|
+
const discovered = listedDiscoveryResult(payload, litellmModels, correlationId, allowEmpty);
|
|
1583
|
+
trace.modelListOutcome = "available";
|
|
1584
|
+
return litellmModels === undefined ? discovered : withLiteLlmTokenCounter(discovered);
|
|
1585
|
+
}
|
|
1586
|
+
catch (cause) {
|
|
1587
|
+
trace.modelListOutcome = discoveryRouteOutcome(cause, signal);
|
|
1588
|
+
throw cause;
|
|
1278
1589
|
}
|
|
1279
|
-
|
|
1590
|
+
}
|
|
1591
|
+
function withLiteLlmTokenCounter(discovered) {
|
|
1592
|
+
return {
|
|
1593
|
+
...discovered,
|
|
1594
|
+
modelMetadata: Object.fromEntries(discovered.modelIds.map((id) => [
|
|
1595
|
+
id,
|
|
1596
|
+
{ ...discovered.modelMetadata?.[id], tokenCounter: "litellm" },
|
|
1597
|
+
])),
|
|
1598
|
+
};
|
|
1599
|
+
}
|
|
1600
|
+
function listedDiscoveryResult(payload, metadata, correlationId, allowEmpty) {
|
|
1601
|
+
if (allowEmpty)
|
|
1602
|
+
assertRuntimeListingComplete(payload);
|
|
1603
|
+
return parseModelDiscovery(metadata === undefined ? payload : listedCatalogWithMetadata(payload, metadata.payload), correlationId, { allowEmpty });
|
|
1604
|
+
}
|
|
1605
|
+
function assertRuntimeListingComplete(payload) {
|
|
1606
|
+
if (discoveryData(payload).some((entry) => classifyDiscoveryItem(entry) === undefined))
|
|
1607
|
+
throw new Error("runtime model catalog contains an invalid entry");
|
|
1608
|
+
}
|
|
1609
|
+
/** Management records enrich exact listed IDs; listing alone is not a live health proof. */
|
|
1610
|
+
function listedCatalogWithMetadata(serving, metadata) {
|
|
1611
|
+
const servingEntries = discoveryData(serving);
|
|
1612
|
+
const byId = discoveryMetadataById(metadata);
|
|
1613
|
+
const seen = new Set();
|
|
1614
|
+
const data = [];
|
|
1615
|
+
for (const entry of servingEntries) {
|
|
1616
|
+
const id = isRecord(entry) ? modelIdFromKnownFields(entry) : undefined;
|
|
1617
|
+
if (id === undefined)
|
|
1618
|
+
continue;
|
|
1619
|
+
const group = byId.get(id);
|
|
1620
|
+
if (group === undefined)
|
|
1621
|
+
data.push(entry);
|
|
1622
|
+
else if (!seen.has(id))
|
|
1623
|
+
data.push(...group);
|
|
1624
|
+
seen.add(id);
|
|
1625
|
+
}
|
|
1626
|
+
return { data };
|
|
1627
|
+
}
|
|
1628
|
+
function discoveryMetadataById(metadata) {
|
|
1629
|
+
const byId = new Map();
|
|
1630
|
+
for (const entry of discoveryData(metadata)) {
|
|
1631
|
+
const id = isRecord(entry) ? modelIdFromKnownFields(entry) : undefined;
|
|
1632
|
+
if (id === undefined)
|
|
1633
|
+
continue;
|
|
1634
|
+
const group = byId.get(id);
|
|
1635
|
+
if (group === undefined)
|
|
1636
|
+
byId.set(id, [entry]);
|
|
1637
|
+
else
|
|
1638
|
+
group.push(entry);
|
|
1639
|
+
}
|
|
1640
|
+
return byId;
|
|
1641
|
+
}
|
|
1642
|
+
function discoveryData(payload) {
|
|
1643
|
+
if (!isRecord(payload) || !Array.isArray(payload.data))
|
|
1644
|
+
throw new Error("model discovery response must contain a data array");
|
|
1645
|
+
return payload.data;
|
|
1646
|
+
}
|
|
1647
|
+
/** Refresh the active LiteLLM catalog using the same bounded, egress-checked discovery as setup. */
|
|
1648
|
+
export function liteLlmDiscoveryConnections(config) {
|
|
1649
|
+
return config.providers.filter((provider, index, providers) => provider.tokenCounter === "litellm" &&
|
|
1650
|
+
!providers
|
|
1651
|
+
.slice(0, index)
|
|
1652
|
+
.some((previous) => previous.tokenCounter === "litellm" && catalogConnectionMatches(provider, previous)));
|
|
1653
|
+
}
|
|
1654
|
+
const CONCLUSIVE_CATALOG_HTTP_STATUSES = new Set([400, 404]);
|
|
1655
|
+
function startupCatalogLogger(deps, provider, config, correlationId, startedAt, background) {
|
|
1656
|
+
const configuredModelCount = config.providers.filter((candidate) => catalogConnectionMatches(candidate, provider)).length;
|
|
1657
|
+
return (outcome, updatedModelCount, retryable, errorKind) => {
|
|
1658
|
+
logAutomaticCatalog(deps, {
|
|
1659
|
+
correlationId,
|
|
1660
|
+
outcome,
|
|
1661
|
+
...(background === undefined ? {} : { phase: "catalog", ...background }),
|
|
1662
|
+
configuredModelCount,
|
|
1663
|
+
updatedModelCount,
|
|
1664
|
+
elapsedMs: Math.max(0, Date.now() - startedAt),
|
|
1665
|
+
retryable,
|
|
1666
|
+
...(errorKind === undefined ? {} : { errorKind }),
|
|
1667
|
+
});
|
|
1668
|
+
};
|
|
1669
|
+
}
|
|
1670
|
+
export async function refreshLiteLlmGatewayCatalog(deps, provider, signal, correlationId, background) {
|
|
1671
|
+
const holder = deps.gatewayConfig;
|
|
1672
|
+
const config = holder?.configured?.() ?? holder?.current();
|
|
1673
|
+
if (config === undefined || holder === undefined)
|
|
1674
|
+
return { succeeded: false, retryable: false };
|
|
1675
|
+
const generation = holder.generation();
|
|
1676
|
+
const trace = createSetupDiscoveryTrace();
|
|
1677
|
+
const startedAt = Date.now();
|
|
1678
|
+
const log = startupCatalogLogger(deps, provider, config, correlationId, startedAt, background);
|
|
1679
|
+
try {
|
|
1680
|
+
const result = await discoverConfiguredGatewayCatalog(deps, provider, config, signal, trace, correlationId);
|
|
1681
|
+
signal.throwIfAborted();
|
|
1682
|
+
const outcome = applyStartupCatalog(holder, generation, provider, result, correlationId, log);
|
|
1683
|
+
logSetupMetadataOutcome({ outcome: "available" }, trace, startedAt, correlationId, deps.activityLog);
|
|
1684
|
+
return outcome;
|
|
1685
|
+
}
|
|
1686
|
+
catch (cause) {
|
|
1687
|
+
const outcome = metadataFailureOutcome(cause, signal);
|
|
1688
|
+
const failure = discoveryFailureDetail(cause, outcome === "cancelled");
|
|
1689
|
+
logSetupMetadataOutcome({ outcome, failure }, trace, startedAt, correlationId, deps.activityLog);
|
|
1690
|
+
const retryable = catalogFailureRetryable(outcome, failure);
|
|
1691
|
+
log(outcome === "cancelled" ? "cancelled" : "failed", 0, retryable, failure.errorKind);
|
|
1692
|
+
return { succeeded: false, retryable };
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
function catalogFailureRetryable(outcome, failure) {
|
|
1696
|
+
return (outcome !== "cancelled" &&
|
|
1697
|
+
failure.errorKind !== "permission-denied" &&
|
|
1698
|
+
failure.errorKind !== "validation-failed" &&
|
|
1699
|
+
!CONCLUSIVE_CATALOG_HTTP_STATUSES.has(failure.evidence.httpStatus ?? 0));
|
|
1700
|
+
}
|
|
1701
|
+
function catalogChangeCount(before, after) {
|
|
1702
|
+
const previous = new Map(listConfiguredCapabilities(before).map((model) => [model.id, model]));
|
|
1703
|
+
const next = new Map(listConfiguredCapabilities(after).map((model) => [model.id, model]));
|
|
1704
|
+
return [...new Set([...previous.keys(), ...next.keys()])].filter((id) => JSON.stringify(previous.get(id)) !== JSON.stringify(next.get(id))).length;
|
|
1705
|
+
}
|
|
1706
|
+
function currentCatalogConnection(holder, generation, provider) {
|
|
1707
|
+
const configured = holder.configured?.() ?? holder.current();
|
|
1708
|
+
return holder.generation() === generation &&
|
|
1709
|
+
configured?.providers.some((candidate) => catalogConnectionMatches(candidate, provider)) ===
|
|
1710
|
+
true
|
|
1711
|
+
? configured
|
|
1712
|
+
: undefined;
|
|
1713
|
+
}
|
|
1714
|
+
function commitStartupCatalog(holder, current, updated, generation, correlationId) {
|
|
1715
|
+
if (updated === current)
|
|
1716
|
+
return true;
|
|
1717
|
+
const inventoryChanged = JSON.stringify(updated.providers) !== JSON.stringify(current.providers);
|
|
1718
|
+
if (inventoryChanged)
|
|
1719
|
+
return holder.replaceCatalog?.(updated, generation, correlationId) ?? false;
|
|
1720
|
+
if (holder.refine === undefined)
|
|
1721
|
+
return false;
|
|
1722
|
+
holder.refine(updated, correlationId);
|
|
1723
|
+
return true;
|
|
1724
|
+
}
|
|
1725
|
+
function applyStartupCatalog(holder, generation, provider, result, correlationId, log) {
|
|
1726
|
+
const current = holder.current();
|
|
1727
|
+
const configured = currentCatalogConnection(holder, generation, provider);
|
|
1728
|
+
if (current === undefined || configured === undefined) {
|
|
1729
|
+
log("stale", 0, true);
|
|
1730
|
+
return { succeeded: false, retryable: true };
|
|
1731
|
+
}
|
|
1732
|
+
const updated = refreshedLiteLlmCatalog(current, configured, provider, normalizeDiscoveryResult(result));
|
|
1733
|
+
if (!commitStartupCatalog(holder, current, updated, generation, correlationId)) {
|
|
1734
|
+
log("stale", 0, true);
|
|
1735
|
+
return { succeeded: false, retryable: true };
|
|
1736
|
+
}
|
|
1737
|
+
log(updated === current ? "unchanged" : "applied", catalogChangeCount(current, updated), false);
|
|
1738
|
+
return { succeeded: true, retryable: false };
|
|
1739
|
+
}
|
|
1740
|
+
function discoverConfiguredGatewayCatalog(deps, provider, config, signal, trace, correlationId) {
|
|
1741
|
+
if (deps.gatewayModelDiscovery === undefined)
|
|
1742
|
+
return defaultGatewayModelDiscovery(provider.baseUrl, provider.apiKey, provider.apiKeyHeaderName, config.egress, correlationId, trace, {
|
|
1743
|
+
callerSignal: signal,
|
|
1744
|
+
metadataOnly: !usesAutomaticCatalog(config, provider),
|
|
1745
|
+
allowEmpty: true,
|
|
1746
|
+
});
|
|
1747
|
+
return awaitSetupOperation(deps.gatewayModelDiscovery(provider.baseUrl, provider.apiKey, provider.apiKeyHeaderName, config.egress, correlationId), signal);
|
|
1748
|
+
}
|
|
1749
|
+
function usesAutomaticCatalog(config, connection) {
|
|
1750
|
+
return config.providers.some((provider) => provider.catalogOrigin === "discovered" && catalogConnectionMatches(provider, connection));
|
|
1751
|
+
}
|
|
1752
|
+
export function catalogConnectionMatches(candidate, connection) {
|
|
1753
|
+
return (sharesStoredGatewayConnection(candidate, connection) &&
|
|
1754
|
+
effectiveEndpointStyle(candidate.endpointStyle) ===
|
|
1755
|
+
effectiveEndpointStyle(connection.endpointStyle) &&
|
|
1756
|
+
candidate.apiVersion === connection.apiVersion);
|
|
1757
|
+
}
|
|
1758
|
+
function discoveredProviderConfig(config, connection, id, discovery) {
|
|
1759
|
+
const provider = providerRaw(id, connection.baseUrl, connection.apiKey, {
|
|
1760
|
+
catalogOrigin: "discovered",
|
|
1761
|
+
current: config,
|
|
1762
|
+
apiKeyHeaderName: connection.apiKeyHeaderName,
|
|
1763
|
+
endpointStyle: connection.endpointStyle,
|
|
1764
|
+
apiVersion: connection.apiVersion,
|
|
1765
|
+
timeoutMs: connection.timeoutMs,
|
|
1766
|
+
maxRetries: connection.maxRetries,
|
|
1767
|
+
retryBaseDelayMs: connection.retryBaseDelayMs,
|
|
1768
|
+
embeddingModelIds: discovery.embeddingModelIds,
|
|
1769
|
+
imageInputModelIds: discovery.imageInputModelIds,
|
|
1770
|
+
modelMetadata: { [id]: { ...discovery.modelMetadata[id], tokenCounter: "litellm" } },
|
|
1771
|
+
});
|
|
1772
|
+
const produced = parseGatewayConfig({
|
|
1773
|
+
providers: [
|
|
1774
|
+
{
|
|
1775
|
+
...provider,
|
|
1776
|
+
...(connection.circuitBreaker === undefined
|
|
1777
|
+
? {}
|
|
1778
|
+
: { circuitBreaker: connection.circuitBreaker }),
|
|
1779
|
+
...(connection.outputTokenParameter === undefined
|
|
1780
|
+
? {}
|
|
1781
|
+
: { outputTokenParameter: connection.outputTokenParameter }),
|
|
1782
|
+
},
|
|
1783
|
+
],
|
|
1784
|
+
circuitBreaker: config.circuitBreaker,
|
|
1785
|
+
...(config.egress === undefined ? {} : { egress: config.egress }),
|
|
1786
|
+
});
|
|
1787
|
+
const sourceId = connection.apiKeySourceModelId ?? connection.modelId;
|
|
1788
|
+
return id === sourceId
|
|
1789
|
+
? produced
|
|
1790
|
+
: {
|
|
1791
|
+
...produced,
|
|
1792
|
+
providers: produced.providers.map((candidate) => ({
|
|
1793
|
+
...candidate,
|
|
1794
|
+
apiKeySourceModelId: sourceId,
|
|
1795
|
+
})),
|
|
1796
|
+
};
|
|
1797
|
+
}
|
|
1798
|
+
function reconcileCatalogInventory(active, configured, connection, discovery) {
|
|
1799
|
+
const listed = new Set(discovery.modelIds);
|
|
1800
|
+
const providers = active.providers.filter((provider) => provider.catalogOrigin !== "discovered" ||
|
|
1801
|
+
!catalogConnectionMatches(provider, connection) ||
|
|
1802
|
+
listed.has(provider.modelId) ||
|
|
1803
|
+
discovery.truncated === true);
|
|
1804
|
+
const capabilities = listConfiguredCapabilities(active).filter((model) => providers.some((provider) => provider.modelId === model.id));
|
|
1805
|
+
const automatic = usesAutomaticCatalog(configured, connection);
|
|
1806
|
+
for (const id of automatic ? discovery.modelIds : []) {
|
|
1807
|
+
if (providers.some((provider) => provider.modelId === id))
|
|
1808
|
+
continue;
|
|
1809
|
+
const stored = configured.providers.find((provider) => provider.modelId === id);
|
|
1810
|
+
if (stored !== undefined && !catalogConnectionMatches(stored, connection))
|
|
1811
|
+
continue;
|
|
1812
|
+
const produced = discoveredProviderConfig(configured, connection, id, discovery);
|
|
1813
|
+
providers.push(...produced.providers);
|
|
1814
|
+
capabilities.push(...listConfiguredCapabilities(produced).map((model) => {
|
|
1815
|
+
const retained = stored === undefined ? undefined : findConfiguredCapability(configured, model.id);
|
|
1816
|
+
return retained?.kind === model.kind ? retained : model;
|
|
1817
|
+
}));
|
|
1818
|
+
}
|
|
1819
|
+
return { ...active, providers, capabilities };
|
|
1820
|
+
}
|
|
1821
|
+
function refreshedLiteLlmCatalog(config, configured, connection, discovery) {
|
|
1822
|
+
const inventory = reconcileCatalogInventory(config, configured, connection, discovery);
|
|
1823
|
+
const refreshed = listConfiguredCapabilities(inventory).reduce((updated, model) => {
|
|
1824
|
+
const provider = inventory.providers.find((candidate) => candidate.modelId === model.id);
|
|
1825
|
+
const metadata = discovery.modelMetadata[model.id];
|
|
1826
|
+
if (model.kind !== "chat" ||
|
|
1827
|
+
provider === undefined ||
|
|
1828
|
+
!catalogConnectionMatches(provider, connection) ||
|
|
1829
|
+
metadata === undefined)
|
|
1830
|
+
return updated;
|
|
1831
|
+
const replacement = catalogDeclaredCapability(model, metadata);
|
|
1832
|
+
return {
|
|
1833
|
+
...updated,
|
|
1834
|
+
capabilities: listConfiguredCapabilities(updated).map((existing) => existing.id === model.id ? replacement : existing),
|
|
1835
|
+
};
|
|
1836
|
+
}, inventory);
|
|
1837
|
+
return JSON.stringify(refreshed) === JSON.stringify(config) ? config : refreshed;
|
|
1838
|
+
}
|
|
1839
|
+
function catalogDeclaredLimit(stored, declared) {
|
|
1840
|
+
if (declared === undefined || declared <= 0)
|
|
1841
|
+
return stored;
|
|
1842
|
+
return stored === undefined || stored === 0 ? declared : Math.min(stored, declared);
|
|
1843
|
+
}
|
|
1844
|
+
function catalogDeclaredCapability(model, metadata) {
|
|
1845
|
+
const window = declaresContextWindow(metadata) ? metadata.contextWindow : undefined;
|
|
1846
|
+
const contextWindow = catalogDeclaredContextWindow(model, window);
|
|
1847
|
+
const maxInputTokens = catalogDeclaredLimit(model.maxInputTokens, metadata.maxInputTokens);
|
|
1848
|
+
// A catalog declaration establishes a ceiling; retain smaller accepted or live learned limits.
|
|
1849
|
+
return {
|
|
1850
|
+
...withContextWindowProvenance(model, metadata, { ...model, contextWindow }),
|
|
1851
|
+
...(maxInputTokens === undefined ? {} : { maxInputTokens }),
|
|
1852
|
+
maxOutputTokens: catalogDeclaredLimit(model.maxOutputTokens, metadata.maxOutputTokens) ??
|
|
1853
|
+
model.maxOutputTokens,
|
|
1854
|
+
};
|
|
1855
|
+
}
|
|
1856
|
+
function catalogDeclaredContextWindow(model, window) {
|
|
1857
|
+
if (window === undefined)
|
|
1858
|
+
return model.contextWindow;
|
|
1859
|
+
if (model.contextWindowAssumed === true)
|
|
1860
|
+
return window;
|
|
1861
|
+
return Math.min(model.contextWindow, window);
|
|
1280
1862
|
}
|
|
1281
1863
|
function deploymentNameValues(value) {
|
|
1282
1864
|
if (typeof value === "string") {
|
|
@@ -1470,9 +2052,10 @@ function mostSevereProbeFailure(failures) {
|
|
|
1470
2052
|
}
|
|
1471
2053
|
return worst;
|
|
1472
2054
|
}
|
|
1473
|
-
async function runBoundedWorkers(items, concurrency, process) {
|
|
2055
|
+
async function runBoundedWorkers(items, concurrency, process, signal) {
|
|
1474
2056
|
let next = 0;
|
|
1475
2057
|
async function worker() {
|
|
2058
|
+
signal?.throwIfAborted();
|
|
1476
2059
|
const index = next;
|
|
1477
2060
|
next += 1;
|
|
1478
2061
|
if (index >= items.length)
|
|
@@ -1487,21 +2070,23 @@ async function runBoundedWorkers(items, concurrency, process) {
|
|
|
1487
2070
|
const workerCount = Math.max(1, Math.min(concurrency, items.length));
|
|
1488
2071
|
await Promise.all(Array.from({ length: workerCount }, () => worker()));
|
|
1489
2072
|
}
|
|
1490
|
-
async function passingCandidates(candidates, probe, concurrency, failures) {
|
|
2073
|
+
async function passingCandidates(candidates, probe, concurrency, failures, signal) {
|
|
1491
2074
|
const tested = new Array(candidates.length).fill(undefined);
|
|
1492
2075
|
async function worker(modelId, index) {
|
|
1493
2076
|
try {
|
|
1494
2077
|
await probe(modelId);
|
|
2078
|
+
signal?.throwIfAborted();
|
|
1495
2079
|
tested[index] = modelId;
|
|
1496
2080
|
}
|
|
1497
2081
|
catch (error) {
|
|
2082
|
+
signal?.throwIfAborted();
|
|
1498
2083
|
// Probe rejection is the documented signal that this candidate is not
|
|
1499
2084
|
// chat-callable. We drop it silently so healthy peers still surface — capturing only
|
|
1500
2085
|
// the classification code/status as evidence for the all-rejected aggregate.
|
|
1501
2086
|
failures?.push({ code: setupErrorCode(error), httpStatus: setupHttpStatus(error) });
|
|
1502
2087
|
}
|
|
1503
2088
|
}
|
|
1504
|
-
await runBoundedWorkers(candidates, concurrency, worker);
|
|
2089
|
+
await runBoundedWorkers(candidates, concurrency, worker, signal);
|
|
1505
2090
|
return tested.filter((modelId) => modelId !== undefined);
|
|
1506
2091
|
}
|
|
1507
2092
|
// The aggregate keeps the exact historic message; additionally it carries the most severe
|
|
@@ -1592,7 +2177,7 @@ function recordChatSmokeFailure(modelId, error, deps, correlationId, accumulator
|
|
|
1592
2177
|
// rules over an injected `probe`/`now`, and exercising them through the full HTTP-mocked
|
|
1593
2178
|
// `handleGatewaySetup` route would need either a real multi-minute wait or an intrusive global
|
|
1594
2179
|
// `AbortSignal.timeout`/clock stub for every scenario (PR #3602 review).
|
|
1595
|
-
export async function admitChatSmokeCandidates(candidates, probe, concurrency, deps, correlationId, now = Date.now) {
|
|
2180
|
+
export async function admitChatSmokeCandidates(candidates, probe, concurrency, deps, correlationId, now = Date.now, signal) {
|
|
1596
2181
|
const tested = new Array(candidates.length).fill(undefined);
|
|
1597
2182
|
const accumulators = {
|
|
1598
2183
|
unverifiedKept: [],
|
|
@@ -1609,12 +2194,14 @@ export async function admitChatSmokeCandidates(candidates, probe, concurrency, d
|
|
|
1609
2194
|
}
|
|
1610
2195
|
try {
|
|
1611
2196
|
await probe(modelId);
|
|
2197
|
+
signal?.throwIfAborted();
|
|
1612
2198
|
tested[index] = modelId;
|
|
1613
2199
|
}
|
|
1614
2200
|
catch (error) {
|
|
2201
|
+
signal?.throwIfAborted();
|
|
1615
2202
|
recordChatSmokeFailure(modelId, error, deps, correlationId, accumulators);
|
|
1616
2203
|
}
|
|
1617
|
-
});
|
|
2204
|
+
}, signal);
|
|
1618
2205
|
return {
|
|
1619
2206
|
tested: tested.filter((modelId) => modelId !== undefined),
|
|
1620
2207
|
...accumulators,
|
|
@@ -1623,19 +2210,20 @@ export async function admitChatSmokeCandidates(candidates, probe, concurrency, d
|
|
|
1623
2210
|
// The response-format and tool-calling verification rounds, run only over VERIFIED candidates
|
|
1624
2211
|
// (`chatSmoke.tested`) — extracted so `defaultGatewaySetupTester` stays under the repository's
|
|
1625
2212
|
// per-function line ceiling (AGENTS.md §6).
|
|
1626
|
-
async function verifyTestedChatCandidates(gateway, config, testedModelIds, correlationId, deps) {
|
|
2213
|
+
async function verifyTestedChatCandidates(gateway, config, testedModelIds, correlationId, deps, signal) {
|
|
1627
2214
|
const responseFormatModelIds = await passingCandidates(testedModelIds, async (modelId) => {
|
|
1628
2215
|
const response = await gateway.chat({
|
|
1629
2216
|
...buildQiJudgePreflightRequest(modelId),
|
|
1630
2217
|
logContext: { correlationId },
|
|
2218
|
+
cancellationSignal: candidateSmokeCancellationSignal(config, modelId, signal),
|
|
1631
2219
|
});
|
|
1632
2220
|
if (tryParseJudgeVerdict(response.content) === null) {
|
|
1633
2221
|
throw new Error("response format unsupported");
|
|
1634
2222
|
}
|
|
1635
|
-
}, SETUP_SMOKE_CONCURRENCY);
|
|
2223
|
+
}, SETUP_SMOKE_CONCURRENCY, undefined, signal);
|
|
1636
2224
|
// Both probe rounds independently use the endpoint-wide concurrency budget. Keep them
|
|
1637
2225
|
// sequential so setup never doubles the operator-approved in-flight request ceiling.
|
|
1638
|
-
const toolCallingObservations = await setupToolCallingObservations(config, testedModelIds, correlationId, deps);
|
|
2226
|
+
const toolCallingObservations = await setupToolCallingObservations(config, testedModelIds, correlationId, deps, signal);
|
|
1639
2227
|
return { responseFormatModelIds, toolCallingObservations };
|
|
1640
2228
|
}
|
|
1641
2229
|
// The deadline that actually bounds ONE candidate's smoke call (PR #3602 review): `Gateway.chat()`
|
|
@@ -1646,8 +2234,9 @@ async function verifyTestedChatCandidates(gateway, config, testedModelIds, corre
|
|
|
1646
2234
|
// `DEPLOYMENT_SMOKE_TIMEOUT_MS` for a manually entered deployment) rather than a hardcoded literal,
|
|
1647
2235
|
// so both smoke paths stay bounded at the timeout each already advertises; the discovery constant
|
|
1648
2236
|
// is only the defensive fallback for a candidate somehow missing its own provider entry.
|
|
1649
|
-
function candidateSmokeCancellationSignal(config, modelId) {
|
|
1650
|
-
|
|
2237
|
+
function candidateSmokeCancellationSignal(config, modelId, signal) {
|
|
2238
|
+
const deadline = AbortSignal.timeout(candidateSmokeDeadlineMs(config, modelId));
|
|
2239
|
+
return signal === undefined ? deadline : AbortSignal.any([deadline, signal]);
|
|
1651
2240
|
}
|
|
1652
2241
|
// Never below the discovery smoke floor: a manually entered deployment keeps its shorter configured
|
|
1653
2242
|
// timeout for later calls, but a setup probe that gave up at 30 s on a gateway that answers in 45 s
|
|
@@ -1659,7 +2248,7 @@ export function candidateSmokeDeadlineMs(config, modelId) {
|
|
|
1659
2248
|
// Extracted so `defaultGatewaySetupTester` stays under the repository's per-function line ceiling
|
|
1660
2249
|
// (AGENTS.md §6) — the probe itself is the one line that matters: a fixed "reply OK" chat call,
|
|
1661
2250
|
// bounded by this candidate's own smoke deadline.
|
|
1662
|
-
function chatSmokeProbe(gateway, config, correlationId) {
|
|
2251
|
+
function chatSmokeProbe(gateway, config, correlationId, signal) {
|
|
1663
2252
|
return async (modelId) => {
|
|
1664
2253
|
await gateway.chat({
|
|
1665
2254
|
modelId,
|
|
@@ -1668,11 +2257,11 @@ function chatSmokeProbe(gateway, config, correlationId) {
|
|
|
1668
2257
|
{ role: "user", content: "Reply with exactly: OK" },
|
|
1669
2258
|
],
|
|
1670
2259
|
logContext: { correlationId },
|
|
1671
|
-
cancellationSignal: candidateSmokeCancellationSignal(config, modelId),
|
|
2260
|
+
cancellationSignal: candidateSmokeCancellationSignal(config, modelId, signal),
|
|
1672
2261
|
});
|
|
1673
2262
|
};
|
|
1674
2263
|
}
|
|
1675
|
-
async function defaultGatewaySetupTester(config, candidateModelIds, correlationId, deps) {
|
|
2264
|
+
async function defaultGatewaySetupTester(config, candidateModelIds, correlationId, deps, signal) {
|
|
1676
2265
|
// Wired to the process activity log: first-run setup is where an operator's endpoint is wrong
|
|
1677
2266
|
// in a way no UI message can name (a proxy that blocks CONNECT, a provider that answers 404 for
|
|
1678
2267
|
// every model). Without the sink the smoke loop's retries and rejections are invisible.
|
|
@@ -1680,7 +2269,7 @@ async function defaultGatewaySetupTester(config, candidateModelIds, correlationI
|
|
|
1680
2269
|
log: processServerLogSink(),
|
|
1681
2270
|
spendBudget: gatewaySpendBudgetForEnv(deps.env),
|
|
1682
2271
|
});
|
|
1683
|
-
const chatSmoke = await admitChatSmokeCandidates(candidateModelIds, chatSmokeProbe(gateway, config, correlationId), SETUP_SMOKE_CONCURRENCY, deps, correlationId);
|
|
2272
|
+
const chatSmoke = await admitChatSmokeCandidates(candidateModelIds, chatSmokeProbe(gateway, config, correlationId, signal), SETUP_SMOKE_CONCURRENCY, deps, correlationId, Date.now, signal);
|
|
1684
2273
|
// Nothing was verified: the historic "no discovered model accepted the chat-completions smoke
|
|
1685
2274
|
// test" case, thrown exactly as `smokeTestCandidates` always did — even when some candidates were
|
|
1686
2275
|
// merely kept unverified rather than dropped, because `verifyAndSaveGatewaySetup`'s multi-base-URL
|
|
@@ -1692,7 +2281,7 @@ async function defaultGatewaySetupTester(config, candidateModelIds, correlationI
|
|
|
1692
2281
|
throw allProbesFailedError(chatSmoke.allFailures);
|
|
1693
2282
|
}
|
|
1694
2283
|
const testedModelIds = chatSmoke.tested;
|
|
1695
|
-
const { responseFormatModelIds, toolCallingObservations } = await verifyTestedChatCandidates(gateway, config, testedModelIds, correlationId, deps);
|
|
2284
|
+
const { responseFormatModelIds, toolCallingObservations } = await verifyTestedChatCandidates(gateway, config, testedModelIds, correlationId, deps, signal);
|
|
1696
2285
|
return {
|
|
1697
2286
|
testedModelIds,
|
|
1698
2287
|
responseFormatModelIds,
|
|
@@ -1720,7 +2309,7 @@ function unverifiedKeptToolCallingObservations(config, unverifiedKept, correlati
|
|
|
1720
2309
|
return { modelId, status: "unverified", checkedAt };
|
|
1721
2310
|
});
|
|
1722
2311
|
}
|
|
1723
|
-
async function setupToolCallingObservations(config, testedModelIds, correlationId, deps) {
|
|
2312
|
+
async function setupToolCallingObservations(config, testedModelIds, correlationId, deps, signal) {
|
|
1724
2313
|
const checkedAt = new Date().toISOString();
|
|
1725
2314
|
const observations = new Array(testedModelIds.length);
|
|
1726
2315
|
await runBoundedWorkers(testedModelIds, SETUP_SMOKE_CONCURRENCY, async (modelId, index) => {
|
|
@@ -1730,20 +2319,22 @@ async function setupToolCallingObservations(config, testedModelIds, correlationI
|
|
|
1730
2319
|
const probeStatus = provider === undefined
|
|
1731
2320
|
? "unverified"
|
|
1732
2321
|
: await probeGatewayToolCalling(config, provider, undefined, (error) => {
|
|
2322
|
+
signal?.throwIfAborted();
|
|
1733
2323
|
reportSetupVerificationFailure(deps, error, correlationId, "gateway.setup.tool-calling-probe");
|
|
1734
2324
|
}, {
|
|
1735
2325
|
env: deps.env,
|
|
1736
2326
|
capability: findConfiguredCapability(config, modelId),
|
|
1737
2327
|
correlationId: correlationId ?? UNKNOWN_CORRELATION_ID,
|
|
1738
|
-
});
|
|
2328
|
+
}, signal);
|
|
1739
2329
|
// A `transient` probe answer (408/429/5xx-except-501, `transientGatewayStatus`) proves
|
|
1740
2330
|
// nothing about the model either way and must never be stored or logged as a verdict: the
|
|
1741
2331
|
// closed status vocabulary here and on the `gateway.tool-calling.verification` activity-log
|
|
1742
2332
|
// line stays exactly "verified" | "unsupported" | "unverified" (PR #3602 review).
|
|
2333
|
+
signal?.throwIfAborted();
|
|
1743
2334
|
const status = probeStatus === "transient" ? "unverified" : probeStatus;
|
|
1744
2335
|
observations[index] = { modelId, status, checkedAt };
|
|
1745
2336
|
logToolCallingVerification(config, modelId, status, correlationId ?? UNKNOWN_CORRELATION_ID);
|
|
1746
|
-
});
|
|
2337
|
+
}, signal);
|
|
1747
2338
|
return observations;
|
|
1748
2339
|
}
|
|
1749
2340
|
// Field incident (LiteLLM customer, 2026-08): chat models were smoke-tested, embedding models were
|
|
@@ -1756,7 +2347,8 @@ const EMBEDDING_PROBE_INPUT = "Keiko embedding setup probe";
|
|
|
1756
2347
|
// One embedding request against the model, using the SAME endpoint protocol the provider will
|
|
1757
2348
|
// persist with — an Azure deployment path must not be probed at the OpenAI-compatible URL, or the
|
|
1758
2349
|
// probe measures a 404 that production would never see.
|
|
1759
|
-
async function embedOnceForProbe(config, provider, modelId, env, correlationId) {
|
|
2350
|
+
async function embedOnceForProbe(config, provider, modelId, env, correlationId, signal) {
|
|
2351
|
+
signal?.throwIfAborted();
|
|
1760
2352
|
const reservation = reserveGatewaySpendForAttempt(env, findConfiguredCapability(config, modelId), {
|
|
1761
2353
|
modelId,
|
|
1762
2354
|
messages: [{ role: "user", content: "Gateway embedding setup probe." }],
|
|
@@ -1775,6 +2367,7 @@ async function embedOnceForProbe(config, provider, modelId, env, correlationId)
|
|
|
1775
2367
|
modelId,
|
|
1776
2368
|
input: EMBEDDING_PROBE_INPUT,
|
|
1777
2369
|
timeoutMs: provider.timeoutMs,
|
|
2370
|
+
...(signal === undefined ? {} : { signal }),
|
|
1778
2371
|
// The probe exists because an embedding model used to be persisted on a classification alone.
|
|
1779
2372
|
// The sink is what turns a rejected probe into a line naming the status and the error kind,
|
|
1780
2373
|
// rather than a model that silently fails to make the candidate list.
|
|
@@ -1796,15 +2389,16 @@ const RETRYABLE_PROBE_KINDS = new Set([
|
|
|
1796
2389
|
// An immediate retry against a gateway that just answered 429 answers 429 again, so it would burn a
|
|
1797
2390
|
// request and change nothing. One short pause, matching the chat lane's backoff base.
|
|
1798
2391
|
const EMBEDDING_PROBE_RETRY_DELAY_MS = 500;
|
|
1799
|
-
export async function defaultGatewayEmbeddingProbe(config, candidateModelIds, env, correlationId) {
|
|
2392
|
+
export async function defaultGatewayEmbeddingProbe(config, candidateModelIds, env, correlationId, signal) {
|
|
1800
2393
|
return passingCandidates(candidateModelIds, async (modelId) => {
|
|
1801
2394
|
const provider = config.providers.find((entry) => entry.modelId === modelId);
|
|
1802
2395
|
if (provider === undefined)
|
|
1803
2396
|
throw new Error("embedding candidate has no provider entry");
|
|
1804
|
-
let outcome = await embedOnceForProbe(config, provider, modelId, env, correlationId);
|
|
2397
|
+
let outcome = await embedOnceForProbe(config, provider, modelId, env, correlationId, signal);
|
|
2398
|
+
signal?.throwIfAborted();
|
|
1805
2399
|
if (!outcome.ok && RETRYABLE_PROBE_KINDS.has(outcome.kind)) {
|
|
1806
|
-
await new Promise((resolve) => setTimeout(resolve, EMBEDDING_PROBE_RETRY_DELAY_MS));
|
|
1807
|
-
outcome = await embedOnceForProbe(config, provider, modelId, env, correlationId);
|
|
2400
|
+
await awaitSetupOperation(new Promise((resolve) => setTimeout(resolve, EMBEDDING_PROBE_RETRY_DELAY_MS)), signal);
|
|
2401
|
+
outcome = await embedOnceForProbe(config, provider, modelId, env, correlationId, signal);
|
|
1808
2402
|
}
|
|
1809
2403
|
// The per-model verdict is what the operator acts on, and it travels in
|
|
1810
2404
|
// droppedEmbeddingModelIds / unverifiedEmbeddingModelIds. passingCandidates drops the
|
|
@@ -1812,23 +2406,66 @@ export async function defaultGatewayEmbeddingProbe(config, candidateModelIds, en
|
|
|
1812
2406
|
if (!outcome.ok || outcome.value.vector.length === 0) {
|
|
1813
2407
|
throw new Error("embedding probe returned no usable vector");
|
|
1814
2408
|
}
|
|
1815
|
-
}, SETUP_SMOKE_CONCURRENCY);
|
|
2409
|
+
}, SETUP_SMOKE_CONCURRENCY, undefined, signal);
|
|
1816
2410
|
}
|
|
1817
|
-
function gatewayEmbeddingProbe(deps, correlationId) {
|
|
2411
|
+
function gatewayEmbeddingProbe(deps, correlationId, signal) {
|
|
1818
2412
|
const override = deps.gatewayEmbeddingProbe;
|
|
1819
2413
|
if (override !== undefined)
|
|
1820
2414
|
return override;
|
|
1821
|
-
return (config, candidateModelIds) => defaultGatewayEmbeddingProbe(config, candidateModelIds, deps.env, correlationId ?? UNKNOWN_CORRELATION_ID);
|
|
2415
|
+
return (config, candidateModelIds) => defaultGatewayEmbeddingProbe(config, candidateModelIds, deps.env, correlationId ?? UNKNOWN_CORRELATION_ID, signal);
|
|
2416
|
+
}
|
|
2417
|
+
// A rerank probe answers two short documents; a healthy engine takes a moment, an unreachable one
|
|
2418
|
+
// must not hold the setup response for the adapter's multi-minute retrieval floor. The caller
|
|
2419
|
+
// signal is what bounds it (the adapter takes the SHORTER of its own deadline and the signal).
|
|
2420
|
+
const RERANKER_SETUP_PROBE_DEADLINE_MS = 30_000;
|
|
2421
|
+
// ...and one setup request has ONE budget for all of them. Per-probe deadlines alone stack: a
|
|
2422
|
+
// gateway listing several rerank aliases behind an unreachable route held the response for
|
|
2423
|
+
// 3 x 30 s per candidate URL, and the candidate-URL loop repeats the whole sequence. The budget
|
|
2424
|
+
// starts at the first probe of the request and is shared by every engine and every candidate URL.
|
|
2425
|
+
const RERANKER_SETUP_TOTAL_BUDGET_MS = 45_000;
|
|
2426
|
+
// The reranker block's own default when the request states no provider timeout (the config parser
|
|
2427
|
+
// applies the same value to a stored block that omits it).
|
|
2428
|
+
const DEFAULT_RERANKER_TIMEOUT_MS = 120_000;
|
|
2429
|
+
// The same two-document probe gateway readiness runs, over the request's own dependencies: the
|
|
2430
|
+
// egress policy, spend guard and activity-log line all apply to a discovered engine exactly as
|
|
2431
|
+
// they do to a configured one. Any failure — a refused request, a wrong ranking, a thrown
|
|
2432
|
+
// transport error, an exhausted request budget — is "not admitted", never a failed setup.
|
|
2433
|
+
function gatewayRerankerProbe(deps, correlationId, signal) {
|
|
2434
|
+
let budgetEndsAt;
|
|
2435
|
+
return async (config) => {
|
|
2436
|
+
signal?.throwIfAborted();
|
|
2437
|
+
budgetEndsAt ??= Date.now() + RERANKER_SETUP_TOTAL_BUDGET_MS;
|
|
2438
|
+
const remainingMs = budgetEndsAt - Date.now();
|
|
2439
|
+
if (remainingMs <= 0)
|
|
2440
|
+
return false;
|
|
2441
|
+
try {
|
|
2442
|
+
const selection = await requestRerankerProbe({
|
|
2443
|
+
deps,
|
|
2444
|
+
config,
|
|
2445
|
+
correlationId: correlationId ?? UNKNOWN_CORRELATION_ID,
|
|
2446
|
+
signal: AbortSignal.any([
|
|
2447
|
+
AbortSignal.timeout(Math.min(RERANKER_SETUP_PROBE_DEADLINE_MS, remainingMs)),
|
|
2448
|
+
...(signal === undefined ? [] : [signal]),
|
|
2449
|
+
]),
|
|
2450
|
+
});
|
|
2451
|
+
return rerankerProbePassed(selection);
|
|
2452
|
+
}
|
|
2453
|
+
catch (error) {
|
|
2454
|
+
signal?.throwIfAborted();
|
|
2455
|
+
reportSetupVerificationFailure(deps, error, correlationId, "gateway.setup.reranker-probe");
|
|
2456
|
+
return false;
|
|
2457
|
+
}
|
|
2458
|
+
};
|
|
1822
2459
|
}
|
|
1823
2460
|
// The seam type (UiHandlerDeps["gatewaySetupTester"]) is a fixed 2-arg shape shared by every
|
|
1824
2461
|
// test override, so the request-scoped correlation id is closed over here rather than added as a
|
|
1825
2462
|
// 3rd seam parameter — the override contract stays untouched while the real tester still stamps
|
|
1826
2463
|
// GatewayCallRequest.logContext (ADR-0173 D5).
|
|
1827
|
-
function gatewaySetupTester(deps, correlationId) {
|
|
2464
|
+
function gatewaySetupTester(deps, correlationId, signal) {
|
|
1828
2465
|
const override = deps.gatewaySetupTester;
|
|
1829
2466
|
if (override !== undefined)
|
|
1830
2467
|
return override;
|
|
1831
|
-
return (config, candidateModelIds) => defaultGatewaySetupTester(config, candidateModelIds, correlationId, deps);
|
|
2468
|
+
return (config, candidateModelIds) => defaultGatewaySetupTester(config, candidateModelIds, correlationId, deps, signal);
|
|
1832
2469
|
}
|
|
1833
2470
|
const FIGMA_ME_ENDPOINT = "https://api.figma.com/v1/me";
|
|
1834
2471
|
function figmaReason(body) {
|
|
@@ -3177,6 +3814,7 @@ function assembleSetupRequest(input) {
|
|
|
3177
3814
|
...input.credentials,
|
|
3178
3815
|
timeoutMs: input.timeoutMs,
|
|
3179
3816
|
deploymentNames: resolved.deploymentNames,
|
|
3817
|
+
explicitDeploymentNames: input.modelLists.deploymentNames,
|
|
3180
3818
|
imageInputModelIds: resolved.imageInputModelIds,
|
|
3181
3819
|
imageInputModelIdsProvided: hasListField(input.raw, "imageInputModelIds"),
|
|
3182
3820
|
submittedEmbeddingModelIds: input.modelLists.embeddingModelIds ?? [],
|
|
@@ -3322,44 +3960,256 @@ function normalizeDiscoveryResult(result) {
|
|
|
3322
3960
|
...(result.unsupportedModels !== undefined
|
|
3323
3961
|
? { unsupportedModels: result.unsupportedModels }
|
|
3324
3962
|
: {}),
|
|
3963
|
+
...(result.rerankModelIds !== undefined ? { rerankModelIds: result.rerankModelIds } : {}),
|
|
3325
3964
|
};
|
|
3326
3965
|
}
|
|
3327
3966
|
return normalizeLegacyDiscoveryResult(result);
|
|
3328
3967
|
}
|
|
3329
|
-
function candidateModelsFromDeploymentNames(deploymentNames,
|
|
3968
|
+
function candidateModelsFromDeploymentNames(deploymentNames, roles) {
|
|
3330
3969
|
// Stored kinds win over the name heuristic: a preserve-mode rebuild must not chat-probe a
|
|
3331
3970
|
// verified embedding or OCR deployment out of the config (review findings on #3031). Stored
|
|
3332
3971
|
// OCR and dedicated-endpoint embedding providers leave the candidate set entirely — they are
|
|
3333
3972
|
// restored verbatim afterwards.
|
|
3334
|
-
const restoredSet = new Set(restoredVerbatimModelIds);
|
|
3973
|
+
const restoredSet = new Set(roles.restoredVerbatimModelIds);
|
|
3335
3974
|
const candidateNames = deploymentNames.filter((modelId) => !restoredSet.has(modelId));
|
|
3336
|
-
const storedEmbeddingSet = new Set(storedEmbeddingModelIds);
|
|
3337
|
-
const
|
|
3975
|
+
const storedEmbeddingSet = new Set(roles.storedEmbeddingModelIds);
|
|
3976
|
+
const submittedEmbeddingSet = new Set(roles.submittedEmbeddingModelIds);
|
|
3977
|
+
// A STORED embedding id that names a rerank engine is not an asserted role: field incident
|
|
3978
|
+
// (LiteLLM customer, 2026-08) — a declared `rerank` endpoint was filed as the gateway's embedding
|
|
3979
|
+
// model, and treating every stored id as asserted kept it there through every later save. It is
|
|
3980
|
+
// re-classified as a rerank candidate (probed, and wired only when nobody owns a reranker). A
|
|
3981
|
+
// client-submitted embedding id stays an explicit assertion.
|
|
3982
|
+
const rerankModelIds = candidateNames.filter((modelId) => storedEmbeddingSet.has(modelId) &&
|
|
3983
|
+
!submittedEmbeddingSet.has(modelId) &&
|
|
3984
|
+
isLikelyRerankModelId(modelId));
|
|
3985
|
+
const rerankSet = new Set(rerankModelIds);
|
|
3986
|
+
const modelIds = candidateNames.filter((modelId) => !rerankSet.has(modelId));
|
|
3987
|
+
const embeddingModelIds = modelIds.filter((modelId) => storedEmbeddingSet.has(modelId) ||
|
|
3988
|
+
submittedEmbeddingSet.has(modelId) ||
|
|
3989
|
+
isLikelyEmbeddingModelId(modelId));
|
|
3338
3990
|
const embeddingSet = new Set(embeddingModelIds);
|
|
3339
3991
|
return {
|
|
3340
|
-
modelIds
|
|
3341
|
-
chatModelIds:
|
|
3992
|
+
modelIds,
|
|
3993
|
+
chatModelIds: modelIds.filter((modelId) => !embeddingSet.has(modelId)),
|
|
3342
3994
|
embeddingModelIds,
|
|
3343
3995
|
imageInputModelIds: [],
|
|
3344
3996
|
modelMetadata: {},
|
|
3997
|
+
...(rerankModelIds.length === 0
|
|
3998
|
+
? {}
|
|
3999
|
+
: {
|
|
4000
|
+
rerankModelIds,
|
|
4001
|
+
unsupportedModels: rerankModelIds.map((id) => ({ id, reason: "rerank" })),
|
|
4002
|
+
}),
|
|
4003
|
+
};
|
|
4004
|
+
}
|
|
4005
|
+
// The embedding a previous configuration led with stays first: the default new Knowledge Pods bind
|
|
4006
|
+
// is the first embedding provider, and a re-discovery — a key rotation, a gateway that now lists
|
|
4007
|
+
// another engine ahead of it — must not rebind them silently. Everything new follows in discovery's
|
|
4008
|
+
// own order (declared before name-inferred, then by id).
|
|
4009
|
+
function withStoredEmbeddingOrder(discovered, stored) {
|
|
4010
|
+
const present = new Set(discovered.embeddingModelIds);
|
|
4011
|
+
const kept = currentEmbeddingModelIds(stored).filter((modelId) => present.has(modelId));
|
|
4012
|
+
if (kept.length === 0)
|
|
4013
|
+
return discovered;
|
|
4014
|
+
const keptSet = new Set(kept);
|
|
4015
|
+
return {
|
|
4016
|
+
...discovered,
|
|
4017
|
+
embeddingModelIds: [
|
|
4018
|
+
...kept,
|
|
4019
|
+
...discovered.embeddingModelIds.filter((modelId) => !keptSet.has(modelId)),
|
|
4020
|
+
],
|
|
3345
4021
|
};
|
|
3346
4022
|
}
|
|
3347
4023
|
async function candidateModelIdsForSetup(input, validationConfig) {
|
|
3348
4024
|
if (input.deploymentNames.length > 0) {
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
4025
|
+
const selected = candidateModelsFromDeploymentNames(input.deploymentNames, {
|
|
4026
|
+
storedEmbeddingModelIds: input.storedEmbeddingModelIds,
|
|
4027
|
+
submittedEmbeddingModelIds: input.submittedEmbeddingModelIds,
|
|
4028
|
+
restoredVerbatimModelIds: [
|
|
4029
|
+
...input.storedOcrModelIds,
|
|
4030
|
+
...input.storedDedicatedEmbeddingModelIds,
|
|
4031
|
+
// Voice ids leave the candidate set too, but applyVoiceProviders restores them — they
|
|
4032
|
+
// must not join the verbatim-restore list below.
|
|
4033
|
+
...input.storedVoiceModelIds,
|
|
4034
|
+
],
|
|
4035
|
+
});
|
|
4036
|
+
return enrichSelectedDeploymentMetadata(input, validationConfig, selected);
|
|
4037
|
+
}
|
|
4038
|
+
return withStoredEmbeddingOrder(await discoverSetupModels(input, validationConfig), input.stored);
|
|
4039
|
+
}
|
|
4040
|
+
async function awaitSetupOperation(operation, signal) {
|
|
4041
|
+
if (signal === undefined)
|
|
4042
|
+
return operation;
|
|
4043
|
+
signal.throwIfAborted();
|
|
4044
|
+
let onAbort;
|
|
4045
|
+
const aborted = new Promise((_resolve, reject) => {
|
|
4046
|
+
onAbort = () => {
|
|
4047
|
+
reject(new DOMException("Gateway setup cancelled.", "AbortError"));
|
|
4048
|
+
};
|
|
4049
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
4050
|
+
});
|
|
4051
|
+
try {
|
|
4052
|
+
return await Promise.race([operation, aborted]);
|
|
4053
|
+
}
|
|
4054
|
+
finally {
|
|
4055
|
+
if (onAbort !== undefined)
|
|
4056
|
+
signal.removeEventListener("abort", onAbort);
|
|
3356
4057
|
}
|
|
3357
|
-
return normalizeDiscoveryResult(await input.discovery(input.baseUrl, input.apiKey, input.apiKeyHeaderName, validationConfig.egress, input.correlationId));
|
|
3358
4058
|
}
|
|
3359
|
-
function
|
|
4059
|
+
function discoveryProgrammingFailure(cause) {
|
|
4060
|
+
return (cause instanceof TypeError || cause instanceof ReferenceError || cause instanceof RangeError);
|
|
4061
|
+
}
|
|
4062
|
+
function discoveryHttpStatus(cause) {
|
|
4063
|
+
const value = cause !== null && typeof cause === "object" && "httpStatus" in cause
|
|
4064
|
+
? cause.httpStatus
|
|
4065
|
+
: undefined;
|
|
4066
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 100 && value <= 599
|
|
4067
|
+
? value
|
|
4068
|
+
: undefined;
|
|
4069
|
+
}
|
|
4070
|
+
function discoveryTimedOut(cause) {
|
|
4071
|
+
return ((cause instanceof Error && cause.name === "TimeoutError") ||
|
|
4072
|
+
(cause instanceof GatewayError && cause.code === ERROR_CODES.TIMEOUT));
|
|
4073
|
+
}
|
|
4074
|
+
function discoveryAnswerIsUnusable(cause) {
|
|
4075
|
+
if (cause === null || typeof cause !== "object" || !("discoveryCode" in cause))
|
|
4076
|
+
return false;
|
|
4077
|
+
return (cause.discoveryCode === "DISCOVERY_EMPTY" ||
|
|
4078
|
+
cause.discoveryCode === "DISCOVERY_ALL_ENTRIES_UNSUPPORTED" ||
|
|
4079
|
+
cause.discoveryCode === "DISCOVERY_INVALID_RESPONSE");
|
|
4080
|
+
}
|
|
4081
|
+
function discoveryRouteOutcome(cause, signal) {
|
|
4082
|
+
if (discoveryTimedOut(cause))
|
|
4083
|
+
return "timeout";
|
|
4084
|
+
if (signal.aborted)
|
|
4085
|
+
return "cancelled";
|
|
4086
|
+
if (discoveryHttpStatus(cause) !== undefined)
|
|
4087
|
+
return "http-error";
|
|
4088
|
+
if (discoveryAnswerIsUnusable(cause))
|
|
4089
|
+
return "unusable";
|
|
4090
|
+
return discoveryProgrammingFailure(cause) ? "failed" : "transport-error";
|
|
4091
|
+
}
|
|
4092
|
+
function discoveryFailureKind(cause, status) {
|
|
4093
|
+
if (discoveryAnswerIsUnusable(cause))
|
|
4094
|
+
return "validation-failed";
|
|
4095
|
+
if (status === 401 || status === 403)
|
|
4096
|
+
return "permission-denied";
|
|
4097
|
+
if (status === 429)
|
|
4098
|
+
return "rate-limited";
|
|
4099
|
+
if (discoveryTimedOut(cause))
|
|
4100
|
+
return "timeout";
|
|
4101
|
+
return discoveryProgrammingFailure(cause) ? "internal" : "unavailable";
|
|
4102
|
+
}
|
|
4103
|
+
function discoveryFailureDetail(cause, cancelled) {
|
|
4104
|
+
const httpStatus = discoveryHttpStatus(cause);
|
|
4105
|
+
return {
|
|
4106
|
+
errorKind: cancelled ? "cancelled" : discoveryFailureKind(cause, httpStatus),
|
|
4107
|
+
evidence: {
|
|
4108
|
+
...(httpStatus === undefined ? {} : { httpStatus }),
|
|
4109
|
+
frames: keikoStackFrames(cause),
|
|
4110
|
+
causeChain: causeChain(cause),
|
|
4111
|
+
},
|
|
4112
|
+
};
|
|
4113
|
+
}
|
|
4114
|
+
function metadataFailureOutcome(cause, signal) {
|
|
4115
|
+
if (signal?.aborted === true)
|
|
4116
|
+
return "cancelled";
|
|
4117
|
+
return discoveryProgrammingFailure(cause) ? "failed" : "unavailable";
|
|
4118
|
+
}
|
|
4119
|
+
async function discoverSetupModels(input, validationConfig, selected) {
|
|
4120
|
+
const startedAt = Date.now();
|
|
4121
|
+
const trace = createSetupDiscoveryTrace();
|
|
4122
|
+
const selectedModelCount = selectedModelCountOf(selected);
|
|
4123
|
+
try {
|
|
4124
|
+
input.signal?.throwIfAborted();
|
|
4125
|
+
const result = await awaitSetupOperation(input.discovery(input.baseUrl, input.apiKey, input.apiKeyHeaderName, validationConfig.egress, input.correlationId, trace), input.signal);
|
|
4126
|
+
input.signal?.throwIfAborted();
|
|
4127
|
+
const normalized = normalizeDiscoveryResult(result);
|
|
4128
|
+
logSetupMetadataOutcome({
|
|
4129
|
+
outcome: "available",
|
|
4130
|
+
...(selected === undefined
|
|
4131
|
+
? {}
|
|
4132
|
+
: { selectionCounts: selectedMetadataCounts(selected, normalized) }),
|
|
4133
|
+
}, trace, startedAt, input.correlationId);
|
|
4134
|
+
return normalized;
|
|
4135
|
+
}
|
|
4136
|
+
catch (cause) {
|
|
4137
|
+
const outcome = metadataFailureOutcome(cause, input.signal);
|
|
4138
|
+
logSetupMetadataOutcome({
|
|
4139
|
+
outcome,
|
|
4140
|
+
...(selectedModelCount === undefined ? {} : { selectionCounts: { selectedModelCount } }),
|
|
4141
|
+
failure: discoveryFailureDetail(cause, outcome === "cancelled"),
|
|
4142
|
+
}, trace, startedAt, input.correlationId);
|
|
4143
|
+
throw cause;
|
|
4144
|
+
}
|
|
4145
|
+
}
|
|
4146
|
+
function selectedDeploymentMetadata(selected, discovered) {
|
|
4147
|
+
const chat = new Set(discovered.chatModelIds);
|
|
4148
|
+
const embedding = new Set(discovered.embeddingModelIds);
|
|
4149
|
+
const compatible = [
|
|
4150
|
+
...selected.chatModelIds.filter((id) => chat.has(id)),
|
|
4151
|
+
...selected.embeddingModelIds.filter((id) => embedding.has(id)),
|
|
4152
|
+
];
|
|
4153
|
+
return Object.fromEntries(compatible.flatMap((id) => {
|
|
4154
|
+
const metadata = discovered.modelMetadata[id];
|
|
4155
|
+
return metadata === undefined ? [] : [[id, metadata]];
|
|
4156
|
+
}));
|
|
4157
|
+
}
|
|
4158
|
+
function selectedModelCountOf(selected) {
|
|
4159
|
+
return selected === undefined
|
|
4160
|
+
? undefined
|
|
4161
|
+
: selected.chatModelIds.length + selected.embeddingModelIds.length;
|
|
4162
|
+
}
|
|
4163
|
+
function selectedMetadataCounts(selected, discovered) {
|
|
4164
|
+
const allDiscovered = new Set(discovered.modelIds);
|
|
4165
|
+
let metadataEnrichedModelCount = 0;
|
|
4166
|
+
let roleMismatchModelCount = 0;
|
|
4167
|
+
let notDiscoveredModelCount = 0;
|
|
4168
|
+
const groups = [
|
|
4169
|
+
[selected.chatModelIds, discovered.chatModelIds],
|
|
4170
|
+
[selected.embeddingModelIds, discovered.embeddingModelIds],
|
|
4171
|
+
];
|
|
4172
|
+
for (const [selectedIds, discoveredIds] of groups) {
|
|
4173
|
+
const compatible = new Set(discoveredIds);
|
|
4174
|
+
for (const id of selectedIds) {
|
|
4175
|
+
if (!allDiscovered.has(id))
|
|
4176
|
+
notDiscoveredModelCount++;
|
|
4177
|
+
else if (!compatible.has(id))
|
|
4178
|
+
roleMismatchModelCount++;
|
|
4179
|
+
else if (Object.keys(discovered.modelMetadata[id] ?? {}).length > 0)
|
|
4180
|
+
metadataEnrichedModelCount++;
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
return {
|
|
4184
|
+
selectedModelCount: selectedModelCountOf(selected),
|
|
4185
|
+
metadataEnrichedModelCount,
|
|
4186
|
+
roleMismatchModelCount,
|
|
4187
|
+
notDiscoveredModelCount,
|
|
4188
|
+
};
|
|
4189
|
+
}
|
|
4190
|
+
async function enrichSelectedDeploymentMetadata(input, validationConfig, selected) {
|
|
4191
|
+
try {
|
|
4192
|
+
const discovered = await discoverSetupModels(input, validationConfig, selected);
|
|
4193
|
+
reportDiscoveryTruncation(input.diagnostics, input.correlationId, discovered);
|
|
4194
|
+
return { ...selected, modelMetadata: selectedDeploymentMetadata(selected, discovered) };
|
|
4195
|
+
}
|
|
4196
|
+
catch (cause) {
|
|
4197
|
+
input.signal?.throwIfAborted();
|
|
4198
|
+
if (discoveryProgrammingFailure(cause))
|
|
4199
|
+
throw cause;
|
|
4200
|
+
// Explicit deployments remain usable on gateways without a discovery endpoint. Their
|
|
4201
|
+
// existing smoke probes validate credentials and callable roles; discovery cannot add ids.
|
|
4202
|
+
return selected;
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
function setupCatalogOriginOptions(input) {
|
|
4206
|
+
return { explicitDeploymentNames: input.explicitDeploymentNames, catalogOrigin: "discovered" };
|
|
4207
|
+
}
|
|
4208
|
+
function finalRawConfigForSetup(input, testedModelIds, embeddingModelIds, imageInputModelIds, responseFormatModelIds, modelMetadata, admittedModels) {
|
|
3360
4209
|
const configuredModelIds = mergeChatAndEmbeddingModelIds(testedModelIds, embeddingModelIds);
|
|
3361
4210
|
const rawConfig = buildRawConfig(input.baseUrl, input.apiKey, configuredModelIds, {
|
|
3362
4211
|
preserveExisting: input.preserveExisting,
|
|
4212
|
+
...setupCatalogOriginOptions(input),
|
|
3363
4213
|
apiKeyHeaderName: input.apiKeyHeaderName,
|
|
3364
4214
|
endpointStyle: input.endpointStyle,
|
|
3365
4215
|
apiVersion: input.apiVersion,
|
|
@@ -3378,16 +4228,18 @@ function finalRawConfigForSetup(input, testedModelIds, embeddingModelIds, imageI
|
|
|
3378
4228
|
// configuration — a reranker or egress topology must not vanish because an unrelated
|
|
3379
4229
|
// capability was updated (review finding on #3031).
|
|
3380
4230
|
...(input.current?.grounding === undefined ? {} : { grounding: input.current.grounding }),
|
|
3381
|
-
...(
|
|
4231
|
+
...rerankerBlockForSetup(admittedModels),
|
|
3382
4232
|
...(input.current?.egress === undefined ? {} : { egress: input.current.egress }),
|
|
3383
4233
|
...(input.figmaAccessToken === undefined
|
|
3384
4234
|
? {}
|
|
3385
4235
|
: { figma: { accessToken: input.figmaAccessToken } }),
|
|
4236
|
+
...operatorPolicyBlocks(input.current),
|
|
4237
|
+
...codingOperatorSwitches(input.current),
|
|
3386
4238
|
};
|
|
3387
4239
|
// Verbatim restoration reads the DURABLE stored view: restored values are what the FILE
|
|
3388
4240
|
// holds, so a transient per-model env override neither hides a sharing relationship nor gets
|
|
3389
4241
|
// baked into the rebuilt persisted config (review finding on #3037).
|
|
3390
|
-
const voiceProviders = discoveredVoiceProvidersForSetup(input,
|
|
4242
|
+
const voiceProviders = discoveredVoiceProvidersForSetup(input, admittedModels);
|
|
3391
4243
|
return applyStoredDedicatedProviders(applyVoiceProviders(rawConfigWithOptionalBlocks, voiceProviders), input.stored, [...input.storedOcrModelIds, ...input.storedDedicatedEmbeddingModelIds], {
|
|
3392
4244
|
baseUrl: input.baseUrl,
|
|
3393
4245
|
apiKey: input.apiKey,
|
|
@@ -3396,6 +4248,15 @@ function finalRawConfigForSetup(input, testedModelIds, embeddingModelIds, imageI
|
|
|
3396
4248
|
apiVersion: input.apiVersion,
|
|
3397
4249
|
});
|
|
3398
4250
|
}
|
|
4251
|
+
// The rebuild's reranker block is whatever `admitRerankerCandidates` decided: the reranker an
|
|
4252
|
+
// operator (or an earlier setup) owns — rebased onto the setup connection when it rode the gateway,
|
|
4253
|
+
// and verified there first when that connection moved to a new endpoint — or, only when nobody owns
|
|
4254
|
+
// one, a discovered engine that passed its live probe. The plaintext key here is sealed into the
|
|
4255
|
+
// credential vault by the same persistence step that seals every provider key; it never reaches the
|
|
4256
|
+
// file or the response.
|
|
4257
|
+
function rerankerBlockForSetup(admittedModels) {
|
|
4258
|
+
return admittedModels.reranker === undefined ? {} : { reranker: admittedModels.reranker };
|
|
4259
|
+
}
|
|
3399
4260
|
function discoveredVoiceProvidersForSetup(input, discovered) {
|
|
3400
4261
|
const configured = input.voiceProviders.length > 0
|
|
3401
4262
|
? input.voiceProviders
|
|
@@ -3702,6 +4563,113 @@ async function admitEmbeddingCandidates(input, probeConfig, candidates) {
|
|
|
3702
4563
|
droppedUnverified: failed.filter((id) => !asserted.has(id)),
|
|
3703
4564
|
};
|
|
3704
4565
|
}
|
|
4566
|
+
// A discovered rerank engine becomes the retrieval reranker only when nobody owns one and a live
|
|
4567
|
+
// two-document probe answers — the same gate embedding candidates pass. A model the gateway DECLARED
|
|
4568
|
+
// as `rerank` is still verified: a declaration says what the model is, not that its route works.
|
|
4569
|
+
// Probing is bounded (a handful of candidates, sequentially, in discovery's declared-first order,
|
|
4570
|
+
// inside one request-wide time budget) so a gateway that lists many rerank aliases cannot stretch
|
|
4571
|
+
// setup, and the first engine that ranks wins.
|
|
4572
|
+
const MAX_RERANKER_PROBES = 3;
|
|
4573
|
+
// Stored or current: either view means an operator (or an earlier setup) already chose a reranker,
|
|
4574
|
+
// and a discovered engine must never displace that choice. The runtime view wins; a reranker only
|
|
4575
|
+
// the durable file names still survives the rewrite.
|
|
4576
|
+
function ownedReranker(input) {
|
|
4577
|
+
return input.current?.reranker ?? input.stored?.reranker;
|
|
4578
|
+
}
|
|
4579
|
+
// A reranker that rode the stored gateway connection (same endpoint AND credential — exactly what a
|
|
4580
|
+
// discovered one does) follows a credential rotation or endpoint move like every other provider
|
|
4581
|
+
// that shared it: left behind, it would keep sending a dead token and silently degrade retrieval.
|
|
4582
|
+
// One with its own endpoint or credential keeps both — the freshly verified connection details
|
|
4583
|
+
// never travel to a connection they were not tested against.
|
|
4584
|
+
function rebasedReranker(input, reranker) {
|
|
4585
|
+
if (!sharesStoredGatewayConnection(reranker, storedPrimaryGatewayProvider(input.stored))) {
|
|
4586
|
+
return reranker;
|
|
4587
|
+
}
|
|
4588
|
+
return {
|
|
4589
|
+
...reranker,
|
|
4590
|
+
baseUrl: input.baseUrl,
|
|
4591
|
+
apiKey: input.apiKey,
|
|
4592
|
+
apiKeyHeaderName: input.apiKeyHeaderName,
|
|
4593
|
+
};
|
|
4594
|
+
}
|
|
4595
|
+
// The reranker block a discovered engine persists: the verified setup connection, nothing else.
|
|
4596
|
+
function discoveredRerankerBlockFor(input, modelId) {
|
|
4597
|
+
return {
|
|
4598
|
+
modelId,
|
|
4599
|
+
baseUrl: input.baseUrl,
|
|
4600
|
+
apiKey: input.apiKey,
|
|
4601
|
+
apiKeyHeaderName: input.apiKeyHeaderName,
|
|
4602
|
+
timeoutMs: input.timeoutMs ?? DEFAULT_RERANKER_TIMEOUT_MS,
|
|
4603
|
+
};
|
|
4604
|
+
}
|
|
4605
|
+
// The config a reranker is probed under: its own block on the verified setup connection, and the
|
|
4606
|
+
// egress policy the request validated under unless the block states its own.
|
|
4607
|
+
function withProbeEgress(input, reranker) {
|
|
4608
|
+
return reranker.egress === undefined && input.egress !== undefined
|
|
4609
|
+
? { ...reranker, egress: input.egress }
|
|
4610
|
+
: reranker;
|
|
4611
|
+
}
|
|
4612
|
+
function probeRerankerOn(input, validationConfig, reranker) {
|
|
4613
|
+
return input.rerankerProbe({ ...validationConfig, reranker: withProbeEgress(input, reranker) });
|
|
4614
|
+
}
|
|
4615
|
+
async function admitRerankerCandidates(input, validationConfig, candidates) {
|
|
4616
|
+
const owned = ownedReranker(input);
|
|
4617
|
+
if (owned === undefined)
|
|
4618
|
+
return admitDiscoveredRerankers(input, validationConfig, candidates, 0);
|
|
4619
|
+
const carried = rebasedReranker(input, owned);
|
|
4620
|
+
const candidateCount = candidates.length;
|
|
4621
|
+
if (sameBaseUrlIdentity(owned.baseUrl, carried.baseUrl)) {
|
|
4622
|
+
// Its own connection, or the gateway's endpoint unchanged (a credential rotation): nothing new
|
|
4623
|
+
// to verify — the model is hosted where it always was.
|
|
4624
|
+
return {
|
|
4625
|
+
reranker: carried,
|
|
4626
|
+
...(candidateCount === 0
|
|
4627
|
+
? {}
|
|
4628
|
+
: { resolution: { outcome: "kept-existing", candidateCount, probedCount: 0 } }),
|
|
4629
|
+
};
|
|
4630
|
+
}
|
|
4631
|
+
// It rode the gateway to a NEW endpoint. Nothing says that gateway hosts this model, so it is
|
|
4632
|
+
// verified there before it is repointed; when it does not answer it is no longer owned, and
|
|
4633
|
+
// discovery on the new gateway decides.
|
|
4634
|
+
if (await probeRerankerOn(input, validationConfig, carried)) {
|
|
4635
|
+
return {
|
|
4636
|
+
reranker: carried,
|
|
4637
|
+
resolution: { outcome: "kept-existing", candidateCount, probedCount: 1 },
|
|
4638
|
+
};
|
|
4639
|
+
}
|
|
4640
|
+
return admitDiscoveredRerankers(input, validationConfig, candidates, 1);
|
|
4641
|
+
}
|
|
4642
|
+
async function admitDiscoveredRerankers(input, validationConfig, candidates, alreadyProbed) {
|
|
4643
|
+
const candidateCount = candidates.length;
|
|
4644
|
+
if (candidateCount === 0 && alreadyProbed === 0)
|
|
4645
|
+
return {};
|
|
4646
|
+
let probedCount = alreadyProbed;
|
|
4647
|
+
for (const modelId of candidates.slice(0, MAX_RERANKER_PROBES)) {
|
|
4648
|
+
probedCount += 1;
|
|
4649
|
+
const block = discoveredRerankerBlockFor(input, modelId);
|
|
4650
|
+
if (await probeRerankerOn(input, validationConfig, block)) {
|
|
4651
|
+
return {
|
|
4652
|
+
reranker: block,
|
|
4653
|
+
admittedModelId: modelId,
|
|
4654
|
+
resolution: { outcome: "wired", wiredModelId: modelId, candidateCount, probedCount },
|
|
4655
|
+
};
|
|
4656
|
+
}
|
|
4657
|
+
}
|
|
4658
|
+
return { resolution: { outcome: "probe-failed", candidateCount, probedCount } };
|
|
4659
|
+
}
|
|
4660
|
+
// The admitted view of the candidates: the reranker decision travels with it, and the engine that
|
|
4661
|
+
// passed its probe leaves the "unsupported" report — the operator sees what Keiko did NOT configure.
|
|
4662
|
+
function withRerankerAdmission(candidateModels, admission) {
|
|
4663
|
+
const { admittedModelId } = admission;
|
|
4664
|
+
const { unsupportedModels, rerankModelIds: _candidates, ...admitted } = candidateModels;
|
|
4665
|
+
const stillUnsupported = (unsupportedModels ?? []).filter((entry) => entry.id !== admittedModelId);
|
|
4666
|
+
return {
|
|
4667
|
+
...admitted,
|
|
4668
|
+
...(admission.reranker === undefined ? {} : { reranker: admission.reranker }),
|
|
4669
|
+
...(admission.resolution === undefined ? {} : { rerankerResolution: admission.resolution }),
|
|
4670
|
+
...(stillUnsupported.length === 0 ? {} : { unsupportedModels: stillUnsupported }),
|
|
4671
|
+
};
|
|
4672
|
+
}
|
|
3705
4673
|
// Body-free counterpart to reportDiscoveryTruncation: counts and reason codes only, never a model
|
|
3706
4674
|
// id or an endpoint. Ids belong in the setup RESPONSE, which the operator sees; the diagnostic
|
|
3707
4675
|
// channel stays free of gateway inventory.
|
|
@@ -3778,7 +4746,7 @@ async function admitChatCandidatesOrDefer(input, candidateModels, admittedModels
|
|
|
3778
4746
|
catch (error) {
|
|
3779
4747
|
if (!temporaryGatewaySetupFailure(error))
|
|
3780
4748
|
throw error;
|
|
3781
|
-
throw new DeferredTemporaryChatAdmission(error, () => verifiedSetupFromChatAdmission(input,
|
|
4749
|
+
throw new DeferredTemporaryChatAdmission(error, () => verifiedSetupFromChatAdmission(input, admittedModels, candidateConfig, embeddingAdmission, temporaryChatAdmission(input, candidateModels, candidateConfig)));
|
|
3782
4750
|
}
|
|
3783
4751
|
}
|
|
3784
4752
|
async function verifySetupCandidate(input) {
|
|
@@ -3788,38 +4756,41 @@ async function verifySetupCandidate(input) {
|
|
|
3788
4756
|
reportLoopbackTargetAccepted(input.diagnostics, input.correlationId, input.baseUrl);
|
|
3789
4757
|
const validationConfig = validationConfigForSetup(input);
|
|
3790
4758
|
const candidateModels = await candidateModelIdsForSetup(input, validationConfig);
|
|
4759
|
+
input.signal?.throwIfAborted();
|
|
3791
4760
|
reportDiscoveryTruncation(input.diagnostics, input.correlationId, candidateModels);
|
|
3792
4761
|
const smokeTimeoutMs = input.deploymentNames.length > 0
|
|
3793
4762
|
? DEPLOYMENT_SMOKE_TIMEOUT_MS
|
|
3794
4763
|
: DISCOVERED_MODEL_SMOKE_TIMEOUT_MS;
|
|
3795
4764
|
const candidateConfig = probeConfigForModels(input, candidateModels.chatModelIds, smokeTimeoutMs);
|
|
3796
4765
|
const embeddingAdmission = await admitEmbeddingCandidates(input, embeddingProbeConfigFor(input, candidateModels, smokeTimeoutMs, candidateConfig), candidateModels.embeddingModelIds);
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
};
|
|
4766
|
+
input.signal?.throwIfAborted();
|
|
4767
|
+
const rerankerAdmission = await admitRerankerCandidates(input, validationConfig, candidateModels.rerankModelIds ?? []);
|
|
4768
|
+
const admittedModels = withRerankerAdmission({ ...candidateModels, embeddingModelIds: embeddingAdmission.admitted }, rerankerAdmission);
|
|
3801
4769
|
// Emitted BEFORE the chat smoke test: the tester throws on an all-rejected gateway, and the
|
|
3802
4770
|
// record of what discovery refused is most valuable for exactly that failed attempt.
|
|
3803
|
-
reportUnusableDiscoveredModels(input.diagnostics, input.correlationId,
|
|
4771
|
+
reportUnusableDiscoveredModels(input.diagnostics, input.correlationId, admittedModels.unsupportedModels ?? [], embeddingAdmission);
|
|
4772
|
+
input.signal?.throwIfAborted();
|
|
3804
4773
|
const chatAdmission = await admitChatCandidatesOrDefer(input, candidateModels, admittedModels, candidateConfig, embeddingAdmission);
|
|
3805
4774
|
reportChatSmokeAdmission(input.diagnostics, input.correlationId, chatAdmission);
|
|
3806
|
-
return verifiedSetupFromChatAdmission(input,
|
|
4775
|
+
return verifiedSetupFromChatAdmission(input, admittedModels, candidateConfig, embeddingAdmission, chatAdmission);
|
|
3807
4776
|
}
|
|
3808
|
-
function verifiedSetupFromChatAdmission(input,
|
|
4777
|
+
function verifiedSetupFromChatAdmission(input, admittedModels, candidateConfig, embeddingAdmission, chatAdmission) {
|
|
3809
4778
|
const { testResult } = chatAdmission;
|
|
3810
|
-
|
|
4779
|
+
if (input.imageInputModelIdsProvided) {
|
|
4780
|
+
assertImageInputModelsWereTested(input.imageInputModelIds, chatAdmission.configuredModelIds);
|
|
4781
|
+
}
|
|
3811
4782
|
const rawConfigWithOptionalBlocks = finalRawConfigForTestedSetup(input, testResult, admittedModels, chatAdmission.configuredModelIds);
|
|
3812
4783
|
const parsedConfig = parsedSetupConfigWithToolCallingProvenance(input, rawConfigWithOptionalBlocks, candidateConfig, testResult.toolCallingObservations ?? []);
|
|
3813
|
-
return verifiedSetupResult(parsedConfig.rawConfig, parsedConfig.config, testResult,
|
|
4784
|
+
return verifiedSetupResult(parsedConfig.rawConfig, parsedConfig.config, testResult, admittedModels, embeddingAdmission, chatAdmission);
|
|
3814
4785
|
}
|
|
3815
|
-
function verifiedSetupResult(rawConfig, config, testResult,
|
|
4786
|
+
function verifiedSetupResult(rawConfig, config, testResult, admittedModels, embeddingAdmission, chatAdmission) {
|
|
3816
4787
|
return {
|
|
3817
4788
|
rawConfig,
|
|
3818
4789
|
config,
|
|
3819
4790
|
testedModelIds: testResult.testedModelIds,
|
|
3820
|
-
skippedModelIds: skippedModelIdsForSetup(
|
|
3821
|
-
...(
|
|
3822
|
-
? { unsupportedModels:
|
|
4791
|
+
skippedModelIds: skippedModelIdsForSetup(admittedModels.modelIds, chatAdmission.configuredModelIds, embeddingAdmission.admitted),
|
|
4792
|
+
...(admittedModels.unsupportedModels !== undefined
|
|
4793
|
+
? { unsupportedModels: admittedModels.unsupportedModels }
|
|
3823
4794
|
: {}),
|
|
3824
4795
|
...(embeddingAdmission.retainedUnverified.length > 0
|
|
3825
4796
|
? { unverifiedEmbeddingModelIds: embeddingAdmission.retainedUnverified }
|
|
@@ -3833,6 +4804,9 @@ function verifiedSetupResult(rawConfig, config, testResult, candidateModels, emb
|
|
|
3833
4804
|
...(chatAdmission.droppedModelIds.length > 0
|
|
3834
4805
|
? { droppedChatModelIds: chatAdmission.droppedModelIds }
|
|
3835
4806
|
: {}),
|
|
4807
|
+
...(admittedModels.rerankerResolution !== undefined
|
|
4808
|
+
? { rerankerResolution: admittedModels.rerankerResolution }
|
|
4809
|
+
: {}),
|
|
3836
4810
|
};
|
|
3837
4811
|
}
|
|
3838
4812
|
// KEIKO-0497 (#2901): configuring the gateway points the product at an outbound endpoint and can
|
|
@@ -3879,7 +4853,7 @@ function recordGatewaySetupAudit(deps, request, config, outcome) {
|
|
|
3879
4853
|
// by both diagnostics below, so a minted UUID here would key the persisted audit evidence and
|
|
3880
4854
|
// its failure diagnostics to a different identity than the loopback/discovery diagnostics this
|
|
3881
4855
|
// same request emits under UNKNOWN_CORRELATION_ID — one request, two correlation identities,
|
|
3882
|
-
// unjoinable in a support
|
|
4856
|
+
// unjoinable in a support report. (The randomUUID below is an evidence-store KEY, not a
|
|
3883
4857
|
// correlation id, and is correct.)
|
|
3884
4858
|
correlationId: request.correlationId ?? UNKNOWN_CORRELATION_ID,
|
|
3885
4859
|
targetClass: gatewaySetupTargetClass(request.baseUrl),
|
|
@@ -4130,6 +5104,26 @@ function gatewayUnavailableResult() {
|
|
|
4130
5104
|
body: errorBody("GATEWAY_SETUP_UNAVAILABLE", "Gateway setup is unavailable."),
|
|
4131
5105
|
};
|
|
4132
5106
|
}
|
|
5107
|
+
// One resolution per committed setup request. A probe that failed leaves reranking off with nothing
|
|
5108
|
+
// else on screen, so besides the (warn-level) resolution line it leaves one body-free diagnostic:
|
|
5109
|
+
// a fixed code, never a model id, an endpoint or a credential — the engine is named in the setup
|
|
5110
|
+
// response the operator reads.
|
|
5111
|
+
function reportRerankerResolution(deps, resolution, correlationId) {
|
|
5112
|
+
if (resolution === undefined)
|
|
5113
|
+
return;
|
|
5114
|
+
logRerankerSetupResolution(resolution, correlationId);
|
|
5115
|
+
if (resolution.outcome !== "probe-failed")
|
|
5116
|
+
return;
|
|
5117
|
+
emitServerDiagnostic(deps.diagnostics, {
|
|
5118
|
+
correlationId: correlationId ?? UNKNOWN_CORRELATION_ID,
|
|
5119
|
+
timestamp: new Date().toISOString(),
|
|
5120
|
+
operation: "POST /api/gateway/setup",
|
|
5121
|
+
source: "gateway.setup.reranker-probe",
|
|
5122
|
+
errorClass: "GatewayRerankerProbeFailed",
|
|
5123
|
+
message: "Provider verification failed without exposing upstream response details.",
|
|
5124
|
+
code: "GATEWAY_RERANKER_PROBE_FAILED",
|
|
5125
|
+
});
|
|
5126
|
+
}
|
|
4133
5127
|
function finalizeVerifiedCandidate(verified, current, deps, gatewayConfig, request) {
|
|
4134
5128
|
persistGatewayConfig(withDiskGatewayEgress(verified.rawConfig, gatewayConfig.storagePath, deps, current === undefined, request.correlationId), gatewayConfig.storagePath, deps, request.correlationId);
|
|
4135
5129
|
gatewayConfig.set(verified.config, true, request.correlationId);
|
|
@@ -4137,6 +5131,7 @@ function finalizeVerifiedCandidate(verified, current, deps, gatewayConfig, reque
|
|
|
4137
5131
|
gatewayConfig.recordVerifiedCapability(modelId, { conversationReady: true }, new Date().toISOString(), gatewayConfig.generation());
|
|
4138
5132
|
}
|
|
4139
5133
|
logVoiceSetupResolution(verified.config, request.correlationId);
|
|
5134
|
+
reportRerankerResolution(deps, verified.rerankerResolution, request.correlationId);
|
|
4140
5135
|
recordGatewaySetupAudit(deps, request, verified.config, "candidate-accepted");
|
|
4141
5136
|
return setupSuccessResult(verified.config, verified.testedModelIds, verified.skippedModelIds, {
|
|
4142
5137
|
...(verified.unsupportedModels !== undefined
|
|
@@ -4157,8 +5152,11 @@ function finalizeVerifiedCandidate(verified, current, deps, gatewayConfig, reque
|
|
|
4157
5152
|
});
|
|
4158
5153
|
}
|
|
4159
5154
|
async function trySetupCandidate(baseUrl, request, deps, gatewayConfig, seams, current) {
|
|
5155
|
+
request.signal?.throwIfAborted();
|
|
4160
5156
|
const verified = await verifySetupCandidate({
|
|
5157
|
+
...(request.signal === undefined ? {} : { signal: request.signal }),
|
|
4161
5158
|
embeddingProbe: seams.embeddingProbe,
|
|
5159
|
+
rerankerProbe: seams.rerankerProbe,
|
|
4162
5160
|
preserveExisting: request.preserveExisting,
|
|
4163
5161
|
baseUrl,
|
|
4164
5162
|
apiKey: request.apiKey,
|
|
@@ -4167,6 +5165,7 @@ async function trySetupCandidate(baseUrl, request, deps, gatewayConfig, seams, c
|
|
|
4167
5165
|
apiVersion: request.apiVersion,
|
|
4168
5166
|
timeoutMs: request.timeoutMs,
|
|
4169
5167
|
deploymentNames: request.deploymentNames,
|
|
5168
|
+
explicitDeploymentNames: request.explicitDeploymentNames,
|
|
4170
5169
|
imageInputModelIds: request.imageInputModelIds,
|
|
4171
5170
|
imageInputModelIdsProvided: request.imageInputModelIdsProvided,
|
|
4172
5171
|
storedEmbeddingModelIds: request.storedEmbeddingModelIds,
|
|
@@ -4188,6 +5187,7 @@ async function trySetupCandidate(baseUrl, request, deps, gatewayConfig, seams, c
|
|
|
4188
5187
|
diagnostics: deps.diagnostics,
|
|
4189
5188
|
correlationId: request.correlationId,
|
|
4190
5189
|
});
|
|
5190
|
+
request.signal?.throwIfAborted();
|
|
4191
5191
|
const workflowEligibilityError = validateWorkflowEligibleModelIds(request, verified.config);
|
|
4192
5192
|
if (workflowEligibilityError !== undefined)
|
|
4193
5193
|
return workflowEligibilityError;
|
|
@@ -4411,7 +5411,10 @@ function saveExistingConfigUpdate(request, current, deps, gatewayConfig) {
|
|
|
4411
5411
|
const persistedRawConfig = withPersistedGatewayEgress(rawConfig, gatewayConfig.storagePath, deps);
|
|
4412
5412
|
const config = parseGatewayConfig(withInheritedEgress(persistedRawConfig, currentGatewayEgressConfig(deps)), deps.env, linkLocalGatewayOverrideOptions(deps.env));
|
|
4413
5413
|
persistGatewayConfig(persistedRawConfig, gatewayConfig.storagePath, deps, request.correlationId);
|
|
4414
|
-
gatewayConfig.
|
|
5414
|
+
if (gatewayConfig.replaceConfigured === undefined)
|
|
5415
|
+
gatewayConfig.set(config, true, request.correlationId);
|
|
5416
|
+
else
|
|
5417
|
+
gatewayConfig.replaceConfigured(config, request.correlationId);
|
|
4415
5418
|
logVoiceSetupResolution(config, request.correlationId);
|
|
4416
5419
|
recordGatewaySetupAudit(deps, request, config, "existing-config-updated");
|
|
4417
5420
|
return setupSuccessResult(config, config.providers.map((provider) => provider.modelId), []);
|
|
@@ -4421,6 +5424,7 @@ async function verifyAndSaveExistingConfigUpdate(request, current, deps, gateway
|
|
|
4421
5424
|
if (figmaFailure !== undefined) {
|
|
4422
5425
|
return figmaFailure;
|
|
4423
5426
|
}
|
|
5427
|
+
request.signal?.throwIfAborted();
|
|
4424
5428
|
return saveExistingConfigUpdate(request, current, deps, gatewayConfig);
|
|
4425
5429
|
}
|
|
4426
5430
|
function shouldRequireDeploymentNames(request, baseUrlCandidates, env) {
|
|
@@ -4438,9 +5442,15 @@ function shouldRequireDeploymentNames(request, baseUrlCandidates, env) {
|
|
|
4438
5442
|
}
|
|
4439
5443
|
async function verifyAndSaveGatewaySetup(request, current, deps, gatewayConfig) {
|
|
4440
5444
|
const seams = {
|
|
4441
|
-
tester: gatewaySetupTester(deps, request.correlationId),
|
|
4442
|
-
embeddingProbe: gatewayEmbeddingProbe(deps, request.correlationId),
|
|
4443
|
-
|
|
5445
|
+
tester: gatewaySetupTester(deps, request.correlationId, request.signal),
|
|
5446
|
+
embeddingProbe: gatewayEmbeddingProbe(deps, request.correlationId, request.signal),
|
|
5447
|
+
rerankerProbe: gatewayRerankerProbe(deps, request.correlationId, request.signal),
|
|
5448
|
+
discovery: deps.gatewayModelDiscovery ??
|
|
5449
|
+
((...args) => defaultGatewayModelDiscovery(...args, {
|
|
5450
|
+
callerSignal: request.signal,
|
|
5451
|
+
metadataOnly: request.deploymentNames.length > 0,
|
|
5452
|
+
allowEmpty: false,
|
|
5453
|
+
})),
|
|
4444
5454
|
};
|
|
4445
5455
|
const figmaFailure = await verifySubmittedFigmaCredential(request, deps);
|
|
4446
5456
|
if (figmaFailure !== undefined) {
|
|
@@ -4475,6 +5485,8 @@ async function attemptSetupCandidates(baseUrlCandidates, request, deps, gatewayC
|
|
|
4475
5485
|
return { failures, result };
|
|
4476
5486
|
}
|
|
4477
5487
|
catch (error) {
|
|
5488
|
+
if (request.signal?.aborted === true)
|
|
5489
|
+
return { failures: [...failures, { baseUrl, error }] };
|
|
4478
5490
|
reportSetupVerificationFailure(deps, originalSetupVerificationError(error), request.correlationId, "gateway.setup.provider-verify");
|
|
4479
5491
|
failures.push({
|
|
4480
5492
|
baseUrl,
|
|
@@ -4483,11 +5495,15 @@ async function attemptSetupCandidates(baseUrlCandidates, request, deps, gatewayC
|
|
|
4483
5495
|
? { resumeTemporaryAdmission: error.resume }
|
|
4484
5496
|
: {}),
|
|
4485
5497
|
});
|
|
5498
|
+
if (discoveryProgrammingFailure(error))
|
|
5499
|
+
return { failures };
|
|
4486
5500
|
}
|
|
4487
5501
|
}
|
|
4488
5502
|
return { failures };
|
|
4489
5503
|
}
|
|
4490
5504
|
function temporaryAdmissionOrFailure(failures, request, deps, gatewayConfig, current) {
|
|
5505
|
+
if (request.signal?.aborted === true)
|
|
5506
|
+
return setupFailureResult(candidateFailureMessages(failures), request.correlationId);
|
|
4491
5507
|
const temporary = failures.find((failure) => temporaryGatewaySetupFailure(failure.error) && failure.resumeTemporaryAdmission !== undefined);
|
|
4492
5508
|
const resume = temporary?.resumeTemporaryAdmission;
|
|
4493
5509
|
if (resume !== undefined &&
|
|
@@ -4514,7 +5530,7 @@ export async function handleGatewaySetup(ctx, deps) {
|
|
|
4514
5530
|
return gatewayUnavailableResult();
|
|
4515
5531
|
}
|
|
4516
5532
|
const { gatewayConfig } = deps;
|
|
4517
|
-
const current = currentGatewayConfig(deps);
|
|
5533
|
+
const current = gatewayConfig.configured?.() ?? currentGatewayConfig(deps);
|
|
4518
5534
|
const stored = durableStoredGatewayConfig(current, gatewayConfig.storagePath, deps, ctx.correlationId);
|
|
4519
5535
|
const bodyResult = await readJsonSetupBody(ctx);
|
|
4520
5536
|
if ("status" in bodyResult) {
|
|
@@ -4524,10 +5540,17 @@ export async function handleGatewaySetup(ctx, deps) {
|
|
|
4524
5540
|
if ("status" in request) {
|
|
4525
5541
|
return request;
|
|
4526
5542
|
}
|
|
4527
|
-
|
|
4528
|
-
|
|
5543
|
+
const cancellation = createRequestCancellation(ctx, "Gateway setup client disconnected.");
|
|
5544
|
+
const cancellableRequest = { ...request, signal: cancellation.signal };
|
|
5545
|
+
try {
|
|
5546
|
+
if (!request.verifyGateway && current !== undefined) {
|
|
5547
|
+
return await verifyAndSaveExistingConfigUpdate(cancellableRequest, current, deps, gatewayConfig);
|
|
5548
|
+
}
|
|
5549
|
+
return await verifyAndSaveGatewaySetup(cancellableRequest, current, deps, gatewayConfig);
|
|
5550
|
+
}
|
|
5551
|
+
finally {
|
|
5552
|
+
cancellation.dispose();
|
|
4529
5553
|
}
|
|
4530
|
-
return verifyAndSaveGatewaySetup(request, current, deps, gatewayConfig);
|
|
4531
5554
|
}
|
|
4532
5555
|
const VERIFIED_CAPABILITY_FIELDS = new Set([
|
|
4533
5556
|
"streaming",
|
|
@@ -4605,7 +5628,10 @@ function replaceModelCapability(config, modelId, fields, checkedAt = new Date().
|
|
|
4605
5628
|
const replacement = {
|
|
4606
5629
|
...current,
|
|
4607
5630
|
...fields,
|
|
4608
|
-
// The long-context probe proves a lower bound, so it may raise a stored window, never shrink
|
|
5631
|
+
// The long-context probe proves a lower bound, so it may raise a stored window, never shrink
|
|
5632
|
+
// it. It does not end an assumed or provider-reported window: only the provider's own
|
|
5633
|
+
// statement does (gateway-context-window.ts), so conversations keep planning the assumption and
|
|
5634
|
+
// the window probe keeps running, while the Coding Workbench reads the proven floor.
|
|
4609
5635
|
...(fields.contextWindow === undefined
|
|
4610
5636
|
? {}
|
|
4611
5637
|
: { contextWindow: Math.max(current.contextWindow, fields.contextWindow) }),
|
|
@@ -4683,7 +5709,8 @@ function withPersistedGatewayEgress(raw, storagePath, deps) {
|
|
|
4683
5709
|
return withEgress;
|
|
4684
5710
|
}
|
|
4685
5711
|
function rawConfigForVerifiedCapabilityUpdate(updated, storagePath, deps) {
|
|
4686
|
-
const
|
|
5712
|
+
const configured = deps.gatewayConfig?.forPersistence?.(updated) ?? updated;
|
|
5713
|
+
const raw = rawConfigFromCurrent(configured, configured.figma?.accessToken);
|
|
4687
5714
|
return withPersistedGatewayEgress(raw, storagePath, deps);
|
|
4688
5715
|
}
|
|
4689
5716
|
function persistVerifiedCapabilityUpdate(gatewayConfig, deps, modelId, generation, updated, consumeObservation = true, correlationId = UNKNOWN_CORRELATION_ID) {
|
|
@@ -4706,12 +5733,9 @@ function applyVerifiedCapabilityUpdate(gatewayConfig, modelId, generation, updat
|
|
|
4706
5733
|
// Persistence is synchronous, so no configuration mutation can interleave between the
|
|
4707
5734
|
// generation check in the handler and this consumption. Keep the live observation available
|
|
4708
5735
|
// when durable storage fails, allowing the operator to retry the exact verified update.
|
|
4709
|
-
//
|
|
4710
|
-
//
|
|
4711
|
-
//
|
|
4712
|
-
// probe-only evidence), so preserve that one readiness fact across the wipe. Never replay
|
|
4713
|
-
// feature observations under a new generation: an unrelated apply must not re-stamp a model's
|
|
4714
|
-
// old tool proof as if the model had just been probed.
|
|
5736
|
+
// Applying feature evidence consumes it. Preserve conversation readiness at its original
|
|
5737
|
+
// checkedAt on unchanged active connections; never re-stamp an unrelated model's old tool proof.
|
|
5738
|
+
// The source-retaining catalog facet also keeps inactive credentials out of the active inventory.
|
|
4715
5739
|
const observations = updated.providers
|
|
4716
5740
|
.map((provider) => ({
|
|
4717
5741
|
modelId: provider.modelId,
|
|
@@ -4728,12 +5752,20 @@ function applyVerifiedCapabilityUpdate(gatewayConfig, modelId, generation, updat
|
|
|
4728
5752
|
if (consumeObservation && !gatewayConfig.clearVerifiedCapability(modelId, generation)) {
|
|
4729
5753
|
return staleCapabilityObservationResult();
|
|
4730
5754
|
}
|
|
4731
|
-
gatewayConfig.
|
|
5755
|
+
if (gatewayConfig.replaceCatalog === undefined)
|
|
5756
|
+
gatewayConfig.set(updated, true, correlationId);
|
|
5757
|
+
else if (!gatewayConfig.replaceCatalog(updated, generation, correlationId))
|
|
5758
|
+
return staleCapabilityObservationResult();
|
|
5759
|
+
clearAppliedCapabilityObservations(gatewayConfig, updated);
|
|
4732
5760
|
for (const entry of observations) {
|
|
4733
|
-
gatewayConfig.recordVerifiedCapability(entry.modelId, entry.fields, entry.observation?.checkedAt ?? new Date().toISOString());
|
|
5761
|
+
gatewayConfig.recordVerifiedCapability(entry.modelId, entry.fields, entry.observation?.checkedAt ?? new Date().toISOString(), undefined, entry.observation?.conversationCheckedAt);
|
|
4734
5762
|
}
|
|
4735
5763
|
return { status: 200, body: { ok: true, model: findConfiguredCapability(updated, modelId) } };
|
|
4736
5764
|
}
|
|
5765
|
+
function clearAppliedCapabilityObservations(holder, updated) {
|
|
5766
|
+
for (const provider of updated.providers)
|
|
5767
|
+
holder.clearVerifiedCapability(provider.modelId);
|
|
5768
|
+
}
|
|
4737
5769
|
function preservedVerifiedCapabilityFields(fields) {
|
|
4738
5770
|
return fields.conversationReady === true ? { conversationReady: true } : {};
|
|
4739
5771
|
}
|
|
@@ -4780,13 +5812,145 @@ export function reconcileGatewayContextWindowReadiness(deps, report, observedGen
|
|
|
4780
5812
|
if (reconciliation === undefined)
|
|
4781
5813
|
return;
|
|
4782
5814
|
const stored = findConfiguredCapability(reconciliation.current, report.modelId);
|
|
4783
|
-
if (stored?.kind !== "chat"
|
|
5815
|
+
if (stored?.kind !== "chat")
|
|
5816
|
+
return;
|
|
5817
|
+
if (stored.contextWindowAssumed !== true && stored.contextWindow >= verified)
|
|
4784
5818
|
return;
|
|
4785
5819
|
const updated = replaceModelCapability(reconciliation.current, report.modelId, { contextWindow: verified }, report.checkedAt);
|
|
4786
5820
|
if (updated === undefined)
|
|
4787
5821
|
return;
|
|
4788
5822
|
persistVerifiedCapabilityUpdate(reconciliation.gatewayConfig, deps, report.modelId, reconciliation.gatewayConfig.generation(), updated, false, correlationId);
|
|
4789
5823
|
}
|
|
5824
|
+
// A window the operator declared is the operator's cap: the provider may lower it (the deployment
|
|
5825
|
+
// cannot take more than it says) but never raise it. An assumed window and one a provider already
|
|
5826
|
+
// reported are learned values and follow the provider in either direction.
|
|
5827
|
+
function providerStatementLeavesWindow(stored, tokens) {
|
|
5828
|
+
if (stored.contextWindowAssumed === true)
|
|
5829
|
+
return false;
|
|
5830
|
+
if (stored.contextWindow === tokens)
|
|
5831
|
+
return true;
|
|
5832
|
+
return stored.contextWindowReported !== true && tokens > stored.contextWindow;
|
|
5833
|
+
}
|
|
5834
|
+
/**
|
|
5835
|
+
* Adopts the total context window a provider stated itself — in its overflow answer or in answer to
|
|
5836
|
+
* the startup context-window probe. Unlike the long-context probe's lower bound this is the
|
|
5837
|
+
* deployment's exact limit, so it ends an assumed window and replaces a learned one in either
|
|
5838
|
+
* direction; a declared window is only ever lowered. It is applied as a refinement: the
|
|
5839
|
+
* configuration generation stays, so a turn already admitted (the one whose overflow reported the
|
|
5840
|
+
* window) can re-plan and retry, while every later lookup plans the model with the real window. The
|
|
5841
|
+
* refinement is applied before the durable write, so an unwritable configuration file never keeps
|
|
5842
|
+
* the window unlearned: the write failure is reported as a diagnostic and the window applies in
|
|
5843
|
+
* memory until the next restart.
|
|
5844
|
+
*/
|
|
5845
|
+
export function persistAdoptedContextWindow(deps, modelId, contextWindowTokens, correlationId) {
|
|
5846
|
+
const reconciliation = currentToolCallingReconciliation(deps, undefined);
|
|
5847
|
+
if (reconciliation === undefined)
|
|
5848
|
+
return { state: "unconfigured" };
|
|
5849
|
+
const stored = findConfiguredCapability(reconciliation.current, modelId);
|
|
5850
|
+
if (stored?.kind !== "chat")
|
|
5851
|
+
return { state: "not-chat" };
|
|
5852
|
+
if (providerStatementLeavesWindow(stored, contextWindowTokens))
|
|
5853
|
+
return { state: "unchanged" };
|
|
5854
|
+
const updated = replaceCapabilityContextWindow(reconciliation.current, stored, contextWindowTokens);
|
|
5855
|
+
applyContextWindowRefinement(reconciliation.gatewayConfig, deps, modelId, updated, correlationId);
|
|
5856
|
+
return {
|
|
5857
|
+
state: "adopted",
|
|
5858
|
+
previousContextWindow: stored.contextWindow,
|
|
5859
|
+
wasAssumed: stored.contextWindowAssumed === true,
|
|
5860
|
+
};
|
|
5861
|
+
}
|
|
5862
|
+
/** Refines observed citation metadata through the existing sealed capability persistence path. */
|
|
5863
|
+
export function persistObservedCitationBehaviour(deps, modelId, citationBehaviour, observedGeneration, deploymentIdentitySha256, correlationId = UNKNOWN_CORRELATION_ID) {
|
|
5864
|
+
const reconciliation = currentToolCallingReconciliation(deps, observedGeneration);
|
|
5865
|
+
if (reconciliation === undefined)
|
|
5866
|
+
return false;
|
|
5867
|
+
const { current, gatewayConfig } = reconciliation;
|
|
5868
|
+
const refine = gatewayConfig.refine;
|
|
5869
|
+
if (refine === undefined)
|
|
5870
|
+
return false;
|
|
5871
|
+
const provider = current.providers.find((candidate) => candidate.modelId === modelId);
|
|
5872
|
+
const stored = findConfiguredCapability(current, modelId);
|
|
5873
|
+
if (provider === undefined ||
|
|
5874
|
+
stored?.kind !== "chat" ||
|
|
5875
|
+
toolCallingConfigurationFingerprint(provider) !== deploymentIdentitySha256)
|
|
5876
|
+
return false;
|
|
5877
|
+
if (stored.citationBehaviour === citationBehaviour)
|
|
5878
|
+
return true;
|
|
5879
|
+
const updated = withObservedCitationBehaviour(current, stored, citationBehaviour);
|
|
5880
|
+
try {
|
|
5881
|
+
const raw = rawConfigForVerifiedCapabilityUpdate(updated, gatewayConfig.storagePath, deps);
|
|
5882
|
+
persistGatewayConfig(raw, gatewayConfig.storagePath, deps, correlationId);
|
|
5883
|
+
refine.call(gatewayConfig, updated, correlationId);
|
|
5884
|
+
return true;
|
|
5885
|
+
}
|
|
5886
|
+
catch (error) {
|
|
5887
|
+
refine.call(gatewayConfig, withObservedCitationBehaviour(current, stored, undefined), correlationId);
|
|
5888
|
+
emitServerDiagnostic(deps.diagnostics, serverDiagnosticFromError({
|
|
5889
|
+
correlationId,
|
|
5890
|
+
operation: "gateway.capability",
|
|
5891
|
+
source: "gateway-setup.citation-behaviour",
|
|
5892
|
+
error,
|
|
5893
|
+
summary: "Audit or evidence persistence failed.",
|
|
5894
|
+
redact: () => "Observed citation metadata could not be persisted.",
|
|
5895
|
+
}));
|
|
5896
|
+
return false;
|
|
5897
|
+
}
|
|
5898
|
+
}
|
|
5899
|
+
function withObservedCitationBehaviour(current, stored, citationBehaviour) {
|
|
5900
|
+
const { citationBehaviour: _previous, ...withoutObservation } = stored;
|
|
5901
|
+
const replacement = {
|
|
5902
|
+
...withoutObservation,
|
|
5903
|
+
...(citationBehaviour === undefined ? {} : { citationBehaviour }),
|
|
5904
|
+
};
|
|
5905
|
+
const capabilities = [...(current.capabilities ?? [])];
|
|
5906
|
+
const index = capabilities.findIndex((capability) => capability.id === stored.id);
|
|
5907
|
+
if (index === -1)
|
|
5908
|
+
capabilities.push(replacement);
|
|
5909
|
+
else
|
|
5910
|
+
capabilities[index] = replacement;
|
|
5911
|
+
return { ...current, capabilities };
|
|
5912
|
+
}
|
|
5913
|
+
function applyContextWindowRefinement(gatewayConfig, deps, modelId, updated, correlationId) {
|
|
5914
|
+
try {
|
|
5915
|
+
if (gatewayConfig.refine === undefined) {
|
|
5916
|
+
// Applies in memory even when the durable write fails, then rethrows the write failure.
|
|
5917
|
+
persistVerifiedCapabilityUpdate(gatewayConfig, deps, modelId, gatewayConfig.generation(), updated, false, correlationId);
|
|
5918
|
+
return;
|
|
5919
|
+
}
|
|
5920
|
+
gatewayConfig.refine(updated, correlationId);
|
|
5921
|
+
const raw = rawConfigForVerifiedCapabilityUpdate(updated, gatewayConfig.storagePath, deps);
|
|
5922
|
+
persistGatewayConfig(raw, gatewayConfig.storagePath, deps, correlationId);
|
|
5923
|
+
}
|
|
5924
|
+
catch (error) {
|
|
5925
|
+
emitServerDiagnostic(deps.diagnostics, serverDiagnosticFromError({
|
|
5926
|
+
correlationId,
|
|
5927
|
+
operation: "gateway.context-window",
|
|
5928
|
+
source: "gateway-setup.adopted-context-window",
|
|
5929
|
+
error,
|
|
5930
|
+
summary: "The verified gateway context window could not be persisted.",
|
|
5931
|
+
redact: (message) => String(deps.redactor(message)),
|
|
5932
|
+
}));
|
|
5933
|
+
}
|
|
5934
|
+
}
|
|
5935
|
+
// A declared window the provider lowered stays declared: the lowered value is the operator's cap
|
|
5936
|
+
// from now on, so a later statement can lower it further but never raise it past the ceiling the
|
|
5937
|
+
// operator set — not in this process and not after a restart (PR #3678 review, P1). Only an assumed
|
|
5938
|
+
// or already learned window becomes a reported one that follows the provider either way.
|
|
5939
|
+
function replaceCapabilityContextWindow(config, stored, contextWindow) {
|
|
5940
|
+
const declared = stored.contextWindowAssumed !== true && stored.contextWindowReported !== true;
|
|
5941
|
+
const replacement = {
|
|
5942
|
+
...withoutAssumedContextWindow(stored),
|
|
5943
|
+
contextWindow,
|
|
5944
|
+
...(declared ? {} : { contextWindowReported: true }),
|
|
5945
|
+
};
|
|
5946
|
+
const capabilities = [...(config.capabilities ?? [])];
|
|
5947
|
+
const index = capabilities.findIndex((capability) => capability.id === stored.id);
|
|
5948
|
+
if (index === -1)
|
|
5949
|
+
capabilities.push(replacement);
|
|
5950
|
+
else
|
|
5951
|
+
capabilities[index] = replacement;
|
|
5952
|
+
return { ...config, capabilities };
|
|
5953
|
+
}
|
|
4790
5954
|
function currentToolCallingReconciliation(deps, observedGeneration) {
|
|
4791
5955
|
const gatewayConfig = deps.gatewayConfig;
|
|
4792
5956
|
const current = gatewayConfig?.current();
|
|
@@ -4870,6 +6034,7 @@ function modelTokenCounterMetadata(options, modelId) {
|
|
|
4870
6034
|
function logDiscoveryMerge(merged, correlationId) {
|
|
4871
6035
|
logAliasIntersection({
|
|
4872
6036
|
alias: merged.id,
|
|
6037
|
+
role: discoveryRoleOf(merged),
|
|
4873
6038
|
contextWindow: merged.metadata.contextWindow ?? 0,
|
|
4874
6039
|
undeclaredLimit: merged.undeclaredContext === true,
|
|
4875
6040
|
deploymentCount: merged.deploymentCount ?? 1,
|
|
@@ -4879,6 +6044,11 @@ function logDiscoveryMerge(merged, correlationId) {
|
|
|
4879
6044
|
reasoningOptionCount: merged.metadata.reasoningEfforts?.length ?? 0,
|
|
4880
6045
|
}, correlationId);
|
|
4881
6046
|
}
|
|
6047
|
+
// The rerank engines travel as `unsupported` entries with the reason "rerank" until setup admits one,
|
|
6048
|
+
// but their role is "rerank": that is what an operator reading the log needs to see.
|
|
6049
|
+
function discoveryRoleOf(merged) {
|
|
6050
|
+
return merged.kind === "unsupported" && merged.reason === "rerank" ? "rerank" : merged.kind;
|
|
6051
|
+
}
|
|
4882
6052
|
function discoveryMergeState(merged) {
|
|
4883
6053
|
if (merged.deploymentConflict === true)
|
|
4884
6054
|
return "conflicting";
|