@oscharko-dev/keiko 1.1.13 → 1.2.0
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 +21 -5
- package/dist/ui/csp-hashes.json +7 -7
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +12 -12
- package/dist/ui/static/__next._full.txt +23 -22
- package/dist/ui/static/__next._tree.txt +3 -3
- package/dist/ui/static/_next/static/chunks/0--s8pmsbkf62.js +1 -0
- package/dist/ui/static/_next/static/chunks/00_o0v2hokzqm.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/07skh7tlpfo1v.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/09i_8713x46yr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{199p3upt-xa37.js → 09zc5hgtb7s-z.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0_yx8_bs1t-27.js +1 -0
- package/dist/ui/static/_next/static/chunks/0a6ri2ug5xf10.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bbrrvuzilpy5.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bg7uh6tq8-dx.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bpexy600ffpg.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bz731buimrpv.js +1 -0
- package/dist/ui/static/_next/static/chunks/0cwy6mtvshbuo.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3i0iog52c1ajg.js → 0fpbvpzg-omn0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0fz9qig_5p73f.js +1 -0
- package/dist/ui/static/_next/static/chunks/0gf88p0jy1g5w.js +1 -0
- package/dist/ui/static/_next/static/chunks/0hvxxuef1gw9p.js +1 -0
- package/dist/ui/static/_next/static/chunks/0iu3dyqe7m7_7.js +1 -0
- package/dist/ui/static/_next/static/chunks/0ktvc8fs3spkb.js +1 -0
- package/dist/ui/static/_next/static/chunks/0kvy_ru-kodgv.js +1 -0
- package/dist/ui/static/_next/static/chunks/{25f22x86d_a1n.js → 0l72usw6suk0h.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0mcg_spbohpl3.css +1 -0
- package/dist/ui/static/_next/static/chunks/{02epwnm5oro9c.css → 0mjsj7bp-ukgh.css} +16 -20
- package/dist/ui/static/_next/static/chunks/0parm4c86umwk.js +1 -0
- package/dist/ui/static/_next/static/chunks/0q_08tk2d3m2n.js +1 -0
- package/dist/ui/static/_next/static/chunks/0r2lwkgws6jm8.js +1 -0
- package/dist/ui/static/_next/static/chunks/0t73kckx3olud.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/0weojtwxo6qw7.js +1 -0
- package/dist/ui/static/_next/static/chunks/0x-r45yl06rdn.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/{0o_lmzxpjfeky.js → 0yzmg9aoglud6.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0zuaq_9l5pma_.js +1 -0
- package/dist/ui/static/_next/static/chunks/10kb8j7vggfwk.js +1 -0
- package/dist/ui/static/_next/static/chunks/14qdwomthzucj.js +1 -0
- package/dist/ui/static/_next/static/chunks/196257vfyrtgu.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3kmozkq6tgqnz.js → 196x_tfexoucg.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1a6ri-sriyu-m.js +1 -0
- package/dist/ui/static/_next/static/chunks/1a7ko-_7t4wjo.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/1czgn62g6km38.js +3 -0
- package/dist/ui/static/_next/static/chunks/1f05h21irrvbs.js +1 -0
- package/dist/ui/static/_next/static/chunks/1juiifi_xnx68.js +1 -0
- package/dist/ui/static/_next/static/chunks/1m-9yzfpcm7wc.js +1 -0
- 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/1wg1s3jm779ro.js +3 -0
- package/dist/ui/static/_next/static/chunks/{0l7cc8q83migz.css → 1wj7exxi550gi.css} +1 -1
- package/dist/ui/static/_next/static/chunks/1zczte6xkwvcl.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zudszthinjcb.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1kacubgk0y2ki.js → 21-6b7rkmtvg8.js} +1 -1
- package/dist/ui/static/_next/static/chunks/224bbe_3ksnlw.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3chx0gpjqrhod.js → 24u-5fslcj3n9.js} +3 -3
- package/dist/ui/static/_next/static/chunks/25x9hf4wdlde7.js +1 -0
- package/dist/ui/static/_next/static/chunks/263_uck8el32f.js +1 -0
- package/dist/ui/static/_next/static/chunks/26gmn1z4oegqh.js +1 -0
- package/dist/ui/static/_next/static/chunks/28ylcw-leje_k.js +1 -0
- package/dist/ui/static/_next/static/chunks/2937s9os9u2tn.js +1 -0
- package/dist/ui/static/_next/static/chunks/29rlw6dih8owf.js +1 -0
- package/dist/ui/static/_next/static/chunks/2b_t95bbpmtej.js +1 -0
- package/dist/ui/static/_next/static/chunks/2hq0zlnvfqol9.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3inx1ugcc-jd-.css → 2hu5w89yy7_s-.css} +1 -0
- package/dist/ui/static/_next/static/chunks/2kylv1kq1_4p1.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0m1163red7mw7.js → 2nlmtsm3kjmbh.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2o584howfzzak.js +3 -0
- 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/2p66e_a0j23r8.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ribv7pn1hr-l.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ta3xj9td_qot.js +1 -0
- package/dist/ui/static/_next/static/chunks/2tb2nt2wvu643.js +1 -0
- package/dist/ui/static/_next/static/chunks/2wuj7qxm6mleh.js +1 -0
- package/dist/ui/static/_next/static/chunks/2y98z-sun8_ew.js +1 -0
- package/dist/ui/static/_next/static/chunks/2yot6vshhc19p.css +1 -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/30j8jo5v60ga1.js +2 -0
- package/dist/ui/static/_next/static/chunks/30q9b_aw8driv.js +1 -0
- package/dist/ui/static/_next/static/chunks/{18qu5m_in_h3x.js → 3603jy78awb1p.js} +1 -1
- package/dist/ui/static/_next/static/chunks/36c8jty3kllje.js +1 -0
- package/dist/ui/static/_next/static/chunks/387k5c-bf1b2e.js +1 -0
- package/dist/ui/static/_next/static/chunks/388eokaf_2t9k.js +1 -0
- package/dist/ui/static/_next/static/chunks/3946_dfcd9xr-.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_alxp77ewgk_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_ycy0h8pq58a.js +1 -0
- package/dist/ui/static/_next/static/chunks/3eduf6vevclfm.js +1 -0
- package/dist/ui/static/_next/static/chunks/3eg8pcox5copv.js +1 -0
- package/dist/ui/static/_next/static/chunks/3gyetohi_flhb.js +1 -0
- package/dist/ui/static/_next/static/chunks/{39w0xj7fyy7sp.js → 3h-rh_lx0l8_3.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1o2cihsnxhmh6.js → 3hclt6m3ok4n9.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3ho1f5n8lir4r.js +1 -0
- package/dist/ui/static/_next/static/chunks/3kgc_j74tblcn.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ksbq-nwkgwob.js +1 -0
- package/dist/ui/static/_next/static/chunks/3mxpjroefk8ou.js +1 -0
- package/dist/ui/static/_next/static/chunks/3or_0c84ozskx.js +1 -0
- package/dist/ui/static/_next/static/chunks/3q5jidle0lb3-.js +1 -0
- package/dist/ui/static/_next/static/chunks/3qjkuhjy_-_br.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/3ua7si017r4dg.js +1 -0
- package/dist/ui/static/_next/static/chunks/3v2iluxqnsug9.css +15 -0
- package/dist/ui/static/_next/static/chunks/{1ydfda18zlx4w.js → 3vjm30f1if00s.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3z5edm1fpkcuq.js +1 -0
- package/dist/ui/static/_next/static/chunks/3z5f2s7yd35cu.js +1 -0
- package/dist/ui/static/_next/static/chunks/40co1uetczqcs.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/{turbopack-2fb3mn6go2p-t.js → turbopack-2rwr7ign9ynaa.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +13 -13
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +9 -9
- 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 +13 -13
- package/dist/ui/static/atlassian-connectors/__next._full.txt +15 -15
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +2 -2
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +11 -11
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +15 -15
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +23 -22
- package/dist/ui/static/launch/__next._full.txt +16 -16
- package/dist/ui/static/launch/__next._tree.txt +3 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +12 -12
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +16 -16
- package/dist/ui/static/local-knowledge/__next._full.txt +16 -16
- package/dist/ui/static/local-knowledge/__next._tree.txt +3 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +12 -12
- 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 +11 -11
- 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 +16 -16
- 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 +13 -2
- 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 +150 -52
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +30 -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 +3539 -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 +38 -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 +45 -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-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/investigate.js +1 -1
- 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 +1 -1
- 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 +19 -8
- 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/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 +302 -102
- 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 +476 -95
- 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 +29497 -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 +32895 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +8326 -32178
- 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 +3617 -29833
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +139 -0
- 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 +40 -15
- 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-repository-search.d.ts +24 -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 +16 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +12 -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 +171 -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/diagnostics.d.ts +116 -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 +487 -9
- 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 +4 -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 +35 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +50 -8
- 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/grounded-assessment.d.ts +27 -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 +85 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +4 -4
- 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 +359 -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/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 +118 -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 +63 -0
- 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 +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +17 -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.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.js +7 -4
- 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 +61 -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/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 +100 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +24 -0
- 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 +104 -34
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +2 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +33 -5
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +6 -0
- 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 +115 -19
- 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 +17 -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 +48 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +27 -2
- 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 +300 -65
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +10 -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.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +14 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +1 -0
- 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 +25 -4
- 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 +8 -2
- 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 +15 -5
- 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/redaction.d.ts +3 -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 +49 -14
- 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.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +1 -0
- 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 +159 -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 +54 -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 +523 -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/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/codingToolFacadePorts.d.ts +5 -0
- 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/opencodeLaunchProfile.d.ts +1 -1
- 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 +6 -4
- 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 +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionWorkspaceHeadReader.js +23 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +1 -1
- 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 +31 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +23 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +51 -4
- 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 +102 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +1 -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 +5 -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/agentRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +50 -57
- 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/verificationExecution.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +29 -8
- 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 +4 -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 +11 -1
- 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 +103 -37
- 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-setup.d.ts +24 -3
- 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 +920 -150
- 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-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 +5 -3
- 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 +4 -1
- 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/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.d.ts +2 -0
- 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 +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts +39 -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 +196 -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 +35 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts +9 -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 +74 -21
- 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 +1 -1
- 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 +2 -1
- 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-evidence-selection.d.ts +11 -2
- 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 +78 -52
- 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 +33 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +37 -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 +444 -101
- 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 +24 -3
- 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 +2338 -629
- 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-prompt-context.d.ts +19 -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.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.js +11 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +17 -2
- 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 +349 -162
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +14 -3
- 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 +241 -87
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +26 -4
- 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 +384 -105
- 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 +16 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +36 -2
- 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 +4 -0
- 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-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.d.ts +3 -3
- 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 +2 -2
- 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 +231 -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/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/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 +19 -3
- 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/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.js +2 -2
- 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 +152 -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/tool-catalog/catalogToolDispatch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.js +8 -1
- 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-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-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/opencode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +3 -1
- 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 +36 -5
- 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/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +3 -1
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- 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 +327 -45
- 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/planner/anchors.d.ts +4 -0
- 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 +83 -32
- 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 +2 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +1 -1
- 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 +40 -3
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +14 -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 +209 -68
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +2 -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 +8 -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 +7 -60
- 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 +159 -38
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +2 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +2 -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 +2 -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 +14 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +235 -10
- 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.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +3 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +31 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +459 -137
- 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/repoSearchLineSelection.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +45 -18
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +5 -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 +89 -30
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +21 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +29 -5
- 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/repoSearchScan.d.ts +14 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +178 -45
- 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 +466 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +32 -6
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +1 -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 +60 -1
- 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/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 +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +8 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/package.json +32 -31
- package/release-impact.catalog.json +111 -0
- package/scripts/lib/local-state-audit.mjs +26 -11
- package/vendor/oscharko-dev-keiko-activity-log-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.1.13.tgz → oscharko-dev-keiko-connectors-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.1.13.tgz → oscharko-dev-keiko-evaluations-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.1.13.tgz → oscharko-dev-keiko-git-1.2.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.1.13.tgz → oscharko-dev-keiko-harness-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.1.13.tgz → oscharko-dev-keiko-memory-governance-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.13.tgz → oscharko-dev-keiko-quality-intelligence-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.1.13.tgz → oscharko-dev-keiko-sdk-1.2.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.0.tgz +0 -0
- package/dist/ui/static/_next/static/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/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/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/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/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/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 → LNCY1B2FJBOe2AHFXpzB-}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → LNCY1B2FJBOe2AHFXpzB-}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → LNCY1B2FJBOe2AHFXpzB-}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { caughtGroundedPackValidation, inspectGroundedPack, recordGroundedPackValidation, GROUNDED_PACK_VALIDATION_MESSAGE, } from "./grounded-pack-validation.js";
|
|
2
|
+
import { deriveChatGroundingScopeIdentity, parseExpectedGroundingScopeIdentity, } from "./store/chat-grounding-scope-identity.js";
|
|
3
|
+
import { withAdoptedContextWindowRetry } from "./gateway-context-window.js";
|
|
4
|
+
import { sentPromptContext } from "./grounded-prompt-context.js";
|
|
1
5
|
import { compactCurrentChatPrompt } from "./chat-prompt-compaction.js";
|
|
2
6
|
import { logChatResponseMessage } from "./chat-activity.js";
|
|
3
7
|
import { groundedConversationContinuity, } from "./grounded-conversation-continuity.js";
|
|
@@ -11,11 +15,12 @@ import { countGatewayPromptTokens } from "@oscharko-dev/keiko-model-gateway/inte
|
|
|
11
15
|
import { createHash, randomUUID } from "node:crypto";
|
|
12
16
|
import { basename } from "node:path";
|
|
13
17
|
import { CancelledError, ContextOverflowError, GatewayError, ProviderError, findCapability, findConfiguredCapability, resolveCostClass, } from "@oscharko-dev/keiko-model-gateway";
|
|
18
|
+
import { DEFAULT_LEXICAL_MATCH_LIMIT } from "@oscharko-dev/keiko-workflows";
|
|
14
19
|
import { persistConnectedContextEvidence, } from "@oscharko-dev/keiko-evidence";
|
|
15
20
|
import { redact } from "@oscharko-dev/keiko-security";
|
|
16
|
-
import { PathDeniedError, RepoSearchInvalidQueryError, RepoSearchInvalidRangeError, RepoSearchUnsupportedFileError, WorkspaceNotFoundError, } from "@oscharko-dev/keiko-workspace";
|
|
21
|
+
import { isDenied, PathDeniedError, RepoSearchInvalidQueryError, RepoSearchInvalidRangeError, RepoSearchUnsupportedFileError, WorkspaceNotFoundError, WorkspaceError, } from "@oscharko-dev/keiko-workspace";
|
|
17
22
|
import { nodeWorkspaceFs } from "@oscharko-dev/keiko-workspace/internal/fs";
|
|
18
|
-
import { CONNECTED_CONTEXT_SCHEMA_VERSION, DEFAULT_EXPLORATION_BUDGET,
|
|
23
|
+
import { connectedContextOmittedCount, connectedContextOmittedCounts, CONNECTED_CONTEXT_SCHEMA_VERSION, DEFAULT_EXPLORATION_BUDGET, isValidScopePath, } from "@oscharko-dev/keiko-contracts/connected-context";
|
|
19
24
|
import { buildGroundedAnswerContextPackSummary, MAX_DESKTOP_CHAT_INPUT_BYTES, MAX_DESKTOP_CHAT_INPUT_CHARS, } from "@oscharko-dev/keiko-contracts/bff-wire";
|
|
20
25
|
import { deriveContextProfileFromCapability, DEFAULT_CONTEXT_PROFILE, maxUtf8BytesForTokenBudget, } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
|
|
21
26
|
import { stripUnsafeFormatChars } from "@oscharko-dev/keiko-contracts/text-safety";
|
|
@@ -28,28 +33,28 @@ import { deriveGroundedContextAssembly } from "./grounded-context-diagnostics.js
|
|
|
28
33
|
import { configuredContextPackRerankerFor } from "./grounded-context-pack-reranker.js";
|
|
29
34
|
import { configuredRepoSemanticSearchProviderLeaseFor } from "./grounded-repo-semantic-search.js";
|
|
30
35
|
import { handleLocalKnowledgeGroundedAsk } from "./local-knowledge-grounded-qa.js";
|
|
31
|
-
import { buildConnectedScopes, createMultiSourceAnswerer, defaultRetriever, runMultiSourceAsk, } from "./grounded-qa-multi-source.js";
|
|
36
|
+
import { buildConnectedScopes, createMultiSourceAnswerer, defaultRetriever, groundedSourceScopeFingerprint, runMultiSourceAsk, } from "./grounded-qa-multi-source.js";
|
|
32
37
|
import { buildLocalKnowledgeScopes, runHybridGroundedAsk, } from "./grounded-qa-hybrid.js";
|
|
33
38
|
import { GROUNDED_SYSTEM_PROMPT } from "./grounded-prompt.js";
|
|
34
|
-
import { recordWorkspaceRootDenial, resolveRecordedWorkspaceRoot, } from "./workspace-root-denial-log.js";
|
|
39
|
+
import { isExpectedWorkspaceRootFailure, recordWorkspaceRootDenial, recordWorkspaceRootDenied, recordWorkspaceRootUnavailable, resolveRecordedWorkspaceRoot, workspaceRootFailureStatus, } from "./workspace-root-denial-log.js";
|
|
35
40
|
import { uncitedMemoryContextMarker, } from "./grounded-faithfulness.js";
|
|
36
41
|
import { commitGroundedTurn, discardGroundedTurn, rememberGroundedTurn, stageGroundedTurn, } from "./grounded-turn-registry.js";
|
|
37
42
|
import { assertUsableAssistantContent } from "./assistant-response.js";
|
|
38
|
-
import { buildCanonicalTurnMemoryResult, buildMemoryResult, chatClosedResult, parseClientTurnId,
|
|
43
|
+
import { buildCanonicalTurnMemoryResult, buildMemoryResult, chatClosedResult, parseClientTurnId, parseMemoryRequest, logChatRejection, runPostCommitCanonicalTurnMemorySideEffects, } from "./chat-handlers.js";
|
|
39
44
|
import { canonicalChatTurnGroundingScopeIdentity, canonicalChatTurnIdentityContent, canonicalChatTurnMemorySemantics, } from "./chat-turn-identity.js";
|
|
40
45
|
import { CHAT_TURN_WAIT_CANCELLED, runSerializedChatTurn } from "./chat-turn-serializer.js";
|
|
41
46
|
import { createRequestCancellation } from "./request-cancellation.js";
|
|
42
|
-
import { resolveAppSessionReadAuthority } from "./coding-app-session/appSessionReadAuthority.js";
|
|
47
|
+
import { beginAppSessionOperation, resolveAppSessionReadAuthority, } from "./coding-app-session/appSessionReadAuthority.js";
|
|
43
48
|
import { createOrdinaryWorkspaceRootAccess, requiresConfiguredManagedWorkspaceAuthority, resolveManagedWorkspaceRootAccess, } from "./task-workspace/workspace-root-access.js";
|
|
44
49
|
import { readBoundedRequestBody, RequestBodyCancelledError, RequestBodyTooLargeError, } from "./bounded-request-body.js";
|
|
45
50
|
import { resolveConversationMemoryContext, } from "./memory-conversation-context.js";
|
|
46
51
|
import { renderConversationMemoryContextBlock } from "./conversation-prompt.js";
|
|
47
|
-
import {
|
|
52
|
+
import { emitServerDiagnostic, serverDiagnosticFromError } from "./diagnostics-log.js";
|
|
53
|
+
import { correlationIdOrUnknown } from "./correlation.js";
|
|
48
54
|
import { evidenceRetentionObserver } from "./evidence-retention-log.js";
|
|
49
55
|
import { emitGatewayErrorDiagnostic } from "./gateway-error-diagnostic.js";
|
|
50
56
|
import { buildAnswerCitations as projectAnswerCitations, buildPackCitations, documentFormatForAtom, } from "./grounded-citation-projection.js";
|
|
51
57
|
import { persistGroundedExchange } from "./grounded-message-persistence.js";
|
|
52
|
-
import { deriveChatGroundingScopeIdentity } from "./store/chat-grounding-scope-identity.js";
|
|
53
58
|
import { awaitInitializedConversationReadiness } from "./gateway-readiness.js";
|
|
54
59
|
import { captureConversationReadinessAdmission, mappedConversationReadinessError, validateConversationReadinessAdmission, withConversationReadinessAdmission, } from "./conversation-readiness-admission.js";
|
|
55
60
|
export { persistGroundedExchange } from "./grounded-message-persistence.js";
|
|
@@ -73,8 +78,34 @@ function payloadTooLarge() {
|
|
|
73
78
|
body: errorBody("PAYLOAD_TOO_LARGE", "Request body exceeds the size limit."),
|
|
74
79
|
};
|
|
75
80
|
}
|
|
76
|
-
export function internalError(message) {
|
|
77
|
-
return { status: 500, body: errorBody("INTERNAL", message) };
|
|
81
|
+
export function internalError(message, correlationId) {
|
|
82
|
+
return { status: 500, body: errorBody("INTERNAL", message, correlationId) };
|
|
83
|
+
}
|
|
84
|
+
function groundedCompletionFailure(deps, correlationId, completionKind) {
|
|
85
|
+
const message = "Canonical grounded chat turn completion conflicted.";
|
|
86
|
+
emitServerDiagnostic(deps.diagnostics, {
|
|
87
|
+
...serverDiagnosticFromError({
|
|
88
|
+
correlationId: correlationIdOrUnknown(correlationId),
|
|
89
|
+
operation: "POST /api/chats/messages/grounded",
|
|
90
|
+
source: "grounded.qa.turn-completion",
|
|
91
|
+
error: new Error(message),
|
|
92
|
+
summary: "grounded-turn-completion-conflicted",
|
|
93
|
+
redact: (value) => redactString(deps.redactor, value),
|
|
94
|
+
}),
|
|
95
|
+
code: "GROUNDED_TURN_COMPLETION_CONFLICTED",
|
|
96
|
+
httpStatus: 500,
|
|
97
|
+
diagnosticStage: "grounded-turn-completion",
|
|
98
|
+
diagnosticOutcome: "request-failed",
|
|
99
|
+
completionKind,
|
|
100
|
+
});
|
|
101
|
+
return internalError(message, correlationId);
|
|
102
|
+
}
|
|
103
|
+
export function mappedContextPackValidationError(error, deps, correlationId) {
|
|
104
|
+
const failure = caughtGroundedPackValidation(error);
|
|
105
|
+
if (failure === undefined)
|
|
106
|
+
return undefined;
|
|
107
|
+
recordGroundedPackValidation(deps, correlationId, failure, "request-failed");
|
|
108
|
+
return internalError(GROUNDED_PACK_VALIDATION_MESSAGE, correlationId);
|
|
78
109
|
}
|
|
79
110
|
// Issue #154 (GAP-B) — the dynamic `error.message` of a GatewayError may echo the provider base
|
|
80
111
|
// URL, an `Authorization: Bearer …` header, or an `api-key: …` value back from the provider's
|
|
@@ -114,26 +145,38 @@ function pathDeniedResult(error) {
|
|
|
114
145
|
body: errorBody(error.code, "The workspace path is denied by policy."),
|
|
115
146
|
};
|
|
116
147
|
}
|
|
117
|
-
|
|
118
|
-
if (error instanceof
|
|
119
|
-
return
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if (
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return
|
|
148
|
+
function primaryWorkspaceFailure(error) {
|
|
149
|
+
if (!(error instanceof AggregateError))
|
|
150
|
+
return error;
|
|
151
|
+
const primary = error.cause;
|
|
152
|
+
if (primary instanceof WorkspaceError)
|
|
153
|
+
return primary;
|
|
154
|
+
if (primary instanceof Error && primary.cause instanceof WorkspaceError)
|
|
155
|
+
return primary.cause;
|
|
156
|
+
return error;
|
|
157
|
+
}
|
|
158
|
+
function unavailableWorkspaceResult(error, correlationId) {
|
|
159
|
+
return workspaceRootFailureStatus(error) === 503
|
|
160
|
+
? {
|
|
161
|
+
status: 503,
|
|
162
|
+
body: errorBody("UNAVAILABLE", "The connected source is temporarily unavailable. Please try again.", correlationId),
|
|
163
|
+
}
|
|
164
|
+
: badRequest("Connected scope root is not accessible.");
|
|
129
165
|
}
|
|
130
|
-
export function
|
|
131
|
-
|
|
132
|
-
|
|
166
|
+
export function mappedWorkspaceError(error, context = {}) {
|
|
167
|
+
const failure = primaryWorkspaceFailure(error);
|
|
168
|
+
if (failure instanceof PathDeniedError)
|
|
169
|
+
return pathDeniedResult(failure);
|
|
170
|
+
if (failure instanceof WorkspaceNotFoundError) {
|
|
171
|
+
recordWorkspaceRootUnavailable(failure, context);
|
|
172
|
+
return unavailableWorkspaceResult(failure, context.correlationId);
|
|
133
173
|
}
|
|
134
|
-
|
|
135
|
-
|
|
174
|
+
if (failure instanceof RepoSearchInvalidQueryError ||
|
|
175
|
+
failure instanceof RepoSearchInvalidRangeError ||
|
|
176
|
+
failure instanceof RepoSearchUnsupportedFileError) {
|
|
177
|
+
return badRequest(failure.message);
|
|
136
178
|
}
|
|
179
|
+
return undefined;
|
|
137
180
|
}
|
|
138
181
|
function parseJsonObject(raw) {
|
|
139
182
|
let parsed;
|
|
@@ -295,10 +338,18 @@ function canonicalGroundedRoot(rootInput, deps, correlationId) {
|
|
|
295
338
|
if (error instanceof PathDeniedError) {
|
|
296
339
|
return pathDeniedResult(error);
|
|
297
340
|
}
|
|
298
|
-
|
|
341
|
+
if (!isExpectedWorkspaceRootFailure(error))
|
|
342
|
+
throw error;
|
|
343
|
+
recordWorkspaceRootUnavailable(error, { correlationId });
|
|
344
|
+
return unavailableWorkspaceResult(error, correlationId);
|
|
299
345
|
}
|
|
300
346
|
const redacted = deps.redactor(realRoot);
|
|
301
347
|
if (typeof redacted === "string" && redacted !== realRoot) {
|
|
348
|
+
recordWorkspaceRootDenied({
|
|
349
|
+
reason: "credential-shaped-root",
|
|
350
|
+
failureKind: "CREDENTIAL_SHAPED_METADATA",
|
|
351
|
+
errorKind: "permission-denied",
|
|
352
|
+
}, { correlationId });
|
|
302
353
|
return badRequest("Connected scope root contains credential-shaped metadata.");
|
|
303
354
|
}
|
|
304
355
|
return realRoot;
|
|
@@ -318,10 +369,12 @@ function skippedFolderMessage(result) {
|
|
|
318
369
|
return body.error?.message ?? "not accessible";
|
|
319
370
|
}
|
|
320
371
|
// Fail-soft canonicalization: inaccessible/denied scopes are collected in `skipped` instead of
|
|
321
|
-
// aborting the entire request.
|
|
372
|
+
// aborting the entire request. If no healthy scope remains, retain the recorded failure status;
|
|
373
|
+
// transient server/filesystem outages take precedence over invalid or unavailable selections.
|
|
322
374
|
function canonicalizeGroundedFolderScopes(chat, deps, scopes, request, correlationId) {
|
|
323
375
|
const canonical = [];
|
|
324
376
|
const skipped = [];
|
|
377
|
+
const sourceScopeFingerprints = new Map();
|
|
325
378
|
for (const scope of scopes) {
|
|
326
379
|
const rootInput = scope.root ?? chat.projectPath;
|
|
327
380
|
const access = groundedRootAccess(rootInput, deps, request, correlationId);
|
|
@@ -330,9 +383,12 @@ function canonicalizeGroundedFolderScopes(chat, deps, scopes, request, correlati
|
|
|
330
383
|
skipped.push({ label, message: skippedFolderMessage(access), reason: access });
|
|
331
384
|
continue;
|
|
332
385
|
}
|
|
333
|
-
|
|
386
|
+
const admittedScope = scopeWithWorkspaceAccess(scope, access);
|
|
387
|
+
canonical.push(admittedScope);
|
|
388
|
+
// Attribution retains the human-selected identity; canonical roots govern filesystem access.
|
|
389
|
+
sourceScopeFingerprints.set(admittedScope, groundedSourceScopeFingerprint(buildSelectedScopeFrom(chat, scope, "source-attribution")));
|
|
334
390
|
}
|
|
335
|
-
return { canonical, skipped };
|
|
391
|
+
return { canonical, skipped, sourceScopeFingerprints };
|
|
336
392
|
}
|
|
337
393
|
// The canonical list is authoritative even when it is EMPTY. With every folder denied or
|
|
338
394
|
// inaccessible, returning the original chat would let its legacy single `connectedScope` resurface
|
|
@@ -346,7 +402,7 @@ export function buildQuery(content, nowMs) {
|
|
|
346
402
|
kind: "natural-language",
|
|
347
403
|
text: content,
|
|
348
404
|
caseSensitive: false,
|
|
349
|
-
maxResults:
|
|
405
|
+
maxResults: DEFAULT_LEXICAL_MATCH_LIMIT,
|
|
350
406
|
emittedAtMs: nowMs(),
|
|
351
407
|
};
|
|
352
408
|
}
|
|
@@ -545,7 +601,26 @@ function withPromptExcerptTotalByteBudget(pack, maxExcerptBytes) {
|
|
|
545
601
|
export function withPromptExcerptBudget(pack, totalExcerptBytes) {
|
|
546
602
|
return withPromptExcerptTotalByteBudget(pack, totalExcerptBytes);
|
|
547
603
|
}
|
|
548
|
-
function
|
|
604
|
+
export function fitPromptOmissionMetadata(build, fits, pathByteLimit) {
|
|
605
|
+
const minimum = build(0);
|
|
606
|
+
if (!fits(minimum))
|
|
607
|
+
return undefined;
|
|
608
|
+
let best = { messages: minimum, omissionPathBytes: 0 };
|
|
609
|
+
let low = 1;
|
|
610
|
+
let high = pathByteLimit;
|
|
611
|
+
while (low <= high) {
|
|
612
|
+
const bytes = Math.floor((low + high) / 2);
|
|
613
|
+
const messages = build(bytes);
|
|
614
|
+
if (fits(messages)) {
|
|
615
|
+
best = { messages, omissionPathBytes: bytes };
|
|
616
|
+
low = bytes + 1;
|
|
617
|
+
}
|
|
618
|
+
else
|
|
619
|
+
high = bytes - 1;
|
|
620
|
+
}
|
|
621
|
+
return best;
|
|
622
|
+
}
|
|
623
|
+
function fitGroundedPrompt(question, pack, redactor, build, options = {}) {
|
|
549
624
|
const budgetedPack = withPromptModelInputBudget(pack, options.modelInputTokensMax);
|
|
550
625
|
const limit = modelInputPromptByteLimit(budgetedPack.budget.modelInputTokensMax);
|
|
551
626
|
const fits = (candidate) => promptByteLength(candidate) <= limit &&
|
|
@@ -553,9 +628,12 @@ function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
|
|
|
553
628
|
budgetedPack.budget.modelInputTokensMax;
|
|
554
629
|
const messages = build(question, budgetedPack, redactor);
|
|
555
630
|
if (fits(messages))
|
|
556
|
-
return messages;
|
|
631
|
+
return { messages, pack: budgetedPack, omissionPathBytes: limit };
|
|
632
|
+
const metadataFit = fitPromptOmissionMetadata((bytes) => build(question, budgetedPack, redactor, bytes), fits, limit);
|
|
633
|
+
if (metadataFit !== undefined)
|
|
634
|
+
return { ...metadataFit, pack: budgetedPack };
|
|
557
635
|
const emptyPack = withPromptExcerptBudget(budgetedPack, 0);
|
|
558
|
-
const emptyMessages = build(question, emptyPack, redactor);
|
|
636
|
+
const emptyMessages = build(question, emptyPack, redactor, 0);
|
|
559
637
|
const overheadBytes = promptByteLength(emptyMessages);
|
|
560
638
|
// When overhead alone (system prompt + question + framing) exceeds the limit, no amount of
|
|
561
639
|
// excerpt trimming can bring the prompt within budget. Throw instead of sending an over-limit
|
|
@@ -565,12 +643,13 @@ function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
|
|
|
565
643
|
}
|
|
566
644
|
let low = 0;
|
|
567
645
|
let high = Math.max(0, limit - overheadBytes);
|
|
568
|
-
let best = emptyMessages;
|
|
646
|
+
let best = { messages: emptyMessages, pack: emptyPack, omissionPathBytes: 0 };
|
|
569
647
|
while (low <= high) {
|
|
570
648
|
const totalExcerptBytes = Math.floor((low + high) / 2);
|
|
571
|
-
const
|
|
649
|
+
const candidatePack = withPromptExcerptBudget(budgetedPack, totalExcerptBytes);
|
|
650
|
+
const candidate = build(question, candidatePack, redactor, 0);
|
|
572
651
|
if (fits(candidate)) {
|
|
573
|
-
best = candidate;
|
|
652
|
+
best = { messages: candidate, pack: candidatePack, omissionPathBytes: 0 };
|
|
574
653
|
low = totalExcerptBytes + 1;
|
|
575
654
|
}
|
|
576
655
|
else {
|
|
@@ -579,16 +658,42 @@ function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
|
|
|
579
658
|
}
|
|
580
659
|
return best;
|
|
581
660
|
}
|
|
661
|
+
function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
|
|
662
|
+
return fitGroundedPrompt(question, pack, redactor, build, options).messages;
|
|
663
|
+
}
|
|
664
|
+
/** Excerpts that carry content: what a rendered folder prompt actually shows the model. */
|
|
665
|
+
export function promptExcerptCount(packs) {
|
|
666
|
+
return packs.reduce((total, pack) => total +
|
|
667
|
+
pack.files.reduce((count, file) => count + file.excerpts.filter((excerpt) => excerpt.content.length > 0).length, 0), 0);
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* The folder prompt exactly as it is sent — fitted to the model's input budget — with the same
|
|
671
|
+
* prompt rendered without excerpts, so the context meter can count the share the sources took
|
|
672
|
+
* (grounded-prompt-context.ts).
|
|
673
|
+
*/
|
|
674
|
+
export function fittedGroundedGatewayPrompt(question, pack, redactor, options) {
|
|
675
|
+
const fitted = fitGroundedPrompt(question, pack, redactor, buildRawGroundedGatewayMessages, options);
|
|
676
|
+
return {
|
|
677
|
+
messages: fitted.messages,
|
|
678
|
+
withoutSources: buildRawGroundedGatewayMessages(question, withPromptExcerptBudget(fitted.pack, 0), redactor, -1),
|
|
679
|
+
sentReferenceCount: promptExcerptCount([fitted.pack]),
|
|
680
|
+
availableReferenceCount: promptExcerptCount([pack]),
|
|
681
|
+
};
|
|
682
|
+
}
|
|
582
683
|
export function packBudgetSummary(pack) {
|
|
583
684
|
const { usage, budget } = pack;
|
|
584
685
|
return [
|
|
585
686
|
`search calls ${String(usage.searchCalls)}/${String(budget.searchCallsMax)}`,
|
|
586
|
-
|
|
687
|
+
budget.filesReadMax === null
|
|
688
|
+
? `files read ${String(usage.filesRead)}`
|
|
689
|
+
: `files read ${String(usage.filesRead)}/${String(budget.filesReadMax)}`,
|
|
587
690
|
`excerpt bytes ${String(usage.excerptBytes)}/${String(budget.excerptBytesMax)}`,
|
|
588
691
|
`model input tokens ${String(usage.modelInputTokens)}/${String(budget.modelInputTokensMax)}`,
|
|
589
692
|
`model output tokens ${String(usage.modelOutputTokens)}/${String(budget.modelOutputTokensMax)}`,
|
|
590
693
|
`rerank calls ${String(usage.rerankCalls)}/${String(budget.rerankCallsMax)}`,
|
|
591
|
-
|
|
694
|
+
budget.elapsedMsMax === null
|
|
695
|
+
? `elapsed ${String(usage.elapsedMs)} ms (no search time limit)`
|
|
696
|
+
: `elapsed ${String(usage.elapsedMs)}/${String(budget.elapsedMsMax)} ms`,
|
|
592
697
|
].join("; ");
|
|
593
698
|
}
|
|
594
699
|
export function evidenceLines(pack, redactor) {
|
|
@@ -610,7 +715,7 @@ export function evidenceLines(pack, redactor) {
|
|
|
610
715
|
const label = documentFormat === undefined
|
|
611
716
|
? "Evidence"
|
|
612
717
|
: `Document evidence (${documentFormat.toUpperCase()}, extracted text)`;
|
|
613
|
-
lines.push(`- ${label} ${redactedString(redactor, citation)} (score ${excerpt.atom.score.toFixed(2)}):`, "```", promptSafeExcerptText(redactedString(redactor, excerpt.content)), "```");
|
|
718
|
+
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
719
|
}
|
|
615
720
|
}
|
|
616
721
|
if (lines.length === 0) {
|
|
@@ -618,18 +723,99 @@ export function evidenceLines(pack, redactor) {
|
|
|
618
723
|
}
|
|
619
724
|
return lines;
|
|
620
725
|
}
|
|
726
|
+
/** Retrieval provenance describes selection, not proof that a requested literal occurs. */
|
|
727
|
+
export function evidenceProvenanceLine(provenance, redactor) {
|
|
728
|
+
const label = provenance.kind === "semantic-search" || provenance.tool.startsWith("repo.semanticSearch:")
|
|
729
|
+
? "Related semantic context (not verified as an exact literal match)"
|
|
730
|
+
: "Retrieval provenance";
|
|
731
|
+
return `${label}: ${provenance.kind}; tool: ${redactedString(redactor, provenance.tool)}.`;
|
|
732
|
+
}
|
|
733
|
+
/** Line annotations belong to the prompt; source content and citation ranges remain unchanged. */
|
|
734
|
+
export function numberedEvidenceText(content, range) {
|
|
735
|
+
if (range === undefined || content.length === 0)
|
|
736
|
+
return content;
|
|
737
|
+
return content
|
|
738
|
+
.split("\n")
|
|
739
|
+
.slice(0, range.endLine - range.startLine + 1)
|
|
740
|
+
.map((line, index) => `${String(range.startLine + index)} | ${line}`)
|
|
741
|
+
.join("\n");
|
|
742
|
+
}
|
|
743
|
+
/** Closed canonical counts disclose unavailable evidence without revealing excluded paths. */
|
|
744
|
+
export function omissionReasonLines(pack) {
|
|
745
|
+
const omittedCounts = connectedContextOmittedCounts(pack);
|
|
746
|
+
const counts = Object.entries(omittedCounts).filter(([, count]) => count > 0);
|
|
747
|
+
const reasons = counts.length === 0
|
|
748
|
+
? []
|
|
749
|
+
: [
|
|
750
|
+
"Known omission reason counts (metadata only, not file-content evidence):",
|
|
751
|
+
...counts.map(([reason, count]) => `- ${reason}: ${String(count)}`),
|
|
752
|
+
];
|
|
753
|
+
const unavailable = omittedCounts["tool-unavailable"];
|
|
754
|
+
const coverage = pack.diagnostics?.coverage;
|
|
755
|
+
return [
|
|
756
|
+
...reasons,
|
|
757
|
+
...(unavailable > 0
|
|
758
|
+
? [`Candidate file evidence unavailable for reading/retrieval: ${String(unavailable)}.`]
|
|
759
|
+
: []),
|
|
760
|
+
...(coverage === undefined
|
|
761
|
+
? []
|
|
762
|
+
: [
|
|
763
|
+
`Current traversal incomplete: ${String(coverage.incomplete)}; reasons: ${coverage.reasons.join(", ") || "none"}.`,
|
|
764
|
+
]),
|
|
765
|
+
];
|
|
766
|
+
}
|
|
767
|
+
function allowedSizeExclusionPaths(pack) {
|
|
768
|
+
const paths = pack.omitted
|
|
769
|
+
.filter((entry) => entry.reason === "size-exceeded" &&
|
|
770
|
+
isValidScopePath(entry.scopePath, { mustBeRelative: true }) &&
|
|
771
|
+
stripUnsafeFormatChars(entry.scopePath) === entry.scopePath)
|
|
772
|
+
.map((entry) => entry.scopePath)
|
|
773
|
+
.filter((path) => isValidScopePath(path, { mustBeRelative: true }) && !isDenied(path));
|
|
774
|
+
return [...new Set(paths)];
|
|
775
|
+
}
|
|
776
|
+
// The existing pack owns eligibility decisions. Project only safe omission metadata, never
|
|
777
|
+
// unread file bodies; bound prompt bytes without changing which files retrieval inspects.
|
|
778
|
+
const MAX_SIZE_EXCLUSION_PATH_BYTES = 4096;
|
|
779
|
+
export function sizeExclusionLines(pack, redactor, pathByteLimit = MAX_SIZE_EXCLUSION_PATH_BYTES) {
|
|
780
|
+
if (pathByteLimit < 0)
|
|
781
|
+
return [];
|
|
782
|
+
const paths = allowedSizeExclusionPaths(pack);
|
|
783
|
+
const total = pack.omittedCounts === undefined
|
|
784
|
+
? paths.length
|
|
785
|
+
: connectedContextOmittedCounts(pack)["size-exceeded"];
|
|
786
|
+
if (total === 0)
|
|
787
|
+
return [];
|
|
788
|
+
const lines = [
|
|
789
|
+
"Known file-size exclusions (metadata only, not file-content evidence):",
|
|
790
|
+
`Files excluded by file-size policy: ${String(total)}.`,
|
|
791
|
+
];
|
|
792
|
+
let pathBytes = 0;
|
|
793
|
+
let listed = 0;
|
|
794
|
+
for (const path of paths) {
|
|
795
|
+
const line = `- omitted path: ${JSON.stringify(redactedString(redactor, path))}; reason=size-exceeded`;
|
|
796
|
+
const bytes = Buffer.byteLength(line, "utf8") + 1;
|
|
797
|
+
if (pathBytes + bytes > Math.min(pathByteLimit, MAX_SIZE_EXCLUSION_PATH_BYTES))
|
|
798
|
+
break;
|
|
799
|
+
lines.push(line);
|
|
800
|
+
pathBytes += bytes;
|
|
801
|
+
listed += 1;
|
|
802
|
+
}
|
|
803
|
+
if (listed < total)
|
|
804
|
+
lines.push(`Additional excluded paths not listed: ${String(total - listed)}.`);
|
|
805
|
+
lines.push("These files were not read as evidence. Do not infer their contents or invent line references.");
|
|
806
|
+
return lines;
|
|
807
|
+
}
|
|
621
808
|
export function uncertaintyLines(pack, redactor) {
|
|
622
809
|
if (pack.uncertainty.length === 0)
|
|
623
810
|
return ["None."];
|
|
624
811
|
return pack.uncertainty.map((marker) => `- ${marker.kind}: ${redactedString(redactor, marker.claim)}`);
|
|
625
812
|
}
|
|
626
813
|
// 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.
|
|
814
|
+
// paths so both apply the identical capability, untrusted-evidence, citation and no-secret rules.
|
|
629
815
|
// GROUNDED_SYSTEM_PROMPT now lives in the dependency-free ./grounded-prompt.js leaf (re-exported
|
|
630
816
|
// here for back-compat) so the hybrid path can interpolate it without a circular-import TDZ.
|
|
631
817
|
export { GROUNDED_SYSTEM_PROMPT };
|
|
632
|
-
function buildRawGroundedGatewayMessages(question, pack, redactor) {
|
|
818
|
+
function buildRawGroundedGatewayMessages(question, pack, redactor, omissionPathBytes) {
|
|
633
819
|
const safeQuestion = redactedString(redactor, question);
|
|
634
820
|
const userContent = [
|
|
635
821
|
"User question:",
|
|
@@ -641,7 +827,9 @@ function buildRawGroundedGatewayMessages(question, pack, redactor) {
|
|
|
641
827
|
`- scope kind: ${pack.scope.kind}`,
|
|
642
828
|
`- query kind: ${pack.query.kind}`,
|
|
643
829
|
`- budget/usage: ${packBudgetSummary(pack)}`,
|
|
644
|
-
`- omitted
|
|
830
|
+
`- omitted files: ${String(connectedContextOmittedCount(pack))}`,
|
|
831
|
+
...omissionReasonLines(pack),
|
|
832
|
+
...sizeExclusionLines(pack, redactor, omissionPathBytes),
|
|
645
833
|
"",
|
|
646
834
|
"Repository evidence excerpts:",
|
|
647
835
|
...evidenceLines(pack, redactor),
|
|
@@ -657,20 +845,20 @@ function buildRawGroundedGatewayMessages(question, pack, redactor) {
|
|
|
657
845
|
export function buildGroundedGatewayMessages(question, pack, redactor, options) {
|
|
658
846
|
return promptBudgetedMessages(question, pack, redactor, buildRawGroundedGatewayMessages, options);
|
|
659
847
|
}
|
|
660
|
-
function createGatewayAnswerer(model, modelId,
|
|
848
|
+
function createGatewayAnswerer(deps, model, modelId, signal, correlationId, tokenAccounting) {
|
|
849
|
+
// The input budget is read per attempt, not captured once: when the provider's overflow answer
|
|
850
|
+
// taught Keiko the model's real window, the retry re-budgets the excerpts to fit it. The prompt
|
|
851
|
+
// of the last attempt is kept for the context meter's share of this answer.
|
|
852
|
+
let sent;
|
|
853
|
+
const call = (question, pack) => {
|
|
854
|
+
const promptOptions = groundedPromptOptions(deps, modelId, tokenAccounting);
|
|
855
|
+
sent = fittedGroundedGatewayPrompt(question, pack, deps.redactor, promptOptions);
|
|
856
|
+
return model.call({ modelId, messages: sent.messages, stream: false, logContext: { correlationId } }, signal);
|
|
857
|
+
};
|
|
661
858
|
return {
|
|
662
859
|
answer: async (question, pack) => {
|
|
663
860
|
ensureNotCancelled(signal);
|
|
664
|
-
const
|
|
665
|
-
...(modelInputTokensMax === undefined ? {} : { modelInputTokensMax }),
|
|
666
|
-
...(tokenAccounting === undefined ? {} : { tokenAccounting }),
|
|
667
|
-
};
|
|
668
|
-
const response = await model.call({
|
|
669
|
-
modelId,
|
|
670
|
-
messages: buildGroundedGatewayMessages(question, pack, redactor, promptOptions),
|
|
671
|
-
stream: false,
|
|
672
|
-
logContext: { correlationId },
|
|
673
|
-
}, signal);
|
|
861
|
+
const response = await withAdoptedContextWindowRetry(deps, { modelId, surface: "grounded", correlationId }, () => call(question, pack));
|
|
674
862
|
const content = response.content.trim();
|
|
675
863
|
assertUsableAssistantContent(content, modelId);
|
|
676
864
|
return {
|
|
@@ -682,10 +870,24 @@ function createGatewayAnswerer(model, modelId, redactor, signal, modelInputToken
|
|
|
682
870
|
// GEN-AI-GATEWAY-001 (RB-4): carry the finishReason so a truncated ("length") completion is
|
|
683
871
|
// surfaced by runGroundedExploration instead of being consumed as a complete answer.
|
|
684
872
|
finishReason: response.finishReason,
|
|
873
|
+
...sentPromptContextField(sent, response, currentContextProfileForModel(deps, modelId)),
|
|
685
874
|
};
|
|
686
875
|
},
|
|
687
876
|
};
|
|
688
877
|
}
|
|
878
|
+
// The input budget of one attempt, read from the model's current capability.
|
|
879
|
+
export function groundedPromptOptions(deps, modelId, tokenAccounting) {
|
|
880
|
+
const modelInputTokensMax = groundedPromptInputTokensForCapability(chatCapability(deps, modelId));
|
|
881
|
+
return {
|
|
882
|
+
...(modelInputTokensMax === undefined ? {} : { modelInputTokensMax }),
|
|
883
|
+
...(tokenAccounting === undefined ? {} : { tokenAccounting }),
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
function sentPromptContextField(sent, response, profile) {
|
|
887
|
+
return sent === undefined
|
|
888
|
+
? {}
|
|
889
|
+
: { promptContext: sentPromptContext(sent, response.usage.promptTokens, profile) };
|
|
890
|
+
}
|
|
689
891
|
function resolveGroundedAnswerModel(deps, modelId, readinessAdmission) {
|
|
690
892
|
const resolvedModel = deps.modelPortFactory(modelId);
|
|
691
893
|
if (resolvedModel === undefined) {
|
|
@@ -696,15 +898,16 @@ function resolveGroundedAnswerModel(deps, modelId, readinessAdmission) {
|
|
|
696
898
|
// Split out of defaultRunner to keep it within the line budget: the actual GroundedRunner closure
|
|
697
899
|
// invoked once per exploration input.
|
|
698
900
|
function runDefaultGroundedExploration(runnerCtx, input) {
|
|
699
|
-
const { deps, modelId, signal, contextProfile, model,
|
|
901
|
+
const { deps, modelId, signal, contextProfile, model, entailmentStage } = runnerCtx;
|
|
700
902
|
const nowMs = Date.now;
|
|
701
|
-
const budgetedInput =
|
|
702
|
-
|
|
703
|
-
: input
|
|
704
|
-
|
|
903
|
+
const budgetedInput = {
|
|
904
|
+
...input,
|
|
905
|
+
budget: input.budget ?? modelWindowAwareBudget(deps, modelId),
|
|
906
|
+
};
|
|
907
|
+
const contextPackReranker = configuredContextPackRerankerFor(deps, budgetedInput.query, signal, budgetedInput.budget.excerptBytesMax);
|
|
705
908
|
const semanticLease = configuredRepoSemanticSearchProviderLeaseFor(deps, signal, budgetedInput.workspaceRoot);
|
|
706
909
|
return runGroundedExploration(budgetedInput, {
|
|
707
|
-
answerer: createGatewayAnswerer(model, modelId,
|
|
910
|
+
answerer: createGatewayAnswerer(deps, model, modelId, signal, runnerCtx.correlationId, contextProfile?.tokenAccounting),
|
|
708
911
|
nowMs,
|
|
709
912
|
signal,
|
|
710
913
|
// ADR-0173 D5: the same id the Gateway answerer above already carries, so a git-history read
|
|
@@ -729,18 +932,18 @@ function defaultRunner(deps, modelId, readinessAdmission, signal, contextProfile
|
|
|
729
932
|
const model = resolveGroundedAnswerModel(deps, modelId, readinessAdmission);
|
|
730
933
|
if ("status" in model)
|
|
731
934
|
return model;
|
|
732
|
-
const modelInputTokensMax = groundedPromptInputTokensForCapability(chatCapability(deps, modelId));
|
|
733
935
|
// Knowledge M1.2 (#2563): the folder grounded-ask has no knowledge capsule, so entailment is
|
|
734
936
|
// governed only by whether a compatible judge model is configured (empty capsules ⇒ no policy to
|
|
735
937
|
// deny). Undefined ⇒ the stage is inert and the assembled pack is byte-identical to today.
|
|
736
|
-
const entailmentStage = createEntailmentStage(deps, [], modelId,
|
|
938
|
+
const entailmentStage = createEntailmentStage(deps, [], modelId,
|
|
939
|
+
// The request's correlation, so the verdict line joins the ask (PR #3678 review).
|
|
940
|
+
{ diagnostics: deps.diagnostics, correlationId }, signal);
|
|
737
941
|
const runnerCtx = {
|
|
738
942
|
deps,
|
|
739
943
|
modelId,
|
|
740
944
|
signal,
|
|
741
945
|
contextProfile,
|
|
742
946
|
model,
|
|
743
|
-
modelInputTokensMax,
|
|
744
947
|
entailmentStage,
|
|
745
948
|
correlationId,
|
|
746
949
|
};
|
|
@@ -969,8 +1172,13 @@ async function runAsk(workerCtx) {
|
|
|
969
1172
|
const output = await runGroundedRunner(workerCtx, query);
|
|
970
1173
|
if (isRouteResult(output))
|
|
971
1174
|
return output;
|
|
972
|
-
|
|
973
|
-
|
|
1175
|
+
const validationFailure = inspectGroundedPack(output.pack, {
|
|
1176
|
+
deps,
|
|
1177
|
+
correlationId: workerCtx.correlationId,
|
|
1178
|
+
outcome: "request-failed",
|
|
1179
|
+
});
|
|
1180
|
+
if (validationFailure !== undefined) {
|
|
1181
|
+
return internalError(GROUNDED_PACK_VALIDATION_MESSAGE, workerCtx.correlationId);
|
|
974
1182
|
}
|
|
975
1183
|
const cancelResult = ensureRouteNotCancelled(workerCtx.signal, deps, workerCtx.correlationId);
|
|
976
1184
|
if (cancelResult !== undefined)
|
|
@@ -1013,9 +1221,12 @@ function finalizeGroundedAnswer(workerCtx, output) {
|
|
|
1013
1221
|
content: assistantContent,
|
|
1014
1222
|
citations,
|
|
1015
1223
|
uncertainty: buildUncertainty(output.pack, deps.redactor),
|
|
1016
|
-
omittedCount: output.pack
|
|
1224
|
+
omittedCount: connectedContextOmittedCount(output.pack),
|
|
1017
1225
|
elapsedMs: output.elapsedMs,
|
|
1018
1226
|
contextPack,
|
|
1227
|
+
...(modelInvoked && output.promptContext !== undefined
|
|
1228
|
+
? { promptContext: output.promptContext }
|
|
1229
|
+
: {}),
|
|
1019
1230
|
};
|
|
1020
1231
|
deps.store.attachGroundedAnswer(assistantMessage.id, answer);
|
|
1021
1232
|
if (sourceEvidenceAvailable) {
|
|
@@ -1049,6 +1260,7 @@ async function runGroundedRunner(workerCtx, query) {
|
|
|
1049
1260
|
scope,
|
|
1050
1261
|
query,
|
|
1051
1262
|
answerQuestion: answerContent,
|
|
1263
|
+
currentQuestion: workerCtx.content,
|
|
1052
1264
|
answerOnlyContextAvailable: workerCtx.answerOnlyContextAvailable,
|
|
1053
1265
|
workspaceRoot: scope.workspaceRoot,
|
|
1054
1266
|
...optionalWorkspaceFs(workerCtx.workspaceFs),
|
|
@@ -1060,7 +1272,10 @@ async function runGroundedRunner(workerCtx, query) {
|
|
|
1060
1272
|
if (error instanceof ClarificationNeededError) {
|
|
1061
1273
|
return clarificationRequest(clarificationUserMessage(error));
|
|
1062
1274
|
}
|
|
1063
|
-
const
|
|
1275
|
+
const validationResult = mappedContextPackValidationError(error, workerCtx.deps, workerCtx.correlationId);
|
|
1276
|
+
if (validationResult !== undefined)
|
|
1277
|
+
return validationResult;
|
|
1278
|
+
const workspaceResult = mappedWorkspaceError(error, { correlationId: workerCtx.correlationId });
|
|
1064
1279
|
if (workspaceResult !== undefined)
|
|
1065
1280
|
return workspaceResult;
|
|
1066
1281
|
const gatewayResult = mappedGatewayError(error, workerCtx.deps, workerCtx.correlationId);
|
|
@@ -1115,7 +1330,7 @@ function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, overr
|
|
|
1115
1330
|
const model = withConversationReadinessAdmission(resolvedModel, modelId, readinessAdmission, deps);
|
|
1116
1331
|
return {
|
|
1117
1332
|
retriever: defaultRetriever(signal, deps, correlationId),
|
|
1118
|
-
answerer: createMultiSourceAnswerer(model, modelId,
|
|
1333
|
+
answerer: createMultiSourceAnswerer(deps, model, modelId, signal, correlationId),
|
|
1119
1334
|
};
|
|
1120
1335
|
}
|
|
1121
1336
|
async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOverride) {
|
|
@@ -1130,6 +1345,9 @@ async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOv
|
|
|
1130
1345
|
return runMultiSourceAsk({
|
|
1131
1346
|
chat,
|
|
1132
1347
|
scopes,
|
|
1348
|
+
...(args.sourceScopeFingerprints === undefined
|
|
1349
|
+
? {}
|
|
1350
|
+
: { sourceScopeFingerprints: args.sourceScopeFingerprints }),
|
|
1133
1351
|
content: input.content,
|
|
1134
1352
|
retrievalContent: input.retrievalContent,
|
|
1135
1353
|
answerContent: input.answerContent ?? input.content,
|
|
@@ -1147,6 +1365,7 @@ async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOv
|
|
|
1147
1365
|
? { entailmentStageFactory: seam.entailmentStageFactory }
|
|
1148
1366
|
: {}),
|
|
1149
1367
|
preSkipped: skippedFolders.map((s) => ({ label: s.label, message: s.message })),
|
|
1368
|
+
correlationId: args.correlationId,
|
|
1150
1369
|
});
|
|
1151
1370
|
}
|
|
1152
1371
|
// Epic #532 — builds the single-source SelectedScope from the canonical list when the legacy
|
|
@@ -1233,6 +1452,9 @@ async function dispatchHybridAsk(prepared, deps, skippedFolders, seam) {
|
|
|
1233
1452
|
const modelId = groundedModelId(prepared);
|
|
1234
1453
|
return runHybridGroundedAsk({
|
|
1235
1454
|
chat,
|
|
1455
|
+
...(prepared.sourceScopeFingerprints === undefined
|
|
1456
|
+
? {}
|
|
1457
|
+
: { sourceScopeFingerprints: prepared.sourceScopeFingerprints }),
|
|
1236
1458
|
content: input.content,
|
|
1237
1459
|
retrievalContent: input.retrievalContent,
|
|
1238
1460
|
answerContent: input.answerContent ?? input.content,
|
|
@@ -1257,6 +1479,11 @@ async function dispatchHybridAsk(prepared, deps, skippedFolders, seam) {
|
|
|
1257
1479
|
function canonicalizePreparedFolderScopes(prepared, deps) {
|
|
1258
1480
|
return canonicalizeGroundedFolderScopes(prepared.chat, deps, buildConnectedScopes(prepared.chat), prepared.request, prepared.correlationId);
|
|
1259
1481
|
}
|
|
1482
|
+
function unavailableFolderResult(skipped) {
|
|
1483
|
+
return (skipped.find((entry) => entry.reason.status === 503)?.reason ??
|
|
1484
|
+
skipped[0]?.reason ??
|
|
1485
|
+
badRequest("Chat has no connected scope."));
|
|
1486
|
+
}
|
|
1260
1487
|
async function dispatchPreparedGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
|
|
1261
1488
|
const { chat } = prepared;
|
|
1262
1489
|
// Epic #189 — count-based dispatch over BOTH source kinds. 0+0 → no scope. Connector-free chats
|
|
@@ -1264,18 +1491,17 @@ async function dispatchPreparedGroundedAsk(prepared, deps, runner, multiSource,
|
|
|
1264
1491
|
// EXISTING single-connector path (#189, byte-identical). Everything else (folders+connector, or
|
|
1265
1492
|
// 2+ connectors) is the hybrid merge.
|
|
1266
1493
|
// Fail-soft: inaccessible/denied folders are skipped; only effective (canonical) counts drive
|
|
1267
|
-
// dispatch.
|
|
1268
|
-
|
|
1269
|
-
const { canonical: canonicalFolderScopes, skipped: skippedFolders } = canonicalizePreparedFolderScopes(prepared, deps);
|
|
1494
|
+
// dispatch. With no usable source, preserve the admission failure or retriable outage status.
|
|
1495
|
+
const { canonical: canonicalFolderScopes, skipped: skippedFolders, sourceScopeFingerprints, } = canonicalizePreparedFolderScopes(prepared, deps);
|
|
1270
1496
|
const preparedWithCanonicalFolders = {
|
|
1271
1497
|
...prepared,
|
|
1272
1498
|
chat: withCanonicalFolderScopes(chat, canonicalFolderScopes),
|
|
1499
|
+
sourceScopeFingerprints,
|
|
1273
1500
|
};
|
|
1274
1501
|
const connectorCount = buildLocalKnowledgeScopes(chat).length;
|
|
1275
1502
|
const effectiveFolders = canonicalFolderScopes.length;
|
|
1276
1503
|
if (effectiveFolders === 0 && connectorCount === 0) {
|
|
1277
|
-
|
|
1278
|
-
return skippedFolders[0]?.reason ?? badRequest("Chat has no connected scope.");
|
|
1504
|
+
return unavailableFolderResult(skippedFolders);
|
|
1279
1505
|
}
|
|
1280
1506
|
if (connectorCount === 0) {
|
|
1281
1507
|
return dispatchFolderAsk(preparedWithCanonicalFolders, deps, canonicalFolderScopes, skippedFolders, runner, multiSource);
|
|
@@ -1410,8 +1636,8 @@ function groundedAnswerContent(content, memory) {
|
|
|
1410
1636
|
return content;
|
|
1411
1637
|
return ["User question:", content, "", renderConversationMemoryContextBlock(memoryText)].join("\n");
|
|
1412
1638
|
}
|
|
1413
|
-
function groundedMemoryPreparationFailure(prepared, deps,
|
|
1414
|
-
recordGroundedMemoryFailure(
|
|
1639
|
+
function groundedMemoryPreparationFailure(prepared, deps, error) {
|
|
1640
|
+
recordGroundedMemoryFailure(prepared, deps, error);
|
|
1415
1641
|
return prepared;
|
|
1416
1642
|
}
|
|
1417
1643
|
function withPreparedGroundedMemory(prepared, context, result) {
|
|
@@ -1436,7 +1662,9 @@ async function prepareGroundedMemory(prepared, deps) {
|
|
|
1436
1662
|
return prepared;
|
|
1437
1663
|
const context = prepared.memoryContext;
|
|
1438
1664
|
if (context === undefined) {
|
|
1439
|
-
return groundedMemoryPreparationFailure(prepared, deps, "
|
|
1665
|
+
return groundedMemoryPreparationFailure(prepared, deps, Object.assign(new Error("Grounded memory context is unavailable"), {
|
|
1666
|
+
name: "GroundedMemoryContextUnavailable",
|
|
1667
|
+
}));
|
|
1440
1668
|
}
|
|
1441
1669
|
try {
|
|
1442
1670
|
const result = await buildMemoryResult({
|
|
@@ -1452,32 +1680,74 @@ async function prepareGroundedMemory(prepared, deps) {
|
|
|
1452
1680
|
return withPreparedGroundedMemory(prepared, context, result);
|
|
1453
1681
|
}
|
|
1454
1682
|
catch (error) {
|
|
1455
|
-
return groundedMemoryPreparationFailure(prepared, deps,
|
|
1683
|
+
return groundedMemoryPreparationFailure(prepared, deps, error);
|
|
1456
1684
|
}
|
|
1457
1685
|
}
|
|
1686
|
+
function groundedScopeRefusal(admitted, deps, reason) {
|
|
1687
|
+
const message = {
|
|
1688
|
+
"scope-identity-mismatch": "The grounded source scope changed before the turn could run.",
|
|
1689
|
+
"grounding-mode-changed": "The chat grounding mode changed before the turn could run.",
|
|
1690
|
+
"scope-changed-during-answer": "The grounded source scope changed while the answer was in progress.",
|
|
1691
|
+
}[reason];
|
|
1692
|
+
logChatRejection("chat.send.rejected", admitted.correlationId, groundedModelId(admitted), deps, 409, "grounding-scope");
|
|
1693
|
+
emitServerDiagnostic(deps.diagnostics, {
|
|
1694
|
+
...serverDiagnosticFromError({
|
|
1695
|
+
correlationId: correlationIdOrUnknown(admitted.correlationId),
|
|
1696
|
+
operation: "POST /api/chats/messages/grounded",
|
|
1697
|
+
source: `grounded.qa.${reason}`,
|
|
1698
|
+
error: Object.assign(new Error(message), { code: "GROUNDING_SCOPE_CHANGED" }),
|
|
1699
|
+
redact: (value) => redactString(deps.redactor, value),
|
|
1700
|
+
}),
|
|
1701
|
+
errorClass: "invalid-request",
|
|
1702
|
+
httpStatus: 409,
|
|
1703
|
+
diagnosticOutcome: "request-refused",
|
|
1704
|
+
});
|
|
1705
|
+
return settleGroundedChatTurn(admitted, deps, {
|
|
1706
|
+
status: 409,
|
|
1707
|
+
body: errorBody("GROUNDING_SCOPE_CHANGED", message, admitted.correlationId),
|
|
1708
|
+
});
|
|
1709
|
+
}
|
|
1458
1710
|
function admittedGroundingScopeFailure(admitted, deps) {
|
|
1459
1711
|
const expectedIdentity = admitted.input.expectedGroundingScopeIdentity;
|
|
1460
1712
|
if (expectedIdentity !== undefined &&
|
|
1461
1713
|
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
|
-
});
|
|
1714
|
+
return groundedScopeRefusal(admitted, deps, "scope-identity-mismatch");
|
|
1466
1715
|
}
|
|
1467
1716
|
if (expectedIdentity === undefined ||
|
|
1468
1717
|
buildConnectedScopes(admitted.chat).length > 0 ||
|
|
1469
1718
|
buildLocalKnowledgeScopes(admitted.chat).length > 0) {
|
|
1470
1719
|
return undefined;
|
|
1471
1720
|
}
|
|
1472
|
-
return
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1721
|
+
return groundedScopeRefusal(admitted, deps, "grounding-mode-changed");
|
|
1722
|
+
}
|
|
1723
|
+
function withHistoryCompactionSummary(pack) {
|
|
1724
|
+
return pack.contextSummary === undefined
|
|
1725
|
+
? pack
|
|
1726
|
+
: {
|
|
1727
|
+
...pack,
|
|
1728
|
+
contextSummary: { ...pack.contextSummary, compactionActive: true },
|
|
1729
|
+
};
|
|
1730
|
+
}
|
|
1731
|
+
function withGroundedCompactionSummary(prepared, result) {
|
|
1732
|
+
if (prepared.continuity?.compaction === undefined ||
|
|
1733
|
+
result.status !== 200 ||
|
|
1734
|
+
!groundedAnswerBody(result.body))
|
|
1735
|
+
return result;
|
|
1736
|
+
const answer = result.body;
|
|
1737
|
+
if (answer.groundingKind === "local-knowledge")
|
|
1738
|
+
return result;
|
|
1739
|
+
const contextPack = answer.groundingKind === "hybrid"
|
|
1740
|
+
? { ...answer.contextPack, folder: withHistoryCompactionSummary(answer.contextPack.folder) }
|
|
1741
|
+
: withHistoryCompactionSummary(answer.contextPack);
|
|
1742
|
+
return { ...result, body: { ...answer, contextPack } };
|
|
1743
|
+
}
|
|
1744
|
+
async function prepareGroundedMemoryWithContinuity(admitted, deps) {
|
|
1745
|
+
return prepareGroundedMemory(await withGroundedContinuity(admitted, deps), deps);
|
|
1476
1746
|
}
|
|
1477
1747
|
async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybrid) {
|
|
1478
1748
|
let stagedAssistantId;
|
|
1479
1749
|
try {
|
|
1480
|
-
const memoryPrepared = await
|
|
1750
|
+
const memoryPrepared = await prepareGroundedMemoryWithContinuity(admitted, deps);
|
|
1481
1751
|
ensureNotCancelled(admitted.signal);
|
|
1482
1752
|
if (isRouteResult(memoryPrepared)) {
|
|
1483
1753
|
return settleGroundedChatTurn(admitted, deps, memoryPrepared);
|
|
@@ -1491,7 +1761,7 @@ async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybri
|
|
|
1491
1761
|
stagedAssistantId = result.body.assistantMessageId;
|
|
1492
1762
|
}
|
|
1493
1763
|
ensureNotCancelled(memoryPrepared.signal);
|
|
1494
|
-
const withMemory = await attachGroundedMemory(memoryPrepared, deps, result);
|
|
1764
|
+
const withMemory = withGroundedCompactionSummary(memoryPrepared, await attachGroundedMemory(memoryPrepared, deps, result));
|
|
1495
1765
|
ensureNotCancelled(memoryPrepared.signal);
|
|
1496
1766
|
const settled = settleGroundedChatTurn(memoryPrepared, deps, withMemory);
|
|
1497
1767
|
persistGroundedContinuity(memoryPrepared, deps, settled);
|
|
@@ -1514,7 +1784,18 @@ async function executeGroundedAskInTurn(prepared, deps, runner, multiSource, hyb
|
|
|
1514
1784
|
if (isRouteResult(admitted))
|
|
1515
1785
|
return admitted;
|
|
1516
1786
|
const scopeFailure = admittedGroundingScopeFailure(admitted, deps);
|
|
1517
|
-
|
|
1787
|
+
if (scopeFailure !== undefined)
|
|
1788
|
+
return scopeFailure;
|
|
1789
|
+
const releaseSession = beginAppSessionOperation(deps, admitted.request, admitted.signal, {
|
|
1790
|
+
correlationId: admitted.correlationId,
|
|
1791
|
+
surface: "grounded-chat",
|
|
1792
|
+
});
|
|
1793
|
+
try {
|
|
1794
|
+
return await runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybrid);
|
|
1795
|
+
}
|
|
1796
|
+
finally {
|
|
1797
|
+
releaseSession();
|
|
1798
|
+
}
|
|
1518
1799
|
}
|
|
1519
1800
|
async function executeGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
|
|
1520
1801
|
const result = await runSerializedChatTurn(deps, prepared.chat.id, prepared.signal, () => {
|
|
@@ -1555,13 +1836,11 @@ function settleGroundedChatTurn(prepared, deps, result) {
|
|
|
1555
1836
|
}
|
|
1556
1837
|
if (!groundedScopeStillCurrent(prepared, deps)) {
|
|
1557
1838
|
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
|
-
};
|
|
1839
|
+
return groundedScopeRefusal(prepared, deps, "scope-changed-during-answer");
|
|
1563
1840
|
}
|
|
1564
|
-
if (result.body.memory !== undefined ||
|
|
1841
|
+
if (result.body.memory !== undefined ||
|
|
1842
|
+
hasAnswerOnlyContext(prepared) ||
|
|
1843
|
+
prepared.continuity?.compaction !== undefined) {
|
|
1565
1844
|
deps.store.attachGroundedAnswer(result.body.assistantMessageId, result.body);
|
|
1566
1845
|
}
|
|
1567
1846
|
let completion;
|
|
@@ -1575,7 +1854,7 @@ function settleGroundedChatTurn(prepared, deps, result) {
|
|
|
1575
1854
|
if (completion.kind !== "completed") {
|
|
1576
1855
|
discardGroundedTurn(result.body.assistantMessageId);
|
|
1577
1856
|
deps.store.failChatTurn(prepared.chat.id, commitTurnId);
|
|
1578
|
-
return
|
|
1857
|
+
return groundedCompletionFailure(deps, prepared.correlationId, completion.kind);
|
|
1579
1858
|
}
|
|
1580
1859
|
commitGroundedTurn(result.body.assistantMessageId);
|
|
1581
1860
|
runGroundedPostCommitMemorySideEffects(prepared, deps, result.body);
|
|
@@ -1600,15 +1879,15 @@ function groundedAnswerBody(value) {
|
|
|
1600
1879
|
"assistantMessageId" in value &&
|
|
1601
1880
|
"content" in value);
|
|
1602
1881
|
}
|
|
1603
|
-
function recordGroundedMemoryFailure(
|
|
1604
|
-
emitServerDiagnostic(deps.diagnostics, {
|
|
1605
|
-
correlationId:
|
|
1606
|
-
timestamp: new Date(Date.now()).toISOString(),
|
|
1882
|
+
function recordGroundedMemoryFailure(prepared, deps, error) {
|
|
1883
|
+
emitServerDiagnostic(deps.diagnostics, serverDiagnosticFromError({
|
|
1884
|
+
correlationId: correlationIdOrUnknown(prepared.correlationId),
|
|
1607
1885
|
operation: "grounded.memory",
|
|
1608
1886
|
source: "grounded-qa.attach-memory",
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1887
|
+
summary: "grounded-memory-enrichment-failed",
|
|
1888
|
+
error,
|
|
1889
|
+
redact: (value) => redactString(deps.redactor, value),
|
|
1890
|
+
}));
|
|
1612
1891
|
}
|
|
1613
1892
|
function groundedCanonicalMemoryRequest(prepared, assistantContent) {
|
|
1614
1893
|
return {
|
|
@@ -1646,7 +1925,7 @@ async function attachGroundedMemory(prepared, deps, result) {
|
|
|
1646
1925
|
return memory === undefined ? markedResult : { ...markedResult, body: { ...body, memory } };
|
|
1647
1926
|
}
|
|
1648
1927
|
catch (error) {
|
|
1649
|
-
recordGroundedMemoryFailure(
|
|
1928
|
+
recordGroundedMemoryFailure(prepared, deps, error);
|
|
1650
1929
|
return markedResult;
|
|
1651
1930
|
}
|
|
1652
1931
|
}
|