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