@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,4 @@
|
|
|
1
|
+
import { callerAdmittedRequest, settleCallerAttempt, settleFailedCallerAttempt, onceCallerReservation, CallerAttemptAdmissionError, } from "./gateway-attempt-admission.js";
|
|
1
2
|
// Orchestrator: routes a request through the capability registry, then through the
|
|
2
3
|
// circuit breaker, bounded retry, and the provider adapter. Usage metadata
|
|
3
4
|
// (request id, latency, cost class) is owned by the gateway, not the provider, so
|
|
@@ -5,17 +6,35 @@
|
|
|
5
6
|
import { randomUUID } from "node:crypto";
|
|
6
7
|
import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
7
8
|
import { canonicalise, sha256Hex } from "@oscharko-dev/keiko-security/hashing";
|
|
8
|
-
import {
|
|
9
|
+
import { ContextOverflowError, GatewayError, ProviderEmptyAnswerError, ProviderOutputExhaustedError, TransportError, UnknownModelError, } from "@oscharko-dev/keiko-security/errors/gateway";
|
|
9
10
|
import { deriveContextProfile, deriveContextProfileFromCapability, } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
|
|
10
11
|
import { GatewayPromptAdmission, ProviderPromptCounter } from "./gateway-prompt-admission.js";
|
|
11
12
|
import { findConfiguredCapability } from "./model-selection.js";
|
|
13
|
+
import { carriedReasoning } from "./normalize.js";
|
|
12
14
|
import { activityLogErrorKind, logEndpointHost, logLevelEnabled, logModelId, logTimer, resolveLogSink, withCorrelationId, } from "./observability.js";
|
|
13
15
|
import { toolCallingConfigurationFingerprint } from "./config.js";
|
|
14
16
|
import { OpenAiAdapter } from "./openai-adapter.js";
|
|
15
17
|
import { countGatewayPromptTokens } from "./prompt-token-accounting.js";
|
|
16
18
|
import { createGatewayToolCatalogBridge, GatewayToolCatalogError } from "./toolCatalogBridge.js";
|
|
17
|
-
import { CircuitBreaker, codingWorkbenchProviderTimeoutMs, executeWithRetry, GATEWAY_BUFFERED_BUDGET_FLOOR_MS, GATEWAY_SILENCE_FLOOR_MS, providerRequestBudgetMs,
|
|
19
|
+
import { admissionBudgetFor, bufferedCallBudgetMs, callOutageWindowMs, CircuitBreaker, codingWorkbenchProviderTimeoutMs, executeWithRetry, GATEWAY_BUFFERED_BUDGET_FLOOR_MS, GATEWAY_SILENCE_FLOOR_MS, isNonProviderFault, providerRequestBudgetMs, codingWorkbenchRetryConfig, retryAnnouncer, steeredAnswerRepair, streamedCallBudgetMs, streamRequestBudgetMs, systemClock, } from "./resilience.js";
|
|
18
20
|
import { assertValidGatewaySamplingParameters } from "./types.js";
|
|
21
|
+
function completeTransportUsage(usage) {
|
|
22
|
+
if (usage === undefined ||
|
|
23
|
+
!("requestId" in usage) ||
|
|
24
|
+
!("latencyMs" in usage) ||
|
|
25
|
+
!("costClass" in usage))
|
|
26
|
+
return undefined;
|
|
27
|
+
if (typeof usage.requestId !== "string" || typeof usage.latencyMs !== "number")
|
|
28
|
+
return undefined;
|
|
29
|
+
if (usage.costClass !== "low" && usage.costClass !== "medium" && usage.costClass !== "high")
|
|
30
|
+
return undefined;
|
|
31
|
+
return {
|
|
32
|
+
...usage,
|
|
33
|
+
requestId: usage.requestId,
|
|
34
|
+
latencyMs: usage.latencyMs,
|
|
35
|
+
costClass: usage.costClass,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
19
38
|
function callIds(requestId, request) {
|
|
20
39
|
return { requestId, correlationId: request.logContext?.correlationId ?? requestId };
|
|
21
40
|
}
|
|
@@ -86,6 +105,12 @@ const GATEWAY_TOOL_CATALOG_REPAIR_OPERATION = defineActivityLogOperation({
|
|
|
86
105
|
},
|
|
87
106
|
toolCallId: { type: "string", dataClass: "opaque-id", required: true, maxLength: 256 },
|
|
88
107
|
offeredAlias: { type: "string", dataClass: "opaque-id", required: true, maxLength: 256 },
|
|
108
|
+
transport: {
|
|
109
|
+
type: "string",
|
|
110
|
+
dataClass: "closed-enum",
|
|
111
|
+
required: false,
|
|
112
|
+
values: ["assistant-text"],
|
|
113
|
+
},
|
|
89
114
|
missingRequiredCount: { type: "integer", dataClass: "count", required: false },
|
|
90
115
|
invalidPathCount: { type: "integer", dataClass: "count", required: false },
|
|
91
116
|
unexpectedPropertyCount: { type: "integer", dataClass: "count", required: false },
|
|
@@ -145,6 +170,20 @@ const GATEWAY_CALL_STARTED_EXECUTION_FIELDS = {
|
|
|
145
170
|
required: true,
|
|
146
171
|
},
|
|
147
172
|
};
|
|
173
|
+
// #3878: the reasoning share of a completed call, as counts: the UTF-8 size of the reasoning the
|
|
174
|
+
// answer carried, the provider's own reasoning-token count when it reports one (never estimated),
|
|
175
|
+
// and whether the reasoning was forwarded to the caller or discarded. Never the reasoning itself.
|
|
176
|
+
// `required: false`: records written before these fields existed lack them.
|
|
177
|
+
const REASONING_COMPLETION_FIELDS = {
|
|
178
|
+
reasoningBytes: { type: "integer", dataClass: "count", required: false },
|
|
179
|
+
reasoningTokens: { type: "integer", dataClass: "count", required: false },
|
|
180
|
+
reasoningDisposition: {
|
|
181
|
+
type: "string",
|
|
182
|
+
dataClass: "closed-enum",
|
|
183
|
+
required: false,
|
|
184
|
+
values: ["none", "forwarded", "discarded"],
|
|
185
|
+
},
|
|
186
|
+
};
|
|
148
187
|
const GATEWAY_CHAT_STARTED_OPERATION = defineActivityLogOperation({
|
|
149
188
|
...GATEWAY_CALL_STARTED_OPERATION_BASE,
|
|
150
189
|
op: "gateway.chat.started",
|
|
@@ -225,6 +264,7 @@ const GATEWAY_STREAM_COMPLETED_OPERATION = defineActivityLogOperation({
|
|
|
225
264
|
firstTokenMs: { type: "number", dataClass: "duration", required: false },
|
|
226
265
|
promptTokens: { type: "integer", dataClass: "count", required: false },
|
|
227
266
|
completionTokens: { type: "integer", dataClass: "count", required: false },
|
|
267
|
+
...REASONING_COMPLETION_FIELDS,
|
|
228
268
|
},
|
|
229
269
|
causal: "correlation",
|
|
230
270
|
lifecycle: "end",
|
|
@@ -336,6 +376,7 @@ const GATEWAY_CHAT_COMPLETED_OPERATION = defineActivityLogOperation({
|
|
|
336
376
|
dataClass: "closed-enum",
|
|
337
377
|
required: true,
|
|
338
378
|
},
|
|
379
|
+
...REASONING_COMPLETION_FIELDS,
|
|
339
380
|
},
|
|
340
381
|
diagnosticWhen: [
|
|
341
382
|
{ field: "finishReason", values: ["length", "content_filter", "error", "cancelled"] },
|
|
@@ -412,55 +453,195 @@ function attachGatewayRequestId(error, requestId) {
|
|
|
412
453
|
error.requestId = requestId;
|
|
413
454
|
}
|
|
414
455
|
}
|
|
415
|
-
//
|
|
416
|
-
//
|
|
417
|
-
//
|
|
418
|
-
//
|
|
419
|
-
//
|
|
420
|
-
//
|
|
421
|
-
//
|
|
422
|
-
//
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
//
|
|
432
|
-
//
|
|
433
|
-
//
|
|
434
|
-
//
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
// out at all) — so it counts as a provider failure again, exactly as it did before this PR.
|
|
440
|
-
const NON_PROVIDER_FAULTS = [
|
|
441
|
-
CancelledError,
|
|
442
|
-
ConfigInvalidError,
|
|
443
|
-
MalformedToolCallError,
|
|
444
|
-
ProviderOutputExhaustedError,
|
|
445
|
-
ProviderEmptyAnswerError,
|
|
446
|
-
];
|
|
447
|
-
function isNonProviderFault(error) {
|
|
448
|
-
return NON_PROVIDER_FAULTS.some((errorClass) => error instanceof errorClass);
|
|
456
|
+
// #3873: ONE retry policy for both call shapes. A call that asked for the outage window
|
|
457
|
+
// (`outageWindowMs` > 0) keeps retrying for what is left of it since the call started — `elapsedMs`
|
|
458
|
+
// is the time a streamed call already spent on its initial admission, 0 for a buffered call whose
|
|
459
|
+
// loop starts with the call — and waits through an open breaker; every other call keeps the
|
|
460
|
+
// provider's attempt count (`codingWorkbenchRetryConfig` with a window of 0). Never below one
|
|
461
|
+
// millisecond, so a window spent on admission still ends, and reports, as an outage-window call.
|
|
462
|
+
// The steered answer repair (#3873, F17, F23) joins the policy only for a call that asked for it
|
|
463
|
+
// (`answerRepair: "steered"`).
|
|
464
|
+
function callRetryConfig(provider, outageWindowMs, elapsedMs = 0, answerRepair) {
|
|
465
|
+
const windowMs = outageWindowMs > 0 ? Math.max(1, outageWindowMs - elapsedMs) : 0;
|
|
466
|
+
return {
|
|
467
|
+
...codingWorkbenchRetryConfig(provider, windowMs),
|
|
468
|
+
jitterProviderCooldown: true,
|
|
469
|
+
...(answerRepair === "steered" ? { repair: steeredAnswerRepair } : {}),
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
// The call's conversation with its observer (#3873 review): one per call, shared by its admission
|
|
473
|
+
// waits and by every retry loop it runs, and none for a call that set no `retryObserver`, which
|
|
474
|
+
// keeps its exact path. The labels are those of the call's retry lines, so an observer that throws
|
|
475
|
+
// is recorded under the call's own correlation id.
|
|
476
|
+
function callAnnouncer(request, labels) {
|
|
477
|
+
return request.retryObserver === undefined
|
|
478
|
+
? undefined
|
|
479
|
+
: retryAnnouncer(request.retryObserver, labels);
|
|
449
480
|
}
|
|
450
481
|
// The admission owns exactly one outcome; cancellations and local refusal release only its own
|
|
451
482
|
// probe, and a stale admission cannot mutate a later breaker generation.
|
|
452
483
|
function recordProviderFailure(admission, error, providerAdmitted) {
|
|
453
484
|
admission.settle(providerAdmitted && !isNonProviderFault(error) ? "failure" : "non-provider-fault", error);
|
|
454
485
|
}
|
|
455
|
-
function
|
|
486
|
+
function observedProviderDispatch(observed, admitted) {
|
|
487
|
+
return observed?.() ?? admitted;
|
|
488
|
+
}
|
|
489
|
+
// The request an attempt sends without asking for reasoning delivery: its reasoning is parsed,
|
|
490
|
+
// counted and discarded like on any surface that does not display it.
|
|
491
|
+
function withoutReasoningDelivery(request) {
|
|
492
|
+
const { reasoningDelivery: _undelivered, ...rest } = request;
|
|
493
|
+
return rest;
|
|
494
|
+
}
|
|
495
|
+
function emptyDiscardedUsage() {
|
|
496
|
+
return { attemptCount: 0, promptTokens: 0, completionTokens: 0 };
|
|
497
|
+
}
|
|
498
|
+
// Counts one discarded attempt whose provider reported usage; an attempt that failed before any
|
|
499
|
+
// usage arrived (a refused connection, a silent attempt) adds nothing. Counts only, never content.
|
|
500
|
+
function tallyDiscardedAttempt(tally, failure) {
|
|
501
|
+
if (!(failure instanceof GatewayError) || failure.partialUsage === undefined)
|
|
502
|
+
return;
|
|
503
|
+
const { promptTokens, completionTokens } = failure.partialUsage;
|
|
504
|
+
if (!isTokenCount(promptTokens) || !isTokenCount(completionTokens))
|
|
505
|
+
return;
|
|
506
|
+
if (promptTokens === 0 && completionTokens === 0)
|
|
507
|
+
return;
|
|
508
|
+
tally.attemptCount += 1;
|
|
509
|
+
tally.promptTokens += promptTokens;
|
|
510
|
+
tally.completionTokens += completionTokens;
|
|
511
|
+
}
|
|
512
|
+
function isTokenCount(value) {
|
|
513
|
+
return Number.isSafeInteger(value) && value >= 0;
|
|
514
|
+
}
|
|
515
|
+
// The answer a call settled with, carrying what its discarded attempts consumed, so the caller's
|
|
516
|
+
// own budget can count every attempt the provider processed (ADR-0137 D2).
|
|
517
|
+
function withDiscardedUsage(response, tally) {
|
|
518
|
+
return tally.attemptCount === 0 ? response : { ...response, discardedAttemptUsage: { ...tally } };
|
|
519
|
+
}
|
|
520
|
+
// A catalog rejection is retried only WITH its schema correction (`requestAfterToolSchemaRejection`):
|
|
521
|
+
// one that carries no repair would replay the identical request.
|
|
522
|
+
function unrepairableCatalogRejection(error) {
|
|
523
|
+
return error instanceof GatewayToolCatalogError && error.repair === undefined;
|
|
524
|
+
}
|
|
525
|
+
// A failure the call's retry loop can still act on after its stream delivered nothing but
|
|
526
|
+
// reasoning (#3873 review): the steered repair the call asked for and has not used yet, a catalog
|
|
527
|
+
// rejection that carries its schema correction, or a retryable provider failure — the loop then
|
|
528
|
+
// applies the call's own policy (attempt count, outage window, budget). Anything else surfaces at
|
|
529
|
+
// once, as it did.
|
|
530
|
+
// A non-streaming adapter's fallback is one whole-body read, so its attempt keeps the buffered floor.
|
|
531
|
+
function streamAttemptBudgetMs(adapter, route, bounds) {
|
|
532
|
+
return adapter.callStream === undefined
|
|
533
|
+
? Math.min(bounds.budgetMs, effectiveBufferedAttemptMs(route.provider))
|
|
534
|
+
: bounds.budgetMs;
|
|
535
|
+
}
|
|
536
|
+
// The loop a stream resumes after a failed attempt, on the call's own attempt count and repair.
|
|
537
|
+
function streamResume(state, failedAttempt) {
|
|
538
|
+
if (failedAttempt === undefined)
|
|
539
|
+
return undefined;
|
|
456
540
|
return {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
shouldRetry: (error) => !admission().halfOpen && !(error instanceof GatewayToolCatalogError),
|
|
461
|
-
timeoutMs: remainingMs,
|
|
541
|
+
failedAttempt,
|
|
542
|
+
attempts: state.attempts.count,
|
|
543
|
+
repairs: state.outputRepair.steered === undefined ? 0 : 1,
|
|
462
544
|
};
|
|
463
545
|
}
|
|
546
|
+
function noteDelivered(state, chunk) {
|
|
547
|
+
if (chunk.type === "reasoning")
|
|
548
|
+
state.attempts.reasoningDelivered = true;
|
|
549
|
+
}
|
|
550
|
+
function resumableAfterReasoning(state, error) {
|
|
551
|
+
if (!(error instanceof GatewayError))
|
|
552
|
+
return false;
|
|
553
|
+
const repairable = state.prepared.answerRepair === "steered" &&
|
|
554
|
+
state.outputRepair.steered === undefined &&
|
|
555
|
+
steeredAnswerRepair(error) !== undefined;
|
|
556
|
+
return repairable || (error.retryable && !unrepairableCatalogRejection(error));
|
|
557
|
+
}
|
|
558
|
+
// How long a streamed call has already run (its first admission included) and what is left of its
|
|
559
|
+
// budget, the outage window's extension included (#3873): the two inputs of its startup retries.
|
|
560
|
+
function streamStartupBudget(state, now) {
|
|
561
|
+
const elapsedMs = now - state.start;
|
|
562
|
+
const budgetMs = streamedCallBudgetMs(state.route.provider, state.outageWindowMs);
|
|
563
|
+
return { remainingMs: Math.max(0, budgetMs - elapsedMs), elapsedMs };
|
|
564
|
+
}
|
|
565
|
+
// The startup retries of a streamed call run under the same policy as a buffered call
|
|
566
|
+
// (`callRetryConfig`), with what is left of the stream budget and of the outage window. Under the
|
|
567
|
+
// attempt policy a failed half-open probe ends the call; under the outage window the next attempt
|
|
568
|
+
// waits through the re-opened breaker for the next probe, exactly as a buffered call does (#3873).
|
|
569
|
+
function streamStartupRetryConfig(state, admission, budget) {
|
|
570
|
+
const config = callRetryConfig(state.route.provider, state.outageWindowMs, budget.elapsedMs, state.prepared.answerRepair);
|
|
571
|
+
const probeEndsCall = config.retryWindowMs === undefined;
|
|
572
|
+
return {
|
|
573
|
+
...config,
|
|
574
|
+
maxRetries: probeEndsCall && state.admission.halfOpen ? 0 : state.route.provider.maxRetries,
|
|
575
|
+
shouldRetry: (error) => !(probeEndsCall && admission().halfOpen) && !unrepairableCatalogRejection(error),
|
|
576
|
+
timeoutMs: budget.remainingMs,
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* What the model is told after it spent its whole output budget without a tool call or a final
|
|
581
|
+
* answer (#3873, F17: Gemma 4 31B with reasoning enabled reasoned for 8k tokens on a plain file-read
|
|
582
|
+
* turn, three times in a row). Fixed and body-free: it names the budget outcome, never the reasoning.
|
|
583
|
+
* Module-level export (not part of the package surface) so the sentence can be pinned directly.
|
|
584
|
+
*/
|
|
585
|
+
export const OUTPUT_EXHAUSTED_REPAIR_MESSAGE = "Your previous answer used the whole output budget without producing a tool call or a final answer. Reply now with the tool call or the final answer directly; keep any reasoning to a few sentences.";
|
|
586
|
+
/**
|
|
587
|
+
* What the model is told after an answer that ended after reasoning without a tool call or any text
|
|
588
|
+
* (#3873, F23: Gemma 4 31B streamed through LiteLLM reasoned for about 4,500 tokens, then produced
|
|
589
|
+
* nothing, turn after turn). Fixed and body-free like the sentence above: it names the outcome,
|
|
590
|
+
* never the reasoning. Module-level export (not part of the package surface) so it can be pinned.
|
|
591
|
+
*/
|
|
592
|
+
export const EMPTY_ANSWER_REPAIR_MESSAGE = "Your previous answer ended after reasoning without a tool call or a final answer. Call the next tool now, or give the final answer; keep any reasoning to a few sentences.";
|
|
593
|
+
// The one correction each steered repair sends.
|
|
594
|
+
const REPAIR_MESSAGES = {
|
|
595
|
+
"output-exhausted-repair": OUTPUT_EXHAUSTED_REPAIR_MESSAGE,
|
|
596
|
+
"empty-answer-repair": EMPTY_ANSWER_REPAIR_MESSAGE,
|
|
597
|
+
};
|
|
598
|
+
// The steered request: the ORIGINAL request plus one system correction, like the schema repair —
|
|
599
|
+
// one correction at a time, and never the failed answer's reasoning quoted back.
|
|
600
|
+
function steeredRepairRequest(original, reason) {
|
|
601
|
+
return {
|
|
602
|
+
...original,
|
|
603
|
+
messages: [...original.messages, { role: "system", content: REPAIR_MESSAGES[reason] }],
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
// The repair the retry loop granted for the failure an attempt follows, as that attempt starts.
|
|
607
|
+
// Undefined for every other attempt: an ordinary provider retry keeps whatever steer is already set,
|
|
608
|
+
// and a call that did not ask for the repair (`answerRepair`) is never granted one.
|
|
609
|
+
function grantedRepair(request, previousError) {
|
|
610
|
+
if (request.answerRepair !== "steered" || previousError === undefined)
|
|
611
|
+
return undefined;
|
|
612
|
+
const reason = steeredAnswerRepair(previousError);
|
|
613
|
+
return reason === undefined ? undefined : { reason, failure: previousError };
|
|
614
|
+
}
|
|
615
|
+
// How the steered attempt ended, by the failure it ended with, whichever failure triggered the
|
|
616
|
+
// repair: the model spent the whole budget (`exhausted-again`) or ended empty (`empty-again`) once
|
|
617
|
+
// more, or the attempt failed for another reason — including the first failure itself resurfacing
|
|
618
|
+
// because the repair was refused admission (`failed`).
|
|
619
|
+
function repairOutcomeOf(error, steered) {
|
|
620
|
+
if (error === steered.failure)
|
|
621
|
+
return "failed";
|
|
622
|
+
if (error instanceof ProviderOutputExhaustedError)
|
|
623
|
+
return "exhausted-again";
|
|
624
|
+
return error instanceof ProviderEmptyAnswerError ? "empty-again" : "failed";
|
|
625
|
+
}
|
|
626
|
+
// Marks the error that ended a steered attempt (attach-at-throw-site, like `requestId`) with how
|
|
627
|
+
// that attempt ended. A call that never started a repair leaves the error unmarked.
|
|
628
|
+
function attachOutputRepair(error, state) {
|
|
629
|
+
const { steered } = state;
|
|
630
|
+
if (steered === undefined || !(error instanceof GatewayError))
|
|
631
|
+
return;
|
|
632
|
+
if (error.outputRepair !== undefined)
|
|
633
|
+
return;
|
|
634
|
+
error.outputRepair = repairOutcomeOf(error, steered);
|
|
635
|
+
}
|
|
636
|
+
// The answer a steered attempt recovered, marked so the caller's own evidence can say so.
|
|
637
|
+
function recoveredResponse(response, state) {
|
|
638
|
+
return state.steered === undefined ? response : { ...response, outputRepair: "recovered" };
|
|
639
|
+
}
|
|
640
|
+
// A chunk that commits a stream, after which nothing may be replayed: answer text or the terminal
|
|
641
|
+
// answer. An empty delta does not, and neither does a forwarded reasoning chunk (`streamFrom`).
|
|
642
|
+
function commitsStream(chunk) {
|
|
643
|
+
return chunk.type === "done" || (chunk.type === "delta" && chunk.token.length > 0);
|
|
644
|
+
}
|
|
464
645
|
function admissionBudget(provider, bounds, remainingMs) {
|
|
465
646
|
return remainingMs ?? bounds?.budgetMs ?? provider.timeoutMs;
|
|
466
647
|
}
|
|
@@ -576,6 +757,9 @@ function toolSchemaRepairMessage(error) {
|
|
|
576
757
|
const repair = error.repair;
|
|
577
758
|
if (repair === undefined)
|
|
578
759
|
return undefined;
|
|
760
|
+
if (repair.transport === "assistant-text") {
|
|
761
|
+
return `${TOOL_SCHEMA_REPAIR_PREFIX} The previous answer serialized a tool invocation as assistant text, which executes no tool. Call offered tool ${repair.offeredAlias} through native function tool_calls with JSON arguments matching its advertised schema. Do not write model transport markers or a tool invocation in answer text.`;
|
|
762
|
+
}
|
|
579
763
|
return `${TOOL_SCHEMA_REPAIR_PREFIX} Retry tool call ${repair.toolCallId} for offered tool ${repair.offeredAlias} with arguments that match its advertised schema exactly.${schemaMismatchGuidance(repair)}`;
|
|
580
764
|
}
|
|
581
765
|
function repairedRequest(original, error) {
|
|
@@ -620,6 +804,37 @@ function streamUsageIfSupplied(usage) {
|
|
|
620
804
|
}
|
|
621
805
|
return { promptTokens: usage.promptTokens, completionTokens: usage.completionTokens };
|
|
622
806
|
}
|
|
807
|
+
function reasoningDisposition(response, forwards) {
|
|
808
|
+
if (!carriedReasoning(response))
|
|
809
|
+
return "none";
|
|
810
|
+
return forwards ? "forwarded" : "discarded";
|
|
811
|
+
}
|
|
812
|
+
// The body-free reasoning share a completion line records (#3878).
|
|
813
|
+
function reasoningCompletion(response, forwards) {
|
|
814
|
+
const { reasoningBytes, reasoningTokens } = response.usage;
|
|
815
|
+
return {
|
|
816
|
+
reasoningBytes: reasoningBytes ?? 0,
|
|
817
|
+
...(reasoningTokens === undefined ? {} : { reasoningTokens }),
|
|
818
|
+
reasoningDisposition: reasoningDisposition(response, forwards),
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
// #3878: an answer handed to a caller that does not display reasoning loses the reasoning text and
|
|
822
|
+
// keeps only its counts on `usage`.
|
|
823
|
+
function withReasoningPolicy(response, forwards) {
|
|
824
|
+
if (forwards || response.reasoning === undefined)
|
|
825
|
+
return response;
|
|
826
|
+
const { reasoning: _discarded, ...answer } = response;
|
|
827
|
+
return answer;
|
|
828
|
+
}
|
|
829
|
+
// Reasoning chunks of a caller that does not display reasoning are dropped where the provider's
|
|
830
|
+
// stream is read, below the gateway's commit point: a discarded thought is never a delivered chunk,
|
|
831
|
+
// so it neither starts the caller's answer nor ends the startup retries.
|
|
832
|
+
async function* withoutReasoningChunks(stream) {
|
|
833
|
+
for await (const chunk of stream) {
|
|
834
|
+
if (chunk.type !== "reasoning")
|
|
835
|
+
yield chunk;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
623
838
|
export class Gateway {
|
|
624
839
|
config;
|
|
625
840
|
spendBudget;
|
|
@@ -688,6 +903,20 @@ export class Gateway {
|
|
|
688
903
|
: { correlationId: this.configurationCorrelationId }),
|
|
689
904
|
}, { providerCount: this.config.providers.length, providerConfigDigest }));
|
|
690
905
|
}
|
|
906
|
+
// What the retry loop labels its lines with, and what the call's announcer labels the failure
|
|
907
|
+
// line of an observer that throws with (#3873 review).
|
|
908
|
+
retryLabels(route, ids) {
|
|
909
|
+
return {
|
|
910
|
+
sink: this.log,
|
|
911
|
+
modelId: route.provider.modelId,
|
|
912
|
+
correlationId: ids.correlationId,
|
|
913
|
+
};
|
|
914
|
+
}
|
|
915
|
+
// The labels, and the call's own ear on the loop: the call's announcer (#3873 review), which
|
|
916
|
+
// exists only for a request that set a `retryObserver` — the coding sidecar route alone.
|
|
917
|
+
retryLogContext(route, ids, announcer) {
|
|
918
|
+
return { ...this.retryLabels(route, ids), announcer };
|
|
919
|
+
}
|
|
691
920
|
async chat(request) {
|
|
692
921
|
const route = this.routeForCall(request);
|
|
693
922
|
request = this.prepareRequest(request, route.capability);
|
|
@@ -702,44 +931,76 @@ export class Gateway {
|
|
|
702
931
|
originalRequest: request,
|
|
703
932
|
promptAdmission: this.promptAdmission(route, ids),
|
|
704
933
|
correlationId: ids.correlationId,
|
|
705
|
-
|
|
934
|
+
announcer: callAnnouncer(request, this.retryLabels(route, ids)),
|
|
935
|
+
state: { request, attemptNumber: 0, discarded: emptyDiscardedUsage() },
|
|
706
936
|
};
|
|
707
|
-
this.logCallStarted(ids, route, false, request
|
|
937
|
+
this.logCallStarted(ids, route, false, request, readsOverStream(route, adapter));
|
|
708
938
|
let result;
|
|
709
939
|
try {
|
|
710
|
-
result = await executeWithRetry(this.invokeBufferedAttempt.bind(this, attempt),
|
|
940
|
+
result = await executeWithRetry(this.invokeBufferedAttempt.bind(this, attempt), callRetryConfig(route.provider, this.outageWindowMs(request), 0, request.answerRepair), this.clock, request.cancellationSignal, this.random, this.retryLogContext(route, ids, attempt.announcer));
|
|
711
941
|
}
|
|
712
942
|
catch (error) {
|
|
943
|
+
attachOutputRepair(error, attempt.state);
|
|
713
944
|
this.settleFailedCall(ids, route, elapsed(), error);
|
|
714
945
|
throw error;
|
|
715
946
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
usage: {
|
|
720
|
-
...result.usage,
|
|
721
|
-
requestId,
|
|
722
|
-
latencyMs: Math.max(1, this.clock.now() - start),
|
|
723
|
-
costClass: route.capability.costClass,
|
|
724
|
-
},
|
|
725
|
-
};
|
|
947
|
+
const forwardsReasoning = this.forwardsReasoning(request);
|
|
948
|
+
this.logCallCompleted(ids, route, result, elapsed(), forwardsReasoning);
|
|
949
|
+
return withDiscardedUsage(recoveredResponse(this.enrich(withReasoningPolicy(result, forwardsReasoning), requestId, start, route), attempt.state), attempt.state.discarded);
|
|
726
950
|
}
|
|
727
|
-
async invokeBufferedAttempt(attempt, attemptTimeoutMs, remainingBudgetMs, previousError) {
|
|
951
|
+
async invokeBufferedAttempt(attempt, attemptTimeoutMs, remainingBudgetMs, previousError, admissionBudgetMs) {
|
|
728
952
|
attempt.state.attemptNumber += 1;
|
|
953
|
+
tallyDiscardedAttempt(attempt.state.discarded, previousError);
|
|
954
|
+
this.prepareBufferedAttempt(attempt, previousError);
|
|
729
955
|
const provider = {
|
|
730
956
|
...attempt.route.provider,
|
|
731
957
|
...(attemptTimeoutMs === undefined ? {} : { timeoutMs: attemptTimeoutMs }),
|
|
732
958
|
};
|
|
733
|
-
|
|
734
|
-
|
|
959
|
+
return this.invoke(attempt, provider, streamedReadBounds(attempt, remainingBudgetMs), remainingBudgetMs, previousError, admissionBudgetMs);
|
|
960
|
+
}
|
|
961
|
+
// The request of the attempt the retry loop just scheduled, decided from the failure it follows
|
|
962
|
+
// (#3873 review): the one steered repair the loop granted (F17, F23) in place of any pending
|
|
963
|
+
// schema correction; a schema correction after a catalog rejection that carries a repair; or,
|
|
964
|
+
// after an ordinary provider failure, the request the failed attempt sent. Deciding it here, at
|
|
965
|
+
// the start of an attempt the loop actually runs, keeps the corrections on the loop's own attempt
|
|
966
|
+
// count: a correction is never prepared for an attempt that will not run, and every attempt that
|
|
967
|
+
// runs after a rejection carries the correction for THAT rejection.
|
|
968
|
+
prepareBufferedAttempt(attempt, previousError) {
|
|
969
|
+
attempt.state.repair = undefined;
|
|
970
|
+
const granted = grantedRepair(attempt.originalRequest, previousError);
|
|
971
|
+
if (granted !== undefined) {
|
|
972
|
+
attempt.state.request = steeredRepairRequest(attempt.originalRequest, granted.reason);
|
|
973
|
+
attempt.state.steered = granted;
|
|
974
|
+
return;
|
|
735
975
|
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
976
|
+
if (previousError instanceof GatewayToolCatalogError && previousError.repair !== undefined) {
|
|
977
|
+
attempt.state.repair = previousError.repair;
|
|
978
|
+
attempt.state.request = this.requestAfterToolSchemaRejection(attempt.originalRequest, attempt.state.request, attempt.route.capability, previousError);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
// The streamed counterpart of `prepareBufferedAttempt`, on the call's own attempt state, which
|
|
982
|
+
// spans every loop the stream resumes.
|
|
983
|
+
prepareStreamAttempt(state, previousError) {
|
|
984
|
+
const { attempts } = state;
|
|
985
|
+
attempts.count += 1;
|
|
986
|
+
attempts.schemaRepair = undefined;
|
|
987
|
+
tallyDiscardedAttempt(attempts.discarded, previousError);
|
|
988
|
+
const granted = grantedRepair(state.prepared, previousError);
|
|
989
|
+
if (granted !== undefined) {
|
|
990
|
+
state.outputRepair.steered = granted;
|
|
991
|
+
attempts.request = steeredRepairRequest(state.prepared, granted.reason);
|
|
992
|
+
}
|
|
993
|
+
else if (previousError instanceof GatewayToolCatalogError &&
|
|
994
|
+
previousError.repair !== undefined) {
|
|
995
|
+
attempts.schemaRepair = previousError.repair;
|
|
996
|
+
attempts.request = this.requestAfterToolSchemaRejection(state.prepared, attempts.request, state.route.capability, previousError);
|
|
742
997
|
}
|
|
998
|
+
// A call forwards at most two reasoning passages: the first attempt that delivers reasoning and
|
|
999
|
+
// the one steered repair. Any other attempt after forwarded reasoning — a provider retry or a
|
|
1000
|
+
// schema correction — streams its reasoning undelivered, so a retried outage never repeats a
|
|
1001
|
+
// passage and the turn's reasoning stays within the sidecar's bound of two passages.
|
|
1002
|
+
const forwardsPassage = !attempts.reasoningDelivered || granted !== undefined;
|
|
1003
|
+
return forwardsPassage ? attempts.request : withoutReasoningDelivery(attempts.request);
|
|
743
1004
|
}
|
|
744
1005
|
requestAfterToolSchemaRejection(original, current, capability, error) {
|
|
745
1006
|
const candidate = repairedRequest(original, error);
|
|
@@ -748,13 +1009,18 @@ export class Gateway {
|
|
|
748
1009
|
return this.prepareRequest(candidate, capability);
|
|
749
1010
|
}
|
|
750
1011
|
logAttemptRepair(attempt, state) {
|
|
751
|
-
|
|
1012
|
+
this.logRequestRepair(attempt.route.capability, attempt.correlationId, attempt.state.repair, attempt.state.request, state);
|
|
1013
|
+
}
|
|
1014
|
+
// `gateway.tool-catalog.repair` for the attempt that carries a schema correction, buffered or
|
|
1015
|
+
// streamed: `scheduled` once the corrected prompt was admitted, `denied` when it no longer fits
|
|
1016
|
+
// the model's window. Nothing for an attempt without a correction.
|
|
1017
|
+
logRequestRepair(capability, correlationId, repair, request, state) {
|
|
1018
|
+
if (repair === undefined)
|
|
752
1019
|
return;
|
|
753
|
-
const
|
|
754
|
-
const profile = deriveContextProfileFromCapability(attempt.route.capability);
|
|
1020
|
+
const profile = deriveContextProfileFromCapability(capability);
|
|
755
1021
|
const maxOutputTokens = request.maxOutputTokens ?? profile.reservedOutputTokens;
|
|
756
|
-
const tools = createGatewayToolCatalogBridge(request, () => this.clock.now(), withCorrelationId(this.log,
|
|
757
|
-
this.logToolSchemaRepair(
|
|
1022
|
+
const tools = createGatewayToolCatalogBridge(request, () => this.clock.now(), withCorrelationId(this.log, correlationId), false).tools;
|
|
1023
|
+
this.logToolSchemaRepair(correlationId, repair, state, {
|
|
758
1024
|
promptTokens: countGatewayPromptTokens({ ...request, tools }, profile.tokenAccounting, {
|
|
759
1025
|
contextWindow: profile.maxInputTokens,
|
|
760
1026
|
}),
|
|
@@ -774,6 +1040,7 @@ export class Gateway {
|
|
|
774
1040
|
reason: state === "denied" ? "context-window-exceeded" : "invalid-shape",
|
|
775
1041
|
toolCallId: loggedToolCallId(repair.toolCallId),
|
|
776
1042
|
offeredAlias: repair.offeredAlias,
|
|
1043
|
+
...(repair.transport === undefined ? {} : { transport: repair.transport }),
|
|
777
1044
|
...(repair.shape === undefined
|
|
778
1045
|
? {}
|
|
779
1046
|
: {
|
|
@@ -787,10 +1054,13 @@ export class Gateway {
|
|
|
787
1054
|
effectStarted: false,
|
|
788
1055
|
}));
|
|
789
1056
|
}
|
|
790
|
-
// Streaming counterpart of chat(). Routes identically and guards with the circuit
|
|
791
|
-
//
|
|
792
|
-
//
|
|
793
|
-
//
|
|
1057
|
+
// Streaming counterpart of chat(). Routes identically and guards with the circuit breaker. A
|
|
1058
|
+
// failure before the first delivered answer delta — at startup, or after nothing but forwarded
|
|
1059
|
+
// reasoning (#3873 review) — goes through the same retry loop as a buffered attempt: the steered
|
|
1060
|
+
// repair the call asked for, a schema correction, a provider retry under the call's policy. Once
|
|
1061
|
+
// answer text or the terminal answer was delivered, a retry would replay it, so the failure
|
|
1062
|
+
// surfaces at once. An adapter without a streaming variant falls back to a single delta+done
|
|
1063
|
+
// synthesised from its buffered call().
|
|
794
1064
|
async *chatStream(request) {
|
|
795
1065
|
const state = await this.prepareStream(request);
|
|
796
1066
|
const { route, ids, start, elapsed, admission } = state;
|
|
@@ -818,6 +1088,7 @@ export class Gateway {
|
|
|
818
1088
|
}
|
|
819
1089
|
catch (error) {
|
|
820
1090
|
settled = true;
|
|
1091
|
+
attachOutputRepair(error, state.outputRepair);
|
|
821
1092
|
this.failStream(ids, route, chunkCount, elapsed(), error);
|
|
822
1093
|
}
|
|
823
1094
|
finally {
|
|
@@ -830,15 +1101,36 @@ export class Gateway {
|
|
|
830
1101
|
this.logStreamAbandoned(ids, route, chunkCount, elapsed());
|
|
831
1102
|
}
|
|
832
1103
|
}
|
|
1104
|
+
const forwardsReasoning = this.forwardsReasoning(state.prepared);
|
|
833
1105
|
// Outside the try on purpose: a sink that throws here must not be caught above and reported as
|
|
834
1106
|
// a mid-stream provider failure — which would also trip the circuit breaker on a logging fault.
|
|
835
|
-
this.logStreamCompleted(ids, route, chunkCount, elapsed(),
|
|
1107
|
+
this.logStreamCompleted(ids, route, chunkCount, elapsed(), {
|
|
1108
|
+
firstTokenMs,
|
|
1109
|
+
usage: streamUsageIfSupplied(terminalResponse?.usage),
|
|
1110
|
+
reasoning: terminalResponse === undefined
|
|
1111
|
+
? undefined
|
|
1112
|
+
: reasoningCompletion(terminalResponse, forwardsReasoning),
|
|
1113
|
+
});
|
|
836
1114
|
// Production consumers stop at done without advancing or closing the iterator again.
|
|
837
1115
|
// Close the provider, settle spend/circuit state and emit the outcome before handing it off.
|
|
838
1116
|
if (terminalResponse !== undefined) {
|
|
839
|
-
yield this.
|
|
1117
|
+
yield this.terminalStreamAnswer(state, terminalResponse, forwardsReasoning, start);
|
|
840
1118
|
}
|
|
841
1119
|
}
|
|
1120
|
+
// The `done` chunk a settled stream hands its caller: the reasoning policy applied, the steered
|
|
1121
|
+
// repair that recovered it and the attempts it discarded marked, the call's ids and timing added.
|
|
1122
|
+
terminalStreamAnswer(state, response, forwardsReasoning, start) {
|
|
1123
|
+
return this.enrichDone(withDiscardedUsage(recoveredResponse(withReasoningPolicy(response, forwardsReasoning), state.outputRepair), state.attempts.discarded), state.ids.requestId, start, state.route);
|
|
1124
|
+
}
|
|
1125
|
+
// #3878: only a call that asks for reasoning delivery (`reasoningDelivery: "forward"`, set by the
|
|
1126
|
+
// coding sidecar route alone) forwards the model's reasoning, so the Coding Workbench can show it,
|
|
1127
|
+
// and only while the operator has not switched `codingReasoningDisplay` off. Every other surface
|
|
1128
|
+
// keeps today's answer: the reasoning is parsed and discarded — including a surface that borrows
|
|
1129
|
+
// the coding-workbench latency profile for its timeout floors, which selects timeouts only (the
|
|
1130
|
+
// commit draft received the reasoning with it until #3873, F23).
|
|
1131
|
+
forwardsReasoning(request) {
|
|
1132
|
+
return request.reasoningDelivery === "forward" && this.config.codingReasoningDisplay !== "off";
|
|
1133
|
+
}
|
|
842
1134
|
async prepareStream(request) {
|
|
843
1135
|
const route = this.routeForCall(request);
|
|
844
1136
|
const prepared = this.prepareRequest(request, route.capability);
|
|
@@ -846,8 +1138,14 @@ export class Gateway {
|
|
|
846
1138
|
const start = this.clock.now();
|
|
847
1139
|
const elapsed = logTimer();
|
|
848
1140
|
const adapter = this.adapterFor(ids.requestId, route, ids.correlationId);
|
|
849
|
-
this.
|
|
850
|
-
const
|
|
1141
|
+
const outageWindowMs = this.outageWindowMs(prepared);
|
|
1142
|
+
const announcer = callAnnouncer(prepared, this.retryLabels(route, ids));
|
|
1143
|
+
this.logCallStarted(ids, route, true, prepared, adapter.callStream !== undefined);
|
|
1144
|
+
// The admission before the first attempt waits under the same window clip as the admission
|
|
1145
|
+
// of every retry (#3873): an open breaker cannot hold a streamed call past its outage window,
|
|
1146
|
+
// and the window, not the stream budget, is what bounds that wait (#3873 review).
|
|
1147
|
+
const admissionBudgetMs = admissionBudgetFor(callRetryConfig(route.provider, outageWindowMs), streamedCallBudgetMs(route.provider, outageWindowMs), () => this.clock.now() - start);
|
|
1148
|
+
const { admission } = await this.initialStreamAdmission(route, prepared, ids, elapsed, admissionBudgetMs, announcer);
|
|
851
1149
|
return {
|
|
852
1150
|
route,
|
|
853
1151
|
prepared,
|
|
@@ -857,15 +1155,28 @@ export class Gateway {
|
|
|
857
1155
|
adapter,
|
|
858
1156
|
admission,
|
|
859
1157
|
promptAdmission: this.promptAdmission(route, ids),
|
|
1158
|
+
outageWindowMs,
|
|
1159
|
+
outputRepair: {},
|
|
1160
|
+
attempts: {
|
|
1161
|
+
count: 0,
|
|
1162
|
+
request: prepared,
|
|
1163
|
+
reasoningDelivered: false,
|
|
1164
|
+
discarded: emptyDiscardedUsage(),
|
|
1165
|
+
},
|
|
1166
|
+
announcer,
|
|
860
1167
|
};
|
|
861
1168
|
}
|
|
862
|
-
|
|
1169
|
+
// A first admission that waits is announced to the call's observer like every other wait; the
|
|
1170
|
+
// loop that follows an admitted call settles it. No loop follows a refused one, so the call
|
|
1171
|
+
// settles here: refused by its window, or cancelled while it waited.
|
|
1172
|
+
async initialStreamAdmission(route, request, ids, elapsed, admissionBudgetMs, announcer) {
|
|
863
1173
|
try {
|
|
864
|
-
return await this.providerAdmission(route.provider, request, ids.correlationId,
|
|
1174
|
+
return await this.providerAdmission(route.provider, request, ids.correlationId, admissionBudgetMs, undefined, announcer);
|
|
865
1175
|
}
|
|
866
1176
|
catch (error) {
|
|
867
1177
|
attachGatewayRequestId(error, ids.requestId);
|
|
868
1178
|
this.logStreamFailed(ids, route, 0, elapsed(), error);
|
|
1179
|
+
announcer?.settled("failed");
|
|
869
1180
|
throw error;
|
|
870
1181
|
}
|
|
871
1182
|
}
|
|
@@ -904,10 +1215,12 @@ export class Gateway {
|
|
|
904
1215
|
// outcome is a wedge, not a slow provider. `timeoutMs` reports the bound THIS call's transport
|
|
905
1216
|
// actually applies (PR #3602 review) — the silence floor for a call that reads incrementally
|
|
906
1217
|
// (`upstreamStreaming`), the larger buffered floor for a whole-body read or `chatStream()`'s
|
|
907
|
-
// degraded fallback, never a value the transport itself does not honour.
|
|
908
|
-
|
|
1218
|
+
// degraded fallback, never a value the transport itself does not honour. `requestBudgetMs` is the
|
|
1219
|
+
// budget the buffered call really runs under, the outage window's extension included (#3873).
|
|
1220
|
+
logCallStarted(ids, route, streaming, request, upstreamStreaming = false) {
|
|
909
1221
|
if (!logLevelEnabled(this.log, "info"))
|
|
910
1222
|
return;
|
|
1223
|
+
const { reasoningEffort } = request;
|
|
911
1224
|
const endpoint = logEndpointHost(route.provider.baseUrl);
|
|
912
1225
|
const endpointDigest = endpoint === undefined ? undefined : sha256Hex(endpoint);
|
|
913
1226
|
const commonFields = {
|
|
@@ -930,7 +1243,7 @@ export class Gateway {
|
|
|
930
1243
|
}
|
|
931
1244
|
this.log.write(activityLogEvent(GATEWAY_CHAT_STARTED_OPERATION, { level: "info", correlationId: ids.correlationId }, {
|
|
932
1245
|
...commonFields,
|
|
933
|
-
requestBudgetMs:
|
|
1246
|
+
requestBudgetMs: bufferedCallBudgetMs(route.provider, this.outageWindowMs(request)),
|
|
934
1247
|
upstreamStreaming,
|
|
935
1248
|
streaming: false,
|
|
936
1249
|
}));
|
|
@@ -948,14 +1261,15 @@ export class Gateway {
|
|
|
948
1261
|
outputExhausted: error instanceof ProviderOutputExhaustedError,
|
|
949
1262
|
}));
|
|
950
1263
|
}
|
|
951
|
-
logStreamCompleted(ids, route, chunkCount, durationMs,
|
|
1264
|
+
logStreamCompleted(ids, route, chunkCount, durationMs, terminal) {
|
|
952
1265
|
this.log.write(activityLogEvent(GATEWAY_STREAM_COMPLETED_OPERATION, { level: "info", correlationId: ids.correlationId, durationMs }, {
|
|
953
1266
|
...callIdFields(ids),
|
|
954
1267
|
modelId: logModelId(route.provider.modelId),
|
|
955
1268
|
costClass: route.capability.costClass,
|
|
956
1269
|
chunkCount,
|
|
957
|
-
...(firstTokenMs === undefined ? {} : { firstTokenMs }),
|
|
958
|
-
...usage,
|
|
1270
|
+
...(terminal.firstTokenMs === undefined ? {} : { firstTokenMs: terminal.firstTokenMs }),
|
|
1271
|
+
...terminal.usage,
|
|
1272
|
+
...terminal.reasoning,
|
|
959
1273
|
}));
|
|
960
1274
|
}
|
|
961
1275
|
// The third stream outcome: the provider never finished because nobody was listening any more.
|
|
@@ -983,8 +1297,9 @@ export class Gateway {
|
|
|
983
1297
|
modelId: logModelId(route.provider.modelId),
|
|
984
1298
|
streaming: true,
|
|
985
1299
|
chunkCount,
|
|
986
|
-
//
|
|
987
|
-
//
|
|
1300
|
+
// The call's terminal failure: `chunkCount` is how far it got, and a failure after an
|
|
1301
|
+
// answer delta could not be retried (a failure after nothing but reasoning was, inside
|
|
1302
|
+
// the call's retry loop).
|
|
988
1303
|
afterFirstChunk: chunkCount > 0,
|
|
989
1304
|
outputExhausted: error instanceof ProviderOutputExhaustedError,
|
|
990
1305
|
}));
|
|
@@ -993,7 +1308,7 @@ export class Gateway {
|
|
|
993
1308
|
// (`gateway.stream.completed` / `.abandoned` / `.failed`). The `streaming: false` here is a
|
|
994
1309
|
// constant of THIS op rather than a parameter — a caller able to pass `true` would emit
|
|
995
1310
|
// `gateway.chat.completed` for a stream and break the op naming every reader filters on.
|
|
996
|
-
logCallCompleted(ids, route, result, durationMs) {
|
|
1311
|
+
logCallCompleted(ids, route, result, durationMs, forwardsReasoning) {
|
|
997
1312
|
this.log.write(activityLogEvent(GATEWAY_CHAT_COMPLETED_OPERATION, { level: "info", correlationId: ids.correlationId, durationMs }, {
|
|
998
1313
|
...callIdFields(ids),
|
|
999
1314
|
modelId: logModelId(route.provider.modelId),
|
|
@@ -1003,41 +1318,79 @@ export class Gateway {
|
|
|
1003
1318
|
promptTokens: result.usage.promptTokens,
|
|
1004
1319
|
completionTokens: result.usage.completionTokens,
|
|
1005
1320
|
streaming: false,
|
|
1321
|
+
...reasoningCompletion(result, forwardsReasoning),
|
|
1006
1322
|
}));
|
|
1007
1323
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1324
|
+
// The attempts of a streamed call: its startup retries, or — resumed after an attempt that failed
|
|
1325
|
+
// while it had delivered nothing but reasoning (#3873 F17, F23, option iii; #3873 review) — the
|
|
1326
|
+
// rest of the same loop: the one steered repair, a schema correction, or a provider retry under
|
|
1327
|
+
// the call's policy, all on the call's one attempt count and its one repair.
|
|
1328
|
+
async openRetriedStream(state, failedAttempt) {
|
|
1329
|
+
const { prepared: request, route, ids, admission: initialAdmission } = state;
|
|
1330
|
+
const budget = streamStartupBudget(state, this.clock.now());
|
|
1011
1331
|
let admission = initialAdmission;
|
|
1012
|
-
|
|
1013
|
-
|
|
1332
|
+
const resume = streamResume(state, failedAttempt);
|
|
1333
|
+
// Under a resumed loop every attempt follows the failed one, so each needs its own admission.
|
|
1334
|
+
let attempt = resume === undefined ? 0 : 1;
|
|
1335
|
+
return executeWithRetry(async (_attemptMs, remainingMs, previousError, admissionBudgetMs) => {
|
|
1336
|
+
const current = this.prepareStreamAttempt(state, previousError);
|
|
1014
1337
|
if (attempt++ > 0) {
|
|
1015
|
-
const allowed = await this.
|
|
1338
|
+
const allowed = await this.admitAttempt(route.provider, current, ids.correlationId, remainingMs ?? budget.remainingMs, previousError, admissionBudgetMs, state.announcer);
|
|
1016
1339
|
admission = allowed.admission;
|
|
1017
1340
|
remainingMs = allowed.remainingMs;
|
|
1018
1341
|
}
|
|
1019
|
-
return this.openStreamAttempt(
|
|
1342
|
+
return this.openStreamAttempt(state, current, remainingMs, admission);
|
|
1020
1343
|
},
|
|
1021
|
-
// A catalog rejection
|
|
1022
|
-
streamStartupRetryConfig(state, () => admission,
|
|
1344
|
+
// A catalog rejection is retried only with its schema correction, never replayed as it was.
|
|
1345
|
+
streamStartupRetryConfig(state, () => admission, budget), this.clock, request.cancellationSignal, this.random, this.retryLogContext(route, ids, state.announcer), resume);
|
|
1023
1346
|
}
|
|
1024
|
-
|
|
1025
|
-
|
|
1347
|
+
// A delivered answer delta or `done` commits the stream: nothing may be replayed after it, so a
|
|
1348
|
+
// later failure surfaces at once. Forwarded reasoning does not commit it (owner decision
|
|
1349
|
+
// 2026-10-06, #3873 F17 option iii): while a stream has delivered nothing but reasoning, its
|
|
1350
|
+
// failure goes back to the call's retry loop, which decides it exactly like a failure before the
|
|
1351
|
+
// first chunk (#3873 review) — the one steered repair of an exhausted or empty answer, a schema
|
|
1352
|
+
// correction after a catalog rejection, or a provider retry under the call's policy, the outage
|
|
1353
|
+
// window included. The caller then sees a further reasoning passage; no answer text or tool call
|
|
1354
|
+
// is ever duplicated. Each resumed passage is one more delegation level, opened only after the
|
|
1355
|
+
// previous level closed its stream; the call's retry budget bounds how many there are.
|
|
1356
|
+
async *streamFrom(state, failedAttempt) {
|
|
1357
|
+
const opened = await this.openRetriedStream(state, failedAttempt);
|
|
1358
|
+
let resumable;
|
|
1026
1359
|
try {
|
|
1027
|
-
yield opened
|
|
1028
|
-
yield* opened.iterator;
|
|
1360
|
+
resumable = yield* this.deliverUntilCommitted(state, opened);
|
|
1029
1361
|
}
|
|
1030
1362
|
finally {
|
|
1031
1363
|
await opened.iterator.return(undefined);
|
|
1032
1364
|
}
|
|
1365
|
+
if (resumable !== undefined)
|
|
1366
|
+
yield* this.streamFrom(state, resumable);
|
|
1367
|
+
}
|
|
1368
|
+
// Delivers an opened stream. Returns the failure of a stream that delivered nothing but reasoning
|
|
1369
|
+
// when the call's retry loop can still act on it, and rethrows every other failure.
|
|
1370
|
+
async *deliverUntilCommitted(state, opened) {
|
|
1371
|
+
let committed = commitsStream(opened.first);
|
|
1372
|
+
try {
|
|
1373
|
+
noteDelivered(state, opened.first);
|
|
1374
|
+
yield opened.first;
|
|
1375
|
+
for await (const chunk of opened.iterator) {
|
|
1376
|
+
committed ||= commitsStream(chunk);
|
|
1377
|
+
noteDelivered(state, chunk);
|
|
1378
|
+
yield chunk;
|
|
1379
|
+
}
|
|
1380
|
+
return undefined;
|
|
1381
|
+
}
|
|
1382
|
+
catch (error) {
|
|
1383
|
+
if (committed || !resumableAfterReasoning(state, error))
|
|
1384
|
+
throw error;
|
|
1385
|
+
return error;
|
|
1386
|
+
}
|
|
1033
1387
|
}
|
|
1034
|
-
|
|
1035
|
-
|
|
1388
|
+
// One streamed attempt of the call (`state`: its route, ids, adapter, prompt admission and the
|
|
1389
|
+
// schema correction the attempt carries) for `request`, under what is left of its budget.
|
|
1390
|
+
async openStreamAttempt(state, request, remainingMs, admission) {
|
|
1391
|
+
const bounds = chatStreamBounds(state.route.provider);
|
|
1036
1392
|
const budgetMs = Math.min(bounds.budgetMs, remainingMs ?? bounds.budgetMs);
|
|
1037
|
-
const iterator = this.reservedStreamAttempt(
|
|
1038
|
-
budgetMs,
|
|
1039
|
-
silenceMs: Math.min(bounds.silenceMs, budgetMs),
|
|
1040
|
-
}, admission, promptAdmission);
|
|
1393
|
+
const iterator = this.reservedStreamAttempt(state, request, { budgetMs, silenceMs: Math.min(bounds.silenceMs, budgetMs) }, admission);
|
|
1041
1394
|
try {
|
|
1042
1395
|
let first = await iterator.next();
|
|
1043
1396
|
while (!first.done && first.value.type === "delta" && first.value.token.length === 0) {
|
|
@@ -1052,21 +1405,22 @@ export class Gateway {
|
|
|
1052
1405
|
throw error;
|
|
1053
1406
|
}
|
|
1054
1407
|
}
|
|
1055
|
-
async *reservedStreamAttempt(
|
|
1408
|
+
async *reservedStreamAttempt(state, request, bounds, admission) {
|
|
1409
|
+
const { adapter, route, ids } = state;
|
|
1056
1410
|
let reservation;
|
|
1411
|
+
let callerReservation;
|
|
1412
|
+
let dispatchObserved;
|
|
1057
1413
|
let admitted = false;
|
|
1058
1414
|
let usage;
|
|
1059
1415
|
let received = false;
|
|
1060
1416
|
let terminal;
|
|
1417
|
+
const logRepair = this.streamRepairLogger(state, request);
|
|
1061
1418
|
try {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
: bounds.budgetMs;
|
|
1065
|
-
const remaining = await promptAdmission.admit(request, attemptBudget);
|
|
1066
|
-
bounds = { budgetMs: remaining, silenceMs: Math.min(bounds.silenceMs, remaining) };
|
|
1067
|
-
reservation = this.spendBudget?.reserve(route.capability, request, ids.correlationId);
|
|
1419
|
+
({ request, bounds, callerReservation, reservation, dispatchObserved } =
|
|
1420
|
+
await this.prepareStreamDispatch(state, request, bounds));
|
|
1068
1421
|
admitted = true;
|
|
1069
|
-
|
|
1422
|
+
const stream = this.readProviderStream(adapter, request, route.provider, ids, bounds);
|
|
1423
|
+
for await (const chunk of stream) {
|
|
1070
1424
|
if (chunk.type === "done") {
|
|
1071
1425
|
usage = chunk.response.usage;
|
|
1072
1426
|
received = true;
|
|
@@ -1082,21 +1436,40 @@ export class Gateway {
|
|
|
1082
1436
|
admission.settle("success");
|
|
1083
1437
|
}
|
|
1084
1438
|
catch (error) {
|
|
1439
|
+
if (error instanceof ContextOverflowError || error instanceof CallerAttemptAdmissionError)
|
|
1440
|
+
logRepair("denied");
|
|
1085
1441
|
usage = measuredCatalogFailureUsage(error, route.capability, ids.correlationId);
|
|
1086
|
-
|
|
1442
|
+
settleFailedCallerAttempt(callerReservation, error, admitted);
|
|
1443
|
+
recordProviderFailure(admission, error, observedProviderDispatch(dispatchObserved, admitted));
|
|
1087
1444
|
throw error;
|
|
1088
1445
|
}
|
|
1089
1446
|
finally {
|
|
1090
1447
|
// Closing an iterator early does not enter catch and is not proof of provider recovery.
|
|
1091
1448
|
admission.settle("non-provider-fault");
|
|
1092
1449
|
reservation?.settle(usage);
|
|
1450
|
+
settleCallerAttempt(callerReservation, usage, admitted);
|
|
1093
1451
|
}
|
|
1094
1452
|
if (terminal !== undefined)
|
|
1095
1453
|
yield terminal;
|
|
1096
1454
|
}
|
|
1455
|
+
async prepareStreamDispatch(state, request, bounds) {
|
|
1456
|
+
const remaining = await state.promptAdmission.admit(request, streamAttemptBudgetMs(state.adapter, state.route, bounds));
|
|
1457
|
+
this.streamRepairLogger(state, request)("scheduled");
|
|
1458
|
+
return {
|
|
1459
|
+
bounds: { budgetMs: remaining, silenceMs: Math.min(bounds.silenceMs, remaining) },
|
|
1460
|
+
...this.reserveAdapterAttempt(state.adapter, request, state.route.capability, state.ids.correlationId),
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
streamRepairLogger(state, request) {
|
|
1464
|
+
return (repairState) => {
|
|
1465
|
+
this.logRequestRepair(state.route.capability, state.ids.correlationId, state.attempts.schemaRepair, request, repairState);
|
|
1466
|
+
};
|
|
1467
|
+
}
|
|
1097
1468
|
async *readProviderStream(adapter, request, provider, ids, bounds) {
|
|
1469
|
+
const forwardsReasoning = this.forwardsReasoning(request);
|
|
1098
1470
|
if (adapter.callStream !== undefined) {
|
|
1099
|
-
|
|
1471
|
+
const stream = adapter.callStream(request, provider, bounds);
|
|
1472
|
+
yield* forwardsReasoning ? stream : withoutReasoningChunks(stream);
|
|
1100
1473
|
return;
|
|
1101
1474
|
}
|
|
1102
1475
|
// Degradation: this adapter has no streaming variant, so the caller gets ONE synthetic delta
|
|
@@ -1117,6 +1490,9 @@ export class Gateway {
|
|
|
1117
1490
|
timeoutMs: Math.min(effectiveBufferedAttemptMs(provider), bounds.budgetMs),
|
|
1118
1491
|
};
|
|
1119
1492
|
const response = await adapter.call(request, bufferedProvider);
|
|
1493
|
+
if (forwardsReasoning && response.reasoning !== undefined) {
|
|
1494
|
+
yield { type: "reasoning", token: response.reasoning };
|
|
1495
|
+
}
|
|
1120
1496
|
yield { type: "delta", token: response.content };
|
|
1121
1497
|
yield { type: "done", response };
|
|
1122
1498
|
}
|
|
@@ -1143,23 +1519,21 @@ export class Gateway {
|
|
|
1143
1519
|
openedAt: null,
|
|
1144
1520
|
});
|
|
1145
1521
|
}
|
|
1146
|
-
async invoke(attempt, provider, bounds, remainingBudgetMs, previousError) {
|
|
1522
|
+
async invoke(attempt, provider, bounds, remainingBudgetMs, previousError, admissionBudgetMs) {
|
|
1147
1523
|
const { adapter, correlationId } = attempt;
|
|
1148
1524
|
const { capability } = attempt.route;
|
|
1149
|
-
|
|
1150
|
-
const { admission, remainingMs } = await this.
|
|
1525
|
+
let request = attempt.state.request;
|
|
1526
|
+
const { admission, remainingMs } = await this.admitAttempt(provider, request, correlationId, admissionBudget(provider, bounds, remainingBudgetMs), previousError, admissionBudgetMs, attempt.announcer);
|
|
1151
1527
|
provider = { ...provider, timeoutMs: Math.min(provider.timeoutMs, remainingMs) };
|
|
1152
1528
|
bounds = clippedStreamBounds(bounds, remainingMs);
|
|
1153
1529
|
let reservation;
|
|
1530
|
+
let callerReservation;
|
|
1531
|
+
let dispatchObserved;
|
|
1154
1532
|
let admitted = false;
|
|
1155
1533
|
let usage;
|
|
1156
1534
|
try {
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
if (bounds !== undefined)
|
|
1160
|
-
bounds = { budgetMs: remaining, silenceMs: Math.min(bounds.silenceMs, remaining) };
|
|
1161
|
-
this.logAttemptRepair(attempt, "scheduled");
|
|
1162
|
-
reservation = this.spendBudget?.reserve(capability, request, correlationId);
|
|
1535
|
+
({ provider, bounds, request, callerReservation, reservation, dispatchObserved } =
|
|
1536
|
+
await this.prepareBufferedDispatch(attempt, provider, bounds));
|
|
1163
1537
|
admitted = true;
|
|
1164
1538
|
const response = await readAnswer(adapter, request, provider, bounds);
|
|
1165
1539
|
usage = response.usage;
|
|
@@ -1167,27 +1541,141 @@ export class Gateway {
|
|
|
1167
1541
|
return response;
|
|
1168
1542
|
}
|
|
1169
1543
|
catch (error) {
|
|
1170
|
-
if (error instanceof ContextOverflowError)
|
|
1544
|
+
if (error instanceof ContextOverflowError || error instanceof CallerAttemptAdmissionError)
|
|
1171
1545
|
this.logAttemptRepair(attempt, "denied");
|
|
1172
1546
|
usage = measuredCatalogFailureUsage(error, capability, correlationId);
|
|
1547
|
+
settleFailedCallerAttempt(callerReservation, error, admitted);
|
|
1173
1548
|
// A client-initiated cancel is not a provider fault — skip the breaker.
|
|
1174
|
-
recordProviderFailure(admission, error, admitted);
|
|
1549
|
+
recordProviderFailure(admission, error, observedProviderDispatch(dispatchObserved, admitted));
|
|
1175
1550
|
throw error;
|
|
1176
1551
|
}
|
|
1177
1552
|
finally {
|
|
1178
1553
|
admission.settle("non-provider-fault");
|
|
1179
1554
|
reservation?.settle(usage);
|
|
1555
|
+
settleCallerAttempt(callerReservation, usage, admitted);
|
|
1180
1556
|
}
|
|
1181
1557
|
}
|
|
1182
|
-
|
|
1558
|
+
async prepareBufferedDispatch(attempt, provider, bounds) {
|
|
1559
|
+
const admitted = await this.admitBufferedPrompt(attempt, provider, bounds);
|
|
1560
|
+
this.logAttemptRepair(attempt, "scheduled");
|
|
1561
|
+
return {
|
|
1562
|
+
...admitted,
|
|
1563
|
+
...this.reserveAdapterAttempt(attempt.adapter, attempt.state.request, attempt.route.capability, attempt.correlationId),
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
async admitBufferedPrompt(attempt, provider, bounds) {
|
|
1567
|
+
const remaining = await attempt.promptAdmission.admit(attempt.state.request, bounds?.budgetMs ?? provider.timeoutMs);
|
|
1568
|
+
return {
|
|
1569
|
+
provider: { ...provider, timeoutMs: Math.min(provider.timeoutMs, remaining) },
|
|
1570
|
+
bounds: bounds === undefined
|
|
1571
|
+
? undefined
|
|
1572
|
+
: { budgetMs: remaining, silenceMs: Math.min(bounds.silenceMs, remaining) },
|
|
1573
|
+
};
|
|
1574
|
+
}
|
|
1575
|
+
callerAttemptReservation(request, capability) {
|
|
1576
|
+
const admit = request.attemptAdmission;
|
|
1577
|
+
if (admit === undefined)
|
|
1578
|
+
return undefined;
|
|
1579
|
+
const profile = deriveContextProfileFromCapability(capability);
|
|
1580
|
+
const reservation = admit({
|
|
1581
|
+
promptTokens: countGatewayPromptTokens(request, profile.tokenAccounting, {
|
|
1582
|
+
contextWindow: profile.maxInputTokens,
|
|
1583
|
+
}),
|
|
1584
|
+
maxOutputTokens: request.maxOutputTokens ?? profile.reservedOutputTokens,
|
|
1585
|
+
});
|
|
1586
|
+
if (reservation === undefined)
|
|
1587
|
+
throw new CallerAttemptAdmissionError("Caller synthesis attempt grant exhausted before dispatch");
|
|
1588
|
+
return onceCallerReservation(reservation);
|
|
1589
|
+
}
|
|
1590
|
+
reserveAdapterAttempt(adapter, request, capability, correlationId) {
|
|
1591
|
+
if (adapter.attemptAdmissionBoundary === "transport") {
|
|
1592
|
+
let dispatched = false;
|
|
1593
|
+
return {
|
|
1594
|
+
request: {
|
|
1595
|
+
...request,
|
|
1596
|
+
attemptAdmission: (input) => this.reserveTransportAttempt({
|
|
1597
|
+
...request,
|
|
1598
|
+
...(input.maxOutputTokens <= 0 ? {} : { maxOutputTokens: input.maxOutputTokens }),
|
|
1599
|
+
}, capability, correlationId, (observed) => {
|
|
1600
|
+
dispatched ||= observed;
|
|
1601
|
+
}),
|
|
1602
|
+
},
|
|
1603
|
+
callerReservation: undefined,
|
|
1604
|
+
reservation: undefined,
|
|
1605
|
+
dispatchObserved: () => dispatched,
|
|
1606
|
+
};
|
|
1607
|
+
}
|
|
1608
|
+
const callerReservation = this.callerAttemptReservation(request, capability);
|
|
1609
|
+
try {
|
|
1610
|
+
request = callerAdmittedRequest(request, callerReservation);
|
|
1611
|
+
return {
|
|
1612
|
+
request,
|
|
1613
|
+
callerReservation,
|
|
1614
|
+
reservation: this.spendBudget?.reserve(capability, request, correlationId),
|
|
1615
|
+
};
|
|
1616
|
+
}
|
|
1617
|
+
catch (error_) {
|
|
1618
|
+
settleCallerAttempt(callerReservation, undefined, false, "none");
|
|
1619
|
+
throw error_;
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
reserveTransportAttempt(request, capability, correlationId, observeDispatch) {
|
|
1623
|
+
const caller = this.callerAttemptReservation(request, capability);
|
|
1624
|
+
let spend;
|
|
1625
|
+
try {
|
|
1626
|
+
request = callerAdmittedRequest(request, caller);
|
|
1627
|
+
spend = this.spendBudget?.reserve(capability, request, correlationId);
|
|
1628
|
+
}
|
|
1629
|
+
catch (error_) {
|
|
1630
|
+
settleCallerAttempt(caller, undefined, false, "none");
|
|
1631
|
+
throw error_;
|
|
1632
|
+
}
|
|
1633
|
+
return onceCallerReservation({
|
|
1634
|
+
maxOutputTokens: request.maxOutputTokens,
|
|
1635
|
+
settle(usage, dispatched, outputState) {
|
|
1636
|
+
observeDispatch(dispatched);
|
|
1637
|
+
try {
|
|
1638
|
+
spend?.settle(completeTransportUsage(usage));
|
|
1639
|
+
}
|
|
1640
|
+
finally {
|
|
1641
|
+
settleCallerAttempt(caller, usage, dispatched, outputState);
|
|
1642
|
+
}
|
|
1643
|
+
},
|
|
1644
|
+
});
|
|
1645
|
+
}
|
|
1646
|
+
// The admission of an attempt, the first one's and a retry's, buffered or streamed: the wait is
|
|
1647
|
+
// clipped to the retry window, and the attempt keeps the call's own budget, less only the time it
|
|
1648
|
+
// actually waited (#3873). A wait that begins is announced to the call's observer (#3873 review).
|
|
1649
|
+
async admitAttempt(provider, request, correlationId, budgetMs, previousError, admissionBudgetMs, announcer) {
|
|
1650
|
+
const waitBudgetMs = Math.min(budgetMs, admissionBudgetMs ?? budgetMs);
|
|
1651
|
+
const admitted = await this.providerAdmission(provider, request, correlationId, waitBudgetMs, previousError, announcer);
|
|
1652
|
+
return {
|
|
1653
|
+
admission: admitted.admission,
|
|
1654
|
+
remainingMs: budgetMs - (waitBudgetMs - admitted.remainingMs),
|
|
1655
|
+
};
|
|
1656
|
+
}
|
|
1657
|
+
providerAdmission(provider, request, correlationId, remainingMs, previousError, announcer) {
|
|
1183
1658
|
return this.breakerFor(provider).waitForAdmission({
|
|
1184
1659
|
remainingMs,
|
|
1185
1660
|
previousError,
|
|
1186
1661
|
signal: request.cancellationSignal,
|
|
1187
1662
|
correlationId,
|
|
1188
1663
|
jitterMs: () => Math.max(1, Math.round(provider.retryBaseDelayMs * this.random())),
|
|
1664
|
+
retryPolicy: this.retryPolicy(request),
|
|
1665
|
+
announcer,
|
|
1189
1666
|
});
|
|
1190
1667
|
}
|
|
1668
|
+
// #3873: the outage window a call retries for. Only a call that carries the explicit
|
|
1669
|
+
// `outagePolicy: "outage-window"` signal — the coding sidecar route's buffered and streamed calls
|
|
1670
|
+
// — gets the configured `codingOutageWindowMs`. Every other call gets 0, the provider's attempt
|
|
1671
|
+
// count and the fail-fast breaker: the commit draft and interactive chat included, even where
|
|
1672
|
+
// they borrow the coding-workbench timeout floors (`latencyProfile`).
|
|
1673
|
+
outageWindowMs(request) {
|
|
1674
|
+
return callOutageWindowMs(this.config, request.outagePolicy);
|
|
1675
|
+
}
|
|
1676
|
+
retryPolicy(request) {
|
|
1677
|
+
return this.outageWindowMs(request) > 0 ? "outage-window" : "attempts";
|
|
1678
|
+
}
|
|
1191
1679
|
// Fail-closed routing. Each of the three refusals is a DIFFERENT operator problem — an unknown
|
|
1192
1680
|
// model id, a configured provider with no capability metadata, and a correctly configured model
|
|
1193
1681
|
// of the wrong kind — and all three surface to the caller as the same UnknownModelError, so the
|