@oscharko-dev/keiko 1.2.0 → 1.2.2
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 +18 -2
- package/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +12 -12
- package/dist/ui/static/__next._full.txt +23 -22
- package/dist/ui/static/__next._tree.txt +2 -2
- package/dist/ui/static/_next/static/chunks/00h6kszysb2wr.js +1 -0
- package/dist/ui/static/_next/static/chunks/013tmcojxoy8z.js +1 -0
- package/dist/ui/static/_next/static/chunks/014h2nyfet3kr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0mjsj7bp-ukgh.css → 02ycexmxeqhmx.css} +28 -10
- package/dist/ui/static/_next/static/chunks/{2kylv1kq1_4p1.js → 0650rzqxvrg4k.js} +1 -1
- 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/08tg5xjyy073b.js +1 -0
- package/dist/ui/static/_next/static/chunks/0b7xat6jxvrmr.js +1 -0
- package/dist/ui/static/_next/static/chunks/0e0h-sia4dm93.js +2 -0
- package/dist/ui/static/_next/static/chunks/0e3x-8o_fjsn_.js +1 -0
- package/dist/ui/static/_next/static/chunks/0eeyfcixqqfab.js +1 -0
- package/dist/ui/static/_next/static/chunks/0eyoirips0ket.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0--s8pmsbkf62.js → 0gns083_remf0.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0ji_km0dqy8qj.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/{3h-rh_lx0l8_3.js → 0pf5ot48kepng.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0rs9egrg2q85w.js +1 -0
- package/dist/ui/static/_next/static/chunks/0sjewje-u3bqg.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0iu3dyqe7m7_7.js → 0t10yxd1t9qeg.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0l72usw6suk0h.js → 0ta8ifx4mr6gi.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0wok-g3ndtvch.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0yzmg9aoglud6.js → 0y0r5znrj9qw-.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0y3402xorco2c.js +1 -0
- package/dist/ui/static/_next/static/chunks/14ytv6jraivph.js +1 -0
- package/dist/ui/static/_next/static/chunks/15tj-r-c7bs-p.js +1 -0
- package/dist/ui/static/_next/static/chunks/18idxjg523mhp.js +1 -0
- package/dist/ui/static/_next/static/chunks/18kcx5kpyxr16.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3hclt6m3ok4n9.js → 1g_d_8a7vlqgu.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1lm4kkulhv0b_.js +1 -0
- package/dist/ui/static/_next/static/chunks/1o-own3kgpojf.js +1 -0
- package/dist/ui/static/_next/static/chunks/1pe5ee9wh-qwa.js +1 -0
- package/dist/ui/static/_next/static/chunks/1qcpuq815jtog.js +3 -0
- package/dist/ui/static/_next/static/chunks/1s3u1scfdjjd9.js +1 -0
- package/dist/ui/static/_next/static/chunks/1zqfkyeqq5cl8.js +1 -0
- package/dist/ui/static/_next/static/chunks/20-u8pg5ve_cz.js +1 -0
- package/dist/ui/static/_next/static/chunks/21rpgm75hndoe.js +1 -0
- package/dist/ui/static/_next/static/chunks/21s3ugswalpzt.js +1 -0
- package/dist/ui/static/_next/static/chunks/22zxuap4am9bs.js +1 -0
- package/dist/ui/static/_next/static/chunks/27e2u3lrksak4.js +1 -0
- package/dist/ui/static/_next/static/chunks/2g_pljoa8f0e-.js +1 -0
- package/dist/ui/static/_next/static/chunks/2go0k_akgnv11.js +1 -0
- package/dist/ui/static/_next/static/chunks/2jsnrkl0syr4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3qjkuhjy_-_br.js → 2m7wxgg82-7yj.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2pg4yzdak17yp.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0bpexy600ffpg.js → 2tlvii78gzv6c.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{2y98z-sun8_ew.js → 2u5_pu1uc6seh.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{3eduf6vevclfm.js → 2v4u52qc4tcdm.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2xd3_a4jlxum2.css +1 -0
- package/dist/ui/static/_next/static/chunks/{196257vfyrtgu.js → 2ywljh6s1u2zd.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3-pcgkdsv7x4z.js +1 -0
- package/dist/ui/static/_next/static/chunks/307xuhrdmetj7.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/37qsy798-g74f.js +1 -0
- package/dist/ui/static/_next/static/chunks/37v998g0cm36x.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3603jy78awb1p.js → 38rjnjhuttjqs.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3_m42xgt33mnw.js +4 -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/{1a6ri-sriyu-m.js → 3ftqojkan-5cl.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3fwt6-8rc2mya.js +1 -0
- package/dist/ui/static/_next/static/chunks/{196x_tfexoucg.js → 3g4px251sg85e.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3hb_wkp14tb6b.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ifa0dznjb9z9.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1n3b0bhd9q0p6.js → 3l3xw2fmr7pct.js} +3 -3
- 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/{2ta3xj9td_qot.js → 3rhep1yhgo6a7.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3umqj2wkb8goj.js +1 -0
- package/dist/ui/static/_next/static/chunks/3xi3iilmw9_vy.js +5 -0
- package/dist/ui/static/_next/static/chunks/{09zc5hgtb7s-z.js → 3ya92_ies62hp.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3zxbqudoeow_a.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2b_t95bbpmtej.js → 4014adorwuv48.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{24u-5fslcj3n9.js → 42otn3fqwlbyi.js} +1 -1
- package/dist/ui/static/_next/static/chunks/42pls95xys34g.js +1 -0
- package/dist/ui/static/_next/static/chunks/43z5mfwx4lk4w.js +1 -0
- package/dist/ui/static/_next/static/chunks/{turbopack-2rwr7ign9ynaa.js → turbopack-34k8wgx0iwdzg.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +21 -20
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +9 -9
- package/dist/ui/static/_not-found/__next._tree.txt +1 -1
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +21 -20
- package/dist/ui/static/atlassian-connectors/__next._full.txt +23 -22
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +11 -11
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +23 -22
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +23 -22
- package/dist/ui/static/launch/__next._full.txt +26 -25
- package/dist/ui/static/launch/__next._tree.txt +2 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +12 -12
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +26 -25
- package/dist/ui/static/local-knowledge/__next._full.txt +26 -25
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +12 -12
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +11 -11
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +26 -25
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-analyze.d.ts +5 -1
- 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 +26 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-code-inventory.generated.js +140 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts +14 -0
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-activity-log/dist/reader/support-registry-history.generated.js +17 -1
- 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/package.json +3 -3
- 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/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/state-paths.d.ts +24 -3
- 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 +126 -5
- 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.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 +250 -50
- 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 +342 -25
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts +2618 -246
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-operations.generated.js +3079 -263
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +2509 -153
- 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 +2962 -36
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +51 -6
- 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 +64 -3
- 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 +1 -0
- 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 +12 -9
- 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 +28 -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 +28 -1
- 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 +60 -1
- 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 +70 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +266 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/evidence.d.ts +11 -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 +57 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +4 -2
- 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 +10 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/grounded-assessment.js +52 -12
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +5 -5
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/markdown-skills.d.ts +41 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/markdown-skills.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/markdown-skills.js +9 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/no-evidence-answer.js +29 -0
- 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/prompt-enhancer-bff.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/prompt-enhancer-bff.js +7 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-report.js +11 -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 +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/workspace.d.ts +41 -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 +9 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- 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 +23 -3
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +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.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.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- 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 +3 -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/version.d.ts +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.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +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.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.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +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/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +103 -1
- 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 +89 -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 +617 -129
- 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 +3 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/index.js +2 -2
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/model-selection.d.ts +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 +50 -5
- 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 +11 -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 +262 -58
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +1 -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 +1 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +143 -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 +361 -39
- 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 +15 -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.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 +30 -15
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-sandbox/dist/plan.js +24 -3
- 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 +10 -1
- 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 +25 -2
- 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 +9 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/redaction.js +16 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +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/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 +64 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-compaction-model-summary.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-context-breakdown.js +23 -4
- 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 +27 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +7 -3
- 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 +37 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-diagnostics.js +7 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-token-summary.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-token-summary.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget-token-summary.js +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-budget.d.ts +4 -1
- 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 +18 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-prompt-compaction.d.ts +2 -0
- 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 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts +1 -1
- 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 +11 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-identity.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-turn-identity.d.ts.map +1 -1
- 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 +274 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionCookie.d.ts +5 -1
- 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 +7 -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/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 +185 -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 +11 -12
- 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 +217 -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/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 +14 -3
- 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 +761 -122
- 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 +41 -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 +234 -77
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +1 -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 +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentAuthorityRegistry.d.ts +8 -0
- 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 +16 -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 +131 -18
- 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 +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/verificationExecution.js +62 -5
- 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 +68 -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/gateway-readiness.d.ts +10 -10
- 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 +280 -88
- 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 +15 -2
- 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 +445 -45
- 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.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +7 -3
- 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 +7 -3
- 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/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 +56 -2
- 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 +194 -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 +22 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-citation-log.js +112 -11
- 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-pack-reranker.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-context-pack-reranker.js +4 -0
- 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 +6 -0
- 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 +54 -5
- 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-document-evidence.d.ts +6 -2
- 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 +61 -8
- 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 +9 -1
- 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 +40 -3
- 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 +91 -39
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-faithfulness.d.ts +43 -4
- 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 +247 -34
- 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-orchestrator.d.ts +106 -7
- 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 +2618 -376
- 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 +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-prompt-context.js +1 -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 +26 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-hybrid.d.ts +23 -9
- 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 +429 -97
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa-multi-source.d.ts +33 -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 +500 -100
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.d.ts +28 -10
- 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 +442 -99
- 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 +370 -48
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +22 -1
- 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 +25 -7
- 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-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 +44 -2
- 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 +1053 -83
- 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/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 +27 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-admission.js +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-authority.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-authority.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-authority.js +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-log.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-prompt.js +41 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-routes.d.ts +13 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-routes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-routes.js +150 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-selection-admission.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-selection-admission.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/markdown-skill-selection-admission.js +36 -0
- 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 +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/orchestrate.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/orchestrate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/orchestrate.js +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/routes.d.ts +0 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/promptEnhancer/routes.js +70 -28
- 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 +9 -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/chats.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/chats.js +3 -1
- 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 +12 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/legacySchemaTestFixture.js +7 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillSelections.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillSelections.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillSelections.js +58 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillValidation.d.ts +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillValidation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkillValidation.js +63 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkills.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkills.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/markdownSkills.js +111 -0
- 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 +195 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/support-report-routes.js +4 -7
- 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 +2 -2
- 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/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/workspace-index-provider.js +4 -4
- 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 +207 -112
- 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 +44 -5
- 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.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 +32 -2
- 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.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/contextpack/assemble.js +16 -16
- 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 +4 -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 +296 -15
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/governor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/index.js +1 -0
- 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 +85 -5
- package/node_modules/@oscharko-dev/keiko-workflows/dist/planner/plan.d.ts +11 -0
- 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 +507 -32
- 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/promptEnhancer/index.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/index.js +31 -13
- package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillDraft.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillDraft.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/promptEnhancer/markdownSkillDraft.js +77 -0
- package/node_modules/@oscharko-dev/keiko-workflows/dist/ranking/filter.d.ts +1 -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 +13 -16
- 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 +21 -4
- 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/binaryDetect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/binaryDetect.js +91 -15
- 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 +661 -106
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/codeIntelligenceSurface.js +3 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts +24 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/discovery.js +89 -26
- 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/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 +8 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/index.js +7 -2
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts +26 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearch.js +418 -35
- 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 +2 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchLineSelection.js +5 -3
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchMatchers.js +32 -4
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchPolicy.js +41 -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/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 +6 -5
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchScan.js +88 -24
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/repoSearchStream.js +21 -14
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralAdapterRequestContext.js +205 -14
- 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 +17 -13
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/structuralExecution.js +1 -1
- 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/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.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/workspaceIndex.d.ts +13 -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 +112 -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 +28 -27
- package/release-impact.catalog.json +170 -0
- package/vendor/oscharko-dev-keiko-activity-log-1.2.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.2.0.tgz → oscharko-dev-keiko-connectors-1.2.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.2.0.tgz → oscharko-dev-keiko-evaluations-1.2.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.2.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.2.0.tgz → oscharko-dev-keiko-git-1.2.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.2.0.tgz → oscharko-dev-keiko-harness-1.2.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.2.0.tgz → oscharko-dev-keiko-memory-capture-1.2.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.2.0.tgz → oscharko-dev-keiko-memory-consolidation-1.2.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.2.0.tgz → oscharko-dev-keiko-memory-governance-1.2.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.2.0.tgz → oscharko-dev-keiko-memory-retrieval-1.2.2.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.2.0.tgz → oscharko-dev-keiko-memory-vault-1.2.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.2.0.tgz → oscharko-dev-keiko-quality-intelligence-1.2.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.2.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.2.0.tgz → oscharko-dev-keiko-sdk-1.2.2.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.2.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.2.tgz +0 -0
- package/dist/ui/static/_next/static/chunks/07skh7tlpfo1v.js +0 -1
- package/dist/ui/static/_next/static/chunks/09i_8713x46yr.js +0 -1
- package/dist/ui/static/_next/static/chunks/0a6ri2ug5xf10.js +0 -1
- package/dist/ui/static/_next/static/chunks/0bbrrvuzilpy5.js +0 -1
- package/dist/ui/static/_next/static/chunks/0bg7uh6tq8-dx.js +0 -1
- package/dist/ui/static/_next/static/chunks/0cwy6mtvshbuo.js +0 -1
- package/dist/ui/static/_next/static/chunks/0fpbvpzg-omn0.js +0 -1
- package/dist/ui/static/_next/static/chunks/0fz9qig_5p73f.js +0 -1
- package/dist/ui/static/_next/static/chunks/0hvxxuef1gw9p.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ktvc8fs3spkb.js +0 -1
- package/dist/ui/static/_next/static/chunks/0kvy_ru-kodgv.js +0 -1
- package/dist/ui/static/_next/static/chunks/0parm4c86umwk.js +0 -1
- package/dist/ui/static/_next/static/chunks/0q_08tk2d3m2n.js +0 -1
- package/dist/ui/static/_next/static/chunks/0r2lwkgws6jm8.js +0 -1
- package/dist/ui/static/_next/static/chunks/0t73kckx3olud.js +0 -1
- package/dist/ui/static/_next/static/chunks/0u7vyqk91gjb8.js +0 -1
- package/dist/ui/static/_next/static/chunks/0weojtwxo6qw7.js +0 -1
- package/dist/ui/static/_next/static/chunks/0x-r45yl06rdn.js +0 -1
- package/dist/ui/static/_next/static/chunks/0zlw46qz0crxg.css +0 -1
- package/dist/ui/static/_next/static/chunks/0zuaq_9l5pma_.js +0 -1
- package/dist/ui/static/_next/static/chunks/10kb8j7vggfwk.js +0 -1
- package/dist/ui/static/_next/static/chunks/14qdwomthzucj.js +0 -1
- package/dist/ui/static/_next/static/chunks/1a7ko-_7t4wjo.js +0 -1
- package/dist/ui/static/_next/static/chunks/1czgn62g6km38.js +0 -3
- package/dist/ui/static/_next/static/chunks/1juiifi_xnx68.js +0 -1
- package/dist/ui/static/_next/static/chunks/1m-9yzfpcm7wc.js +0 -1
- package/dist/ui/static/_next/static/chunks/1wg1s3jm779ro.js +0 -3
- package/dist/ui/static/_next/static/chunks/224bbe_3ksnlw.js +0 -1
- package/dist/ui/static/_next/static/chunks/263_uck8el32f.js +0 -1
- package/dist/ui/static/_next/static/chunks/26gmn1z4oegqh.js +0 -1
- package/dist/ui/static/_next/static/chunks/28ylcw-leje_k.js +0 -1
- package/dist/ui/static/_next/static/chunks/2937s9os9u2tn.js +0 -1
- package/dist/ui/static/_next/static/chunks/29rlw6dih8owf.js +0 -1
- package/dist/ui/static/_next/static/chunks/2hq0zlnvfqol9.js +0 -1
- package/dist/ui/static/_next/static/chunks/2o584howfzzak.js +0 -3
- package/dist/ui/static/_next/static/chunks/2p66e_a0j23r8.js +0 -1
- package/dist/ui/static/_next/static/chunks/2r4vn_6anv2cw.js +0 -5
- package/dist/ui/static/_next/static/chunks/2ribv7pn1hr-l.js +0 -1
- package/dist/ui/static/_next/static/chunks/2tb2nt2wvu643.js +0 -1
- package/dist/ui/static/_next/static/chunks/2wuj7qxm6mleh.js +0 -1
- package/dist/ui/static/_next/static/chunks/2yot6vshhc19p.css +0 -1
- package/dist/ui/static/_next/static/chunks/30j8jo5v60ga1.js +0 -2
- package/dist/ui/static/_next/static/chunks/30q9b_aw8driv.js +0 -1
- package/dist/ui/static/_next/static/chunks/387k5c-bf1b2e.js +0 -1
- package/dist/ui/static/_next/static/chunks/388eokaf_2t9k.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_alxp77ewgk_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_ycy0h8pq58a.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ho1f5n8lir4r.js +0 -1
- package/dist/ui/static/_next/static/chunks/3kgc_j74tblcn.js +0 -1
- package/dist/ui/static/_next/static/chunks/3mxpjroefk8ou.js +0 -1
- package/dist/ui/static/_next/static/chunks/3q5jidle0lb3-.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ua7si017r4dg.js +0 -1
- package/dist/ui/static/_next/static/chunks/3v2iluxqnsug9.css +0 -15
- package/dist/ui/static/_next/static/chunks/3z5f2s7yd35cu.js +0 -1
- package/dist/ui/static/_next/static/chunks/40co1uetczqcs.js +0 -1
- package/vendor/oscharko-dev-keiko-activity-log-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-cli-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evidence-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workflows-1.2.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-workspace-1.2.0.tgz +0 -0
- /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → Z7PX-H79azsma78__tTUN}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → Z7PX-H79azsma78__tTUN}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{LNCY1B2FJBOe2AHFXpzB- → Z7PX-H79azsma78__tTUN}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { withMarkdownSkillAdmission } from "./markdown-skill-admission.js";
|
|
2
|
+
import { markdownSkillPromptUsage, withMarkdownSkillInstructions, } from "./markdown-skill-prompt.js";
|
|
3
|
+
import { assistantReferenceExcerptIds } from "./grounded-assistant-referents.js";
|
|
1
4
|
import { mapWithConcurrency } from "./bounded-concurrency.js";
|
|
2
5
|
import { caughtGroundedPackValidation, inspectGroundedPack, recordGroundedPackValidation, } from "./grounded-pack-validation.js";
|
|
3
6
|
// Epic #189 Slice 2 — heterogeneous grounded merge. A chat may carry BOTH connected folders
|
|
@@ -13,28 +16,36 @@ import { resolveCostClass, } from "@oscharko-dev/keiko-model-gateway";
|
|
|
13
16
|
import { persistConnectedContextEvidence } from "@oscharko-dev/keiko-evidence";
|
|
14
17
|
import { createSqliteAuditSink, getCapsule, readCitationExcerpt, resolveScopeModelUsePolicy, runLocalKnowledgeRetrieval, } from "@oscharko-dev/keiko-local-knowledge";
|
|
15
18
|
import { rerankAndSelect, withFinalMarkers, withModelRerankScore, } from "./grounded-rerank.js";
|
|
16
|
-
import { connectedContextOmittedCount, CANDIDATE_OMISSION_REASONS, CONNECTED_CONTEXT_SCHEMA_VERSION, } from "@oscharko-dev/keiko-contracts/connected-context";
|
|
19
|
+
import { connectedContextOmittedCount, DEFAULT_EXPLORATION_BUDGET, CANDIDATE_OMISSION_REASONS, CONNECTED_CONTEXT_SCHEMA_VERSION, } from "@oscharko-dev/keiko-contracts/connected-context";
|
|
17
20
|
import { buildGroundedAnswerContextPackSummary, } from "@oscharko-dev/keiko-contracts/bff-wire";
|
|
18
21
|
import { errorBody } from "./routes.js";
|
|
19
|
-
import { currentContextProfileForModel, currentGroundingLimits, currentRedactionSecrets, } from "./deps.js";
|
|
22
|
+
import { currentContextProfileForModel, currentGroundingLimits, currentOwnAssessmentPolicy, currentRedactionSecrets, } from "./deps.js";
|
|
20
23
|
import { withAdoptedContextWindowRetry } from "./gateway-context-window.js";
|
|
21
24
|
import { countGatewayPromptTokens, } from "@oscharko-dev/keiko-model-gateway/internal/prompt-token-accounting";
|
|
22
25
|
import { fitKnowledgePrompt, logPromptWindowFit } from "./knowledge-prompt-window.js";
|
|
23
26
|
import { ClarificationNeededError, clarificationUserMessage, } from "./grounded-orchestrator.js";
|
|
24
|
-
import { buildConnectedScopes, defaultRetriever, mergeContextPackSummaries, groundedSourceScopeFingerprint, sourceLabels, splitExplorationBudget, splitExplorationBudgets, } from "./grounded-qa-multi-source.js";
|
|
27
|
+
import { buildConnectedScopes, defaultRetriever, mergeContextPackSummaries, groundedSourceScopeFingerprint, sourceLabels, splitExplorationBudget, splitExplorationBudgets, recordPluralCitationRepairFailure, recordPluralGroundedAnswer, finalPluralRepairAnswer, uninvokedCitationRepair, verifiedPluralInsufficiencyScopeIndex, } from "./grounded-qa-multi-source.js";
|
|
25
28
|
import { LOCAL_KNOWLEDGE_RETRIEVAL_CANDIDATES, activityDisplayName, buildSelectedScopeSourceLookup, createEmbeddingAdapter, openStoreForDeps, projectLocalKnowledgeCitation, retrievalActivityResultFromRetrieval, scopeStateFailure, selectedCapsulesForScope, tryBuildKnowledgePodRetrievalActivity, } from "./local-knowledge-grounded-qa.js";
|
|
26
29
|
import { buildStoredPreviewCitations } from "./local-knowledge-preview-authority.js";
|
|
27
|
-
import {
|
|
30
|
+
import { groundedSystemPrompt, sentGroundedFileCount } from "./grounded-prompt.js";
|
|
28
31
|
import { sentPromptContext } from "./grounded-prompt-context.js";
|
|
32
|
+
import { normalizeGroundedAnswerAssessment } from "./grounded-answer-assessment.js";
|
|
29
33
|
import { evidenceRetentionObserver } from "./evidence-retention-log.js";
|
|
30
|
-
import { normalizeGroundedAnswerPayload, } from "./grounded-answer.js";
|
|
31
|
-
import {
|
|
34
|
+
import { createGroundedSynthesisCallBudget, normalizeGroundedAnswerPayload, } from "./grounded-answer.js";
|
|
35
|
+
import { callPluralGroundedSynthesis, pluralSynthesisCountFields, pluralSynthesisMetadata, withPluralSynthesisUsage, capturePluralSynthesisCounts, } from "./grounded-plural-synthesis.js";
|
|
36
|
+
import { DEFAULT_CONTEXT_PROFILE } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
|
|
37
|
+
import { buildPackCitationIndex, groundedAnswerEvidenceFields, validateGroundedAnswerEvidence, connectedSearchNoEvidenceAnswer, incompleteAnswerMarker, missingCitationMarkerFor, assessmentAwareUncertainty, noEvidenceMarker, citationSourceIdForIndex, reconcileNumericCitations, unsupportedCitationMarker, unsupportedNumericCitationMarker, } from "./grounded-faithfulness.js";
|
|
32
38
|
import { assertUsableAssistantContent } from "./assistant-response.js";
|
|
33
39
|
import { rerankSelection } from "./grounded-rerank-facade.js";
|
|
34
40
|
import { buildLocalKnowledgeIndexLifecycle } from "./local-knowledge-index-lifecycle.js";
|
|
35
41
|
import { createEntailmentStage } from "./grounded-entailment-stage.js";
|
|
36
|
-
import { appendGroundedAnswerEntailment, appendGroundedAnswerNumericEntailment, buildQuery, buildSelectedScopeFrom, clarificationRequest, deriveScopeIdFrom, ensureNotCancelled, groundedContextAssemblyInput, groundedContextSummaryInput, groundedEvidenceRunId, groundedScopeWorkspaceFs, mappedGatewayError, mappedWorkspaceError, modelWindowAwareBudget, modelInputPromptByteLimit, fitPromptOmissionMetadata, promptSafeExcerptText, numberedEvidenceText, evidenceProvenanceLine, omissionReasonLines, sizeExclusionLines, redactString, } from "./grounded-qa.js";
|
|
42
|
+
import { appendGroundedAnswerEntailment, appendGroundedAnswerNumericEntailment, buildQuery, buildSelectedScopeFrom, clarificationRequest, deriveScopeIdFrom, ensureNotCancelled, groundedContextAssemblyInput, groundedContextSummaryInput, groundedEvidenceRunId, groundedScopeWorkspaceFs, mappedGatewayError, mappedWorkspaceError, modelWindowAwareBudget, modelInputPromptByteLimit, promptByteLength, fitPromptOmissionMetadata, promptSafeExcerptText, numberedEvidenceText, evidenceProvenanceLine, omissionReasonLines, sizeExclusionLines, redactString, groundedRetrievalContinuityFields, } from "./grounded-qa.js";
|
|
37
43
|
import { persistGroundedExchange } from "./grounded-message-persistence.js";
|
|
44
|
+
import { buildCitationRepairPrompt } from "./grounded-citation-repair.js";
|
|
45
|
+
import { logGroundedPromptSelection } from "./chat-activity.js";
|
|
46
|
+
import { repairGroundedAnswer } from "./grounded-answer-repair.js";
|
|
47
|
+
import { withSentEvidenceInventory, withSentSelectionDiagnostics, } from "./grounded-answer-evidence.js";
|
|
48
|
+
import { citationBehaviourFor, citationBehaviourObserverFor, } from "./grounded-citation-capability.js";
|
|
38
49
|
import { captureConversationReadinessAdmission, withConversationReadinessAdmission, } from "./conversation-readiness-admission.js";
|
|
39
50
|
// ─── Canonical connector reader ───────────────────────────────────────────────
|
|
40
51
|
// Mirrors buildConnectedScopes: the plural `localKnowledgeScopes` list supersedes the legacy single
|
|
@@ -65,15 +76,19 @@ function isFolderCandidate(candidate) {
|
|
|
65
76
|
function isConnectorCandidate(candidate) {
|
|
66
77
|
return candidate.kind === "connector";
|
|
67
78
|
}
|
|
68
|
-
function folderRerankInputs(folders, redactor) {
|
|
69
|
-
return folders.flatMap((src) => {
|
|
79
|
+
function folderRerankInputs(folders, redactor, references) {
|
|
80
|
+
return folders.flatMap((src, index) => {
|
|
70
81
|
const sourceScopeFingerprint = src.sourceScopeFingerprint;
|
|
82
|
+
const required = new Set(assistantReferenceExcerptIds(src.pack, (references ?? []).filter((reference) => reference.sourceScopeFingerprint === sourceScopeFingerprint)));
|
|
71
83
|
return src.pack.files.flatMap((file) => file.excerpts.map((excerpt) => ({
|
|
72
84
|
kind: "folder",
|
|
73
85
|
redactedText: redactString(redactor, excerpt.content),
|
|
74
86
|
engineScore: excerpt.atom.score,
|
|
75
87
|
sourceLabel: redactString(redactor, src.label),
|
|
76
88
|
tieKey: excerpt.atom.stableId,
|
|
89
|
+
...(required.has(excerpt.atom.stableId)
|
|
90
|
+
? { continuityReferenceKey: `${sourceScopeFingerprint}:${excerpt.atom.stableId}` }
|
|
91
|
+
: {}),
|
|
77
92
|
payload: {
|
|
78
93
|
kind: "folder",
|
|
79
94
|
scopePath: excerpt.atom.scopePath,
|
|
@@ -81,6 +96,7 @@ function folderRerankInputs(folders, redactor) {
|
|
|
81
96
|
score: excerpt.atom.score,
|
|
82
97
|
stableId: excerpt.atom.stableId,
|
|
83
98
|
sourceScopeFingerprint,
|
|
99
|
+
sourceId: citationSourceIdForIndex(index),
|
|
84
100
|
provenanceLine: evidenceProvenanceLine(excerpt.atom.provenance, redactor),
|
|
85
101
|
},
|
|
86
102
|
})));
|
|
@@ -137,7 +153,7 @@ function buildUnifiedSelection(ctx, folders, connectors, store, includeConnector
|
|
|
137
153
|
const limits = currentGroundingLimits(ctx.deps);
|
|
138
154
|
const { redactor } = ctx.deps;
|
|
139
155
|
const inputs = [
|
|
140
|
-
...folderRerankInputs(folders, redactor),
|
|
156
|
+
...folderRerankInputs(folders, redactor, ctx.assistantReferents),
|
|
141
157
|
...connectorRerankInputs(connectors, store, redactor, limits.maxExcerptChars, includeConnectorExcerptText),
|
|
142
158
|
];
|
|
143
159
|
return rerankAndSelect(inputs, {
|
|
@@ -170,6 +186,7 @@ async function rerankHybridSelection(ctx, preliminary, limits, externalReranking
|
|
|
170
186
|
},
|
|
171
187
|
applyScore: withModelRerankScore,
|
|
172
188
|
fallbackMode: "slice-topN",
|
|
189
|
+
requiredCandidateKey: (candidate) => candidate.continuityReferenceKey,
|
|
173
190
|
});
|
|
174
191
|
return { selected: withFinalMarkers(result.selected), diagnostics: result.diagnostics };
|
|
175
192
|
}
|
|
@@ -200,6 +217,7 @@ function retrievedFolderSlot(ctx, cs, label, scope, out) {
|
|
|
200
217
|
elapsedMs: out.elapsedMs,
|
|
201
218
|
scope,
|
|
202
219
|
plan: out.plan,
|
|
220
|
+
declarationScopeIndexFor: out.declarationScopeIndexFor,
|
|
203
221
|
sourceScopeFingerprint: groundedSourceScopeFingerprint(scope, cs, ctx.sourceScopeFingerprints),
|
|
204
222
|
},
|
|
205
223
|
};
|
|
@@ -235,6 +253,7 @@ async function retrieveFolderIntoSlot(ctx, retriever, query, budget, inputs) {
|
|
|
235
253
|
query,
|
|
236
254
|
workspaceRoot: scope.workspaceRoot,
|
|
237
255
|
budget,
|
|
256
|
+
...groundedRetrievalContinuityFields(ctx, scope, cs, ctx.sourceScopeFingerprints),
|
|
238
257
|
...(workspaceFs === undefined ? {} : { workspaceFs }),
|
|
239
258
|
}, ctx.signal);
|
|
240
259
|
ensureNotCancelled(ctx.signal);
|
|
@@ -328,7 +347,15 @@ function defaultConnectorRetrieve(ctx, connectorScopeCount, vectorIndex) {
|
|
|
328
347
|
if ("status" in embeddingAdapter) {
|
|
329
348
|
throw new EmbeddingAdapterError(embeddingAdapter);
|
|
330
349
|
}
|
|
331
|
-
return await runLocalKnowledgeRetrieval({
|
|
350
|
+
return await runLocalKnowledgeRetrieval({
|
|
351
|
+
store,
|
|
352
|
+
embeddingAdapter,
|
|
353
|
+
signal,
|
|
354
|
+
vectorIndex,
|
|
355
|
+
...(ctx.correlationId !== undefined
|
|
356
|
+
? { logContext: { correlationId: ctx.correlationId } }
|
|
357
|
+
: {}),
|
|
358
|
+
}, connectorQuery(scope, ctx.retrievalContent ?? ctx.content, connectorScopeCount));
|
|
332
359
|
};
|
|
333
360
|
}
|
|
334
361
|
export class EmbeddingAdapterError extends Error {
|
|
@@ -417,8 +444,10 @@ async function retrieveOneConnector(retrieve, store, scope, selected, signal) {
|
|
|
417
444
|
}
|
|
418
445
|
// ─── Merged prompt ────────────────────────────────────────────────────────────
|
|
419
446
|
// The hybrid topology shares the folder prompt and deterministic localized abstention producer.
|
|
420
|
-
|
|
421
|
-
|
|
447
|
+
function hybridSystemPrompt(deps) {
|
|
448
|
+
return (`${groundedSystemPrompt(currentOwnAssessmentPolicy(deps), "numeric")} Connector excerpts are indexed-document citations: attribute every ` +
|
|
449
|
+
"connector claim to its source label and the matching [n] marker in addition to any file reference.");
|
|
450
|
+
}
|
|
422
451
|
function hybridCandidateExcerpt(candidate) {
|
|
423
452
|
if (candidate.redactedText.length === 0)
|
|
424
453
|
return "(No excerpt text available.)";
|
|
@@ -440,9 +469,6 @@ function buildRerankedHybridUserMessage(question, selected, redactor, omissionMe
|
|
|
440
469
|
const folderCount = selected.filter((s) => s.kind === "folder").length;
|
|
441
470
|
const connectorCount = selected.filter((s) => s.kind === "connector").length;
|
|
442
471
|
const lines = [
|
|
443
|
-
"User question:",
|
|
444
|
-
redactString(redactor, question),
|
|
445
|
-
"",
|
|
446
472
|
`Connected sources: ${String(folderCount)} folder(s), ${String(connectorCount)} connector(s).`,
|
|
447
473
|
"Cite every claim by its [n] marker and source label.",
|
|
448
474
|
...omissionMetadata,
|
|
@@ -451,8 +477,27 @@ function buildRerankedHybridUserMessage(question, selected, redactor, omissionMe
|
|
|
451
477
|
for (const candidate of selected) {
|
|
452
478
|
lines.push(renderHybridCandidateBlock(candidate), "");
|
|
453
479
|
}
|
|
480
|
+
lines.push("User question:", redactString(redactor, question), "");
|
|
454
481
|
return lines.join("\n");
|
|
455
482
|
}
|
|
483
|
+
function hybridProtectedSkill(ctx) {
|
|
484
|
+
return ctx.userMessage === undefined
|
|
485
|
+
? undefined
|
|
486
|
+
: ctx.deps.store.markdownSkills.forTurn(ctx.userMessage.id);
|
|
487
|
+
}
|
|
488
|
+
function hybridUserMessage(ctx, selected) {
|
|
489
|
+
return withMarkdownSkillInstructions(buildRerankedHybridUserMessage(ctx.answerContent ?? ctx.content, selected, ctx.deps.redactor, ctx.folderOmissionMetadata), hybridProtectedSkill(ctx));
|
|
490
|
+
}
|
|
491
|
+
function hybridSkillUsage(ctx) {
|
|
492
|
+
const skill = hybridProtectedSkill(ctx);
|
|
493
|
+
const profile = hybridSynthesisProfile(ctx);
|
|
494
|
+
return skill === undefined
|
|
495
|
+
? undefined
|
|
496
|
+
: markdownSkillPromptUsage(skill, {
|
|
497
|
+
tokenAccounting: profile?.tokenAccounting,
|
|
498
|
+
maxInputTokens: profile?.maxInputTokens ?? DEFAULT_EXPLORATION_BUDGET.modelInputTokensMax,
|
|
499
|
+
});
|
|
500
|
+
}
|
|
456
501
|
function numericEntailmentEvidence(selected) {
|
|
457
502
|
return selected.map((candidate) => ({
|
|
458
503
|
marker: candidate.marker,
|
|
@@ -461,30 +506,145 @@ function numericEntailmentEvidence(selected) {
|
|
|
461
506
|
excerptText: renderHybridCandidateBlock(candidate),
|
|
462
507
|
}));
|
|
463
508
|
}
|
|
464
|
-
export function createHybridAnswerer(model, modelId, signal, correlationId) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
509
|
+
export function createHybridAnswerer(model, modelId, signal, correlationId, deps) {
|
|
510
|
+
const synthesisBudget = createGroundedSynthesisCallBudget();
|
|
511
|
+
const ctx = {
|
|
512
|
+
model,
|
|
513
|
+
modelId,
|
|
514
|
+
signal,
|
|
515
|
+
correlationId,
|
|
516
|
+
deps,
|
|
517
|
+
synthesisBudget,
|
|
518
|
+
lastPrompt: undefined,
|
|
519
|
+
};
|
|
520
|
+
return Object.assign((system, user, options = {}) => hybridGatewayAnswer(ctx, system, user, options), {
|
|
521
|
+
remainingSynthesisCalls: () => synthesisBudget.remaining(),
|
|
522
|
+
pendingSynthesisUsage: () => synthesisBudget.pendingUsage(),
|
|
523
|
+
takeFailedSynthesisUsage: () => synthesisBudget.takeUsage(),
|
|
524
|
+
reservedSynthesisOutputTokens: () => synthesisBudget.reservedOutputTokens(),
|
|
525
|
+
completedSynthesisCalls: () => synthesisBudget.completed(),
|
|
526
|
+
repair: (original, options) => hybridGatewayRepair(ctx, original, options),
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
async function hybridGatewayAnswer(ctx, system, user, options) {
|
|
530
|
+
const countsBefore = capturePluralSynthesisCounts(ctx.synthesisBudget);
|
|
531
|
+
ctx.lastPrompt = [
|
|
532
|
+
{ role: "system", content: system },
|
|
533
|
+
{ role: "user", content: user },
|
|
534
|
+
];
|
|
535
|
+
const grants = hybridSynthesisGrants(ctx.deps, ctx.modelId, options, ctx.signal);
|
|
536
|
+
const profile = ctx.deps === undefined ? undefined : currentContextProfileForModel(ctx.deps, ctx.modelId);
|
|
537
|
+
const response = await callPluralGroundedSynthesis({
|
|
538
|
+
model: ctx.model,
|
|
539
|
+
signal: ctx.signal,
|
|
540
|
+
budget: ctx.synthesisBudget,
|
|
541
|
+
grants,
|
|
542
|
+
accounting: profile?.tokenAccounting,
|
|
543
|
+
request: {
|
|
544
|
+
modelId: ctx.modelId,
|
|
545
|
+
messages: ctx.lastPrompt,
|
|
546
|
+
maxOutputTokens: Math.min(ctx.deps === undefined
|
|
547
|
+
? grants.outputTokensMax
|
|
548
|
+
: modelWindowAwareBudget(ctx.deps, ctx.modelId).modelOutputTokensMax, grants.outputTokensMax - ctx.synthesisBudget.pendingUsage().completionTokens),
|
|
473
549
|
stream: false,
|
|
474
|
-
logContext: { correlationId },
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
550
|
+
logContext: { correlationId: ctx.correlationId },
|
|
551
|
+
},
|
|
552
|
+
});
|
|
553
|
+
return withPluralSynthesisUsage(hybridGatewayAnswerResult(response, ctx.modelId), ctx.synthesisBudget, countsBefore);
|
|
554
|
+
}
|
|
555
|
+
function hybridSynthesisGrants(deps, modelId, options, signal) {
|
|
556
|
+
const budget = deps === undefined ? DEFAULT_EXPLORATION_BUDGET : modelWindowAwareBudget(deps, modelId);
|
|
557
|
+
return {
|
|
558
|
+
inputTokensMax: options.modelInputTokensMax ?? budget.modelInputTokensMax,
|
|
559
|
+
outputTokensMax: options.modelOutputTokensMax ?? budget.modelOutputTokensMax,
|
|
560
|
+
signal,
|
|
561
|
+
deadlineAtMs: options.deadlineAtMs,
|
|
562
|
+
};
|
|
563
|
+
}
|
|
564
|
+
function hybridGatewayAnswerResult(response, modelId) {
|
|
565
|
+
const content = response.content.trim();
|
|
566
|
+
assertUsableAssistantContent(content, modelId);
|
|
567
|
+
return {
|
|
568
|
+
content,
|
|
569
|
+
usage: {
|
|
570
|
+
promptTokens: response.usage.promptTokens,
|
|
571
|
+
completionTokens: response.usage.completionTokens,
|
|
572
|
+
},
|
|
573
|
+
finishReason: response.finishReason,
|
|
486
574
|
};
|
|
487
575
|
}
|
|
576
|
+
function hybridRepairMessages(ctx, original, options) {
|
|
577
|
+
const profile = ctx.deps === undefined ? undefined : currentContextProfileForModel(ctx.deps, ctx.modelId);
|
|
578
|
+
const inputMax = Math.min(options.modelInputTokensMax ?? 0, profile?.effectiveInputBudget ?? Number.MAX_SAFE_INTEGER);
|
|
579
|
+
const messages = hybridRepairPrompt(ctx.lastPrompt, original);
|
|
580
|
+
if (messages.length === 0 ||
|
|
581
|
+
promptByteLength(messages) > modelInputPromptByteLimit(inputMax) ||
|
|
582
|
+
countGatewayPromptTokens({ messages }, profile?.tokenAccounting) > inputMax)
|
|
583
|
+
return undefined;
|
|
584
|
+
return messages;
|
|
585
|
+
}
|
|
586
|
+
function hybridRepairPrompt(lastPrompt, original) {
|
|
587
|
+
const system = lastPrompt?.[0];
|
|
588
|
+
const user = lastPrompt?.[1];
|
|
589
|
+
if (system === undefined || user === undefined)
|
|
590
|
+
return [];
|
|
591
|
+
return [
|
|
592
|
+
system,
|
|
593
|
+
{ ...user, content: `${user.content}\n\n${buildCitationRepairPrompt(original, "numeric")}` },
|
|
594
|
+
];
|
|
595
|
+
}
|
|
596
|
+
function hybridRepairSignal(parent, options) {
|
|
597
|
+
const remainingMs = options.deadlineAtMs === undefined ? undefined : options.deadlineAtMs - Date.now();
|
|
598
|
+
if (remainingMs !== undefined && remainingMs <= 0)
|
|
599
|
+
return undefined;
|
|
600
|
+
const signals = [parent, ...(options.signal === undefined ? [] : [options.signal])];
|
|
601
|
+
if (remainingMs !== undefined)
|
|
602
|
+
signals.push(AbortSignal.timeout(Math.ceil(remainingMs)));
|
|
603
|
+
return AbortSignal.any(signals);
|
|
604
|
+
}
|
|
605
|
+
async function hybridGatewayRepair(ctx, original, options) {
|
|
606
|
+
const countsBefore = capturePluralSynthesisCounts(ctx.synthesisBudget);
|
|
607
|
+
const messages = hybridRepairMessages(ctx, original, options);
|
|
608
|
+
const signal = hybridRepairSignal(ctx.signal, options);
|
|
609
|
+
if (messages === undefined ||
|
|
610
|
+
ctx.synthesisBudget.remaining() <= 0 ||
|
|
611
|
+
signal === undefined ||
|
|
612
|
+
(options.deadlineAtMs !== undefined && Date.now() >= options.deadlineAtMs))
|
|
613
|
+
return uninvokedCitationRepair(original);
|
|
614
|
+
logHybridRepairPrompt(ctx, messages, options);
|
|
615
|
+
if (options.deadlineAtMs !== undefined && Date.now() >= options.deadlineAtMs)
|
|
616
|
+
return uninvokedCitationRepair(original);
|
|
617
|
+
ensureNotCancelled(signal);
|
|
618
|
+
const response = await callPluralGroundedSynthesis({
|
|
619
|
+
model: ctx.model,
|
|
620
|
+
signal,
|
|
621
|
+
budget: ctx.synthesisBudget,
|
|
622
|
+
grants: hybridSynthesisGrants(ctx.deps, ctx.modelId, options, signal),
|
|
623
|
+
accounting: ctx.deps === undefined
|
|
624
|
+
? undefined
|
|
625
|
+
: currentContextProfileForModel(ctx.deps, ctx.modelId)?.tokenAccounting,
|
|
626
|
+
request: {
|
|
627
|
+
modelId: ctx.modelId,
|
|
628
|
+
messages,
|
|
629
|
+
stream: false,
|
|
630
|
+
maxOutputTokens: options.modelOutputTokensMax,
|
|
631
|
+
logContext: { correlationId: ctx.correlationId },
|
|
632
|
+
},
|
|
633
|
+
});
|
|
634
|
+
assertUsableAssistantContent(response.content.trim(), ctx.modelId);
|
|
635
|
+
return withPluralSynthesisUsage({
|
|
636
|
+
content: response.content.trim(),
|
|
637
|
+
modelInvoked: true,
|
|
638
|
+
usage: { promptTokens: 0, completionTokens: 0 },
|
|
639
|
+
}, ctx.synthesisBudget, countsBefore);
|
|
640
|
+
}
|
|
641
|
+
function logHybridRepairPrompt(ctx, messages, options) {
|
|
642
|
+
logGroundedPromptSelection(ctx.correlationId, { messages }, Math.min(options.modelInputTokensMax ?? 0, ctx.deps === undefined
|
|
643
|
+
? Number.MAX_SAFE_INTEGER
|
|
644
|
+
: modelWindowAwareBudget(ctx.deps, ctx.modelId).modelInputTokensMax), ctx.deps === undefined
|
|
645
|
+
? undefined
|
|
646
|
+
: currentContextProfileForModel(ctx.deps, ctx.modelId)?.tokenAccounting);
|
|
647
|
+
}
|
|
488
648
|
// ─── Citations + summaries ────────────────────────────────────────────────────
|
|
489
649
|
// Both citation arrays are derived from the SAME selected set so that the [n] markers in the
|
|
490
650
|
// prompt are always consistent with the citation arrays surfaced to the client.
|
|
@@ -503,6 +663,7 @@ function selectedFolderCitations(selected, redactor) {
|
|
|
503
663
|
stableId: redactString(redactor, s.payload.stableId),
|
|
504
664
|
source: s.sourceLabel,
|
|
505
665
|
sourceScopeFingerprint: s.payload.sourceScopeFingerprint,
|
|
666
|
+
sourceId: s.payload.sourceId,
|
|
506
667
|
marker: s.marker,
|
|
507
668
|
}));
|
|
508
669
|
}
|
|
@@ -669,17 +830,28 @@ function folderUncertainty(folders, redactor) {
|
|
|
669
830
|
// the rerank cap left out of the prompt supports nothing (PR #3678 review).
|
|
670
831
|
function sentFolderPacks(folders, selected) {
|
|
671
832
|
const sent = new Set(selected.filter(isFolderCandidate).map((candidate) => candidate.payload.stableId));
|
|
672
|
-
return folders.map(({ pack }) =>
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
.
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
833
|
+
return folders.map(({ pack }) => {
|
|
834
|
+
const inventory = {
|
|
835
|
+
...pack,
|
|
836
|
+
files: pack.files
|
|
837
|
+
.map((file) => ({
|
|
838
|
+
...file,
|
|
839
|
+
excerpts: file.excerpts.filter((excerpt) => sent.has(excerpt.atom.stableId)),
|
|
840
|
+
}))
|
|
841
|
+
.filter((file) => file.excerpts.length > 0),
|
|
842
|
+
};
|
|
843
|
+
return withSentSelectionDiagnostics(inventory, [inventory], Date.now());
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
function fittedFolderDiagnostics(folders, selected) {
|
|
847
|
+
const sentPacks = sentFolderPacks(folders, selected);
|
|
848
|
+
const nowMs = Date.now();
|
|
849
|
+
return folders.map((source) => ({
|
|
850
|
+
...source,
|
|
851
|
+
pack: withSentSelectionDiagnostics(source.pack, sentPacks, nowMs),
|
|
680
852
|
}));
|
|
681
853
|
}
|
|
682
|
-
function hybridNumericReconciliation(answer, selected, correlationId) {
|
|
854
|
+
function hybridNumericReconciliation(answer, selected, correlationId, metadata = {}) {
|
|
683
855
|
const supportedMarkers = new Set(selected.map((candidate) => candidate.marker));
|
|
684
856
|
const reconciliation = reconcileNumericCitations(answer, supportedMarkers);
|
|
685
857
|
logCitationReconciliation({
|
|
@@ -687,25 +859,42 @@ function hybridNumericReconciliation(answer, selected, correlationId) {
|
|
|
687
859
|
referenceCount: supportedMarkers.size,
|
|
688
860
|
attachedIndices: [...reconciliation.citedMarkers],
|
|
689
861
|
refusal: isNoEvidenceAnswerText(answer),
|
|
862
|
+
...metadata,
|
|
690
863
|
}, correlationId);
|
|
691
864
|
return reconciliation;
|
|
692
865
|
}
|
|
866
|
+
function hybridCitationMetadata(assistant) {
|
|
867
|
+
const counts = assistant.insufficiencyObservation;
|
|
868
|
+
return {
|
|
869
|
+
answerKind: assistant.answerKind,
|
|
870
|
+
citationBehaviour: assistant.citationBehaviour,
|
|
871
|
+
citationRepairDisposition: assistant.citationRepairDisposition,
|
|
872
|
+
...(counts === undefined
|
|
873
|
+
? {}
|
|
874
|
+
: {
|
|
875
|
+
insufficiencyDeclaredCount: counts.declaredCount,
|
|
876
|
+
declaredInScopeCount: counts.inScopeCount,
|
|
877
|
+
declaredUnreadInScopeCount: counts.unreadInScopeCount,
|
|
878
|
+
declaredNotInScopeCount: counts.notInScopeCount,
|
|
879
|
+
}),
|
|
880
|
+
};
|
|
881
|
+
}
|
|
693
882
|
// GEN-AI-GROUNDING-001/-008 (RB-4): reconcile the hybrid answer's inline `[path:line]` citations
|
|
694
883
|
// against the FOLDER evidence packs the model actually received. Connector citations use marker
|
|
695
884
|
// labels rather than repo paths, so path-shaped inline references are validated against folder
|
|
696
885
|
// evidence (where the [path:line] format applies). Mirrors the single/multi-source reconciliation.
|
|
697
886
|
function hybridReconciliationUncertainty(assistant, folders, selected, redactor, sourceEvidenceAvailable, correlationId) {
|
|
698
887
|
const nowMs = Date.now();
|
|
699
|
-
const reconciliation = reconcileAndLogInlineCitations(assistant.content, buildPackCitationIndex(sentFolderPacks(folders, selected)), correlationId);
|
|
888
|
+
const reconciliation = reconcileAndLogInlineCitations(assistant.content, buildPackCitationIndex(sentFolderPacks(folders, selected)), correlationId, hybridCitationMetadata(assistant));
|
|
700
889
|
const unsupported = unsupportedCitationMarker(reconciliation.unsupported, nowMs);
|
|
701
|
-
const numericReconciliation = hybridNumericReconciliation(assistant.content, selected, correlationId);
|
|
890
|
+
const numericReconciliation = hybridNumericReconciliation(assistant.content, selected, correlationId, hybridCitationMetadata(assistant));
|
|
702
891
|
const unsupportedNumeric = unsupportedNumericCitationMarker(numericReconciliation.unsupportedMarkers, nowMs);
|
|
703
892
|
const missing = sourceEvidenceAvailable &&
|
|
704
893
|
unsupported === undefined &&
|
|
705
894
|
unsupportedNumeric === undefined &&
|
|
706
895
|
reconciliation.citedScopePaths.size === 0 &&
|
|
707
896
|
numericReconciliation.citedMarkers.size === 0
|
|
708
|
-
? missingCitationMarkerFor(assistant.content, nowMs)
|
|
897
|
+
? missingCitationMarkerFor(assistant.content, nowMs, assistant.answerKind)
|
|
709
898
|
: undefined;
|
|
710
899
|
const markers = [
|
|
711
900
|
...(unsupported === undefined ? [] : [unsupported]),
|
|
@@ -758,10 +947,11 @@ async function applyHybridEntailment(ctx, answer, answerContent, folders, connec
|
|
|
758
947
|
// connector retrieval/answer-context audit via the LK sink (mirrors the single-connector path).
|
|
759
948
|
// Returns the first folder run id, surfaced as the answer's primary evidenceRunId, plus the full
|
|
760
949
|
// folder evidence set so reviewers can inspect every connected-context source.
|
|
761
|
-
function persistFolderEvidence(ctx, folders, cited) {
|
|
950
|
+
function persistFolderEvidence(ctx, folders, cited, completedSynthesisCallCount, sentPacks) {
|
|
762
951
|
let firstRunId;
|
|
763
952
|
const runIds = [];
|
|
764
953
|
for (const [ordinal, src] of folders.entries()) {
|
|
954
|
+
const pack = withSentEvidenceInventory(src.pack, sentPacks);
|
|
765
955
|
const finishedAt = Date.now();
|
|
766
956
|
const startedAt = Math.max(0, finishedAt - src.elapsedMs);
|
|
767
957
|
const runId = groundedEvidenceRunId({
|
|
@@ -775,14 +965,17 @@ function persistFolderEvidence(ctx, folders, cited) {
|
|
|
775
965
|
runId,
|
|
776
966
|
modelId: ctx.modelId,
|
|
777
967
|
workspaceRoot: src.scope.workspaceRoot,
|
|
968
|
+
sourceScopeFingerprint: src.sourceScopeFingerprint,
|
|
778
969
|
chatId: ctx.chat.id,
|
|
779
970
|
plan: src.plan,
|
|
780
|
-
pack
|
|
781
|
-
|
|
971
|
+
pack,
|
|
972
|
+
retrievedFileCount: src.pack.files.length,
|
|
973
|
+
citationCount: folderCitationCount(pack, cited),
|
|
974
|
+
completedSynthesisCallCount,
|
|
782
975
|
elapsedMs: src.elapsedMs,
|
|
783
976
|
startedAt,
|
|
784
977
|
finishedAt,
|
|
785
|
-
...groundedContextAssemblyInput({ contextProfile: ctx.contextProfile },
|
|
978
|
+
...groundedContextAssemblyInput({ contextProfile: ctx.contextProfile }, pack),
|
|
786
979
|
}, {
|
|
787
980
|
store: ctx.deps.evidenceStore,
|
|
788
981
|
env: ctx.deps.env,
|
|
@@ -888,8 +1081,8 @@ function persistConnectorAudit(store, connectors, selected, modelId) {
|
|
|
888
1081
|
}
|
|
889
1082
|
emitAnswerContextAudit(sink, store, selected, modelId, occurredAt);
|
|
890
1083
|
}
|
|
891
|
-
function persistHybridEvidence(ctx, sources, store, selected, cited) {
|
|
892
|
-
const folder = persistFolderEvidence(ctx, sources.folders, cited);
|
|
1084
|
+
function persistHybridEvidence(ctx, sources, store, selected, cited, completedSynthesisCallCount) {
|
|
1085
|
+
const folder = persistFolderEvidence(ctx, sources.folders, cited, completedSynthesisCallCount, sentFolderPacks(sources.folders, selected));
|
|
893
1086
|
persistConnectorAudit(store, sources.connectors, selected, ctx.modelId);
|
|
894
1087
|
return { evidenceRunId: folder.firstRunId, evidenceRunIds: folder.runIds };
|
|
895
1088
|
}
|
|
@@ -902,6 +1095,7 @@ function buildHybridContextPack(input, summary) {
|
|
|
902
1095
|
connectorSourceCount: sources.connectorSourceCount,
|
|
903
1096
|
folder: {
|
|
904
1097
|
...summary,
|
|
1098
|
+
filesInPrompt: sentGroundedFileCount(sentFolderPacks(sources.folders, selected)),
|
|
905
1099
|
usage: {
|
|
906
1100
|
...summary.usage,
|
|
907
1101
|
modelInputTokens: summary.usage.modelInputTokens + assistant.usage.promptTokens,
|
|
@@ -945,25 +1139,25 @@ function hybridAnswerContextPack(input) {
|
|
|
945
1139
|
});
|
|
946
1140
|
return buildHybridContextPack(input, summary);
|
|
947
1141
|
}
|
|
948
|
-
function hybridEvidenceForAnswer(ctx, sources, store, selected, cited, sourceEvidenceAvailable) {
|
|
1142
|
+
function hybridEvidenceForAnswer(ctx, sources, store, selected, cited, sourceEvidenceAvailable, completedSynthesisCallCount) {
|
|
949
1143
|
if (sourceEvidenceAvailable)
|
|
950
|
-
return persistHybridEvidence(ctx, sources, store, selected, cited);
|
|
1144
|
+
return persistHybridEvidence(ctx, sources, store, selected, cited, completedSynthesisCallCount);
|
|
951
1145
|
persistConnectorAudit(store, sources.connectors, [], ctx.modelId);
|
|
952
1146
|
return { evidenceRunIds: [] };
|
|
953
1147
|
}
|
|
954
1148
|
function hybridUncertaintyForAnswer(sources, selected, assistant, ctx, sourceEvidenceAvailable, nowMs) {
|
|
955
1149
|
const { redactor } = ctx.deps;
|
|
956
1150
|
const { correlationId } = ctx;
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
1151
|
+
const markers = sourceEvidenceAvailable
|
|
1152
|
+
? hybridAnswerUncertainty(sources, selected, assistant, redactor, nowMs, correlationId)
|
|
1153
|
+
: [
|
|
1154
|
+
...folderUncertainty(sources.folders, redactor),
|
|
1155
|
+
...skippedUncertainty(sources.skippedFolders, redactor),
|
|
1156
|
+
...skippedUncertainty(sources.skipped, redactor),
|
|
1157
|
+
...noEvidenceUncertainty(selected, redactor, nowMs),
|
|
1158
|
+
...hybridReconciliationUncertainty(assistant, sources.folders, selected, redactor, sourceEvidenceAvailable, correlationId),
|
|
1159
|
+
];
|
|
1160
|
+
return assessmentAwareUncertainty(assistant.content, markers);
|
|
967
1161
|
}
|
|
968
1162
|
function projectHybridAnswer(ctx, sources, store, selected, assistant, reranker, sourceEvidenceAvailable) {
|
|
969
1163
|
const cited = citedHybridSelections(selected, assistant.content);
|
|
@@ -975,7 +1169,7 @@ function projectHybridAnswer(ctx, sources, store, selected, assistant, reranker,
|
|
|
975
1169
|
citations,
|
|
976
1170
|
knowledgeCitations,
|
|
977
1171
|
retrievalActivity,
|
|
978
|
-
evidence: hybridEvidenceForAnswer(ctx, sources, store, selected, cited, sourceEvidenceAvailable),
|
|
1172
|
+
evidence: hybridEvidenceForAnswer(ctx, sources, store, selected, cited, sourceEvidenceAvailable, assistant.completedSynthesisCallCount),
|
|
979
1173
|
uncertainty: hybridUncertaintyForAnswer(sources, selected, assistant, ctx, sourceEvidenceAvailable, Date.now()),
|
|
980
1174
|
};
|
|
981
1175
|
}
|
|
@@ -983,26 +1177,25 @@ function projectHybridAnswer(ctx, sources, store, selected, assistant, reranker,
|
|
|
983
1177
|
// (the same pure builder over the same selected candidates) and the same prompt without candidates
|
|
984
1178
|
// (grounded-prompt-context.ts). The selected set is already capped, so every candidate is sent.
|
|
985
1179
|
function hybridPromptContext(ctx, selected, assistant, availableReferenceCount) {
|
|
986
|
-
const
|
|
987
|
-
const { redactor } = ctx.deps;
|
|
988
|
-
const system = { role: "system", content: HYBRID_SYSTEM_PROMPT };
|
|
1180
|
+
const system = { role: "system", content: hybridSystemPrompt(ctx.deps) };
|
|
989
1181
|
return sentPromptContext({
|
|
990
1182
|
messages: [
|
|
991
1183
|
system,
|
|
992
1184
|
{
|
|
993
1185
|
role: "user",
|
|
994
|
-
content:
|
|
1186
|
+
content: hybridUserMessage(ctx, selected),
|
|
995
1187
|
},
|
|
996
1188
|
],
|
|
997
1189
|
withoutSources: [
|
|
998
1190
|
system,
|
|
999
1191
|
{
|
|
1000
1192
|
role: "user",
|
|
1001
|
-
content:
|
|
1193
|
+
content: hybridUserMessage(ctx, []),
|
|
1002
1194
|
},
|
|
1003
1195
|
],
|
|
1004
1196
|
sentReferenceCount: selected.length,
|
|
1005
1197
|
availableReferenceCount,
|
|
1198
|
+
protectedSkill: hybridSkillUsage(ctx),
|
|
1006
1199
|
}, assistant.usage.promptTokens, currentContextProfileForModel(ctx.deps, ctx.modelId));
|
|
1007
1200
|
}
|
|
1008
1201
|
function totalFolderOmissions(folders) {
|
|
@@ -1018,6 +1211,7 @@ function assembleHybridAnswer(input) {
|
|
|
1018
1211
|
...ids,
|
|
1019
1212
|
...projection.evidence,
|
|
1020
1213
|
content: redactString(redactor, assistant.content),
|
|
1214
|
+
...groundedAnswerEvidenceFields(assistant),
|
|
1021
1215
|
citations: projection.citations,
|
|
1022
1216
|
knowledgeCitations: projection.knowledgeCitations,
|
|
1023
1217
|
uncertainty: projection.uncertainty,
|
|
@@ -1041,7 +1235,10 @@ function assembleHybridAnswer(input) {
|
|
|
1041
1235
|
// memory context, no source evidence) does call the model, so its prompt is reported like every
|
|
1042
1236
|
// other grounded request (PR #3678 review).
|
|
1043
1237
|
function hybridPromptContextField(input) {
|
|
1044
|
-
const modelInvoked = input.
|
|
1238
|
+
const modelInvoked = input.assistant.modelInvoked ??
|
|
1239
|
+
(input.sourceEvidenceAvailable !== false ||
|
|
1240
|
+
input.ctx.answerOnlyContextAvailable === true ||
|
|
1241
|
+
currentOwnAssessmentPolicy(input.ctx.deps) === "allowed");
|
|
1045
1242
|
if (!modelInvoked)
|
|
1046
1243
|
return {};
|
|
1047
1244
|
const available = input.availableReferenceCount ?? input.selected.length;
|
|
@@ -1060,15 +1257,19 @@ function resolveHybridAnswerer(ctx) {
|
|
|
1060
1257
|
return { status: 400, body: errorBody("NO_MODEL", "No model provider is configured.") };
|
|
1061
1258
|
}
|
|
1062
1259
|
const model = withConversationReadinessAdmission(resolvedModel, ctx.modelId, readinessAdmission, ctx.deps);
|
|
1063
|
-
return {
|
|
1260
|
+
return {
|
|
1261
|
+
answer: createHybridAnswerer(withMarkdownSkillAdmission(model, ctx.deps.store.markdownSkills, ctx.userMessage?.id, ctx.deps.markdownSkillAuthority), ctx.modelId, ctx.signal, ctx.correlationId, ctx.deps),
|
|
1262
|
+
};
|
|
1064
1263
|
}
|
|
1065
1264
|
async function noEvidenceAssistant(ctx, selected) {
|
|
1066
1265
|
ensureNotCancelled(ctx.signal);
|
|
1067
|
-
if (ctx.answerOnlyContextAvailable !== true
|
|
1266
|
+
if (ctx.answerOnlyContextAvailable !== true &&
|
|
1267
|
+
currentOwnAssessmentPolicy(ctx.deps) !== "allowed") {
|
|
1068
1268
|
// Share the localized deterministic search outcome with folder and multi-source paths.
|
|
1069
1269
|
return {
|
|
1070
1270
|
assistant: {
|
|
1071
1271
|
content: connectedSearchNoEvidenceAnswer(ctx.content),
|
|
1272
|
+
answerKind: "refusal",
|
|
1072
1273
|
usage: { promptTokens: 0, completionTokens: 0 },
|
|
1073
1274
|
},
|
|
1074
1275
|
promptCtx: ctx,
|
|
@@ -1135,7 +1336,11 @@ export async function runHybridGroundedAsk(ctx) {
|
|
|
1135
1336
|
const startedAtMs = Date.now();
|
|
1136
1337
|
const env = openStoreForDeps(ctx.deps);
|
|
1137
1338
|
try {
|
|
1138
|
-
return await runHybridWithStore({
|
|
1339
|
+
return await runHybridWithStore({
|
|
1340
|
+
...ctx,
|
|
1341
|
+
startedAtMs,
|
|
1342
|
+
originalSynthesisBudget: modelWindowAwareBudget(ctx.deps, ctx.modelId),
|
|
1343
|
+
}, env.store, env.vectorIndex);
|
|
1139
1344
|
}
|
|
1140
1345
|
catch (error) {
|
|
1141
1346
|
if (ctx.signal.aborted) {
|
|
@@ -1244,7 +1449,7 @@ async function retrieveHybridSources(ctx, store, vectorIndex, capped, resolved,
|
|
|
1244
1449
|
await mapWithConcurrency(["folders", "connectors"], 2, async (kind, _index, signal) => {
|
|
1245
1450
|
const child = { ...ctx, signal };
|
|
1246
1451
|
if (kind === "folders") {
|
|
1247
|
-
folderResult = await retrieveFolderPacks(child, capped.folderScopes, query, ctx.folderRetriever ?? defaultRetriever(signal, ctx.deps, ctx.correlationId));
|
|
1452
|
+
folderResult = await retrieveFolderPacks(child, capped.folderScopes, query, ctx.folderRetriever ?? defaultRetriever(ctx.signal, ctx.deps, ctx.correlationId));
|
|
1248
1453
|
}
|
|
1249
1454
|
else {
|
|
1250
1455
|
connectorResult = await retrieveConnectors(child, store, vectorIndex, capped.connectorScopes, resolved);
|
|
@@ -1351,15 +1556,15 @@ async function answerAndAssemble(ctx, store, meta) {
|
|
|
1351
1556
|
}
|
|
1352
1557
|
function hybridPromptMessages(ctx, selected) {
|
|
1353
1558
|
return [
|
|
1354
|
-
{ role: "system", content:
|
|
1559
|
+
{ role: "system", content: hybridSystemPrompt(ctx.deps) },
|
|
1355
1560
|
{
|
|
1356
1561
|
role: "user",
|
|
1357
|
-
content:
|
|
1562
|
+
content: hybridUserMessage(ctx, selected),
|
|
1358
1563
|
},
|
|
1359
1564
|
];
|
|
1360
1565
|
}
|
|
1361
1566
|
function hybridContextWithinWindow(ctx, selected) {
|
|
1362
|
-
const profile =
|
|
1567
|
+
const profile = hybridSynthesisProfile(ctx);
|
|
1363
1568
|
if (profile === undefined || ctx.folderOmissionPacks === undefined)
|
|
1364
1569
|
return ctx;
|
|
1365
1570
|
const tokens = (messages) => countGatewayPromptTokens({ messages }, profile.tokenAccounting);
|
|
@@ -1384,38 +1589,165 @@ function hybridContextWithinWindow(ctx, selected) {
|
|
|
1384
1589
|
// The highest-ranked candidates whose prompt fits the model's current input budget. Candidates keep
|
|
1385
1590
|
// their markers, so a prefix keeps `[1]..[n]` consistent with the citations derived from it.
|
|
1386
1591
|
function hybridCandidatesWithinWindow(ctx, selected) {
|
|
1387
|
-
const question = ctx.answerContent ?? ctx.content;
|
|
1388
1592
|
const render = (count) => ({
|
|
1389
1593
|
messages: [
|
|
1390
|
-
{ role: "system", content:
|
|
1594
|
+
{ role: "system", content: hybridSystemPrompt(ctx.deps) },
|
|
1391
1595
|
{
|
|
1392
1596
|
role: "user",
|
|
1393
|
-
content:
|
|
1597
|
+
content: hybridUserMessage(ctx, selected.slice(0, count)),
|
|
1394
1598
|
},
|
|
1395
1599
|
],
|
|
1396
1600
|
});
|
|
1397
|
-
const fitted = fitKnowledgePrompt(selected.length, render,
|
|
1601
|
+
const fitted = fitKnowledgePrompt(selected.length, render, hybridSynthesisProfile(ctx), {
|
|
1602
|
+
correlationId: ctx.correlationId,
|
|
1603
|
+
diagnostics: ctx.deps.diagnostics,
|
|
1604
|
+
});
|
|
1398
1605
|
return selected.slice(0, fitted.referenceCount);
|
|
1399
1606
|
}
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1607
|
+
function conversationOnlyHybridAnswer(fitted) {
|
|
1608
|
+
const folders = fitted.promptCtx.folderOmissionPacks ?? [];
|
|
1609
|
+
return (folders.length > 0 &&
|
|
1610
|
+
folders.every((source) => source.plan.targetDecision?.conversationOnly === true) &&
|
|
1611
|
+
fitted.sent.length === 0);
|
|
1612
|
+
}
|
|
1403
1613
|
async function answerHybridWithinWindow(ctx, answerer, selected) {
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
const
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1614
|
+
const observe = citationBehaviourObserverFor(ctx.deps, ctx.modelId, ctx.correlationId);
|
|
1615
|
+
const remainingBefore = answerer.answer.remainingSynthesisCalls?.();
|
|
1616
|
+
const reservedBefore = answerer.answer.reservedSynthesisOutputTokens?.();
|
|
1617
|
+
const completedBefore = answerer.answer.completedSynthesisCalls?.();
|
|
1618
|
+
const fitted = await withAdoptedContextWindowRetry(ctx.deps, { modelId: ctx.modelId, surface: "grounded", correlationId: ctx.correlationId }, () => hybridAnswerAttempt(ctx, answerer, selected));
|
|
1619
|
+
const assistant = {
|
|
1620
|
+
...fitted.assistant,
|
|
1621
|
+
...pluralSynthesisCountFields(remainingBefore, answerer.answer.remainingSynthesisCalls?.(), reservedBefore, answerer.answer.reservedSynthesisOutputTokens?.(), completedBefore, answerer.answer.completedSynthesisCalls?.()),
|
|
1622
|
+
};
|
|
1623
|
+
const normalized = normalizeGroundedAnswerAssessment(assistant, currentOwnAssessmentPolicy(ctx.deps), ctx.correlationId, ctx.content, undefined, conversationOnlyHybridAnswer(fitted));
|
|
1624
|
+
const validated = validatedHybridEvidence(fitted.promptCtx, normalized, fitted.sent);
|
|
1625
|
+
return {
|
|
1626
|
+
...fitted,
|
|
1627
|
+
assistant: await repairHybridAnswer(fitted.promptCtx, answerer, validated, fitted.sent, observe),
|
|
1628
|
+
};
|
|
1629
|
+
}
|
|
1630
|
+
async function hybridAnswerAttempt(ctx, answerer, selected) {
|
|
1631
|
+
const budget = ctx.originalSynthesisBudget ?? modelWindowAwareBudget(ctx.deps, ctx.modelId);
|
|
1632
|
+
const usage = hybridRetrievalUsage(ctx);
|
|
1633
|
+
const pending = answerer.answer.pendingSynthesisUsage?.() ?? {
|
|
1634
|
+
promptTokens: 0,
|
|
1635
|
+
completionTokens: 0,
|
|
1636
|
+
};
|
|
1637
|
+
const promptCtx = hybridContextWithinWindow({
|
|
1638
|
+
...ctx,
|
|
1639
|
+
synthesisInputTokensMax: Math.max(0, budget.modelInputTokensMax - usage.promptTokens - pending.promptTokens),
|
|
1640
|
+
}, selected);
|
|
1641
|
+
const sent = hybridCandidatesWithinWindow(promptCtx, selected);
|
|
1642
|
+
const user = hybridUserMessage(promptCtx, sent);
|
|
1643
|
+
const system = hybridSystemPrompt(ctx.deps);
|
|
1644
|
+
logFittedHybridSelection(promptCtx, sent, system, user);
|
|
1645
|
+
const assistant = normalizeGroundedAnswerPayload(await answerer.answer(system, user, {
|
|
1646
|
+
modelInputTokensMax: budget.modelInputTokensMax - usage.promptTokens,
|
|
1647
|
+
modelOutputTokensMax: budget.modelOutputTokensMax - usage.completionTokens,
|
|
1648
|
+
...(budget.elapsedMsMax === null
|
|
1649
|
+
? {}
|
|
1650
|
+
: { deadlineAtMs: (ctx.startedAtMs ?? Date.now()) + budget.elapsedMsMax }),
|
|
1651
|
+
}));
|
|
1412
1652
|
return { assistant, sent, promptCtx };
|
|
1413
1653
|
}
|
|
1654
|
+
function logFittedHybridSelection(ctx, selected, system, user) {
|
|
1655
|
+
const profile = hybridSynthesisProfile(ctx);
|
|
1656
|
+
logGroundedPromptSelection(ctx.correlationId, {
|
|
1657
|
+
messages: [
|
|
1658
|
+
{ role: "system", content: system },
|
|
1659
|
+
{ role: "user", content: user },
|
|
1660
|
+
],
|
|
1661
|
+
sentEvidencePacks: sentFolderPacks(ctx.folderOmissionPacks ?? [], selected),
|
|
1662
|
+
protectedSkill: hybridSkillUsage(ctx),
|
|
1663
|
+
}, profile?.effectiveInputBudget ?? 0, profile?.tokenAccounting);
|
|
1664
|
+
}
|
|
1665
|
+
function hybridRetrievalUsage(ctx) {
|
|
1666
|
+
return {
|
|
1667
|
+
promptTokens: (ctx.folderOmissionPacks ?? []).reduce((sum, source) => sum + source.pack.usage.modelInputTokens, 0),
|
|
1668
|
+
completionTokens: (ctx.folderOmissionPacks ?? []).reduce((sum, source) => sum + source.pack.usage.modelOutputTokens, 0),
|
|
1669
|
+
};
|
|
1670
|
+
}
|
|
1671
|
+
function hybridSynthesisProfile(ctx) {
|
|
1672
|
+
const profile = currentContextProfileForModel(ctx.deps, ctx.modelId) ?? DEFAULT_CONTEXT_PROFILE;
|
|
1673
|
+
return {
|
|
1674
|
+
...profile,
|
|
1675
|
+
effectiveInputBudget: Math.min(profile.effectiveInputBudget, ctx.synthesisInputTokensMax ?? profile.effectiveInputBudget),
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
function validatedHybridEvidence(ctx, assistant, sent) {
|
|
1679
|
+
const sentEvidencePacks = sentFolderPacks(ctx.folderOmissionPacks ?? [], sent);
|
|
1680
|
+
const evidenceScopeIndex = verifiedPluralInsufficiencyScopeIndex(ctx.folderOmissionPacks ?? [], assistant.content, sentEvidencePacks, ctx.insufficiencyScopeIndex);
|
|
1681
|
+
return {
|
|
1682
|
+
...assistant,
|
|
1683
|
+
insufficiencyDeclarations: undefined,
|
|
1684
|
+
evidenceScopeIndex,
|
|
1685
|
+
sentEvidencePacks,
|
|
1686
|
+
filesInPrompt: sentGroundedFileCount(sentEvidencePacks),
|
|
1687
|
+
...validateGroundedAnswerEvidence(assistant.content, evidenceScopeIndex, ctx.content),
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
function hybridRepairPack(ctx) {
|
|
1691
|
+
const sources = ctx.folderOmissionPacks ?? [];
|
|
1692
|
+
const original = sources[0]?.pack;
|
|
1693
|
+
if (original === undefined)
|
|
1694
|
+
return undefined;
|
|
1695
|
+
return {
|
|
1696
|
+
...original,
|
|
1697
|
+
usage: {
|
|
1698
|
+
...original.usage,
|
|
1699
|
+
modelInputTokens: sources.reduce((sum, source) => sum + source.pack.usage.modelInputTokens, 0),
|
|
1700
|
+
modelOutputTokens: sources.reduce((sum, source) => sum + source.pack.usage.modelOutputTokens, 0),
|
|
1701
|
+
},
|
|
1702
|
+
};
|
|
1703
|
+
}
|
|
1704
|
+
async function repairHybridAnswer(ctx, answerer, answer, sent, observeCitationBehaviour) {
|
|
1705
|
+
const budget = ctx.originalSynthesisBudget ?? modelWindowAwareBudget(ctx.deps, ctx.modelId);
|
|
1706
|
+
const pack = hybridRepairPack(ctx);
|
|
1707
|
+
let budgetRefused = false;
|
|
1708
|
+
const repair = answerer.answer.repair;
|
|
1709
|
+
const repairContext = {
|
|
1710
|
+
question: ctx.answerContent ?? ctx.content,
|
|
1711
|
+
pack,
|
|
1712
|
+
budget,
|
|
1713
|
+
answer,
|
|
1714
|
+
nowMs: Date.now,
|
|
1715
|
+
numericMarkers: new Set(sent.map((candidate) => candidate.marker)),
|
|
1716
|
+
...(budget.elapsedMsMax === null
|
|
1717
|
+
? {}
|
|
1718
|
+
: { deadlineAtMs: (ctx.startedAtMs ?? Date.now()) + budget.elapsedMsMax }),
|
|
1719
|
+
...(repair === undefined
|
|
1720
|
+
? {}
|
|
1721
|
+
: {
|
|
1722
|
+
invokeRepair: async (original, options) => {
|
|
1723
|
+
const result = normalizeGroundedAnswerPayload(await repair(original, options));
|
|
1724
|
+
budgetRefused = result.modelInvoked === false;
|
|
1725
|
+
return result;
|
|
1726
|
+
},
|
|
1727
|
+
}),
|
|
1728
|
+
deps: {
|
|
1729
|
+
answerer: pluralSynthesisMetadata(answerer.answer),
|
|
1730
|
+
signal: ctx.signal,
|
|
1731
|
+
reliableCitationBehaviour: citationBehaviourFor(ctx.deps, ctx.modelId),
|
|
1732
|
+
observeCitationBehaviour,
|
|
1733
|
+
},
|
|
1734
|
+
};
|
|
1735
|
+
const repaired = await repairGroundedAnswer(repairContext);
|
|
1736
|
+
const finalAnswer = finalPluralRepairAnswer(repairContext, repaired, budgetRefused);
|
|
1737
|
+
recordHybridGroundedAnswer(ctx, finalAnswer, repaired.failure);
|
|
1738
|
+
return finalAnswer;
|
|
1739
|
+
}
|
|
1740
|
+
function recordHybridGroundedAnswer(ctx, finalAnswer, failure) {
|
|
1741
|
+
const packs = (ctx.folderOmissionPacks ?? []).map((source) => source.pack);
|
|
1742
|
+
recordPluralGroundedAnswer(packs, finalAnswer, finalAnswer.citationRepairDisposition, ctx.correlationId, failure, currentOwnAssessmentPolicy(ctx.deps));
|
|
1743
|
+
if (packs.length === 0 && failure !== undefined)
|
|
1744
|
+
recordPluralCitationRepairFailure(ctx.deps, ctx.correlationId, failure);
|
|
1745
|
+
}
|
|
1414
1746
|
// Assemble the hybrid answer, judge its selected folder and connector evidence (#2563, #2947), and
|
|
1415
1747
|
// attach the result. Extracted from answerAndAssemble to keep both functions under the LOC bound.
|
|
1416
1748
|
async function finalizeHybridAnswer(ctx, store, meta, input) {
|
|
1417
1749
|
const { selected, availableReferenceCount, limits, assistant, reranker, ids } = input;
|
|
1418
|
-
const folders = meta.folderResult.retrieved;
|
|
1750
|
+
const folders = fittedFolderDiagnostics(meta.folderResult.retrieved, selected);
|
|
1419
1751
|
const answer = assembleHybridAnswer({
|
|
1420
1752
|
ctx,
|
|
1421
1753
|
sources: {
|