@oscharko-dev/keiko 1.1.12 → 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/09zc5hgtb7s-z.js +1 -0
- package/dist/ui/static/_next/static/chunks/0_p-xs8nu7pby.js +1 -0
- 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/0fpbvpzg-omn0.js +1 -0
- 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/{0xhrzm-zp_lsx.js → 0l72usw6suk0h.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0mcg_spbohpl3.css +1 -0
- package/dist/ui/static/_next/static/chunks/{3jb5u4g15g__m.css → 0mjsj7bp-ukgh.css} +17 -18
- 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/{17jlhx5dll_r6.js → 1_bezidc0febq.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/{36-tv3y56oau8.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/{25j7z89g58y1-.css → 2hu5w89yy7_s-.css} +2 -2
- 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/2r4vn_6anv2cw.js +5 -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/2xynqzhclj1u-.js +27 -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/389bs_l5-yv4y.css +1 -0
- package/dist/ui/static/_next/static/chunks/3946_dfcd9xr-.js +1 -0
- package/dist/ui/static/_next/static/chunks/39nyg25pqs1kv.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 +20 -11
- 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 +326 -106
- 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 +534 -97
- 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 +8749 -31976
- 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 +3997 -29458
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +155 -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 +34 -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 +24 -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 +131 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +573 -11
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +17 -12
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +76 -36
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.js +24 -10
- 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 +16 -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 +17 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-evidence.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-evidence.js +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-call.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-call.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-call.js +29 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.js +108 -59
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts +4 -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 +65 -8
- 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 +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.js +196 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +316 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.js +124 -0
- 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 +9 -6
- 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 +322 -154
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-rehydration.js +137 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts +41 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.js +193 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.js +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts +12 -3
- 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 +107 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.js +163 -0
- 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 +87 -29
- 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 +604 -27
- 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/conversation-compaction.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-compaction.js +181 -52
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-gateway.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-gateway.js +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +27 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +128 -20
- 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 +18 -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 +319 -46
- 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 +985 -229
- 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 +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +175 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.js +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts +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 +18 -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 +351 -164
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +15 -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 +242 -88
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +29 -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 +463 -122
- 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 +2 -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 +232 -66
- 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 +3 -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 +11 -1
- 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/codingHistoryIsolation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.js +8 -0
- 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 +31 -130
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +10 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +53 -82
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.js +26 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +30 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts +2 -0
- 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 +141 -14
- 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/context-budget/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/index.js +2 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/rehydration.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/rehydration.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/rehydration.js +2 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/structured-digest.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/structured-digest.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/context-budget/structured-digest.js +91 -27
- 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 +40 -33
- package/release-impact.catalog.json +198 -23
- 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.12.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.12.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.2.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.1.12.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.12.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.12.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.12.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/06yzmh78cidsr.js +0 -1
- package/dist/ui/static/_next/static/chunks/08kdz_q929mef.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_7ry-vzqryfq.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_p1naz51ki9i.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/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/0mkhgmj9-jvu-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ojvvjnsf38bk.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +0 -1
- package/dist/ui/static/_next/static/chunks/0v9jkxfma7fks.js +0 -1
- package/dist/ui/static/_next/static/chunks/0z5be09yla9lp.js +0 -1
- package/dist/ui/static/_next/static/chunks/115f9zt0f5hm4.js +0 -1
- package/dist/ui/static/_next/static/chunks/117xhn896fsmt.js +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/1be0-x1mk56wu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1cjmlpaxzl17x.js +0 -1
- package/dist/ui/static/_next/static/chunks/1cluynrv3wmyz.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/1hnficrb11m9x.js +0 -1
- package/dist/ui/static/_next/static/chunks/1jfpuw9-h8iaq.js +0 -1
- package/dist/ui/static/_next/static/chunks/1kxhf3ld28pzk.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/1oe16odh9-wem.js +0 -1
- package/dist/ui/static/_next/static/chunks/1pnysuel-a2r1.js +0 -1
- package/dist/ui/static/_next/static/chunks/1rrylkj4wfhla.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/1uxrq3q9n5v4y.js +0 -1
- package/dist/ui/static/_next/static/chunks/1x5aw_ayly-sh.js +0 -1
- package/dist/ui/static/_next/static/chunks/1xzxhtenb7_sx.css +0 -1
- package/dist/ui/static/_next/static/chunks/1yiiigw5l63v1.js +0 -36
- package/dist/ui/static/_next/static/chunks/2-h3ow6f6ywtk.js +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/22tu2ta5xr5wj.js +0 -1
- package/dist/ui/static/_next/static/chunks/22x3pxeia7hk_.js +0 -1
- package/dist/ui/static/_next/static/chunks/22yars17p-i_a.js +0 -1
- package/dist/ui/static/_next/static/chunks/233j_pai87f3k.js +0 -2
- package/dist/ui/static/_next/static/chunks/252wybdcea74g.js +0 -1
- package/dist/ui/static/_next/static/chunks/25lgzefdnbdh6.js +0 -1
- package/dist/ui/static/_next/static/chunks/27490erridyaz.js +0 -1
- package/dist/ui/static/_next/static/chunks/2_o61-akoq549.js +0 -1
- package/dist/ui/static/_next/static/chunks/2b78j2josay3e.js +0 -1
- package/dist/ui/static/_next/static/chunks/2e4prtd3wmn0a.js +0 -1
- package/dist/ui/static/_next/static/chunks/2iatd917svh3o.js +0 -1
- 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/2s9-91g2jic6u.js +0 -1
- package/dist/ui/static/_next/static/chunks/2tcon4aj5dc5t.js +0 -1
- package/dist/ui/static/_next/static/chunks/2uewj5n3jrohk.js +0 -1
- package/dist/ui/static/_next/static/chunks/2vcovdwo6s3-l.js +0 -1
- package/dist/ui/static/_next/static/chunks/2wtsqscjch4bx.js +0 -1
- package/dist/ui/static/_next/static/chunks/2xpud5k1hwfvf.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ywqac8g8us1n.css +0 -1
- package/dist/ui/static/_next/static/chunks/306ima8lxo17-.js +0 -1
- package/dist/ui/static/_next/static/chunks/32tief1094icq.js +0 -1
- package/dist/ui/static/_next/static/chunks/351uy__m9eafa.js +0 -1
- package/dist/ui/static/_next/static/chunks/365nk-5mmf_8c.js +0 -1
- package/dist/ui/static/_next/static/chunks/36afhcug0i5mm.js +0 -1
- package/dist/ui/static/_next/static/chunks/36t-jmpwnypy0.js +0 -1
- package/dist/ui/static/_next/static/chunks/37f_o8ne61ty2.js +0 -1
- package/dist/ui/static/_next/static/chunks/37mtn-h7j8ygx.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/3_rof9w-g14_v.js +0 -3
- package/dist/ui/static/_next/static/chunks/3_u5w33et675r.js +0 -1
- package/dist/ui/static/_next/static/chunks/3aizxizjzdddj.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/3f6svr_pokw6j.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/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/3n4gsbv-im5ia.js +0 -1
- package/dist/ui/static/_next/static/chunks/3r4fz572q3l7s.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uovpxgynmdkk.js +0 -1
- package/dist/ui/static/_next/static/chunks/3vnb2msty1ab4.js +0 -1
- package/dist/ui/static/_next/static/chunks/3yqrxwndy9_f3.js +0 -1
- package/dist/ui/static/_next/static/chunks/3zd1y0ze7hnsy.js +0 -1
- package/dist/ui/static/_next/static/chunks/40g2_9ovqiuiu.js +0 -1
- package/dist/ui/static/_next/static/chunks/412pf48_r8im3.js +0 -1
- 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/434km55nqikg-.js +0 -7
- 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.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.1.12.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.1.12.tgz +0 -0
- /package/dist/ui/static/_next/static/{__kGQcCW6ht5xSodXZZBj → LNCY1B2FJBOe2AHFXpzB-}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{__kGQcCW6ht5xSodXZZBj → LNCY1B2FJBOe2AHFXpzB-}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{__kGQcCW6ht5xSodXZZBj → LNCY1B2FJBOe2AHFXpzB-}/_ssgManifest.js +0 -0
|
@@ -1,4 +1,12 @@
|
|
|
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";
|
|
5
|
+
import { compactCurrentChatPrompt } from "./chat-prompt-compaction.js";
|
|
1
6
|
import { logChatResponseMessage } from "./chat-activity.js";
|
|
7
|
+
import { groundedConversationContinuity, } from "./grounded-conversation-continuity.js";
|
|
8
|
+
import { persistChatCompactionEvidence } from "./chat-compaction-evidence.js";
|
|
9
|
+
import { countGatewayPromptTokens } from "@oscharko-dev/keiko-model-gateway/internal/prompt-token-accounting";
|
|
2
10
|
// BFF route POST /api/chats/messages/grounded (Issue #185 / Epic #177). Composes the
|
|
3
11
|
// orchestrator's pure pipeline with the UiStore so a single HTTP round trip persists both
|
|
4
12
|
// the user question and the assistant answer alongside a redacted citation projection.
|
|
@@ -6,14 +14,15 @@ import { logChatResponseMessage } from "./chat-activity.js";
|
|
|
6
14
|
// inputs (chatId + content) and enforces that the chat carries a connected scope.
|
|
7
15
|
import { createHash, randomUUID } from "node:crypto";
|
|
8
16
|
import { basename } from "node:path";
|
|
9
|
-
import { CancelledError, ContextOverflowError, GatewayError, findCapability, findConfiguredCapability, resolveCostClass, } from "@oscharko-dev/keiko-model-gateway";
|
|
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";
|
|
10
19
|
import { persistConnectedContextEvidence, } from "@oscharko-dev/keiko-evidence";
|
|
11
20
|
import { redact } from "@oscharko-dev/keiko-security";
|
|
12
|
-
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";
|
|
13
22
|
import { nodeWorkspaceFs } from "@oscharko-dev/keiko-workspace/internal/fs";
|
|
14
|
-
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";
|
|
15
24
|
import { buildGroundedAnswerContextPackSummary, MAX_DESKTOP_CHAT_INPUT_BYTES, MAX_DESKTOP_CHAT_INPUT_CHARS, } from "@oscharko-dev/keiko-contracts/bff-wire";
|
|
16
|
-
import { deriveContextProfileFromCapability, maxUtf8BytesForTokenBudget, } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
|
|
25
|
+
import { deriveContextProfileFromCapability, DEFAULT_CONTEXT_PROFILE, maxUtf8BytesForTokenBudget, } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
|
|
17
26
|
import { stripUnsafeFormatChars } from "@oscharko-dev/keiko-contracts/text-safety";
|
|
18
27
|
import { errorBody } from "./routes.js";
|
|
19
28
|
import { currentContextProfileForModel, currentGatewayConfig, currentGroundingLimits, currentRedactionSecrets, } from "./deps.js";
|
|
@@ -24,29 +33,29 @@ import { deriveGroundedContextAssembly } from "./grounded-context-diagnostics.js
|
|
|
24
33
|
import { configuredContextPackRerankerFor } from "./grounded-context-pack-reranker.js";
|
|
25
34
|
import { configuredRepoSemanticSearchProviderLeaseFor } from "./grounded-repo-semantic-search.js";
|
|
26
35
|
import { handleLocalKnowledgeGroundedAsk } from "./local-knowledge-grounded-qa.js";
|
|
27
|
-
import { buildConnectedScopes, createMultiSourceAnswerer, defaultRetriever, runMultiSourceAsk, } from "./grounded-qa-multi-source.js";
|
|
36
|
+
import { buildConnectedScopes, createMultiSourceAnswerer, defaultRetriever, groundedSourceScopeFingerprint, runMultiSourceAsk, } from "./grounded-qa-multi-source.js";
|
|
28
37
|
import { buildLocalKnowledgeScopes, runHybridGroundedAsk, } from "./grounded-qa-hybrid.js";
|
|
29
38
|
import { GROUNDED_SYSTEM_PROMPT } from "./grounded-prompt.js";
|
|
30
|
-
import { recordWorkspaceRootDenial, resolveRecordedWorkspaceRoot, } from "./workspace-root-denial-log.js";
|
|
39
|
+
import { isExpectedWorkspaceRootFailure, recordWorkspaceRootDenial, recordWorkspaceRootDenied, recordWorkspaceRootUnavailable, resolveRecordedWorkspaceRoot, workspaceRootFailureStatus, } from "./workspace-root-denial-log.js";
|
|
31
40
|
import { uncitedMemoryContextMarker, } from "./grounded-faithfulness.js";
|
|
32
41
|
import { commitGroundedTurn, discardGroundedTurn, rememberGroundedTurn, stageGroundedTurn, } from "./grounded-turn-registry.js";
|
|
33
42
|
import { assertUsableAssistantContent } from "./assistant-response.js";
|
|
34
|
-
import { buildCanonicalTurnMemoryResult, buildMemoryResult, chatClosedResult, parseClientTurnId,
|
|
43
|
+
import { buildCanonicalTurnMemoryResult, buildMemoryResult, chatClosedResult, parseClientTurnId, parseMemoryRequest, logChatRejection, runPostCommitCanonicalTurnMemorySideEffects, } from "./chat-handlers.js";
|
|
35
44
|
import { canonicalChatTurnGroundingScopeIdentity, canonicalChatTurnIdentityContent, canonicalChatTurnMemorySemantics, } from "./chat-turn-identity.js";
|
|
36
45
|
import { CHAT_TURN_WAIT_CANCELLED, runSerializedChatTurn } from "./chat-turn-serializer.js";
|
|
37
46
|
import { createRequestCancellation } from "./request-cancellation.js";
|
|
38
|
-
import { resolveAppSessionReadAuthority } from "./coding-app-session/appSessionReadAuthority.js";
|
|
47
|
+
import { beginAppSessionOperation, resolveAppSessionReadAuthority, } from "./coding-app-session/appSessionReadAuthority.js";
|
|
39
48
|
import { createOrdinaryWorkspaceRootAccess, requiresConfiguredManagedWorkspaceAuthority, resolveManagedWorkspaceRootAccess, } from "./task-workspace/workspace-root-access.js";
|
|
40
49
|
import { readBoundedRequestBody, RequestBodyCancelledError, RequestBodyTooLargeError, } from "./bounded-request-body.js";
|
|
41
50
|
import { resolveConversationMemoryContext, } from "./memory-conversation-context.js";
|
|
42
51
|
import { renderConversationMemoryContextBlock } from "./conversation-prompt.js";
|
|
43
|
-
import {
|
|
52
|
+
import { emitServerDiagnostic, serverDiagnosticFromError } from "./diagnostics-log.js";
|
|
53
|
+
import { correlationIdOrUnknown } from "./correlation.js";
|
|
44
54
|
import { evidenceRetentionObserver } from "./evidence-retention-log.js";
|
|
45
55
|
import { emitGatewayErrorDiagnostic } from "./gateway-error-diagnostic.js";
|
|
46
56
|
import { buildAnswerCitations as projectAnswerCitations, buildPackCitations, documentFormatForAtom, } from "./grounded-citation-projection.js";
|
|
47
57
|
import { persistGroundedExchange } from "./grounded-message-persistence.js";
|
|
48
|
-
import {
|
|
49
|
-
import { ensureOnDemandConversationReadiness } from "./gateway-readiness.js";
|
|
58
|
+
import { awaitInitializedConversationReadiness } from "./gateway-readiness.js";
|
|
50
59
|
import { captureConversationReadinessAdmission, mappedConversationReadinessError, validateConversationReadinessAdmission, withConversationReadinessAdmission, } from "./conversation-readiness-admission.js";
|
|
51
60
|
export { persistGroundedExchange } from "./grounded-message-persistence.js";
|
|
52
61
|
// ─── Body parsing (mirrors store-handlers' bounded reader) ────────────────────
|
|
@@ -69,8 +78,34 @@ function payloadTooLarge() {
|
|
|
69
78
|
body: errorBody("PAYLOAD_TOO_LARGE", "Request body exceeds the size limit."),
|
|
70
79
|
};
|
|
71
80
|
}
|
|
72
|
-
export function internalError(message) {
|
|
73
|
-
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);
|
|
74
109
|
}
|
|
75
110
|
// Issue #154 (GAP-B) — the dynamic `error.message` of a GatewayError may echo the provider base
|
|
76
111
|
// URL, an `Authorization: Bearer …` header, or an `api-key: …` value back from the provider's
|
|
@@ -110,26 +145,38 @@ function pathDeniedResult(error) {
|
|
|
110
145
|
body: errorBody(error.code, "The workspace path is denied by policy."),
|
|
111
146
|
};
|
|
112
147
|
}
|
|
113
|
-
|
|
114
|
-
if (error instanceof
|
|
115
|
-
return
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
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.");
|
|
125
165
|
}
|
|
126
|
-
export function
|
|
127
|
-
|
|
128
|
-
|
|
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);
|
|
129
173
|
}
|
|
130
|
-
|
|
131
|
-
|
|
174
|
+
if (failure instanceof RepoSearchInvalidQueryError ||
|
|
175
|
+
failure instanceof RepoSearchInvalidRangeError ||
|
|
176
|
+
failure instanceof RepoSearchUnsupportedFileError) {
|
|
177
|
+
return badRequest(failure.message);
|
|
132
178
|
}
|
|
179
|
+
return undefined;
|
|
133
180
|
}
|
|
134
181
|
function parseJsonObject(raw) {
|
|
135
182
|
let parsed;
|
|
@@ -291,10 +338,18 @@ function canonicalGroundedRoot(rootInput, deps, correlationId) {
|
|
|
291
338
|
if (error instanceof PathDeniedError) {
|
|
292
339
|
return pathDeniedResult(error);
|
|
293
340
|
}
|
|
294
|
-
|
|
341
|
+
if (!isExpectedWorkspaceRootFailure(error))
|
|
342
|
+
throw error;
|
|
343
|
+
recordWorkspaceRootUnavailable(error, { correlationId });
|
|
344
|
+
return unavailableWorkspaceResult(error, correlationId);
|
|
295
345
|
}
|
|
296
346
|
const redacted = deps.redactor(realRoot);
|
|
297
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 });
|
|
298
353
|
return badRequest("Connected scope root contains credential-shaped metadata.");
|
|
299
354
|
}
|
|
300
355
|
return realRoot;
|
|
@@ -314,10 +369,12 @@ function skippedFolderMessage(result) {
|
|
|
314
369
|
return body.error?.message ?? "not accessible";
|
|
315
370
|
}
|
|
316
371
|
// Fail-soft canonicalization: inaccessible/denied scopes are collected in `skipped` instead of
|
|
317
|
-
// 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.
|
|
318
374
|
function canonicalizeGroundedFolderScopes(chat, deps, scopes, request, correlationId) {
|
|
319
375
|
const canonical = [];
|
|
320
376
|
const skipped = [];
|
|
377
|
+
const sourceScopeFingerprints = new Map();
|
|
321
378
|
for (const scope of scopes) {
|
|
322
379
|
const rootInput = scope.root ?? chat.projectPath;
|
|
323
380
|
const access = groundedRootAccess(rootInput, deps, request, correlationId);
|
|
@@ -326,9 +383,12 @@ function canonicalizeGroundedFolderScopes(chat, deps, scopes, request, correlati
|
|
|
326
383
|
skipped.push({ label, message: skippedFolderMessage(access), reason: access });
|
|
327
384
|
continue;
|
|
328
385
|
}
|
|
329
|
-
|
|
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")));
|
|
330
390
|
}
|
|
331
|
-
return { canonical, skipped };
|
|
391
|
+
return { canonical, skipped, sourceScopeFingerprints };
|
|
332
392
|
}
|
|
333
393
|
// The canonical list is authoritative even when it is EMPTY. With every folder denied or
|
|
334
394
|
// inaccessible, returning the original chat would let its legacy single `connectedScope` resurface
|
|
@@ -342,7 +402,7 @@ export function buildQuery(content, nowMs) {
|
|
|
342
402
|
kind: "natural-language",
|
|
343
403
|
text: content,
|
|
344
404
|
caseSensitive: false,
|
|
345
|
-
maxResults:
|
|
405
|
+
maxResults: DEFAULT_LEXICAL_MATCH_LIMIT,
|
|
346
406
|
emittedAtMs: nowMs(),
|
|
347
407
|
};
|
|
348
408
|
}
|
|
@@ -541,32 +601,55 @@ function withPromptExcerptTotalByteBudget(pack, maxExcerptBytes) {
|
|
|
541
601
|
export function withPromptExcerptBudget(pack, totalExcerptBytes) {
|
|
542
602
|
return withPromptExcerptTotalByteBudget(pack, totalExcerptBytes);
|
|
543
603
|
}
|
|
544
|
-
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 = {}) {
|
|
545
624
|
const budgetedPack = withPromptModelInputBudget(pack, options.modelInputTokensMax);
|
|
546
625
|
const limit = modelInputPromptByteLimit(budgetedPack.budget.modelInputTokensMax);
|
|
626
|
+
const fits = (candidate) => promptByteLength(candidate) <= limit &&
|
|
627
|
+
countGatewayPromptTokens({ messages: candidate }, options.tokenAccounting) <=
|
|
628
|
+
budgetedPack.budget.modelInputTokensMax;
|
|
547
629
|
const messages = build(question, budgetedPack, redactor);
|
|
548
|
-
if (
|
|
549
|
-
return messages;
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
552
|
-
return
|
|
630
|
+
if (fits(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 };
|
|
553
635
|
const emptyPack = withPromptExcerptBudget(budgetedPack, 0);
|
|
554
|
-
const emptyMessages = build(question, emptyPack, redactor);
|
|
636
|
+
const emptyMessages = build(question, emptyPack, redactor, 0);
|
|
555
637
|
const overheadBytes = promptByteLength(emptyMessages);
|
|
556
638
|
// When overhead alone (system prompt + question + framing) exceeds the limit, no amount of
|
|
557
639
|
// excerpt trimming can bring the prompt within budget. Throw instead of sending an over-limit
|
|
558
640
|
// prompt to the provider which would result in an opaque 400 context-window error.
|
|
559
|
-
if (
|
|
641
|
+
if (!fits(emptyMessages)) {
|
|
560
642
|
throw new ContextOverflowError(`Grounded prompt overhead (${String(overheadBytes)} bytes) exceeds model input limit (${String(limit)} bytes).`);
|
|
561
643
|
}
|
|
562
644
|
let low = 0;
|
|
563
645
|
let high = Math.max(0, limit - overheadBytes);
|
|
564
|
-
let best = emptyMessages;
|
|
646
|
+
let best = { messages: emptyMessages, pack: emptyPack, omissionPathBytes: 0 };
|
|
565
647
|
while (low <= high) {
|
|
566
648
|
const totalExcerptBytes = Math.floor((low + high) / 2);
|
|
567
|
-
const
|
|
568
|
-
|
|
569
|
-
|
|
649
|
+
const candidatePack = withPromptExcerptBudget(budgetedPack, totalExcerptBytes);
|
|
650
|
+
const candidate = build(question, candidatePack, redactor, 0);
|
|
651
|
+
if (fits(candidate)) {
|
|
652
|
+
best = { messages: candidate, pack: candidatePack, omissionPathBytes: 0 };
|
|
570
653
|
low = totalExcerptBytes + 1;
|
|
571
654
|
}
|
|
572
655
|
else {
|
|
@@ -575,16 +658,42 @@ function promptBudgetedMessages(question, pack, redactor, build, options = {}) {
|
|
|
575
658
|
}
|
|
576
659
|
return best;
|
|
577
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
|
+
}
|
|
578
683
|
export function packBudgetSummary(pack) {
|
|
579
684
|
const { usage, budget } = pack;
|
|
580
685
|
return [
|
|
581
686
|
`search calls ${String(usage.searchCalls)}/${String(budget.searchCallsMax)}`,
|
|
582
|
-
|
|
687
|
+
budget.filesReadMax === null
|
|
688
|
+
? `files read ${String(usage.filesRead)}`
|
|
689
|
+
: `files read ${String(usage.filesRead)}/${String(budget.filesReadMax)}`,
|
|
583
690
|
`excerpt bytes ${String(usage.excerptBytes)}/${String(budget.excerptBytesMax)}`,
|
|
584
691
|
`model input tokens ${String(usage.modelInputTokens)}/${String(budget.modelInputTokensMax)}`,
|
|
585
692
|
`model output tokens ${String(usage.modelOutputTokens)}/${String(budget.modelOutputTokensMax)}`,
|
|
586
693
|
`rerank calls ${String(usage.rerankCalls)}/${String(budget.rerankCallsMax)}`,
|
|
587
|
-
|
|
694
|
+
budget.elapsedMsMax === null
|
|
695
|
+
? `elapsed ${String(usage.elapsedMs)} ms (no search time limit)`
|
|
696
|
+
: `elapsed ${String(usage.elapsedMs)}/${String(budget.elapsedMsMax)} ms`,
|
|
588
697
|
].join("; ");
|
|
589
698
|
}
|
|
590
699
|
export function evidenceLines(pack, redactor) {
|
|
@@ -606,7 +715,7 @@ export function evidenceLines(pack, redactor) {
|
|
|
606
715
|
const label = documentFormat === undefined
|
|
607
716
|
? "Evidence"
|
|
608
717
|
: `Document evidence (${documentFormat.toUpperCase()}, extracted text)`;
|
|
609
|
-
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)), "```");
|
|
610
719
|
}
|
|
611
720
|
}
|
|
612
721
|
if (lines.length === 0) {
|
|
@@ -614,18 +723,99 @@ export function evidenceLines(pack, redactor) {
|
|
|
614
723
|
}
|
|
615
724
|
return lines;
|
|
616
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
|
+
}
|
|
617
808
|
export function uncertaintyLines(pack, redactor) {
|
|
618
809
|
if (pack.uncertainty.length === 0)
|
|
619
810
|
return ["None."];
|
|
620
811
|
return pack.uncertainty.map((marker) => `- ${marker.kind}: ${redactedString(redactor, marker.claim)}`);
|
|
621
812
|
}
|
|
622
813
|
// The grounded system message is shared verbatim by the single-source and multi-source (#532)
|
|
623
|
-
// paths so both apply the identical untrusted-evidence
|
|
624
|
-
// 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.
|
|
625
815
|
// GROUNDED_SYSTEM_PROMPT now lives in the dependency-free ./grounded-prompt.js leaf (re-exported
|
|
626
816
|
// here for back-compat) so the hybrid path can interpolate it without a circular-import TDZ.
|
|
627
817
|
export { GROUNDED_SYSTEM_PROMPT };
|
|
628
|
-
function buildRawGroundedGatewayMessages(question, pack, redactor) {
|
|
818
|
+
function buildRawGroundedGatewayMessages(question, pack, redactor, omissionPathBytes) {
|
|
629
819
|
const safeQuestion = redactedString(redactor, question);
|
|
630
820
|
const userContent = [
|
|
631
821
|
"User question:",
|
|
@@ -637,7 +827,9 @@ function buildRawGroundedGatewayMessages(question, pack, redactor) {
|
|
|
637
827
|
`- scope kind: ${pack.scope.kind}`,
|
|
638
828
|
`- query kind: ${pack.query.kind}`,
|
|
639
829
|
`- budget/usage: ${packBudgetSummary(pack)}`,
|
|
640
|
-
`- omitted
|
|
830
|
+
`- omitted files: ${String(connectedContextOmittedCount(pack))}`,
|
|
831
|
+
...omissionReasonLines(pack),
|
|
832
|
+
...sizeExclusionLines(pack, redactor, omissionPathBytes),
|
|
641
833
|
"",
|
|
642
834
|
"Repository evidence excerpts:",
|
|
643
835
|
...evidenceLines(pack, redactor),
|
|
@@ -653,17 +845,20 @@ function buildRawGroundedGatewayMessages(question, pack, redactor) {
|
|
|
653
845
|
export function buildGroundedGatewayMessages(question, pack, redactor, options) {
|
|
654
846
|
return promptBudgetedMessages(question, pack, redactor, buildRawGroundedGatewayMessages, options);
|
|
655
847
|
}
|
|
656
|
-
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
|
+
};
|
|
657
858
|
return {
|
|
658
859
|
answer: async (question, pack) => {
|
|
659
860
|
ensureNotCancelled(signal);
|
|
660
|
-
const
|
|
661
|
-
const response = await model.call({
|
|
662
|
-
modelId,
|
|
663
|
-
messages: buildGroundedGatewayMessages(question, pack, redactor, promptOptions),
|
|
664
|
-
stream: false,
|
|
665
|
-
logContext: { correlationId },
|
|
666
|
-
}, signal);
|
|
861
|
+
const response = await withAdoptedContextWindowRetry(deps, { modelId, surface: "grounded", correlationId }, () => call(question, pack));
|
|
667
862
|
const content = response.content.trim();
|
|
668
863
|
assertUsableAssistantContent(content, modelId);
|
|
669
864
|
return {
|
|
@@ -675,10 +870,24 @@ function createGatewayAnswerer(model, modelId, redactor, signal, modelInputToken
|
|
|
675
870
|
// GEN-AI-GATEWAY-001 (RB-4): carry the finishReason so a truncated ("length") completion is
|
|
676
871
|
// surfaced by runGroundedExploration instead of being consumed as a complete answer.
|
|
677
872
|
finishReason: response.finishReason,
|
|
873
|
+
...sentPromptContextField(sent, response, currentContextProfileForModel(deps, modelId)),
|
|
678
874
|
};
|
|
679
875
|
},
|
|
680
876
|
};
|
|
681
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
|
+
}
|
|
682
891
|
function resolveGroundedAnswerModel(deps, modelId, readinessAdmission) {
|
|
683
892
|
const resolvedModel = deps.modelPortFactory(modelId);
|
|
684
893
|
if (resolvedModel === undefined) {
|
|
@@ -689,15 +898,16 @@ function resolveGroundedAnswerModel(deps, modelId, readinessAdmission) {
|
|
|
689
898
|
// Split out of defaultRunner to keep it within the line budget: the actual GroundedRunner closure
|
|
690
899
|
// invoked once per exploration input.
|
|
691
900
|
function runDefaultGroundedExploration(runnerCtx, input) {
|
|
692
|
-
const { deps, modelId, signal, contextProfile, model,
|
|
901
|
+
const { deps, modelId, signal, contextProfile, model, entailmentStage } = runnerCtx;
|
|
693
902
|
const nowMs = Date.now;
|
|
694
|
-
const budgetedInput =
|
|
695
|
-
|
|
696
|
-
: input
|
|
697
|
-
|
|
903
|
+
const budgetedInput = {
|
|
904
|
+
...input,
|
|
905
|
+
budget: input.budget ?? modelWindowAwareBudget(deps, modelId),
|
|
906
|
+
};
|
|
907
|
+
const contextPackReranker = configuredContextPackRerankerFor(deps, budgetedInput.query, signal, budgetedInput.budget.excerptBytesMax);
|
|
698
908
|
const semanticLease = configuredRepoSemanticSearchProviderLeaseFor(deps, signal, budgetedInput.workspaceRoot);
|
|
699
909
|
return runGroundedExploration(budgetedInput, {
|
|
700
|
-
answerer: createGatewayAnswerer(model, modelId,
|
|
910
|
+
answerer: createGatewayAnswerer(deps, model, modelId, signal, runnerCtx.correlationId, contextProfile?.tokenAccounting),
|
|
701
911
|
nowMs,
|
|
702
912
|
signal,
|
|
703
913
|
// ADR-0173 D5: the same id the Gateway answerer above already carries, so a git-history read
|
|
@@ -722,18 +932,18 @@ function defaultRunner(deps, modelId, readinessAdmission, signal, contextProfile
|
|
|
722
932
|
const model = resolveGroundedAnswerModel(deps, modelId, readinessAdmission);
|
|
723
933
|
if ("status" in model)
|
|
724
934
|
return model;
|
|
725
|
-
const modelInputTokensMax = groundedPromptInputTokensForCapability(chatCapability(deps, modelId));
|
|
726
935
|
// Knowledge M1.2 (#2563): the folder grounded-ask has no knowledge capsule, so entailment is
|
|
727
936
|
// governed only by whether a compatible judge model is configured (empty capsules ⇒ no policy to
|
|
728
937
|
// deny). Undefined ⇒ the stage is inert and the assembled pack is byte-identical to today.
|
|
729
|
-
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);
|
|
730
941
|
const runnerCtx = {
|
|
731
942
|
deps,
|
|
732
943
|
modelId,
|
|
733
944
|
signal,
|
|
734
945
|
contextProfile,
|
|
735
946
|
model,
|
|
736
|
-
modelInputTokensMax,
|
|
737
947
|
entailmentStage,
|
|
738
948
|
correlationId,
|
|
739
949
|
};
|
|
@@ -958,12 +1168,17 @@ function persistGroundedAuditEvidence(workerCtx, output, citationCount) {
|
|
|
958
1168
|
}
|
|
959
1169
|
async function runAsk(workerCtx) {
|
|
960
1170
|
const { content, deps } = workerCtx;
|
|
961
|
-
const query = buildQuery(content, () => Date.now());
|
|
1171
|
+
const query = buildQuery(workerCtx.retrievalContent ?? content, () => Date.now());
|
|
962
1172
|
const output = await runGroundedRunner(workerCtx, query);
|
|
963
1173
|
if (isRouteResult(output))
|
|
964
1174
|
return output;
|
|
965
|
-
|
|
966
|
-
|
|
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);
|
|
967
1182
|
}
|
|
968
1183
|
const cancelResult = ensureRouteNotCancelled(workerCtx.signal, deps, workerCtx.correlationId);
|
|
969
1184
|
if (cancelResult !== undefined)
|
|
@@ -1006,9 +1221,12 @@ function finalizeGroundedAnswer(workerCtx, output) {
|
|
|
1006
1221
|
content: assistantContent,
|
|
1007
1222
|
citations,
|
|
1008
1223
|
uncertainty: buildUncertainty(output.pack, deps.redactor),
|
|
1009
|
-
omittedCount: output.pack
|
|
1224
|
+
omittedCount: connectedContextOmittedCount(output.pack),
|
|
1010
1225
|
elapsedMs: output.elapsedMs,
|
|
1011
1226
|
contextPack,
|
|
1227
|
+
...(modelInvoked && output.promptContext !== undefined
|
|
1228
|
+
? { promptContext: output.promptContext }
|
|
1229
|
+
: {}),
|
|
1012
1230
|
};
|
|
1013
1231
|
deps.store.attachGroundedAnswer(assistantMessage.id, answer);
|
|
1014
1232
|
if (sourceEvidenceAvailable) {
|
|
@@ -1042,6 +1260,7 @@ async function runGroundedRunner(workerCtx, query) {
|
|
|
1042
1260
|
scope,
|
|
1043
1261
|
query,
|
|
1044
1262
|
answerQuestion: answerContent,
|
|
1263
|
+
currentQuestion: workerCtx.content,
|
|
1045
1264
|
answerOnlyContextAvailable: workerCtx.answerOnlyContextAvailable,
|
|
1046
1265
|
workspaceRoot: scope.workspaceRoot,
|
|
1047
1266
|
...optionalWorkspaceFs(workerCtx.workspaceFs),
|
|
@@ -1053,7 +1272,10 @@ async function runGroundedRunner(workerCtx, query) {
|
|
|
1053
1272
|
if (error instanceof ClarificationNeededError) {
|
|
1054
1273
|
return clarificationRequest(clarificationUserMessage(error));
|
|
1055
1274
|
}
|
|
1056
|
-
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 });
|
|
1057
1279
|
if (workspaceResult !== undefined)
|
|
1058
1280
|
return workspaceResult;
|
|
1059
1281
|
const gatewayResult = mappedGatewayError(error, workerCtx.deps, workerCtx.correlationId);
|
|
@@ -1108,7 +1330,7 @@ function resolveMultiSourceSeam(deps, modelId, readinessAdmission, signal, overr
|
|
|
1108
1330
|
const model = withConversationReadinessAdmission(resolvedModel, modelId, readinessAdmission, deps);
|
|
1109
1331
|
return {
|
|
1110
1332
|
retriever: defaultRetriever(signal, deps, correlationId),
|
|
1111
|
-
answerer: createMultiSourceAnswerer(model, modelId,
|
|
1333
|
+
answerer: createMultiSourceAnswerer(deps, model, modelId, signal, correlationId),
|
|
1112
1334
|
};
|
|
1113
1335
|
}
|
|
1114
1336
|
async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOverride) {
|
|
@@ -1123,7 +1345,11 @@ async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOv
|
|
|
1123
1345
|
return runMultiSourceAsk({
|
|
1124
1346
|
chat,
|
|
1125
1347
|
scopes,
|
|
1348
|
+
...(args.sourceScopeFingerprints === undefined
|
|
1349
|
+
? {}
|
|
1350
|
+
: { sourceScopeFingerprints: args.sourceScopeFingerprints }),
|
|
1126
1351
|
content: input.content,
|
|
1352
|
+
retrievalContent: input.retrievalContent,
|
|
1127
1353
|
answerContent: input.answerContent ?? input.content,
|
|
1128
1354
|
answerOnlyContextAvailable: hasAnswerOnlyContext(args),
|
|
1129
1355
|
...(input.clientTurnId === undefined ? {} : { clientTurnId: input.clientTurnId }),
|
|
@@ -1139,6 +1365,7 @@ async function dispatchMultiSourceAsk(args, deps, scopes, skippedFolders, seamOv
|
|
|
1139
1365
|
? { entailmentStageFactory: seam.entailmentStageFactory }
|
|
1140
1366
|
: {}),
|
|
1141
1367
|
preSkipped: skippedFolders.map((s) => ({ label: s.label, message: s.message })),
|
|
1368
|
+
correlationId: args.correlationId,
|
|
1142
1369
|
});
|
|
1143
1370
|
}
|
|
1144
1371
|
// Epic #532 — builds the single-source SelectedScope from the canonical list when the legacy
|
|
@@ -1191,6 +1418,7 @@ async function dispatchFolderAsk(prepared, deps, allScopes, allSkippedFolders, r
|
|
|
1191
1418
|
chat,
|
|
1192
1419
|
scope,
|
|
1193
1420
|
content: input.content,
|
|
1421
|
+
retrievalContent: input.retrievalContent,
|
|
1194
1422
|
answerContent: input.answerContent ?? input.content,
|
|
1195
1423
|
answerOnlyContextAvailable: hasAnswerOnlyContext(prepared),
|
|
1196
1424
|
...(input.clientTurnId === undefined ? {} : { clientTurnId: input.clientTurnId }),
|
|
@@ -1224,7 +1452,11 @@ async function dispatchHybridAsk(prepared, deps, skippedFolders, seam) {
|
|
|
1224
1452
|
const modelId = groundedModelId(prepared);
|
|
1225
1453
|
return runHybridGroundedAsk({
|
|
1226
1454
|
chat,
|
|
1455
|
+
...(prepared.sourceScopeFingerprints === undefined
|
|
1456
|
+
? {}
|
|
1457
|
+
: { sourceScopeFingerprints: prepared.sourceScopeFingerprints }),
|
|
1227
1458
|
content: input.content,
|
|
1459
|
+
retrievalContent: input.retrievalContent,
|
|
1228
1460
|
answerContent: input.answerContent ?? input.content,
|
|
1229
1461
|
answerOnlyContextAvailable: hasAnswerOnlyContext(prepared),
|
|
1230
1462
|
...(input.clientTurnId === undefined ? {} : { clientTurnId: input.clientTurnId }),
|
|
@@ -1247,6 +1479,11 @@ async function dispatchHybridAsk(prepared, deps, skippedFolders, seam) {
|
|
|
1247
1479
|
function canonicalizePreparedFolderScopes(prepared, deps) {
|
|
1248
1480
|
return canonicalizeGroundedFolderScopes(prepared.chat, deps, buildConnectedScopes(prepared.chat), prepared.request, prepared.correlationId);
|
|
1249
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
|
+
}
|
|
1250
1487
|
async function dispatchPreparedGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
|
|
1251
1488
|
const { chat } = prepared;
|
|
1252
1489
|
// Epic #189 — count-based dispatch over BOTH source kinds. 0+0 → no scope. Connector-free chats
|
|
@@ -1254,18 +1491,17 @@ async function dispatchPreparedGroundedAsk(prepared, deps, runner, multiSource,
|
|
|
1254
1491
|
// EXISTING single-connector path (#189, byte-identical). Everything else (folders+connector, or
|
|
1255
1492
|
// 2+ connectors) is the hybrid merge.
|
|
1256
1493
|
// Fail-soft: inaccessible/denied folders are skipped; only effective (canonical) counts drive
|
|
1257
|
-
// dispatch.
|
|
1258
|
-
|
|
1259
|
-
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);
|
|
1260
1496
|
const preparedWithCanonicalFolders = {
|
|
1261
1497
|
...prepared,
|
|
1262
1498
|
chat: withCanonicalFolderScopes(chat, canonicalFolderScopes),
|
|
1499
|
+
sourceScopeFingerprints,
|
|
1263
1500
|
};
|
|
1264
1501
|
const connectorCount = buildLocalKnowledgeScopes(chat).length;
|
|
1265
1502
|
const effectiveFolders = canonicalFolderScopes.length;
|
|
1266
1503
|
if (effectiveFolders === 0 && connectorCount === 0) {
|
|
1267
|
-
|
|
1268
|
-
return skippedFolders[0]?.reason ?? badRequest("Chat has no connected scope.");
|
|
1504
|
+
return unavailableFolderResult(skippedFolders);
|
|
1269
1505
|
}
|
|
1270
1506
|
if (connectorCount === 0) {
|
|
1271
1507
|
return dispatchFolderAsk(preparedWithCanonicalFolders, deps, canonicalFolderScopes, skippedFolders, runner, multiSource);
|
|
@@ -1282,6 +1518,7 @@ async function dispatchPreparedGroundedAsk(prepared, deps, runner, multiSource,
|
|
|
1282
1518
|
function admitGroundedUser(prepared, deps) {
|
|
1283
1519
|
if (prepared.userMessage !== undefined)
|
|
1284
1520
|
return prepared;
|
|
1521
|
+
const messageCountBeforeTurn = deps.store.countMessages(prepared.chat.id);
|
|
1285
1522
|
const newUserMessage = {
|
|
1286
1523
|
chatId: prepared.chat.id,
|
|
1287
1524
|
role: "user",
|
|
@@ -1298,7 +1535,12 @@ function admitGroundedUser(prepared, deps) {
|
|
|
1298
1535
|
identityContent: frozenGroundedTurnIdentity(prepared),
|
|
1299
1536
|
});
|
|
1300
1537
|
if (admission.kind === "admitted") {
|
|
1301
|
-
return {
|
|
1538
|
+
return {
|
|
1539
|
+
...prepared,
|
|
1540
|
+
commitTurnId,
|
|
1541
|
+
userMessage: admission.userMessage,
|
|
1542
|
+
messageCountBeforeTurn,
|
|
1543
|
+
};
|
|
1302
1544
|
}
|
|
1303
1545
|
if (admission.kind === "replay") {
|
|
1304
1546
|
return admission.assistantMessage.groundedAnswer === undefined
|
|
@@ -1322,14 +1564,10 @@ async function admitGroundedModel(prepared, deps, allowInjectedModelSeam) {
|
|
|
1322
1564
|
};
|
|
1323
1565
|
}
|
|
1324
1566
|
const modelId = resolvedModelId;
|
|
1325
|
-
//
|
|
1326
|
-
//
|
|
1327
|
-
// by design, so after every restart the first pod question answered 400 "not ready" until an
|
|
1328
|
-
// ungrounded send or a manual settings probe happened to record an observation. Probe on
|
|
1329
|
-
// demand exactly like the create/send paths; injected deterministic answer ports skip the
|
|
1330
|
-
// probe as they skip the wire.
|
|
1567
|
+
// Join configuration-owned initialization after restart or replacement. Grounded questions
|
|
1568
|
+
// never start provider probes; injected deterministic answer ports skip this await.
|
|
1331
1569
|
if (!allowInjectedModelSeam) {
|
|
1332
|
-
await
|
|
1570
|
+
await awaitInitializedConversationReadiness(deps, modelId, prepared.correlationId);
|
|
1333
1571
|
}
|
|
1334
1572
|
const readinessAdmission = captureConversationReadinessAdmission(deps, modelId);
|
|
1335
1573
|
return "status" in readinessAdmission
|
|
@@ -1344,14 +1582,62 @@ function groundedTurnConflict(code) {
|
|
|
1344
1582
|
: "The canonical chat turn identity conflicts with this request."),
|
|
1345
1583
|
};
|
|
1346
1584
|
}
|
|
1585
|
+
function compactGroundedCurrentPrompt(prepared, deps) {
|
|
1586
|
+
const modelId = groundedModelId(prepared);
|
|
1587
|
+
return compactCurrentChatPrompt({
|
|
1588
|
+
content: prepared.input.content,
|
|
1589
|
+
modelId,
|
|
1590
|
+
profile: currentContextProfileForModel(deps, modelId) ?? DEFAULT_CONTEXT_PROFILE,
|
|
1591
|
+
signal: prepared.signal,
|
|
1592
|
+
correlationId: prepared.correlationId,
|
|
1593
|
+
redact: (value) => redactedString(deps.redactor, value),
|
|
1594
|
+
call: (request, signal) => {
|
|
1595
|
+
const model = resolveGroundedAnswerModel(deps, modelId, groundedReadinessAdmission(prepared));
|
|
1596
|
+
if (isRouteResult(model))
|
|
1597
|
+
throw new ProviderError("The prompt compaction model is unavailable.", model.status);
|
|
1598
|
+
return model.call(request, signal);
|
|
1599
|
+
},
|
|
1600
|
+
});
|
|
1601
|
+
}
|
|
1602
|
+
async function withGroundedContinuity(prepared, deps) {
|
|
1603
|
+
const continuityStartedAt = Date.now();
|
|
1604
|
+
const content = await compactGroundedCurrentPrompt(prepared, deps);
|
|
1605
|
+
const continuity = groundedConversationContinuity(deps, { ...admittedGroundedUser(prepared), content }, groundedModelId(prepared), prepared.correlationId, admittedGroundedUser(prepared).content);
|
|
1606
|
+
return {
|
|
1607
|
+
...prepared,
|
|
1608
|
+
continuity,
|
|
1609
|
+
continuityStartedAt,
|
|
1610
|
+
input: {
|
|
1611
|
+
...prepared.input,
|
|
1612
|
+
content,
|
|
1613
|
+
retrievalContent: continuity.retrievalContent,
|
|
1614
|
+
answerContent: [continuity.answerContext, content].filter(Boolean).join("\n\n"),
|
|
1615
|
+
},
|
|
1616
|
+
};
|
|
1617
|
+
}
|
|
1618
|
+
function persistGroundedContinuity(prepared, deps, result) {
|
|
1619
|
+
if (result.status !== 200 || prepared.continuity?.compaction === undefined)
|
|
1620
|
+
return;
|
|
1621
|
+
if (prepared.messageCountBeforeTurn === undefined || prepared.continuityStartedAt === undefined)
|
|
1622
|
+
throw new Error("Grounded continuity evidence was not admitted.");
|
|
1623
|
+
persistChatCompactionEvidence(deps, {
|
|
1624
|
+
compaction: prepared.continuity.compaction,
|
|
1625
|
+
chatId: prepared.chat.id,
|
|
1626
|
+
modelId: groundedModelId(prepared),
|
|
1627
|
+
messageCount: prepared.messageCountBeforeTurn,
|
|
1628
|
+
startedAt: prepared.continuityStartedAt,
|
|
1629
|
+
finishedAt: Date.now(),
|
|
1630
|
+
correlationId: prepared.correlationId,
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1347
1633
|
function groundedAnswerContent(content, memory) {
|
|
1348
1634
|
const memoryText = memory.context.text.trim();
|
|
1349
1635
|
if (!memory.context.enabled || memoryText.length === 0)
|
|
1350
1636
|
return content;
|
|
1351
1637
|
return ["User question:", content, "", renderConversationMemoryContextBlock(memoryText)].join("\n");
|
|
1352
1638
|
}
|
|
1353
|
-
function groundedMemoryPreparationFailure(prepared, deps,
|
|
1354
|
-
recordGroundedMemoryFailure(
|
|
1639
|
+
function groundedMemoryPreparationFailure(prepared, deps, error) {
|
|
1640
|
+
recordGroundedMemoryFailure(prepared, deps, error);
|
|
1355
1641
|
return prepared;
|
|
1356
1642
|
}
|
|
1357
1643
|
function withPreparedGroundedMemory(prepared, context, result) {
|
|
@@ -1359,7 +1645,7 @@ function withPreparedGroundedMemory(prepared, context, result) {
|
|
|
1359
1645
|
...prepared,
|
|
1360
1646
|
input: {
|
|
1361
1647
|
...prepared.input,
|
|
1362
|
-
answerContent: groundedAnswerContent(prepared.input.content, result),
|
|
1648
|
+
answerContent: groundedAnswerContent(prepared.input.answerContent ?? prepared.input.content, result),
|
|
1363
1649
|
},
|
|
1364
1650
|
memory: {
|
|
1365
1651
|
context,
|
|
@@ -1376,7 +1662,9 @@ async function prepareGroundedMemory(prepared, deps) {
|
|
|
1376
1662
|
return prepared;
|
|
1377
1663
|
const context = prepared.memoryContext;
|
|
1378
1664
|
if (context === undefined) {
|
|
1379
|
-
return groundedMemoryPreparationFailure(prepared, deps, "
|
|
1665
|
+
return groundedMemoryPreparationFailure(prepared, deps, Object.assign(new Error("Grounded memory context is unavailable"), {
|
|
1666
|
+
name: "GroundedMemoryContextUnavailable",
|
|
1667
|
+
}));
|
|
1380
1668
|
}
|
|
1381
1669
|
try {
|
|
1382
1670
|
const result = await buildMemoryResult({
|
|
@@ -1392,32 +1680,74 @@ async function prepareGroundedMemory(prepared, deps) {
|
|
|
1392
1680
|
return withPreparedGroundedMemory(prepared, context, result);
|
|
1393
1681
|
}
|
|
1394
1682
|
catch (error) {
|
|
1395
|
-
return groundedMemoryPreparationFailure(prepared, deps,
|
|
1683
|
+
return groundedMemoryPreparationFailure(prepared, deps, error);
|
|
1396
1684
|
}
|
|
1397
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
|
+
}
|
|
1398
1710
|
function admittedGroundingScopeFailure(admitted, deps) {
|
|
1399
1711
|
const expectedIdentity = admitted.input.expectedGroundingScopeIdentity;
|
|
1400
1712
|
if (expectedIdentity !== undefined &&
|
|
1401
1713
|
expectedIdentity !== deriveChatGroundingScopeIdentity(admitted.chat)) {
|
|
1402
|
-
return
|
|
1403
|
-
status: 409,
|
|
1404
|
-
body: errorBody("GROUNDING_SCOPE_CHANGED", "The grounded source scope changed before the turn could run."),
|
|
1405
|
-
});
|
|
1714
|
+
return groundedScopeRefusal(admitted, deps, "scope-identity-mismatch");
|
|
1406
1715
|
}
|
|
1407
1716
|
if (expectedIdentity === undefined ||
|
|
1408
1717
|
buildConnectedScopes(admitted.chat).length > 0 ||
|
|
1409
1718
|
buildLocalKnowledgeScopes(admitted.chat).length > 0) {
|
|
1410
1719
|
return undefined;
|
|
1411
1720
|
}
|
|
1412
|
-
return
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
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);
|
|
1416
1746
|
}
|
|
1417
1747
|
async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybrid) {
|
|
1418
1748
|
let stagedAssistantId;
|
|
1419
1749
|
try {
|
|
1420
|
-
const memoryPrepared = await
|
|
1750
|
+
const memoryPrepared = await prepareGroundedMemoryWithContinuity(admitted, deps);
|
|
1421
1751
|
ensureNotCancelled(admitted.signal);
|
|
1422
1752
|
if (isRouteResult(memoryPrepared)) {
|
|
1423
1753
|
return settleGroundedChatTurn(admitted, deps, memoryPrepared);
|
|
@@ -1431,9 +1761,11 @@ async function runAdmittedGroundedAsk(admitted, deps, runner, multiSource, hybri
|
|
|
1431
1761
|
stagedAssistantId = result.body.assistantMessageId;
|
|
1432
1762
|
}
|
|
1433
1763
|
ensureNotCancelled(memoryPrepared.signal);
|
|
1434
|
-
const withMemory = await attachGroundedMemory(memoryPrepared, deps, result);
|
|
1764
|
+
const withMemory = withGroundedCompactionSummary(memoryPrepared, await attachGroundedMemory(memoryPrepared, deps, result));
|
|
1435
1765
|
ensureNotCancelled(memoryPrepared.signal);
|
|
1436
|
-
|
|
1766
|
+
const settled = settleGroundedChatTurn(memoryPrepared, deps, withMemory);
|
|
1767
|
+
persistGroundedContinuity(memoryPrepared, deps, settled);
|
|
1768
|
+
return settled;
|
|
1437
1769
|
}
|
|
1438
1770
|
catch (error) {
|
|
1439
1771
|
if (stagedAssistantId !== undefined)
|
|
@@ -1452,7 +1784,18 @@ async function executeGroundedAskInTurn(prepared, deps, runner, multiSource, hyb
|
|
|
1452
1784
|
if (isRouteResult(admitted))
|
|
1453
1785
|
return admitted;
|
|
1454
1786
|
const scopeFailure = admittedGroundingScopeFailure(admitted, deps);
|
|
1455
|
-
|
|
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
|
+
}
|
|
1456
1799
|
}
|
|
1457
1800
|
async function executeGroundedAsk(prepared, deps, runner, multiSource, hybrid) {
|
|
1458
1801
|
const result = await runSerializedChatTurn(deps, prepared.chat.id, prepared.signal, () => {
|
|
@@ -1493,13 +1836,11 @@ function settleGroundedChatTurn(prepared, deps, result) {
|
|
|
1493
1836
|
}
|
|
1494
1837
|
if (!groundedScopeStillCurrent(prepared, deps)) {
|
|
1495
1838
|
discardGroundedTurn(result.body.assistantMessageId);
|
|
1496
|
-
|
|
1497
|
-
return {
|
|
1498
|
-
status: 409,
|
|
1499
|
-
body: errorBody("GROUNDING_SCOPE_CHANGED", "The grounded source scope changed while the answer was in progress."),
|
|
1500
|
-
};
|
|
1839
|
+
return groundedScopeRefusal(prepared, deps, "scope-changed-during-answer");
|
|
1501
1840
|
}
|
|
1502
|
-
if (result.body.memory !== undefined ||
|
|
1841
|
+
if (result.body.memory !== undefined ||
|
|
1842
|
+
hasAnswerOnlyContext(prepared) ||
|
|
1843
|
+
prepared.continuity?.compaction !== undefined) {
|
|
1503
1844
|
deps.store.attachGroundedAnswer(result.body.assistantMessageId, result.body);
|
|
1504
1845
|
}
|
|
1505
1846
|
let completion;
|
|
@@ -1513,7 +1854,7 @@ function settleGroundedChatTurn(prepared, deps, result) {
|
|
|
1513
1854
|
if (completion.kind !== "completed") {
|
|
1514
1855
|
discardGroundedTurn(result.body.assistantMessageId);
|
|
1515
1856
|
deps.store.failChatTurn(prepared.chat.id, commitTurnId);
|
|
1516
|
-
return
|
|
1857
|
+
return groundedCompletionFailure(deps, prepared.correlationId, completion.kind);
|
|
1517
1858
|
}
|
|
1518
1859
|
commitGroundedTurn(result.body.assistantMessageId);
|
|
1519
1860
|
runGroundedPostCommitMemorySideEffects(prepared, deps, result.body);
|
|
@@ -1538,15 +1879,15 @@ function groundedAnswerBody(value) {
|
|
|
1538
1879
|
"assistantMessageId" in value &&
|
|
1539
1880
|
"content" in value);
|
|
1540
1881
|
}
|
|
1541
|
-
function recordGroundedMemoryFailure(
|
|
1542
|
-
emitServerDiagnostic(deps.diagnostics, {
|
|
1543
|
-
correlationId:
|
|
1544
|
-
timestamp: new Date(Date.now()).toISOString(),
|
|
1882
|
+
function recordGroundedMemoryFailure(prepared, deps, error) {
|
|
1883
|
+
emitServerDiagnostic(deps.diagnostics, serverDiagnosticFromError({
|
|
1884
|
+
correlationId: correlationIdOrUnknown(prepared.correlationId),
|
|
1545
1885
|
operation: "grounded.memory",
|
|
1546
1886
|
source: "grounded-qa.attach-memory",
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1887
|
+
summary: "grounded-memory-enrichment-failed",
|
|
1888
|
+
error,
|
|
1889
|
+
redact: (value) => redactString(deps.redactor, value),
|
|
1890
|
+
}));
|
|
1550
1891
|
}
|
|
1551
1892
|
function groundedCanonicalMemoryRequest(prepared, assistantContent) {
|
|
1552
1893
|
return {
|
|
@@ -1584,7 +1925,7 @@ async function attachGroundedMemory(prepared, deps, result) {
|
|
|
1584
1925
|
return memory === undefined ? markedResult : { ...markedResult, body: { ...body, memory } };
|
|
1585
1926
|
}
|
|
1586
1927
|
catch (error) {
|
|
1587
|
-
recordGroundedMemoryFailure(
|
|
1928
|
+
recordGroundedMemoryFailure(prepared, deps, error);
|
|
1588
1929
|
return markedResult;
|
|
1589
1930
|
}
|
|
1590
1931
|
}
|