@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
package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { EDITOR_AGENT_SCHEMA_VERSION } from "@oscharko-dev/keiko-contracts/runtime/editor-agent";
|
|
3
|
+
import { DEFAULT_SANDBOX_POLICY } from "@oscharko-dev/keiko-contracts/runtime/tools";
|
|
4
|
+
import { isCodingSafeActivityPresentationPath } from "@oscharko-dev/keiko-contracts/runtime/coding-safe-activity";
|
|
3
5
|
import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
4
|
-
import { detectWorkspaceAt,
|
|
5
|
-
import {
|
|
6
|
+
import { detectWorkspaceAt, discoverWorkspacePaths, executionControlledWorkspaceFs, isDenied, PathDeniedError, PathEscapeError, RepoSearchInvalidQueryError, StructuralExecutionStoppedError, } from "@oscharko-dev/keiko-workspace";
|
|
7
|
+
import { nodeWorkspaceFs } from "@oscharko-dev/keiko-workspace/internal/fs";
|
|
8
|
+
import { contentFreeErrorClass, emitServerDiagnostic, serverDiagnosticFromError, } from "../diagnostics-log.js";
|
|
6
9
|
import { correlationIdOrUnknown, isValidCorrelationId, UNKNOWN_CORRELATION_ID, } from "../correlation.js";
|
|
7
|
-
import {
|
|
10
|
+
import { EDIT_PREPARE_CAUSES, EDIT_PREPARE_ERROR_KINDS, EDIT_READ_REASONS, } from "./codingToolFacadePorts.js";
|
|
11
|
+
import { isExactEditorAgentChangeset, codingToolDiscoveryText, } from "./codingToolIpc.js";
|
|
12
|
+
import { changesetPayloadBytes, isReplacementChangeset, materializeReplacementChangeset, REPLACEMENT_REFUSALS, } from "./codingToolReplacementEdits.js";
|
|
13
|
+
import { SECURE_WORKSPACE_TEXT_READ_MAX_BYTES } from "./secureWorkspaceTextReadProtocol.js";
|
|
8
14
|
import { causeChain, keikoStackFrames } from "@oscharko-dev/keiko-activity-log";
|
|
9
15
|
import { processServerLogSink } from "../process-log-sink.js";
|
|
16
|
+
import { secureWorkspaceTextDigest, isSecureWorkspaceTextRelativePath, } from "./secureWorkspaceTextRead.js";
|
|
17
|
+
import { WORKSPACE_PATH_ABSENCE_VERDICTS, } from "./secureWorkspaceTextReadAbsence.js";
|
|
10
18
|
const MAX_READ_BYTES = 65_536;
|
|
11
19
|
const RAW_SINGLE_FILE_PATCH = /^:[0-7]{6} [0-7]{6} [a-f0-9]{7,64} [a-f0-9]{7,64} M ([^\r\n]+)\r?\n(@@ [\s\S]+)$/u;
|
|
12
20
|
// NO_ACTIVE_SESSION means the bounded wait for a live Workbench editor bridge
|
|
@@ -23,6 +31,10 @@ const EDITOR_SESSION_RETRY_DELAYS_MS = [250, 500, 1_000, 2_000, 3_000, 5_000];
|
|
|
23
31
|
*/
|
|
24
32
|
export function createCodingToolReadEditPorts(deps) {
|
|
25
33
|
return {
|
|
34
|
+
nativeFileIO: createGuardedNativeFileIO(deps),
|
|
35
|
+
nativeTextRead: {
|
|
36
|
+
readTextSnapshot: (request, signal, mutationGuard) => executeSnapshotRead(deps, request, signal, mutationGuard),
|
|
37
|
+
},
|
|
26
38
|
repositoryRead: {
|
|
27
39
|
execute: (request, signal, mutationGuard) => executeRead(deps, request, signal, mutationGuard),
|
|
28
40
|
},
|
|
@@ -34,35 +46,253 @@ export function createCodingToolReadEditPorts(deps) {
|
|
|
34
46
|
},
|
|
35
47
|
};
|
|
36
48
|
}
|
|
37
|
-
function
|
|
38
|
-
return
|
|
49
|
+
function createGuardedNativeFileIO(deps) {
|
|
50
|
+
return Object.freeze({
|
|
51
|
+
readBytes: (request, signal, guard) => executeNativePrimitive(deps, request, signal, guard, (io, input) => io.readBytes(input)),
|
|
52
|
+
stat: (request, signal, guard) => executeNativePrimitive(deps, request, signal, guard, (io, input) => io.stat(input)),
|
|
53
|
+
list: (request, signal, guard) => executeNativePrimitive(deps, request, signal, guard, (io, input) => io.list(input)),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
async function executeNativePrimitive(deps, request, signal, guard, invoke) {
|
|
57
|
+
const binding = safeMutationBinding(guard);
|
|
58
|
+
const captured = Object.freeze({
|
|
59
|
+
...request,
|
|
60
|
+
...(request.range === undefined ? {} : { range: Object.freeze({ ...request.range }) }),
|
|
61
|
+
});
|
|
62
|
+
try {
|
|
63
|
+
return await attemptNativePrimitive(deps, captured, signal, guard, binding, invoke);
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
return recordNativePrimitiveFailure(deps, captured, binding, "exception", error);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function attemptNativePrimitive(deps, request, signal, guard, binding, invoke) {
|
|
70
|
+
const root = discoveryWorkspace(deps)?.root;
|
|
71
|
+
const current = () => root !== undefined &&
|
|
72
|
+
binding !== undefined &&
|
|
73
|
+
hasLiveWorkspaceAccess(deps) &&
|
|
74
|
+
discoveryPostflight(deps, root, binding, signal, guard);
|
|
75
|
+
if (isDenied(request.relativePath) || !current())
|
|
76
|
+
return recordNativePrimitiveFailure(deps, request, binding, "preflight-refused");
|
|
77
|
+
const io = deps.secureWorkspaceTextRead.nativeFileIO;
|
|
78
|
+
if (io === undefined)
|
|
79
|
+
return recordNativePrimitiveFailure(deps, request, binding, "native-io-unavailable");
|
|
80
|
+
const result = await invoke(io, {
|
|
81
|
+
relativePath: request.relativePath,
|
|
82
|
+
signal,
|
|
83
|
+
isCurrent: current,
|
|
84
|
+
...(request.range === undefined ? {} : { range: request.range }),
|
|
85
|
+
});
|
|
86
|
+
if (!current()) {
|
|
87
|
+
if (result.ok && "bytes" in result)
|
|
88
|
+
result.bytes.fill(0);
|
|
89
|
+
return recordNativePrimitiveFailure(deps, request, binding, "postflight-refused");
|
|
90
|
+
}
|
|
91
|
+
if (result.ok)
|
|
92
|
+
recordSnapshotRead(deps, binding, request.relativePath, request.purpose);
|
|
93
|
+
else
|
|
94
|
+
logFailedRead(deps, { ...result, binding }, request.relativePath, request.purpose);
|
|
95
|
+
return result;
|
|
39
96
|
}
|
|
40
|
-
function
|
|
97
|
+
function recordNativePrimitiveFailure(deps, request, binding, reason, error) {
|
|
98
|
+
logFailedRead(deps, { ok: false, reason, binding, error }, request.relativePath, request.purpose);
|
|
99
|
+
return { ok: false, reason };
|
|
100
|
+
}
|
|
101
|
+
async function executeDiscover(deps, request, signal, mutationGuard) {
|
|
41
102
|
const preflight = discoveryPreflight(deps, signal, mutationGuard);
|
|
42
103
|
if (!preflight.ok)
|
|
43
104
|
return { status: "failed" };
|
|
44
105
|
const binding = preflight.binding;
|
|
106
|
+
const startedAtMs = Date.now();
|
|
107
|
+
let reason = "authority-denied";
|
|
108
|
+
let discovered;
|
|
109
|
+
let read;
|
|
110
|
+
let failure;
|
|
45
111
|
try {
|
|
46
112
|
const resolved = discoveryWorkspace(deps);
|
|
47
113
|
if (resolved === undefined)
|
|
48
114
|
return { status: "failed" };
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
maxDepth: 40,
|
|
52
|
-
maxFiles: 20_000,
|
|
53
|
-
applyGitignore: true,
|
|
54
|
-
}, resolved.fs);
|
|
55
|
-
const text = discoveredPathText(discovered.files.map(({ relativePath }) => relativePath), request.query, request.maxResults);
|
|
115
|
+
discovered = await discoverPaths(resolved, request, signal, mutationGuard);
|
|
116
|
+
read = discoveryReadResult(discovered);
|
|
56
117
|
if (!discoveryPostflight(deps, resolved.root, binding, signal, mutationGuard)) {
|
|
118
|
+
reason = isAborted(signal) ? "cancelled" : "authority-denied";
|
|
57
119
|
return { status: "failed" };
|
|
58
120
|
}
|
|
59
|
-
|
|
121
|
+
reason = "none";
|
|
122
|
+
return { status: "completed", read };
|
|
60
123
|
}
|
|
61
124
|
catch (error) {
|
|
125
|
+
failure = error;
|
|
126
|
+
reason = discoveryFailureReason(signal, error);
|
|
62
127
|
emitDiscoveryFailureDiagnostic(deps.diagnostics, binding, error);
|
|
63
|
-
return
|
|
128
|
+
return discoveryRefusal(reason);
|
|
129
|
+
}
|
|
130
|
+
finally {
|
|
131
|
+
recordDiscoverySettlement(deps, binding, reason, startedAtMs, discovered, reason === "none" ? read : undefined, failure);
|
|
64
132
|
}
|
|
65
133
|
}
|
|
134
|
+
function discoverPaths(resolved, request, signal, mutationGuard) {
|
|
135
|
+
const nowMs = mutationGuard.executionBudget?.nowMs ?? Date.now;
|
|
136
|
+
const deadlineAtMs = Math.min(nowMs() + DEFAULT_SANDBOX_POLICY.defaultTimeoutMs, mutationGuard.executionBudget?.deadlineAtMs ?? Infinity);
|
|
137
|
+
const control = { nowMs, deadlineAtMs, ...(signal === undefined ? {} : { signal }) };
|
|
138
|
+
const workspace = detectWorkspaceAt(resolved.root, executionControlledWorkspaceFs(resolved.fs ?? nodeWorkspaceFs, control), {
|
|
139
|
+
scanSourceFilesForLanguages: false,
|
|
140
|
+
});
|
|
141
|
+
return discoverWorkspacePaths(workspace, {
|
|
142
|
+
mode: request.mode ?? "keywords",
|
|
143
|
+
directory: request.directory ?? "",
|
|
144
|
+
query: request.mode === "glob" ? request.query : request.query.trim(),
|
|
145
|
+
maxResults: request.maxResults,
|
|
146
|
+
}, control, resolved.fs);
|
|
147
|
+
}
|
|
148
|
+
export const WORKSPACE_DISCOVERY_REFUSAL_CODES = Object.freeze({
|
|
149
|
+
SCOPE_DENIED: "WORKSPACE_DISCOVERY_SCOPE_DENIED",
|
|
150
|
+
INVALID_REQUEST: "WORKSPACE_DISCOVERY_INVALID_REQUEST",
|
|
151
|
+
TIMEOUT: "WORKSPACE_DISCOVERY_TIMEOUT",
|
|
152
|
+
});
|
|
153
|
+
function discoveryFailureReason(signal, error) {
|
|
154
|
+
if (isAborted(signal))
|
|
155
|
+
return "cancelled";
|
|
156
|
+
if (error instanceof StructuralExecutionStoppedError)
|
|
157
|
+
return error.reason === "timeout" ? "timeout" : "cancelled";
|
|
158
|
+
if (error instanceof PathDeniedError || error instanceof PathEscapeError)
|
|
159
|
+
return "scope-denied";
|
|
160
|
+
if (error instanceof RepoSearchInvalidQueryError)
|
|
161
|
+
return "invalid-request";
|
|
162
|
+
return "inventory-failed";
|
|
163
|
+
}
|
|
164
|
+
function discoveryRefusal(reason) {
|
|
165
|
+
if (reason === "scope-denied")
|
|
166
|
+
return { status: "failed", reasonCode: WORKSPACE_DISCOVERY_REFUSAL_CODES.SCOPE_DENIED };
|
|
167
|
+
if (reason === "invalid-request")
|
|
168
|
+
return { status: "failed", reasonCode: WORKSPACE_DISCOVERY_REFUSAL_CODES.INVALID_REQUEST };
|
|
169
|
+
if (reason === "timeout")
|
|
170
|
+
return { status: "failed", reasonCode: WORKSPACE_DISCOVERY_REFUSAL_CODES.TIMEOUT };
|
|
171
|
+
return { status: "failed" };
|
|
172
|
+
}
|
|
173
|
+
const CODING_RUNTIME_WORKSPACE_DISCOVERY_OPERATION = defineActivityLogOperation({
|
|
174
|
+
contractKind: "activity-log-operation",
|
|
175
|
+
schemaVersion: 1,
|
|
176
|
+
op: "coding-runtime.workspace-discovery",
|
|
177
|
+
category: "search",
|
|
178
|
+
owner: "keiko-server",
|
|
179
|
+
emitter: "coding-runtime.codingToolReadEditPorts.recordDiscoverySettlement",
|
|
180
|
+
fields: {
|
|
181
|
+
state: {
|
|
182
|
+
type: "string",
|
|
183
|
+
dataClass: "closed-enum",
|
|
184
|
+
required: true,
|
|
185
|
+
values: ["completed", "failed"],
|
|
186
|
+
},
|
|
187
|
+
reason: {
|
|
188
|
+
type: "string",
|
|
189
|
+
dataClass: "closed-enum",
|
|
190
|
+
required: true,
|
|
191
|
+
values: [
|
|
192
|
+
"none",
|
|
193
|
+
"cancelled",
|
|
194
|
+
"authority-denied",
|
|
195
|
+
"inventory-failed",
|
|
196
|
+
"timeout",
|
|
197
|
+
"scope-denied",
|
|
198
|
+
"invalid-request",
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
cooperative: { type: "boolean", dataClass: "closed-enum", required: true },
|
|
202
|
+
sourceLanguageScan: { type: "boolean", dataClass: "closed-enum", required: true },
|
|
203
|
+
directorySortStrategy: {
|
|
204
|
+
type: "string",
|
|
205
|
+
dataClass: "closed-enum",
|
|
206
|
+
required: true,
|
|
207
|
+
values: ["once-per-directory", "retained-results-only"],
|
|
208
|
+
},
|
|
209
|
+
discovered: { type: "integer", dataClass: "count", required: false },
|
|
210
|
+
denied: { type: "integer", dataClass: "count", required: false },
|
|
211
|
+
ignored: { type: "integer", dataClass: "count", required: false },
|
|
212
|
+
depthPruned: { type: "integer", dataClass: "count", required: false },
|
|
213
|
+
maxFilesPruned: { type: "integer", dataClass: "count", required: false },
|
|
214
|
+
unrepresentablePaths: { type: "integer", dataClass: "count", required: false },
|
|
215
|
+
directoriesDiscovered: { type: "integer", dataClass: "count", required: false },
|
|
216
|
+
directoriesPruned: { type: "integer", dataClass: "count", required: false },
|
|
217
|
+
ioErrors: { type: "integer", dataClass: "count", required: false },
|
|
218
|
+
returnedPathCount: { type: "integer", dataClass: "count", required: false },
|
|
219
|
+
matchedCount: { type: "integer", dataClass: "count", required: false },
|
|
220
|
+
coverageIncomplete: { type: "boolean", dataClass: "closed-enum", required: false },
|
|
221
|
+
truncationReasons: {
|
|
222
|
+
type: "string-array",
|
|
223
|
+
dataClass: "closed-enum",
|
|
224
|
+
required: false,
|
|
225
|
+
maxItems: 6,
|
|
226
|
+
values: [
|
|
227
|
+
"result-limit",
|
|
228
|
+
"output-limit",
|
|
229
|
+
"directory-limit",
|
|
230
|
+
"io-error",
|
|
231
|
+
"time-limit",
|
|
232
|
+
"unrepresentable-path",
|
|
233
|
+
],
|
|
234
|
+
},
|
|
235
|
+
frames: {
|
|
236
|
+
type: "string-array",
|
|
237
|
+
dataClass: "opaque-id",
|
|
238
|
+
required: false,
|
|
239
|
+
maxLength: 512,
|
|
240
|
+
maxItems: 8,
|
|
241
|
+
},
|
|
242
|
+
causeChain: {
|
|
243
|
+
type: "string-array",
|
|
244
|
+
dataClass: "error-kind",
|
|
245
|
+
required: false,
|
|
246
|
+
maxLength: 128,
|
|
247
|
+
maxItems: 5,
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
causal: "correlation",
|
|
251
|
+
lifecycle: "state",
|
|
252
|
+
diagnosticWhen: [{ field: "reason", values: ["inventory-failed"] }],
|
|
253
|
+
analyzerProjection: "process-lifecycle",
|
|
254
|
+
failureClasses: ["coding-workspace-discovery"],
|
|
255
|
+
proofIds: ["coding-runtime.workspace-discovery.emitted-line"],
|
|
256
|
+
releaseImpact: "patch",
|
|
257
|
+
});
|
|
258
|
+
function recordDiscoverySettlement(deps, binding, reason, startedAtMs, discovered, read, failure) {
|
|
259
|
+
const errorKind = reason === "none" ? undefined : discoveryErrorKind(reason);
|
|
260
|
+
(deps.activityLog ?? processServerLogSink()).write(activityLogEvent(CODING_RUNTIME_WORKSPACE_DISCOVERY_OPERATION, {
|
|
261
|
+
correlationId: correlationIdOrUnknown(binding?.runId),
|
|
262
|
+
durationMs: Math.max(0, Date.now() - startedAtMs),
|
|
263
|
+
...(errorKind === undefined ? {} : { level: "warn", errorKind }),
|
|
264
|
+
}, {
|
|
265
|
+
state: reason === "none" ? "completed" : "failed",
|
|
266
|
+
reason,
|
|
267
|
+
cooperative: true,
|
|
268
|
+
sourceLanguageScan: false,
|
|
269
|
+
directorySortStrategy: "retained-results-only",
|
|
270
|
+
...discoverySettlementFacts(discovered, read),
|
|
271
|
+
...(failure === undefined
|
|
272
|
+
? {}
|
|
273
|
+
: { frames: keikoStackFrames(failure), causeChain: causeChain(failure) }),
|
|
274
|
+
}));
|
|
275
|
+
}
|
|
276
|
+
function discoveryErrorKind(reason) {
|
|
277
|
+
if (reason === "inventory-failed")
|
|
278
|
+
return "internal";
|
|
279
|
+
if (reason === "invalid-request")
|
|
280
|
+
return "validation-failed";
|
|
281
|
+
return reason === "scope-denied" ? "authority-denied" : reason;
|
|
282
|
+
}
|
|
283
|
+
function discoverySettlementFacts(discovered, read) {
|
|
284
|
+
if (discovered === undefined)
|
|
285
|
+
return {};
|
|
286
|
+
const { filesDiscovered, ...stats } = discovered.stats;
|
|
287
|
+
return {
|
|
288
|
+
discovered: filesDiscovered,
|
|
289
|
+
...stats,
|
|
290
|
+
returnedPathCount: read?.returnedPathCount ?? 0,
|
|
291
|
+
matchedCount: discovered.matchedCount,
|
|
292
|
+
coverageIncomplete: read?.discovery?.coverageIncomplete ?? discovered.coverageIncomplete,
|
|
293
|
+
truncationReasons: read?.discovery?.truncationReasons ?? discovered.truncationReasons,
|
|
294
|
+
};
|
|
295
|
+
}
|
|
66
296
|
function discoveryWorkspace(deps) {
|
|
67
297
|
if (deps.resolveWorkspaceRootAccess !== undefined) {
|
|
68
298
|
const access = deps.resolveWorkspaceRootAccess();
|
|
@@ -87,101 +317,193 @@ function emitDiscoveryFailureDiagnostic(diagnostics, binding, error) {
|
|
|
87
317
|
message: "workspace-discovery-failed",
|
|
88
318
|
});
|
|
89
319
|
}
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
const selected = [];
|
|
93
|
-
let bytes = 0;
|
|
94
|
-
for (const path of paths) {
|
|
95
|
-
if (selected.length >= maxResults)
|
|
96
|
-
break;
|
|
97
|
-
if (isDenied(path) || !matchesDiscoveryTerms(path, terms))
|
|
98
|
-
continue;
|
|
99
|
-
const lineBytes = Buffer.byteLength(`${path}\n`, "utf8");
|
|
100
|
-
if (bytes + lineBytes > MAX_READ_BYTES)
|
|
101
|
-
break;
|
|
102
|
-
selected.push(path);
|
|
103
|
-
bytes += lineBytes;
|
|
104
|
-
}
|
|
105
|
-
return selected.length === 0 ? "" : `${selected.join("\n")}\n`;
|
|
106
|
-
}
|
|
107
|
-
function matchesDiscoveryTerms(path, terms) {
|
|
108
|
-
const candidate = path.toLowerCase();
|
|
109
|
-
for (const term of terms) {
|
|
110
|
-
if (!candidate.includes(term))
|
|
111
|
-
return false;
|
|
112
|
-
}
|
|
113
|
-
return true;
|
|
114
|
-
}
|
|
115
|
-
function discoveryTerms(query) {
|
|
116
|
-
if (query.trim() === "*")
|
|
117
|
-
return [];
|
|
118
|
-
const terms = [];
|
|
119
|
-
for (const term of query.toLowerCase().split(/[\s/_.-]+/u)) {
|
|
120
|
-
if (term.length === 0)
|
|
121
|
-
continue;
|
|
122
|
-
terms.push(term);
|
|
123
|
-
if (terms.length === 8)
|
|
124
|
-
break;
|
|
125
|
-
}
|
|
126
|
-
return terms;
|
|
127
|
-
}
|
|
128
|
-
function discoveryReadResult(text) {
|
|
320
|
+
function discoveryReadProjection(discovery) {
|
|
321
|
+
const text = codingToolDiscoveryText(discovery.entries);
|
|
129
322
|
const totalLines = text.length === 0 ? 0 : text.split("\n").length - 1;
|
|
130
323
|
return {
|
|
131
324
|
text,
|
|
132
325
|
byteCount: Buffer.byteLength(text, "utf8"),
|
|
133
326
|
digest: createHash("sha256").update(text, "utf8").digest("hex"),
|
|
134
327
|
totalLines,
|
|
328
|
+
returnedPathCount: discovery.entries.length,
|
|
329
|
+
discovery,
|
|
135
330
|
};
|
|
136
331
|
}
|
|
332
|
+
function discoveryReadResult(result) {
|
|
333
|
+
const entries = [...result.entries];
|
|
334
|
+
const truncationReasons = [...result.truncationReasons];
|
|
335
|
+
const project = () => discoveryReadProjection({
|
|
336
|
+
entries,
|
|
337
|
+
truncationReasons,
|
|
338
|
+
matchedCount: result.matchedCount,
|
|
339
|
+
coverageIncomplete: truncationReasons.length > 0,
|
|
340
|
+
});
|
|
341
|
+
let read = project();
|
|
342
|
+
while (Buffer.byteLength(JSON.stringify(read), "utf8") > MAX_READ_BYTES) {
|
|
343
|
+
entries.pop();
|
|
344
|
+
if (!truncationReasons.includes("output-limit"))
|
|
345
|
+
truncationReasons.push("output-limit");
|
|
346
|
+
read = project();
|
|
347
|
+
}
|
|
348
|
+
return read;
|
|
349
|
+
}
|
|
137
350
|
async function executeRead(deps, request, signal, mutationGuard) {
|
|
138
|
-
|
|
351
|
+
const read = await governedWorkspaceRead(deps, request.relativePath, signal, mutationGuard, "tool-result");
|
|
352
|
+
if (!read.ok)
|
|
353
|
+
return readRefusal(read.reason);
|
|
354
|
+
return completedRead(deps, read.binding, request, read.text);
|
|
355
|
+
}
|
|
356
|
+
async function executeSnapshotRead(deps, request, signal, mutationGuard) {
|
|
357
|
+
const read = await governedWorkspaceRead(deps, request.relativePath, signal, mutationGuard, request.purpose, true);
|
|
358
|
+
if (!read.ok)
|
|
359
|
+
return { ok: false, reason: read.reason };
|
|
360
|
+
recordSnapshotRead(deps, read.binding, request.relativePath, request.purpose);
|
|
361
|
+
return Object.freeze({
|
|
362
|
+
ok: true,
|
|
363
|
+
text: read.text,
|
|
364
|
+
info: Object.freeze({ type: "file", size: read.info.size, mtimeMs: read.info.mtimeMs }),
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
function recordSnapshotRead(deps, binding, relativePath, purpose) {
|
|
368
|
+
(deps.activityLog ?? processServerLogSink()).write(activityLogEvent(CODING_RUNTIME_WORKSPACE_READ_OPERATION, { correlationId: correlationIdOrUnknown(binding?.runId) }, { state: "completed", purpose, targetPathSha256: targetPathDigest(relativePath) }));
|
|
369
|
+
}
|
|
370
|
+
async function governedWorkspaceRead(deps, relativePath, signal, mutationGuard, purpose, snapshot = false) {
|
|
371
|
+
const binding = safeMutationBinding(mutationGuard);
|
|
139
372
|
try {
|
|
140
|
-
const
|
|
141
|
-
if (!
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
const result = await deps.secureWorkspaceTextRead.readText({
|
|
145
|
-
relativePath: request.relativePath,
|
|
146
|
-
signal,
|
|
147
|
-
});
|
|
148
|
-
if (!result.ok)
|
|
149
|
-
return failedRead(deps, binding, request, result.reason);
|
|
150
|
-
if (!readPostflight(deps, result, binding, signal, mutationGuard)) {
|
|
151
|
-
return failedRead(deps, binding, request, "postflight-refused");
|
|
152
|
-
}
|
|
153
|
-
if (Buffer.byteLength(result.text, "utf8") > MAX_READ_BYTES) {
|
|
154
|
-
return failedRead(deps, binding, request, "response-too-large");
|
|
155
|
-
}
|
|
156
|
-
return completedRead(deps, binding, request, result.text);
|
|
373
|
+
const read = await attemptGovernedRead(deps, relativePath, signal, mutationGuard, binding, snapshot);
|
|
374
|
+
if (!read.ok)
|
|
375
|
+
recordReadFailure(deps, read, relativePath, purpose);
|
|
376
|
+
return read;
|
|
157
377
|
}
|
|
158
378
|
catch (error) {
|
|
159
|
-
|
|
379
|
+
const read = { ok: false, reason: "exception", binding, error };
|
|
380
|
+
logFailedRead(deps, read, relativePath, purpose);
|
|
381
|
+
return read;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
async function attemptGovernedRead(deps, relativePath, signal, mutationGuard, initialBinding, snapshot) {
|
|
385
|
+
const preflight = readPreflight(deps, relativePath, signal, mutationGuard);
|
|
386
|
+
if (!preflight.ok)
|
|
387
|
+
return { ok: false, reason: "preflight-refused", binding: initialBinding };
|
|
388
|
+
const binding = preflight.binding;
|
|
389
|
+
const result = await readGovernedValue(deps, relativePath, signal, snapshot);
|
|
390
|
+
if (!result.ok)
|
|
391
|
+
return boundReadFailure(result, binding);
|
|
392
|
+
if (!readPostflight(deps, result, binding, signal, mutationGuard)) {
|
|
393
|
+
return { ok: false, reason: "postflight-refused", binding };
|
|
160
394
|
}
|
|
395
|
+
if (Buffer.byteLength(result.text, "utf8") > SECURE_WORKSPACE_TEXT_READ_MAX_BYTES) {
|
|
396
|
+
return { ok: false, reason: "response-too-large", binding };
|
|
397
|
+
}
|
|
398
|
+
if (snapshot) {
|
|
399
|
+
if (!("info" in result) || !validSnapshotRead(result.text, result.info))
|
|
400
|
+
return { ok: false, reason: "protocol-invalid", binding };
|
|
401
|
+
return { ok: true, text: result.text, info: result.info, binding };
|
|
402
|
+
}
|
|
403
|
+
return { ok: true, text: result.text, binding };
|
|
404
|
+
}
|
|
405
|
+
async function readGovernedValue(deps, relativePath, signal, snapshot) {
|
|
406
|
+
if (!snapshot)
|
|
407
|
+
return deps.secureWorkspaceTextRead.readText({ relativePath, signal });
|
|
408
|
+
const readSnapshot = deps.secureWorkspaceTextRead.readTextSnapshot?.bind(deps.secureWorkspaceTextRead);
|
|
409
|
+
return readSnapshot === undefined
|
|
410
|
+
? { ok: false, reason: "snapshot-unavailable" }
|
|
411
|
+
: readSnapshot({ relativePath, signal });
|
|
161
412
|
}
|
|
413
|
+
function boundReadFailure(result, binding) {
|
|
414
|
+
return {
|
|
415
|
+
ok: false,
|
|
416
|
+
reason: result.reason,
|
|
417
|
+
binding,
|
|
418
|
+
...("absence" in result ? { absence: result.absence } : {}),
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
function validSnapshotRead(text, info) {
|
|
422
|
+
if (info === null || typeof info !== "object" || Reflect.ownKeys(info).length !== 3)
|
|
423
|
+
return false;
|
|
424
|
+
return (ownSnapshotValue(info, "type") === "file" &&
|
|
425
|
+
ownSnapshotValue(info, "size") === Buffer.byteLength(text, "utf8") &&
|
|
426
|
+
Number.isFinite(ownSnapshotValue(info, "mtimeMs")));
|
|
427
|
+
}
|
|
428
|
+
function ownSnapshotValue(info, key) {
|
|
429
|
+
const descriptor = Object.getOwnPropertyDescriptor(info, key);
|
|
430
|
+
return descriptor !== undefined && "value" in descriptor ? descriptor.value : undefined;
|
|
431
|
+
}
|
|
432
|
+
// A path that does not exist is a legitimate precondition of the file a materialization creates or
|
|
433
|
+
// moves to, recorded as `absent`; for the model's own read, and for every other reason, it is a
|
|
434
|
+
// failed read.
|
|
435
|
+
function recordReadFailure(deps, read, relativePath, purpose) {
|
|
436
|
+
if (purpose === "edit-materialization" && read.reason === "not-found") {
|
|
437
|
+
recordMaterializationRead(deps, read.binding, relativePath, "absent", read.absence);
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
logFailedRead(deps, read, relativePath, purpose);
|
|
441
|
+
}
|
|
442
|
+
// #3873 review: a materialization reads through the governed read above, never the raw port, so
|
|
443
|
+
// every file it reads leaves a read line with its purpose and closed reason, a denied path or a
|
|
444
|
+
// switched workspace fails closed as it would for the model's own read, and a cancelled run is
|
|
445
|
+
// recorded as cancelled.
|
|
446
|
+
function materializationReadPort(deps, mutationGuard) {
|
|
447
|
+
return {
|
|
448
|
+
readText: async ({ relativePath, signal }) => {
|
|
449
|
+
// An aborted run is cancelled, not refused: the preflight would fold the abort into
|
|
450
|
+
// `preflight-refused`, and the refusal must record the cancellation it actually was.
|
|
451
|
+
if (isAborted(signal)) {
|
|
452
|
+
const cancelled = {
|
|
453
|
+
ok: false,
|
|
454
|
+
reason: "cancelled",
|
|
455
|
+
binding: safeMutationBinding(mutationGuard),
|
|
456
|
+
};
|
|
457
|
+
logFailedRead(deps, cancelled, relativePath, "edit-materialization");
|
|
458
|
+
return { ok: false, reason: "cancelled" };
|
|
459
|
+
}
|
|
460
|
+
const read = await governedWorkspaceRead(deps, relativePath, signal, mutationGuard, "edit-materialization");
|
|
461
|
+
if (!read.ok)
|
|
462
|
+
return { ok: false, reason: read.reason };
|
|
463
|
+
recordMaterializationRead(deps, read.binding, relativePath, "completed");
|
|
464
|
+
return { ok: true, text: read.text };
|
|
465
|
+
},
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
function recordMaterializationRead(deps, binding, relativePath, state, absence) {
|
|
469
|
+
(deps.activityLog ?? processServerLogSink()).write(activityLogEvent(CODING_RUNTIME_WORKSPACE_READ_OPERATION, { correlationId: correlationIdOrUnknown(binding?.runId) }, {
|
|
470
|
+
state,
|
|
471
|
+
purpose: "edit-materialization",
|
|
472
|
+
targetPathSha256: targetPathDigest(relativePath),
|
|
473
|
+
...(absence === undefined ? {} : { absence }),
|
|
474
|
+
}));
|
|
475
|
+
}
|
|
476
|
+
function targetPathDigest(relativePath) {
|
|
477
|
+
return createHash("sha256").update(relativePath, "utf8").digest("hex");
|
|
478
|
+
}
|
|
479
|
+
// #3873 review: which consumer a read served. Absent on lines written before the field existed.
|
|
480
|
+
const READ_PURPOSES = [
|
|
481
|
+
"tool-result",
|
|
482
|
+
"edit-materialization",
|
|
483
|
+
"native-tool-io",
|
|
484
|
+
"native-instructions",
|
|
485
|
+
];
|
|
486
|
+
const CODING_RUNTIME_WORKSPACE_READ_PURPOSE_FIELD = {
|
|
487
|
+
type: "string",
|
|
488
|
+
dataClass: "closed-enum",
|
|
489
|
+
required: false,
|
|
490
|
+
values: [...READ_PURPOSES],
|
|
491
|
+
};
|
|
162
492
|
const CODING_RUNTIME_WORKSPACE_READ_REASON_FIELD = {
|
|
163
493
|
type: "string",
|
|
164
494
|
dataClass: "closed-enum",
|
|
165
495
|
required: false,
|
|
166
|
-
values: [
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
"not-text",
|
|
178
|
-
"too-large",
|
|
179
|
-
"unstable",
|
|
180
|
-
"exception",
|
|
181
|
-
"postflight-refused",
|
|
182
|
-
"preflight-refused",
|
|
183
|
-
"response-too-large",
|
|
184
|
-
],
|
|
496
|
+
values: [...EDIT_READ_REASONS, "snapshot-unavailable", "native-io-unavailable", "wrong-kind"],
|
|
497
|
+
};
|
|
498
|
+
// #3873 review (PR #3876): the closed verdict of the server's no-follow walk, set only when the native
|
|
499
|
+
// helper answered `access-denied`, which it gives for a missing path, a link, a file used as a
|
|
500
|
+
// directory, another device, an unprobeable directory and an unusable root alike. It is how a creation
|
|
501
|
+
// refused `denied` is told apart in the log; one closed word, never the path or an error text.
|
|
502
|
+
const CODING_RUNTIME_WORKSPACE_READ_ABSENCE_FIELD = {
|
|
503
|
+
type: "string",
|
|
504
|
+
dataClass: "closed-enum",
|
|
505
|
+
required: false,
|
|
506
|
+
values: [...WORKSPACE_PATH_ABSENCE_VERDICTS],
|
|
185
507
|
};
|
|
186
508
|
const CODING_RUNTIME_WORKSPACE_READ_FRAMES_FIELD = {
|
|
187
509
|
type: "string-array",
|
|
@@ -205,13 +527,17 @@ const CODING_RUNTIME_WORKSPACE_READ_OPERATION = defineActivityLogOperation({
|
|
|
205
527
|
owner: "keiko-server",
|
|
206
528
|
emitter: "coding-runtime.codingToolReadEditPorts.workspaceRead",
|
|
207
529
|
fields: {
|
|
530
|
+
// `absent`: a materialization read found no file at the path, which is the expected state of
|
|
531
|
+
// a file the edit creates or a rename target, not a failure (#3873 review).
|
|
208
532
|
state: {
|
|
209
533
|
type: "string",
|
|
210
534
|
dataClass: "closed-enum",
|
|
211
535
|
required: true,
|
|
212
|
-
values: ["completed", "failed"],
|
|
536
|
+
values: ["completed", "failed", "absent"],
|
|
213
537
|
},
|
|
538
|
+
purpose: CODING_RUNTIME_WORKSPACE_READ_PURPOSE_FIELD,
|
|
214
539
|
reason: CODING_RUNTIME_WORKSPACE_READ_REASON_FIELD,
|
|
540
|
+
absence: CODING_RUNTIME_WORKSPACE_READ_ABSENCE_FIELD,
|
|
215
541
|
targetPathSha256: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
|
|
216
542
|
startLine: { type: "integer", dataClass: "count", required: false },
|
|
217
543
|
maxLines: { type: "integer", dataClass: "count", required: false },
|
|
@@ -225,6 +551,19 @@ const CODING_RUNTIME_WORKSPACE_READ_OPERATION = defineActivityLogOperation({
|
|
|
225
551
|
proofIds: ["coding-runtime.workspace-read.emitted-line"],
|
|
226
552
|
releaseImpact: "patch",
|
|
227
553
|
});
|
|
554
|
+
// #3873: which of the two edit forms the model used; body-free evidence on the edit lines. A
|
|
555
|
+
// replacement changeset also records how many files it deletes and moves (#3873 follow-up), each
|
|
556
|
+
// bounded by the form's 50-entry arrays; both counts are absent on the unified-diff form, where
|
|
557
|
+
// they were not measured.
|
|
558
|
+
const EDIT_FORMS = ["unified-diff", "replacements"];
|
|
559
|
+
const EDIT_FORM_FIELD = {
|
|
560
|
+
type: "string",
|
|
561
|
+
dataClass: "closed-enum",
|
|
562
|
+
required: false,
|
|
563
|
+
values: [...EDIT_FORMS],
|
|
564
|
+
};
|
|
565
|
+
const EDIT_DELETION_COUNT_FIELD = { type: "integer", dataClass: "count", required: false };
|
|
566
|
+
const EDIT_RENAME_COUNT_FIELD = { type: "integer", dataClass: "count", required: false };
|
|
228
567
|
const CODING_RUNTIME_EDITOR_MUTATION_SETTLED_OPERATION = defineActivityLogOperation({
|
|
229
568
|
contractKind: "activity-log-operation",
|
|
230
569
|
schemaVersion: 1,
|
|
@@ -245,6 +584,15 @@ const CODING_RUNTIME_EDITOR_MUTATION_SETTLED_OPERATION = defineActivityLogOperat
|
|
|
245
584
|
required: true,
|
|
246
585
|
values: ["edit"],
|
|
247
586
|
},
|
|
587
|
+
editForm: EDIT_FORM_FIELD,
|
|
588
|
+
executionPath: {
|
|
589
|
+
type: "string",
|
|
590
|
+
dataClass: "closed-enum",
|
|
591
|
+
required: false,
|
|
592
|
+
values: ["server", "browser"],
|
|
593
|
+
},
|
|
594
|
+
deletionCount: EDIT_DELETION_COUNT_FIELD,
|
|
595
|
+
renameCount: EDIT_RENAME_COUNT_FIELD,
|
|
248
596
|
},
|
|
249
597
|
causal: "correlation",
|
|
250
598
|
lifecycle: "end",
|
|
@@ -288,23 +636,11 @@ const EDIT_REFUSAL_REASONS = [
|
|
|
288
636
|
"UNCLASSIFIED",
|
|
289
637
|
];
|
|
290
638
|
const EDIT_REFUSAL_REASON_SET = new Set(EDIT_REFUSAL_REASONS);
|
|
291
|
-
const
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
|
|
295
|
-
"
|
|
296
|
-
"binding-unavailable",
|
|
297
|
-
"editor-context-unavailable",
|
|
298
|
-
"lease-unavailable",
|
|
299
|
-
];
|
|
300
|
-
const EDIT_PREPARE_ERROR_KINDS = {
|
|
301
|
-
"workspace-access-lost": "authority-denied",
|
|
302
|
-
cancelled: "cancelled",
|
|
303
|
-
"guard-denied": "authority-denied",
|
|
304
|
-
"changeset-invalid": "validation-failed",
|
|
305
|
-
"binding-unavailable": "authority-denied",
|
|
306
|
-
"editor-context-unavailable": "unavailable",
|
|
307
|
-
"lease-unavailable": "conflict",
|
|
639
|
+
const EDIT_REPLACEMENT_REFUSAL_FIELD = {
|
|
640
|
+
type: "string",
|
|
641
|
+
dataClass: "closed-enum",
|
|
642
|
+
required: false,
|
|
643
|
+
values: [...REPLACEMENT_REFUSALS, "patch-budget-exhausted"],
|
|
308
644
|
};
|
|
309
645
|
const CODING_RUNTIME_EDIT_REFUSED_OPERATION = defineActivityLogOperation({
|
|
310
646
|
contractKind: "activity-log-operation",
|
|
@@ -328,6 +664,18 @@ const CODING_RUNTIME_EDIT_REFUSED_OPERATION = defineActivityLogOperation({
|
|
|
328
664
|
required: false,
|
|
329
665
|
values: [...EDIT_PREPARE_CAUSES],
|
|
330
666
|
},
|
|
667
|
+
// The closed reason of the governed read a materialization could not complete (#3873 review).
|
|
668
|
+
readReason: CODING_RUNTIME_WORKSPACE_READ_REASON_FIELD,
|
|
669
|
+
replacementRefusal: EDIT_REPLACEMENT_REFUSAL_FIELD,
|
|
670
|
+
editForm: EDIT_FORM_FIELD,
|
|
671
|
+
executionPath: {
|
|
672
|
+
type: "string",
|
|
673
|
+
dataClass: "closed-enum",
|
|
674
|
+
required: false,
|
|
675
|
+
values: ["server", "browser"],
|
|
676
|
+
},
|
|
677
|
+
deletionCount: EDIT_DELETION_COUNT_FIELD,
|
|
678
|
+
renameCount: EDIT_RENAME_COUNT_FIELD,
|
|
331
679
|
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
332
680
|
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
333
681
|
},
|
|
@@ -380,6 +728,9 @@ const WORKSPACE_READ_ERROR_KINDS = {
|
|
|
380
728
|
"postflight-refused": "authority-denied",
|
|
381
729
|
"not-found": "unavailable",
|
|
382
730
|
"workspace-unavailable": "unavailable",
|
|
731
|
+
"snapshot-unavailable": "unavailable",
|
|
732
|
+
"native-io-unavailable": "unavailable",
|
|
733
|
+
"wrong-kind": "validation-failed",
|
|
383
734
|
"too-large": "validation-failed",
|
|
384
735
|
"response-too-large": "validation-failed",
|
|
385
736
|
exception: "internal",
|
|
@@ -390,12 +741,17 @@ function workspaceReadErrorKind(reason) {
|
|
|
390
741
|
}
|
|
391
742
|
function completedRead(deps, binding, request, text) {
|
|
392
743
|
const window = readWindow(text, request.startLine, request.maxLines);
|
|
744
|
+
const byteCount = Buffer.byteLength(window.text, "utf8");
|
|
745
|
+
if (byteCount > MAX_READ_BYTES) {
|
|
746
|
+
recordReadFailure(deps, { ok: false, reason: "too-large", binding }, request.relativePath, "tool-result");
|
|
747
|
+
return readRefusal("too-large");
|
|
748
|
+
}
|
|
393
749
|
recordCompletedRead(deps, binding, request);
|
|
394
750
|
return {
|
|
395
751
|
status: "completed",
|
|
396
752
|
read: {
|
|
397
753
|
text: window.text,
|
|
398
|
-
byteCount
|
|
754
|
+
byteCount,
|
|
399
755
|
// The digest always covers the WHOLE file so a later changeset's expectedContentHash stays
|
|
400
756
|
// anchored to the governed read even when the model only saw a window of it.
|
|
401
757
|
digest: wholeFileDigest(text),
|
|
@@ -404,14 +760,18 @@ function completedRead(deps, binding, request, text) {
|
|
|
404
760
|
},
|
|
405
761
|
};
|
|
406
762
|
}
|
|
407
|
-
// One formula for the digest a read reports and the pre-ask base check compares against (#3612)
|
|
408
|
-
|
|
409
|
-
|
|
763
|
+
// One formula for the digest a read reports and the pre-ask base check compares against (#3612):
|
|
764
|
+
// `secureWorkspaceTextDigest`, owned by the read port the replacement materializer checks its
|
|
765
|
+
// preconditions through as well (#3873 review). Exported under this name for the
|
|
766
|
+
// repository-instructions loader, whose `contentSha256` is this same digest.
|
|
767
|
+
export function wholeFileDigest(text) {
|
|
768
|
+
return secureWorkspaceTextDigest(text);
|
|
410
769
|
}
|
|
411
770
|
function recordCompletedRead(deps, binding, request) {
|
|
412
771
|
(deps.activityLog ?? processServerLogSink()).write(activityLogEvent(CODING_RUNTIME_WORKSPACE_READ_OPERATION, { correlationId: correlationIdOrUnknown(binding?.runId) }, {
|
|
413
772
|
state: "completed",
|
|
414
|
-
|
|
773
|
+
purpose: "tool-result",
|
|
774
|
+
targetPathSha256: targetPathDigest(request.relativePath),
|
|
415
775
|
startLine: request.startLine ?? 1,
|
|
416
776
|
maxLines: request.maxLines ?? 0,
|
|
417
777
|
}));
|
|
@@ -432,20 +792,26 @@ function readRefusalCode(reason) {
|
|
|
432
792
|
? WORKSPACE_READ_REFUSAL_CODES[reason]
|
|
433
793
|
: undefined;
|
|
434
794
|
}
|
|
435
|
-
|
|
436
|
-
|
|
795
|
+
// The model-facing shape of a failed read; its line was written by the governed read itself.
|
|
796
|
+
function readRefusal(reason) {
|
|
797
|
+
const reasonCode = readRefusalCode(reason);
|
|
798
|
+
return reasonCode === undefined ? { status: "failed" } : { status: "failed", reasonCode };
|
|
799
|
+
}
|
|
800
|
+
function logFailedRead(deps, read, relativePath, purpose) {
|
|
801
|
+
const correlationId = correlationIdOrUnknown(read.binding?.runId);
|
|
802
|
+
const { reason, error } = read;
|
|
437
803
|
(deps.activityLog ?? processServerLogSink()).write(activityLogEvent(CODING_RUNTIME_WORKSPACE_READ_OPERATION, { correlationId, level: "warn", errorKind: workspaceReadErrorKind(reason) }, {
|
|
438
804
|
state: "failed",
|
|
805
|
+
purpose,
|
|
439
806
|
reason,
|
|
440
|
-
|
|
807
|
+
...(read.absence === undefined ? {} : { absence: read.absence }),
|
|
808
|
+
targetPathSha256: targetPathDigest(relativePath),
|
|
441
809
|
...(error === undefined
|
|
442
810
|
? {}
|
|
443
811
|
: { frames: keikoStackFrames(error), causeChain: causeChain(error) }),
|
|
444
812
|
}));
|
|
445
813
|
if (error !== undefined)
|
|
446
814
|
emitReadFailureDiagnostic(deps.diagnostics, correlationId, error);
|
|
447
|
-
const reasonCode = readRefusalCode(reason);
|
|
448
|
-
return reasonCode === undefined ? { status: "failed" } : { status: "failed", reasonCode };
|
|
449
815
|
}
|
|
450
816
|
function emitReadFailureDiagnostic(diagnostics, correlationId, error) {
|
|
451
817
|
emitServerDiagnostic(diagnostics, {
|
|
@@ -460,8 +826,10 @@ function emitReadFailureDiagnostic(diagnostics, correlationId, error) {
|
|
|
460
826
|
/**
|
|
461
827
|
* Cuts the requested 1-based line window out of the full governed read. The whole file always
|
|
462
828
|
* stays server-side; only the window travels back to the model (#2473 large-file reads).
|
|
829
|
+
* Exported for the repository-instructions loader, which attaches the first-lines window of
|
|
830
|
+
* AGENTS.md exactly as this read would answer it.
|
|
463
831
|
*/
|
|
464
|
-
function readWindow(text, startLine, maxLines) {
|
|
832
|
+
export function readWindow(text, startLine, maxLines) {
|
|
465
833
|
const lines = text.split("\n");
|
|
466
834
|
const trailingNewline = lines.length > 1 && lines.at(-1) === "";
|
|
467
835
|
let totalLines = trailingNewline ? lines.length - 1 : lines.length;
|
|
@@ -485,8 +853,11 @@ function slicedWindow(input) {
|
|
|
485
853
|
...(end < totalLines ? { nextStartLine: end + 1 } : {}),
|
|
486
854
|
};
|
|
487
855
|
}
|
|
488
|
-
function readPreflight(deps,
|
|
489
|
-
if (isAborted(signal) ||
|
|
856
|
+
function readPreflight(deps, relativePath, signal, mutationGuard) {
|
|
857
|
+
if (isAborted(signal) ||
|
|
858
|
+
!isSecureWorkspaceTextRelativePath(relativePath) ||
|
|
859
|
+
isDenied(relativePath) ||
|
|
860
|
+
!hasLiveWorkspaceAccess(deps)) {
|
|
490
861
|
return { ok: false };
|
|
491
862
|
}
|
|
492
863
|
const binding = mutationBinding(mutationGuard);
|
|
@@ -496,7 +867,7 @@ function readPreflight(deps, request, signal, mutationGuard) {
|
|
|
496
867
|
return { ok: false };
|
|
497
868
|
if (!readContextMatches(deps, binding) || !checkGuard(mutationGuard))
|
|
498
869
|
return { ok: false };
|
|
499
|
-
return
|
|
870
|
+
return { ok: true, binding };
|
|
500
871
|
}
|
|
501
872
|
function discoveryPreflight(deps, signal, mutationGuard) {
|
|
502
873
|
if (isAborted(signal))
|
|
@@ -531,33 +902,129 @@ function readPostflight(deps, result, binding, signal, mutationGuard) {
|
|
|
531
902
|
// workbench failure mode this file's diagnostic was added for: the model saw a retryable-looking
|
|
532
903
|
// failure and re-issued the edit while the log stayed empty (cursor review, PR #3381).
|
|
533
904
|
async function executeEdit(deps, request, signal, mutationGuard) {
|
|
905
|
+
const materialized = await materializedEdit(deps, request, signal, mutationGuard);
|
|
906
|
+
if ("outcome" in materialized)
|
|
907
|
+
return materialized.outcome;
|
|
908
|
+
return executeMaterializedEdit(deps, materialized, signal, mutationGuard);
|
|
909
|
+
}
|
|
910
|
+
const PATCH_BUDGET_MESSAGE = "The materialized changeset does not fit the run's remaining patch budget; split it into smaller calls or finish with the changes already applied.";
|
|
911
|
+
// #3873: a replacement edit becomes the unified-diff changeset the rest of this path validates,
|
|
912
|
+
// reviews and applies; a refusal names the file and the reason the model can act on. Its reads
|
|
913
|
+
// are governed reads, its materialized diff is charged against the run's patch budget before any
|
|
914
|
+
// editor action exists, and every refusal records its closed class (#3873 review).
|
|
915
|
+
async function materializedEdit(deps, request, signal, mutationGuard) {
|
|
916
|
+
if (!("changeset" in request) || !isReplacementChangeset(request.changeset)) {
|
|
917
|
+
return { request, evidence: { editForm: "unified-diff" } };
|
|
918
|
+
}
|
|
919
|
+
const evidence = {
|
|
920
|
+
editForm: "replacements",
|
|
921
|
+
deletionCount: request.changeset.deletions?.length ?? 0,
|
|
922
|
+
renameCount: request.changeset.renames?.length ?? 0,
|
|
923
|
+
};
|
|
924
|
+
const result = await materializeReplacementChangeset(materializationReadPort(deps, mutationGuard), request.changeset, signal);
|
|
925
|
+
if (result.status !== "materialized") {
|
|
926
|
+
return { outcome: materializationRefused(deps, result, evidence) };
|
|
927
|
+
}
|
|
928
|
+
const charge = chargedMaterialization(request.changeset, result.changeset.patch, mutationGuard);
|
|
929
|
+
if (!charge.ok)
|
|
930
|
+
return { outcome: materializedChargeRefused(deps, charge.reason, evidence) };
|
|
931
|
+
// Registered only now: a diff the run's budget refused never reaches an editor action, so it
|
|
932
|
+
// must not leave provenance behind. The route asks for it again at admission and at the result.
|
|
933
|
+
deps.materializedPatches?.register(result.changeset.patch);
|
|
934
|
+
return { request: { ...request, changeset: result.changeset }, evidence };
|
|
935
|
+
}
|
|
936
|
+
// A refused charge names its real cause (#3873 review): only an exhausted budget is a budget
|
|
937
|
+
// refusal with the advice to split; a run that stopped, an authority that expired, drifted or was
|
|
938
|
+
// replayed is the guard's denial, and a workspace drift is lost workspace access.
|
|
939
|
+
function materializedChargeRefused(deps, reason, evidence) {
|
|
940
|
+
const correlationId = editContextCorrelationId(deps);
|
|
941
|
+
if (reason === "authority-budget-exceeded") {
|
|
942
|
+
return editRefused(deps, correlationId, "LIMIT_EXCEEDED", {
|
|
943
|
+
message: PATCH_BUDGET_MESSAGE,
|
|
944
|
+
replacementRefusal: "patch-budget-exhausted",
|
|
945
|
+
...evidence,
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
return editRefused(deps, correlationId, "EDIT_PREPARE_FAILED", {
|
|
949
|
+
prepareCause: reason === "workspace-drift" ? "workspace-access-lost" : "guard-denied",
|
|
950
|
+
...evidence,
|
|
951
|
+
});
|
|
952
|
+
}
|
|
953
|
+
// The governed reads a file can never answer, with what the model can do instead (#3873 review):
|
|
954
|
+
// retrying the same call cannot help, so the message says so.
|
|
955
|
+
const UNREADABLE_FOR_EDIT_MESSAGES = {
|
|
956
|
+
"not-text": (file) => `${file} is not a UTF-8 text file; keiko_changeset_edit changes text files only. Leave it in place and report it.`,
|
|
957
|
+
"too-large": (file) => `${file} is larger than the ${String(SECURE_WORKSPACE_TEXT_READ_MAX_BYTES)} bytes a governed read returns, so keiko_changeset_edit cannot edit, move or delete it. Leave it in place and report it.`,
|
|
958
|
+
};
|
|
959
|
+
// A materialization that produced no changeset: a governed read that did not answer, recorded with
|
|
960
|
+
// its closed reason (a cancelled run as cancelled), or a refusal recorded with its closed class.
|
|
961
|
+
function materializationRefused(deps, result, evidence) {
|
|
962
|
+
const correlationId = editContextCorrelationId(deps);
|
|
963
|
+
if (result.status === "read-failed") {
|
|
964
|
+
const message = UNREADABLE_FOR_EDIT_MESSAGES[result.reason]?.(result.file);
|
|
965
|
+
return editRefused(deps, correlationId, "EDIT_PREPARE_FAILED", {
|
|
966
|
+
prepareCause: result.reason === "cancelled" ? "cancelled" : "replacement-read-failed",
|
|
967
|
+
readReason: result.reason,
|
|
968
|
+
...(isCodingSafeActivityPresentationPath(result.file) && !isDenied(result.file)
|
|
969
|
+
? { affectedRelativePath: result.file }
|
|
970
|
+
: {}),
|
|
971
|
+
...(message === undefined ? {} : { message }),
|
|
972
|
+
...evidence,
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
return editRefused(deps, correlationId, result.reasonCode, {
|
|
976
|
+
message: result.message,
|
|
977
|
+
replacementRefusal: result.refusal,
|
|
978
|
+
...evidence,
|
|
979
|
+
});
|
|
980
|
+
}
|
|
981
|
+
// #3873 review: the run's patch budget bounds what is applied. Admission reserved the request
|
|
982
|
+
// payload as its floor; the materialized diff's excess over that floor is charged here, against the
|
|
983
|
+
// same authority record, before any editor action exists. A guard without the charge belongs to a
|
|
984
|
+
// wiring that owns no edit budget and charges nothing, as its admission charged nothing.
|
|
985
|
+
function chargedMaterialization(changeset, patch, mutationGuard) {
|
|
986
|
+
const charge = mutationGuard.chargeMaterializedPatch;
|
|
987
|
+
if (charge === undefined)
|
|
988
|
+
return { ok: true };
|
|
989
|
+
const excess = Buffer.byteLength(patch, "utf8") - changesetPayloadBytes(changeset);
|
|
990
|
+
return excess <= 0 ? { ok: true } : charge(excess);
|
|
991
|
+
}
|
|
992
|
+
// Binds the live editor session a prepared edit needs; a refusal here discards the mutation lease.
|
|
993
|
+
async function bindPreparedEdit(deps, prepared, correlationId, evidence) {
|
|
994
|
+
const action = await bindLiveEditorSession(deps.editorAgentClient, prepared.action, prepared.workspaceRoot, prepared.signal);
|
|
995
|
+
if (action === undefined) {
|
|
996
|
+
discardMutationLease(deps, prepared.leaseRequest);
|
|
997
|
+
return {
|
|
998
|
+
refused: editRefused(deps, correlationId, "NO_ACTIVE_SESSION", {
|
|
999
|
+
...NO_ACTIVE_SESSION_DETAIL,
|
|
1000
|
+
...evidence,
|
|
1001
|
+
}),
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
if (!hasLiveWorkspaceAccess(deps)) {
|
|
1005
|
+
discardMutationLease(deps, prepared.leaseRequest);
|
|
1006
|
+
return { refused: editRefused(deps, correlationId, "WORKSPACE_ACCESS_LOST", evidence) };
|
|
1007
|
+
}
|
|
1008
|
+
return { action };
|
|
1009
|
+
}
|
|
1010
|
+
async function executeMaterializedEdit(deps, { request, evidence }, signal, mutationGuard) {
|
|
534
1011
|
const prepared = prepareEdit(deps, request, signal, mutationGuard);
|
|
535
1012
|
if ("refused" in prepared) {
|
|
536
1013
|
return editRefused(deps, editContextCorrelationId(deps), "EDIT_PREPARE_FAILED", {
|
|
537
1014
|
prepareCause: prepared.refused,
|
|
1015
|
+
...evidence,
|
|
538
1016
|
});
|
|
539
1017
|
}
|
|
540
1018
|
const correlationId = editCorrelationId(prepared.action);
|
|
541
1019
|
try {
|
|
542
|
-
const
|
|
543
|
-
if (
|
|
544
|
-
|
|
545
|
-
return editRefused(deps, correlationId, "NO_ACTIVE_SESSION", NO_ACTIVE_SESSION_DETAIL);
|
|
546
|
-
}
|
|
547
|
-
if (!hasLiveWorkspaceAccess(deps)) {
|
|
548
|
-
discardMutationLease(deps, prepared.leaseRequest);
|
|
549
|
-
return editRefused(deps, correlationId, "WORKSPACE_ACCESS_LOST");
|
|
550
|
-
}
|
|
551
|
-
// Capture before dispatch: an automatic editor apply may settle before its HTTP response.
|
|
552
|
-
const completion = prepared.leaseRequest === undefined
|
|
553
|
-
? undefined
|
|
554
|
-
: deps.mutationLeaseCoordinator?.waitForMutation(prepared.leaseRequest, prepared.signal);
|
|
555
|
-
const result = await deps.editorAgentClient.action(action, prepared.signal);
|
|
556
|
-
if (result.ok && editorStatusCompleted(result.value.result.status)) {
|
|
557
|
-
return await completedEdit(deps, correlationId, completion);
|
|
1020
|
+
const serverInput = serverPreparedEditInput(prepared);
|
|
1021
|
+
if (deps.serverRuntimeChangeset !== undefined && serverInput !== undefined) {
|
|
1022
|
+
return await executeServerPreparedEdit(deps, deps.serverRuntimeChangeset, serverInput, correlationId, { ...evidence, executionPath: "server" });
|
|
558
1023
|
}
|
|
559
|
-
|
|
560
|
-
|
|
1024
|
+
return await executeBrowserPreparedEdit(deps, prepared, correlationId, {
|
|
1025
|
+
...evidence,
|
|
1026
|
+
executionPath: "browser",
|
|
1027
|
+
});
|
|
561
1028
|
}
|
|
562
1029
|
catch (error) {
|
|
563
1030
|
discardMutationLease(deps, prepared.leaseRequest);
|
|
@@ -565,6 +1032,48 @@ async function executeEdit(deps, request, signal, mutationGuard) {
|
|
|
565
1032
|
return { status: "failed", reasonCode: "EDIT_TRANSPORT_ERROR" };
|
|
566
1033
|
}
|
|
567
1034
|
}
|
|
1035
|
+
function serverPreparedEditInput(prepared) {
|
|
1036
|
+
if (prepared.requiresReview ||
|
|
1037
|
+
prepared.leaseRequest === undefined ||
|
|
1038
|
+
prepared.workspaceRoot === undefined)
|
|
1039
|
+
return undefined;
|
|
1040
|
+
return {
|
|
1041
|
+
action: prepared.action,
|
|
1042
|
+
leaseRequest: prepared.leaseRequest,
|
|
1043
|
+
workspaceRoot: prepared.workspaceRoot,
|
|
1044
|
+
signal: prepared.signal,
|
|
1045
|
+
};
|
|
1046
|
+
}
|
|
1047
|
+
async function executeBrowserPreparedEdit(deps, prepared, correlationId, evidence) {
|
|
1048
|
+
const bound = await bindPreparedEdit(deps, prepared, correlationId, evidence);
|
|
1049
|
+
if ("refused" in bound)
|
|
1050
|
+
return bound.refused;
|
|
1051
|
+
// Capture before dispatch: an automatic editor apply may settle before its HTTP response.
|
|
1052
|
+
const completion = prepared.leaseRequest === undefined
|
|
1053
|
+
? undefined
|
|
1054
|
+
: deps.mutationLeaseCoordinator?.waitForMutation(prepared.leaseRequest, prepared.signal);
|
|
1055
|
+
const result = await deps.editorAgentClient.action(bound.action, prepared.signal);
|
|
1056
|
+
if (result.ok && editorStatusCompleted(result.value.result.status))
|
|
1057
|
+
return completedEdit(deps, correlationId, completion, evidence);
|
|
1058
|
+
discardMutationLease(deps, prepared.leaseRequest);
|
|
1059
|
+
return editRefused(deps, correlationId, editFailureReasonCode(result), {
|
|
1060
|
+
...editFailureDetail(result),
|
|
1061
|
+
...evidence,
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
async function executeServerPreparedEdit(deps, apply, input, correlationId, evidence) {
|
|
1065
|
+
const completion = deps.mutationLeaseCoordinator?.waitForMutation(input.leaseRequest, input.signal);
|
|
1066
|
+
const result = await apply(input);
|
|
1067
|
+
if (result.status === "succeeded")
|
|
1068
|
+
return completedEdit(deps, correlationId, completion, evidence);
|
|
1069
|
+
discardMutationLease(deps, input.leaseRequest);
|
|
1070
|
+
if (input.signal.aborted)
|
|
1071
|
+
return editRefused(deps, correlationId, "CANCELLED", evidence);
|
|
1072
|
+
return editRefused(deps, correlationId, result.conflict?.code ?? result.failure?.code ?? "EDIT_MUTATION_FAILED", {
|
|
1073
|
+
...(result.message === undefined ? {} : { message: result.message }),
|
|
1074
|
+
...evidence,
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
568
1077
|
// A change applied or rejected in its review is the human's decision, logged as such; a cancelled
|
|
569
1078
|
// or failed mutation keeps its warn line (owner decision 2026-09-26, ADR-0124 D6: the review's "no"
|
|
570
1079
|
// read as an internal mutation failure, and the model was told EDIT_MUTATION_FAILED).
|
|
@@ -573,7 +1082,7 @@ const SETTLED_EDIT_REFUSALS = {
|
|
|
573
1082
|
cancelled: "CANCELLED",
|
|
574
1083
|
failed: "EDIT_MUTATION_FAILED",
|
|
575
1084
|
};
|
|
576
|
-
async function completedEdit(deps, correlationId, completion) {
|
|
1085
|
+
async function completedEdit(deps, correlationId, completion, evidence) {
|
|
577
1086
|
if (completion === undefined)
|
|
578
1087
|
return { status: "completed" };
|
|
579
1088
|
const outcome = await completion;
|
|
@@ -582,19 +1091,46 @@ async function completedEdit(deps, correlationId, completion) {
|
|
|
582
1091
|
...(outcome === "succeeded" || outcome === "rejected"
|
|
583
1092
|
? {}
|
|
584
1093
|
: { level: "warn", errorKind: outcome === "cancelled" ? "cancelled" : "internal" }),
|
|
585
|
-
}, { state: outcome, actionKind: "edit" }));
|
|
1094
|
+
}, { state: outcome, actionKind: "edit", ...editFormFields(evidence) }));
|
|
586
1095
|
return outcome === "succeeded"
|
|
587
1096
|
? { status: "completed" }
|
|
588
|
-
: editRefused(deps, correlationId, SETTLED_EDIT_REFUSALS[outcome]);
|
|
1097
|
+
: editRefused(deps, correlationId, SETTLED_EDIT_REFUSALS[outcome], evidence);
|
|
589
1098
|
}
|
|
590
1099
|
function editRefused(deps, correlationId, reasonCode, detail = {}) {
|
|
591
|
-
const { message,
|
|
1100
|
+
const { message, affectedRelativePath, ...evidence } = detail;
|
|
592
1101
|
// The refusal line stays reason-code-only (body-free, AGENTS.md §8) — `message` never reaches
|
|
593
1102
|
// the activity log, only the outcome returned to the caller.
|
|
594
|
-
logEditRefused(deps, correlationId, reasonCode,
|
|
595
|
-
return
|
|
596
|
-
|
|
597
|
-
|
|
1103
|
+
logEditRefused(deps, correlationId, reasonCode, evidence);
|
|
1104
|
+
return {
|
|
1105
|
+
status: "failed",
|
|
1106
|
+
reasonCode,
|
|
1107
|
+
...(message === undefined ? {} : { message }),
|
|
1108
|
+
...(affectedRelativePath === undefined ? {} : { affectedRelativePath }),
|
|
1109
|
+
...refusalCauseFields(evidence),
|
|
1110
|
+
};
|
|
1111
|
+
}
|
|
1112
|
+
// The closed cause of a preparation refusal, for the caller that classifies it: the same two words
|
|
1113
|
+
// the refusal line records.
|
|
1114
|
+
function refusalCauseFields({ prepareCause, readReason, }) {
|
|
1115
|
+
return {
|
|
1116
|
+
...(prepareCause === undefined ? {} : { prepareCause }),
|
|
1117
|
+
...(readReason === undefined ? {} : { readReason }),
|
|
1118
|
+
};
|
|
1119
|
+
}
|
|
1120
|
+
function editFormFields({ executionPath, editForm, deletionCount, renameCount, }) {
|
|
1121
|
+
return {
|
|
1122
|
+
...(executionPath === undefined ? {} : { executionPath }),
|
|
1123
|
+
...(editForm === undefined ? {} : { editForm }),
|
|
1124
|
+
...(deletionCount === undefined ? {} : { deletionCount }),
|
|
1125
|
+
...(renameCount === undefined ? {} : { renameCount }),
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
function refusalContextFields({ prepareCause, readReason, replacementRefusal, }) {
|
|
1129
|
+
return {
|
|
1130
|
+
...(prepareCause === undefined ? {} : { prepareCause }),
|
|
1131
|
+
...(readReason === undefined ? {} : { readReason }),
|
|
1132
|
+
...(replacementRefusal === undefined ? {} : { replacementRefusal }),
|
|
1133
|
+
};
|
|
598
1134
|
}
|
|
599
1135
|
// The closed vocabulary a rejected edit can name (EditorAgentConflictCode/EditorAgentFailureCode
|
|
600
1136
|
// plus this port's own transport/no-session markers) is content-free by construction — a fixed
|
|
@@ -634,27 +1170,27 @@ function editContextCorrelationId(deps) {
|
|
|
634
1170
|
return runId !== undefined && isValidCorrelationId(runId) ? runId : UNKNOWN_CORRELATION_ID;
|
|
635
1171
|
}
|
|
636
1172
|
function emitEditFailureDiagnostic(diagnostics, correlationId, error) {
|
|
637
|
-
emitServerDiagnostic(diagnostics, {
|
|
1173
|
+
emitServerDiagnostic(diagnostics, serverDiagnosticFromError({
|
|
638
1174
|
correlationId,
|
|
639
|
-
timestamp: new Date().toISOString(),
|
|
640
1175
|
operation: "coding-runtime.editor-changeset",
|
|
641
1176
|
source: "coding-tool-read-edit-ports.edit",
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
});
|
|
1177
|
+
error,
|
|
1178
|
+
redact: () => "edit-transport-failed",
|
|
1179
|
+
}));
|
|
645
1180
|
}
|
|
646
1181
|
// A governed edit the editor route refused (a policy denial, a conflict, a failed apply) is a
|
|
647
1182
|
// decision the activity log must be able to reconstruct: before 2026-09-03 the only trace was the
|
|
648
1183
|
// in-memory audit feed, and a workbench run that could never edit a file left an empty log. The
|
|
649
1184
|
// reason is the closed refusal vocabulary above, never content, at warn level (#3610).
|
|
650
|
-
function logEditRefused(deps, correlationId, reasonCode,
|
|
1185
|
+
function logEditRefused(deps, correlationId, reasonCode, evidence) {
|
|
651
1186
|
const reason = editRefusalReason(reasonCode);
|
|
652
|
-
const errorKind = prepareCause === undefined
|
|
1187
|
+
const errorKind = evidence.prepareCause === undefined
|
|
653
1188
|
? EDIT_REFUSAL_ERROR_KINDS[reason]
|
|
654
|
-
: EDIT_PREPARE_ERROR_KINDS[prepareCause];
|
|
1189
|
+
: EDIT_PREPARE_ERROR_KINDS[evidence.prepareCause];
|
|
655
1190
|
(deps.activityLog ?? processServerLogSink()).write(activityLogEvent(CODING_RUNTIME_EDIT_REFUSED_OPERATION, { level: "warn", correlationId, errorKind }, {
|
|
656
1191
|
reasonCode: reason,
|
|
657
|
-
...(
|
|
1192
|
+
...refusalContextFields(evidence),
|
|
1193
|
+
...editFormFields(evidence),
|
|
658
1194
|
completeness: "complete",
|
|
659
1195
|
loss: "none",
|
|
660
1196
|
}));
|
|
@@ -704,9 +1240,10 @@ function waitForEditorSession(delayMs, signal) {
|
|
|
704
1240
|
// must not treat the single local checkGuard() here as the only guard: the coordinator is what
|
|
705
1241
|
// binds the mutation authority to the commit boundary.
|
|
706
1242
|
function prepareEdit(deps, request, signal, mutationGuard) {
|
|
707
|
-
const
|
|
708
|
-
if (
|
|
709
|
-
return
|
|
1243
|
+
const validated = validatedChangeset(deps, request, signal, mutationGuard);
|
|
1244
|
+
if ("refused" in validated)
|
|
1245
|
+
return validated;
|
|
1246
|
+
const { changeset } = validated;
|
|
710
1247
|
const binding = mutationBinding(mutationGuard);
|
|
711
1248
|
if (binding === null || (binding === undefined && deps.enforceProducerBinding === true))
|
|
712
1249
|
return { refused: "binding-unavailable" };
|
|
@@ -714,10 +1251,12 @@ function prepareEdit(deps, request, signal, mutationGuard) {
|
|
|
714
1251
|
if (context === undefined || !editorContextMatches(context, binding))
|
|
715
1252
|
return { refused: "editor-context-unavailable" };
|
|
716
1253
|
const action = changesetAction(request, changeset, context);
|
|
717
|
-
const
|
|
1254
|
+
const requiresReview = resolveReviewRequirement(deps);
|
|
1255
|
+
const leaseRequest = registerMutationLease(deps, action, context, binding, mutationGuard, requiresReview);
|
|
718
1256
|
if (binding !== undefined && leaseRequest === undefined)
|
|
719
1257
|
return { refused: "lease-unavailable" };
|
|
720
1258
|
return {
|
|
1259
|
+
requiresReview,
|
|
721
1260
|
action,
|
|
722
1261
|
leaseRequest,
|
|
723
1262
|
signal: signal ?? new AbortController().signal,
|
|
@@ -739,14 +1278,15 @@ function hasLiveWorkspaceAccess(deps) {
|
|
|
739
1278
|
}
|
|
740
1279
|
function validatedChangeset(deps, request, signal, mutationGuard) {
|
|
741
1280
|
if (!hasLiveWorkspaceAccess(deps))
|
|
742
|
-
return "workspace-access-lost";
|
|
1281
|
+
return { refused: "workspace-access-lost" };
|
|
743
1282
|
if (isAborted(signal))
|
|
744
|
-
return "cancelled";
|
|
1283
|
+
return { refused: "cancelled" };
|
|
745
1284
|
if (!checkGuard(mutationGuard))
|
|
746
|
-
return "guard-denied";
|
|
1285
|
+
return { refused: "guard-denied" };
|
|
747
1286
|
if (!("changeset" in request) || !isExactEditorAgentChangeset(request.changeset))
|
|
748
|
-
return "changeset-invalid";
|
|
749
|
-
|
|
1287
|
+
return { refused: "changeset-invalid" };
|
|
1288
|
+
const changeset = normalizeRawSingleFilePatch(request.changeset);
|
|
1289
|
+
return changeset === undefined ? { refused: "changeset-invalid" } : { changeset };
|
|
750
1290
|
}
|
|
751
1291
|
function normalizeRawSingleFilePatch(changeset) {
|
|
752
1292
|
if (!changeset.patch.startsWith(":"))
|
|
@@ -769,7 +1309,7 @@ function discardMutationLease(deps, request) {
|
|
|
769
1309
|
if (request !== undefined)
|
|
770
1310
|
deps.mutationLeaseCoordinator?.discard(request);
|
|
771
1311
|
}
|
|
772
|
-
function registerMutationLease(deps, action, context, binding, mutationGuard) {
|
|
1312
|
+
function registerMutationLease(deps, action, context, binding, mutationGuard, requiresReview) {
|
|
773
1313
|
if (binding === undefined)
|
|
774
1314
|
return undefined;
|
|
775
1315
|
const coordinator = deps.mutationLeaseCoordinator;
|
|
@@ -782,7 +1322,7 @@ function registerMutationLease(deps, action, context, binding, mutationGuard) {
|
|
|
782
1322
|
workspaceRootDigest: binding.workspaceRootDigest,
|
|
783
1323
|
actionId: action.actionId,
|
|
784
1324
|
idempotencyKey: action.idempotencyKey,
|
|
785
|
-
requiresReview
|
|
1325
|
+
requiresReview,
|
|
786
1326
|
mutationGuard: () => checkGuard(mutationGuard),
|
|
787
1327
|
});
|
|
788
1328
|
return registered ? request : undefined;
|