@oscharko-dev/keiko 1.1.13 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -5
- package/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +13 -13
- package/dist/ui/static/__next._full.txt +24 -22
- package/dist/ui/static/__next._tree.txt +3 -3
- package/dist/ui/static/_next/static/chunks/00_o0v2hokzqm.js +1 -0
- package/dist/ui/static/_next/static/chunks/014h2nyfet3kr.js +1 -0
- package/dist/ui/static/_next/static/chunks/02ahxxpsbao7z.js +1 -0
- package/dist/ui/static/_next/static/chunks/0339vdalk0q6h.js +3 -0
- package/dist/ui/static/_next/static/chunks/{13fx5sqcncq4_.js → 05k2u3763ih_i.js} +1 -1
- package/dist/ui/static/_next/static/chunks/07f-n_9zq-s8q.js +1 -0
- package/dist/ui/static/_next/static/chunks/07l0sfn1-mid2.js +1 -0
- package/dist/ui/static/_next/static/chunks/0851fl0j1ja4e.js +1 -0
- package/dist/ui/static/_next/static/chunks/08896ukd2zxg6.js +1 -0
- package/dist/ui/static/_next/static/chunks/08nml2svyd9vv.js +4 -0
- package/dist/ui/static/_next/static/chunks/08tg5xjyy073b.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2cn33khz2ae-h.js → 08v-jyhi2uk8t.js} +1 -1
- package/dist/ui/static/_next/static/chunks/09p2ty64ellxo.js +1 -0
- package/dist/ui/static/_next/static/chunks/0_yx8_bs1t-27.js +1 -0
- package/dist/ui/static/_next/static/chunks/0b7xat6jxvrmr.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bz731buimrpv.js +1 -0
- package/dist/ui/static/_next/static/chunks/0d3a8-uxb000v.js +1 -0
- package/dist/ui/static/_next/static/chunks/0gf88p0jy1g5w.js +1 -0
- package/dist/ui/static/_next/static/chunks/0jjhji-e9mg99.js +1 -0
- package/dist/ui/static/_next/static/chunks/0jtp8te-03j1-.js +1 -0
- package/dist/ui/static/_next/static/chunks/0lw_ax6yn_z8w.js +1 -0
- package/dist/ui/static/_next/static/chunks/0mcg_spbohpl3.css +1 -0
- package/dist/ui/static/_next/static/chunks/0oocu54xdbxf3.js +2 -0
- package/dist/ui/static/_next/static/chunks/{39w0xj7fyy7sp.js → 0pf5ot48kepng.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0rs9egrg2q85w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1o2cihsnxhmh6.js → 0rsutf6da798_.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0rw0et8bt6w-b.js +1 -0
- package/dist/ui/static/_next/static/chunks/0su17ctiaqfp0.js +1 -0
- package/dist/ui/static/_next/static/chunks/0w2fp3hjrfx32.js +1 -0
- package/dist/ui/static/_next/static/chunks/0wdn9qetndtsj.js +1 -0
- package/dist/ui/static/_next/static/chunks/0wok-g3ndtvch.js +1 -0
- package/dist/ui/static/_next/static/chunks/0x42c1na2ia6m.js +1 -0
- package/dist/ui/static/_next/static/chunks/0xu2rnpdr4kzd.js +1 -0
- package/dist/ui/static/_next/static/chunks/0y3402xorco2c.js +1 -0
- package/dist/ui/static/_next/static/chunks/10p1rdlk7n_9w.js +1 -0
- package/dist/ui/static/_next/static/chunks/12aem44im45f-.js +1 -0
- package/dist/ui/static/_next/static/chunks/18kcx5kpyxr16.js +1 -0
- package/dist/ui/static/_next/static/chunks/1aivbuztyv67o.js +10 -0
- package/dist/ui/static/_next/static/chunks/1c0u0qq0vwkc4.js +1 -0
- package/dist/ui/static/_next/static/chunks/1f05h21irrvbs.js +1 -0
- package/dist/ui/static/_next/static/chunks/1ggcq_lho062y.js +1 -0
- package/dist/ui/static/_next/static/chunks/1o-own3kgpojf.js +1 -0
- package/dist/ui/static/_next/static/chunks/{25f22x86d_a1n.js → 1osovjtjgxmbl.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{29dj-5kj_vfl_.js → 1qh0x9_258ol2.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2kh0qihno0n1w.js → 1rp_smu1jjw45.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1uu9slkxpbe4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/1vy80v9kp_rqv.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0l7cc8q83migz.css → 1wj7exxi550gi.css} +1 -1
- package/dist/ui/static/_next/static/chunks/1x-sfb1_rl15-.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zczte6xkwvcl.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zqfkyeqq5cl8.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zudszthinjcb.js +1 -0
- package/dist/ui/static/_next/static/chunks/{18qu5m_in_h3x.js → 1zw11x_e-3fzu.js} +1 -1
- package/dist/ui/static/_next/static/chunks/20-u8pg5ve_cz.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1kacubgk0y2ki.js → 21-6b7rkmtvg8.js} +1 -1
- package/dist/ui/static/_next/static/chunks/22zxuap4am9bs.js +1 -0
- package/dist/ui/static/_next/static/chunks/23lstlpeh2rb-.js +1 -0
- package/dist/ui/static/_next/static/chunks/25x9hf4wdlde7.js +1 -0
- package/dist/ui/static/_next/static/chunks/261euyxjrb0lv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2astwwmbb8e53.js +1 -0
- package/dist/ui/static/_next/static/chunks/2duxlo7cg_s7_.js +3 -0
- package/dist/ui/static/_next/static/chunks/2dwrkrp-gqyej.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ef4l5re80dgi.js +1 -0
- package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +1 -0
- package/dist/ui/static/_next/static/chunks/{199p3upt-xa37.js → 2h4vqb2rt3mr1.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3inx1ugcc-jd-.css → 2hu5w89yy7_s-.css} +1 -0
- package/dist/ui/static/_next/static/chunks/2imh4llefx9d1.js +1 -0
- package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0m1163red7mw7.js → 2nlmtsm3kjmbh.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{1c1gbfapof8m0.js → 2oq1uk07ft9l0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2ov72plu69iiv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ta3jr_uw2j0x.js +1 -0
- package/dist/ui/static/_next/static/chunks/2u5_pu1uc6seh.js +1 -0
- package/dist/ui/static/_next/static/chunks/2wuj7qxm6mleh.js +1 -0
- package/dist/ui/static/_next/static/chunks/2xd3_a4jlxum2.css +1 -0
- package/dist/ui/static/_next/static/chunks/2yuvdrio9ki3a.css +39 -0
- package/dist/ui/static/_next/static/chunks/2z5c2glupanq_.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-7tka4cib69h.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-dorttkhs3i2.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-pcgkdsv7x4z.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0o_lmzxpjfeky.js → 3007ncr8g751a.js} +1 -1
- package/dist/ui/static/_next/static/chunks/307xuhrdmetj7.js +1 -0
- package/dist/ui/static/_next/static/chunks/30og31pxg8wrp.js +1 -0
- package/dist/ui/static/_next/static/chunks/32jgtvf2y-f54.js +1 -0
- package/dist/ui/static/_next/static/chunks/35ivnhnxr9dmz.js +1 -0
- package/dist/ui/static/_next/static/chunks/363iuc3t94rie.js +1 -0
- package/dist/ui/static/_next/static/chunks/36c8jty3kllje.js +1 -0
- package/dist/ui/static/_next/static/chunks/37qsy798-g74f.js +1 -0
- package/dist/ui/static/_next/static/chunks/37v998g0cm36x.js +1 -0
- package/dist/ui/static/_next/static/chunks/3946_dfcd9xr-.js +1 -0
- package/dist/ui/static/_next/static/chunks/3b05n-007vc3e.js +1 -0
- package/dist/ui/static/_next/static/chunks/3cpuzx4fetu6y.js +1 -0
- package/dist/ui/static/_next/static/chunks/3d27ozm1boe_5.js +3 -0
- package/dist/ui/static/_next/static/chunks/3eg8pcox5copv.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ftqojkan-5cl.js +1 -0
- package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3kmozkq6tgqnz.js → 3g4px251sg85e.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3gyetohi_flhb.js +1 -0
- package/dist/ui/static/_next/static/chunks/3hjs3gk92eave.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ksbq-nwkgwob.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1n3b0bhd9q0p6.js → 3l3xw2fmr7pct.js} +3 -3
- package/dist/ui/static/_next/static/chunks/3neoxf-shnu-d.js +1 -0
- package/dist/ui/static/_next/static/chunks/3or_0c84ozskx.js +1 -0
- package/dist/ui/static/_next/static/chunks/3payvp5ps2fne.css +3 -0
- package/dist/ui/static/_next/static/chunks/3q-93bizla3k1.js +1 -0
- package/dist/ui/static/_next/static/chunks/3qbbcm9fuk494.js +1 -0
- package/dist/ui/static/_next/static/chunks/3rhep1yhgo6a7.js +1 -0
- package/dist/ui/static/_next/static/chunks/3sgbsntbbci5y.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tcw3qy3rrkyf.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tqd6avtamgd5.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ty06iqiblqi4.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1ydfda18zlx4w.js → 3vjm30f1if00s.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3wz98o059mhtf.js +1 -0
- package/dist/ui/static/_next/static/chunks/3x2p8mgrihuet.js +1 -0
- package/dist/ui/static/_next/static/chunks/3xi3iilmw9_vy.js +5 -0
- package/dist/ui/static/_next/static/chunks/3z5edm1fpkcuq.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zxbqudoeow_a.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zxwlxhzm5swe.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3chx0gpjqrhod.js → 405vbzo164i84.js} +3 -3
- package/dist/ui/static/_next/static/chunks/42pls95xys34g.js +1 -0
- package/dist/ui/static/_next/static/chunks/43kutp14mqi-j.js +1 -0
- package/dist/ui/static/_next/static/chunks/43y3xn64quyo2.js +1 -0
- package/dist/ui/static/_next/static/chunks/43z5mfwx4lk4w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{turbopack-2fb3mn6go2p-t.js → turbopack-34k8wgx0iwdzg.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +22 -21
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +10 -10
- package/dist/ui/static/_not-found/__next._tree.txt +2 -2
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +22 -21
- package/dist/ui/static/atlassian-connectors/__next._full.txt +24 -23
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +2 -2
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +12 -12
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +24 -23
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +24 -22
- package/dist/ui/static/launch/__next._full.txt +27 -26
- package/dist/ui/static/launch/__next._tree.txt +3 -3
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +13 -13
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +27 -26
- package/dist/ui/static/local-knowledge/__next._full.txt +27 -26
- package/dist/ui/static/local-knowledge/__next._tree.txt +3 -3
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +13 -13
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +25 -24
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +12 -12
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +25 -24
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +27 -26
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/activity-log-store.js +54 -8
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/defect-fingerprint.js +66 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/index.js +2 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts +13 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/log-redaction.js +67 -126
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/index.js +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts +10 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze-sufficiency.js +59 -46
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts +18 -3
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.js +176 -53
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +3650 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report-attribution.js +74 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-desktop-report.js +184 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-incident-resolution.js +195 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-lifetime.js +19 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-local-query.js +20 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-query.js +442 -60
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +45 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +53 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry.js +46 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-json.js +5 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report-privacy.js +226 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts +41 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-report.js +672 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-retrieval-miss.js +363 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-manifest.js +17 -5
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-segment-scan.js +16 -9
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/server-log.js +16 -10
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-retention.js +21 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts +11 -3
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident-store.js +142 -23
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts +25 -22
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/support-incident.js +694 -198
- package/node_modules/@oscharko-dev/keiko-activity-log/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.js +25 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/init.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/init.js +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.js +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle-browser-activity.js +50 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/lifecycle.js +137 -32
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.js +3 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/runner.js +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +25 -4
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +144 -12
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +16 -113
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +71 -358
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts +1 -21
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.js +14 -112
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.js +6 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.js +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-cli.js +521 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts +647 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-report-evidence.js +338 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts +3 -5
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.js +6 -42
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +0 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +118 -1276
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-browser-handoff.js +91 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +31 -3
- package/node_modules/@oscharko-dev/keiko-cli/package.json +15 -15
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +519 -139
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +783 -113
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-label-policy.js +123 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +31805 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +35636 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +12694 -34263
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +16845 -40229
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +174 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +99 -14
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts +49 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/citation-markers.js +380 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts +12 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/client-defect-signature.js +63 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts +37 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session-pairing.js +67 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts +2 -35
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-app-session.js +1 -62
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts +25 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-repository-search.js +28 -14
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts +38 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.js +94 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api-validation.js +64 -17
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +8 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts +17 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-constants.js +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime.js +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-validation.js +27 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts +30 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench.js +27 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts +39 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-context.js +230 -100
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/connected-search-abstention.js +14 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-compaction-validation.js +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering-validation.js +8 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/context-engineering.js +20 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/contract-validation-primitives.js +12 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +184 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +750 -11
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +17 -12
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +76 -36
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-m7.js +0 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +92 -7
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +54 -10
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.js +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts +35 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.js +125 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +9 -9
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.js +388 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts +26 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.js +109 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/opencode-service-host.js +151 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.d.ts +5 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/store-fingerprint.js +16 -16
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts +33 -17
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.js +230 -26
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-json.js +206 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-policy.js +11 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report-producer.js +107 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts +154 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.js +74 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +71 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace-contract-primitives.js +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.js +18 -0
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +25 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/compaction-evidence.js +3 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/connected-context-evidence.js +28 -5
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/context-assembly-redaction.js +1 -0
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/citation-attacher.js +49 -38
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/grounded-answer-runner.js +64 -25
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/conversation/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.js +6 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/_internal.js +2 -33
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/parsers/html-parser.js +5 -4
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/index.js +2 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/retrieval-runner.js +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/scoped-vector-search.js +18 -10
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts +0 -2
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.js +0 -11
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts +0 -11
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.js +9 -78
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +3 -0
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.d.ts +0 -12
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/cipher.js +0 -32
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts +2 -11
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.js +10 -144
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/index.js +7 -14
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/paths.js +17 -48
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/capabilities.js +24 -10
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +203 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/embedding.js +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway-attempt-admission.js +44 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +113 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +696 -138
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +28 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts +5 -4
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.js +83 -10
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/normalize.js +54 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +2 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +17 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +377 -77
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +3 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.js +4 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prompt-admission.js +5 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +49 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +168 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +629 -72
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts +9 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/toolCatalogBridge.js +62 -16
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/backends.js +41 -15
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.js +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/local-docker-endpoint.js +128 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +49 -7
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/runtime-gateway.js +31 -6
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/seatbelt-execution-root.js +141 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/select.js +2 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts +18 -3
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/errors/gateway.js +40 -7
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts +85 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.js +128 -3
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.js +183 -25
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts +12 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +65 -15
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-concurrency.js +84 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts +13 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.js +14 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +48 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-resurfacing.js +28 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-thresholds.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.js +111 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-log.js +101 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-status.js +235 -33
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-continuity-log.js +9 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-grounding.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +161 -79
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts +27 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-history-snapshot.js +48 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-scope-update-log.js +51 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +58 -21
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +790 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/appSessionReadAuthority.js +112 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +31 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +6 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +10 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts +9 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.js +13 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionRegistry.js +59 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts +11 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/ciRepairPromptReservation.js +21 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +8 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.js +85 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +50 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts +14 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.js +33 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +46 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.js +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts +51 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.js +97 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +8 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +265 -29
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +37 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +416 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts +5 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.js +14 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRefusalEscalation.js +305 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts +100 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRepositoryInstructions.js +363 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts +71 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRunEffort.js +294 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeTerminalCause.js +65 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerificationContinuation.js +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +201 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolAuthorityPort.js +733 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +262 -57
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +190 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.js +57 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolGovernedDelegate.js +14 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolInvocationRegistry.js +50 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +21 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +143 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts +63 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +710 -170
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts +108 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReplacementEdits.js +477 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts +2 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +53 -46
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.js +51 -52
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/governedToolModelContent.js +179 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/materializedPatchRegistry.js +61 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts +7 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.js +48 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessPaths.js +14 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessProtocol.js +11 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js +28 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeFunctionalHarness/_governedTools.js +48 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +5 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.js +15 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeNativeContext.js +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts +6 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.js +15 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +17 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +198 -43
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +97 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +1334 -103
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeServiceHostArtifact.js +176 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +177 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.js +131 -38
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +298 -32
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +14 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2LiveText.js +213 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +2 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.js +15 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +25 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +227 -40
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +20 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +224 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +20 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/repositorySearchProof.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.functional/skillDiscoveryProof.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.js +262 -60
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts +18 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeWorkspaceAuthority.js +43 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionWorkspaceHeadReader.js +23 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +38 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.js +115 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeGatewayProcessSandbox.js +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeProcessSupervisor.js +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts +100 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextRead.js +435 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts +61 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadAbsence.js +123 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadArtifact.js +26 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadNodeProcess.js +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProcess.js +17 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts +69 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/secureWorkspaceTextReadProtocol.js +266 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts +15 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +792 -126
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +139 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/command-runner.js +176 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-admission.js +72 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/conversation-readiness-log.js +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/correlation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/correlation.js +8 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/credentialVault.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +61 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +281 -77
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +108 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +9 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.js +21 -94
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRootBoundary.js +60 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts +13 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +180 -74
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentSessionRegistry.js +81 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyEvidence.js +35 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/bufferSafetyTargets.js +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts +26 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/changesetLineBreakProvenance.js +87 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/codingContextProviders.js +0 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +91 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts +128 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecutionLog.js +213 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRunner.js +72 -24
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationRuntimeTarget.js +121 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchEvidence.js +75 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchService.js +230 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files-deny.js +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts +2 -25
- package/node_modules/@oscharko-dev/keiko-server/dist/files.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/files.js +76 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts +56 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-context-window.js +432 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-discovery-log.js +59 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +16 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +12 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +367 -109
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-reranker-probe.js +30 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-route-deadline.js +11 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts +38 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +1354 -184
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.js +6 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup-activity.js +74 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-startup.js +282 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +12 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +30 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitDraftQuality.js +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.js +11 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitPorcelainStatus.js +46 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryRoutes.js +68 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRoutes.js +57 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-activity.js +177 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-assessment.js +69 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-evidence.js +53 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer-repair.js +120 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts +57 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-answer.js +195 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-assistant-referents.js +133 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-candidate-ordering.js +103 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-capability.js +79 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts +57 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +297 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-repair.js +117 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-diagnostics.js +25 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.js +39 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-contextual-fallback.js +41 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-conversation-continuity.js +126 -24
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts +42 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-diagnostic-references.js +91 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-directory-iteration.js +60 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts +7 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-document-evidence.js +63 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.js +61 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts +28 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-eval-support.js +140 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts +20 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-evidence-selection.js +116 -53
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-explicit-paths.js +385 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness-eval.js +123 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +76 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.js +677 -121
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-follow-up.js +198 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts +16 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-latency-eval.js +69 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.d.ts +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-metadata-retention.js +123 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-multi-source-budget.js +6 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts +128 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-orchestrator.js +4801 -850
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-overview-fallback.js +81 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-pack-validation.js +87 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-plural-synthesis.js +74 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-preselection-reranker.js +93 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.js +33 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt.js +35 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +37 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.js +712 -212
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +42 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.js +682 -142
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +49 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +756 -172
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts +32 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-repo-semantic-search.js +382 -58
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +57 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank.js +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-retrieval-eval.js +29 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts +32 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-scope-context.js +75 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-selection-quality.js +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-semantic-request.js +55 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-diagnostics.js +109 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace-cycles.js +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts +47 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-symbol-trace.js +1054 -84
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-recency.js +190 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-worktree-request.js +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/index.js +8 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/knowledge-prompt-window.js +136 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-grounded-qa.js +235 -65
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +19 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-conv-handlers.js +11 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.js +43 -32
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaSnapshotBuilder.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/modelPolicyRoutes.js +36 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +4 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/read-handlers.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/server.js +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chat-grounding-scope-identity.js +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +22 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts +0 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +26 -129
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/paths.js +26 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.js +161 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +102 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-download.js +239 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-evidence.js +347 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts +31 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-job.js +169 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.js +149 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-worker.js +43 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/local-checkout.js +37 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/routes.js +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolDispatch.js +10 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts +20 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolFacadeBridge.js +96 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolRuntimeAuthority.js +47 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.js +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-staging-verification.js +23 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.js +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-registry.js +3 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-speech-text.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-index-provider.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +76 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-state-handlers.js +3 -100
- package/node_modules/@oscharko-dev/keiko-server/package.json +23 -23
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +9 -25
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.js +210 -113
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/profile.js +15 -2
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/exec.js +80 -10
- package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-content.js +142 -49
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch-parse.js +14 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/patch.js +24 -9
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts +16 -4
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +198 -25
- package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/failure-location.js +34 -17
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +35 -3
- package/node_modules/@oscharko-dev/keiko-verification/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/plan.js +25 -16
- package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/targeted-project.js +37 -0
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/failure-parse.js +93 -15
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/bug-investigation/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts +10 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +331 -49
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/compaction.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/index.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/reranker.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/anchors.js +374 -42
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +5 -3
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +2 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts +7 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/intent.js +124 -7
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +25 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.js +707 -91
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/references.js +159 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.js +21 -18
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/index.js +2 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/rank.js +28 -64
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/scoring.js +44 -29
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/signals.js +141 -45
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/_memfs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/_memfs.js +7 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +235 -38
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts +22 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligence.js +660 -105
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.js +4 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearch.js +140 -57
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts +1 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchResult.js +0 -15
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +37 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +306 -18
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractAdapter.js +31 -9
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractGraph.js +35 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractSource.js +40 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/endpointContractTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/fs.js +48 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/ignore.js +2 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/importGraphEdges.js +11 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts +10 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +9 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +57 -8
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +849 -144
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts +8 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchEntries.js +29 -24
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchExcerptWindow.js +189 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchHtml.js +21 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +50 -21
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +15 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +121 -34
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +26 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +65 -22
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchQueryTerms.js +97 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRetention.js +70 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchRoutes.js +154 -18
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts +20 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +253 -56
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts +14 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSemantic.js +63 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchSourceInspection.js +37 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.js +473 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +10 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +237 -20
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapters.js +18 -14
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.js +61 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/symbolGraphLexing.js +13 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testSourcePairing.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/testing.js +4 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/types.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +14 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.js +119 -42
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexQueryMatch.js +71 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts +47 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndexStreaming.js +231 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspacePathDiscovery.js +178 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/xmlEntities.js +34 -0
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +4 -3
- package/package.json +33 -31
- package/release-impact.catalog.json +211 -0
- package/scripts/lib/local-state-audit.mjs +26 -11
- package/vendor/oscharko-dev-keiko-activity-log-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.1.13.tgz → oscharko-dev-keiko-connectors-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.1.13.tgz → oscharko-dev-keiko-evaluations-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.1.13.tgz → oscharko-dev-keiko-git-1.2.1.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.1.13.tgz → oscharko-dev-keiko-harness-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.1.13.tgz → oscharko-dev-keiko-memory-governance-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.13.tgz → oscharko-dev-keiko-quality-intelligence-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.1.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.1.13.tgz → oscharko-dev-keiko-sdk-1.2.1.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.1.tgz +0 -0
- package/dist/ui/static/_next/static/chunks/000t9p2ysi3dv.css +0 -1
- package/dist/ui/static/_next/static/chunks/00dd_gyzi9unw.js +0 -1
- package/dist/ui/static/_next/static/chunks/00n029ow-5_tt.js +0 -3
- package/dist/ui/static/_next/static/chunks/01n8x8_z3012u.js +0 -1
- package/dist/ui/static/_next/static/chunks/02epwnm5oro9c.css +0 -26
- package/dist/ui/static/_next/static/chunks/04y8gqfjksqzo.js +0 -1
- package/dist/ui/static/_next/static/chunks/0cksy9u2ysiuy.js +0 -1
- package/dist/ui/static/_next/static/chunks/0elflgy2cg1jb.js +0 -1
- package/dist/ui/static/_next/static/chunks/0gia_iwqox3xm.js +0 -1
- package/dist/ui/static/_next/static/chunks/0k931k8qwqyft.js +0 -1
- package/dist/ui/static/_next/static/chunks/0kmepj4rmkj19.js +0 -1
- package/dist/ui/static/_next/static/chunks/0l46-80gche_i.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ojvvjnsf38bk.js +0 -1
- package/dist/ui/static/_next/static/chunks/0p2ekj8g4s6t2.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +0 -1
- package/dist/ui/static/_next/static/chunks/0tl_05c5ux5ut.js +0 -1
- package/dist/ui/static/_next/static/chunks/0u7vyqk91gjb8.js +0 -1
- package/dist/ui/static/_next/static/chunks/0v9jkxfma7fks.js +0 -1
- package/dist/ui/static/_next/static/chunks/0y68jeskhcm2k.js +0 -1
- package/dist/ui/static/_next/static/chunks/0z5be09yla9lp.js +0 -1
- package/dist/ui/static/_next/static/chunks/0zlw46qz0crxg.css +0 -1
- package/dist/ui/static/_next/static/chunks/117xhn896fsmt.js +0 -1
- package/dist/ui/static/_next/static/chunks/13q3e5wnz6lps.css +0 -1
- package/dist/ui/static/_next/static/chunks/14rs31u4u36yy.js +0 -1
- package/dist/ui/static/_next/static/chunks/159szpr5ffygs.js +0 -1
- package/dist/ui/static/_next/static/chunks/15orau2hhjb1f.js +0 -1
- package/dist/ui/static/_next/static/chunks/1b7ig6f2t71i_.js +0 -1
- package/dist/ui/static/_next/static/chunks/1bdojlx9hv0c5.js +0 -1
- package/dist/ui/static/_next/static/chunks/1be0-x1mk56wu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1d7xigpwq-xq8.js +0 -1
- package/dist/ui/static/_next/static/chunks/1dwc7p2rl-hs6.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hk335vrug1rc.js +0 -1
- package/dist/ui/static/_next/static/chunks/1hucqkor7zgbn.js +0 -1
- package/dist/ui/static/_next/static/chunks/1j6nqp8yrqyhu.js +0 -1
- package/dist/ui/static/_next/static/chunks/1kxhf3ld28pzk.js +0 -1
- package/dist/ui/static/_next/static/chunks/1logclobi6726.js +0 -1
- package/dist/ui/static/_next/static/chunks/1lrj3d157kay1.js +0 -5
- package/dist/ui/static/_next/static/chunks/1nie2fvj8iyvq.js +0 -1
- package/dist/ui/static/_next/static/chunks/1o3z4r4xrlbda.js +0 -1
- package/dist/ui/static/_next/static/chunks/1pnysuel-a2r1.js +0 -1
- package/dist/ui/static/_next/static/chunks/1szpnddxqmzhy.js +0 -1
- package/dist/ui/static/_next/static/chunks/1tkt9f0xnc4fe.js +0 -1
- package/dist/ui/static/_next/static/chunks/1u_s3uvh9p4j7.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uetvnnpa5z22.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uigiy7xdzirs.js +0 -1
- package/dist/ui/static/_next/static/chunks/1uulmf99vtuyt.js +0 -1
- package/dist/ui/static/_next/static/chunks/1wa9m6c88mg3p.js +0 -1
- package/dist/ui/static/_next/static/chunks/1xzxhtenb7_sx.css +0 -1
- package/dist/ui/static/_next/static/chunks/202kx3p8axlmr.js +0 -1
- package/dist/ui/static/_next/static/chunks/20b456jf1ggzu.css +0 -1
- package/dist/ui/static/_next/static/chunks/2384n1pce2w1h.js +0 -1
- package/dist/ui/static/_next/static/chunks/252wybdcea74g.js +0 -1
- package/dist/ui/static/_next/static/chunks/271r_v0nh0vy-.js +0 -1
- package/dist/ui/static/_next/static/chunks/2_o61-akoq549.js +0 -1
- package/dist/ui/static/_next/static/chunks/2_u63ddjyhbpm.js +0 -3
- package/dist/ui/static/_next/static/chunks/2b78j2josay3e.js +0 -1
- package/dist/ui/static/_next/static/chunks/2cw7v8t4jg669.js +0 -1
- package/dist/ui/static/_next/static/chunks/2gqs8fif3137x.js +0 -3
- package/dist/ui/static/_next/static/chunks/2iehfums033xv.css +0 -3
- package/dist/ui/static/_next/static/chunks/2j16o4ghz4iqx.js +0 -1
- package/dist/ui/static/_next/static/chunks/2oxvgl3qb19wf.js +0 -1
- package/dist/ui/static/_next/static/chunks/2r4vn_6anv2cw.js +0 -5
- package/dist/ui/static/_next/static/chunks/2s5wt9bf-ox40.js +0 -1
- package/dist/ui/static/_next/static/chunks/2s9-91g2jic6u.js +0 -1
- package/dist/ui/static/_next/static/chunks/2tmor5n3xss6c.js +0 -3
- package/dist/ui/static/_next/static/chunks/2wd7di0z2l6il.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ymm_n9gbcdcw.js +0 -1
- package/dist/ui/static/_next/static/chunks/2ywqac8g8us1n.css +0 -1
- package/dist/ui/static/_next/static/chunks/3-ys11qyww0y6.js +0 -1
- package/dist/ui/static/_next/static/chunks/30botqyyk9ugo.js +0 -1
- package/dist/ui/static/_next/static/chunks/30p9b535cwzhr.js +0 -1
- package/dist/ui/static/_next/static/chunks/31mnda46lo2b0.js +0 -1
- package/dist/ui/static/_next/static/chunks/338jl640mvtkg.js +0 -1
- package/dist/ui/static/_next/static/chunks/351uy__m9eafa.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_cgafsc6hy1_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_exo95bp9tt2.js +0 -1
- package/dist/ui/static/_next/static/chunks/3aqtjd-a1ygis.js +0 -1
- package/dist/ui/static/_next/static/chunks/3bl12pe7lsanc.js +0 -1
- package/dist/ui/static/_next/static/chunks/3buu6m28ig2oz.js +0 -1
- package/dist/ui/static/_next/static/chunks/3hft62celuigp.js +0 -1
- package/dist/ui/static/_next/static/chunks/3i0iog52c1ajg.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ibevys2o09xx.js +0 -1
- package/dist/ui/static/_next/static/chunks/3im1pldojqzmu.js +0 -1
- package/dist/ui/static/_next/static/chunks/3iptbrztxckih.js +0 -1
- package/dist/ui/static/_next/static/chunks/3iv5llh4xg-7v.js +0 -1
- package/dist/ui/static/_next/static/chunks/3jtbes4v4ouyw.js +0 -1
- package/dist/ui/static/_next/static/chunks/3lq5zd1qvhcfw.js +0 -1
- package/dist/ui/static/_next/static/chunks/3m_idsf90zq5u.js +0 -1
- package/dist/ui/static/_next/static/chunks/3mes_qld9wgti.js +0 -1
- package/dist/ui/static/_next/static/chunks/3n4gsbv-im5ia.js +0 -1
- package/dist/ui/static/_next/static/chunks/3timx0h4kcna0.js +0 -1
- package/dist/ui/static/_next/static/chunks/3u-4amh4iusi1.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uacpjje41xz5.js +0 -1
- package/dist/ui/static/_next/static/chunks/3uovpxgynmdkk.js +0 -1
- package/dist/ui/static/_next/static/chunks/3wcuc7e2bz4-l.js +0 -1
- package/dist/ui/static/_next/static/chunks/3xaa0t5drdxz3.js +0 -1
- package/dist/ui/static/_next/static/chunks/3yqrxwndy9_f3.js +0 -1
- package/dist/ui/static/_next/static/chunks/40g2_9ovqiuiu.js +0 -1
- package/dist/ui/static/_next/static/chunks/40ol4dc9uptck.js +0 -10
- package/dist/ui/static/_next/static/chunks/413lmui4la1xe.js +0 -1
- package/dist/ui/static/_next/static/chunks/41ca6l5ikqt65.js +0 -1
- package/dist/ui/static/_next/static/chunks/44jv6p8ly-u3e.js +0 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts +0 -29
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-selective-export.js +0 -30
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts +0 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figma/figmaConcurrency.js +0 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts +0 -29
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-fingerprints.js +0 -135
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts +0 -7
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.d.ts.map +0 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codingRepositorySearchInventory.js +0 -24
- package/vendor/oscharko-dev-keiko-activity-log-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.1.13.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.1.13.tgz +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{-GseUdaJoAYnEgt-Dl41f → FS1LLJ_p3joZhfRkXBRhf}/_ssgManifest.js +0 -0
package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import { createHash, timingSafeEqual } from "node:crypto";
|
|
1
|
+
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
2
2
|
import { DEFAULT_SANDBOX_POLICY, GOVERNED_TOOL_SETTLEMENT_GRACE_MS, } from "@oscharko-dev/keiko-contracts/runtime/tools";
|
|
3
3
|
import { chmodSync, existsSync, mkdirSync, readFileSync, rmSync, statSync, writeFileSync, } from "node:fs";
|
|
4
4
|
import {} from "node:http";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { DatabaseSync } from "node:sqlite";
|
|
7
|
+
import { encodeSecureWorkspaceNativeResponse, encodeSecureWorkspaceNativeDirectory, } from "./secureWorkspaceTextReadProtocol.js";
|
|
7
8
|
import { contentFreeErrorClass, describeError, emitServerDiagnostic, } from "../diagnostics-log.js";
|
|
8
9
|
import { isValidCorrelationId } from "../correlation.js";
|
|
9
10
|
import { createCodingRuntimeManager, } from "./codingRuntimeManager.js";
|
|
10
11
|
import { CODING_TOOL_MAX_BODY_BYTES, CODING_TOOL_MAX_IN_FLIGHT, parseCodingToolRequest, } from "./codingToolIpc.js";
|
|
11
|
-
import { humanDecisionFeedback, humanDecisionToolResult } from "./codingToolFacade.js";
|
|
12
|
+
import { codingToolEditPresentation, humanDecisionFeedback, humanDecisionToolResult, } from "./codingToolFacade.js";
|
|
13
|
+
import { isDenied } from "@oscharko-dev/keiko-workspace";
|
|
14
|
+
import { isSecureWorkspaceNativeRelativePath, isSecureWorkspaceNativeRange, } from "./secureWorkspaceTextRead.js";
|
|
15
|
+
import { isCodingSafeActivityPresentationPath, } from "@oscharko-dev/keiko-contracts/runtime/coding-safe-activity";
|
|
12
16
|
import { createOpenCodeV2HttpClient, parseOpenCodeV2ChildEndpoint, } from "./opencodeV2HttpClient.js";
|
|
13
17
|
import { createOpenCodeV2HistoryProjection, OpenCodeV2HistoryError } from "./opencodeV2History.js";
|
|
14
18
|
import { recordContextPresentation } from "./codingRuntimeHistory.js";
|
|
@@ -18,9 +22,11 @@ import { buildOpenCodeLaunchProfile, OPENCODE_RUNTIME_READINESS_PROMPT, } from "
|
|
|
18
22
|
import { createGeneratedOpenCodeV2Plugins, createOpenCodeRuntimeAdapter, } from "./opencodeRuntimeAdapter.js";
|
|
19
23
|
import { OPENCODE_HISTORY_RESPONSE_MAX_BYTES, projectOpenCodePermissionRequestId, } from "./opencodeProtocol.js";
|
|
20
24
|
import { OPEN_CODE_V2_PROTOCOL_SURFACE_ALGORITHM, projectOpenCodeV2ProtocolSurface, } from "./opencodeProtocolSurface.js";
|
|
21
|
-
import { OPENCODE_PINNED_VERSION } from "./opencodeToolSchemas.js";
|
|
25
|
+
import { openCodeVisibleToolNames, OPENCODE_PINNED_VERSION, } from "./opencodeToolSchemas.js";
|
|
26
|
+
import { recordGovernedToolModelContent } from "./governedToolModelContent.js";
|
|
27
|
+
import { processServerLogSink } from "../process-log-sink.js";
|
|
22
28
|
import { CodingRuntimeQuestionAnswerRejectedError } from "./codingRuntimeQuestionPort.js";
|
|
23
|
-
import { openCodeCatalogSettlementBudgetMs } from "../tool-catalog/catalogToolFacadeBridge.js";
|
|
29
|
+
import { openCodeCatalogAliasFor, openCodeCatalogSettlementBudgetMs, } from "../tool-catalog/catalogToolFacadeBridge.js";
|
|
24
30
|
import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
25
31
|
const SIDECAR_SESSION_BOUND_OPERATION = defineActivityLogOperation({
|
|
26
32
|
contractKind: "activity-log-operation",
|
|
@@ -55,16 +61,33 @@ const PINNED_RAW_SCHEMA_SHA256 = "1362671d8cfdcb925b3a9fd61eaa20152e4c587746445a
|
|
|
55
61
|
const DIGEST = /^[a-f0-9]{64}$/u;
|
|
56
62
|
const ABORT_SETTLEMENT_TIMEOUT_MS = 30_000;
|
|
57
63
|
const INITIAL_TURN_BASELINE_STABILIZATION_MS = 500;
|
|
58
|
-
|
|
64
|
+
const HISTORY_SYNC_MIN_INTERVAL_MS = 100;
|
|
65
|
+
import { prepareOpenCodeServiceHostLaunch, } from "./opencodeServiceHostArtifact.js";
|
|
66
|
+
export function createOpenCodeRuntimeComposition(configured) {
|
|
67
|
+
const captured = { ...configured };
|
|
68
|
+
const toolProfile = captured.toolProfile ?? "direct";
|
|
69
|
+
openCodeVisibleToolNames(toolProfile);
|
|
70
|
+
const input = { ...captured, toolProfile };
|
|
59
71
|
const runs = new Map();
|
|
60
72
|
const approvals = createOpenCodeV2ApprovalRequests(input.diagnostics);
|
|
61
|
-
const bridge = createToolBridge(
|
|
73
|
+
const bridge = createToolBridge({
|
|
74
|
+
capability: input.capabilities.toolFacadeCapability,
|
|
75
|
+
facade: input.toolFacade,
|
|
76
|
+
settleTool: input.safeActivity?.settleTool,
|
|
77
|
+
beginTool: input.safeActivity?.beginTool,
|
|
78
|
+
diagnostics: input.diagnostics,
|
|
79
|
+
renderedResults: renderedResultLog(input),
|
|
80
|
+
resolveWorkspaceRootAccess: input.resolveWorkspaceRootAccess,
|
|
81
|
+
activityLog: input.activityLog ?? processServerLogSink(),
|
|
82
|
+
}, input.toolBridge, input.toolFacadeOrigin, { approvals, runs });
|
|
62
83
|
const lifecycle = lifecycleAdapter(input, bridge, runs);
|
|
63
84
|
const manager = createCodingRuntimeManager({
|
|
64
85
|
supervisor: input.supervisor,
|
|
65
86
|
processEnv: {},
|
|
87
|
+
diagnostics: input.diagnostics,
|
|
66
88
|
openCodeLifecycleAdapter: lifecycle,
|
|
67
89
|
portableRuntimeResolver: () => input.portable,
|
|
90
|
+
canSpawnRuntime: input.canSpawnRuntime,
|
|
68
91
|
...(input.resolveWorkspaceRootAccess === undefined
|
|
69
92
|
? {}
|
|
70
93
|
: { resolveWorkspaceRootAccess: input.resolveWorkspaceRootAccess }),
|
|
@@ -76,6 +99,7 @@ export function createOpenCodeRuntimeComposition(input) {
|
|
|
76
99
|
...input.authorityLifecycle,
|
|
77
100
|
});
|
|
78
101
|
return {
|
|
102
|
+
prepareServiceHost: (request, receipt) => prepare(input, bridge, runs, request, receipt),
|
|
79
103
|
manager,
|
|
80
104
|
toolBridge: bridge.publicPort,
|
|
81
105
|
runPort: createRunPort(runs, input.diagnostics, input.activityLog, approvals),
|
|
@@ -352,29 +376,41 @@ function lifecycleAdapter(input, bridge, runs) {
|
|
|
352
376
|
dispose();
|
|
353
377
|
};
|
|
354
378
|
},
|
|
355
|
-
dispose:
|
|
356
|
-
input.safeActivity?.clear();
|
|
357
|
-
bridge.approvals.close();
|
|
358
|
-
const run = runs.get(runId);
|
|
359
|
-
if (run === undefined)
|
|
360
|
-
return true;
|
|
361
|
-
run.ready = false;
|
|
362
|
-
input.gatewayReadiness.clear(runId);
|
|
363
|
-
try {
|
|
364
|
-
await run.runtimeAdapter?.close();
|
|
365
|
-
await bridge.close();
|
|
366
|
-
rmSync(run.runRoot, { recursive: true, force: true });
|
|
367
|
-
}
|
|
368
|
-
catch {
|
|
369
|
-
// Surface disposal failure on the port's boolean channel; the manager routes a false
|
|
370
|
-
// result into the same reap-failure handling it applies to a thrown disposal today.
|
|
371
|
-
return false;
|
|
372
|
-
}
|
|
373
|
-
runs.delete(runId);
|
|
374
|
-
return true;
|
|
375
|
-
},
|
|
379
|
+
dispose: (runId, signal) => disposeRun(input, bridge, runs, runId, signal),
|
|
376
380
|
};
|
|
377
381
|
}
|
|
382
|
+
async function disposeRun(input, bridge, runs, runId, signal) {
|
|
383
|
+
const run = runs.get(runId);
|
|
384
|
+
if (run !== undefined)
|
|
385
|
+
run.ready = false;
|
|
386
|
+
try {
|
|
387
|
+
const drained = bridge.close(signal);
|
|
388
|
+
input.safeActivity?.clear();
|
|
389
|
+
input.gatewayReadiness.clear(runId);
|
|
390
|
+
if (!(await drained))
|
|
391
|
+
return false;
|
|
392
|
+
if (run === undefined)
|
|
393
|
+
return true;
|
|
394
|
+
if (!currentDisposal(runs, run, signal))
|
|
395
|
+
return false;
|
|
396
|
+
await run.runtimeAdapter?.close();
|
|
397
|
+
if (!currentDisposal(runs, run, signal))
|
|
398
|
+
return false;
|
|
399
|
+
rmSync(run.runRoot, { recursive: true, force: true });
|
|
400
|
+
runs.delete(runId);
|
|
401
|
+
return true;
|
|
402
|
+
}
|
|
403
|
+
catch (error) {
|
|
404
|
+
recordCompositionDisposalFailure(input.diagnostics, runId, "run-dispose", error);
|
|
405
|
+
return false;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
function disposalCancelled(signal) {
|
|
409
|
+
return signal?.aborted === true;
|
|
410
|
+
}
|
|
411
|
+
function currentDisposal(runs, run, signal) {
|
|
412
|
+
return !disposalCancelled(signal) && runs.get(run.runId) === run;
|
|
413
|
+
}
|
|
378
414
|
// KEIKO-0320: the prepare cleanup calls (bridge.close, rmSync) can each throw on their own — a
|
|
379
415
|
// permission-denied unlink, a socket teardown failure. Without an inner guard, a throw here
|
|
380
416
|
// escapes as an uncaught rejection and the outer manager relabels the resulting timeout as a
|
|
@@ -382,50 +418,59 @@ function lifecycleAdapter(input, bridge, runs) {
|
|
|
382
418
|
// redacted operator diagnostic when the disposal itself fails (#3099 P2 follow-up: previously
|
|
383
419
|
// the failure was silently swallowed, so a permission-error leak left the private run root on
|
|
384
420
|
// disk with no diagnostic and no retry hook).
|
|
385
|
-
function
|
|
421
|
+
function recordCompositionDisposalFailure(diagnostics, runId, operation, error) {
|
|
422
|
+
const detail = describeError(error);
|
|
386
423
|
emitServerDiagnostic(diagnostics, {
|
|
387
424
|
correlationId: runId,
|
|
388
425
|
timestamp: new Date().toISOString(),
|
|
389
426
|
operation: "coding-runtime.opencode-composition",
|
|
390
427
|
source: `opencode-runtime-composition.${operation}`,
|
|
391
428
|
errorClass: contentFreeErrorClass(error),
|
|
392
|
-
message: operation,
|
|
429
|
+
message: operation === "run-dispose" ? "server-operation-failed" : operation,
|
|
430
|
+
code: operation,
|
|
431
|
+
...(detail.frames === undefined ? {} : { frames: detail.frames }),
|
|
432
|
+
...(detail.causeChain === undefined ? {} : { causeChain: detail.causeChain }),
|
|
393
433
|
});
|
|
394
434
|
}
|
|
395
|
-
async function disposeFailedPrepare(bridge, runRoot, runId, diagnostics) {
|
|
435
|
+
async function disposeFailedPrepare(bridge, runRoot, runId, diagnostics, signal) {
|
|
396
436
|
try {
|
|
397
|
-
await bridge.close()
|
|
437
|
+
if (!(await bridge.close(signal))) {
|
|
438
|
+
recordCompositionDisposalFailure(diagnostics, runId, "prepare-bridge-close", signal.reason);
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
398
441
|
}
|
|
399
442
|
catch (error) {
|
|
400
|
-
|
|
443
|
+
recordCompositionDisposalFailure(diagnostics, runId, "prepare-bridge-close", error);
|
|
444
|
+
return;
|
|
401
445
|
}
|
|
402
446
|
try {
|
|
403
447
|
rmSync(runRoot, { recursive: true, force: true });
|
|
404
448
|
}
|
|
405
449
|
catch (error) {
|
|
406
450
|
// The private run root may persist on disk; the operator record makes the leak diagnosable.
|
|
407
|
-
|
|
451
|
+
recordCompositionDisposalFailure(diagnostics, runId, "prepare-run-root-remove", error);
|
|
408
452
|
}
|
|
409
453
|
}
|
|
410
|
-
async function materializePrepare(input, bridge, runs, request, runRoot) {
|
|
454
|
+
async function materializePrepare(input, bridge, runs, request, runRoot, serviceHost) {
|
|
411
455
|
createPrivateState(runRoot);
|
|
412
456
|
await bridge.start();
|
|
413
457
|
const profile = buildOpenCodeLaunchProfile({
|
|
414
458
|
executable: request.executablePath,
|
|
415
459
|
stateRoot: runRoot,
|
|
416
460
|
contextGeometry: input.contextGeometry,
|
|
461
|
+
toolProfile: input.toolProfile,
|
|
417
462
|
});
|
|
418
463
|
if (!profile.ok)
|
|
419
464
|
throw new Error("profile-invalid");
|
|
420
465
|
const config = profile.config;
|
|
421
|
-
materialize(runRoot, config, createGeneratedOpenCodeV2Plugins());
|
|
466
|
+
materialize(runRoot, config, createGeneratedOpenCodeV2Plugins(input.toolProfile));
|
|
422
467
|
const password = profile.env.OPENCODE_SERVER_PASSWORD;
|
|
423
468
|
if (password === undefined)
|
|
424
469
|
throw new Error("password-missing");
|
|
425
470
|
const configDigest = createHash("sha256").update(config, "utf8").digest("hex");
|
|
426
|
-
|
|
427
|
-
return {
|
|
471
|
+
const result = {
|
|
428
472
|
ok: true,
|
|
473
|
+
parentLifetime: "stdin-eof",
|
|
429
474
|
env: {
|
|
430
475
|
...profile.env,
|
|
431
476
|
KEIKO_MODEL_GATEWAY_CAPABILITY: input.capabilities.modelGatewayCapability,
|
|
@@ -433,8 +478,38 @@ async function materializePrepare(input, bridge, runs, request, runRoot) {
|
|
|
433
478
|
KEIKO_TOOL_FACADE_CAPABILITY: input.capabilities.toolFacadeCapability,
|
|
434
479
|
},
|
|
435
480
|
};
|
|
481
|
+
const program = serviceHost === undefined
|
|
482
|
+
? undefined
|
|
483
|
+
: prepareCompositionServiceHost(serviceHost, request, runRoot, configDigest, result.env, input.toolProfile ?? "direct");
|
|
484
|
+
if (serviceHost !== undefined && program === undefined)
|
|
485
|
+
throw new Error("host-preparation-invalid");
|
|
486
|
+
persistPreparedRun(runs, request, runRoot, password, configDigest, program);
|
|
487
|
+
return { ...result, ...(program === undefined ? {} : { serviceHost: program }) };
|
|
488
|
+
}
|
|
489
|
+
function persistPreparedRun(runs, request, runRoot, password, configDigest, program) {
|
|
490
|
+
const run = preparedRun(request.runId, runRoot, request.env.KEIKO_CODING_WORKSPACE_ROOT ?? "", password, configDigest, request.verification);
|
|
491
|
+
if (program !== undefined)
|
|
492
|
+
run.serviceHostPrepared = true;
|
|
493
|
+
runs.set(request.runId, run);
|
|
494
|
+
}
|
|
495
|
+
function prepareCompositionServiceHost(receipt, request, stateRoot, configDigest, env, toolProfile) {
|
|
496
|
+
return prepareOpenCodeServiceHostLaunch(receipt, {
|
|
497
|
+
workspace: request.env.KEIKO_CODING_WORKSPACE_ROOT,
|
|
498
|
+
stateRoot,
|
|
499
|
+
password: env.OPENCODE_SERVER_PASSWORD,
|
|
500
|
+
providerURL: `${request.env.KEIKO_MODEL_GATEWAY_URL ?? ""}/chat/completions`,
|
|
501
|
+
providerCapability: env.KEIKO_MODEL_GATEWAY_CAPABILITY,
|
|
502
|
+
facadeURL: env.KEIKO_TOOL_FACADE_URL,
|
|
503
|
+
facadeCapability: env.KEIKO_TOOL_FACADE_CAPABILITY,
|
|
504
|
+
mode: request.env.KEIKO_CODING_MODE,
|
|
505
|
+
runId: request.runId,
|
|
506
|
+
configDigest,
|
|
507
|
+
toolProfile,
|
|
508
|
+
}, env);
|
|
436
509
|
}
|
|
437
|
-
async function prepare(input, bridge, runs, request) {
|
|
510
|
+
async function prepare(input, bridge, runs, request, serviceHost) {
|
|
511
|
+
if (serviceHost !== undefined && runs.has(request.runId))
|
|
512
|
+
return { ok: false, reason: "host-preparation-unqualified" };
|
|
438
513
|
if (!verifiedProtocol(request.verification, input.portable.verification)) {
|
|
439
514
|
return { ok: false, reason: "target-attestation-failed" };
|
|
440
515
|
}
|
|
@@ -443,10 +518,12 @@ async function prepare(input, bridge, runs, request) {
|
|
|
443
518
|
}
|
|
444
519
|
const runRoot = join(input.stateBaseRoot, request.runId);
|
|
445
520
|
try {
|
|
446
|
-
return await materializePrepare(input, bridge, runs, request, runRoot);
|
|
521
|
+
return await materializePrepare(input, bridge, runs, request, runRoot, serviceHost);
|
|
447
522
|
}
|
|
448
523
|
catch {
|
|
449
|
-
await disposeFailedPrepare(bridge, runRoot, request.runId, input.diagnostics
|
|
524
|
+
await disposeFailedPrepare(bridge, runRoot, request.runId, input.diagnostics, request.signal === undefined
|
|
525
|
+
? AbortSignal.timeout(request.timeoutMs)
|
|
526
|
+
: AbortSignal.any([request.signal, AbortSignal.timeout(request.timeoutMs)]));
|
|
450
527
|
return { ok: false, reason: "config-materialization-failed" };
|
|
451
528
|
}
|
|
452
529
|
}
|
|
@@ -468,6 +545,8 @@ async function handshake(input, bridge, runs, request) {
|
|
|
468
545
|
const run = runs.get(request.runId);
|
|
469
546
|
if (run === undefined)
|
|
470
547
|
return { ok: false, reason: "preparation-missing" };
|
|
548
|
+
if (run.serviceHostPrepared === true)
|
|
549
|
+
return { ok: false, reason: "host-readiness-unqualified" };
|
|
471
550
|
run.onPermission = request.onPermission;
|
|
472
551
|
try {
|
|
473
552
|
const endpoint = parseOpenCodeV2ChildEndpoint(await request.startupOutput.nextLine(request.signal));
|
|
@@ -481,6 +560,7 @@ async function handshake(input, bridge, runs, request) {
|
|
|
481
560
|
});
|
|
482
561
|
const adapter = createOpenCodeRuntimeAdapter({
|
|
483
562
|
correlationId: request.runId,
|
|
563
|
+
maxTurnWaitMs: input.maxTurnWaitMs,
|
|
484
564
|
contextGeometry: input.contextGeometry,
|
|
485
565
|
...(input.activityLog === undefined ? {} : { activityLog: input.activityLog }),
|
|
486
566
|
readiness: readinessV2Ports(input, bridge, run, client, endpoint, request),
|
|
@@ -510,7 +590,7 @@ async function handshake(input, bridge, runs, request) {
|
|
|
510
590
|
await adapter.close();
|
|
511
591
|
return { ok: false, reason: result.phase };
|
|
512
592
|
}
|
|
513
|
-
input.safeActivity?.arm();
|
|
593
|
+
input.safeActivity?.arm(result.sessionId, input.toolProfile);
|
|
514
594
|
if (runs.get(request.runId) !== run) {
|
|
515
595
|
await adapter.close();
|
|
516
596
|
return { ok: false, reason: "preparation-missing" };
|
|
@@ -531,10 +611,18 @@ function readinessV2Ports(input, bridge, run, client, endpoint, request) {
|
|
|
531
611
|
let sessionCreation;
|
|
532
612
|
let streamCount = 0;
|
|
533
613
|
let startupRead = false;
|
|
614
|
+
// The events the coalescing pump absorbed since the history projection last wrote its line.
|
|
615
|
+
let mergedEvents = 0;
|
|
534
616
|
const history = createOpenCodeV2HistoryProjection({
|
|
617
|
+
toolProfile: input.toolProfile,
|
|
535
618
|
runId: run.runId,
|
|
536
619
|
activityLog: input.activityLog,
|
|
537
620
|
captureMessages: input.safeActivity?.captureMessages,
|
|
621
|
+
takeMergedEventCount: () => {
|
|
622
|
+
const merged = mergedEvents;
|
|
623
|
+
mergedEvents = 0;
|
|
624
|
+
return merged;
|
|
625
|
+
},
|
|
538
626
|
});
|
|
539
627
|
const staged = new Map();
|
|
540
628
|
return {
|
|
@@ -543,6 +631,7 @@ function readinessV2Ports(input, bridge, run, client, endpoint, request) {
|
|
|
543
631
|
attestationDigest: run.verification.protocolHandshakeDigest,
|
|
544
632
|
},
|
|
545
633
|
configDigest: run.configDigest,
|
|
634
|
+
nativeContextConfigured: true,
|
|
546
635
|
verifyTargetAttestation: () => Promise.resolve(true),
|
|
547
636
|
materialize: () => Promise.resolve(configMaterialized(run.runRoot)),
|
|
548
637
|
startupLine: () => {
|
|
@@ -567,10 +656,22 @@ function readinessV2Ports(input, bridge, run, client, endpoint, request) {
|
|
|
567
656
|
streamCount,
|
|
568
657
|
sessionId: fixedSessionId,
|
|
569
658
|
}));
|
|
659
|
+
// The stream this one replaces missed events while nobody listened. A text or reasoning part it
|
|
660
|
+
// was feeding is not extended by this stream: a gap in the middle of a text would show words
|
|
661
|
+
// the model never wrote in that order. Each such part shows what it has until the history
|
|
662
|
+
// shows it complete (#3873 review, PR #3876).
|
|
663
|
+
if (streamCount > 1)
|
|
664
|
+
history.freezeLiveText();
|
|
570
665
|
const combined = request.signal === undefined ? signal : AbortSignal.any([signal, request.signal]);
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
666
|
+
const sessionId = fixedSessionId;
|
|
667
|
+
yield* coalescedSyncHints(client.events(combined), (event) => {
|
|
668
|
+
// Every event reaches the live text overlay as it arrives, before coalescing can fold it
|
|
669
|
+
// into a hint: the deltas are the content, and only the reads are coalesced.
|
|
670
|
+
history.observeLiveEvent(sessionId, event);
|
|
671
|
+
return v2SyncHint(event, sessionId, input.onQuestionObserved);
|
|
672
|
+
}, (merged) => {
|
|
673
|
+
mergedEvents += merged;
|
|
674
|
+
}, HISTORY_SYNC_MIN_INTERVAL_MS);
|
|
574
675
|
},
|
|
575
676
|
history: async (checkpoints, signal) => {
|
|
576
677
|
if (fixedSessionId === undefined)
|
|
@@ -619,6 +720,136 @@ function v2ExecutionState(type) {
|
|
|
619
720
|
return "terminal";
|
|
620
721
|
return undefined;
|
|
621
722
|
}
|
|
723
|
+
function plainSyncHint(hint) {
|
|
724
|
+
return hint !== undefined && !("id" in hint) && hint.control === undefined;
|
|
725
|
+
}
|
|
726
|
+
// A plain hint asks for one history read. One already queued covers the new one, and a control
|
|
727
|
+
// hint's own read covers every plain hint queued before it; control hints keep their order. Returns
|
|
728
|
+
// how many hints the call absorbed, each one a history read it saved: the new hint itself when a
|
|
729
|
+
// queued plain hint covered it, or the queued plain hints a control hint's read replaced. Every
|
|
730
|
+
// hint is yielded once or absorbed once, so a stream read to its end has as many events as hints
|
|
731
|
+
// yielded plus hints absorbed.
|
|
732
|
+
function enqueueSyncHint(pending, hint) {
|
|
733
|
+
if (plainSyncHint(hint)) {
|
|
734
|
+
if (plainSyncHint(pending.at(-1)))
|
|
735
|
+
return 1;
|
|
736
|
+
pending.push(hint);
|
|
737
|
+
return 0;
|
|
738
|
+
}
|
|
739
|
+
let absorbed = 0;
|
|
740
|
+
while (plainSyncHint(pending.at(-1))) {
|
|
741
|
+
pending.pop();
|
|
742
|
+
absorbed += 1;
|
|
743
|
+
}
|
|
744
|
+
pending.push(hint);
|
|
745
|
+
return absorbed;
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Lab ledger F2 (#3873): a live turn can emit a runtime event for every streamed token, and every
|
|
749
|
+
* hint costs one full history read, so a burst of events used to queue one read each and the live
|
|
750
|
+
* timeline fell further behind the model the longer it answered. Events are read as they arrive and
|
|
751
|
+
* the hints that pile up while a read runs collapse into one, since the next read sees the whole
|
|
752
|
+
* history anyway; control hints are never dropped and keep their order. A stream failure surfaces
|
|
753
|
+
* on the next pull, after the hints read before it.
|
|
754
|
+
*
|
|
755
|
+
* `onMerged` receives, each time events were absorbed, how many (#3873 review, PR #3876): the
|
|
756
|
+
* evidence that a read stood for more than one event, which the history projection's line carries
|
|
757
|
+
* as `mergedEventCount`. It sees the count only, never an event.
|
|
758
|
+
* Production also spaces plain reads by 100 ms: a fast history response must not turn every
|
|
759
|
+
* streamed delta into another full read. Control hints, source failure and end flush immediately;
|
|
760
|
+
* live text still observes every source event before the hint is coalesced.
|
|
761
|
+
*/
|
|
762
|
+
export async function* coalescedSyncHints(events, toHint, onMerged, minimumIntervalMs = 0) {
|
|
763
|
+
const pump = {
|
|
764
|
+
source: events[Symbol.asyncIterator](),
|
|
765
|
+
toHint,
|
|
766
|
+
onMerged,
|
|
767
|
+
pending: [],
|
|
768
|
+
ended: false,
|
|
769
|
+
stopped: false,
|
|
770
|
+
minimumIntervalMs,
|
|
771
|
+
nextPlainReadAtMs: 0,
|
|
772
|
+
wake: undefined,
|
|
773
|
+
};
|
|
774
|
+
pullSyncHint(pump);
|
|
775
|
+
try {
|
|
776
|
+
// One pull per hint: the wait for the next one is the iterator's own, so no loop body awaits.
|
|
777
|
+
for await (const hint of queuedSyncHints(pump))
|
|
778
|
+
yield hint;
|
|
779
|
+
}
|
|
780
|
+
finally {
|
|
781
|
+
// The read still in flight ends with the caller's abort signal, or closes the source once it
|
|
782
|
+
// resolves; nothing here waits on it.
|
|
783
|
+
pump.stopped = true;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
// The hints the pump has queued, read one pull at a time. The iterator has no `return`: leaving it
|
|
787
|
+
// early closes nothing, because the pump's own source is closed through `stopped` above.
|
|
788
|
+
function queuedSyncHints(pump) {
|
|
789
|
+
return { [Symbol.asyncIterator]: () => ({ next: () => nextQueuedSyncHint(pump) }) };
|
|
790
|
+
}
|
|
791
|
+
// A queued hint at once; otherwise the failure of the source, which surfaces after every hint read
|
|
792
|
+
// before it, or its end; otherwise the next wake, after which the pull starts over. A wake follows
|
|
793
|
+
// every hint the pump queues and the end of its source, so a pull waits once, not repeatedly.
|
|
794
|
+
async function nextQueuedSyncHint(pump) {
|
|
795
|
+
const hint = pump.pending[0];
|
|
796
|
+
const delayMs = plainSyncHint(hint) && !pump.ended
|
|
797
|
+
? Math.max(0, pump.nextPlainReadAtMs - performance.now())
|
|
798
|
+
: 0;
|
|
799
|
+
if (hint !== undefined && delayMs === 0) {
|
|
800
|
+
pump.pending.shift();
|
|
801
|
+
pump.nextPlainReadAtMs = performance.now() + pump.minimumIntervalMs;
|
|
802
|
+
return { done: false, value: hint };
|
|
803
|
+
}
|
|
804
|
+
if (pump.failure !== undefined)
|
|
805
|
+
throw pump.failure.error;
|
|
806
|
+
if (pump.ended && hint === undefined)
|
|
807
|
+
return { done: true, value: undefined };
|
|
808
|
+
await waitForSyncHint(pump, delayMs);
|
|
809
|
+
return nextQueuedSyncHint(pump);
|
|
810
|
+
}
|
|
811
|
+
async function waitForSyncHint(pump, delayMs) {
|
|
812
|
+
await new Promise((resolve) => {
|
|
813
|
+
let timer;
|
|
814
|
+
pump.wake = () => {
|
|
815
|
+
if (timer !== undefined)
|
|
816
|
+
clearTimeout(timer);
|
|
817
|
+
pump.wake = undefined;
|
|
818
|
+
resolve();
|
|
819
|
+
};
|
|
820
|
+
if (delayMs > 0)
|
|
821
|
+
timer = setTimeout(() => pump.wake?.(), delayMs);
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
// Reads the next event without waiting for the consumer. A failure is kept for the consumer, who
|
|
825
|
+
// receives it on its next pull, after every hint read before it.
|
|
826
|
+
function pullSyncHint(pump) {
|
|
827
|
+
const settle = (error) => {
|
|
828
|
+
if (error !== undefined)
|
|
829
|
+
pump.failure ??= { error };
|
|
830
|
+
pump.ended = true;
|
|
831
|
+
pump.wake?.();
|
|
832
|
+
};
|
|
833
|
+
const onNext = (next) => {
|
|
834
|
+
if (next.done === true) {
|
|
835
|
+
settle();
|
|
836
|
+
return;
|
|
837
|
+
}
|
|
838
|
+
if (pump.stopped) {
|
|
839
|
+
settle();
|
|
840
|
+
void pump.source.return?.(undefined).then(undefined, settle);
|
|
841
|
+
return;
|
|
842
|
+
}
|
|
843
|
+
const hint = pump.toHint(next.value);
|
|
844
|
+
const absorbed = enqueueSyncHint(pump.pending, hint);
|
|
845
|
+
if (absorbed > 0)
|
|
846
|
+
pump.onMerged?.(absorbed);
|
|
847
|
+
if (absorbed === 0 || !plainSyncHint(hint))
|
|
848
|
+
pump.wake?.();
|
|
849
|
+
pullSyncHint(pump);
|
|
850
|
+
};
|
|
851
|
+
void pump.source.next().then(onNext).then(undefined, settle);
|
|
852
|
+
}
|
|
622
853
|
function v2SyncHint(event, fixedSessionId, onQuestionObserved) {
|
|
623
854
|
const data = v2Record(event.data);
|
|
624
855
|
if (event.type === "form.created" &&
|
|
@@ -675,10 +906,21 @@ function recordOpenCodeV2HistoryFailure(diagnostics, runId, error) {
|
|
|
675
906
|
async function createAndEchoV2Session(client, directory, signal) {
|
|
676
907
|
const created = await client.createSession(directory, signal);
|
|
677
908
|
const id = created.id;
|
|
678
|
-
if (
|
|
909
|
+
if (!validCreatedSession(id, created.location, directory) || disposalCancelled(signal))
|
|
679
910
|
return "";
|
|
680
911
|
const sessions = await client.sessions(signal);
|
|
681
|
-
|
|
912
|
+
const echoed = sessions[0];
|
|
913
|
+
return sessions.length === 1 &&
|
|
914
|
+
echoed?.id === id &&
|
|
915
|
+
v2Record(echoed.location)?.directory === directory &&
|
|
916
|
+
!disposalCancelled(signal)
|
|
917
|
+
? id
|
|
918
|
+
: "";
|
|
919
|
+
}
|
|
920
|
+
function validCreatedSession(id, location, directory) {
|
|
921
|
+
return (typeof id === "string" &&
|
|
922
|
+
/^ses_[A-Za-z0-9_-]{1,251}$/u.test(id) &&
|
|
923
|
+
v2Record(location)?.directory === directory);
|
|
682
924
|
}
|
|
683
925
|
async function authenticatedV2Health(client) {
|
|
684
926
|
const info = await client.info();
|
|
@@ -876,6 +1118,14 @@ const MAX_TOOL_BRIDGE_IN_FLIGHT = 64;
|
|
|
876
1118
|
const DEADLINE_ABORT = "tool-bridge-deadline";
|
|
877
1119
|
const DISCONNECT_ABORT = "tool-bridge-disconnect";
|
|
878
1120
|
const CLOSE_ABORT = "tool-bridge-close";
|
|
1121
|
+
function renderedResultLog(input) {
|
|
1122
|
+
return input.toolResultCorrelationId === undefined
|
|
1123
|
+
? undefined
|
|
1124
|
+
: {
|
|
1125
|
+
sink: input.activityLog ?? processServerLogSink(),
|
|
1126
|
+
correlationId: input.toolResultCorrelationId,
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
879
1129
|
// #3390 (ADR-0043 D11-D14): the tool facade no longer opens its own loopback listener -- a second
|
|
880
1130
|
// attested destination is exactly the defect the Seatbelt egress profile exists to deny. `handle`
|
|
881
1131
|
// is the ONLY dispatch surface; the BFF route (coding-sidecar-tool-facade.ts) calls it directly
|
|
@@ -885,14 +1135,18 @@ const CLOSE_ABORT = "tool-bridge-close";
|
|
|
885
1135
|
// them changes. A caller that still needs a real HTTP endpoint (the scripted functional harness's
|
|
886
1136
|
// fake sidecar) owns its OWN tiny listener wrapping this SAME `handle` -- never a second
|
|
887
1137
|
// production path (see opencodeFunctionalHarness/_support.ts).
|
|
888
|
-
function createToolBridge(
|
|
889
|
-
const { approvals, runs } = v2;
|
|
1138
|
+
function createToolBridge(deps, configuredLimits, toolFacadeOrigin, v2) {
|
|
890
1139
|
const limits = normalizeToolBridgeLimits(configuredLimits);
|
|
891
1140
|
let listening = false;
|
|
1141
|
+
let closing;
|
|
892
1142
|
const gate = createToolBridgeAdmissionGate(limits);
|
|
893
|
-
const
|
|
894
|
-
const
|
|
1143
|
+
const nativeTextRead = nativeToolBridgeFacet(deps, gate, () => listening);
|
|
1144
|
+
const requestContext = { ...v2, nativeRead: nativeTextRead?.invocations };
|
|
1145
|
+
const handle = (request) => handleDirectToolRequest(listening, deps, gate, request, requestContext);
|
|
1146
|
+
const acceptedInitialization = initializationBridgeFacet(deps, gate, () => listening);
|
|
895
1147
|
const publicPort = {
|
|
1148
|
+
...(acceptedInitialization === undefined ? {} : { acceptedInitialization }),
|
|
1149
|
+
...(nativeTextRead === undefined ? {} : { nativeTextRead }),
|
|
896
1150
|
get url() {
|
|
897
1151
|
return toolFacadeOrigin;
|
|
898
1152
|
},
|
|
@@ -901,25 +1155,271 @@ function createToolBridge(capability, facade, configuredLimits, settleTool, diag
|
|
|
901
1155
|
};
|
|
902
1156
|
return {
|
|
903
1157
|
publicPort,
|
|
904
|
-
approvals,
|
|
1158
|
+
approvals: v2.approvals,
|
|
905
1159
|
active: () => listening,
|
|
906
1160
|
start: () => {
|
|
1161
|
+
if (closing !== undefined || !gate.drained())
|
|
1162
|
+
return Promise.reject(new Error(CLOSE_ABORT));
|
|
907
1163
|
listening = true;
|
|
908
1164
|
return Promise.resolve();
|
|
909
1165
|
},
|
|
910
|
-
close: () => {
|
|
1166
|
+
close: (signal) => {
|
|
911
1167
|
listening = false;
|
|
912
|
-
approvals.close();
|
|
1168
|
+
v2.approvals.close();
|
|
913
1169
|
gate.abortAll();
|
|
914
|
-
|
|
1170
|
+
closing ??= gate
|
|
1171
|
+
.drain(signal ?? AbortSignal.timeout(limits.requestDeadlineMs))
|
|
1172
|
+
.then((drained) => {
|
|
1173
|
+
closing = undefined;
|
|
1174
|
+
return drained;
|
|
1175
|
+
});
|
|
1176
|
+
return closing;
|
|
915
1177
|
},
|
|
916
1178
|
};
|
|
917
1179
|
}
|
|
918
|
-
function
|
|
1180
|
+
function nativeToolBridgeFacet(deps, gate, active) {
|
|
1181
|
+
const facet = deps.facade.nativeTextRead;
|
|
1182
|
+
const producer = facet?.readTextSnapshot.bind(facet);
|
|
1183
|
+
if (producer === undefined)
|
|
1184
|
+
return undefined;
|
|
1185
|
+
const invocations = nativeInvocationBridgeFacet(deps, gate, active, facet?.invocations);
|
|
1186
|
+
return Object.freeze({
|
|
1187
|
+
...(invocations === undefined ? {} : { invocations }),
|
|
1188
|
+
readTextSnapshot: (input) => {
|
|
1189
|
+
if (!active())
|
|
1190
|
+
return Promise.resolve({ ok: false, reason: "dispatch-refused" });
|
|
1191
|
+
const { body, capability, headers, signal } = input;
|
|
1192
|
+
const ownedBody = nativeToolRequestBody(body, capability, headers, deps.capability);
|
|
1193
|
+
if (ownedBody === undefined)
|
|
1194
|
+
return Promise.resolve({ ok: false, reason: "invalid-request" });
|
|
1195
|
+
if (signal?.aborted === true)
|
|
1196
|
+
return Promise.resolve({ ok: false, reason: "cancelled" });
|
|
1197
|
+
const admission = gate.admit(gate.limits.requestDeadlineMs);
|
|
1198
|
+
if (admission === undefined)
|
|
1199
|
+
return Promise.resolve({ ok: false, reason: "busy" });
|
|
1200
|
+
const detach = bindExternalAbort(signal, admission);
|
|
1201
|
+
return executeNativeToolRequest(deps, producer, ownedBody, admission).finally(detach);
|
|
1202
|
+
},
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
function nativeInvocationBridgeFacet(deps, gate, active, supplied) {
|
|
1206
|
+
if (supplied === undefined)
|
|
1207
|
+
return undefined;
|
|
1208
|
+
const fileIO = captureBridgeNativeFileIO(supplied.fileIO);
|
|
1209
|
+
const producer = Object.freeze({
|
|
1210
|
+
begin: supplied.begin.bind(supplied),
|
|
1211
|
+
readTextSnapshot: supplied.readTextSnapshot.bind(supplied),
|
|
1212
|
+
signalFor: supplied.signalFor.bind(supplied),
|
|
1213
|
+
close: supplied.close.bind(supplied),
|
|
1214
|
+
});
|
|
1215
|
+
return Object.freeze({
|
|
1216
|
+
...(fileIO === undefined ? {} : { fileIO: bridgeNativeFileIO(deps, active, producer, fileIO) }),
|
|
1217
|
+
begin: (input) => beginNativeBridgeInvocation(deps, gate, active, producer, input),
|
|
1218
|
+
signalFor: producer.signalFor,
|
|
1219
|
+
readTextSnapshot: (identity, input) => boundedNativeInvocationCall(deps, active, producer, identity, () => producer.readTextSnapshot(identity, input)),
|
|
1220
|
+
close: (identity, outcome) => closeNativeBridgeInvocation(deps, gate, active, producer, identity, outcome),
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
function captureBridgeNativeFileIO(selected) {
|
|
1224
|
+
return selected === undefined
|
|
1225
|
+
? undefined
|
|
1226
|
+
: Object.freeze({
|
|
1227
|
+
readBytes: selected.readBytes.bind(selected),
|
|
1228
|
+
stat: selected.stat.bind(selected),
|
|
1229
|
+
list: selected.list.bind(selected),
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
function bridgeNativeFileIO(deps, active, producer, io) {
|
|
1233
|
+
return Object.freeze({
|
|
1234
|
+
readBytes: (identity, input) => boundedNativeInvocationCall(deps, active, producer, identity, () => io.readBytes(identity, input)),
|
|
1235
|
+
stat: (identity, input) => boundedNativeInvocationCall(deps, active, producer, identity, () => io.stat(identity, input)),
|
|
1236
|
+
list: (identity, input) => boundedNativeInvocationCall(deps, active, producer, identity, () => io.list(identity, input)),
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
async function closeNativeBridgeInvocation(deps, gate, active, producer, identity, outcome) {
|
|
1240
|
+
try {
|
|
1241
|
+
if (!active() || producer.signalFor(identity) === undefined)
|
|
1242
|
+
return false;
|
|
1243
|
+
if (outcome !== "completed")
|
|
1244
|
+
gate.abortNativeRead(identity);
|
|
1245
|
+
// The canonical terminal promise is already deadline/cancellation bounded. Its successful
|
|
1246
|
+
// settlement aborts the registry's signal too; racing that signal would fabricate failure.
|
|
1247
|
+
return await producer.close(identity, outcome);
|
|
1248
|
+
}
|
|
1249
|
+
catch (error) {
|
|
1250
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, identity.actionId, error);
|
|
1251
|
+
return false;
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
async function boundedNativeInvocationCall(deps, active, producer, identity, execute) {
|
|
1255
|
+
const refused = { ok: false, reason: "dispatch-refused" };
|
|
1256
|
+
let signal;
|
|
1257
|
+
try {
|
|
1258
|
+
if (!active())
|
|
1259
|
+
return refused;
|
|
1260
|
+
signal = producer.signalFor(identity);
|
|
1261
|
+
if (signal === undefined || signal.aborted)
|
|
1262
|
+
return refused;
|
|
1263
|
+
const work = execute();
|
|
1264
|
+
return await raceAbort(work, signal);
|
|
1265
|
+
}
|
|
1266
|
+
catch (error) {
|
|
1267
|
+
if (signal?.aborted === true)
|
|
1268
|
+
return { ok: false, reason: "cancelled" };
|
|
1269
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, identity.actionId, error);
|
|
1270
|
+
return refused;
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
async function beginNativeBridgeInvocation(deps, gate, active, producer, input) {
|
|
1274
|
+
if (!active())
|
|
1275
|
+
return { ok: false, reason: "dispatch-refused" };
|
|
1276
|
+
const ownedInput = prepareNativeBridgeBeginInput(deps, input);
|
|
1277
|
+
if (ownedInput === undefined)
|
|
1278
|
+
return { ok: false, reason: "invalid-request" };
|
|
1279
|
+
const { signal } = ownedInput;
|
|
1280
|
+
const ownedBody = ownedInput.body;
|
|
1281
|
+
if (signal?.aborted === true)
|
|
1282
|
+
return { ok: false, reason: "cancelled" };
|
|
1283
|
+
const admission = gate.admit(gate.limits.requestDeadlineMs);
|
|
1284
|
+
if (admission === undefined)
|
|
1285
|
+
return { ok: false, reason: "busy" };
|
|
1286
|
+
const detach = bindExternalAbort(signal, admission);
|
|
1287
|
+
const work = callNativeReadBegin(producer, {
|
|
1288
|
+
...ownedInput,
|
|
1289
|
+
body: ownedBody,
|
|
1290
|
+
capability: deps.capability,
|
|
1291
|
+
signal: admission.controller.signal,
|
|
1292
|
+
});
|
|
1293
|
+
const physicalWork = work.then(async (result) => {
|
|
1294
|
+
if (result.ok)
|
|
1295
|
+
await result.settled;
|
|
1296
|
+
});
|
|
1297
|
+
releaseAdmissionWhenSettled(physicalWork, admission);
|
|
1298
|
+
void physicalWork.then(detach, detach);
|
|
1299
|
+
try {
|
|
1300
|
+
const result = await raceAbort(work, admission.controller.signal);
|
|
1301
|
+
if (!result.ok)
|
|
1302
|
+
return result;
|
|
1303
|
+
admission.nativeReadIdentity = Object.freeze({ ...result.identity });
|
|
1304
|
+
return {
|
|
1305
|
+
...result,
|
|
1306
|
+
settled: physicalWork.then(() => {
|
|
1307
|
+
admission.release();
|
|
1308
|
+
}),
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
catch (error) {
|
|
1312
|
+
const actionId = parseCodingToolRequest(ownedBody, CODING_TOOL_MAX_BODY_BYTES)?.actionId;
|
|
1313
|
+
if (!admission.controller.signal.aborted)
|
|
1314
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, actionId, error);
|
|
1315
|
+
return {
|
|
1316
|
+
...nativeToolAbortResult(deps, actionId, admission),
|
|
1317
|
+
ok: false,
|
|
1318
|
+
};
|
|
1319
|
+
}
|
|
1320
|
+
}
|
|
1321
|
+
function prepareNativeBridgeBeginInput(deps, input) {
|
|
1322
|
+
try {
|
|
1323
|
+
const owned = ownNativeBridgeBeginInput(input);
|
|
1324
|
+
if (owned === undefined)
|
|
1325
|
+
return undefined;
|
|
1326
|
+
const body = privateNativeToolBody(owned.body, owned.capability, owned.headers, deps.capability);
|
|
1327
|
+
return body === undefined ? undefined : { ...owned, body };
|
|
1328
|
+
}
|
|
1329
|
+
catch (error) {
|
|
1330
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, undefined, error);
|
|
1331
|
+
return undefined;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
function ownNativeBridgeBeginInput(input) {
|
|
1335
|
+
const prototype = Object.getPrototypeOf(input);
|
|
1336
|
+
if (prototype !== Object.prototype && prototype !== null)
|
|
1337
|
+
return undefined;
|
|
1338
|
+
const allowed = new Set([
|
|
1339
|
+
"body",
|
|
1340
|
+
"capability",
|
|
1341
|
+
"headers",
|
|
1342
|
+
"signal",
|
|
1343
|
+
"context",
|
|
1344
|
+
"offset",
|
|
1345
|
+
"limit",
|
|
1346
|
+
]);
|
|
1347
|
+
const owned = {};
|
|
1348
|
+
for (const key of Reflect.ownKeys(input)) {
|
|
1349
|
+
if (typeof key !== "string" || !allowed.has(key))
|
|
1350
|
+
return undefined;
|
|
1351
|
+
const descriptor = Object.getOwnPropertyDescriptor(input, key);
|
|
1352
|
+
if (descriptor === undefined || !("value" in descriptor))
|
|
1353
|
+
return undefined;
|
|
1354
|
+
owned[key] = descriptor.value;
|
|
1355
|
+
}
|
|
1356
|
+
if (!nativeBridgeBeginValues(owned.body, owned.capability, owned.signal))
|
|
1357
|
+
return undefined;
|
|
1358
|
+
return owned;
|
|
1359
|
+
}
|
|
1360
|
+
function nativeBridgeBeginValues(body, capability, signal) {
|
|
1361
|
+
return ((typeof body === "string" || Buffer.isBuffer(body)) &&
|
|
1362
|
+
(capability === undefined || typeof capability === "string") &&
|
|
1363
|
+
(signal === undefined || signal instanceof AbortSignal));
|
|
1364
|
+
}
|
|
1365
|
+
async function callNativeReadBegin(producer, input) {
|
|
1366
|
+
return producer.begin(input);
|
|
1367
|
+
}
|
|
1368
|
+
function nativeToolRequestBody(body, capability, headers, ownedCapability) {
|
|
1369
|
+
const ownedBody = privateNativeToolBody(body, capability, headers, ownedCapability);
|
|
1370
|
+
if (ownedBody === undefined)
|
|
1371
|
+
return undefined;
|
|
1372
|
+
const request = parseCodingToolRequest(ownedBody, CODING_TOOL_MAX_BODY_BYTES);
|
|
1373
|
+
return request?.action === "read" &&
|
|
1374
|
+
request.startLine === undefined &&
|
|
1375
|
+
request.maxLines === undefined
|
|
1376
|
+
? ownedBody
|
|
1377
|
+
: undefined;
|
|
1378
|
+
}
|
|
1379
|
+
function privateNativeToolBody(body, capability, headers, ownedCapability) {
|
|
1380
|
+
if (headers !== undefined ||
|
|
1381
|
+
(capability !== undefined && !safeEqual(capability, ownedCapability)))
|
|
1382
|
+
return undefined;
|
|
1383
|
+
if (Buffer.byteLength(body) > CODING_TOOL_MAX_BODY_BYTES)
|
|
1384
|
+
return undefined;
|
|
1385
|
+
return typeof body === "string" ? body : body.toString("utf8");
|
|
1386
|
+
}
|
|
1387
|
+
async function executeNativeToolRequest(deps, producer, body, admission) {
|
|
1388
|
+
const signal = admission.controller.signal;
|
|
1389
|
+
const work = Promise.resolve().then(() => signal.aborted
|
|
1390
|
+
? { ok: false, reason: "cancelled" }
|
|
1391
|
+
: producer({ body, capability: deps.capability, signal }));
|
|
1392
|
+
releaseAdmissionWhenSettled(work, admission);
|
|
1393
|
+
const actionId = parseCodingToolRequest(body, CODING_TOOL_MAX_BODY_BYTES)?.actionId;
|
|
1394
|
+
try {
|
|
1395
|
+
const result = await raceAbort(work, signal);
|
|
1396
|
+
return signal.aborted ? nativeToolAbortResult(deps, actionId, admission) : result;
|
|
1397
|
+
}
|
|
1398
|
+
catch (error) {
|
|
1399
|
+
if (signal.aborted)
|
|
1400
|
+
return nativeToolAbortResult(deps, actionId, admission);
|
|
1401
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, actionId, error);
|
|
1402
|
+
return { ok: false, reason: "dispatch-refused" };
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
function nativeToolAbortResult(deps, actionId, admission) {
|
|
1406
|
+
if (abortReason(admission.controller.signal) !== DEADLINE_ABORT)
|
|
1407
|
+
return { ok: false, reason: "cancelled" };
|
|
1408
|
+
emitToolBridgeDeadlineDiagnostic(deps.diagnostics, actionId, admission);
|
|
1409
|
+
return { ok: false, reason: "timeout" };
|
|
1410
|
+
}
|
|
1411
|
+
function handleDirectToolRequest(active, deps, gate, input, context) {
|
|
1412
|
+
const { approvals, runs, nativeRead } = context;
|
|
919
1413
|
const preflight = preflightToolRequest(active, deps.capability, input.headers, input.body);
|
|
920
1414
|
if (preflight.outcome === "rejected") {
|
|
921
1415
|
return Promise.resolve({ status: preflight.status, body: preflight.body });
|
|
922
1416
|
}
|
|
1417
|
+
const read = nativeReadTransportValue(input.body);
|
|
1418
|
+
if (read !== undefined)
|
|
1419
|
+
return handleNativeReadTransport(read, input.signal, deps, runs, nativeRead);
|
|
1420
|
+
const native = nativeInitializationValue(input.body);
|
|
1421
|
+
if (native !== undefined)
|
|
1422
|
+
return handleNativeInitialization(native, input.signal, deps, gate, runs);
|
|
923
1423
|
const permission = parseV2PermissionRequest(input.body);
|
|
924
1424
|
if (permission !== undefined) {
|
|
925
1425
|
return handleV2PermissionRequest(permission, input.signal, deps, approvals, runs);
|
|
@@ -1017,38 +1517,85 @@ function bindExternalAbort(signal, admission) {
|
|
|
1017
1517
|
signal.removeEventListener("abort", onAbort);
|
|
1018
1518
|
};
|
|
1019
1519
|
}
|
|
1520
|
+
function toolBridgeDrainWait(signal, clear) {
|
|
1521
|
+
let resolve;
|
|
1522
|
+
const completion = new Promise((done) => {
|
|
1523
|
+
resolve = done;
|
|
1524
|
+
});
|
|
1525
|
+
const finish = (drained) => {
|
|
1526
|
+
signal.removeEventListener("abort", onAbort);
|
|
1527
|
+
clear();
|
|
1528
|
+
resolve(drained);
|
|
1529
|
+
};
|
|
1530
|
+
const onAbort = () => {
|
|
1531
|
+
finish(false);
|
|
1532
|
+
};
|
|
1533
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
1534
|
+
return { completion, finish };
|
|
1535
|
+
}
|
|
1020
1536
|
function createToolBridgeAdmissionGate(limits) {
|
|
1021
|
-
let
|
|
1022
|
-
const
|
|
1537
|
+
let pendingDrain;
|
|
1538
|
+
const requests = new Set();
|
|
1539
|
+
const release = (controller) => {
|
|
1540
|
+
for (const request of requests) {
|
|
1541
|
+
if (request.controller === controller)
|
|
1542
|
+
requests.delete(request);
|
|
1543
|
+
}
|
|
1544
|
+
if (requests.size === 0)
|
|
1545
|
+
pendingDrain?.finish(true);
|
|
1546
|
+
};
|
|
1023
1547
|
return {
|
|
1024
1548
|
limits,
|
|
1025
1549
|
admit: (requestDeadlineMs) => {
|
|
1026
|
-
if (
|
|
1550
|
+
if (requests.size >= limits.maxInFlight)
|
|
1027
1551
|
return undefined;
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
controller,
|
|
1038
|
-
deadlineMs: requestDeadlineMs,
|
|
1039
|
-
release: () => {
|
|
1040
|
-
if (released)
|
|
1041
|
-
return;
|
|
1042
|
-
released = true;
|
|
1043
|
-
clearTimeout(timer);
|
|
1044
|
-
controllers.delete(controller);
|
|
1045
|
-
admitted -= 1;
|
|
1046
|
-
},
|
|
1047
|
-
};
|
|
1552
|
+
const request = admittedToolRequest(new AbortController(), requestDeadlineMs, release);
|
|
1553
|
+
requests.add(request);
|
|
1554
|
+
return request;
|
|
1555
|
+
},
|
|
1556
|
+
abortNativeRead: (identity) => {
|
|
1557
|
+
for (const request of requests) {
|
|
1558
|
+
if (sameNativeReadIdentity(request.nativeReadIdentity, identity))
|
|
1559
|
+
request.controller.abort(new Error(DISCONNECT_ABORT));
|
|
1560
|
+
}
|
|
1048
1561
|
},
|
|
1049
1562
|
abortAll: () => {
|
|
1050
|
-
for (const
|
|
1051
|
-
controller.abort(new Error(CLOSE_ABORT));
|
|
1563
|
+
for (const request of requests)
|
|
1564
|
+
request.controller.abort(new Error(CLOSE_ABORT));
|
|
1565
|
+
},
|
|
1566
|
+
drained: () => requests.size === 0,
|
|
1567
|
+
drain: (signal) => {
|
|
1568
|
+
if (requests.size === 0)
|
|
1569
|
+
return Promise.resolve(true);
|
|
1570
|
+
if (signal.aborted)
|
|
1571
|
+
return Promise.resolve(false);
|
|
1572
|
+
pendingDrain ??= toolBridgeDrainWait(signal, () => {
|
|
1573
|
+
pendingDrain = undefined;
|
|
1574
|
+
});
|
|
1575
|
+
return pendingDrain.completion;
|
|
1576
|
+
},
|
|
1577
|
+
};
|
|
1578
|
+
}
|
|
1579
|
+
function sameNativeReadIdentity(selected, supplied) {
|
|
1580
|
+
return (selected?.actionId === supplied.actionId &&
|
|
1581
|
+
selected.idempotencyKey === supplied.idempotencyKey &&
|
|
1582
|
+
selected.invocationId === supplied.invocationId);
|
|
1583
|
+
}
|
|
1584
|
+
function admittedToolRequest(controller, deadlineMs, release) {
|
|
1585
|
+
const timer = setTimeout(() => {
|
|
1586
|
+
controller.abort(new Error(DEADLINE_ABORT));
|
|
1587
|
+
}, deadlineMs);
|
|
1588
|
+
timer.unref();
|
|
1589
|
+
let released = false;
|
|
1590
|
+
return {
|
|
1591
|
+
controller,
|
|
1592
|
+
deadlineMs,
|
|
1593
|
+
release: () => {
|
|
1594
|
+
if (released)
|
|
1595
|
+
return;
|
|
1596
|
+
released = true;
|
|
1597
|
+
clearTimeout(timer);
|
|
1598
|
+
release(controller);
|
|
1052
1599
|
},
|
|
1053
1600
|
};
|
|
1054
1601
|
}
|
|
@@ -1073,7 +1620,7 @@ function preflightToolRequest(active, capability, headers, body) {
|
|
|
1073
1620
|
return { outcome: "rejected", status: 401, body: "" };
|
|
1074
1621
|
}
|
|
1075
1622
|
const declaredLength = declaredBodyLength(headers.get("content-length"));
|
|
1076
|
-
if (declaredLength ===
|
|
1623
|
+
if (declaredLength === undefined || declaredLength > CODING_TOOL_MAX_BODY_BYTES) {
|
|
1077
1624
|
return { outcome: "rejected", status: 413, body: "" };
|
|
1078
1625
|
}
|
|
1079
1626
|
if (body !== undefined && Buffer.byteLength(body, "utf8") > CODING_TOOL_MAX_BODY_BYTES) {
|
|
@@ -1081,13 +1628,14 @@ function preflightToolRequest(active, capability, headers, body) {
|
|
|
1081
1628
|
}
|
|
1082
1629
|
return { outcome: "admitted" };
|
|
1083
1630
|
}
|
|
1631
|
+
// The declared Content-Length, or `undefined` for a malformed declaration.
|
|
1084
1632
|
function declaredBodyLength(value) {
|
|
1085
1633
|
if (value === null)
|
|
1086
1634
|
return 0;
|
|
1087
1635
|
if (!/^(?:0|[1-9]\d*)$/u.test(value))
|
|
1088
|
-
return
|
|
1636
|
+
return undefined;
|
|
1089
1637
|
const parsed = Number(value);
|
|
1090
|
-
return Number.isSafeInteger(parsed) ? parsed :
|
|
1638
|
+
return Number.isSafeInteger(parsed) ? parsed : undefined;
|
|
1091
1639
|
}
|
|
1092
1640
|
async function executeToolRequest(deps, headers, body, admission) {
|
|
1093
1641
|
const { facade, capability, settleTool, diagnostics } = deps;
|
|
@@ -1095,24 +1643,31 @@ async function executeToolRequest(deps, headers, body, admission) {
|
|
|
1095
1643
|
admission.release();
|
|
1096
1644
|
return { status: 400, body: "" };
|
|
1097
1645
|
}
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1646
|
+
const service = {
|
|
1647
|
+
request: parseCodingToolRequest(body, CODING_TOOL_MAX_BODY_BYTES),
|
|
1648
|
+
startedAtMs: Date.now(),
|
|
1649
|
+
};
|
|
1650
|
+
const actionId = service.request?.actionId;
|
|
1651
|
+
const work = startFacadeExecution(facade, capability, headers, body, admission, () => {
|
|
1652
|
+
beginSafeTool(deps.beginTool, service.request);
|
|
1653
|
+
service.delegateStarted = true;
|
|
1654
|
+
});
|
|
1100
1655
|
releaseAdmissionWhenSettled(work, admission);
|
|
1101
1656
|
try {
|
|
1102
1657
|
const result = await raceAbort(work, admission.controller.signal);
|
|
1103
1658
|
const reason = abortReason(admission.controller.signal);
|
|
1104
1659
|
if (reason !== undefined)
|
|
1105
|
-
return abortedToolResponse(deps,
|
|
1106
|
-
return responseForToolResult(result,
|
|
1660
|
+
return abortedToolResponse(deps, service, admission, reason);
|
|
1661
|
+
return responseForToolResult(result, deps, service);
|
|
1107
1662
|
}
|
|
1108
1663
|
catch (error) {
|
|
1109
1664
|
const reason = abortReason(admission.controller.signal);
|
|
1110
1665
|
// A cancellation is an expected outcome, not a facade fault, so only a genuine failure is
|
|
1111
1666
|
// surfaced to the operator.
|
|
1112
1667
|
if (reason !== undefined)
|
|
1113
|
-
return abortedToolResponse(deps,
|
|
1668
|
+
return abortedToolResponse(deps, service, admission, reason);
|
|
1114
1669
|
emitFacadeFailureDiagnostic(diagnostics, actionId, error);
|
|
1115
|
-
settleSafeTool(settleTool, actionId, "failed");
|
|
1670
|
+
settleSafeTool(settleTool, actionId, "failed", bridgeServicePresentation(service), service.delegateStarted);
|
|
1116
1671
|
return { status: 502, body: "" };
|
|
1117
1672
|
}
|
|
1118
1673
|
}
|
|
@@ -1120,11 +1675,16 @@ async function executeToolRequest(deps, headers, body, admission) {
|
|
|
1120
1675
|
// request was admitted under, so a call cut off here is told apart in the log from one its caller
|
|
1121
1676
|
// dropped or the catalog timed out; a 30 s bridge deadline once cut waiting approvals off without a
|
|
1122
1677
|
// line of its own (PR #3452, F44).
|
|
1123
|
-
function abortedToolResponse(deps,
|
|
1124
|
-
|
|
1678
|
+
function abortedToolResponse(deps, service, admission, reason) {
|
|
1679
|
+
const actionId = service.request?.actionId;
|
|
1680
|
+
settleSafeTool(deps.settleTool, actionId, "cancelled", bridgeServicePresentation(service), service.delegateStarted);
|
|
1125
1681
|
if (reason !== DEADLINE_ABORT)
|
|
1126
1682
|
return { status: 502, body: "" };
|
|
1127
|
-
|
|
1683
|
+
emitToolBridgeDeadlineDiagnostic(deps.diagnostics, actionId, admission);
|
|
1684
|
+
return { status: 408, body: "" };
|
|
1685
|
+
}
|
|
1686
|
+
function emitToolBridgeDeadlineDiagnostic(diagnostics, actionId, admission) {
|
|
1687
|
+
emitServerDiagnostic(diagnostics, {
|
|
1128
1688
|
correlationId: actionCorrelationId(actionId),
|
|
1129
1689
|
timestamp: new Date().toISOString(),
|
|
1130
1690
|
operation: "coding-runtime.tool-bridge",
|
|
@@ -1134,18 +1694,44 @@ function abortedToolResponse(deps, actionId, admission, reason) {
|
|
|
1134
1694
|
httpStatus: 408,
|
|
1135
1695
|
deadlineMs: admission.deadlineMs,
|
|
1136
1696
|
});
|
|
1137
|
-
return { status: 408, body: "" };
|
|
1138
1697
|
}
|
|
1139
|
-
function responseForToolResult(result,
|
|
1698
|
+
function responseForToolResult(result, deps, service) {
|
|
1699
|
+
const actionId = service.request?.actionId;
|
|
1700
|
+
const presentation = bridgeServicePresentation(service, result);
|
|
1140
1701
|
if (result.status === "busy") {
|
|
1141
|
-
settleSafeTool(settleTool, actionId, "failed");
|
|
1702
|
+
settleSafeTool(deps.settleTool, actionId, "failed", presentation, service.delegateStarted);
|
|
1142
1703
|
return { status: 429, body: "" };
|
|
1143
1704
|
}
|
|
1144
|
-
settleSafeTool(settleTool, actionId, safeToolState(result));
|
|
1705
|
+
settleSafeTool(deps.settleTool, actionId, safeToolState(result), presentation, service.delegateStarted);
|
|
1145
1706
|
const responseBody = JSON.stringify(result);
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1707
|
+
if (Buffer.byteLength(responseBody, "utf8") > CODING_TOOL_MAX_BODY_BYTES) {
|
|
1708
|
+
return { status: 502, body: "" };
|
|
1709
|
+
}
|
|
1710
|
+
if (deps.renderedResults !== undefined) {
|
|
1711
|
+
recordRenderedToolResult(deps.renderedResults, deps.diagnostics, actionId, result, presentation.bridgeDurationMs);
|
|
1712
|
+
}
|
|
1713
|
+
return { status: 200, body: responseBody };
|
|
1714
|
+
}
|
|
1715
|
+
// The rendering record is evidence about an answer the facade has already produced, and the facade
|
|
1716
|
+
// has by then executed the tool — an applied edit among them. A sink that cannot take the line (or a
|
|
1717
|
+
// line that fails its own validation) must therefore never reach `executeToolRequest`'s catch, which
|
|
1718
|
+
// answers 502 and settles the same action a second time as failed: the model would read a failure
|
|
1719
|
+
// for a completed action and could repeat it (PR #3876 review). The failure goes to the operator
|
|
1720
|
+
// diagnostic instead, content-free and correlated to the call, and the answer stands.
|
|
1721
|
+
function recordRenderedToolResult(rendered, diagnostics, actionId, result, bridgeDurationMs) {
|
|
1722
|
+
try {
|
|
1723
|
+
recordGovernedToolModelContent(rendered.sink, rendered.correlationId, result, bridgeDurationMs);
|
|
1724
|
+
}
|
|
1725
|
+
catch (error) {
|
|
1726
|
+
emitServerDiagnostic(diagnostics, {
|
|
1727
|
+
correlationId: actionCorrelationId(actionId),
|
|
1728
|
+
timestamp: new Date().toISOString(),
|
|
1729
|
+
operation: "coding-runtime.tool-bridge",
|
|
1730
|
+
source: "opencode-runtime-composition.tool-result-render-log",
|
|
1731
|
+
errorClass: contentFreeErrorClass(error),
|
|
1732
|
+
message: "tool-result-render-log-failed",
|
|
1733
|
+
});
|
|
1734
|
+
}
|
|
1149
1735
|
}
|
|
1150
1736
|
// Invoking inside `.then` defers the call, so a facade that dies SYNCHRONOUSLY (before returning a
|
|
1151
1737
|
// promise) surfaces as a rejection on the very same path as one whose promise rejects. That gives
|
|
@@ -1153,8 +1739,14 @@ function responseForToolResult(result, settleTool, actionId) {
|
|
|
1153
1739
|
// settles the tool, and maps the request to 502/408 — and it keeps the call out of a `try`, which
|
|
1154
1740
|
// typescript:S4822 rejects around a promise-returning call in either direction (with a `.catch` it
|
|
1155
1741
|
// asks for the `try` to go, without one it asks for the `.catch`).
|
|
1156
|
-
function startFacadeExecution(facade, capability, headers, body, admission) {
|
|
1157
|
-
return Promise.resolve().then(() => facade.execute({
|
|
1742
|
+
function startFacadeExecution(facade, capability, headers, body, admission, onDelegateStarted) {
|
|
1743
|
+
return Promise.resolve().then(() => facade.execute({
|
|
1744
|
+
body,
|
|
1745
|
+
capability,
|
|
1746
|
+
headers,
|
|
1747
|
+
signal: admission.controller.signal,
|
|
1748
|
+
onDelegateStarted,
|
|
1749
|
+
}));
|
|
1158
1750
|
}
|
|
1159
1751
|
// Content-free by design (the tool bridge never logs request or error bodies): the record carries
|
|
1160
1752
|
// the error class and a fixed machine message only, keyed to the action id for correlation. The
|
|
@@ -1196,10 +1788,53 @@ function releaseAdmissionWhenSettled(work, admission) {
|
|
|
1196
1788
|
admission.release();
|
|
1197
1789
|
});
|
|
1198
1790
|
}
|
|
1199
|
-
function
|
|
1791
|
+
function beginSafeTool(beginTool, request) {
|
|
1792
|
+
if (beginTool === undefined || request === undefined)
|
|
1793
|
+
return;
|
|
1794
|
+
const tool = openCodeCatalogAliasFor(request);
|
|
1795
|
+
if (tool !== undefined)
|
|
1796
|
+
beginTool({ actionId: request.actionId, tool, occurredAt: new Date().toISOString() });
|
|
1797
|
+
}
|
|
1798
|
+
function settleSafeTool(settleTool, actionId, state, presentation, delegateStarted) {
|
|
1200
1799
|
if (actionId === undefined)
|
|
1201
1800
|
return;
|
|
1202
|
-
settleTool?.({
|
|
1801
|
+
settleTool?.({
|
|
1802
|
+
actionId,
|
|
1803
|
+
state,
|
|
1804
|
+
...(delegateStarted === undefined ? {} : { delegateStarted }),
|
|
1805
|
+
occurredAt: new Date().toISOString(),
|
|
1806
|
+
...(presentation === undefined ? {} : { presentation }),
|
|
1807
|
+
});
|
|
1808
|
+
}
|
|
1809
|
+
function bridgeServicePresentation(service, result) {
|
|
1810
|
+
const facts = result === undefined || service.request === undefined
|
|
1811
|
+
? {}
|
|
1812
|
+
: governedToolPresentation(service.request, result);
|
|
1813
|
+
return Object.freeze({
|
|
1814
|
+
...facts,
|
|
1815
|
+
bridgeDurationMs: Math.max(0, Date.now() - service.startedAtMs),
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
function governedToolPresentation(request, result) {
|
|
1819
|
+
if (request.action === "edit")
|
|
1820
|
+
return codingToolEditPresentation(result);
|
|
1821
|
+
if (result.status !== "completed" || !("read" in result))
|
|
1822
|
+
return {};
|
|
1823
|
+
if (request.action === "discover") {
|
|
1824
|
+
return "returnedPathCount" in result.read && typeof result.read.returnedPathCount === "number"
|
|
1825
|
+
? { returnedPathCount: result.read.returnedPathCount }
|
|
1826
|
+
: {};
|
|
1827
|
+
}
|
|
1828
|
+
return request.action === "read" ? governedReadPresentation(request, result.read) : {};
|
|
1829
|
+
}
|
|
1830
|
+
function governedReadPresentation(request, read) {
|
|
1831
|
+
if (!isCodingSafeActivityPresentationPath(request.relativePath) || isDenied(request.relativePath))
|
|
1832
|
+
return {};
|
|
1833
|
+
return {
|
|
1834
|
+
relativePath: request.relativePath,
|
|
1835
|
+
readByteCount: read.byteCount,
|
|
1836
|
+
...("totalLines" in read ? { totalFileLines: read.totalLines } : {}),
|
|
1837
|
+
};
|
|
1203
1838
|
}
|
|
1204
1839
|
function safeToolState(result) {
|
|
1205
1840
|
if (result.status === "completed")
|
|
@@ -1304,3 +1939,599 @@ export function readBoundedBody(request, signal) {
|
|
|
1304
1939
|
onAbort();
|
|
1305
1940
|
});
|
|
1306
1941
|
}
|
|
1942
|
+
function initializationBridgeFacet(deps, gate, active) {
|
|
1943
|
+
const facet = deps.facade.acceptedInitialization;
|
|
1944
|
+
const producer = facet?.run.bind(facet);
|
|
1945
|
+
if (producer === undefined)
|
|
1946
|
+
return undefined;
|
|
1947
|
+
return Object.freeze({
|
|
1948
|
+
run: (initialize, signal) => {
|
|
1949
|
+
if (!active())
|
|
1950
|
+
return Promise.resolve({ ok: false, reason: "initialization-closed" });
|
|
1951
|
+
if (signal?.aborted === true)
|
|
1952
|
+
return Promise.resolve({ ok: false, reason: "cancelled" });
|
|
1953
|
+
const admission = gate.admit(gate.limits.requestDeadlineMs);
|
|
1954
|
+
if (admission === undefined)
|
|
1955
|
+
return Promise.resolve({ ok: false, reason: "busy" });
|
|
1956
|
+
const detach = bindExternalAbort(signal, admission);
|
|
1957
|
+
return executeBridgeInitialization(deps, producer, initialize, admission).finally(detach);
|
|
1958
|
+
},
|
|
1959
|
+
});
|
|
1960
|
+
}
|
|
1961
|
+
async function executeBridgeInitialization(deps, producer, initialize, admission) {
|
|
1962
|
+
const signal = admission.controller.signal;
|
|
1963
|
+
const work = Promise.resolve().then(() => producer(initialize, signal));
|
|
1964
|
+
releaseAdmissionWhenSettled(work, admission);
|
|
1965
|
+
try {
|
|
1966
|
+
return await raceAbort(work, signal);
|
|
1967
|
+
}
|
|
1968
|
+
catch (error) {
|
|
1969
|
+
if (signal.aborted) {
|
|
1970
|
+
if (abortReason(signal) !== DEADLINE_ABORT)
|
|
1971
|
+
return { ok: false, reason: "cancelled" };
|
|
1972
|
+
emitToolBridgeDeadlineDiagnostic(deps.diagnostics, undefined, admission);
|
|
1973
|
+
return { ok: false, reason: "timeout" };
|
|
1974
|
+
}
|
|
1975
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, undefined, error);
|
|
1976
|
+
return { ok: false, reason: "initialization-failed" };
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
function nativeReadTransportValue(body) {
|
|
1980
|
+
if (!validJson(body))
|
|
1981
|
+
return undefined;
|
|
1982
|
+
const value = JSON.parse(body);
|
|
1983
|
+
return v2Record(value)?.action === "native-read-invocation" ? value : undefined;
|
|
1984
|
+
}
|
|
1985
|
+
/** Capture transport data only; the existing parent owns authority, replay and physical work. */
|
|
1986
|
+
export function copyNativeReadTransportPacket(value) {
|
|
1987
|
+
const record = initializationData(value);
|
|
1988
|
+
if (record?.action !== "native-read-invocation" || typeof record.runId !== "string")
|
|
1989
|
+
return undefined;
|
|
1990
|
+
if (!/^[A-Za-z0-9_-]{1,256}$/u.test(record.runId))
|
|
1991
|
+
return undefined;
|
|
1992
|
+
const common = { action: "native-read-invocation", runId: record.runId };
|
|
1993
|
+
if (record.phase === "begin")
|
|
1994
|
+
return copyNativeReadBegin(record, common);
|
|
1995
|
+
const identity = copyNativeReadStrings(record.identity, [
|
|
1996
|
+
"actionId",
|
|
1997
|
+
"idempotencyKey",
|
|
1998
|
+
"invocationId",
|
|
1999
|
+
]);
|
|
2000
|
+
if (identity === undefined)
|
|
2001
|
+
return undefined;
|
|
2002
|
+
if (record.phase === "close")
|
|
2003
|
+
return copyNativeReadClose(record, common, identity);
|
|
2004
|
+
return copyNativeReadIO(record, common, identity);
|
|
2005
|
+
}
|
|
2006
|
+
function copyNativeReadStrings(value, keys) {
|
|
2007
|
+
const record = initializationData(value);
|
|
2008
|
+
if (record === undefined || !initialFields(record, keys))
|
|
2009
|
+
return undefined;
|
|
2010
|
+
if (!keys.every((key) => nativeReadTransportString(record[key])))
|
|
2011
|
+
return undefined;
|
|
2012
|
+
return record;
|
|
2013
|
+
}
|
|
2014
|
+
function nativeReadTransportString(value) {
|
|
2015
|
+
return typeof value === "string" && value.length > 0 && Buffer.byteLength(value, "utf8") <= 512;
|
|
2016
|
+
}
|
|
2017
|
+
function copyNativeReadBegin(record, common) {
|
|
2018
|
+
if (!nativeReadBeginFields(record) ||
|
|
2019
|
+
!nativeReadTransportString(record.actionId) ||
|
|
2020
|
+
!nativeReadTransportString(record.idempotencyKey) ||
|
|
2021
|
+
!nativeReadTransportPath(record.relativePath))
|
|
2022
|
+
return undefined;
|
|
2023
|
+
const context = copyNativeReadStrings(record.context, ["sessionID", "messageID", "id", "agent"]);
|
|
2024
|
+
if (context === undefined || !nativeReadWindow(record.offset) || !nativeReadWindow(record.limit))
|
|
2025
|
+
return undefined;
|
|
2026
|
+
return Object.freeze({
|
|
2027
|
+
...common,
|
|
2028
|
+
phase: "begin",
|
|
2029
|
+
actionId: record.actionId,
|
|
2030
|
+
idempotencyKey: record.idempotencyKey,
|
|
2031
|
+
relativePath: record.relativePath,
|
|
2032
|
+
context,
|
|
2033
|
+
...(record.offset === undefined ? {} : { offset: record.offset }),
|
|
2034
|
+
...(record.limit === undefined ? {} : { limit: record.limit }),
|
|
2035
|
+
});
|
|
2036
|
+
}
|
|
2037
|
+
function nativeReadBeginFields(record) {
|
|
2038
|
+
const keys = [
|
|
2039
|
+
"action",
|
|
2040
|
+
"phase",
|
|
2041
|
+
"runId",
|
|
2042
|
+
"actionId",
|
|
2043
|
+
"idempotencyKey",
|
|
2044
|
+
"relativePath",
|
|
2045
|
+
"context",
|
|
2046
|
+
];
|
|
2047
|
+
for (const key of ["offset", "limit"])
|
|
2048
|
+
if (Object.hasOwn(record, key))
|
|
2049
|
+
keys.push(key);
|
|
2050
|
+
return initialFields(record, keys);
|
|
2051
|
+
}
|
|
2052
|
+
function nativeReadTransportPath(value) {
|
|
2053
|
+
return typeof value === "string" && isSecureWorkspaceNativeRelativePath(value);
|
|
2054
|
+
}
|
|
2055
|
+
function nativeReadWindow(value) {
|
|
2056
|
+
return (value === undefined || (typeof value === "number" && Number.isSafeInteger(value) && value >= 0));
|
|
2057
|
+
}
|
|
2058
|
+
function copyNativeReadClose(record, common, identity) {
|
|
2059
|
+
if (!initialFields(record, ["action", "phase", "runId", "identity", "outcome"]))
|
|
2060
|
+
return undefined;
|
|
2061
|
+
const outcome = record.outcome;
|
|
2062
|
+
return outcome === "completed" || outcome === "failed" || outcome === "cancelled"
|
|
2063
|
+
? Object.freeze({ ...common, phase: "close", identity, outcome })
|
|
2064
|
+
: undefined;
|
|
2065
|
+
}
|
|
2066
|
+
function copyNativeReadIO(record, common, identity) {
|
|
2067
|
+
const phase = record.phase;
|
|
2068
|
+
if (phase !== "readBytes" && phase !== "stat" && phase !== "list")
|
|
2069
|
+
return undefined;
|
|
2070
|
+
if (!nativeReadTransportPath(record.relativePath) || !nativeReadOrdinal(record.ordinal))
|
|
2071
|
+
return undefined;
|
|
2072
|
+
const purpose = record.purpose;
|
|
2073
|
+
if (purpose !== "native-tool-io" && purpose !== "native-instructions")
|
|
2074
|
+
return undefined;
|
|
2075
|
+
const keys = ["action", "phase", "runId", "identity", "ordinal", "relativePath", "purpose"];
|
|
2076
|
+
const range = copyInitializationRange(record, keys);
|
|
2077
|
+
if (!nativeReadRangeForPhase(phase, range))
|
|
2078
|
+
return undefined;
|
|
2079
|
+
const input = Object.freeze({
|
|
2080
|
+
ordinal: record.ordinal,
|
|
2081
|
+
relativePath: record.relativePath,
|
|
2082
|
+
purpose,
|
|
2083
|
+
...(range === undefined ? {} : { range }),
|
|
2084
|
+
});
|
|
2085
|
+
return Object.freeze({ ...common, phase, identity, input });
|
|
2086
|
+
}
|
|
2087
|
+
function nativeReadOrdinal(value) {
|
|
2088
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 1;
|
|
2089
|
+
}
|
|
2090
|
+
function nativeReadRangeForPhase(phase, range) {
|
|
2091
|
+
return (range !== false &&
|
|
2092
|
+
(range === undefined || (phase === "readBytes" && isSecureWorkspaceNativeRange(range))));
|
|
2093
|
+
}
|
|
2094
|
+
async function handleNativeReadTransport(value, signal, deps, runs, producer) {
|
|
2095
|
+
const packet = copyNativeReadTransportPacket(value);
|
|
2096
|
+
if (packet === undefined)
|
|
2097
|
+
return nativeInitializationRefusal("invalid-request", 400);
|
|
2098
|
+
const run = runs.get(packet.runId);
|
|
2099
|
+
try {
|
|
2100
|
+
if (producer?.fileIO === undefined || !nativeReadRunCurrent(deps, run))
|
|
2101
|
+
return nativeInitializationRefusal("dispatch-refused");
|
|
2102
|
+
if (signal?.aborted === true)
|
|
2103
|
+
return nativeInitializationRefusal("cancelled");
|
|
2104
|
+
return await dispatchNativeReadTransport(packet, run, producer, signal, deps);
|
|
2105
|
+
}
|
|
2106
|
+
catch (error) {
|
|
2107
|
+
if (producer !== undefined && packet.phase !== "begin")
|
|
2108
|
+
void producer.close(packet.identity, "cancelled");
|
|
2109
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, nativeReadPacketActionId(packet), error);
|
|
2110
|
+
return nativeInitializationRefusal("dispatch-refused", 502);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
function nativeReadPacketActionId(packet) {
|
|
2114
|
+
return packet.phase === "begin" ? packet.actionId : packet.identity.actionId;
|
|
2115
|
+
}
|
|
2116
|
+
function dispatchNativeReadTransport(packet, run, producer, signal, deps) {
|
|
2117
|
+
if (packet.phase === "begin")
|
|
2118
|
+
return beginNativeReadTransport(packet, run, producer, signal, deps);
|
|
2119
|
+
if (packet.phase === "close")
|
|
2120
|
+
return closeNativeReadTransport(packet, run, producer, signal, deps);
|
|
2121
|
+
return nativeReadTransportIO(packet, run, producer, signal, deps);
|
|
2122
|
+
}
|
|
2123
|
+
function nativeReadRunCurrent(deps, run) {
|
|
2124
|
+
return run?.ready === true && run.sessionId !== undefined && initializationRootCurrent(deps, run);
|
|
2125
|
+
}
|
|
2126
|
+
async function beginNativeReadTransport(packet, run, producer, signal, deps) {
|
|
2127
|
+
if (packet.context.sessionID !== run.sessionId)
|
|
2128
|
+
return nativeInitializationRefusal("dispatch-refused");
|
|
2129
|
+
const body = JSON.stringify({
|
|
2130
|
+
action: "read",
|
|
2131
|
+
relativePath: packet.relativePath,
|
|
2132
|
+
actionId: packet.actionId,
|
|
2133
|
+
idempotencyKey: packet.idempotencyKey,
|
|
2134
|
+
});
|
|
2135
|
+
const result = await producer.begin({
|
|
2136
|
+
body,
|
|
2137
|
+
context: packet.context,
|
|
2138
|
+
capability: deps.capability,
|
|
2139
|
+
signal,
|
|
2140
|
+
...(packet.offset === undefined ? {} : { offset: packet.offset }),
|
|
2141
|
+
...(packet.limit === undefined ? {} : { limit: packet.limit }),
|
|
2142
|
+
});
|
|
2143
|
+
if (!result.ok)
|
|
2144
|
+
return nativeInitializationRefusal(result.reason);
|
|
2145
|
+
let delivered = false;
|
|
2146
|
+
try {
|
|
2147
|
+
if (!nativeReadBeginCurrent(packet, run, producer, result.identity, signal, deps))
|
|
2148
|
+
return nativeInitializationRefusal("dispatch-refused");
|
|
2149
|
+
delivered = true;
|
|
2150
|
+
return {
|
|
2151
|
+
status: 200,
|
|
2152
|
+
body: JSON.stringify({ ok: true, identity: result.identity }),
|
|
2153
|
+
nativeResult: true,
|
|
2154
|
+
};
|
|
2155
|
+
}
|
|
2156
|
+
finally {
|
|
2157
|
+
if (!delivered)
|
|
2158
|
+
void producer.close(result.identity, "cancelled");
|
|
2159
|
+
}
|
|
2160
|
+
}
|
|
2161
|
+
function nativeReadBeginCurrent(packet, run, producer, identity, signal, deps) {
|
|
2162
|
+
return (signal?.aborted !== true &&
|
|
2163
|
+
nativeReadRunCurrent(deps, run) &&
|
|
2164
|
+
packet.context.sessionID === run.sessionId &&
|
|
2165
|
+
producer.signalFor(identity)?.aborted === false);
|
|
2166
|
+
}
|
|
2167
|
+
async function closeNativeReadTransport(packet, run, producer, signal, deps) {
|
|
2168
|
+
const detach = bindNativeReadDisconnect(signal, producer, packet.identity);
|
|
2169
|
+
try {
|
|
2170
|
+
const ok = await producer.close(packet.identity, packet.outcome);
|
|
2171
|
+
return nativeReadRunCurrent(deps, run) && signal?.aborted !== true
|
|
2172
|
+
? { status: 200, body: JSON.stringify({ ok }), nativeResult: true }
|
|
2173
|
+
: nativeInitializationRefusal("dispatch-refused");
|
|
2174
|
+
}
|
|
2175
|
+
finally {
|
|
2176
|
+
detach();
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
function bindNativeReadDisconnect(signal, producer, identity) {
|
|
2180
|
+
const abort = () => {
|
|
2181
|
+
void producer.close(identity, "cancelled");
|
|
2182
|
+
};
|
|
2183
|
+
if (signal?.aborted === true)
|
|
2184
|
+
abort();
|
|
2185
|
+
else
|
|
2186
|
+
signal?.addEventListener("abort", abort, { once: true });
|
|
2187
|
+
return () => {
|
|
2188
|
+
signal?.removeEventListener("abort", abort);
|
|
2189
|
+
};
|
|
2190
|
+
}
|
|
2191
|
+
async function nativeReadTransportIO(packet, run, producer, signal, deps) {
|
|
2192
|
+
const io = producer.fileIO;
|
|
2193
|
+
if (io === undefined)
|
|
2194
|
+
return nativeInitializationRefusal("dispatch-refused");
|
|
2195
|
+
const detach = bindNativeReadDisconnect(signal, producer, packet.identity);
|
|
2196
|
+
const work = io[packet.phase](packet.identity, packet.input);
|
|
2197
|
+
void work.then((late) => {
|
|
2198
|
+
if (signal?.aborted === true)
|
|
2199
|
+
wipeNativeIOBytes(late);
|
|
2200
|
+
});
|
|
2201
|
+
try {
|
|
2202
|
+
const result = signal === undefined ? await work : await raceAbort(work, signal);
|
|
2203
|
+
if (signal?.aborted === true || !nativeReadIOCurrent(deps, run, result)) {
|
|
2204
|
+
wipeNativeIOBytes(result);
|
|
2205
|
+
void producer.close(packet.identity, "cancelled");
|
|
2206
|
+
return nativeInitializationRefusal("dispatch-refused");
|
|
2207
|
+
}
|
|
2208
|
+
return nativeFileIOResponse(result);
|
|
2209
|
+
}
|
|
2210
|
+
catch (error) {
|
|
2211
|
+
if (signal?.aborted !== true)
|
|
2212
|
+
throw error;
|
|
2213
|
+
return nativeInitializationRefusal("cancelled");
|
|
2214
|
+
}
|
|
2215
|
+
finally {
|
|
2216
|
+
detach();
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
function nativeReadIOCurrent(deps, run, result) {
|
|
2220
|
+
let current = false;
|
|
2221
|
+
try {
|
|
2222
|
+
current = nativeReadRunCurrent(deps, run);
|
|
2223
|
+
return current;
|
|
2224
|
+
}
|
|
2225
|
+
finally {
|
|
2226
|
+
if (!current)
|
|
2227
|
+
wipeNativeIOBytes(result);
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
function wipeNativeIOBytes(result) {
|
|
2231
|
+
if (result.ok && "bytes" in result)
|
|
2232
|
+
result.bytes.fill(0);
|
|
2233
|
+
}
|
|
2234
|
+
function nativeInitializationValue(body) {
|
|
2235
|
+
if (!validJson(body))
|
|
2236
|
+
return undefined;
|
|
2237
|
+
const value = JSON.parse(body);
|
|
2238
|
+
return v2Record(value)?.action === "native-initialization" ? value : undefined;
|
|
2239
|
+
}
|
|
2240
|
+
/** Owned data only; transport never supplies authority, workspace root, purpose, or executable. */
|
|
2241
|
+
export function copyNativeInitializationPacket(value) {
|
|
2242
|
+
const record = initializationData(value);
|
|
2243
|
+
if (record?.action !== "native-initialization" || typeof record.runId !== "string")
|
|
2244
|
+
return undefined;
|
|
2245
|
+
if (!/^[A-Za-z0-9_-]{1,256}$/u.test(record.runId))
|
|
2246
|
+
return undefined;
|
|
2247
|
+
return copyInitializationPhase(record, record.runId);
|
|
2248
|
+
}
|
|
2249
|
+
function copyInitializationPhase(record, runId) {
|
|
2250
|
+
const action = "native-initialization";
|
|
2251
|
+
if (record.phase === "begin")
|
|
2252
|
+
return initialFields(record, ["action", "phase", "runId"])
|
|
2253
|
+
? Object.freeze({ action, phase: record.phase, runId })
|
|
2254
|
+
: undefined;
|
|
2255
|
+
if (typeof record.scopeId !== "string" || !/^[a-f0-9-]{36}$/u.test(record.scopeId))
|
|
2256
|
+
return undefined;
|
|
2257
|
+
const common = { action, runId, scopeId: record.scopeId };
|
|
2258
|
+
if (record.phase === "end")
|
|
2259
|
+
return initialFields(record, ["action", "phase", "runId", "scopeId"])
|
|
2260
|
+
? Object.freeze({ ...common, phase: record.phase })
|
|
2261
|
+
: undefined;
|
|
2262
|
+
return copyInitializationIO(record, common);
|
|
2263
|
+
}
|
|
2264
|
+
function initializationData(value) {
|
|
2265
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
2266
|
+
return undefined;
|
|
2267
|
+
if (Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null)
|
|
2268
|
+
return undefined;
|
|
2269
|
+
const fields = {};
|
|
2270
|
+
for (const key of Reflect.ownKeys(value)) {
|
|
2271
|
+
if (typeof key !== "string")
|
|
2272
|
+
return undefined;
|
|
2273
|
+
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
2274
|
+
if (descriptor === undefined || !("value" in descriptor))
|
|
2275
|
+
return undefined;
|
|
2276
|
+
fields[key] = descriptor.value;
|
|
2277
|
+
}
|
|
2278
|
+
return Object.freeze(fields);
|
|
2279
|
+
}
|
|
2280
|
+
function initialFields(record, keys) {
|
|
2281
|
+
return (Object.keys(record).length === keys.length && keys.every((key) => Object.hasOwn(record, key)));
|
|
2282
|
+
}
|
|
2283
|
+
function copyInitializationIO(record, common) {
|
|
2284
|
+
if (typeof record.relativePath !== "string")
|
|
2285
|
+
return undefined;
|
|
2286
|
+
const keys = ["action", "phase", "runId", "scopeId", "relativePath"];
|
|
2287
|
+
const path = record.relativePath;
|
|
2288
|
+
if (record.phase === "stat" || record.phase === "list")
|
|
2289
|
+
return initialFields(record, keys)
|
|
2290
|
+
? Object.freeze({ ...common, phase: record.phase, relativePath: path })
|
|
2291
|
+
: undefined;
|
|
2292
|
+
if (record.phase !== "readBytes")
|
|
2293
|
+
return undefined;
|
|
2294
|
+
const range = copyInitializationRange(record, keys);
|
|
2295
|
+
if (range === false)
|
|
2296
|
+
return undefined;
|
|
2297
|
+
return Object.freeze({
|
|
2298
|
+
...common,
|
|
2299
|
+
phase: record.phase,
|
|
2300
|
+
relativePath: path,
|
|
2301
|
+
...(range === undefined ? {} : { range }),
|
|
2302
|
+
});
|
|
2303
|
+
}
|
|
2304
|
+
function copyInitializationRange(record, keys) {
|
|
2305
|
+
if (!Object.hasOwn(record, "range"))
|
|
2306
|
+
return initialFields(record, keys) ? undefined : false;
|
|
2307
|
+
const range = initializationData(record.range);
|
|
2308
|
+
if (range === undefined ||
|
|
2309
|
+
!initialFields(record, [...keys, "range"]) ||
|
|
2310
|
+
!initialFields(range, ["offset", "length"]))
|
|
2311
|
+
return false;
|
|
2312
|
+
if (typeof range.offset !== "number" || typeof range.length !== "number")
|
|
2313
|
+
return false;
|
|
2314
|
+
return Object.freeze({ offset: range.offset, length: range.length });
|
|
2315
|
+
}
|
|
2316
|
+
async function handleNativeInitialization(value, signal, deps, gate, runs) {
|
|
2317
|
+
const packet = copyNativeInitializationPacket(value);
|
|
2318
|
+
if (packet === undefined)
|
|
2319
|
+
return nativeInitializationRefusal("invalid-request", 400);
|
|
2320
|
+
const run = runs.get(packet.runId);
|
|
2321
|
+
try {
|
|
2322
|
+
if (run?.serviceHostPrepared !== true || run.ready || !initializationRootCurrent(deps, run))
|
|
2323
|
+
return nativeInitializationRefusal("initialization-refused");
|
|
2324
|
+
if (packet.phase === "begin")
|
|
2325
|
+
return await beginNativeInitialization(run, signal, deps, gate);
|
|
2326
|
+
return await continueNativeInitialization(packet, run, signal, deps);
|
|
2327
|
+
}
|
|
2328
|
+
catch (error) {
|
|
2329
|
+
run?.nativeInitialization?.admission.controller.abort("initialization-failed");
|
|
2330
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, undefined, error);
|
|
2331
|
+
return nativeInitializationRefusal("initialization-failed", 502);
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
function initializationRootCurrent(deps, run) {
|
|
2335
|
+
const root = deps.resolveWorkspaceRootAccess?.();
|
|
2336
|
+
return root?.canonicalRoot === run.workspaceRoot;
|
|
2337
|
+
}
|
|
2338
|
+
function nativeInitializationRefusal(reason, status = 409) {
|
|
2339
|
+
return { status, body: JSON.stringify({ ok: false, reason }), nativeResult: true };
|
|
2340
|
+
}
|
|
2341
|
+
async function beginNativeInitialization(run, signal, deps, gate) {
|
|
2342
|
+
const facet = deps.facade.acceptedInitialization;
|
|
2343
|
+
if (facet === undefined || run.nativeInitialization !== undefined)
|
|
2344
|
+
return nativeInitializationRefusal("initialization-closed");
|
|
2345
|
+
if (signal?.aborted === true)
|
|
2346
|
+
return nativeInitializationRefusal("cancelled");
|
|
2347
|
+
const admission = gate.admit(gate.limits.requestDeadlineMs);
|
|
2348
|
+
if (admission === undefined)
|
|
2349
|
+
return nativeInitializationRefusal("busy", 429);
|
|
2350
|
+
const { state, ready } = createInitializationAttachment(deps, facet, admission, signal, run.runId);
|
|
2351
|
+
run.nativeInitialization = state;
|
|
2352
|
+
const result = state.result;
|
|
2353
|
+
const entered = await Promise.race([ready.then(() => true), result.then(() => false)]);
|
|
2354
|
+
if (!entered)
|
|
2355
|
+
return initializationOutcome(await result);
|
|
2356
|
+
if (!state.open || !initializationRootCurrent(deps, run)) {
|
|
2357
|
+
admission.controller.abort("initialization-refused");
|
|
2358
|
+
return nativeInitializationRefusal("initialization-refused");
|
|
2359
|
+
}
|
|
2360
|
+
recordNativeInitializationLifecycle(deps, run.runId, "begin", "accepted");
|
|
2361
|
+
return { status: 200, body: JSON.stringify({ ok: true, scopeId: state.id }), nativeResult: true };
|
|
2362
|
+
}
|
|
2363
|
+
function initializationOutcome(result) {
|
|
2364
|
+
return result.ok
|
|
2365
|
+
? { status: 200, body: '{"ok":true}', nativeResult: true }
|
|
2366
|
+
: nativeInitializationRefusal(result.reason);
|
|
2367
|
+
}
|
|
2368
|
+
async function continueNativeInitialization(packet, run, signal, deps) {
|
|
2369
|
+
const state = run.nativeInitialization;
|
|
2370
|
+
if (state?.id !== packet.scopeId || !state.open || state.io === undefined)
|
|
2371
|
+
return nativeInitializationRefusal("initialization-closed");
|
|
2372
|
+
const detach = bindExternalAbort(signal, state.admission);
|
|
2373
|
+
try {
|
|
2374
|
+
if (packet.phase === "end") {
|
|
2375
|
+
state.open = false;
|
|
2376
|
+
state.end();
|
|
2377
|
+
const result = await state.result;
|
|
2378
|
+
return initializationRootCurrent(deps, run)
|
|
2379
|
+
? initializationOutcome(result)
|
|
2380
|
+
: nativeInitializationRefusal("initialization-refused");
|
|
2381
|
+
}
|
|
2382
|
+
return await initialIOUnderCurrentScope(packet, run, state, state.io, deps);
|
|
2383
|
+
}
|
|
2384
|
+
finally {
|
|
2385
|
+
detach();
|
|
2386
|
+
}
|
|
2387
|
+
}
|
|
2388
|
+
async function initialIOUnderCurrentScope(packet, run, state, io, deps) {
|
|
2389
|
+
const work = executeInitialIO(packet, io);
|
|
2390
|
+
void work.then((late) => {
|
|
2391
|
+
if (state.admission.controller.signal.aborted && late.ok && "bytes" in late)
|
|
2392
|
+
late.bytes.fill(0);
|
|
2393
|
+
}, (error) => {
|
|
2394
|
+
if (state.admission.controller.signal.aborted)
|
|
2395
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, undefined, error);
|
|
2396
|
+
});
|
|
2397
|
+
let result;
|
|
2398
|
+
try {
|
|
2399
|
+
result = await raceAbort(work, state.admission.controller.signal);
|
|
2400
|
+
}
|
|
2401
|
+
catch (error) {
|
|
2402
|
+
if (!state.admission.controller.signal.aborted)
|
|
2403
|
+
throw error;
|
|
2404
|
+
return nativeInitializationRefusal(abortReason(state.admission.controller.signal) === DEADLINE_ABORT ? "timeout" : "cancelled");
|
|
2405
|
+
}
|
|
2406
|
+
if (!state.open ||
|
|
2407
|
+
state.admission.controller.signal.aborted ||
|
|
2408
|
+
!initializationRootCurrent(deps, run)) {
|
|
2409
|
+
if (result.ok && "bytes" in result)
|
|
2410
|
+
result.bytes.fill(0);
|
|
2411
|
+
state.admission.controller.abort("initialization-refused");
|
|
2412
|
+
return nativeInitializationRefusal("initialization-refused");
|
|
2413
|
+
}
|
|
2414
|
+
return nativeFileIOResponse(result);
|
|
2415
|
+
}
|
|
2416
|
+
function executeInitialIO(packet, io) {
|
|
2417
|
+
const request = {
|
|
2418
|
+
relativePath: packet.relativePath,
|
|
2419
|
+
...(packet.phase === "readBytes" && packet.range !== undefined ? { range: packet.range } : {}),
|
|
2420
|
+
};
|
|
2421
|
+
return io[packet.phase](request);
|
|
2422
|
+
}
|
|
2423
|
+
function nativeFileIOResponse(result) {
|
|
2424
|
+
if (!result.ok) {
|
|
2425
|
+
if (result.reason === "wrong-kind")
|
|
2426
|
+
return {
|
|
2427
|
+
status: 200,
|
|
2428
|
+
body: "",
|
|
2429
|
+
nativeBytes: encodeSecureWorkspaceNativeResponse({
|
|
2430
|
+
status: "wrong-kind",
|
|
2431
|
+
info: result.info,
|
|
2432
|
+
}),
|
|
2433
|
+
};
|
|
2434
|
+
return nativeInitializationRefusal(result.reason);
|
|
2435
|
+
}
|
|
2436
|
+
const bytes = nativeFileIOResultBytes(result);
|
|
2437
|
+
try {
|
|
2438
|
+
return {
|
|
2439
|
+
status: 200,
|
|
2440
|
+
body: "",
|
|
2441
|
+
nativeBytes: encodeSecureWorkspaceNativeResponse({ status: "ok", info: result.info, bytes }),
|
|
2442
|
+
};
|
|
2443
|
+
}
|
|
2444
|
+
finally {
|
|
2445
|
+
bytes.fill(0);
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
function nativeFileIOResultBytes(result) {
|
|
2449
|
+
if ("bytes" in result)
|
|
2450
|
+
return result.bytes;
|
|
2451
|
+
if ("entries" in result)
|
|
2452
|
+
return encodeSecureWorkspaceNativeDirectory(result.entries);
|
|
2453
|
+
return new Uint8Array();
|
|
2454
|
+
}
|
|
2455
|
+
function createInitializationAttachment(deps, facet, admission, signal, runId) {
|
|
2456
|
+
const acquired = initializationDeferred();
|
|
2457
|
+
const done = initializationDeferred();
|
|
2458
|
+
const completed = initializationDeferred();
|
|
2459
|
+
const state = {
|
|
2460
|
+
id: randomUUID(),
|
|
2461
|
+
admission,
|
|
2462
|
+
result: completed.promise,
|
|
2463
|
+
end: () => {
|
|
2464
|
+
done.resolve(undefined);
|
|
2465
|
+
},
|
|
2466
|
+
open: true,
|
|
2467
|
+
};
|
|
2468
|
+
const close = () => {
|
|
2469
|
+
state.open = false;
|
|
2470
|
+
state.end();
|
|
2471
|
+
};
|
|
2472
|
+
admission.controller.signal.addEventListener("abort", close, { once: true });
|
|
2473
|
+
const detach = bindExternalAbort(signal, admission);
|
|
2474
|
+
void executeBridgeInitialization(deps, facet.run.bind(facet), (io) => {
|
|
2475
|
+
state.io = io;
|
|
2476
|
+
acquired.resolve(undefined);
|
|
2477
|
+
return done.promise;
|
|
2478
|
+
}, admission).then((result) => {
|
|
2479
|
+
close();
|
|
2480
|
+
detach();
|
|
2481
|
+
admission.controller.signal.removeEventListener("abort", close);
|
|
2482
|
+
completed.resolve(recordInitializationCompletion(deps, runId, result));
|
|
2483
|
+
});
|
|
2484
|
+
return { state, ready: acquired.promise };
|
|
2485
|
+
}
|
|
2486
|
+
function recordInitializationCompletion(deps, runId, result) {
|
|
2487
|
+
try {
|
|
2488
|
+
recordNativeInitializationLifecycle(deps, runId, "end", result.ok ? "completed" : result.reason);
|
|
2489
|
+
return result;
|
|
2490
|
+
}
|
|
2491
|
+
catch (error) {
|
|
2492
|
+
emitFacadeFailureDiagnostic(deps.diagnostics, undefined, error);
|
|
2493
|
+
return { ok: false, reason: "initialization-failed" };
|
|
2494
|
+
}
|
|
2495
|
+
}
|
|
2496
|
+
const NATIVE_INITIALIZATION_LIFECYCLE_OPERATION = defineActivityLogOperation({
|
|
2497
|
+
contractKind: "activity-log-operation",
|
|
2498
|
+
schemaVersion: 1,
|
|
2499
|
+
op: "coding-runtime.initialization-transport",
|
|
2500
|
+
category: "process",
|
|
2501
|
+
owner: "keiko-server",
|
|
2502
|
+
emitter: "coding-runtime.opencodeRuntimeComposition.recordNativeInitializationLifecycle",
|
|
2503
|
+
fields: {
|
|
2504
|
+
stage: { type: "string", dataClass: "closed-enum", required: true, values: ["begin", "end"] },
|
|
2505
|
+
outcome: {
|
|
2506
|
+
type: "string",
|
|
2507
|
+
dataClass: "closed-enum",
|
|
2508
|
+
required: true,
|
|
2509
|
+
values: [
|
|
2510
|
+
"accepted",
|
|
2511
|
+
"completed",
|
|
2512
|
+
"initialization-closed",
|
|
2513
|
+
"initialization-refused",
|
|
2514
|
+
"initialization-failed",
|
|
2515
|
+
"cancelled",
|
|
2516
|
+
"timeout",
|
|
2517
|
+
"busy",
|
|
2518
|
+
],
|
|
2519
|
+
},
|
|
2520
|
+
},
|
|
2521
|
+
causal: "correlation",
|
|
2522
|
+
lifecycle: "state",
|
|
2523
|
+
analyzerProjection: "timeline",
|
|
2524
|
+
failureClasses: ["coding-runtime-initialization-transport"],
|
|
2525
|
+
proofIds: ["coding-runtime.initialization-transport.emitted-line"],
|
|
2526
|
+
releaseImpact: "patch",
|
|
2527
|
+
});
|
|
2528
|
+
function recordNativeInitializationLifecycle(deps, runId, stage, outcome) {
|
|
2529
|
+
deps.activityLog.write(activityLogEvent(NATIVE_INITIALIZATION_LIFECYCLE_OPERATION, { correlationId: runId }, { stage, outcome }));
|
|
2530
|
+
}
|
|
2531
|
+
function initializationDeferred() {
|
|
2532
|
+
let resolve;
|
|
2533
|
+
const promise = new Promise((done) => {
|
|
2534
|
+
resolve = done;
|
|
2535
|
+
});
|
|
2536
|
+
return { promise, resolve };
|
|
2537
|
+
}
|