@oscharko-dev/keiko 1.0.1 → 1.0.3
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/dist/ui/csp-hashes.json +6 -6
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +3 -3
- package/dist/ui/static/__next._full.txt +4 -4
- package/dist/ui/static/__next._tree.txt +2 -2
- package/dist/ui/static/_next/static/chunks/0-tss9mlvjuz4.js +1 -0
- package/dist/ui/static/_next/static/chunks/04t-d0js_hvfr.js +1 -0
- package/dist/ui/static/_next/static/chunks/086jxcgou7s_5.js +1 -0
- package/dist/ui/static/_next/static/chunks/08pxrik1lm06d.js +5 -0
- package/dist/ui/static/_next/static/chunks/093r62_9c_psx.js +1 -0
- package/dist/ui/static/_next/static/chunks/0_u5vd-_66bpj.js +1 -0
- package/dist/ui/static/_next/static/chunks/{33xe6czoiljfj.js → 0ix9hk8cnb0as.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0n9uef9g17pxd.js +1 -0
- package/dist/ui/static/_next/static/chunks/0psckgz_yhen3.js +1 -0
- package/dist/ui/static/_next/static/chunks/{07qq4emiqi9mm.js → 0qzzopo8q0m1e.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0tt79fba99mv7.js +1 -0
- package/dist/ui/static/_next/static/chunks/0vvfq-eocx502.js +1 -0
- package/dist/ui/static/_next/static/chunks/0vywz1p6au4ri.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3prkxoohu71_w.js → 160x2go4zkjhx.js} +1 -1
- package/dist/ui/static/_next/static/chunks/17lvph58d0v4m.js +1 -0
- package/dist/ui/static/_next/static/chunks/17yrtbw7mk5py.css +2 -0
- package/dist/ui/static/_next/static/chunks/19-9yyj6ksj8d.js +1 -0
- package/dist/ui/static/_next/static/chunks/19fesd0w1gjhp.js +3 -0
- package/dist/ui/static/_next/static/chunks/1t_6hc_5pxuqd.js +1 -0
- package/dist/ui/static/_next/static/chunks/21djhsnzx069x.js +1 -0
- package/dist/ui/static/_next/static/chunks/289h3-vke8o67.js +1 -0
- package/dist/ui/static/_next/static/chunks/2_-v-c9bsad3u.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3jowok1kw1ks1.js → 2aebtbzatv9jb.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2jadbwshuwe_n.js +1 -0
- package/dist/ui/static/_next/static/chunks/{3hat5ovkhce_v.js → 2l9r80s3qje3v.js} +1 -1
- package/dist/ui/static/_next/static/chunks/2nubqp1hwandv.js +1 -0
- package/dist/ui/static/_next/static/chunks/2vj6gqk9lh7yv.js +1 -0
- package/dist/ui/static/_next/static/chunks/3-k1y9vbxcms8.js +3 -0
- package/dist/ui/static/_next/static/chunks/{0zozdg26-6028.js → 3137i2nt475lq.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3_07vmpj6bo71.js +1 -0
- package/dist/ui/static/_next/static/chunks/3b05eyy6pw1t-.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2w3he6x7q3ba1.js → 3d-jscai6hb55.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3f3ici8rsavir.js +1 -0
- package/dist/ui/static/_next/static/chunks/3irz7sn3e2ix3.js +1 -0
- package/dist/ui/static/_next/static/chunks/3j1p83q4cv4cv.js +1 -0
- package/dist/ui/static/_next/static/chunks/3kgmrssgqwg_h.js +1 -0
- package/dist/ui/static/_next/static/chunks/3pgmij812w0aa.css +1 -0
- package/dist/ui/static/_next/static/chunks/{2g9r9xe184d47.css → 3qtph5seqciux.css} +3 -3
- package/dist/ui/static/_next/static/chunks/3r2v5s5l7jkoj.js +1 -0
- package/dist/ui/static/_next/static/chunks/3w9c58yrtr4oj.js +1 -0
- package/dist/ui/static/_next/static/chunks/3wxm1wke5887n.js +7 -0
- package/dist/ui/static/_next/static/chunks/3ymz8bp4uzhhh.js +1 -0
- package/dist/ui/static/_not-found/__next._full.txt +1 -1
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
- 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 +1 -1
- package/dist/ui/static/atlassian-connectors/__next._full.txt +5 -5
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +3 -3
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +5 -5
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +4 -4
- package/dist/ui/static/launch/__next._full.txt +4 -4
- package/dist/ui/static/launch/__next._tree.txt +2 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +3 -3
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +4 -4
- package/dist/ui/static/local-knowledge/__next._full.txt +4 -4
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +3 -3
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +5 -5
- 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 +3 -3
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +5 -5
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +4 -4
- package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts +3 -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 +31 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +129 -8
- 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/bff-wire.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/bff-wire.js +2 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts +4 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-safe-activity.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/coding-workbench-runtime-api.d.ts +40 -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 +118 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts +10 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +21 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery-action-sheet.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery-action-sheet.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery-action-sheet.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery-evidence.js +2 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-delivery.js +1 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/pr-description-region.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/pr-description-region.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/pr-description-region.js +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/tools.js +2 -0
- 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/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/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/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +2 -0
- 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 +3 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/codingAppSessionRoutes.d.ts +7 -0
- 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 +23 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/launcherSessionPairingPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/launcherSessionPairingPort.js +2 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +23 -11
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionPairingPort.d.ts +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionPairingPort.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionPairingPort.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeContextUsage.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeContextUsage.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeContextUsage.js +110 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeControlPlane.d.ts +6 -1
- 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/codingRuntimeOrchestrator.d.ts +2 -0
- 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 +62 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts +2 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorState.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestratorTypes.d.ts +12 -1
- 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/codingRuntimeProjectMemory.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeProjectMemory.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeProjectMemory.js +47 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeStartConfirmation.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeStartConfirmation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeStartConfirmation.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeProtocol.js +15 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeReconciler.js +13 -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 +12 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts +2 -0
- 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 +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeHost.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.d.ts +2 -0
- 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 +14 -4
- 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 +26 -22
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeBackend.d.ts +2 -0
- 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 +36 -3
- package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +3 -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 +64 -34
- package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +2 -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 +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +16 -8
- 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 +53 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitChangeRoutes.js +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/commitRoutes.d.ts +9 -1
- 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 +321 -232
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts +2 -0
- 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 +11 -1
- 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 +83 -27
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/repositoryInitializationRoutes.d.ts +16 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/repositoryInitializationRoutes.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/repositoryInitializationRoutes.js +170 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestGuards.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/requestGuards.js +1 -0
- 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 +41 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.js +7 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts +6 -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 +16 -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 +2 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/store/db.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/store/journeyOutcomeMigration.d.ts +2 -1
- 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 +2 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/store/schema.d.ts +3 -2
- 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 +21 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts +3 -0
- 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 +10 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/reconciliation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/reconciliation.js +18 -5
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/types.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/types.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/package.json +22 -22
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-adapter.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-evidence.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-evidence.js +8 -0
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-node.js +76 -78
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-taxonomy.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-mutation-taxonomy.js +3 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-worktree-snapshot-node.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/git-worktree-snapshot-node.js +2 -1
- 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/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 +26 -26
- package/release-impact.catalog.json +124 -17
- package/vendor/{oscharko-dev-keiko-cli-1.0.1.tgz → oscharko-dev-keiko-cli-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.0.1.tgz → oscharko-dev-keiko-connectors-1.0.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.0.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.0.1.tgz → oscharko-dev-keiko-evaluations-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.0.1.tgz → oscharko-dev-keiko-evidence-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-git-1.0.1.tgz → oscharko-dev-keiko-git-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.0.1.tgz → oscharko-dev-keiko-harness-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-local-knowledge-1.0.1.tgz → oscharko-dev-keiko-local-knowledge-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.0.1.tgz → oscharko-dev-keiko-memory-capture-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.0.1.tgz → oscharko-dev-keiko-memory-consolidation-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.0.1.tgz → oscharko-dev-keiko-memory-governance-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.0.1.tgz → oscharko-dev-keiko-memory-retrieval-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.0.1.tgz → oscharko-dev-keiko-memory-vault-1.0.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.0.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.0.1.tgz → oscharko-dev-keiko-quality-intelligence-1.0.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.0.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.0.1.tgz → oscharko-dev-keiko-sdk-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-security-1.0.1.tgz → oscharko-dev-keiko-security-1.0.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-server-1.0.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-tool-catalog-1.0.1.tgz → oscharko-dev-keiko-tool-catalog-1.0.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.0.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-verification-1.0.1.tgz → oscharko-dev-keiko-verification-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.0.1.tgz → oscharko-dev-keiko-workflows-1.0.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.0.1.tgz → oscharko-dev-keiko-workspace-1.0.3.tgz} +0 -0
- package/dist/ui/static/_next/static/chunks/02_oclc09qxyx.js +0 -1
- package/dist/ui/static/_next/static/chunks/0705zsjaz05pp.js +0 -1
- package/dist/ui/static/_next/static/chunks/09tdk32fa07fo.js +0 -1
- package/dist/ui/static/_next/static/chunks/0ag8q6ucbx0jg.js +0 -1
- package/dist/ui/static/_next/static/chunks/0b6wknupe00u0.js +0 -1
- package/dist/ui/static/_next/static/chunks/0cjymi7cguxab.js +0 -1
- package/dist/ui/static/_next/static/chunks/0h9m9i94y47pe.js +0 -1
- package/dist/ui/static/_next/static/chunks/0lnnriu63fu6w.js +0 -1
- package/dist/ui/static/_next/static/chunks/15fzdfmxo9wes.js +0 -1
- package/dist/ui/static/_next/static/chunks/1912c0d2uuam6.js +0 -7
- package/dist/ui/static/_next/static/chunks/1978nsh-ro0gg.js +0 -3
- package/dist/ui/static/_next/static/chunks/1aqnx_sjv_06a.js +0 -1
- package/dist/ui/static/_next/static/chunks/1bugd9zxsgydi.js +0 -1
- package/dist/ui/static/_next/static/chunks/1i8svrsbwlotl.js +0 -1
- package/dist/ui/static/_next/static/chunks/1iqvo80cl9udp.js +0 -1
- package/dist/ui/static/_next/static/chunks/1v4yl8pvuca5d.js +0 -1
- package/dist/ui/static/_next/static/chunks/2-j2sm_qh59a6.js +0 -1
- package/dist/ui/static/_next/static/chunks/200jtfl58creh.css +0 -1
- package/dist/ui/static/_next/static/chunks/2ebint4v0kd9a.js +0 -1
- package/dist/ui/static/_next/static/chunks/2gh-ocpdc3jok.js +0 -1
- package/dist/ui/static/_next/static/chunks/2pi_0fo-1bkji.js +0 -1
- package/dist/ui/static/_next/static/chunks/2q9n8mn12xtvs.js +0 -1
- package/dist/ui/static/_next/static/chunks/2u8_k--gbp5_a.js +0 -1
- package/dist/ui/static/_next/static/chunks/2wdciiw-2dedw.js +0 -3
- package/dist/ui/static/_next/static/chunks/2y3j1wa4thvo7.js +0 -1
- package/dist/ui/static/_next/static/chunks/2z3as1rj6pipu.js +0 -1
- package/dist/ui/static/_next/static/chunks/30p-k6z8-wqsv.js +0 -1
- package/dist/ui/static/_next/static/chunks/315jjj7_8_71_.js +0 -1
- package/dist/ui/static/_next/static/chunks/31alfbsxfck61.js +0 -1
- package/dist/ui/static/_next/static/chunks/345pl3p2p8kq5.js +0 -1
- package/dist/ui/static/_next/static/chunks/39g0g6ugnp3qq.js +0 -1
- package/dist/ui/static/_next/static/chunks/3abgwt0n5jlzu.css +0 -1
- package/dist/ui/static/_next/static/chunks/3ghvxw2nx2f95.js +0 -5
- package/dist/ui/static/_next/static/chunks/3gku1pguz4v0_.js +0 -1
- package/dist/ui/static/_next/static/chunks/3vx3nxsxvodi1.js +0 -1
- package/vendor/oscharko-dev-keiko-contracts-1.0.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.0.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.0.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.0.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tools-1.0.1.tgz +0 -0
- /package/dist/ui/static/_next/static/{KAA_uFJdPJnVDzhOngix4 → 1BZa3EoPufXZpDHFm8Sty}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{KAA_uFJdPJnVDzhOngix4 → 1BZa3EoPufXZpDHFm8Sty}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{KAA_uFJdPJnVDzhOngix4 → 1BZa3EoPufXZpDHFm8Sty}/_ssgManifest.js +0 -0
|
@@ -25,8 +25,8 @@ import { createRunRegistry } from "./runs.js";
|
|
|
25
25
|
import { createVoiceRecapContentAttestationStore, } from "./voice-recap-provenance.js";
|
|
26
26
|
import { DEFAULT_SERVER_DIAGNOSTIC_SUMMARY, defaultServerDiagnosticSink, describeError, emitServerDiagnostic, serverDiagnosticFromError, } from "./diagnostics-log.js";
|
|
27
27
|
import { evidenceRetentionObserver } from "./evidence-retention-log.js";
|
|
28
|
-
import { UNKNOWN_CORRELATION_ID } from "./correlation.js";
|
|
29
|
-
import { logCommandTermination, processServerLogSink } from "./process-log-sink.js";
|
|
28
|
+
import { newCorrelationId, UNKNOWN_CORRELATION_ID } from "./correlation.js";
|
|
29
|
+
import { logCommandTermination, processServerLogSink, processServerLogSinkFor, } from "./process-log-sink.js";
|
|
30
30
|
import { currentOpenSseStreamCount, markServerShuttingDown } from "./sse-write.js";
|
|
31
31
|
import { recordWorkspaceRootDenial } from "./workspace-root-denial-log.js";
|
|
32
32
|
import { assertUiDbOutsideProject, buildUiStoreOverDatabase, openNodeUiDatabase, resolveUiDbPath, validateProjectPath, } from "./store/index.js";
|
|
@@ -107,6 +107,7 @@ import { createCodingRuntimeEditorMutationLeaseBroker, } from "./coding-runtime/
|
|
|
107
107
|
import { createCodingRuntimeSnapshotStore, } from "./coding-runtime/codingRuntimeSnapshotStore.js";
|
|
108
108
|
import { createCodingRuntimeDescriptionJobStore, } from "./coding-runtime/codingRuntimeDescriptionJobStore.js";
|
|
109
109
|
import { createCodingRuntimeEvidenceAggregator, } from "./coding-runtime/codingRuntimeEvidenceAggregator.js";
|
|
110
|
+
import { createCodingRuntimeProjectMemoryPort, } from "./coding-runtime/codingRuntimeProjectMemory.js";
|
|
110
111
|
import { createCodingRuntimeControlPlane, } from "./coding-runtime/codingRuntimeControlPlane.js";
|
|
111
112
|
import { configuredRepoSemanticSearchProviderLeaseFor } from "./grounded-repo-semantic-search.js";
|
|
112
113
|
import { createProductionCodingRuntimeIssueIntake } from "./coding-context/codingRuntimeIssueIntake.js";
|
|
@@ -231,7 +232,7 @@ function resolveConfiguredEgress(configPath, env, localConfigPath) {
|
|
|
231
232
|
throw error;
|
|
232
233
|
}
|
|
233
234
|
}
|
|
234
|
-
function createRuntimeGatewayConfig(initial, initialPresent, storagePath, env) {
|
|
235
|
+
function createRuntimeGatewayConfig(initial, initialPresent, storagePath, env, bootstrapCorrelationId) {
|
|
235
236
|
let config = initial;
|
|
236
237
|
let present = initialPresent;
|
|
237
238
|
// A freshly loaded config has never been probed by this process, so it starts unverified. It is
|
|
@@ -245,6 +246,7 @@ function createRuntimeGatewayConfig(initial, initialPresent, storagePath, env) {
|
|
|
245
246
|
let generation = 0;
|
|
246
247
|
return {
|
|
247
248
|
storagePath,
|
|
249
|
+
initializationCorrelationId: bootstrapCorrelationId,
|
|
248
250
|
spendBudget: gatewaySpendBudgetForEnv(env),
|
|
249
251
|
current: () => config,
|
|
250
252
|
present: () => present,
|
|
@@ -813,7 +815,7 @@ export function redactEvidenceString(redactor, value) {
|
|
|
813
815
|
}
|
|
814
816
|
return redacted;
|
|
815
817
|
}
|
|
816
|
-
function buildMemoryVault(redactString, evidenceStore, env, diagnostics) {
|
|
818
|
+
function buildMemoryVault(redactString, evidenceStore, env, diagnostics, bootstrapCorrelationId) {
|
|
817
819
|
const postCommitAudit = createMemoryAuditHandler({ evidenceStore, redactString });
|
|
818
820
|
const vault = createBffMemoryVault(redactString,
|
|
819
821
|
// #214 — wire every successful vault mutation into the audit ledger. The handler
|
|
@@ -824,7 +826,7 @@ function buildMemoryVault(redactString, evidenceStore, env, diagnostics) {
|
|
|
824
826
|
return;
|
|
825
827
|
}
|
|
826
828
|
postCommitAudit(event);
|
|
827
|
-
}, createMemoryAuditDeleteCommitHandler({ evidenceStore, redactString }), env);
|
|
829
|
+
}, createMemoryAuditDeleteCommitHandler({ evidenceStore, redactString }), env, bootstrapCorrelationId);
|
|
828
830
|
// Issue #3189 — seed only the transition classifier's body-free pre-image fields after the
|
|
829
831
|
// vault exists and before this composition returns it to mutation routes. This keeps the first
|
|
830
832
|
// post-restart archive/accept/reject/pin mutation semantically classified without retaining
|
|
@@ -846,7 +848,7 @@ function buildMemoryVault(redactString, evidenceStore, env, diagnostics) {
|
|
|
846
848
|
processServerLogSink().write({
|
|
847
849
|
category: "memory",
|
|
848
850
|
op: "memory.audit.state-cache.seeded",
|
|
849
|
-
correlationId:
|
|
851
|
+
correlationId: bootstrapCorrelationId,
|
|
850
852
|
extra: { recordCount: records.length },
|
|
851
853
|
});
|
|
852
854
|
return vault;
|
|
@@ -883,16 +885,16 @@ function resolveLoopbackWorkspaceId(env) {
|
|
|
883
885
|
// operator sees WHY the process refused to start instead of only an unhandled trace, exactly like
|
|
884
886
|
// every other composition-root boundary in this module. `processServerLogSink()` is wired in as
|
|
885
887
|
// the store's own `store.opened` activity-log sink so a successful open is recorded too.
|
|
886
|
-
function openUiDatabaseForComposition(resolvedUiDbPath, diagnostics) {
|
|
888
|
+
function openUiDatabaseForComposition(resolvedUiDbPath, diagnostics, bootstrapCorrelationId) {
|
|
887
889
|
try {
|
|
888
|
-
return openNodeUiDatabase(resolvedUiDbPath,
|
|
890
|
+
return openNodeUiDatabase(resolvedUiDbPath, processServerLogSinkFor(bootstrapCorrelationId));
|
|
889
891
|
}
|
|
890
892
|
catch (error) {
|
|
891
893
|
emitCompositionDiagnostic(diagnostics, "deps.composePersistence", DEFAULT_SERVER_DIAGNOSTIC_SUMMARY, error);
|
|
892
894
|
throw error;
|
|
893
895
|
}
|
|
894
896
|
}
|
|
895
|
-
function composePersistence(injected, injectedCodingRuntimeSnapshots, injectedCodingRuntimeDescriptionJobStore, resolvedUiDbPath, redactString,
|
|
897
|
+
function composePersistence(injected, injectedCodingRuntimeSnapshots, injectedCodingRuntimeDescriptionJobStore, resolvedUiDbPath, redactString, runtime) {
|
|
896
898
|
if (injected !== undefined) {
|
|
897
899
|
return {
|
|
898
900
|
store: injected,
|
|
@@ -904,11 +906,11 @@ function composePersistence(injected, injectedCodingRuntimeSnapshots, injectedCo
|
|
|
904
906
|
codingRuntimeDescriptionJobStore: injectedCodingRuntimeDescriptionJobStore,
|
|
905
907
|
};
|
|
906
908
|
}
|
|
907
|
-
const db = openUiDatabaseForComposition(resolvedUiDbPath, diagnostics);
|
|
909
|
+
const db = openUiDatabaseForComposition(resolvedUiDbPath, runtime.diagnostics, runtime.bootstrapCorrelationId);
|
|
908
910
|
const store = buildUiStoreOverDatabase(db, { redactString });
|
|
909
911
|
const relationship = {
|
|
910
912
|
scopeResolver: () => ({
|
|
911
|
-
workspaceId: resolveLoopbackWorkspaceId(env),
|
|
913
|
+
workspaceId: resolveLoopbackWorkspaceId(runtime.env),
|
|
912
914
|
}),
|
|
913
915
|
store: createRelationshipStorePort({ db, redactString }),
|
|
914
916
|
};
|
|
@@ -1234,9 +1236,10 @@ function buildWorkspaceCleanup(args) {
|
|
|
1234
1236
|
// construction, and never block server start. A failure leaves persisted classification untouched,
|
|
1235
1237
|
// but it is not silent: the detached path emits a body-free structured diagnostic.
|
|
1236
1238
|
/** @internal Exported only for deterministic server tests. */
|
|
1237
|
-
export function reconcileTaskWorkspacesAtStartup(service, diagnostics) {
|
|
1239
|
+
export function reconcileTaskWorkspacesAtStartup(service, diagnostics, parentCorrelationId) {
|
|
1238
1240
|
if (service === undefined)
|
|
1239
1241
|
return;
|
|
1242
|
+
const correlationId = newCorrelationId();
|
|
1240
1243
|
// Construction must never fail because of reconciliation, so both failure modes are detached.
|
|
1241
1244
|
// Invoking inside `.then` rather than a `try` is what makes that possible with a single handler:
|
|
1242
1245
|
// a synchronous throw from the call itself (property lookup + invocation), which a non-conforming
|
|
@@ -1245,10 +1248,11 @@ export function reconcileTaskWorkspacesAtStartup(service, diagnostics) {
|
|
|
1245
1248
|
// `try` around a promise-returning call is rejected by typescript:S4822 in either direction —
|
|
1246
1249
|
// with a `.catch` it asks for the `try` to go, without one it asks for the `.catch`.
|
|
1247
1250
|
void Promise.resolve()
|
|
1248
|
-
.then(() => service.reconcile())
|
|
1251
|
+
.then(() => service.reconcile(undefined, correlationId, parentCorrelationId))
|
|
1249
1252
|
.catch((error) => {
|
|
1250
1253
|
emitServerDiagnostic(diagnostics, serverDiagnosticFromError({
|
|
1251
|
-
correlationId
|
|
1254
|
+
correlationId,
|
|
1255
|
+
...(parentCorrelationId === undefined ? {} : { parentCorrelationId }),
|
|
1252
1256
|
operation: "task-workspace.reconcile.startup",
|
|
1253
1257
|
source: "task-workspace.bootstrap",
|
|
1254
1258
|
error,
|
|
@@ -1257,13 +1261,17 @@ export function reconcileTaskWorkspacesAtStartup(service, diagnostics) {
|
|
|
1257
1261
|
}));
|
|
1258
1262
|
});
|
|
1259
1263
|
}
|
|
1260
|
-
function seedInitialProject(store, uiDbPath, initialProjectPath) {
|
|
1264
|
+
function seedInitialProject(store, uiDbPath, initialProjectPath, workspaceScriptTrust, correlationId, trustSource) {
|
|
1261
1265
|
if (initialProjectPath === undefined || initialProjectPath.trim().length === 0) {
|
|
1262
1266
|
return undefined;
|
|
1263
1267
|
}
|
|
1264
1268
|
const normalizedPath = validateProjectPath(initialProjectPath, { mustExist: true });
|
|
1265
1269
|
assertUiDbOutsideProject(uiDbPath, normalizedPath);
|
|
1266
|
-
|
|
1270
|
+
const project = store.createProject(normalizedPath);
|
|
1271
|
+
if (trustSource === "explicit-launcher-selection") {
|
|
1272
|
+
workspaceScriptTrust.grant(project.path, correlationId);
|
|
1273
|
+
}
|
|
1274
|
+
return project.path;
|
|
1267
1275
|
}
|
|
1268
1276
|
function buildLocalKnowledgeRemediation(options) {
|
|
1269
1277
|
return createLocalKnowledgeRemediationPort({
|
|
@@ -1634,7 +1642,7 @@ function buildPeripherals(args) {
|
|
|
1634
1642
|
diagnostics: args.options.diagnostics,
|
|
1635
1643
|
redactString: args.redactString,
|
|
1636
1644
|
});
|
|
1637
|
-
const memoryVault = buildMemoryVault(args.redactString, args.evidenceStore, args.options.env, args.options.diagnostics);
|
|
1645
|
+
const memoryVault = buildMemoryVault(args.redactString, args.evidenceStore, args.options.env, args.options.diagnostics, args.bootstrapCorrelationId);
|
|
1638
1646
|
const { workspaceScriptTrust, managedLspControl, disposeTrustLspBridge } = resolveTrustAndManagedLspControl(args);
|
|
1639
1647
|
const debugActivationControl = buildDebugActivationControl(args);
|
|
1640
1648
|
const updateSessionLock = createStateDirUpdateSessionLock(args.runtimeStateDir, {
|
|
@@ -1763,19 +1771,20 @@ function debugActivationEvidenceProjection(evidence) {
|
|
|
1763
1771
|
// Migration is best-effort and crash-aware: it never throws into bootstrap, so a partial state simply
|
|
1764
1772
|
// re-runs next start and is surfaced by `keiko repair`. It runs before the config is read so the
|
|
1765
1773
|
// resolver turns the rewritten secret references back into live credentials.
|
|
1766
|
-
function loadRuntimeGatewayConfig(options, runtimeConfigPath, resolvedEvidenceDir) {
|
|
1774
|
+
function loadRuntimeGatewayConfig(options, runtimeConfigPath, resolvedEvidenceDir, bootstrapCorrelationId) {
|
|
1767
1775
|
const effectiveConfigPath = options.configPath ?? runtimeConfigPath;
|
|
1776
|
+
const securityLogSink = processServerLogSinkFor(bootstrapCorrelationId);
|
|
1768
1777
|
migrateLocalConfigCredentials({
|
|
1769
1778
|
configPath: effectiveConfigPath,
|
|
1770
1779
|
env: options.env,
|
|
1771
1780
|
evidenceDir: resolvedEvidenceDir,
|
|
1772
|
-
securityLogSink
|
|
1781
|
+
securityLogSink,
|
|
1773
1782
|
diagnostics: options.diagnostics,
|
|
1774
1783
|
});
|
|
1775
1784
|
const secretResolver = createProviderSecretResolver({
|
|
1776
1785
|
configPath: effectiveConfigPath,
|
|
1777
1786
|
env: options.env,
|
|
1778
|
-
securityLogSink
|
|
1787
|
+
securityLogSink,
|
|
1779
1788
|
});
|
|
1780
1789
|
const resolved = resolveConfig(options.configPath, options.env, runtimeConfigPath, secretResolver);
|
|
1781
1790
|
return { ...resolved, storagePath: effectiveConfigPath };
|
|
@@ -1913,12 +1922,11 @@ function composePersistenceTaskWorkspaceServices(options, persistence, resolvedU
|
|
|
1913
1922
|
});
|
|
1914
1923
|
return { workspaceScriptTrust, services };
|
|
1915
1924
|
}
|
|
1916
|
-
function buildPersistenceBundle(options, resolvedUiDbPath, redactString, evidenceStore) {
|
|
1917
|
-
const persistence =
|
|
1925
|
+
function buildPersistenceBundle(options, resolvedUiDbPath, redactString, evidenceStore, bootstrapCorrelationId) {
|
|
1926
|
+
const persistence = composeUiPersistence(options, resolvedUiDbPath, redactString, bootstrapCorrelationId);
|
|
1918
1927
|
const { store, dispose, relationship } = persistence;
|
|
1919
1928
|
try {
|
|
1920
1929
|
const { workspaceScriptTrust, services } = composePersistenceTaskWorkspaceServices(options, persistence, resolvedUiDbPath, evidenceStore, redactString);
|
|
1921
|
-
const managedTaskWorkspaceRoot = composedManagedWorktreeRoot(services.workspaceProvisioning, resolvedUiDbPath, options.diagnostics);
|
|
1922
1930
|
return {
|
|
1923
1931
|
uiStore: store,
|
|
1924
1932
|
workspaceScriptTrust,
|
|
@@ -1927,8 +1935,8 @@ function buildPersistenceBundle(options, resolvedUiDbPath, redactString, evidenc
|
|
|
1927
1935
|
codingRuntimeSnapshotStore: persistence.codingRuntimeSnapshotStore,
|
|
1928
1936
|
codingRuntimeDescriptionJobStore: persistence.codingRuntimeDescriptionJobStore,
|
|
1929
1937
|
...services,
|
|
1930
|
-
managedTaskWorkspaceRoot,
|
|
1931
|
-
preferredProjectPath: seedInitialProject(store, resolvedUiDbPath, options.initialProjectPath),
|
|
1938
|
+
managedTaskWorkspaceRoot: composedManagedWorktreeRoot(services.workspaceProvisioning, resolvedUiDbPath, options.diagnostics),
|
|
1939
|
+
preferredProjectPath: seedInitialProject(store, resolvedUiDbPath, options.initialProjectPath, workspaceScriptTrust, bootstrapCorrelationId, options.initialProjectTrustSource),
|
|
1932
1940
|
};
|
|
1933
1941
|
}
|
|
1934
1942
|
catch (error) {
|
|
@@ -1936,6 +1944,9 @@ function buildPersistenceBundle(options, resolvedUiDbPath, redactString, evidenc
|
|
|
1936
1944
|
throw error;
|
|
1937
1945
|
}
|
|
1938
1946
|
}
|
|
1947
|
+
function composeUiPersistence(options, resolvedUiDbPath, redactString, bootstrapCorrelationId) {
|
|
1948
|
+
return composePersistence(options.store, options.codingRuntimeSnapshotStore, options.codingRuntimeDescriptionJobStore, resolvedUiDbPath, redactString, { env: options.env, diagnostics: options.diagnostics, bootstrapCorrelationId });
|
|
1949
|
+
}
|
|
1939
1950
|
// The optional persistence services (relationship engine + the #445/#446/#447 task-workspace
|
|
1940
1951
|
// services) spread onto the handler deps only when they were composed (production) — absent ones leave
|
|
1941
1952
|
// the corresponding routes to degrade to 503, exactly as before.
|
|
@@ -1963,10 +1974,10 @@ function optionalPersistenceServices(bundle) {
|
|
|
1963
1974
|
: { codingRuntimeSnapshotStore: bundle.codingRuntimeSnapshotStore }),
|
|
1964
1975
|
};
|
|
1965
1976
|
}
|
|
1966
|
-
function reconcileNodeStoreAtStartup(options, bundle) {
|
|
1977
|
+
function reconcileNodeStoreAtStartup(options, bundle, bootstrapCorrelationId) {
|
|
1967
1978
|
if (options.store !== undefined)
|
|
1968
1979
|
return;
|
|
1969
|
-
reconcileTaskWorkspacesAtStartup(bundle.workspaceReconciliation, options.diagnostics);
|
|
1980
|
+
reconcileTaskWorkspacesAtStartup(bundle.workspaceReconciliation, options.diagnostics, bootstrapCorrelationId);
|
|
1970
1981
|
}
|
|
1971
1982
|
function gatewayConfigFields(config, configPresent) {
|
|
1972
1983
|
return { config, configPresent };
|
|
@@ -2042,6 +2053,7 @@ function buildAssemblyPeripherals(args, dapRuntime) {
|
|
|
2042
2053
|
runtimeStateDir: dirname(args.resolvedUiDbPath),
|
|
2043
2054
|
dapRuntime,
|
|
2044
2055
|
resolveWorkspaceRootAccess,
|
|
2056
|
+
bootstrapCorrelationId: args.bootstrapCorrelationId,
|
|
2045
2057
|
});
|
|
2046
2058
|
}
|
|
2047
2059
|
function createComposedDapRouteService(args, peripherals, runtime, production) {
|
|
@@ -2286,7 +2298,7 @@ function assembleUiHandlerRuntimeServices(args, dapRuntime) {
|
|
|
2286
2298
|
const codingRuntimeCeiling = resolveCodingRuntimeDeploymentCeiling(args.options);
|
|
2287
2299
|
const runtimeComposition = productionRuntimeResolver(args, peripherals.commandRunner, peripherals.verificationRunner, peripherals.editorSettingsControl, codingRuntimeEvidenceAggregator, codingRuntimeCeiling);
|
|
2288
2300
|
const codingRuntimeHost = resolveAssemblyCodingRuntimeHost(args, runtimeComposition);
|
|
2289
|
-
const codingRuntimeControlPlane = buildUiCodingRuntimeControlPlane(args, codingRuntimeEvidenceAggregator, codingRuntimeHost);
|
|
2301
|
+
const codingRuntimeControlPlane = buildUiCodingRuntimeControlPlane(args, codingRuntimeEvidenceAggregator, codingRuntimeHost, peripherals.memoryVault);
|
|
2290
2302
|
const gitChangeSnapshotService = createGitChangeSnapshotService({
|
|
2291
2303
|
logSink: processServerLogSink(),
|
|
2292
2304
|
});
|
|
@@ -2324,9 +2336,10 @@ function resolveAssemblyCodingRuntimeHost(args, runtimeComposition) {
|
|
|
2324
2336
|
return (args.options.codingRuntimeHost ??
|
|
2325
2337
|
createProductionCodingRuntimeHost(args.options.codingRuntimeResolver ?? runtimeComposition.resolver));
|
|
2326
2338
|
}
|
|
2327
|
-
function buildUiCodingRuntimeControlPlane(args, codingRuntimeEvidenceAggregator, codingRuntimeHost) {
|
|
2339
|
+
function buildUiCodingRuntimeControlPlane(args, codingRuntimeEvidenceAggregator, codingRuntimeHost, memoryVault) {
|
|
2328
2340
|
if (!args.bundle.codingRuntimeSnapshotStore || !args.bundle.workspaceLifecycle)
|
|
2329
2341
|
return undefined;
|
|
2342
|
+
const projectMemory = createUiCodingRuntimeProjectMemory(args, memoryVault);
|
|
2330
2343
|
return createCodingRuntimeControlPlane({
|
|
2331
2344
|
issueIntake: createProductionCodingRuntimeIssueIntake({
|
|
2332
2345
|
store: args.bundle.uiStore,
|
|
@@ -2341,6 +2354,7 @@ function buildUiCodingRuntimeControlPlane(args, codingRuntimeEvidenceAggregator,
|
|
|
2341
2354
|
serverPrincipal: args.options.codingRuntimeServerPrincipal ??
|
|
2342
2355
|
(() => DEFAULT_LOOPBACK_MEMORY_REVIEWER_ID),
|
|
2343
2356
|
...(codingRuntimeHost ? { runtimeHost: codingRuntimeHost } : {}),
|
|
2357
|
+
projectMemory,
|
|
2344
2358
|
// KEIKO-0225: forward the operator diagnostic sink so mid-stream SSE fan-out write failures
|
|
2345
2359
|
// surface as one redacted record per subscriber instead of being silently swallowed.
|
|
2346
2360
|
// #3099 P2 (KEIKO-0225 follow-up): default to the stderr sink when no custom sink is
|
|
@@ -2350,6 +2364,13 @@ function buildUiCodingRuntimeControlPlane(args, codingRuntimeEvidenceAggregator,
|
|
|
2350
2364
|
activityLog: processServerLogSink(),
|
|
2351
2365
|
});
|
|
2352
2366
|
}
|
|
2367
|
+
function createUiCodingRuntimeProjectMemory(args, memoryVault) {
|
|
2368
|
+
return createCodingRuntimeProjectMemoryPort({
|
|
2369
|
+
vault: memoryVault,
|
|
2370
|
+
evidenceStore: args.evidenceStore,
|
|
2371
|
+
redactString: args.redactString,
|
|
2372
|
+
});
|
|
2373
|
+
}
|
|
2353
2374
|
// #3401: attaches the automatic-description job store and dispatcher to the just-built control
|
|
2354
2375
|
// plane's orchestrator. `createCodingRuntimeOrchestrator` is constructed inside
|
|
2355
2376
|
// `createCodingRuntimeControlPlane` itself, before this graph's snapshot service, PR-description
|
|
@@ -3084,12 +3105,20 @@ function qualifiedProductionRuntimeComposition(resolver, readiness, runtimeMutat
|
|
|
3084
3105
|
},
|
|
3085
3106
|
};
|
|
3086
3107
|
}
|
|
3108
|
+
function buildInitialGatewayState(options, runtimeConfigPath, resolvedEvidenceDir, bootstrapCorrelationId) {
|
|
3109
|
+
const loaded = loadRuntimeGatewayConfig(options, runtimeConfigPath, resolvedEvidenceDir, bootstrapCorrelationId);
|
|
3110
|
+
return {
|
|
3111
|
+
config: loaded.config,
|
|
3112
|
+
configPresent: loaded.configPresent,
|
|
3113
|
+
runtimeConfig: createRuntimeGatewayConfig(loaded.config, loaded.configPresent, loaded.storagePath, options.env, bootstrapCorrelationId),
|
|
3114
|
+
egress: resolveConfiguredEgress(options.configPath, options.env, runtimeConfigPath),
|
|
3115
|
+
};
|
|
3116
|
+
}
|
|
3087
3117
|
export function buildUiHandlerDeps(options) {
|
|
3118
|
+
const bootstrapCorrelationId = newCorrelationId();
|
|
3088
3119
|
const { resolvedUiDbPath, runtimeConfigPath } = runtimePathFields(options);
|
|
3089
3120
|
const resolvedEvidenceDir = resolveEvidenceDirAndEnforceRetention(options);
|
|
3090
|
-
const { config, configPresent,
|
|
3091
|
-
const egress = resolveConfiguredEgress(options.configPath, options.env, runtimeConfigPath);
|
|
3092
|
-
const runtimeConfig = createRuntimeGatewayConfig(config, configPresent, storagePath, options.env);
|
|
3121
|
+
const { config, configPresent, runtimeConfig, egress } = buildInitialGatewayState(options, runtimeConfigPath, resolvedEvidenceDir, bootstrapCorrelationId);
|
|
3093
3122
|
const evidenceStore = createNodeEvidenceStore(resolvedEvidenceDir);
|
|
3094
3123
|
const codingWorkbenchEvidenceStore = options.codingWorkbenchEvidenceStore ??
|
|
3095
3124
|
createNodeEvidenceStore(join(resolvedEvidenceDir, "coding-workbench"));
|
|
@@ -3099,9 +3128,9 @@ export function buildUiHandlerDeps(options) {
|
|
|
3099
3128
|
env: options.env,
|
|
3100
3129
|
securityLogSink: processServerLogSink(),
|
|
3101
3130
|
});
|
|
3102
|
-
const bundle = buildPersistenceBundle(options, resolvedUiDbPath, redactString, evidenceStore);
|
|
3131
|
+
const bundle = buildPersistenceBundle(options, resolvedUiDbPath, redactString, evidenceStore, bootstrapCorrelationId);
|
|
3103
3132
|
const contextProfileForModel = buildContextProfileResolver(() => runtimeConfig.current());
|
|
3104
|
-
reconcileNodeStoreAtStartup(options, bundle);
|
|
3133
|
+
reconcileNodeStoreAtStartup(options, bundle, bootstrapCorrelationId);
|
|
3105
3134
|
const deps = assembleUiHandlerDeps({
|
|
3106
3135
|
options,
|
|
3107
3136
|
resolvedUiDbPath,
|
|
@@ -3117,6 +3146,7 @@ export function buildUiHandlerDeps(options) {
|
|
|
3117
3146
|
localKnowledgeKeyProvider,
|
|
3118
3147
|
bundle,
|
|
3119
3148
|
contextProfileForModel,
|
|
3149
|
+
bootstrapCorrelationId,
|
|
3120
3150
|
});
|
|
3121
3151
|
return deps;
|
|
3122
3152
|
}
|
|
@@ -36,7 +36,7 @@ export interface ServerDiagnosticSink {
|
|
|
36
36
|
export declare const defaultServerDiagnosticSink: ServerDiagnosticSink;
|
|
37
37
|
export declare const UNSUPPORTED_REASON_VOCABULARY: ReadonlySet<string>;
|
|
38
38
|
export declare const DEFAULT_SERVER_DIAGNOSTIC_SUMMARY = "server-operation-failed";
|
|
39
|
-
declare const SERVER_DIAGNOSTIC_SUMMARIES: readonly ["server-operation-failed", "Provider verification failed without exposing upstream response details.", "Workspace index key resolution or initialization failed.", "Encrypted workspace index snapshot was rejected.", "Encrypted workspace index snapshot write was rejected.", "Stale workspace index generation was rejected after key rotation.", "Debug activation resolver failed.", "Persisting debug instrumentation state failed.", "DAP production background operation failed.", "DAP live-evidence projection failed.", "Changeset preview derivation failed.", "Patch preview derivation failed.", "The selected changeset could not be projected.", "The selected changeset projection failed.", "The selected changeset no longer passes patch validation.", "The changeset could not be applied atomically.", "The bounded status read was unavailable.", "The bounded diff read was unavailable.", "The bounded blame read was unavailable.", "The server-resolved editor operation failed.", "Local knowledge vector-index search failed.", "The editor inline-completion model tier failed.", "Editor test generation failed.", "A gateway readiness probe could not be completed.", "A detached capsule indexing run failed before reaching a terminal state.", "The coding sidecar gateway stream failed mid-response.", "Audit or evidence persistence failed.", "Debug production service composition failed.", "Managed task-workspace boundary materialization failed.", "Semantic memory retrieval skipped incompatible embeddings.", "Semantic memory retrieval was disabled for this turn.", "Harness run reached a terminal completed state.", "Harness run reached a terminal failed state.", "Harness run reached a terminal cancelled state.", "Bug-investigation workflow reached a terminal completed state.", "Bug-investigation workflow reached a terminal failed state.", "Unit-test workflow reached a terminal completed state.", "Unit-test workflow reached a terminal failed state.", "chat-memory-auto-maintenance-failed", "chat-memory-post-commit-side-effect-failed", "sse-backpressure", "sse-subscriber-write-failed", "sse-listener-failed", "runtime-event-invalid", "runtime-exit-code", "runtime-stderr-counts", "runtime-stream-drain-failed", "runtime-approval-revocation-failed", "runtime-approval-resolution-failed", "runtime-handshake-failed", "runtime-lifecycle-failed", "runtime-start-failed", "runtime-turn-failed", "safe-activity-dropped-validation-rejected", "safe-activity-dropped-redactor-collapsed", "safe-activity-dropped-projection-rejected", "safe-activity-dropped-subscriber-rejected", "safe-activity-purged-stop", "safe-activity-purged-takeover", "safe-activity-purged-shutdown", "safe-activity-purged-workspace-switch", "safe-activity-purged-invariant-violation", "workspace-discovery-failed", "workspace-read-failed", "editor-agent-root-authority-unresolvable", "edit-transport-failed", "edit-refused", "verification-refused", "verification-failed", "prepare-bridge-close", "prepare-run-root-remove", "tool-facade-failed", "tool-bridge-deadline", "coding-runtime-backend-disposal-failed", "coding-runtime-operator-decision-event-rejected", "repository-rerank-failed", "sidecar-gateway-evidence-aggregation-failed", "coding-sidecar-gateway-profile-unavailable", "coding-sidecar-gateway-tool-contract-rejected", "coding-sidecar-gateway-tool-adoption-gap", "Local credential migration failed; plaintext config remains in place.", "Editor local-history capture failed.", "Verification execution failed unexpectedly.", "A verification event subscriber failed.", "Gateway tool-calling verification could not be persisted.", "Model discovery exceeded the discovery cap; setup continued with the retained models.", "Gateway Setup accepted a loopback candidate target.", "Stored gateway egress configuration was invalid; setup omitted it from the rewritten file.", "Setup skipped models the gateway declared as unsupported modes or that failed the embedding probe.", "gateway-setup-audit-validation-failed", "entailment-claim-judging-incomplete", "entailment stage failed; degraded to WARN", "model-incompatible", "capability-unenriched", "model-port-unavailable", "grounded-memory-enrichment-failed", "advisory-phase-summary", "salience-extraction-diagnostic", "salience-capture-dropped-queue-full", "salience-capture-summary", "figma-internal-error", "Network isolation probe failed; verification enforcement defaults to fail-closed.", "SSE stream destroyed because the client stopped draining.", "grounded-preview-citations-row-dropped", "release-impact-bundled-catalog-corrupted", "memory-consolidation-scheduled-job-failed", "functional-workspace-read-not-found", "functional-workspace-read-permission-denied", "atlassian-credential-rejection-activity-log-failed", "update-session-quarantine-pruned", "update-session-quarantine-prune-degraded", "dap-session-terminal-evidence-abandoned", "Voice dictation request rejected during request validation."];
|
|
39
|
+
declare const SERVER_DIAGNOSTIC_SUMMARIES: readonly ["server-operation-failed", "Provider verification failed without exposing upstream response details.", "Workspace index key resolution or initialization failed.", "Encrypted workspace index snapshot was rejected.", "Encrypted workspace index snapshot write was rejected.", "Stale workspace index generation was rejected after key rotation.", "Debug activation resolver failed.", "Persisting debug instrumentation state failed.", "DAP production background operation failed.", "DAP live-evidence projection failed.", "Changeset preview derivation failed.", "Patch preview derivation failed.", "The selected changeset could not be projected.", "The selected changeset projection failed.", "The selected changeset no longer passes patch validation.", "The changeset could not be applied atomically.", "The bounded status read was unavailable.", "The bounded diff read was unavailable.", "The bounded blame read was unavailable.", "The server-resolved editor operation failed.", "Local knowledge vector-index search failed.", "The editor inline-completion model tier failed.", "Editor test generation failed.", "A gateway readiness probe could not be completed.", "A detached capsule indexing run failed before reaching a terminal state.", "The coding sidecar gateway stream failed mid-response.", "Audit or evidence persistence failed.", "Debug production service composition failed.", "Managed task-workspace boundary materialization failed.", "Semantic memory retrieval skipped incompatible embeddings.", "Semantic memory retrieval was disabled for this turn.", "Harness run reached a terminal completed state.", "Harness run reached a terminal failed state.", "Harness run reached a terminal cancelled state.", "Bug-investigation workflow reached a terminal completed state.", "Bug-investigation workflow reached a terminal failed state.", "Unit-test workflow reached a terminal completed state.", "Unit-test workflow reached a terminal failed state.", "chat-memory-auto-maintenance-failed", "chat-memory-post-commit-side-effect-failed", "sse-backpressure", "sse-subscriber-write-failed", "sse-listener-failed", "runtime-event-invalid", "runtime-exit-code", "runtime-stderr-counts", "runtime-stream-drain-failed", "runtime-approval-revocation-failed", "runtime-approval-resolution-failed", "runtime-handshake-failed", "runtime-lifecycle-failed", "runtime-start-failed", "runtime-turn-failed", "safe-activity-dropped-validation-rejected", "safe-activity-dropped-redactor-collapsed", "safe-activity-dropped-projection-rejected", "safe-activity-dropped-subscriber-rejected", "safe-activity-purged-stop", "safe-activity-purged-takeover", "safe-activity-purged-shutdown", "safe-activity-purged-workspace-switch", "safe-activity-purged-invariant-violation", "workspace-discovery-failed", "workspace-read-failed", "editor-agent-root-authority-unresolvable", "edit-transport-failed", "edit-refused", "verification-refused", "verification-failed", "prepare-bridge-close", "prepare-run-root-remove", "tool-facade-failed", "tool-bridge-deadline", "coding-runtime-backend-disposal-failed", "coding-runtime-operator-decision-event-rejected", "coding-runtime-project-memory-context-failed", "repository-rerank-failed", "sidecar-gateway-evidence-aggregation-failed", "coding-sidecar-gateway-profile-unavailable", "coding-sidecar-gateway-tool-contract-rejected", "coding-sidecar-gateway-tool-adoption-gap", "Local credential migration failed; plaintext config remains in place.", "Editor local-history capture failed.", "Verification execution failed unexpectedly.", "A verification event subscriber failed.", "Gateway tool-calling verification could not be persisted.", "Model discovery exceeded the discovery cap; setup continued with the retained models.", "Gateway Setup accepted a loopback candidate target.", "Stored gateway egress configuration was invalid; setup omitted it from the rewritten file.", "Setup skipped models the gateway declared as unsupported modes or that failed the embedding probe.", "gateway-setup-audit-validation-failed", "entailment-claim-judging-incomplete", "entailment stage failed; degraded to WARN", "model-incompatible", "capability-unenriched", "model-port-unavailable", "grounded-memory-enrichment-failed", "advisory-phase-summary", "salience-extraction-diagnostic", "salience-capture-dropped-queue-full", "salience-capture-summary", "figma-internal-error", "Network isolation probe failed; verification enforcement defaults to fail-closed.", "SSE stream destroyed because the client stopped draining.", "grounded-preview-citations-row-dropped", "release-impact-bundled-catalog-corrupted", "memory-consolidation-scheduled-job-failed", "functional-workspace-read-not-found", "functional-workspace-read-permission-denied", "atlassian-credential-rejection-activity-log-failed", "update-session-quarantine-pruned", "update-session-quarantine-prune-degraded", "dap-session-terminal-evidence-abandoned", "Voice dictation request rejected during request validation."];
|
|
40
40
|
export type ServerDiagnosticSummary = (typeof SERVER_DIAGNOSTIC_SUMMARIES)[number];
|
|
41
41
|
export declare function describeError(error: unknown): {
|
|
42
42
|
readonly errorClass: string;
|
|
@@ -54,6 +54,7 @@ export declare function describeError(error: unknown): {
|
|
|
54
54
|
export declare function emitServerDiagnostic(sink: ServerDiagnosticSink | undefined, record: ServerDiagnosticRecord): void;
|
|
55
55
|
export declare function serverDiagnosticFromError(input: {
|
|
56
56
|
readonly correlationId: string;
|
|
57
|
+
readonly parentCorrelationId?: string | undefined;
|
|
57
58
|
readonly operation: string;
|
|
58
59
|
readonly source: string;
|
|
59
60
|
readonly error: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostics-log.d.ts","sourceRoot":"","sources":["../src/diagnostics-log.ts"],"names":[],"mappings":"AAuBA,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,YAAY,EACZ,mBAAmB,EACnB,YAAY,EACZ,6BAA6B,GAC9B,MAAM,yCAAyC,CAAC;AAajD,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAe/B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAM5B,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC;IAE1C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAInC,QAAQ,CAAC,YAAY,CAAC,EACpB;QAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAGnF,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAM/C,QAAQ,CAAC,UAA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,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAEvD,QAAQ,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC;IAC7C,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CAC7B,GAAG,sBAAsB,CAmBzB"}
|
|
@@ -283,6 +283,7 @@ const SERVER_DIAGNOSTIC_SUMMARIES = [
|
|
|
283
283
|
// swallowing that would leave the same class of leak with no diagnostic and no retry hook.
|
|
284
284
|
"coding-runtime-backend-disposal-failed",
|
|
285
285
|
"coding-runtime-operator-decision-event-rejected",
|
|
286
|
+
"coding-runtime-project-memory-context-failed",
|
|
286
287
|
// #3416: the governed repository rerank threw -- an embedding-provider timeout, a corrupted index,
|
|
287
288
|
// a bug in the ranking path. The one fallback reason that is a real failure rather than a clean
|
|
288
289
|
// absence of capability, so it carries an error class, frames and a cause chain; the search itself
|
|
@@ -504,6 +505,9 @@ export function serverDiagnosticFromError(input) {
|
|
|
504
505
|
DEFAULT_SERVER_DIAGNOSTIC_SUMMARY;
|
|
505
506
|
return {
|
|
506
507
|
correlationId: input.correlationId,
|
|
508
|
+
...(input.parentCorrelationId === undefined
|
|
509
|
+
? {}
|
|
510
|
+
: { parentCorrelationId: input.parentCorrelationId }),
|
|
507
511
|
timestamp: new Date(millis).toISOString(),
|
|
508
512
|
operation: diagnosticLabel(input.operation, OPERATION_LABEL_SHAPE, "server.operation"),
|
|
509
513
|
source: diagnosticLabel(input.source, SOURCE_LABEL_SHAPE, "server.diagnostic"),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Gateway, type GatewayConfig, type GatewaySpendBudget } from "@oscharko-dev/keiko-model-gateway";
|
|
2
2
|
export interface RuntimeGatewayConfigSource {
|
|
3
3
|
readonly spendBudget?: GatewaySpendBudget | undefined;
|
|
4
|
+
readonly initializationCorrelationId?: string | undefined;
|
|
4
5
|
current(): GatewayConfig | undefined;
|
|
5
6
|
generation(): number;
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway-instance-cache.d.ts","sourceRoot":"","sources":["../src/gateway-instance-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"gateway-instance-cache.d.ts","sourceRoot":"","sources":["../src/gateway-instance-cache.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAuB3C,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACtD,QAAQ,CAAC,2BAA2B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1D,OAAO,IAAI,aAAa,GAAG,SAAS,CAAC;IACrC,UAAU,IAAI,MAAM,CAAC;CACtB;AA0ID,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAE5F;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,GAAG,SAAS,CAE/F;AAED,4FAA4F;AAC5F,wBAAgB,iCAAiC,IAAI,IAAI,CAGxD"}
|
|
@@ -6,8 +6,12 @@ import { processServerLogSink } from "./process-log-sink.js";
|
|
|
6
6
|
// route-rejection lane is unreachable — the instance lines below would then describe which
|
|
7
7
|
// gateway was selected while saying nothing about what it did.
|
|
8
8
|
const GATEWAY_LOG_DEPS = { log: processServerLogSink() };
|
|
9
|
-
function newGateway(config, spendBudget) {
|
|
10
|
-
return new Gateway(config, {
|
|
9
|
+
function newGateway(config, spendBudget, configurationCorrelationId) {
|
|
10
|
+
return new Gateway(config, {
|
|
11
|
+
...GATEWAY_LOG_DEPS,
|
|
12
|
+
spendBudget,
|
|
13
|
+
...(configurationCorrelationId === undefined ? {} : { configurationCorrelationId }),
|
|
14
|
+
});
|
|
11
15
|
}
|
|
12
16
|
// The two reasons that DISCARD live circuit-breaker and in-flight request state. A Set rather than
|
|
13
17
|
// an array membership test (SonarJS S7776).
|
|
@@ -24,8 +28,11 @@ function runtimeSelectionReason(existing, generation, config) {
|
|
|
24
28
|
return "generation-changed";
|
|
25
29
|
return existing.config === config ? "reused" : "rebound";
|
|
26
30
|
}
|
|
27
|
-
function logRuntimeSelection(reason, generation) {
|
|
28
|
-
const
|
|
31
|
+
function logRuntimeSelection(reason, generation, initializationCorrelationId) {
|
|
32
|
+
const root = getServerLogger();
|
|
33
|
+
const log = initializationCorrelationId === undefined
|
|
34
|
+
? root
|
|
35
|
+
: root.child({ correlationId: initializationCorrelationId });
|
|
29
36
|
if (reason === "reused") {
|
|
30
37
|
// The steady state, once per gateway-touching request. Deferred so it costs nothing at `info`.
|
|
31
38
|
log.debug(() => ({
|
|
@@ -66,11 +73,11 @@ class GatewayInstanceCache {
|
|
|
66
73
|
}
|
|
67
74
|
byConfig = new WeakMap();
|
|
68
75
|
byRuntimeConfig = new WeakMap();
|
|
69
|
-
forConfig(config) {
|
|
76
|
+
forConfig(config, configurationCorrelationId) {
|
|
70
77
|
const existing = this.byConfig.get(config);
|
|
71
78
|
if (existing !== undefined)
|
|
72
79
|
return existing;
|
|
73
|
-
const gateway = newGateway(config, this.spendBudget);
|
|
80
|
+
const gateway = newGateway(config, this.spendBudget, configurationCorrelationId);
|
|
74
81
|
this.byConfig.set(config, gateway);
|
|
75
82
|
return gateway;
|
|
76
83
|
}
|
|
@@ -84,7 +91,8 @@ class GatewayInstanceCache {
|
|
|
84
91
|
return undefined;
|
|
85
92
|
}
|
|
86
93
|
const reason = runtimeSelectionReason(existing, generation, config);
|
|
87
|
-
|
|
94
|
+
const initializationCorrelationId = reason === "created" && generation === 0 ? source.initializationCorrelationId : undefined;
|
|
95
|
+
logRuntimeSelection(reason, generation, initializationCorrelationId);
|
|
88
96
|
if (reason === "reused" && existing?.kind === "available")
|
|
89
97
|
return existing.gateway;
|
|
90
98
|
// A runtime generation change invalidates circuit-breaker and request state even when a caller
|
|
@@ -92,7 +100,7 @@ class GatewayInstanceCache {
|
|
|
92
100
|
// invalidation, so it must still converge with direct callers on the config-keyed instance.
|
|
93
101
|
const gateway = LIFECYCLE_RESET_REASONS.has(reason)
|
|
94
102
|
? newGateway(config, this.spendBudget)
|
|
95
|
-
: this.forConfig(config);
|
|
103
|
+
: this.forConfig(config, initializationCorrelationId);
|
|
96
104
|
this.byRuntimeConfig.set(source, { kind: "available", config, gateway, generation });
|
|
97
105
|
return gateway;
|
|
98
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gateway-readiness.d.ts","sourceRoot":"","sources":["../src/gateway-readiness.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,eAAe,EAGrB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,KAAK,EACV,uBAAuB,EAGvB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"gateway-readiness.d.ts","sourceRoot":"","sources":["../src/gateway-readiness.ts"],"names":[],"mappings":"AACA,OAAO,EAOL,KAAK,eAAe,EAGrB,MAAM,mCAAmC,CAAC;AAE3C,OAAO,KAAK,EACV,uBAAuB,EAGvB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAQhD,OAAO,KAAK,EAAE,aAAa,EAAiC,MAAM,WAAW,CAAC;AAK9E,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAsD7D,YAAY,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AA87BrF,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,uBAAuB,GAAG,SAAS,EAC5C,UAAU,EAAE,eAAe,GAAG,SAAS,GACtC,MAAM,CAcR;AAgID,eAAO,MAAM,6BAA6B,QAAmC,CAAC;AAC9E,eAAO,MAAM,0BAA0B,QACwB,CAAC;AA8KhE,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,uBAAuB,EAChC,IAAI,EAAE,aAAa,EAInB,oBAAoB,CAAC,EAAE,MAAM,GAC5B,OAAO,CAAC,sBAAsB,GAAG,WAAW,CAAC,CA4C/C;AAgBD,eAAO,MAAM,6BAA6B,QAAS,CAAC;AAmBpD,wBAAsB,mCAAmC,CACvD,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAkBf;AAsDD,eAAO,MAAM,yBAAyB,QAAS,CAAC;AA6BhD,wBAAsB,mCAAmC,CACvD,IAAI,EAAE,aAAa,EACnB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,IAAI,CAAC,CAef;AAED,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,WAAW,CAAC,CAMtB"}
|
|
@@ -2,7 +2,7 @@ import { isConversationEligibleModel, listConfiguredCapabilities, requestGateway
|
|
|
2
2
|
import { readJsonCapped, readSseStream } from "@oscharko-dev/keiko-model-gateway/internal/http";
|
|
3
3
|
import { gatewayVerificationFromProbeOutcome } from "@oscharko-dev/keiko-contracts/runtime/gateway-verification";
|
|
4
4
|
import { maxUtf8BytesForTokenBudget } from "@oscharko-dev/keiko-contracts/runtime/context-engineering";
|
|
5
|
-
import { preferredConversationModelOrder } from "@oscharko-dev/keiko-contracts/runtime/gateway";
|
|
5
|
+
import { isCodingWorkbenchReadinessCandidate, preferredConversationModelOrder, selectCodingWorkbenchReadinessCandidate, } from "@oscharko-dev/keiko-contracts/runtime/gateway";
|
|
6
6
|
import { currentConversationReady, currentGatewayConfig } from "./deps.js";
|
|
7
7
|
import { newCorrelationId } from "./correlation.js";
|
|
8
8
|
import { emitServerDiagnostic, serverDiagnosticFromError } from "./diagnostics-log.js";
|
|
@@ -10,6 +10,7 @@ import { rerankSelection } from "./grounded-rerank-facade.js";
|
|
|
10
10
|
import { readBoundedRequestBody, RequestBodyTooLargeError } from "./bounded-request-body.js";
|
|
11
11
|
import { admittedGatewayProbeOutputLimit, probeGatewayToolCalling, probeUsage, reserveGatewayProbeSpend, settleGatewayProbeSpend, } from "./gateway-tool-calling-probe.js";
|
|
12
12
|
import { reconcileGatewayToolCallingReadiness } from "./gateway-setup.js";
|
|
13
|
+
import { processServerLogSink } from "./process-log-sink.js";
|
|
13
14
|
const DEFAULT_PROBES = [
|
|
14
15
|
"chat",
|
|
15
16
|
"streaming",
|
|
@@ -92,10 +93,12 @@ function parseReadinessOptions(raw) {
|
|
|
92
93
|
const maxContextTokens = typeof raw.maxContextTokens === "number" && Number.isFinite(raw.maxContextTokens)
|
|
93
94
|
? Math.max(1, Math.min(MAX_CONTEXT_TOKENS, Math.trunc(raw.maxContextTokens)))
|
|
94
95
|
: undefined;
|
|
96
|
+
const purpose = raw.purpose === "coding-workbench-auto" ? raw.purpose : undefined;
|
|
95
97
|
return {
|
|
96
98
|
...(probes !== undefined ? { probes } : {}),
|
|
97
99
|
...(includeDeepProbes !== undefined ? { includeDeepProbes } : {}),
|
|
98
100
|
...(maxContextTokens !== undefined ? { maxContextTokens } : {}),
|
|
101
|
+
...(purpose !== undefined ? { purpose } : {}),
|
|
99
102
|
};
|
|
100
103
|
}
|
|
101
104
|
function uniqueProbeNames(values) {
|
|
@@ -116,14 +119,18 @@ function requestedProbeNames(options) {
|
|
|
116
119
|
}
|
|
117
120
|
return Array.from(names);
|
|
118
121
|
}
|
|
119
|
-
function chooseProvider(config, requestedModelId) {
|
|
122
|
+
function chooseProvider(config, requestedModelId, options) {
|
|
120
123
|
if (config === undefined || config.providers.length === 0) {
|
|
121
124
|
return error("NO_MODEL", "Configure a gateway before running readiness checks.");
|
|
122
125
|
}
|
|
126
|
+
const firstProvider = config.providers[0];
|
|
127
|
+
if (firstProvider === undefined) {
|
|
128
|
+
return error("NO_MODEL", "Configure a gateway before running readiness checks.");
|
|
129
|
+
}
|
|
123
130
|
const capabilities = listConfiguredCapabilities(config);
|
|
124
|
-
const modelId = requestedModelId
|
|
125
|
-
|
|
126
|
-
|
|
131
|
+
const modelId = selectReadinessModelId(capabilities, requestedModelId, options, firstProvider.modelId);
|
|
132
|
+
if (typeof modelId !== "string")
|
|
133
|
+
return modelId;
|
|
127
134
|
const provider = config.providers.find((candidate) => candidate.modelId === modelId);
|
|
128
135
|
if (provider === undefined) {
|
|
129
136
|
return error("NO_MODEL", "Select a configured chat model before running readiness checks.");
|
|
@@ -134,6 +141,40 @@ function chooseProvider(config, requestedModelId) {
|
|
|
134
141
|
}
|
|
135
142
|
return { config, provider, capability };
|
|
136
143
|
}
|
|
144
|
+
function selectReadinessModelId(capabilities, requestedModelId, options, fallbackModelId) {
|
|
145
|
+
if (options?.purpose !== "coding-workbench-auto") {
|
|
146
|
+
return (requestedModelId ??
|
|
147
|
+
capabilities.find((capability) => isConversationEligibleModel(capability))?.id ??
|
|
148
|
+
fallbackModelId);
|
|
149
|
+
}
|
|
150
|
+
const candidate = requestedModelId === undefined
|
|
151
|
+
? selectCodingWorkbenchReadinessCandidate(capabilities)
|
|
152
|
+
: capabilities.find((capability) => capability.id === requestedModelId);
|
|
153
|
+
if (candidate === undefined || !isCodingWorkbenchReadinessCandidate(candidate)) {
|
|
154
|
+
return error("NO_MODEL", "Select a configured, workflow-eligible coding model before automatic verification.");
|
|
155
|
+
}
|
|
156
|
+
return candidate.id;
|
|
157
|
+
}
|
|
158
|
+
function logAutomaticReadinessStarted(deps, correlationId, modelId, probeCount) {
|
|
159
|
+
(deps.activityLog ?? processServerLogSink()).write({
|
|
160
|
+
category: "gateway",
|
|
161
|
+
op: "gateway.readiness.automatic.started",
|
|
162
|
+
correlationId,
|
|
163
|
+
extra: { modelId, probeCount },
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function logAutomaticReadinessCompleted(deps, correlationId, report) {
|
|
167
|
+
(deps.activityLog ?? processServerLogSink()).write({
|
|
168
|
+
category: "gateway",
|
|
169
|
+
op: "gateway.readiness.automatic.completed",
|
|
170
|
+
correlationId,
|
|
171
|
+
extra: {
|
|
172
|
+
modelId: report.modelId,
|
|
173
|
+
overallStatus: report.overallStatus,
|
|
174
|
+
probeCount: report.probes.length,
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
}
|
|
137
178
|
async function providerRequest(deps, config, provider, correlationId, body, options = {}) {
|
|
138
179
|
const spend = probeSpendContext(deps, config, provider, correlationId);
|
|
139
180
|
const reservation = reserveGatewayProbeSpend(provider, spend);
|
|
@@ -819,7 +860,7 @@ export async function runGatewayReadiness(request, deps,
|
|
|
819
860
|
// one id. A caller without a request context (a scheduled/CLI run) gets a freshly minted id rather
|
|
820
861
|
// than an id-less record.
|
|
821
862
|
requestCorrelationId) {
|
|
822
|
-
const selection = chooseProvider(currentGatewayConfig(deps), request.modelId);
|
|
863
|
+
const selection = chooseProvider(currentGatewayConfig(deps), request.modelId, request.options);
|
|
823
864
|
if ("status" in selection)
|
|
824
865
|
return selection;
|
|
825
866
|
// Capture the config generation BEFORE the async probes: the verdict describes this
|
|
@@ -827,6 +868,9 @@ requestCorrelationId) {
|
|
|
827
868
|
const observedGeneration = deps.gatewayConfig?.generation();
|
|
828
869
|
const correlationId = requestCorrelationId ?? newCorrelationId();
|
|
829
870
|
const names = requestedProbeNames(request.options);
|
|
871
|
+
if (request.options?.purpose === "coding-workbench-auto") {
|
|
872
|
+
logAutomaticReadinessStarted(deps, correlationId, selection.provider.modelId, names.length);
|
|
873
|
+
}
|
|
830
874
|
const probes = [];
|
|
831
875
|
const chat = await runProbe("chat", deps, selection, request.options, correlationId);
|
|
832
876
|
probes.push(chat);
|
|
@@ -853,6 +897,9 @@ requestCorrelationId) {
|
|
|
853
897
|
// Content-free: one state word, no probe bodies, no endpoints, no credentials.
|
|
854
898
|
recordReadinessObservation(deps, report, observedGeneration);
|
|
855
899
|
reconcileToolCallingReadiness(deps, report, observedGeneration, correlationId);
|
|
900
|
+
if (request.options?.purpose === "coding-workbench-auto") {
|
|
901
|
+
logAutomaticReadinessCompleted(deps, correlationId, report);
|
|
902
|
+
}
|
|
856
903
|
return report;
|
|
857
904
|
}
|
|
858
905
|
// Fresh-install gap (customer field incident, 0.3.10): a configured gateway carries NO
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gitChangeRoutes.d.ts","sourceRoot":"","sources":["../src/gitChangeRoutes.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAuP9E,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEhE;
|
|
1
|
+
{"version":3,"file":"gitChangeRoutes.d.ts","sourceRoot":"","sources":["../src/gitChangeRoutes.ts"],"names":[],"mappings":"AAoCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAuP9E,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEhE;AAqTD,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,WAAW,CAAC,CA8BtB;AAsHD,wBAAsB,sBAAsB,CAC1C,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,WAAW,CAAC,CAuCtB;AAID,eAAO,MAAM,sBAAsB,EAAE,SAAS,eAAe,EAG5D,CAAC"}
|
|
@@ -274,6 +274,8 @@ function logGitChangeEvent(deps, op, correlationId, extra) {
|
|
|
274
274
|
// ─── Connect handler ────────────────────────────────────────────────────────────────────────────
|
|
275
275
|
async function resolveConnectComparison(deps, repositoryRoot, request, correlationId) {
|
|
276
276
|
if (request.mode === "comparison") {
|
|
277
|
+
if (request.baseRef === request.headRef)
|
|
278
|
+
return "identical-refs";
|
|
277
279
|
return { baseRef: request.baseRef ?? "", headRef: request.headRef, prNumber: undefined };
|
|
278
280
|
}
|
|
279
281
|
const resolved = await resolvePullRequestByHead(deps, repositoryRoot, request.headRef, correlationId);
|