@oscharko-dev/keiko 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +16 -14
- package/dist/ui/static/__next._full.txt +21 -20
- package/dist/ui/static/__next._tree.txt +2 -2
- package/dist/ui/static/_next/static/chunks/000t9p2ysi3dv.css +1 -0
- package/dist/ui/static/_next/static/chunks/01_gc9m97_vw5.js +1 -0
- package/dist/ui/static/_next/static/chunks/02p2_qr2a9511.js +1 -0
- package/dist/ui/static/_next/static/chunks/02ug3u_si269z.js +1 -0
- package/dist/ui/static/_next/static/chunks/03deeo56ud39g.js +1 -0
- package/dist/ui/static/_next/static/chunks/0_8kv51rrhcg-.js +1 -0
- package/dist/ui/static/_next/static/chunks/0ahpt93l7-z9f.js +1 -0
- package/dist/ui/static/_next/static/chunks/0bbv42deftomm.js +1 -0
- package/dist/ui/static/_next/static/chunks/0c3w2ubla6ek6.js +1 -0
- package/dist/ui/static/_next/static/chunks/0e6em7dg4gr6q.js +1 -0
- package/dist/ui/static/_next/static/chunks/0gnizm29lk3ll.js +1 -0
- package/dist/ui/static/_next/static/chunks/0m0w3hleoejwg.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2nubqp1hwandv.js → 0ojvvjnsf38bk.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0we68cbpsgepq.css +1 -0
- package/dist/ui/static/_next/static/chunks/0xqxs7rppw_o5.css +5 -0
- package/dist/ui/static/_next/static/chunks/0z5be09yla9lp.js +1 -0
- package/dist/ui/static/_next/static/chunks/14aztwc0_78th.js +1 -0
- package/dist/ui/static/_next/static/chunks/18-rkk8vbltb8.js +1 -0
- package/dist/ui/static/_next/static/chunks/187yy--dlljjz.js +1 -0
- package/dist/ui/static/_next/static/chunks/1ep9f2fjv7oh7.js +1 -0
- package/dist/ui/static/_next/static/chunks/1hk335vrug1rc.js +1 -0
- package/dist/ui/static/_next/static/chunks/1kacubgk0y2ki.js +1 -0
- package/dist/ui/static/_next/static/chunks/1kxhf3ld28pzk.js +1 -0
- package/dist/ui/static/_next/static/chunks/1lb8ju8qa0d9m.js +1 -0
- package/dist/ui/static/_next/static/chunks/1lrj3d157kay1.js +5 -0
- package/dist/ui/static/_next/static/chunks/1mcajwmbse068.js +7 -0
- package/dist/ui/static/_next/static/chunks/{2l9r80s3qje3v.js → 1piodmepoegnw.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1qsl7dx87n-af.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0vywz1p6au4ri.js → 1uetvnnpa5z22.js} +1 -1
- package/dist/ui/static/_next/static/chunks/1uulmf99vtuyt.js +1 -0
- package/dist/ui/static/_next/static/chunks/202kx3p8axlmr.js +1 -0
- package/dist/ui/static/_next/static/chunks/{0hn7lj400e79p.js → 2179tism08tgt.js} +1 -1
- package/dist/ui/static/_next/static/chunks/21t1klb1thn76.js +1 -0
- package/dist/ui/static/_next/static/chunks/29nzymeooaepv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2_o61-akoq549.js +1 -0
- package/dist/ui/static/_next/static/chunks/{064diuwddstj6.js → 2cn33khz2ae-h.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0b3klia_y6i3z.js → 2dbr8ufwv1hwn.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2dpxapmdvqlh1.js +1 -0
- package/dist/ui/static/_next/static/chunks/2e4prtd3wmn0a.js +1 -0
- package/dist/ui/static/_next/static/chunks/2h_zvmb272ozs.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3qtph5seqciux.css → 2l0gyhe4jpu23.css} +5 -5
- package/dist/ui/static/_next/static/chunks/2l9ens2l3tayx.js +1 -0
- package/dist/ui/static/_next/static/chunks/2oxvgl3qb19wf.js +1 -0
- package/dist/ui/static/_next/static/chunks/2s9-91g2jic6u.js +1 -0
- package/dist/ui/static/_next/static/chunks/2uoxlx30y60nf.js +1 -0
- package/dist/ui/static/_next/static/chunks/2vhgpp_064_st.js +1 -0
- package/dist/ui/static/_next/static/chunks/2xpud5k1hwfvf.js +1 -0
- package/dist/ui/static/_next/static/chunks/2ywqac8g8us1n.css +1 -0
- package/dist/ui/static/_next/static/chunks/3-htoy7v6gx51.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-l-8qt163_y6.js +1 -0
- package/dist/ui/static/_next/static/chunks/3_rof9w-g14_v.js +3 -0
- package/dist/ui/static/_next/static/chunks/3aqtjd-a1ygis.js +1 -0
- package/dist/ui/static/_next/static/chunks/3d-10944zk2o9.js +1 -0
- package/dist/ui/static/_next/static/chunks/3f6svr_pokw6j.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ibevys2o09xx.js +1 -0
- package/dist/ui/static/_next/static/chunks/3iv5llh4xg-7v.js +1 -0
- package/dist/ui/static/_next/static/chunks/3ly6-f_52vfie.js +1 -0
- package/dist/ui/static/_next/static/chunks/3pm8eiwwesd47.js +1 -0
- package/dist/ui/static/_next/static/chunks/3tr04kks52pjw.js +1 -0
- package/dist/ui/static/_next/static/chunks/3wwyidrm300kk.js +1 -0
- package/dist/ui/static/_next/static/chunks/3xw9gh9d5ngza.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zbk4r-6rxn7j.css +2 -0
- package/dist/ui/static/_next/static/chunks/42y02tbxkub8f.js +1 -0
- package/dist/ui/static/_not-found/__next._full.txt +20 -18
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +13 -11
- 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 +20 -18
- package/dist/ui/static/atlassian-connectors/__next._full.txt +22 -20
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +15 -13
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +22 -20
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +21 -20
- package/dist/ui/static/launch/__next._full.txt +25 -23
- package/dist/ui/static/launch/__next._tree.txt +2 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +16 -14
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +25 -23
- package/dist/ui/static/local-knowledge/__next._full.txt +25 -23
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +16 -14
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +23 -21
- 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 +15 -13
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +23 -21
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +25 -23
- package/node_modules/@oscharko-dev/keiko-cli/dist/activity-log-line-reader.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/activity-log-line-reader.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/activity-log-line-reader.js +114 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/audit.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/audit.js +108 -39
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-activity-log.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-activity-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-activity-log.js +14 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-control-state.js +7 -4
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-model-resolution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/cli-model-resolution.js +3 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/evaluate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/evaluate.js +4 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/install-layout.d.ts +60 -7
- package/node_modules/@oscharko-dev/keiko-cli/dist/install-layout.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/install-layout.js +32 -10
- package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-state.js +1 -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 +82 -103
- package/node_modules/@oscharko-dev/keiko-cli/dist/memory.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/memory.js +14 -7
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.js +30 -7
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.d.ts +197 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-activity-log.js +147 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/process-guards.js +49 -36
- package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/prompt-enhancer.js +9 -7
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +8 -3
- package/node_modules/@oscharko-dev/keiko-cli/dist/run.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/run.js +3 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/runner.js +58 -18
- package/node_modules/@oscharko-dev/keiko-cli/dist/security-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/security-log.js +126 -57
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/state-paths.js +29 -6
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze-sufficiency.d.ts +52 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze-sufficiency.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze-sufficiency.js +249 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts +85 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.js +498 -56
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +12 -8
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +147 -99
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts +50 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-incident.js +317 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts +80 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-cli.js +462 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts +480 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query-evidence.js +191 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query.d.ts +169 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-query.js +709 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest-names.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest-names.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest-names.js +27 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest.d.ts +164 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-manifest.js +688 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-scan.d.ts +78 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-scan.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-segment-scan.js +252 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts +43 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-selective-export.js +115 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-tool-catalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-tool-catalog.js +118 -4
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +21 -2
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +885 -177
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-process-stop.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui-process-stop.js +95 -24
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts +13 -4
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +364 -109
- package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/uninstall.js +123 -51
- package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
- 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 +6322 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +8278 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-files.d.ts +54 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-files.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-files.js +215 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-loss.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-loss.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-loss.js +82 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +50926 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +60264 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts +19 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/code-task-acceptance.js +1 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +5 -0
- 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 +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +145 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +532 -6
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +1 -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 +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts +235 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/observability.js +743 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts +216 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/support-incident.js +403 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts +3 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/verification.js +18 -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/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/model-provider.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/model-provider.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/model-provider.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/runner.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/runner.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/dist/runner.js +2 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- 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/types.d.ts +20 -0
- package/node_modules/@oscharko-dev/keiko-git/dist/types.d.ts.map +1 -1
- 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/indexing/embedding-activity-log.d.ts +68 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-activity-log.js +532 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.js +93 -76
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts +120 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator-activity-log.js +686 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.js +150 -207
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/preflight-activity-log.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/preflight-activity-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/preflight-activity-log.js +264 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.js +44 -12
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/repository-pod.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/repository-pod.js +30 -13
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/local-vector-index-port.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/local-vector-index-port.js +25 -6
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-ann-index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/retrieval/usearch-ann-index.js +46 -10
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store-content-encryption.js +71 -20
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.js +54 -17
- 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/consolidate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +24 -5
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.js +35 -12
- 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/db.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/db.js +25 -7
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/migrate-encrypt.d.ts +4 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/migrate-encrypt.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/migrate-encrypt.js +37 -12
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/schema.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/schema.js +34 -10
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault-log.js +35 -12
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/vault.js +24 -6
- 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/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +408 -40
- 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 +237 -61
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts +5 -0
- 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 +72 -12
- 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 +75 -17
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +404 -116
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/prDescription/generate.js +313 -92
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +2 -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 +260 -54
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/speech-to-text-adapter.js +31 -11
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/text-to-speech-adapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/text-to-speech-adapter.js +147 -21
- 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 +190 -44
- 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/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-atomic-rename.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-atomic-rename.js +39 -14
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts +107 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/fs-hardening.js +1998 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +2 -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 -3
- package/node_modules/@oscharko-dev/keiko-security/dist/log-port.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/log-port.js +36 -13
- package/node_modules/@oscharko-dev/keiko-security/dist/macos-keychain.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/macos-keychain.js +31 -15
- package/node_modules/@oscharko-dev/keiko-security/dist/portable-tree-attestation.d.ts +2 -1
- 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 +46 -15
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-protocol.d.ts +23 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-protocol.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-protocol.js +11 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-runtime.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-runtime.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation-runtime.js +115 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/safe-artifact-directory-mutation.js +50 -0
- package/node_modules/@oscharko-dev/keiko-security/dist/secret-vault.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/secret-vault.js +260 -50
- 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/dist/windows-local-volume.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/windows-local-volume.js +32 -7
- package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.js +38 -14
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/credentialRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/credentialRoutes.js +47 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.js +160 -37
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts +48 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-activity.js +336 -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 +28 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts +5 -5
- 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 +49 -66
- 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 +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts +9 -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 +1202 -50
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.js +98 -35
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/activity-log.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/activity-log.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/activity-log.js +83 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codeContextConnector.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codeContextConnector.js +10 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codingRuntimeIssueIntake.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/codingRuntimeIssueIntake.js +45 -23
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubAuthorizationRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubAuthorizationRoutes.js +21 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubCodeContextPort.js +90 -12
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueReaderAuthorization.js +85 -27
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueResolution.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueResolution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/githubIssueResolution.js +118 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/issuePreviewRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-context/issuePreviewRoutes.js +53 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingHistoryRoutes.js +78 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRepositorySearchHandler.js +126 -27
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +857 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +411 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetStore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetStore.js +49 -44
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetTypes.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairBudgetTypes.js +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeCiRepairController.d.ts +9 -1
- 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 +38 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +2 -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 +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts +40 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeHistory.js +372 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeIssueIntake.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeIssueIntake.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeIssueIntake.js +104 -20
- 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 +0 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOperationCoordinator.js +183 -27
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +12 -3
- 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 +963 -223
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +3 -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/codingRuntimeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeRoutes.js +123 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeSnapshotStore.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeSnapshotStore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeSnapshotStore.js +33 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerifiedCommitAuthorityStore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeVerifiedCommitAuthorityStore.js +23 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts +1 -1
- 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 +66 -19
- 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 +46 -5
- 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 +13 -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 +6 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +8 -2
- 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/codingToolReadEditPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +130 -31
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLaneRuntimeProcessBackend.d.ts +1 -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 +54 -47
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/nativeRuntimeProcessBackend.d.ts +1 -1
- 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 +13 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeLaunchProfile.d.ts +5 -2
- 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 +56 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocolSurface.js +24 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.d.ts +10 -1
- 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 +244 -61
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +2 -1
- 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 +268 -368
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeToolSchemas.d.ts +5 -13
- 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 +15 -44
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.js +86 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts +22 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2History.js +438 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +30 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +251 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2Questions.js +125 -0
- 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 +42 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCiRepairRuntime.js +65 -36
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.js +109 -21
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeQuestionPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeQuestionPort.js +3 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +1 -1
- 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 +18 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryDependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionDraftDeliveryDependencies.js +160 -46
- 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 +423 -106
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts +2 -0
- 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 +100 -18
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +6 -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.js +43 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeGitPreparation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionRuntimeGitPreparation.js +51 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitDependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionVerifiedCommitDependencies.js +32 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/readOnlyChildOrchestrator.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/readOnlyChildOrchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/readOnlyChildOrchestrator.js +155 -22
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +1 -1
- 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 +300 -61
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/windowsPortableAuthenticode.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/windowsPortableAuthenticode.js +30 -11
- 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 +240 -61
- 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 +45 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.d.ts +40 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps-activity.js +207 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +69 -58
- 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 +194 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentProducerRoute.js +113 -17
- 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 +7 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/dap/debugLaunchPlan.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/dap/debugLaunchPlan.js +35 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/localHistory/localHistoryCapture.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/localHistory/localHistoryCapture.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/localHistory/localHistoryCapture.js +56 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspNodeAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspNodeAdapter.js +201 -37
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspProcessManager.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/lspProcessManager.js +51 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/providers/javaProvider.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/lsp/providers/javaProvider.js +78 -11
- 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 +55 -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 +211 -65
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/editor/watch/workspaceWatchRoutes.js +33 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/evidence-retention-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/evidence-retention-log.js +36 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +97 -22
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +5 -3
- 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 +220 -39
- 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 +283 -68
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-spend-budget.js +138 -45
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeChatContext.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeChatContext.js +97 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +146 -30
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotReader.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotReader.js +13 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotRegistry.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotRegistry.js +122 -32
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeSnapshotService.js +140 -24
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/approvalEvents.d.ts +6 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/approvalEvents.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/approvalEvents.js +192 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/ciObservationService.js +154 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.js +100 -46
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecks.d.ts +21 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecks.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecks.js +108 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecksRefresh.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryChecksRefresh.js +23 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryFacts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryFacts.js +93 -18
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.d.ts +28 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryLedger.js +123 -33
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryService.js +33 -33
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftDeliveryTemplate.js +97 -24
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftRelatedIssuesActivity.d.ts +150 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftRelatedIssuesActivity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/draftRelatedIssuesActivity.js +64 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts +226 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.js +344 -70
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +159 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +238 -59
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/localMutationRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/localMutationRoutes.js +2 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/mergeExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/mergeExecution.js +79 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionPreparation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionPreparation.js +6 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionProjection.js +133 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionReceiptStore.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionReceiptStore.js +73 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionRoutes.js +147 -50
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionService.js +4 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionTypes.d.ts +12 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prDescriptionTypes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/prMarkReadyExecution.js +138 -42
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/repositoryInitializationRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/repositoryInitializationRoutes.js +51 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestPreparation.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestPreparation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestPreparation.js +145 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitRead.js +43 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/runtimeGitService.js +122 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/syncRoutes.js +4 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/verifiedCommitService.js +194 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/gitProcessActivity.d.ts +5 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/gitProcessActivity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitProcessActivity.js +157 -31
- 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 +514 -74
- 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 +7 -2
- 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 +84 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/harness-context-compactor.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/harness-context-compactor.js +30 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/index.js +20 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +287 -68
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.js +219 -65
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/route.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/native-file-dialog/route.js +30 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-loss-summary.d.ts +233 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-loss-summary.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-loss-summary.js +124 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-persistence.d.ts +8 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-persistence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-persistence.js +25 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-readiness.d.ts +34 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-readiness.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-readiness.js +301 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-store.d.ts +215 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-store.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/activity-log-store.js +755 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.js +6 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-redaction.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-redaction.js +25 -14
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/model-id-evidence.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/model-id-evidence.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/model-id-evidence.js +35 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/runtime-state-dir.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/runtime-state-dir.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/runtime-state-dir.js +23 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts +106 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.js +2504 -481
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts +38 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.js +187 -39
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident-store.d.ts +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident-store.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident-store.js +255 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident.d.ts +107 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/support-incident.js +1052 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.js +66 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/capsuleAdapter.d.ts +3 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/capsuleAdapter.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/capsuleAdapter.js +35 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.js +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/handoffRoutes.js +7 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reCheckRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/reCheckRoutes.js +7 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/runRoutes.js +7 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/reference-id.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/reference-id.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/reference-id.js +90 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/routes.js +12 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-engine.js +3 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/run-handlers.js +33 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/server.js +50 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/sse-write.js +37 -9
- 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 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts +36 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistory.js +191 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.d.ts +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/codingHistoryIsolation.js +44 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.d.ts +1 -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 +61 -37
- package/node_modules/@oscharko-dev/keiko-server/dist/store/journeyOutcomeMigration.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/journeyOutcomeMigration.js +26 -5
- 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 +9 -1
- 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 +31 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/transaction.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/transaction.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/transaction.js +19 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +34 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.js +212 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/workspace-root-access.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/workspace-root-access.js +31 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/terminal-routes.js +6 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolBinder.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolBinder.js +18 -9
- 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 +41 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolLifecycle.js +401 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/tool-catalog/catalogToolSettlement.js +1 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/update-candidate-authority.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-candidate-authority.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-candidate-authority.js +170 -39
- package/node_modules/@oscharko-dev/keiko-server/dist/update-legacy-audit-import.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-legacy-audit-import.js +94 -66
- package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-local-state.js +70 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-normal-startup.js +87 -13
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-sidecar-verification.d.ts +2 -2
- 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 +7 -7
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-staging.js +4 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-activity.js +182 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-assets.js +5 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-portable-evidence.js +21 -47
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts +5 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.js +21 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts +39 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-runtime-activity.js +266 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/update-session.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/update-session.js +138 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-handlers.js +5 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-live-dictation.js +41 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.js +70 -17
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts +11 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-root-denial-log.js +81 -26
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-script-trust.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-script-trust.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/workspace-script-trust.js +135 -37
- package/node_modules/@oscharko-dev/keiko-server/package.json +22 -22
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.js +4 -6
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/opencode.d.ts +2 -2
- 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 +30 -70
- 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 +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- 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 +7 -3
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/dependencies.js +192 -14
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-verification/dist/orchestrator.js +6 -2
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- 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/package.json +3 -3
- package/package.json +32 -28
- package/release-impact.catalog.json +126 -0
- package/scripts/lib/local-state-audit.mjs +94 -0
- package/vendor/oscharko-dev-keiko-cli-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.0.4.tgz → oscharko-dev-keiko-connectors-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evaluations-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.0.4.tgz → oscharko-dev-keiko-evidence-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.0.4.tgz → oscharko-dev-keiko-harness-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.0.4.tgz → oscharko-dev-keiko-memory-capture-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.0.4.tgz → oscharko-dev-keiko-memory-governance-1.1.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.0.4.tgz → oscharko-dev-keiko-memory-retrieval-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.1.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.0.4.tgz → oscharko-dev-keiko-quality-intelligence-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.0.4.tgz → oscharko-dev-keiko-sdk-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-security-1.1.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.0.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-tools-1.0.4.tgz → oscharko-dev-keiko-tools-1.1.0.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.1.0.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.0.4.tgz → oscharko-dev-keiko-workflows-1.1.0.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.0.4.tgz → oscharko-dev-keiko-workspace-1.1.0.tgz} +0 -0
- package/dist/ui/static/_next/static/chunks/0-tss9mlvjuz4.js +0 -1
- package/dist/ui/static/_next/static/chunks/04lb-38e89aw8.js +0 -1
- package/dist/ui/static/_next/static/chunks/04t-d0js_hvfr.js +0 -1
- package/dist/ui/static/_next/static/chunks/086jxcgou7s_5.js +0 -1
- package/dist/ui/static/_next/static/chunks/08pxrik1lm06d.js +0 -5
- package/dist/ui/static/_next/static/chunks/093r62_9c_psx.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_u5vd-_66bpj.js +0 -1
- package/dist/ui/static/_next/static/chunks/0gsb-naamu9g1.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ix9hk8cnb0as.js +0 -1
- package/dist/ui/static/_next/static/chunks/0n9uef9g17pxd.js +0 -1
- package/dist/ui/static/_next/static/chunks/0o131urxtkbxj.js +0 -1
- package/dist/ui/static/_next/static/chunks/0pac-465ukeam.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qzzopo8q0m1e.js +0 -1
- package/dist/ui/static/_next/static/chunks/0vvfq-eocx502.js +0 -1
- package/dist/ui/static/_next/static/chunks/15wh9-75zvro2.js +0 -1
- package/dist/ui/static/_next/static/chunks/160x2go4zkjhx.js +0 -1
- package/dist/ui/static/_next/static/chunks/17yrtbw7mk5py.css +0 -2
- package/dist/ui/static/_next/static/chunks/1kgbe4la7mty5.js +0 -1
- package/dist/ui/static/_next/static/chunks/1peg9ve597086.js +0 -1
- package/dist/ui/static/_next/static/chunks/1q6j3gd8d86-v.css +0 -2
- package/dist/ui/static/_next/static/chunks/1t_6hc_5pxuqd.js +0 -1
- package/dist/ui/static/_next/static/chunks/1v4mpk8t6w8_7.js +0 -1
- package/dist/ui/static/_next/static/chunks/1yj6x688jjk-a.js +0 -1
- package/dist/ui/static/_next/static/chunks/21djhsnzx069x.js +0 -1
- package/dist/ui/static/_next/static/chunks/23e-psiwdsaxk.js +0 -1
- package/dist/ui/static/_next/static/chunks/289h3-vke8o67.js +0 -1
- package/dist/ui/static/_next/static/chunks/2dxo0g3208ag1.js +0 -1
- package/dist/ui/static/_next/static/chunks/2jadbwshuwe_n.js +0 -1
- package/dist/ui/static/_next/static/chunks/2u9u5i8o6vd-w.js +0 -1
- package/dist/ui/static/_next/static/chunks/2vj6gqk9lh7yv.js +0 -1
- package/dist/ui/static/_next/static/chunks/3-k1y9vbxcms8.js +0 -3
- package/dist/ui/static/_next/static/chunks/3137i2nt475lq.js +0 -1
- package/dist/ui/static/_next/static/chunks/3_jzs5uvplshk.js +0 -1
- package/dist/ui/static/_next/static/chunks/3d-jscai6hb55.js +0 -1
- package/dist/ui/static/_next/static/chunks/3dkw81rui6ry8.js +0 -1
- package/dist/ui/static/_next/static/chunks/3f3ici8rsavir.js +0 -1
- package/dist/ui/static/_next/static/chunks/3f_-h2lm9ml4b.js +0 -1
- package/dist/ui/static/_next/static/chunks/3frfm_q9cqdtg.js +0 -1
- package/dist/ui/static/_next/static/chunks/3irz7sn3e2ix3.js +0 -1
- package/dist/ui/static/_next/static/chunks/3j1p83q4cv4cv.js +0 -1
- package/dist/ui/static/_next/static/chunks/3kgmrssgqwg_h.js +0 -1
- package/dist/ui/static/_next/static/chunks/3lc67g1jowxt_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3pgmij812w0aa.css +0 -1
- package/dist/ui/static/_next/static/chunks/3q3ds5x5j4w7j.js +0 -1
- package/dist/ui/static/_next/static/chunks/3r2v5s5l7jkoj.js +0 -1
- package/dist/ui/static/_next/static/chunks/3w9c58yrtr4oj.js +0 -1
- package/dist/ui/static/_next/static/chunks/3wxm1wke5887n.js +0 -7
- package/dist/ui/static/_next/static/chunks/3ymz8bp4uzhhh.js +0 -1
- package/vendor/oscharko-dev-keiko-cli-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-evaluations-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-git-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-local-knowledge-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-vault-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-security-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.0.4.tgz +0 -0
- package/vendor/oscharko-dev-keiko-verification-1.0.4.tgz +0 -0
- /package/dist/ui/static/_next/static/{t7N9H4GMepHS6cfU2Wj24 → pnaCuBv6v6k-xKyv71Bct}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{t7N9H4GMepHS6cfU2Wj24 → pnaCuBv6v6k-xKyv71Bct}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{t7N9H4GMepHS6cfU2Wj24 → pnaCuBv6v6k-xKyv71Bct}/_ssgManifest.js +0 -0
|
@@ -11,14 +11,9 @@
|
|
|
11
11
|
// browser cannot inject an arbitrary join key onto another request's timeline;
|
|
12
12
|
// * the optional Git-change response identity is a closed, body-free contract and is projected
|
|
13
13
|
// field-by-field; unknown browser fields can never enter the activity log;
|
|
14
|
-
// * the message text is
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
-
// `"clientnote"`, which is not denied, so the existing per-value guards (length/secret/
|
|
18
|
-
// personal/prose/path) do the actual content-safety work on the value itself — the same
|
|
19
|
-
// "structural, not caller discipline" principle `log-redaction.ts`'s own header states. No new
|
|
20
|
-
// redaction path is written here; the existing choke point is applied a second time,
|
|
21
|
-
// server-side, exactly as it is for every other logged field.
|
|
14
|
+
// * the hostile message text is reduced to a domain-separated SHA-256 digest before it reaches
|
|
15
|
+
// the logger. Length bounds and generic redaction are useful defenses, but neither makes an
|
|
16
|
+
// arbitrary client sentence an opaque identifier; the raw message never enters the event.
|
|
22
17
|
//
|
|
23
18
|
// Rate limiting reuses `createInlineCompletionRateLimiter` (the editor's existing token-bucket
|
|
24
19
|
// primitive — AGENTS.md §5 forbids a second one) as a single, process-wide bucket: a flapping tab
|
|
@@ -27,8 +22,29 @@
|
|
|
27
22
|
// the browser — and a dropped report is still counted, mirroring `server-log.ts`'s own
|
|
28
23
|
// `reportServerLogFailure` throttle-and-count-suppressed shape: the first drop after a quiet window
|
|
29
24
|
// is logged immediately, later drops in the same window are counted silently, and the count is
|
|
30
|
-
// flushed on the next window's first drop
|
|
31
|
-
|
|
25
|
+
// flushed on the next window's first drop — or, at the latest, by
|
|
26
|
+
// `flushClientDiagnosticsIngestCounts` when the process shuts down (#3532).
|
|
27
|
+
//
|
|
28
|
+
// Every refused report (malformed JSON, a shape the contract rejects, an oversized or cancelled
|
|
29
|
+
// body) gets its own throttled `client.diagnostic.rejected` line, and every drop, rejection and
|
|
30
|
+
// browser-reported delivery loss is also counted in the process-wide loss ledger that the
|
|
31
|
+
// `activity-log.loss` summary persists. None of those paths ever carries the refused content.
|
|
32
|
+
//
|
|
33
|
+
// #3557: a third shape, a binding report, carries a restored window's binding outcome
|
|
34
|
+
// (`client.binding.resolved`/`client.binding.target-missing`) with closed values only.
|
|
35
|
+
//
|
|
36
|
+
// KEIKO-3557: this route accepts TWO closed report shapes on the same rate limit, size bound, and
|
|
37
|
+
// rejection/loss accounting above. A message report (the shape this header describes) reaches
|
|
38
|
+
// `client.diagnostic` — a FAILURE, always at warn. A stage report (`useWindowStageEvidence`,
|
|
39
|
+
// keiko-ui: a desktop window placeholder mounting and later unmounting) reaches
|
|
40
|
+
// `client.stage.started`/`client.stage.settled` instead — the ORDINARY case, at info, with no
|
|
41
|
+
// `errorKind`. Routing routine evidence through the failure-shaped operation is exactly the defect
|
|
42
|
+
// this pair fixes: a live log showed 416 of 449 `client.diagnostic` lines were stage evidence, all
|
|
43
|
+
// misclassified warn/unknown and burying the rare real failures a `keiko support analyze --clusters`
|
|
44
|
+
// pass needs to find.
|
|
45
|
+
import { CLIENT_BINDING_FAILURE_OUTCOMES, CLIENT_SESSION_REPAIR_ROUTINE_OUTCOMES, isClientBindingIngestRequest, isClientDiagnosticIngestRequest, isClientSessionRepairIngestRequest, isClientStageIngestRequest, } from "@oscharko-dev/keiko-contracts/runtime/diagnostics";
|
|
46
|
+
import { activityLogEvent, defineActivityLogOperation, recordActivityLogLoss, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
47
|
+
import { sha256Hex } from "@oscharko-dev/keiko-security/hashing";
|
|
32
48
|
import { RequestBodyCancelledError, RequestBodyTooLargeError, readBoundedRequestBody, } from "./bounded-request-body.js";
|
|
33
49
|
import { correlationIdOrUnknown, isValidCorrelationId } from "./correlation.js";
|
|
34
50
|
import { createInlineCompletionRateLimiter, } from "./editor/inlineCompletionRateLimiter.js";
|
|
@@ -41,7 +57,670 @@ const MAX_CLIENT_DIAGNOSTIC_BODY_BYTES = 4_096;
|
|
|
41
57
|
// rolling minute is generous for genuine crash/error reporting and bounds a flooding or hostile
|
|
42
58
|
// page. `minIntervalMs: 0` disables the limiter's own burst/cooldown gate, so only the sliding
|
|
43
59
|
// window cap below applies.
|
|
44
|
-
|
|
60
|
+
//
|
|
61
|
+
// Two sliding windows (#3557): routine evidence (a stage, a binding that resolved, a session repair
|
|
62
|
+
// that recovered) spends its own budget, so a page load's dozen stage reports can never use up the
|
|
63
|
+
// budget a failure report needs.
|
|
64
|
+
const CLIENT_DIAGNOSTIC_RATE_LIMIT_KEYS = {
|
|
65
|
+
failure: "client-diagnostics",
|
|
66
|
+
routine: "client-diagnostics-routine",
|
|
67
|
+
};
|
|
68
|
+
const CLIENT_DIAGNOSTIC_RATE_LIMITED_OPERATION = defineActivityLogOperation({
|
|
69
|
+
contractKind: "activity-log-operation",
|
|
70
|
+
schemaVersion: 1,
|
|
71
|
+
op: "client.diagnostic.rate-limited",
|
|
72
|
+
category: "diagnostic",
|
|
73
|
+
owner: "keiko-server",
|
|
74
|
+
emitter: "client-diagnostics-routes.noticeRateLimitedDrop",
|
|
75
|
+
fields: {
|
|
76
|
+
suppressedDrops: { type: "integer", dataClass: "count", required: false },
|
|
77
|
+
// Which budget overflowed, so a dropped failure report is never hidden behind routine
|
|
78
|
+
// evidence (#3557 review).
|
|
79
|
+
budget: {
|
|
80
|
+
type: "string",
|
|
81
|
+
dataClass: "closed-enum",
|
|
82
|
+
required: true,
|
|
83
|
+
values: ["failure", "routine"],
|
|
84
|
+
},
|
|
85
|
+
trigger: {
|
|
86
|
+
type: "string",
|
|
87
|
+
dataClass: "closed-enum",
|
|
88
|
+
required: false,
|
|
89
|
+
values: ["window", "shutdown-flush"],
|
|
90
|
+
},
|
|
91
|
+
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
92
|
+
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
93
|
+
},
|
|
94
|
+
causal: "correlation",
|
|
95
|
+
lifecycle: "loss",
|
|
96
|
+
analyzerProjection: "failure-cluster",
|
|
97
|
+
failureClasses: ["client-diagnostic-rate-limit"],
|
|
98
|
+
proofIds: ["client.diagnostic.rate-limited.line"],
|
|
99
|
+
releaseImpact: "patch",
|
|
100
|
+
});
|
|
101
|
+
const CLIENT_DIAGNOSTIC_REJECTED_OPERATION = defineActivityLogOperation({
|
|
102
|
+
contractKind: "activity-log-operation",
|
|
103
|
+
schemaVersion: 1,
|
|
104
|
+
op: "client.diagnostic.rejected",
|
|
105
|
+
category: "diagnostic",
|
|
106
|
+
owner: "keiko-server",
|
|
107
|
+
emitter: "client-diagnostics-routes.noticeRejectedReport",
|
|
108
|
+
fields: {
|
|
109
|
+
rejection: {
|
|
110
|
+
type: "string",
|
|
111
|
+
dataClass: "closed-enum",
|
|
112
|
+
required: true,
|
|
113
|
+
values: ["invalid-json", "invalid-shape", "too-large", "cancelled"],
|
|
114
|
+
},
|
|
115
|
+
suppressedRejections: { type: "integer", dataClass: "count", required: false },
|
|
116
|
+
trigger: {
|
|
117
|
+
type: "string",
|
|
118
|
+
dataClass: "closed-enum",
|
|
119
|
+
required: false,
|
|
120
|
+
values: ["window", "shutdown-flush"],
|
|
121
|
+
},
|
|
122
|
+
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
123
|
+
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
124
|
+
},
|
|
125
|
+
causal: "correlation",
|
|
126
|
+
lifecycle: "loss",
|
|
127
|
+
analyzerProjection: "failure-cluster",
|
|
128
|
+
failureClasses: ["client-diagnostic-rejection"],
|
|
129
|
+
proofIds: ["client.diagnostic.rejected.line", "client.diagnostic.rejected.shutdown-flush"],
|
|
130
|
+
releaseImpact: "minor",
|
|
131
|
+
});
|
|
132
|
+
const CLIENT_VOICE_DIALOGUE_OPERATION = defineActivityLogOperation({
|
|
133
|
+
contractKind: "activity-log-operation",
|
|
134
|
+
schemaVersion: 1,
|
|
135
|
+
op: "voice.dialogue.stage",
|
|
136
|
+
category: "diagnostic",
|
|
137
|
+
owner: "keiko-server",
|
|
138
|
+
emitter: "client-diagnostics-routes.logVoiceDialogueStage",
|
|
139
|
+
fields: {
|
|
140
|
+
voiceCaptureError: {
|
|
141
|
+
type: "string",
|
|
142
|
+
dataClass: "closed-enum",
|
|
143
|
+
required: false,
|
|
144
|
+
values: [
|
|
145
|
+
"type-error",
|
|
146
|
+
"range-error",
|
|
147
|
+
"invalid-state",
|
|
148
|
+
"not-supported",
|
|
149
|
+
"security",
|
|
150
|
+
"not-readable",
|
|
151
|
+
"other",
|
|
152
|
+
],
|
|
153
|
+
},
|
|
154
|
+
voiceCaptureReason: {
|
|
155
|
+
type: "string",
|
|
156
|
+
dataClass: "closed-enum",
|
|
157
|
+
required: false,
|
|
158
|
+
values: [
|
|
159
|
+
"vad-unavailable",
|
|
160
|
+
"speech-observed",
|
|
161
|
+
"renewal-unsupported",
|
|
162
|
+
"replacement-create-failed",
|
|
163
|
+
"replacement-start-failed",
|
|
164
|
+
"previous-stop-failed",
|
|
165
|
+
"replacement-stop-failed",
|
|
166
|
+
"unknown-failure",
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
voiceDialogueStage: {
|
|
170
|
+
type: "string",
|
|
171
|
+
dataClass: "closed-enum",
|
|
172
|
+
required: true,
|
|
173
|
+
values: [
|
|
174
|
+
"started",
|
|
175
|
+
"turn-submitted",
|
|
176
|
+
"answer-ready",
|
|
177
|
+
"playback-settled",
|
|
178
|
+
"playback-fallback",
|
|
179
|
+
"capture-bound-reached",
|
|
180
|
+
"capture-renewed",
|
|
181
|
+
"interrupted",
|
|
182
|
+
"stopped",
|
|
183
|
+
],
|
|
184
|
+
},
|
|
185
|
+
clientBufferEvicted: { type: "integer", dataClass: "count", required: false },
|
|
186
|
+
clientPostsThrottled: { type: "integer", dataClass: "count", required: false },
|
|
187
|
+
clientPostsFailed: { type: "integer", dataClass: "count", required: false },
|
|
188
|
+
clientRejectionsSuppressed: { type: "integer", dataClass: "count", required: false },
|
|
189
|
+
clientErrorsSuppressed: { type: "integer", dataClass: "count", required: false },
|
|
190
|
+
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
191
|
+
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
192
|
+
},
|
|
193
|
+
causal: "correlation",
|
|
194
|
+
lifecycle: "state",
|
|
195
|
+
analyzerProjection: "timeline",
|
|
196
|
+
failureClasses: ["client-diagnostic"],
|
|
197
|
+
proofIds: ["voice.dialogue.stage.line"],
|
|
198
|
+
releaseImpact: "patch",
|
|
199
|
+
});
|
|
200
|
+
const CLIENT_MARKDOWN_LAYOUT_OPERATION = defineActivityLogOperation({
|
|
201
|
+
contractKind: "activity-log-operation",
|
|
202
|
+
schemaVersion: 1,
|
|
203
|
+
op: "client.markdown.layout",
|
|
204
|
+
category: "diagnostic",
|
|
205
|
+
owner: "keiko-server",
|
|
206
|
+
emitter: "client-diagnostics-routes.logMarkdownLayout",
|
|
207
|
+
fields: {
|
|
208
|
+
messageId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
|
|
209
|
+
listNumbering: {
|
|
210
|
+
type: "string",
|
|
211
|
+
dataClass: "closed-enum",
|
|
212
|
+
required: true,
|
|
213
|
+
values: ["source-start"],
|
|
214
|
+
},
|
|
215
|
+
listStart: { type: "integer", dataClass: "count", required: false },
|
|
216
|
+
listIndex: { type: "integer", dataClass: "count", required: false },
|
|
217
|
+
depth: { type: "integer", dataClass: "count", required: false },
|
|
218
|
+
clientBufferEvicted: { type: "integer", dataClass: "count", required: false },
|
|
219
|
+
clientPostsThrottled: { type: "integer", dataClass: "count", required: false },
|
|
220
|
+
clientPostsFailed: { type: "integer", dataClass: "count", required: false },
|
|
221
|
+
clientRejectionsSuppressed: { type: "integer", dataClass: "count", required: false },
|
|
222
|
+
clientErrorsSuppressed: { type: "integer", dataClass: "count", required: false },
|
|
223
|
+
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
224
|
+
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
225
|
+
},
|
|
226
|
+
causal: "correlation",
|
|
227
|
+
lifecycle: "state",
|
|
228
|
+
analyzerProjection: "timeline",
|
|
229
|
+
failureClasses: ["client-diagnostic"],
|
|
230
|
+
proofIds: ["client.markdown.layout.line"],
|
|
231
|
+
releaseImpact: "patch",
|
|
232
|
+
});
|
|
233
|
+
const CLIENT_DIAGNOSTIC_OPERATION = defineActivityLogOperation({
|
|
234
|
+
contractKind: "activity-log-operation",
|
|
235
|
+
schemaVersion: 1,
|
|
236
|
+
op: "client.diagnostic",
|
|
237
|
+
category: "diagnostic",
|
|
238
|
+
owner: "keiko-server",
|
|
239
|
+
emitter: "client-diagnostics-routes.logClientDiagnostic",
|
|
240
|
+
fields: {
|
|
241
|
+
codingIssueOutcome: {
|
|
242
|
+
type: "string",
|
|
243
|
+
dataClass: "closed-enum",
|
|
244
|
+
required: false,
|
|
245
|
+
values: ["multiple-issues"],
|
|
246
|
+
},
|
|
247
|
+
errorClass: { type: "string", dataClass: "error-kind", required: false, maxLength: 64 },
|
|
248
|
+
frames: {
|
|
249
|
+
type: "string-array",
|
|
250
|
+
dataClass: "safe-platform-class",
|
|
251
|
+
required: false,
|
|
252
|
+
maxLength: 512,
|
|
253
|
+
maxItems: 8,
|
|
254
|
+
},
|
|
255
|
+
causeChain: {
|
|
256
|
+
type: "string-array",
|
|
257
|
+
dataClass: "error-kind",
|
|
258
|
+
required: false,
|
|
259
|
+
maxLength: 128,
|
|
260
|
+
maxItems: 5,
|
|
261
|
+
},
|
|
262
|
+
moduleLoadFailure: {
|
|
263
|
+
type: "string",
|
|
264
|
+
dataClass: "closed-enum",
|
|
265
|
+
required: false,
|
|
266
|
+
values: ["git-sync", "git-history"],
|
|
267
|
+
},
|
|
268
|
+
clientNoteDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
|
|
269
|
+
readyState: { type: "integer", dataClass: "count", required: false },
|
|
270
|
+
clientKind: {
|
|
271
|
+
type: "string",
|
|
272
|
+
dataClass: "closed-enum",
|
|
273
|
+
required: false,
|
|
274
|
+
values: [
|
|
275
|
+
"boundary",
|
|
276
|
+
"unhandled-rejection",
|
|
277
|
+
"window-error",
|
|
278
|
+
"sse-error",
|
|
279
|
+
"voice-dialogue",
|
|
280
|
+
"voice-playback",
|
|
281
|
+
"markdown-layout",
|
|
282
|
+
"other",
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
voiceCaptureError: {
|
|
286
|
+
type: "string",
|
|
287
|
+
dataClass: "closed-enum",
|
|
288
|
+
required: false,
|
|
289
|
+
values: [
|
|
290
|
+
"type-error",
|
|
291
|
+
"range-error",
|
|
292
|
+
"invalid-state",
|
|
293
|
+
"not-supported",
|
|
294
|
+
"security",
|
|
295
|
+
"not-readable",
|
|
296
|
+
"other",
|
|
297
|
+
],
|
|
298
|
+
},
|
|
299
|
+
voiceCaptureReason: {
|
|
300
|
+
type: "string",
|
|
301
|
+
dataClass: "closed-enum",
|
|
302
|
+
required: false,
|
|
303
|
+
values: [
|
|
304
|
+
"vad-unavailable",
|
|
305
|
+
"speech-observed",
|
|
306
|
+
"renewal-unsupported",
|
|
307
|
+
"replacement-create-failed",
|
|
308
|
+
"replacement-start-failed",
|
|
309
|
+
"previous-stop-failed",
|
|
310
|
+
"replacement-stop-failed",
|
|
311
|
+
"unknown-failure",
|
|
312
|
+
],
|
|
313
|
+
},
|
|
314
|
+
voiceDialogueStage: {
|
|
315
|
+
type: "string",
|
|
316
|
+
dataClass: "closed-enum",
|
|
317
|
+
required: false,
|
|
318
|
+
values: [
|
|
319
|
+
"started",
|
|
320
|
+
"preparation-failed",
|
|
321
|
+
"turn-submitted",
|
|
322
|
+
"queue-unavailable",
|
|
323
|
+
"answer-ready",
|
|
324
|
+
"delivery-failed",
|
|
325
|
+
"delivery-cancelled",
|
|
326
|
+
"delivery-rejected",
|
|
327
|
+
"capture-renewal-failed",
|
|
328
|
+
"playback-settled",
|
|
329
|
+
"playback-fallback",
|
|
330
|
+
"capture-bound-reached",
|
|
331
|
+
"capture-renewed",
|
|
332
|
+
"interrupted",
|
|
333
|
+
"stopped",
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
action: {
|
|
337
|
+
type: "string",
|
|
338
|
+
dataClass: "closed-enum",
|
|
339
|
+
required: false,
|
|
340
|
+
values: ["review", "approve", "apply"],
|
|
341
|
+
},
|
|
342
|
+
disposition: {
|
|
343
|
+
type: "string",
|
|
344
|
+
dataClass: "closed-enum",
|
|
345
|
+
required: false,
|
|
346
|
+
values: ["accepted", "discarded"],
|
|
347
|
+
},
|
|
348
|
+
relationshipId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
|
|
349
|
+
snapshotDigest: { type: "string", dataClass: "digest", required: false, maxLength: 64 },
|
|
350
|
+
proposalId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 128 },
|
|
351
|
+
outcome: {
|
|
352
|
+
type: "string",
|
|
353
|
+
dataClass: "closed-enum",
|
|
354
|
+
required: false,
|
|
355
|
+
values: ["preview", "approved", "observed", "blocked"],
|
|
356
|
+
},
|
|
357
|
+
repositoryId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
|
|
358
|
+
workspaceId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
|
|
359
|
+
historyScopeReason: {
|
|
360
|
+
type: "string",
|
|
361
|
+
dataClass: "closed-enum",
|
|
362
|
+
required: false,
|
|
363
|
+
values: [
|
|
364
|
+
"repository-mismatch",
|
|
365
|
+
"workspace-mismatch",
|
|
366
|
+
"activation-cancelled",
|
|
367
|
+
"activation-superseded",
|
|
368
|
+
"detail-cleared",
|
|
369
|
+
],
|
|
370
|
+
},
|
|
371
|
+
historyTaskId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
|
|
372
|
+
requestedScopeId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
|
|
373
|
+
currentScopeId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
|
|
374
|
+
requestedWorkspaceId: {
|
|
375
|
+
type: "string",
|
|
376
|
+
dataClass: "opaque-id",
|
|
377
|
+
required: false,
|
|
378
|
+
maxLength: 256,
|
|
379
|
+
},
|
|
380
|
+
currentWorkspaceId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
|
|
381
|
+
targetWorkspaceId: { type: "string", dataClass: "opaque-id", required: false, maxLength: 256 },
|
|
382
|
+
clientBufferEvicted: { type: "integer", dataClass: "count", required: false },
|
|
383
|
+
clientPostsThrottled: { type: "integer", dataClass: "count", required: false },
|
|
384
|
+
clientPostsFailed: { type: "integer", dataClass: "count", required: false },
|
|
385
|
+
clientRejectionsSuppressed: { type: "integer", dataClass: "count", required: false },
|
|
386
|
+
clientErrorsSuppressed: { type: "integer", dataClass: "count", required: false },
|
|
387
|
+
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
388
|
+
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
389
|
+
},
|
|
390
|
+
causal: "correlation",
|
|
391
|
+
lifecycle: "failure",
|
|
392
|
+
analyzerProjection: "failure-cluster",
|
|
393
|
+
failureClasses: ["client-diagnostic"],
|
|
394
|
+
proofIds: ["client.diagnostic.line"],
|
|
395
|
+
releaseImpact: "patch",
|
|
396
|
+
});
|
|
397
|
+
// Kebab-case persisted vocabulary for the `stage` field below. The registration generator's closed
|
|
398
|
+
// value pattern refuses the space-separated wire ids (`ClientStageId`, e.g. "chat window chunk")
|
|
399
|
+
// outright, and every other closed-enum field this module persists is already kebab-case
|
|
400
|
+
// (`clientKind`, `action`, `disposition`, `outcome`). The `satisfies` clause keeps this map
|
|
401
|
+
// exhaustive: a new `ClientStageId` the contracts leaf adds without a matching entry here fails
|
|
402
|
+
// typecheck, not a gate.
|
|
403
|
+
const CLIENT_STAGE_ACTIVITY_LOG_IDS = [
|
|
404
|
+
"window-chunk",
|
|
405
|
+
"chat-window-chunk",
|
|
406
|
+
"editor-widget-chunk",
|
|
407
|
+
"files-widget-chunk",
|
|
408
|
+
"chat-bind",
|
|
409
|
+
];
|
|
410
|
+
const CLIENT_STAGE_ACTIVITY_LOG_ID_BY_WIRE_ID = {
|
|
411
|
+
"window chunk": "window-chunk",
|
|
412
|
+
"chat window chunk": "chat-window-chunk",
|
|
413
|
+
"editor widget chunk": "editor-widget-chunk",
|
|
414
|
+
"files widget chunk": "files-widget-chunk",
|
|
415
|
+
"chat bind": "chat-bind",
|
|
416
|
+
};
|
|
417
|
+
// KEIKO-3557: routine desktop-window stage evidence (`useWindowStageEvidence`, keiko-ui) rides its
|
|
418
|
+
// own lifecycle operations instead of the failure-shaped `CLIENT_DIAGNOSTIC_OPERATION` above — a
|
|
419
|
+
// stage that starts and settles is the ordinary case, not a warning. Modelled on the non-failure
|
|
420
|
+
// `coding-app-session.channel.opened`/`.closed` pair (codingAppSessionRoutes.ts): `start`/`end`
|
|
421
|
+
// lifecycle, `timeline` projection, no `errorKind`, at level info.
|
|
422
|
+
const CLIENT_STAGE_FIELDS = {
|
|
423
|
+
stage: {
|
|
424
|
+
type: "string",
|
|
425
|
+
dataClass: "closed-enum",
|
|
426
|
+
required: true,
|
|
427
|
+
values: CLIENT_STAGE_ACTIVITY_LOG_IDS,
|
|
428
|
+
},
|
|
429
|
+
ordinal: { type: "integer", dataClass: "count", required: true },
|
|
430
|
+
};
|
|
431
|
+
const CLIENT_STAGE_STARTED_OPERATION = defineActivityLogOperation({
|
|
432
|
+
contractKind: "activity-log-operation",
|
|
433
|
+
schemaVersion: 1,
|
|
434
|
+
op: "client.stage.started",
|
|
435
|
+
category: "diagnostic",
|
|
436
|
+
owner: "keiko-server",
|
|
437
|
+
emitter: "client-diagnostics-routes.logClientStageStarted",
|
|
438
|
+
fields: CLIENT_STAGE_FIELDS,
|
|
439
|
+
causal: "correlation",
|
|
440
|
+
lifecycle: "start",
|
|
441
|
+
analyzerProjection: "timeline",
|
|
442
|
+
failureClasses: ["client-stage"],
|
|
443
|
+
proofIds: ["client.stage.started.line"],
|
|
444
|
+
releaseImpact: "patch",
|
|
445
|
+
});
|
|
446
|
+
const CLIENT_STAGE_SETTLED_OPERATION = defineActivityLogOperation({
|
|
447
|
+
contractKind: "activity-log-operation",
|
|
448
|
+
schemaVersion: 1,
|
|
449
|
+
op: "client.stage.settled",
|
|
450
|
+
category: "diagnostic",
|
|
451
|
+
owner: "keiko-server",
|
|
452
|
+
emitter: "client-diagnostics-routes.logClientStageSettled",
|
|
453
|
+
fields: CLIENT_STAGE_FIELDS,
|
|
454
|
+
causal: "correlation",
|
|
455
|
+
lifecycle: "end",
|
|
456
|
+
analyzerProjection: "timeline",
|
|
457
|
+
failureClasses: ["client-stage"],
|
|
458
|
+
proofIds: ["client.stage.settled.line"],
|
|
459
|
+
releaseImpact: "patch",
|
|
460
|
+
});
|
|
461
|
+
// #3557 review: a restored window's binding outcome, with the closed shape of its persisted
|
|
462
|
+
// reference. `resolved` is the ordinary case at info; `target-missing` is the failure at warn,
|
|
463
|
+
// so a reference lost at persistence (`redacted`) and a target that is really gone (`uuid`) are
|
|
464
|
+
// told apart in the log instead of collapsing into one message digest with an unknown error kind.
|
|
465
|
+
// Literal here, as the registry generator requires; the assignment in `clientBindingFields` fails
|
|
466
|
+
// typecheck if the contracts leaf ever adds a surface or shape these do not list.
|
|
467
|
+
const CLIENT_BINDING_ACTIVITY_LOG_SURFACES = ["chat-window"];
|
|
468
|
+
const CLIENT_BINDING_ACTIVITY_LOG_REFERENCE_SHAPES = [
|
|
469
|
+
"uuid",
|
|
470
|
+
"opaque",
|
|
471
|
+
"redacted",
|
|
472
|
+
"fingerprint",
|
|
473
|
+
"user-selected",
|
|
474
|
+
];
|
|
475
|
+
const CLIENT_BINDING_FIELDS = {
|
|
476
|
+
surface: {
|
|
477
|
+
type: "string",
|
|
478
|
+
dataClass: "closed-enum",
|
|
479
|
+
required: true,
|
|
480
|
+
values: CLIENT_BINDING_ACTIVITY_LOG_SURFACES,
|
|
481
|
+
},
|
|
482
|
+
referenceShape: {
|
|
483
|
+
type: "string",
|
|
484
|
+
dataClass: "closed-enum",
|
|
485
|
+
required: true,
|
|
486
|
+
values: CLIENT_BINDING_ACTIVITY_LOG_REFERENCE_SHAPES,
|
|
487
|
+
},
|
|
488
|
+
// The chat id trips the card-number heuristic: a raw UUID, or one found again after persistence
|
|
489
|
+
// redacted it (through its fingerprint, or chosen by the person).
|
|
490
|
+
heuristicFlagged: { type: "boolean", dataClass: "closed-enum", required: true },
|
|
491
|
+
// The digest of the window's own persisted id, computed here from the validated reference: two
|
|
492
|
+
// windows restored from one list answer stay apart, and a later failure of the same window
|
|
493
|
+
// carries the same digest (#3557 review).
|
|
494
|
+
bindingDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
|
|
495
|
+
// How many list loads decided the outcome, when more than the line names; the line is then
|
|
496
|
+
// `partial` with `loss: event-location-unknown`, never silently complete.
|
|
497
|
+
decidingLoadCount: { type: "integer", dataClass: "count", required: false },
|
|
498
|
+
// The other list loads a legacy binding's verdict depended on, beyond the line's correlation id.
|
|
499
|
+
relatedCorrelationIds: {
|
|
500
|
+
type: "string-array",
|
|
501
|
+
dataClass: "opaque-id",
|
|
502
|
+
required: false,
|
|
503
|
+
maxLength: 128,
|
|
504
|
+
maxItems: 63,
|
|
505
|
+
},
|
|
506
|
+
};
|
|
507
|
+
const CLIENT_BINDING_TARGET_MISSING_FIELDS = {
|
|
508
|
+
...CLIENT_BINDING_FIELDS,
|
|
509
|
+
// A window whose fingerprint names no listed chat any more: that fingerprint, so a chat the
|
|
510
|
+
// lookup found gone is told apart from a reference that never named one (#3557 review).
|
|
511
|
+
targetFingerprint: { type: "string", dataClass: "digest", required: false, maxLength: 64 },
|
|
512
|
+
};
|
|
513
|
+
const CLIENT_BINDING_RESOLVED_FIELDS = {
|
|
514
|
+
...CLIENT_BINDING_FIELDS,
|
|
515
|
+
// A binding found again after redaction (through its fingerprint, or chosen by the person): the
|
|
516
|
+
// fingerprint of the chat it bound to, the one the window persists, so two choices from one list
|
|
517
|
+
// answer stay apart (#3557 review).
|
|
518
|
+
targetFingerprint: { type: "string", dataClass: "digest", required: false, maxLength: 64 },
|
|
519
|
+
};
|
|
520
|
+
const CLIENT_BINDING_RESOLVED_OPERATION = defineActivityLogOperation({
|
|
521
|
+
contractKind: "activity-log-operation",
|
|
522
|
+
schemaVersion: 1,
|
|
523
|
+
op: "client.binding.resolved",
|
|
524
|
+
category: "diagnostic",
|
|
525
|
+
owner: "keiko-server",
|
|
526
|
+
emitter: "client-diagnostics-routes.logClientBindingResolved",
|
|
527
|
+
fields: CLIENT_BINDING_RESOLVED_FIELDS,
|
|
528
|
+
causal: "correlation",
|
|
529
|
+
lifecycle: "end",
|
|
530
|
+
analyzerProjection: "timeline",
|
|
531
|
+
failureClasses: ["client-binding"],
|
|
532
|
+
proofIds: ["client.binding.resolved.line"],
|
|
533
|
+
releaseImpact: "patch",
|
|
534
|
+
});
|
|
535
|
+
const CLIENT_BINDING_TARGET_MISSING_OPERATION = defineActivityLogOperation({
|
|
536
|
+
contractKind: "activity-log-operation",
|
|
537
|
+
schemaVersion: 1,
|
|
538
|
+
op: "client.binding.target-missing",
|
|
539
|
+
category: "diagnostic",
|
|
540
|
+
owner: "keiko-server",
|
|
541
|
+
emitter: "client-diagnostics-routes.logClientBindingTargetMissing",
|
|
542
|
+
fields: CLIENT_BINDING_TARGET_MISSING_FIELDS,
|
|
543
|
+
causal: "correlation",
|
|
544
|
+
lifecycle: "failure",
|
|
545
|
+
analyzerProjection: "failure-cluster",
|
|
546
|
+
failureClasses: ["client-binding"],
|
|
547
|
+
proofIds: ["client.binding.target-missing.line"],
|
|
548
|
+
releaseImpact: "patch",
|
|
549
|
+
});
|
|
550
|
+
// #3557 review: a window whose chat id persistence redacted without a fingerprint listed the chats
|
|
551
|
+
// it may have shown, for the person to choose from. The line names the list loads that answered, how
|
|
552
|
+
// many chats were offered and how many of those read alike and show a fingerprint reference, zero
|
|
553
|
+
// included, so the recovery state the person saw is reconstructable.
|
|
554
|
+
const CLIENT_BINDING_CANDIDATES_OFFERED_OPERATION = defineActivityLogOperation({
|
|
555
|
+
contractKind: "activity-log-operation",
|
|
556
|
+
schemaVersion: 1,
|
|
557
|
+
op: "client.binding.candidates-offered",
|
|
558
|
+
category: "diagnostic",
|
|
559
|
+
owner: "keiko-server",
|
|
560
|
+
emitter: "client-diagnostics-routes.logClientBindingCandidatesOffered",
|
|
561
|
+
fields: {
|
|
562
|
+
...CLIENT_BINDING_FIELDS,
|
|
563
|
+
candidateCount: { type: "integer", dataClass: "count", required: true },
|
|
564
|
+
disambiguatedCount: { type: "integer", dataClass: "count", required: true },
|
|
565
|
+
},
|
|
566
|
+
causal: "correlation",
|
|
567
|
+
lifecycle: "state",
|
|
568
|
+
analyzerProjection: "timeline",
|
|
569
|
+
failureClasses: ["client-binding"],
|
|
570
|
+
proofIds: ["client.binding.candidates-offered.line"],
|
|
571
|
+
releaseImpact: "patch",
|
|
572
|
+
});
|
|
573
|
+
const CLIENT_BINDING_CHOICE_FIELDS = {
|
|
574
|
+
...CLIENT_BINDING_FIELDS,
|
|
575
|
+
// The chat the person decided about, by the fingerprint the window persists, never its id.
|
|
576
|
+
targetFingerprint: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
|
|
577
|
+
};
|
|
578
|
+
// #3557 review: the chat a person chose for such a window stays a choice until they keep it; they
|
|
579
|
+
// can withdraw it and choose again. Each decision is a state on the binding's timeline and names the
|
|
580
|
+
// chat it concerns, so which conversation the window ended with is reconstructable.
|
|
581
|
+
const CLIENT_BINDING_CHOICE_KEPT_OPERATION = defineActivityLogOperation({
|
|
582
|
+
contractKind: "activity-log-operation",
|
|
583
|
+
schemaVersion: 1,
|
|
584
|
+
op: "client.binding.choice-kept",
|
|
585
|
+
category: "diagnostic",
|
|
586
|
+
owner: "keiko-server",
|
|
587
|
+
emitter: "client-diagnostics-routes.logClientBindingChoiceKept",
|
|
588
|
+
fields: CLIENT_BINDING_CHOICE_FIELDS,
|
|
589
|
+
causal: "correlation",
|
|
590
|
+
lifecycle: "state",
|
|
591
|
+
analyzerProjection: "timeline",
|
|
592
|
+
failureClasses: ["client-binding"],
|
|
593
|
+
proofIds: ["client.binding.choice-kept.line"],
|
|
594
|
+
releaseImpact: "patch",
|
|
595
|
+
});
|
|
596
|
+
const CLIENT_BINDING_CHOICE_WITHDRAWN_OPERATION = defineActivityLogOperation({
|
|
597
|
+
contractKind: "activity-log-operation",
|
|
598
|
+
schemaVersion: 1,
|
|
599
|
+
op: "client.binding.choice-withdrawn",
|
|
600
|
+
category: "diagnostic",
|
|
601
|
+
owner: "keiko-server",
|
|
602
|
+
emitter: "client-diagnostics-routes.logClientBindingChoiceWithdrawn",
|
|
603
|
+
fields: CLIENT_BINDING_CHOICE_FIELDS,
|
|
604
|
+
causal: "correlation",
|
|
605
|
+
lifecycle: "state",
|
|
606
|
+
analyzerProjection: "timeline",
|
|
607
|
+
failureClasses: ["client-binding"],
|
|
608
|
+
proofIds: ["client.binding.choice-withdrawn.line"],
|
|
609
|
+
releaseImpact: "patch",
|
|
610
|
+
});
|
|
611
|
+
// #3557 review: a read a restarted BFF denied is repaired and replayed once (keiko-ui http.ts). The
|
|
612
|
+
// line sits on the denied request's timeline (the replay reuses its id) and names the repair request,
|
|
613
|
+
// so the self-heal, or the reason it did not happen, is reconstructable from the log alone.
|
|
614
|
+
const CLIENT_SESSION_REPAIR_ACTIVITY_LOG_FAILURES = [
|
|
615
|
+
"replay-failed",
|
|
616
|
+
"replay-skipped",
|
|
617
|
+
"repair-failed",
|
|
618
|
+
];
|
|
619
|
+
const CLIENT_SESSION_REPAIR_ACTIVITY_LOG_RECOVERIES = ["replayed", "stream-repaired"];
|
|
620
|
+
const CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS = ["run-events", "shared-event-source"];
|
|
621
|
+
const CLIENT_SESSION_REPAIR_RECOVERED_OPERATION = defineActivityLogOperation({
|
|
622
|
+
contractKind: "activity-log-operation",
|
|
623
|
+
schemaVersion: 1,
|
|
624
|
+
op: "client.session-repair.recovered",
|
|
625
|
+
category: "diagnostic",
|
|
626
|
+
owner: "keiko-server",
|
|
627
|
+
emitter: "client-diagnostics-routes.logClientSessionRepairRecovered",
|
|
628
|
+
fields: {
|
|
629
|
+
outcome: {
|
|
630
|
+
type: "string",
|
|
631
|
+
dataClass: "closed-enum",
|
|
632
|
+
required: true,
|
|
633
|
+
values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_RECOVERIES,
|
|
634
|
+
},
|
|
635
|
+
// The stream whose failure streak asked for the repair; a stream has no readable request id.
|
|
636
|
+
stream: {
|
|
637
|
+
type: "string",
|
|
638
|
+
dataClass: "closed-enum",
|
|
639
|
+
required: false,
|
|
640
|
+
values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS,
|
|
641
|
+
},
|
|
642
|
+
repairCorrelationId: {
|
|
643
|
+
type: "string",
|
|
644
|
+
dataClass: "opaque-id",
|
|
645
|
+
required: true,
|
|
646
|
+
maxLength: 128,
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
causal: "correlation",
|
|
650
|
+
lifecycle: "end",
|
|
651
|
+
analyzerProjection: "timeline",
|
|
652
|
+
failureClasses: ["client-session-repair"],
|
|
653
|
+
proofIds: ["client.session-repair.recovered.line"],
|
|
654
|
+
releaseImpact: "patch",
|
|
655
|
+
});
|
|
656
|
+
// #3557 review: a stream's repair request was acknowledged. The endpoint acknowledges whether or
|
|
657
|
+
// not it issued a cookie, so this is a state, not the recovery: the stream reports
|
|
658
|
+
// `stream-repaired` once it opens again, and a streak that keeps failing after this line shows a
|
|
659
|
+
// repair that did not restore it.
|
|
660
|
+
const CLIENT_SESSION_REPAIR_ACKNOWLEDGED_OPERATION = defineActivityLogOperation({
|
|
661
|
+
contractKind: "activity-log-operation",
|
|
662
|
+
schemaVersion: 1,
|
|
663
|
+
op: "client.session-repair.acknowledged",
|
|
664
|
+
category: "diagnostic",
|
|
665
|
+
owner: "keiko-server",
|
|
666
|
+
emitter: "client-diagnostics-routes.logClientSessionRepairAcknowledged",
|
|
667
|
+
fields: {
|
|
668
|
+
stream: {
|
|
669
|
+
type: "string",
|
|
670
|
+
dataClass: "closed-enum",
|
|
671
|
+
required: true,
|
|
672
|
+
values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS,
|
|
673
|
+
},
|
|
674
|
+
repairCorrelationId: {
|
|
675
|
+
type: "string",
|
|
676
|
+
dataClass: "opaque-id",
|
|
677
|
+
required: true,
|
|
678
|
+
maxLength: 128,
|
|
679
|
+
},
|
|
680
|
+
completeness: { type: "string", dataClass: "completeness-state", required: true },
|
|
681
|
+
loss: { type: "string", dataClass: "loss-state", required: true },
|
|
682
|
+
},
|
|
683
|
+
causal: "correlation",
|
|
684
|
+
lifecycle: "state",
|
|
685
|
+
analyzerProjection: "timeline",
|
|
686
|
+
failureClasses: ["client-session-repair"],
|
|
687
|
+
proofIds: ["client.session-repair.acknowledged.line"],
|
|
688
|
+
releaseImpact: "patch",
|
|
689
|
+
});
|
|
690
|
+
const CLIENT_SESSION_REPAIR_FAILED_OPERATION = defineActivityLogOperation({
|
|
691
|
+
contractKind: "activity-log-operation",
|
|
692
|
+
schemaVersion: 1,
|
|
693
|
+
op: "client.session-repair.failed",
|
|
694
|
+
category: "diagnostic",
|
|
695
|
+
owner: "keiko-server",
|
|
696
|
+
emitter: "client-diagnostics-routes.logClientSessionRepairFailed",
|
|
697
|
+
fields: {
|
|
698
|
+
outcome: {
|
|
699
|
+
type: "string",
|
|
700
|
+
dataClass: "closed-enum",
|
|
701
|
+
required: true,
|
|
702
|
+
values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_FAILURES,
|
|
703
|
+
},
|
|
704
|
+
stream: {
|
|
705
|
+
type: "string",
|
|
706
|
+
dataClass: "closed-enum",
|
|
707
|
+
required: false,
|
|
708
|
+
values: CLIENT_SESSION_REPAIR_ACTIVITY_LOG_STREAMS,
|
|
709
|
+
},
|
|
710
|
+
repairCorrelationId: {
|
|
711
|
+
type: "string",
|
|
712
|
+
dataClass: "opaque-id",
|
|
713
|
+
required: true,
|
|
714
|
+
maxLength: 128,
|
|
715
|
+
},
|
|
716
|
+
},
|
|
717
|
+
causal: "correlation",
|
|
718
|
+
lifecycle: "failure",
|
|
719
|
+
analyzerProjection: "failure-cluster",
|
|
720
|
+
failureClasses: ["client-session-repair"],
|
|
721
|
+
proofIds: ["client.session-repair.failed.line"],
|
|
722
|
+
releaseImpact: "patch",
|
|
723
|
+
});
|
|
45
724
|
// One declaration for production and the test reset below — duplicating these three literals let
|
|
46
725
|
// them drift, so the test reset silently exercised a limiter with different bounds than production.
|
|
47
726
|
const CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG = {
|
|
@@ -51,43 +730,271 @@ const CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG = {
|
|
|
51
730
|
};
|
|
52
731
|
let rateLimiter = createInlineCompletionRateLimiter(CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG);
|
|
53
732
|
const DROP_NOTICE_WINDOW_MS = 60_000;
|
|
54
|
-
|
|
55
|
-
|
|
733
|
+
function quietThrottle() {
|
|
734
|
+
return { lastAt: null, suppressed: 0 };
|
|
735
|
+
}
|
|
736
|
+
const CLIENT_DIAGNOSTIC_REJECTIONS = [
|
|
737
|
+
"invalid-json",
|
|
738
|
+
"invalid-shape",
|
|
739
|
+
"too-large",
|
|
740
|
+
"cancelled",
|
|
741
|
+
];
|
|
742
|
+
function quietRejectionThrottles() {
|
|
743
|
+
return new Map(CLIENT_DIAGNOSTIC_REJECTIONS.map((rejection) => [rejection, quietThrottle()]));
|
|
744
|
+
}
|
|
745
|
+
// One notice throttle per budget: routine overflow never suppresses the notice of a dropped
|
|
746
|
+
// failure report, which then keeps its own correlation id and budget class.
|
|
747
|
+
let dropNotices = {
|
|
748
|
+
failure: quietThrottle(),
|
|
749
|
+
routine: quietThrottle(),
|
|
750
|
+
};
|
|
751
|
+
let rejectionNotices = quietRejectionThrottles();
|
|
752
|
+
/** Test-only: puts the shared rate limiter and notice counters back to a clean start. */
|
|
56
753
|
export function resetClientDiagnosticsIngestStateForTests() {
|
|
57
754
|
rateLimiter = createInlineCompletionRateLimiter(CLIENT_DIAGNOSTIC_RATE_LIMIT_CONFIG);
|
|
58
|
-
|
|
755
|
+
dropNotices = { failure: quietThrottle(), routine: quietThrottle() };
|
|
756
|
+
rejectionNotices = quietRejectionThrottles();
|
|
59
757
|
}
|
|
60
|
-
function
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
758
|
+
function rejectionThrottle(rejection) {
|
|
759
|
+
let throttle = rejectionNotices.get(rejection);
|
|
760
|
+
if (throttle === undefined) {
|
|
761
|
+
throttle = quietThrottle();
|
|
762
|
+
rejectionNotices.set(rejection, throttle);
|
|
763
|
+
}
|
|
764
|
+
return throttle;
|
|
765
|
+
}
|
|
766
|
+
// True when this occurrence falls inside the open window: it is counted instead of logged.
|
|
767
|
+
function suppressedByThrottle(throttle, now) {
|
|
768
|
+
if (throttle.lastAt !== null) {
|
|
769
|
+
const elapsed = now - throttle.lastAt;
|
|
770
|
+
if (elapsed >= 0 && elapsed < DROP_NOTICE_WINDOW_MS) {
|
|
771
|
+
throttle.suppressed += 1;
|
|
772
|
+
return true;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
return false;
|
|
776
|
+
}
|
|
777
|
+
// Opens a new window and hands back the count the previous window suppressed.
|
|
778
|
+
function openThrottleWindow(throttle, now) {
|
|
779
|
+
const suppressed = throttle.suppressed;
|
|
780
|
+
throttle.lastAt = now;
|
|
781
|
+
throttle.suppressed = 0;
|
|
782
|
+
return suppressed;
|
|
783
|
+
}
|
|
784
|
+
function writeRateLimitedNotice(correlationId, budget, suppressed, trigger) {
|
|
785
|
+
getServerLogger().warn(activityLogEvent(CLIENT_DIAGNOSTIC_RATE_LIMITED_OPERATION, { correlationId: correlationIdOrUnknown(correlationId), errorKind: "rate-limited" }, {
|
|
786
|
+
...(suppressed > 0 ? { suppressedDrops: suppressed } : {}),
|
|
787
|
+
budget,
|
|
788
|
+
trigger,
|
|
789
|
+
completeness: "complete",
|
|
790
|
+
loss: "event-dropped",
|
|
791
|
+
}));
|
|
65
792
|
}
|
|
66
793
|
// Reports a rate-limited drop exactly once per window, carrying how many further drops that same
|
|
67
794
|
// window suppressed — never the report content, which was never admitted past the limiter.
|
|
68
|
-
function noticeRateLimitedDrop(now, correlationId) {
|
|
69
|
-
|
|
70
|
-
|
|
795
|
+
function noticeRateLimitedDrop(budget, now, correlationId) {
|
|
796
|
+
recordActivityLogLoss("client-rate-suppressed");
|
|
797
|
+
const throttle = dropNotices[budget];
|
|
798
|
+
if (suppressedByThrottle(throttle, now))
|
|
799
|
+
return;
|
|
800
|
+
writeRateLimitedNotice(correlationId, budget, openThrottleWindow(throttle, now), "window");
|
|
801
|
+
}
|
|
802
|
+
function writeRejectedNotice(correlationId, rejection, suppressed, trigger) {
|
|
803
|
+
getServerLogger().warn(activityLogEvent(CLIENT_DIAGNOSTIC_REJECTED_OPERATION, { correlationId: correlationIdOrUnknown(correlationId), errorKind: "invalid-request" }, {
|
|
804
|
+
rejection,
|
|
805
|
+
...(suppressed > 0 ? { suppressedRejections: suppressed } : {}),
|
|
806
|
+
trigger,
|
|
807
|
+
completeness: "complete",
|
|
808
|
+
loss: "event-dropped",
|
|
809
|
+
}));
|
|
810
|
+
}
|
|
811
|
+
// Reports a refused report once per window with the closed refusal reason; the refused bytes were
|
|
812
|
+
// never parsed into an event and never reach the log.
|
|
813
|
+
function noticeRejectedReport(rejection, correlationId) {
|
|
814
|
+
recordActivityLogLoss("client-rejected");
|
|
815
|
+
const now = Date.now();
|
|
816
|
+
const throttle = rejectionThrottle(rejection);
|
|
817
|
+
if (suppressedByThrottle(throttle, now))
|
|
71
818
|
return;
|
|
819
|
+
writeRejectedNotice(correlationId, rejection, openThrottleWindow(throttle, now), "window");
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Writes the counts the open throttle windows are still holding. Called once on the shutdown path
|
|
823
|
+
* before the process-exit evidence, so a storm that ended in a quiet window is never lost with the
|
|
824
|
+
* process: the trailing counts reach the log instead of waiting for a next window that never comes.
|
|
825
|
+
*/
|
|
826
|
+
export function flushClientDiagnosticsIngestCounts() {
|
|
827
|
+
for (const budget of ["failure", "routine"]) {
|
|
828
|
+
const drops = openThrottleWindow(dropNotices[budget], null);
|
|
829
|
+
if (drops > 0)
|
|
830
|
+
writeRateLimitedNotice(undefined, budget, drops, "shutdown-flush");
|
|
831
|
+
}
|
|
832
|
+
for (const [rejection, throttle] of rejectionNotices) {
|
|
833
|
+
const suppressed = openThrottleWindow(throttle, null);
|
|
834
|
+
if (suppressed > 0)
|
|
835
|
+
writeRejectedNotice(undefined, rejection, suppressed, "shutdown-flush");
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
export function clientDiagnosticNoteDigest(message) {
|
|
839
|
+
return sha256Hex(`keiko-client-diagnostic-note-v1\0${message}`);
|
|
840
|
+
}
|
|
841
|
+
const CLIENT_DIAGNOSTIC_ERROR_KINDS = {
|
|
842
|
+
boundary: "internal",
|
|
843
|
+
"unhandled-rejection": "internal",
|
|
844
|
+
"window-error": "internal",
|
|
845
|
+
"sse-error": "unavailable",
|
|
846
|
+
"voice-dialogue": "internal",
|
|
847
|
+
"voice-playback": "unavailable",
|
|
848
|
+
"markdown-layout": "unknown",
|
|
849
|
+
other: "unknown",
|
|
850
|
+
};
|
|
851
|
+
// The browser's own delivery loss, as closed counts: each is added to the process loss ledger and
|
|
852
|
+
// projected onto the `client.diagnostic` line under its own count field.
|
|
853
|
+
const CLIENT_LOSS_PROJECTION = [
|
|
854
|
+
["bufferEvicted", "client-buffer-evicted", "clientBufferEvicted"],
|
|
855
|
+
["postsThrottled", "client-post-throttled", "clientPostsThrottled"],
|
|
856
|
+
["postsFailed", "client-post-failed", "clientPostsFailed"],
|
|
857
|
+
["rejectionsSuppressed", "client-rejection-suppressed", "clientRejectionsSuppressed"],
|
|
858
|
+
["errorsSuppressed", "client-error-suppressed", "clientErrorsSuppressed"],
|
|
859
|
+
];
|
|
860
|
+
function projectClientLoss(loss, extra) {
|
|
861
|
+
if (loss === undefined)
|
|
862
|
+
return;
|
|
863
|
+
for (const [key, reason, field] of CLIENT_LOSS_PROJECTION) {
|
|
864
|
+
const count = loss[key];
|
|
865
|
+
if (count === undefined || count === 0)
|
|
866
|
+
continue;
|
|
867
|
+
recordActivityLogLoss(reason, count);
|
|
868
|
+
extra[field] = count;
|
|
72
869
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
870
|
+
}
|
|
871
|
+
function clientDiagnosticErrorKind(kind) {
|
|
872
|
+
return kind === undefined ? "unknown" : CLIENT_DIAGNOSTIC_ERROR_KINDS[kind];
|
|
873
|
+
}
|
|
874
|
+
const VOICE_FAILURE_STAGES = new Set([
|
|
875
|
+
"preparation-failed",
|
|
876
|
+
"queue-unavailable",
|
|
877
|
+
"delivery-failed",
|
|
878
|
+
"delivery-cancelled",
|
|
879
|
+
"delivery-rejected",
|
|
880
|
+
"capture-renewal-failed",
|
|
881
|
+
]);
|
|
882
|
+
function clientDiagnosticCorrelation(request, correlationId) {
|
|
883
|
+
const parent = request.parentCorrelationId;
|
|
884
|
+
return {
|
|
885
|
+
correlationId,
|
|
886
|
+
...(parent !== undefined && isValidCorrelationId(parent) && parent !== correlationId
|
|
887
|
+
? { parentCorrelationId: parent }
|
|
888
|
+
: {}),
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
function logVoiceDialogueStage(request, correlationId) {
|
|
892
|
+
const stage = request.voiceDialogueStage;
|
|
893
|
+
if (stage === undefined || VOICE_FAILURE_STAGES.has(stage))
|
|
894
|
+
return false;
|
|
895
|
+
const extra = {
|
|
896
|
+
voiceDialogueStage: stage,
|
|
897
|
+
...(request.voiceCaptureError === undefined
|
|
898
|
+
? {}
|
|
899
|
+
: { voiceCaptureError: request.voiceCaptureError }),
|
|
900
|
+
...(request.voiceCaptureReason === undefined
|
|
901
|
+
? {}
|
|
902
|
+
: { voiceCaptureReason: request.voiceCaptureReason }),
|
|
903
|
+
completeness: "complete",
|
|
904
|
+
loss: "none",
|
|
905
|
+
};
|
|
906
|
+
projectClientLoss(request.loss, extra);
|
|
907
|
+
getServerLogger().info(activityLogEvent(CLIENT_VOICE_DIALOGUE_OPERATION, clientDiagnosticCorrelation(request, correlationId), extra));
|
|
908
|
+
return true;
|
|
909
|
+
}
|
|
910
|
+
function logMarkdownLayout(request, correlationId) {
|
|
911
|
+
if (request.kind !== "markdown-layout")
|
|
912
|
+
return false;
|
|
913
|
+
const extra = {
|
|
914
|
+
listNumbering: "source-start",
|
|
915
|
+
...(request.markdownLayout === undefined
|
|
916
|
+
? {}
|
|
917
|
+
: {
|
|
918
|
+
...(request.markdownLayout.messageId === undefined
|
|
919
|
+
? {}
|
|
920
|
+
: { messageId: request.markdownLayout.messageId }),
|
|
921
|
+
listStart: request.markdownLayout.listStart,
|
|
922
|
+
listIndex: request.markdownLayout.listIndex,
|
|
923
|
+
depth: request.markdownLayout.depth,
|
|
924
|
+
}),
|
|
925
|
+
completeness: "complete",
|
|
926
|
+
loss: "none",
|
|
927
|
+
};
|
|
928
|
+
projectClientLoss(request.loss, extra);
|
|
929
|
+
getServerLogger().info(activityLogEvent(CLIENT_MARKDOWN_LAYOUT_OPERATION, clientDiagnosticCorrelation(request, correlationId), extra));
|
|
930
|
+
return true;
|
|
931
|
+
}
|
|
932
|
+
// Projects the validated request onto the activity log. `message` is admitted only as a digest;
|
|
933
|
+
// `readyState`/`kind` ride along as bounded, closed-shape fields.
|
|
934
|
+
// The class the page classified wins (a refused connection is `unavailable`, #3557); otherwise the
|
|
935
|
+
// server derives one from the report's closed context.
|
|
936
|
+
function requestDiagnosticErrorKind(request) {
|
|
937
|
+
if (request.errorKind !== undefined)
|
|
938
|
+
return request.errorKind;
|
|
939
|
+
if (request.moduleLoadFailure !== undefined) {
|
|
940
|
+
const errorClass = request.errorEvidence?.errorClass;
|
|
941
|
+
return errorClass === "ChunkLoadError" || errorClass === "NetworkError"
|
|
942
|
+
? "unavailable"
|
|
943
|
+
: "internal";
|
|
944
|
+
}
|
|
945
|
+
if (request.voiceDialogueStage === "delivery-cancelled")
|
|
946
|
+
return "cancelled";
|
|
947
|
+
if (request.voiceDialogueStage === "delivery-rejected")
|
|
948
|
+
return "unavailable";
|
|
949
|
+
return clientDiagnosticErrorKind(request.kind);
|
|
950
|
+
}
|
|
951
|
+
function projectClientFailure(request, extra) {
|
|
952
|
+
if (request.moduleLoadFailure !== undefined)
|
|
953
|
+
extra.moduleLoadFailure = request.moduleLoadFailure;
|
|
954
|
+
if (request.errorEvidence !== undefined) {
|
|
955
|
+
extra.errorClass = request.errorEvidence.errorClass;
|
|
956
|
+
extra.frames = request.errorEvidence.frames;
|
|
957
|
+
extra.causeChain = request.errorEvidence.causeChain;
|
|
958
|
+
}
|
|
959
|
+
if (request.voiceCaptureError !== undefined)
|
|
960
|
+
extra.voiceCaptureError = request.voiceCaptureError;
|
|
961
|
+
if (request.voiceCaptureReason !== undefined)
|
|
962
|
+
extra.voiceCaptureReason = request.voiceCaptureReason;
|
|
963
|
+
}
|
|
964
|
+
function projectCodingContext(request, extra) {
|
|
965
|
+
if (request.codingIssueOutcome !== undefined)
|
|
966
|
+
extra.codingIssueOutcome = request.codingIssueOutcome;
|
|
967
|
+
const scope = request.codingHistoryScope;
|
|
968
|
+
if (scope === undefined)
|
|
969
|
+
return;
|
|
970
|
+
extra.historyScopeReason = scope.reason;
|
|
971
|
+
extra.historyTaskId = scope.taskId;
|
|
972
|
+
extra.requestedScopeId = scope.requestedScopeId;
|
|
973
|
+
extra.currentScopeId = scope.currentScopeId;
|
|
974
|
+
if (scope.requestedWorkspaceId !== undefined)
|
|
975
|
+
extra.requestedWorkspaceId = scope.requestedWorkspaceId;
|
|
976
|
+
if (scope.currentWorkspaceId !== undefined)
|
|
977
|
+
extra.currentWorkspaceId = scope.currentWorkspaceId;
|
|
978
|
+
if (scope.targetWorkspaceId !== undefined)
|
|
979
|
+
extra.targetWorkspaceId = scope.targetWorkspaceId;
|
|
980
|
+
}
|
|
85
981
|
function logClientDiagnostic(request, ingestCorrelationId) {
|
|
86
|
-
const
|
|
982
|
+
const correlationId = request.correlationId !== undefined && isValidCorrelationId(request.correlationId)
|
|
983
|
+
? request.correlationId
|
|
984
|
+
: correlationIdOrUnknown(ingestCorrelationId);
|
|
985
|
+
if (logVoiceDialogueStage(request, correlationId) || logMarkdownLayout(request, correlationId))
|
|
986
|
+
return;
|
|
987
|
+
const extra = {
|
|
988
|
+
clientNoteDigest: clientDiagnosticNoteDigest(request.message),
|
|
989
|
+
};
|
|
990
|
+
projectClientFailure(request, extra);
|
|
87
991
|
if (request.readyState !== undefined)
|
|
88
992
|
extra.readyState = request.readyState;
|
|
89
993
|
if (request.kind !== undefined)
|
|
90
994
|
extra.clientKind = request.kind;
|
|
995
|
+
if (request.voiceDialogueStage !== undefined) {
|
|
996
|
+
extra.voiceDialogueStage = request.voiceDialogueStage;
|
|
997
|
+
}
|
|
91
998
|
if (request.gitChangeDescription !== undefined) {
|
|
92
999
|
extra.action = request.gitChangeDescription.action;
|
|
93
1000
|
extra.disposition = request.gitChangeDescription.disposition;
|
|
@@ -100,16 +1007,252 @@ function logClientDiagnostic(request, ingestCorrelationId) {
|
|
|
100
1007
|
extra.repositoryId = request.workspaceTrustBinding.repositoryId;
|
|
101
1008
|
extra.workspaceId = request.workspaceTrustBinding.workspaceId;
|
|
102
1009
|
}
|
|
103
|
-
|
|
104
|
-
|
|
1010
|
+
projectCodingContext(request, extra);
|
|
1011
|
+
projectClientLoss(request.loss, extra);
|
|
1012
|
+
extra.completeness = "complete";
|
|
1013
|
+
extra.loss = "none";
|
|
1014
|
+
getServerLogger().warn(activityLogEvent(CLIENT_DIAGNOSTIC_OPERATION, {
|
|
1015
|
+
...clientDiagnosticCorrelation(request, correlationId),
|
|
1016
|
+
errorKind: requestDiagnosticErrorKind(request),
|
|
1017
|
+
}, extra));
|
|
1018
|
+
}
|
|
1019
|
+
function logClientStageStarted(request, correlationId) {
|
|
1020
|
+
getServerLogger().info(activityLogEvent(CLIENT_STAGE_STARTED_OPERATION, { correlationId }, {
|
|
1021
|
+
stage: CLIENT_STAGE_ACTIVITY_LOG_ID_BY_WIRE_ID[request.stage],
|
|
1022
|
+
ordinal: request.ordinal,
|
|
1023
|
+
completeness: "complete",
|
|
1024
|
+
loss: "none",
|
|
1025
|
+
}));
|
|
1026
|
+
}
|
|
1027
|
+
function logClientStageSettled(request, correlationId) {
|
|
1028
|
+
getServerLogger().info(activityLogEvent(CLIENT_STAGE_SETTLED_OPERATION, { correlationId, durationMs: request.durationMs }, {
|
|
1029
|
+
stage: CLIENT_STAGE_ACTIVITY_LOG_ID_BY_WIRE_ID[request.stage],
|
|
1030
|
+
ordinal: request.ordinal,
|
|
1031
|
+
completeness: "complete",
|
|
1032
|
+
loss: "none",
|
|
1033
|
+
}));
|
|
1034
|
+
}
|
|
1035
|
+
// A client-supplied id when it is a safe correlation id, else the ingest POST's own.
|
|
1036
|
+
function reportCorrelationId(clientCorrelationId, ingestCorrelationId) {
|
|
1037
|
+
return clientCorrelationId !== undefined && isValidCorrelationId(clientCorrelationId)
|
|
1038
|
+
? clientCorrelationId
|
|
105
1039
|
: correlationIdOrUnknown(ingestCorrelationId);
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
1040
|
+
}
|
|
1041
|
+
// Projects a validated stage report onto its own lifecycle operation — never the failure-shaped
|
|
1042
|
+
// `client.diagnostic` above. Root cause of KEIKO-3557: 416 of 449 `client.diagnostic` lines in a
|
|
1043
|
+
// live log were exactly this routine evidence, all persisted as warn/unknown and burying the rare
|
|
1044
|
+
// real failures. Both phases of one mounted stage carry the same client-minted correlation id, so the
|
|
1045
|
+
// pair joins in the log even when another tab reuses the stage and ordinal (#3557 review).
|
|
1046
|
+
function logClientStage(request, ingestCorrelationId) {
|
|
1047
|
+
const correlationId = reportCorrelationId(request.correlationId, ingestCorrelationId);
|
|
1048
|
+
if (request.phase === "started") {
|
|
1049
|
+
logClientStageStarted(request, correlationId);
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1052
|
+
logClientStageSettled(request, correlationId);
|
|
1053
|
+
}
|
|
1054
|
+
// The deciding list loads the line can name: the primary id when it is a safe correlation id, and
|
|
1055
|
+
// each distinct safe related id besides it. An id the server refuses, or one named twice, never
|
|
1056
|
+
// counts as named; a malformed one is dropped rather than refusing the line (#3557 review).
|
|
1057
|
+
function namedDecidingLoads(request) {
|
|
1058
|
+
const { correlationId } = request;
|
|
1059
|
+
const primary = correlationId !== undefined && isValidCorrelationId(correlationId) ? correlationId : undefined;
|
|
1060
|
+
const related = [...new Set(request.relatedCorrelationIds ?? [])].filter((id) => id !== primary && isValidCorrelationId(id));
|
|
1061
|
+
return { primary, related };
|
|
1062
|
+
}
|
|
1063
|
+
// How many loads decided the outcome: the reported total, or else every distinct id the report
|
|
1064
|
+
// declared, valid or not.
|
|
1065
|
+
function decidingLoadTotal(request) {
|
|
1066
|
+
if (request.decidingLoadCount !== undefined)
|
|
1067
|
+
return request.decidingLoadCount;
|
|
1068
|
+
return new Set([
|
|
1069
|
+
...(request.correlationId === undefined ? [] : [request.correlationId]),
|
|
1070
|
+
...(request.relatedCorrelationIds ?? []),
|
|
1071
|
+
]).size;
|
|
1072
|
+
}
|
|
1073
|
+
export function clientBindingDigest(windowRef) {
|
|
1074
|
+
return sha256Hex(`keiko-client-binding-v1\0${windowRef}`);
|
|
1075
|
+
}
|
|
1076
|
+
// Every deciding list load is named when the line can hold it (up to 64). When more loads decided
|
|
1077
|
+
// the outcome than the line names, the missing ones are classified loss, not a quiet count: the
|
|
1078
|
+
// line is `partial` with `loss: event-location-unknown`, and the total is kept (#3557 review).
|
|
1079
|
+
function clientBindingFields(request) {
|
|
1080
|
+
const { primary, related } = namedDecidingLoads(request);
|
|
1081
|
+
const named = (primary === undefined ? 0 : 1) + related.length;
|
|
1082
|
+
const deciding = decidingLoadTotal(request);
|
|
1083
|
+
const unnamed = deciding > named;
|
|
1084
|
+
return {
|
|
1085
|
+
surface: request.surface,
|
|
1086
|
+
referenceShape: request.referenceShape,
|
|
1087
|
+
heuristicFlagged: request.heuristicFlagged,
|
|
1088
|
+
bindingDigest: clientBindingDigest(request.windowRef),
|
|
1089
|
+
...(related.length === 0 ? {} : { relatedCorrelationIds: related }),
|
|
1090
|
+
...(unnamed ? { decidingLoadCount: deciding } : {}),
|
|
1091
|
+
completeness: unnamed ? "partial" : "complete",
|
|
1092
|
+
loss: unnamed ? "event-location-unknown" : "none",
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
// The chat a restored binding names, only by its fingerprint and only when the report carries one.
|
|
1096
|
+
function targetFingerprintField(request) {
|
|
1097
|
+
return request.targetFingerprint === undefined
|
|
1098
|
+
? {}
|
|
1099
|
+
: { targetFingerprint: request.targetFingerprint };
|
|
1100
|
+
}
|
|
1101
|
+
function logClientBindingResolved(request, correlationId) {
|
|
1102
|
+
getServerLogger().info(activityLogEvent(CLIENT_BINDING_RESOLVED_OPERATION, { correlationId }, { ...clientBindingFields(request), ...targetFingerprintField(request) }));
|
|
1103
|
+
}
|
|
1104
|
+
function isClientBindingOffer(request) {
|
|
1105
|
+
return (request.outcome === "candidates-offered" &&
|
|
1106
|
+
request.candidateCount !== undefined &&
|
|
1107
|
+
request.disambiguatedCount !== undefined);
|
|
1108
|
+
}
|
|
1109
|
+
function isClientBindingChoiceDecision(request) {
|
|
1110
|
+
return ((request.outcome === "choice-kept" || request.outcome === "choice-withdrawn") &&
|
|
1111
|
+
request.targetFingerprint !== undefined);
|
|
1112
|
+
}
|
|
1113
|
+
function logClientBindingCandidatesOffered(request, correlationId) {
|
|
1114
|
+
getServerLogger().info(activityLogEvent(CLIENT_BINDING_CANDIDATES_OFFERED_OPERATION, { correlationId }, {
|
|
1115
|
+
...clientBindingFields(request),
|
|
1116
|
+
candidateCount: request.candidateCount,
|
|
1117
|
+
disambiguatedCount: request.disambiguatedCount,
|
|
1118
|
+
}));
|
|
1119
|
+
}
|
|
1120
|
+
function logClientBindingChoiceKept(request, correlationId) {
|
|
1121
|
+
getServerLogger().info(activityLogEvent(CLIENT_BINDING_CHOICE_KEPT_OPERATION, { correlationId }, { ...clientBindingFields(request), targetFingerprint: request.targetFingerprint }));
|
|
1122
|
+
}
|
|
1123
|
+
function logClientBindingChoiceWithdrawn(request, correlationId) {
|
|
1124
|
+
getServerLogger().info(activityLogEvent(CLIENT_BINDING_CHOICE_WITHDRAWN_OPERATION, { correlationId }, { ...clientBindingFields(request), targetFingerprint: request.targetFingerprint }));
|
|
1125
|
+
}
|
|
1126
|
+
function logClientBindingChoiceDecision(request, correlationId) {
|
|
1127
|
+
if (request.outcome === "choice-kept") {
|
|
1128
|
+
logClientBindingChoiceKept(request, correlationId);
|
|
1129
|
+
return;
|
|
1130
|
+
}
|
|
1131
|
+
logClientBindingChoiceWithdrawn(request, correlationId);
|
|
1132
|
+
}
|
|
1133
|
+
function logClientBindingTargetMissing(request, correlationId) {
|
|
1134
|
+
getServerLogger().warn(activityLogEvent(CLIENT_BINDING_TARGET_MISSING_OPERATION, { correlationId, errorKind: "unavailable" }, { ...clientBindingFields(request), ...targetFingerprintField(request) }));
|
|
1135
|
+
}
|
|
1136
|
+
// The binding line carries the correlation id of the request whose answer decided it (the target
|
|
1137
|
+
// list load), so `keiko support analyze --correlation-id` reads that load and the outcome as one
|
|
1138
|
+
// timeline. Without a valid one, the ingest POST's own id applies.
|
|
1139
|
+
function logClientBinding(request, ingestCorrelationId) {
|
|
1140
|
+
const correlationId = reportCorrelationId(request.correlationId, ingestCorrelationId);
|
|
1141
|
+
if (request.outcome === "resolved") {
|
|
1142
|
+
logClientBindingResolved(request, correlationId);
|
|
1143
|
+
return;
|
|
1144
|
+
}
|
|
1145
|
+
if (isClientBindingOffer(request)) {
|
|
1146
|
+
logClientBindingCandidatesOffered(request, correlationId);
|
|
1147
|
+
return;
|
|
1148
|
+
}
|
|
1149
|
+
if (isClientBindingChoiceDecision(request)) {
|
|
1150
|
+
logClientBindingChoiceDecision(request, correlationId);
|
|
1151
|
+
return;
|
|
1152
|
+
}
|
|
1153
|
+
logClientBindingTargetMissing(request, correlationId);
|
|
1154
|
+
}
|
|
1155
|
+
// Every repair report names its repair request (the ingest contract refuses one that does not), so
|
|
1156
|
+
// the line always links the repair attempt it describes (#3557 review).
|
|
1157
|
+
function sessionRepairCorrelation(request) {
|
|
1158
|
+
return {
|
|
1159
|
+
repairCorrelationId: request.repairCorrelationId,
|
|
1160
|
+
...(request.stream === undefined ? {} : { stream: request.stream }),
|
|
1161
|
+
};
|
|
1162
|
+
}
|
|
1163
|
+
function logClientSessionRepairRecovered(request, correlationId) {
|
|
1164
|
+
getServerLogger().info(activityLogEvent(CLIENT_SESSION_REPAIR_RECOVERED_OPERATION, { correlationId }, {
|
|
1165
|
+
outcome: request.outcome,
|
|
1166
|
+
...sessionRepairCorrelation(request),
|
|
1167
|
+
completeness: "complete",
|
|
1168
|
+
loss: "none",
|
|
1169
|
+
}));
|
|
1170
|
+
}
|
|
1171
|
+
function logClientSessionRepairAcknowledged(request, correlationId) {
|
|
1172
|
+
getServerLogger().info(activityLogEvent(CLIENT_SESSION_REPAIR_ACKNOWLEDGED_OPERATION, { correlationId }, {
|
|
1173
|
+
...sessionRepairCorrelation(request),
|
|
1174
|
+
stream: request.stream,
|
|
1175
|
+
completeness: "complete",
|
|
1176
|
+
loss: "none",
|
|
1177
|
+
}));
|
|
1178
|
+
}
|
|
1179
|
+
// The class of the step that actually failed, as the browser classified it. A skipped replay
|
|
1180
|
+
// leaves the original refusal in place, an authority denial; any other outcome without a class is
|
|
1181
|
+
// unknown rather than guessed (#3557 review).
|
|
1182
|
+
function sessionRepairErrorKind(request) {
|
|
1183
|
+
if (request.errorKind !== undefined)
|
|
1184
|
+
return request.errorKind;
|
|
1185
|
+
return request.outcome === "replay-skipped" ? "authority-denied" : "unknown";
|
|
1186
|
+
}
|
|
1187
|
+
function logClientSessionRepairFailed(request, correlationId) {
|
|
1188
|
+
getServerLogger().warn(activityLogEvent(CLIENT_SESSION_REPAIR_FAILED_OPERATION, { correlationId, errorKind: sessionRepairErrorKind(request) }, {
|
|
1189
|
+
outcome: request.outcome,
|
|
1190
|
+
...sessionRepairCorrelation(request),
|
|
1191
|
+
completeness: "complete",
|
|
1192
|
+
loss: "none",
|
|
1193
|
+
}));
|
|
1194
|
+
}
|
|
1195
|
+
// The line joins the denied request's own timeline (the replay reused its id), or a stream's
|
|
1196
|
+
// failure streak.
|
|
1197
|
+
function logClientSessionRepair(request, ingestCorrelationId) {
|
|
1198
|
+
const correlationId = reportCorrelationId(request.correlationId, ingestCorrelationId);
|
|
1199
|
+
const { outcome, stream } = request;
|
|
1200
|
+
if (outcome === "replayed" || outcome === "stream-repaired") {
|
|
1201
|
+
logClientSessionRepairRecovered({ ...request, outcome }, correlationId);
|
|
1202
|
+
return;
|
|
1203
|
+
}
|
|
1204
|
+
if (outcome === "repair-acknowledged") {
|
|
1205
|
+
// The contract guard refuses an acknowledged repair that names no stream.
|
|
1206
|
+
if (stream !== undefined)
|
|
1207
|
+
logClientSessionRepairAcknowledged({ ...request, stream }, correlationId);
|
|
1208
|
+
return;
|
|
1209
|
+
}
|
|
1210
|
+
logClientSessionRepairFailed({ ...request, outcome }, correlationId);
|
|
1211
|
+
}
|
|
1212
|
+
function classifyClientReport(value) {
|
|
1213
|
+
if (isClientStageIngestRequest(value))
|
|
1214
|
+
return { shape: "stage", report: value };
|
|
1215
|
+
if (isClientBindingIngestRequest(value))
|
|
1216
|
+
return { shape: "binding", report: value };
|
|
1217
|
+
if (isClientSessionRepairIngestRequest(value)) {
|
|
1218
|
+
// The repair id becomes a line field, so it meets the server's own correlation rule or the
|
|
1219
|
+
// report is refused like any other malformed one (#3557 review).
|
|
1220
|
+
return isValidCorrelationId(value.repairCorrelationId)
|
|
1221
|
+
? { shape: "session-repair", report: value }
|
|
1222
|
+
: undefined;
|
|
1223
|
+
}
|
|
1224
|
+
if (isClientDiagnosticIngestRequest(value))
|
|
1225
|
+
return { shape: "message", report: value };
|
|
1226
|
+
return undefined;
|
|
1227
|
+
}
|
|
1228
|
+
function reportBudget(classified) {
|
|
1229
|
+
switch (classified.shape) {
|
|
1230
|
+
case "stage":
|
|
1231
|
+
return "routine";
|
|
1232
|
+
case "binding":
|
|
1233
|
+
return CLIENT_BINDING_FAILURE_OUTCOMES.has(classified.report.outcome) ? "failure" : "routine";
|
|
1234
|
+
case "session-repair":
|
|
1235
|
+
return CLIENT_SESSION_REPAIR_ROUTINE_OUTCOMES.has(classified.report.outcome)
|
|
1236
|
+
? "routine"
|
|
1237
|
+
: "failure";
|
|
1238
|
+
case "message":
|
|
1239
|
+
return "failure";
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
function logClientReport(classified, ingestCorrelationId) {
|
|
1243
|
+
switch (classified.shape) {
|
|
1244
|
+
case "stage":
|
|
1245
|
+
logClientStage(classified.report, ingestCorrelationId);
|
|
1246
|
+
return;
|
|
1247
|
+
case "binding":
|
|
1248
|
+
logClientBinding(classified.report, ingestCorrelationId);
|
|
1249
|
+
return;
|
|
1250
|
+
case "session-repair":
|
|
1251
|
+
logClientSessionRepair(classified.report, ingestCorrelationId);
|
|
1252
|
+
return;
|
|
1253
|
+
case "message":
|
|
1254
|
+
logClientDiagnostic(classified.report, ingestCorrelationId);
|
|
1255
|
+
}
|
|
113
1256
|
}
|
|
114
1257
|
function badRequest(message, correlationId) {
|
|
115
1258
|
return { status: 400, body: errorBody("BAD_REQUEST", message, correlationId) };
|
|
@@ -123,6 +1266,7 @@ async function readClientDiagnosticBody(req, correlationId) {
|
|
|
123
1266
|
if (error instanceof RequestBodyTooLargeError) {
|
|
124
1267
|
return {
|
|
125
1268
|
kind: "rejected",
|
|
1269
|
+
rejection: "too-large",
|
|
126
1270
|
result: {
|
|
127
1271
|
status: 413,
|
|
128
1272
|
body: errorBody("PAYLOAD_TOO_LARGE", "Request body exceeds the size limit.", correlationId),
|
|
@@ -132,6 +1276,7 @@ async function readClientDiagnosticBody(req, correlationId) {
|
|
|
132
1276
|
if (error instanceof RequestBodyCancelledError) {
|
|
133
1277
|
return {
|
|
134
1278
|
kind: "rejected",
|
|
1279
|
+
rejection: "cancelled",
|
|
135
1280
|
result: { status: 499, body: errorBody("REQUEST_CANCELLED", "Request was cancelled.") },
|
|
136
1281
|
};
|
|
137
1282
|
}
|
|
@@ -143,23 +1288,30 @@ async function readClientDiagnosticBody(req, correlationId) {
|
|
|
143
1288
|
catch {
|
|
144
1289
|
return {
|
|
145
1290
|
kind: "rejected",
|
|
1291
|
+
rejection: "invalid-json",
|
|
146
1292
|
result: badRequest("Request body is not valid JSON.", correlationId),
|
|
147
1293
|
};
|
|
148
1294
|
}
|
|
149
1295
|
}
|
|
150
1296
|
export async function handleClientDiagnosticIngest(ctx) {
|
|
151
1297
|
const outcome = await readClientDiagnosticBody(ctx.req, ctx.correlationId);
|
|
152
|
-
if (outcome.kind === "rejected")
|
|
1298
|
+
if (outcome.kind === "rejected") {
|
|
1299
|
+
noticeRejectedReport(outcome.rejection, ctx.correlationId);
|
|
153
1300
|
return outcome.result;
|
|
154
|
-
|
|
155
|
-
|
|
1301
|
+
}
|
|
1302
|
+
// Every shape shares the same size bound and rejection/loss accounting below; routine evidence
|
|
1303
|
+
// and failure reports each spend their own rate-limit budget.
|
|
1304
|
+
const classified = classifyClientReport(outcome.value);
|
|
1305
|
+
if (classified === undefined) {
|
|
1306
|
+
noticeRejectedReport("invalid-shape", ctx.correlationId);
|
|
156
1307
|
return badRequest("Request body is not a valid diagnostic report.", ctx.correlationId);
|
|
157
1308
|
}
|
|
158
1309
|
const now = Date.now();
|
|
159
|
-
|
|
160
|
-
|
|
1310
|
+
const budget = reportBudget(classified);
|
|
1311
|
+
if (!rateLimiter.tryAcquire(CLIENT_DIAGNOSTIC_RATE_LIMIT_KEYS[budget], now)) {
|
|
1312
|
+
noticeRateLimitedDrop(budget, now, ctx.correlationId);
|
|
161
1313
|
return { status: 204, body: null };
|
|
162
1314
|
}
|
|
163
|
-
|
|
1315
|
+
logClientReport(classified, ctx.correlationId);
|
|
164
1316
|
return { status: 204, body: null };
|
|
165
1317
|
}
|