@oscharko-dev/keiko 1.1.8 → 1.1.10
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 +11 -11
- package/dist/ui/static/__next._full.txt +13 -13
- package/dist/ui/static/__next._tree.txt +2 -2
- package/dist/ui/static/_next/static/chunks/01jy5ldd_0r_5.css +23 -0
- package/dist/ui/static/_next/static/chunks/04c8gos36pwl8.js +1 -0
- package/dist/ui/static/_next/static/chunks/06yzmh78cidsr.js +1 -0
- package/dist/ui/static/_next/static/chunks/08kdz_q929mef.js +1 -0
- package/dist/ui/static/_next/static/chunks/0mkhgmj9-jvu-.js +1 -0
- package/dist/ui/static/_next/static/chunks/0no8igw4lg7c2.js +1 -0
- package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1fgcho9v65crw.js → 0rd6-ijqn28cg.js} +1 -1
- package/dist/ui/static/_next/static/chunks/0w48lw1wvc7ig.js +1 -0
- package/dist/ui/static/_next/static/chunks/115f9zt0f5hm4.js +1 -0
- package/dist/ui/static/_next/static/chunks/18qf6y7a99idv.js +1 -0
- package/dist/ui/static/_next/static/chunks/1cjmlpaxzl17x.js +1 -0
- package/dist/ui/static/_next/static/chunks/1jfpuw9-h8iaq.js +1 -0
- package/dist/ui/static/_next/static/chunks/1mi566lu15tc0.js +1 -0
- package/dist/ui/static/_next/static/chunks/1oe16odh9-wem.js +1 -0
- package/dist/ui/static/_next/static/chunks/1ql6xdhcq4th6.js +1 -0
- package/dist/ui/static/_next/static/chunks/1rrylkj4wfhla.js +1 -0
- package/dist/ui/static/_next/static/chunks/1uxrq3q9n5v4y.js +1 -0
- package/dist/ui/static/_next/static/chunks/22yars17p-i_a.js +1 -0
- package/dist/ui/static/_next/static/chunks/2iehfums033xv.css +3 -0
- package/dist/ui/static/_next/static/chunks/2kh0qihno0n1w.js +1 -0
- package/dist/ui/static/_next/static/chunks/2p6x_6c78vqic.js +1 -0
- package/dist/ui/static/_next/static/chunks/2r-wzbygkv3rm.js +3 -0
- package/dist/ui/static/_next/static/chunks/2wtsqscjch4bx.js +1 -0
- package/dist/ui/static/_next/static/chunks/35q-v--ikwjcq.js +1 -0
- package/dist/ui/static/_next/static/chunks/36m_1433yesno.js +1 -0
- package/dist/ui/static/_next/static/chunks/37mtn-h7j8ygx.js +1 -0
- package/dist/ui/static/_next/static/chunks/37ti5e50bu145.js +1 -0
- package/dist/ui/static/_next/static/chunks/38lcc_6fqzw1l.js +1 -0
- package/dist/ui/static/_next/static/chunks/{2vhgpp_064_st.js → 3gb3syh5vkuxt.js} +1 -1
- package/dist/ui/static/_next/static/chunks/3gtstv3k7jsm2.js +1 -0
- package/dist/ui/static/_next/static/chunks/{1mcajwmbse068.js → 3hs8v_qv53sil.js} +2 -2
- package/dist/ui/static/_next/static/chunks/3n4gsbv-im5ia.js +1 -0
- package/dist/ui/static/_next/static/chunks/3vnb2msty1ab4.js +1 -0
- package/dist/ui/static/_next/static/chunks/3zd1y0ze7hnsy.js +1 -0
- package/dist/ui/static/_next/static/chunks/412pf48_r8im3.js +1 -0
- package/dist/ui/static/_not-found/__next._full.txt +9 -9
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +8 -8
- 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 +9 -9
- package/dist/ui/static/atlassian-connectors/__next._full.txt +11 -11
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +10 -10
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +11 -11
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +13 -13
- package/dist/ui/static/launch/__next._full.txt +13 -13
- package/dist/ui/static/launch/__next._tree.txt +2 -2
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +11 -11
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +13 -13
- package/dist/ui/static/local-knowledge/__next._full.txt +13 -13
- package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +11 -11
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +12 -12
- 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 +10 -10
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +12 -12
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +13 -13
- 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.d.ts.map +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 +56 -16
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +81 -13
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +724 -66
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +835 -47
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +45 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +133 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +6 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +13 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +18 -9
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts.map +1 -1
- 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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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.d.ts.map +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 +15 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +32 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +4 -0
- 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 +134 -24
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.js +32 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +303 -14
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts.map +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.d.ts.map +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/client-diagnostics-routes.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +248 -15
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.d.ts +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.js +26 -8
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +13 -0
- 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 +9 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +14 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +184 -53
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +6 -4
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.js +27 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +4 -6
- 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 +24 -9
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +0 -16
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/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/codingToolIpc.js +6 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts +0 -8
- 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 +14 -20
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +11 -23
- 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 +14 -23
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts +6 -19
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.js +13 -208
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +5 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts +0 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +2 -2
- 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 +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +3 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +53 -51
- 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 +129 -31
- 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 +11 -7
- 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 +18 -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 +12 -6
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +12 -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 +4 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts +3 -1
- 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 +5 -2
- 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 +34 -28
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.d.ts +7 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.js +11 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts +4 -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 +12 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/provisioning.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/provisioning.js +9 -2
- 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/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts.map +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.d.ts.map +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 +128 -0
- package/vendor/{oscharko-dev-keiko-cli-1.1.8.tgz → oscharko-dev-keiko-cli-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.1.8.tgz → oscharko-dev-keiko-connectors-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.1.8.tgz → oscharko-dev-keiko-evaluations-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.1.8.tgz → oscharko-dev-keiko-evidence-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-harness-1.1.8.tgz → oscharko-dev-keiko-harness-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-local-knowledge-1.1.8.tgz → oscharko-dev-keiko-local-knowledge-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.10.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.1.8.tgz → oscharko-dev-keiko-memory-governance-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.1.8.tgz → oscharko-dev-keiko-memory-vault-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.8.tgz → oscharko-dev-keiko-quality-intelligence-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.1.8.tgz → oscharko-dev-keiko-sdk-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-security-1.1.8.tgz → oscharko-dev-keiko-security-1.1.10.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.10.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-tool-catalog-1.1.8.tgz → oscharko-dev-keiko-tool-catalog-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-tools-1.1.8.tgz → oscharko-dev-keiko-tools-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-verification-1.1.8.tgz → oscharko-dev-keiko-verification-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.1.8.tgz → oscharko-dev-keiko-workflows-1.1.10.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.1.8.tgz → oscharko-dev-keiko-workspace-1.1.10.tgz} +0 -0
- package/dist/ui/static/_next/static/chunks/02i0eppipph7e.js +0 -1
- package/dist/ui/static/_next/static/chunks/03deeo56ud39g.js +0 -1
- package/dist/ui/static/_next/static/chunks/09jwu8wa22c1d.js +0 -1
- package/dist/ui/static/_next/static/chunks/0_8kv51rrhcg-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0hc828_gdkyek.js +0 -3
- package/dist/ui/static/_next/static/chunks/0m0w3hleoejwg.js +0 -1
- package/dist/ui/static/_next/static/chunks/0n5hz6kjgs-3-.js +0 -1
- package/dist/ui/static/_next/static/chunks/0pgkz9ug1jhtt.js +0 -1
- package/dist/ui/static/_next/static/chunks/0qv7j1mski9o8.css +0 -17
- package/dist/ui/static/_next/static/chunks/0tt79fba99mv7.js +0 -1
- package/dist/ui/static/_next/static/chunks/0vtnpcijh-jqw.js +0 -1
- package/dist/ui/static/_next/static/chunks/0we68cbpsgepq.css +0 -1
- package/dist/ui/static/_next/static/chunks/0xxx56s32tn9r.css +0 -5
- package/dist/ui/static/_next/static/chunks/15wj80h_5chl0.js +0 -1
- package/dist/ui/static/_next/static/chunks/17lvph58d0v4m.js +0 -1
- package/dist/ui/static/_next/static/chunks/18-rkk8vbltb8.js +0 -1
- package/dist/ui/static/_next/static/chunks/18grpx4tuavds.js +0 -1
- package/dist/ui/static/_next/static/chunks/19-9yyj6ksj8d.js +0 -1
- package/dist/ui/static/_next/static/chunks/1lj5se4u-t-e9.js +0 -1
- package/dist/ui/static/_next/static/chunks/1pxoon_tb72gi.js +0 -1
- package/dist/ui/static/_next/static/chunks/1unz12nl7ckz4.js +0 -1
- package/dist/ui/static/_next/static/chunks/2179tism08tgt.js +0 -1
- package/dist/ui/static/_next/static/chunks/23wd6f5u9_yck.js +0 -1
- package/dist/ui/static/_next/static/chunks/28qanioylwdin.js +0 -1
- package/dist/ui/static/_next/static/chunks/2dbr8ufwv1hwn.js +0 -1
- package/dist/ui/static/_next/static/chunks/2gfp5s1i_t9xw.js +0 -1
- package/dist/ui/static/_next/static/chunks/2iz4lys7fa5a6.js +0 -1
- package/dist/ui/static/_next/static/chunks/2l9ens2l3tayx.js +0 -1
- package/dist/ui/static/_next/static/chunks/2x2iahxszw6_z.css +0 -1
- package/dist/ui/static/_next/static/chunks/34-h9dto6z42f.js +0 -1
- package/dist/ui/static/_next/static/chunks/3408jbh7566qd.js +0 -1
- package/dist/ui/static/_next/static/chunks/3k6g7nzn589fs.js +0 -1
- package/dist/ui/static/_next/static/chunks/3ly6-f_52vfie.js +0 -1
- package/dist/ui/static/_next/static/chunks/3q_kn20qriqd7.js +0 -1
- package/dist/ui/static/_next/static/chunks/3s_vd83y41tei.css +0 -1
- package/dist/ui/static/_next/static/chunks/3zbk4r-6rxn7j.css +0 -2
- package/vendor/oscharko-dev-keiko-contracts-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-capture-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-model-gateway-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-sandbox-1.1.8.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.8.tgz +0 -0
- /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_ssgManifest.js +0 -0
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
import { ACTIVITY_LOG_UNKNOWN_CORRELATION_ID, activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
|
|
6
6
|
import { AuthenticationError, CancelledError, ContextOverflowError, ERROR_CODES, GatewayEgressError, GatewayError, MalformedToolCallError, ModelRefusalError, ProviderEmptyAnswerError, ProviderError, ProviderOutputExhaustedError, RateLimitError, TimeoutError, TransportError, } from "@oscharko-dev/keiko-security/errors/gateway";
|
|
7
7
|
import { sha256Hex } from "@oscharko-dev/keiko-security/hashing";
|
|
8
|
-
import { apiKeyHeaderValue, DEFAULT_API_KEY_HEADER_NAME, MAX_TIMER_DELAY_MS, trimTrailingSlash, } from "./config.js";
|
|
8
|
+
import { apiKeyHeaderValue, DEFAULT_API_KEY_HEADER_NAME, MAX_TIMER_DELAY_MS, trimTrailingAzureOpenAiSegment, trimTrailingSlash, } from "./config.js";
|
|
9
9
|
import { gatewayFetch, OutboundHttpEgressError, readJsonCapped, readSseStream, SseIdleTimeoutError, } from "./http.js";
|
|
10
10
|
import { createGatewayToolCatalogBridge, retainMeasuredCatalogFailureUsage, } from "./toolCatalogBridge.js";
|
|
11
11
|
import { bindNormalizedToolCalls, normalizeChatResponse, textFromContent } from "./normalize.js";
|
|
12
12
|
import { redact } from "@oscharko-dev/keiko-security";
|
|
13
13
|
import { assertValidGatewaySamplingParameters } from "./types.js";
|
|
14
|
-
import { providerOutputTokenLimit } from "./output-token-limit.js";
|
|
14
|
+
import { OTHER_OUTPUT_TOKEN_FIELD, providerOutputTokenLimit, rejectsOutputTokenField, requiresNoReasoningWithTools, } from "./output-token-limit.js";
|
|
15
15
|
import { openAiCompatiblePromptMessage, openAiCompatiblePromptTools, } from "./prompt-token-accounting.js";
|
|
16
16
|
import { activityLogErrorKind, logCorrelationId, logEndpointHost, logLevelEnabled, logModelId, logTimer, resolveLogSink, withCorrelationId, } from "./observability.js";
|
|
17
17
|
const PROVIDER_EMPTY_ASSISTANT_STATUS = 200;
|
|
@@ -47,6 +47,17 @@ const CHAT_REQUEST_DISPATCH_OPERATION = defineActivityLogOperation({
|
|
|
47
47
|
// spent a small budget on reasoning" (finish_reason "length", ProviderOutputExhaustedError)
|
|
48
48
|
// apart from "no budget was ever declared".
|
|
49
49
|
maxOutputTokens: { type: "integer", dataClass: "count", required: false },
|
|
50
|
+
// #3640: the reasoning effort actually placed on the wire — absent when the request declared
|
|
51
|
+
// none and no override applied. "none" can only ever appear here as the tool-calling override
|
|
52
|
+
// (reasoningEffortField): it is not a selectable value anywhere the operator chooses one, so an
|
|
53
|
+
// operator reading this line can tell "the provider's own tool-calling requirement replaced the
|
|
54
|
+
// selected effort" apart from every value the product actually offers a Coding Workbench turn.
|
|
55
|
+
reasoningEffort: {
|
|
56
|
+
type: "string",
|
|
57
|
+
dataClass: "closed-enum",
|
|
58
|
+
required: false,
|
|
59
|
+
values: ["none", "minimal", "low", "medium", "high", "xhigh"],
|
|
60
|
+
},
|
|
50
61
|
},
|
|
51
62
|
causal: "correlation",
|
|
52
63
|
lifecycle: "start",
|
|
@@ -65,11 +76,13 @@ const CHAT_REQUEST_COMPATIBILITY_RETRY_OPERATION = defineActivityLogOperation({
|
|
|
65
76
|
fields: {
|
|
66
77
|
endpointDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
|
|
67
78
|
modelId: { type: "string", dataClass: "opaque-id", required: true, maxLength: 256 },
|
|
79
|
+
// The field the retry left out: the optional stream fields, or the output-token field the
|
|
80
|
+
// deployment rejected in favour of the other one (#3639).
|
|
68
81
|
omittedField: {
|
|
69
82
|
type: "string",
|
|
70
83
|
dataClass: "closed-enum",
|
|
71
84
|
required: true,
|
|
72
|
-
values: ["stream_options", "stream"],
|
|
85
|
+
values: ["stream_options", "stream", "max_tokens", "max_completion_tokens"],
|
|
73
86
|
},
|
|
74
87
|
},
|
|
75
88
|
causal: "correlation",
|
|
@@ -80,6 +93,35 @@ const CHAT_REQUEST_COMPATIBILITY_RETRY_OPERATION = defineActivityLogOperation({
|
|
|
80
93
|
releaseImpact: "patch",
|
|
81
94
|
});
|
|
82
95
|
let chatCompatibilityEndpoints = new WeakMap();
|
|
96
|
+
// #3639: the output-token field a deployment turned out to accept when its name led to the other
|
|
97
|
+
// one (a GPT-5 deployment named "prod-chat" gets max_tokens by default and rejects it). Scoped and
|
|
98
|
+
// bounded like the stream memo; an operator's explicit outputTokenParameter always wins.
|
|
99
|
+
let outputTokenFieldEndpoints = new WeakMap();
|
|
100
|
+
function rememberedOutputTokenField(scope, url) {
|
|
101
|
+
return outputTokenFieldEndpoints.get(scope)?.get(url);
|
|
102
|
+
}
|
|
103
|
+
function rememberOutputTokenField(scope, url, field) {
|
|
104
|
+
const endpoints = outputTokenFieldEndpoints.get(scope) ?? new Map();
|
|
105
|
+
endpoints.delete(url);
|
|
106
|
+
if (endpoints.size >= MAX_STRICT_STREAM_OPTIONS_ENDPOINTS) {
|
|
107
|
+
const oldest = endpoints.keys().next().value;
|
|
108
|
+
if (oldest !== undefined)
|
|
109
|
+
endpoints.delete(oldest);
|
|
110
|
+
}
|
|
111
|
+
endpoints.set(url, field);
|
|
112
|
+
outputTokenFieldEndpoints.set(scope, endpoints);
|
|
113
|
+
}
|
|
114
|
+
// The output-token field this request sends, if it sends one at all.
|
|
115
|
+
function sentOutputTokenField(request, config) {
|
|
116
|
+
const limit = providerOutputTokenLimit(request.maxOutputTokens, config);
|
|
117
|
+
if ("max_completion_tokens" in limit)
|
|
118
|
+
return "max_completion_tokens";
|
|
119
|
+
return "max_tokens" in limit ? "max_tokens" : undefined;
|
|
120
|
+
}
|
|
121
|
+
// The config one dispatch sends with, pinned to the output-token field the fallback chose.
|
|
122
|
+
function withOutputTokenField(config, field) {
|
|
123
|
+
return field === undefined ? config : { ...config, outputTokenParameter: field };
|
|
124
|
+
}
|
|
83
125
|
const MAX_STRICT_STREAM_OPTIONS_ENDPOINTS = 256;
|
|
84
126
|
const STRICT_STREAM_OPTIONS_REPROBE_MS = 15 * 60_000;
|
|
85
127
|
function chatCompatibilityMode(scope, url, now) {
|
|
@@ -109,6 +151,7 @@ function rememberChatCompatibility(scope, url, mode, now) {
|
|
|
109
151
|
}
|
|
110
152
|
export function resetChatCompatibilityMemoForTests() {
|
|
111
153
|
chatCompatibilityEndpoints = new WeakMap();
|
|
154
|
+
outputTokenFieldEndpoints = new WeakMap();
|
|
112
155
|
}
|
|
113
156
|
const CHAT_RESPONSE_STREAMED_OPERATION = defineActivityLogOperation({
|
|
114
157
|
contractKind: "activity-log-operation",
|
|
@@ -187,6 +230,7 @@ function dispatchedMaxOutputTokens(request, config) {
|
|
|
187
230
|
}
|
|
188
231
|
function chatDispatchFields(url, request, config, body, stream, includeUsage, bounds) {
|
|
189
232
|
const maxOutputTokens = dispatchedMaxOutputTokens(request, config);
|
|
233
|
+
const reasoningEffort = reasoningEffortField(request, config).reasoning_effort;
|
|
190
234
|
return {
|
|
191
235
|
endpointDigest: sha256Hex(logEndpointHost(url) ?? "invalid-endpoint"),
|
|
192
236
|
modelId: logModelId(config.modelId),
|
|
@@ -198,6 +242,7 @@ function chatDispatchFields(url, request, config, body, stream, includeUsage, bo
|
|
|
198
242
|
toolCount: request.tools?.length ?? 0,
|
|
199
243
|
...(bounds === undefined ? {} : { readBudgetMs: bounds.budgetMs }),
|
|
200
244
|
...(maxOutputTokens === undefined ? {} : { maxOutputTokens }),
|
|
245
|
+
...(reasoningEffort === undefined ? {} : { reasoningEffort }),
|
|
201
246
|
};
|
|
202
247
|
}
|
|
203
248
|
function cancellationWasDeadline(signal) {
|
|
@@ -260,16 +305,17 @@ function requestDeadline(timeoutMs, bounds, cancel) {
|
|
|
260
305
|
// GEN-AI-GATEWAY-002 (RB-4): honor Azure deployment routing for chat providers instead of silently
|
|
261
306
|
// misrouting an Azure-configured provider to the OpenAI-compatible path. Mirrors the voice adapters'
|
|
262
307
|
// joinAzureDeploymentUrl. `apiVersion` is guaranteed present for the azure style by config-time
|
|
263
|
-
// validation (assertProviderEndpointVersion enforces the biconditional).
|
|
264
|
-
// trailing slash
|
|
265
|
-
// "/" otherwise yields '//chat/completions', which LiteLLM answers with a 404 (LiteLLM
|
|
266
|
-
// audit).
|
|
308
|
+
// validation (assertProviderEndpointVersion enforces the biconditional). The OpenAI-compatible
|
|
309
|
+
// branch trims a trailing slash, exactly like the sibling adapters — a file/env-authored base URL
|
|
310
|
+
// ending in "/" otherwise yields '//chat/completions', which LiteLLM answers with a 404 (LiteLLM
|
|
311
|
+
// production audit). The Azure branch additionally strips a base URL's own trailing "/openai"
|
|
312
|
+
// segment before appending one (#3643) — see trimTrailingAzureOpenAiSegment.
|
|
267
313
|
function chatCompletionsUrl(config) {
|
|
268
|
-
const trimmed = trimTrailingSlash(config.baseUrl);
|
|
269
314
|
if (config.endpointStyle === "azure-openai-deployment") {
|
|
315
|
+
const trimmed = trimTrailingAzureOpenAiSegment(config.baseUrl);
|
|
270
316
|
return `${trimmed}/openai/deployments/${encodeURIComponent(config.modelId)}/chat/completions?api-version=${encodeURIComponent(config.apiVersion ?? "")}`;
|
|
271
317
|
}
|
|
272
|
-
return `${
|
|
318
|
+
return `${trimTrailingSlash(config.baseUrl)}/chat/completions`;
|
|
273
319
|
}
|
|
274
320
|
function toolsField(tools) {
|
|
275
321
|
if (tools === undefined)
|
|
@@ -291,16 +337,27 @@ function responseFormatField(request) {
|
|
|
291
337
|
},
|
|
292
338
|
};
|
|
293
339
|
}
|
|
294
|
-
// The
|
|
295
|
-
// so buildBody's own complexity stays under the repository ceiling (AGENTS.md §6).
|
|
340
|
+
// The three scalar sampling knobs the provider accepts unchanged from the gateway request;
|
|
341
|
+
// grouped so buildBody's own complexity stays under the repository ceiling (AGENTS.md §6).
|
|
342
|
+
// `reasoning_effort` is NOT one of them — see reasoningEffortField below.
|
|
296
343
|
function samplingFields(request) {
|
|
297
344
|
return {
|
|
298
345
|
...(request.temperature !== undefined ? { temperature: request.temperature } : {}),
|
|
299
346
|
...(request.topP !== undefined ? { top_p: request.topP } : {}),
|
|
300
347
|
...(request.seed !== undefined ? { seed: request.seed } : {}),
|
|
301
|
-
...(request.reasoningEffort !== undefined ? { reasoning_effort: request.reasoningEffort } : {}),
|
|
302
348
|
};
|
|
303
349
|
}
|
|
350
|
+
// #3640: a GPT-5.6 deployment rejects a Chat Completions request that attaches function tools
|
|
351
|
+
// unless `reasoning_effort` is exactly "none"; the model's own default effort is not "none", so
|
|
352
|
+
// omitting the field does not help (Microsoft's documented contract). This OVERRIDES whatever
|
|
353
|
+
// effort a Coding Workbench turn selected once tools are attached to such a model: "none" is the
|
|
354
|
+
// one value the provider accepts then. Every other model keeps the selected effort.
|
|
355
|
+
function reasoningEffortField(request, config) {
|
|
356
|
+
if (request.tools !== undefined && requiresNoReasoningWithTools(config.modelId)) {
|
|
357
|
+
return { reasoning_effort: "none" };
|
|
358
|
+
}
|
|
359
|
+
return request.reasoningEffort !== undefined ? { reasoning_effort: request.reasoningEffort } : {};
|
|
360
|
+
}
|
|
304
361
|
function buildBody(request, config) {
|
|
305
362
|
assertValidGatewaySamplingParameters(request);
|
|
306
363
|
return {
|
|
@@ -309,6 +366,7 @@ function buildBody(request, config) {
|
|
|
309
366
|
...toolsField(request.tools),
|
|
310
367
|
...responseFormatField(request),
|
|
311
368
|
...samplingFields(request),
|
|
369
|
+
...reasoningEffortField(request, config),
|
|
312
370
|
...providerOutputTokenLimit(request.maxOutputTokens, config),
|
|
313
371
|
};
|
|
314
372
|
}
|
|
@@ -558,6 +616,10 @@ const MODEL_REFUSAL_SIGNAL = /content[_ -]?filter|refus|safety|policy/;
|
|
|
558
616
|
function isModelRefusal(payload) {
|
|
559
617
|
return MODEL_REFUSAL_SIGNAL.test(errorSignal(payload));
|
|
560
618
|
}
|
|
619
|
+
// Exported for readiness-probe.ts (#3641): the raw readiness/setup probe shares this exact
|
|
620
|
+
// detection with the production stream adapter's own compatibility retry below, so a strict
|
|
621
|
+
// OpenAI-compatible gateway that rejects the optional `stream_options` field is retried the same
|
|
622
|
+
// way in both places instead of being recorded as "streaming unsupported" by the probe alone.
|
|
561
623
|
function isOptionalStreamFieldRejection(payload) {
|
|
562
624
|
const error = isRecord(payload) && isRecord(payload.error) ? payload.error : payload;
|
|
563
625
|
if (!isRecord(error))
|
|
@@ -809,7 +871,11 @@ export class OpenAiAdapter {
|
|
|
809
871
|
}
|
|
810
872
|
const start = this.now();
|
|
811
873
|
const catalog = createGatewayToolCatalogBridge(request, this.now, this.log);
|
|
812
|
-
const
|
|
874
|
+
const toolRequest = {
|
|
875
|
+
...request,
|
|
876
|
+
tools: catalog.tools.length === 0 ? undefined : catalog.tools,
|
|
877
|
+
};
|
|
878
|
+
const dispatched = await this.dispatchWithOutputTokenFallback(toolRequest, config, (field) => this.dispatch(toolRequest, withOutputTokenField(config, field), secrets));
|
|
813
879
|
try {
|
|
814
880
|
const { response } = dispatched;
|
|
815
881
|
if (!response.ok) {
|
|
@@ -1043,10 +1109,11 @@ export class OpenAiAdapter {
|
|
|
1043
1109
|
url,
|
|
1044
1110
|
};
|
|
1045
1111
|
const mode = chatCompatibilityMode(memoScope, url, this.now);
|
|
1046
|
-
if (mode === "whole-body")
|
|
1047
|
-
return this.dispatch(request, config, secrets, false, bounds);
|
|
1112
|
+
if (mode === "whole-body") {
|
|
1113
|
+
return this.dispatchWithOutputTokenFallback(request, config, (field) => this.dispatch(request, withOutputTokenField(config, field), secrets, false, bounds));
|
|
1114
|
+
}
|
|
1048
1115
|
const includeUsage = mode !== "omit-usage";
|
|
1049
|
-
const first = await this.dispatch(request, config, secrets, true, bounds, includeUsage);
|
|
1116
|
+
const first = await this.dispatchWithOutputTokenFallback(request, config, (field) => this.dispatch(request, withOutputTokenField(config, field), secrets, true, bounds, includeUsage));
|
|
1050
1117
|
if (first.response.ok || !isStrictChatShapeRejection(first.response.status))
|
|
1051
1118
|
return first;
|
|
1052
1119
|
if (!includeUsage)
|
|
@@ -1059,7 +1126,7 @@ export class OpenAiAdapter {
|
|
|
1059
1126
|
return this.retryWithoutStreamingIfNamed(retry, context);
|
|
1060
1127
|
}
|
|
1061
1128
|
async retryWithoutUsage(failed, context) {
|
|
1062
|
-
const { request, config, secrets,
|
|
1129
|
+
const { request, config, secrets, url } = context;
|
|
1063
1130
|
try {
|
|
1064
1131
|
const payload = await this.readErrorBody(failed.response, config, secrets, failed.signal);
|
|
1065
1132
|
if (shouldPreserveProviderRejection(failed.response.status, payload)) {
|
|
@@ -1069,14 +1136,22 @@ export class OpenAiAdapter {
|
|
|
1069
1136
|
finally {
|
|
1070
1137
|
failed.dispose();
|
|
1071
1138
|
}
|
|
1139
|
+
this.logChatCompatibilityRetry(url, config, failed.response.status, "stream_options");
|
|
1140
|
+
// A deployment can reject the output-token field only once the stream shape is accepted, so the
|
|
1141
|
+
// field fallback wraps every compatibility dispatch, not only the first (PR #3625 review).
|
|
1142
|
+
return this.dispatchWithOutputTokenFallback(request, config, (field) => this.dispatchWithinBudget(context, { stream: true, includeUsage: false, field }));
|
|
1143
|
+
}
|
|
1144
|
+
// One compatibility retry, bounded by what the original request's budget has left at the moment
|
|
1145
|
+
// it is sent.
|
|
1146
|
+
dispatchWithinBudget(context, shape) {
|
|
1147
|
+
const { request, config, secrets, bounds, startedAt } = context;
|
|
1072
1148
|
const remainingMs = remainingCompatibilityBudgetMs(bounds, startedAt, Date.now, config, secrets);
|
|
1073
1149
|
const retryBounds = bounds === undefined ? undefined : { ...bounds, budgetMs: remainingMs };
|
|
1074
1150
|
const retryConfig = bounds === undefined ? { ...config, timeoutMs: remainingMs } : config;
|
|
1075
|
-
this.
|
|
1076
|
-
return this.dispatch(request, retryConfig, secrets, true, retryBounds, false);
|
|
1151
|
+
return this.dispatch(request, withOutputTokenField(retryConfig, shape.field), secrets, shape.stream, retryBounds, shape.includeUsage);
|
|
1077
1152
|
}
|
|
1078
1153
|
async retryWithoutStreamingIfNamed(failed, context) {
|
|
1079
|
-
const { request, config, secrets,
|
|
1154
|
+
const { request, config, secrets, memoScope, url } = context;
|
|
1080
1155
|
if (!isStrictChatShapeRejection(failed.response.status))
|
|
1081
1156
|
return failed;
|
|
1082
1157
|
try {
|
|
@@ -1089,15 +1164,50 @@ export class OpenAiAdapter {
|
|
|
1089
1164
|
finally {
|
|
1090
1165
|
failed.dispose();
|
|
1091
1166
|
}
|
|
1092
|
-
const remainingMs = remainingCompatibilityBudgetMs(bounds, startedAt, Date.now, config, secrets);
|
|
1093
|
-
const retryBounds = bounds === undefined ? undefined : { ...bounds, budgetMs: remainingMs };
|
|
1094
|
-
const retryConfig = bounds === undefined ? { ...config, timeoutMs: remainingMs } : config;
|
|
1095
1167
|
this.logChatCompatibilityRetry(url, config, failed.response.status, "stream");
|
|
1096
|
-
const retry = await this.
|
|
1168
|
+
const retry = await this.dispatchWithOutputTokenFallback(request, config, (field) => this.dispatchWithinBudget(context, { stream: false, includeUsage: true, field }));
|
|
1097
1169
|
if (retry.response.ok)
|
|
1098
1170
|
rememberChatCompatibility(memoScope, url, "whole-body", this.now());
|
|
1099
1171
|
return retry;
|
|
1100
1172
|
}
|
|
1173
|
+
// The output-token field a request sends: an operator's explicit field, else the one this endpoint
|
|
1174
|
+
// turned out to accept (#3639), else the model-family default; none without an output bound.
|
|
1175
|
+
outputTokenFieldFor(request, config) {
|
|
1176
|
+
if (request.maxOutputTokens === undefined)
|
|
1177
|
+
return undefined;
|
|
1178
|
+
const remembered = rememberedOutputTokenField(this.deps.compatibilityMemoScope ?? config, chatCompletionsUrl(config));
|
|
1179
|
+
return config.outputTokenParameter ?? remembered ?? sentOutputTokenField(request, config);
|
|
1180
|
+
}
|
|
1181
|
+
// #3639: a deployment whose name hides its model family gets the wrong output-token field — a
|
|
1182
|
+
// GPT-5 deployment named "prod-chat" is sent max_tokens and rejects it. A strict-shape rejection
|
|
1183
|
+
// that says the field sent is unsupported is answered once with the other field; the endpoint
|
|
1184
|
+
// keeps that field only once it was accepted, so no other rejection can poison its later
|
|
1185
|
+
// requests. Any other rejection comes back unread, and an explicit outputTokenParameter wins.
|
|
1186
|
+
async dispatchWithOutputTokenFallback(request, config, send) {
|
|
1187
|
+
const field = this.outputTokenFieldFor(request, config);
|
|
1188
|
+
const first = await send(field);
|
|
1189
|
+
if (!this.mayRetryOutputTokenField(first, field, config))
|
|
1190
|
+
return first;
|
|
1191
|
+
const secrets = [config.apiKey, config.baseUrl];
|
|
1192
|
+
const payload = await this.readErrorBody(first.response.clone(), config, secrets, first.signal);
|
|
1193
|
+
if (field === undefined || !rejectsOutputTokenField(payload, field))
|
|
1194
|
+
return first;
|
|
1195
|
+
first.dispose();
|
|
1196
|
+
const url = chatCompletionsUrl(config);
|
|
1197
|
+
const other = OTHER_OUTPUT_TOKEN_FIELD[field];
|
|
1198
|
+
this.logChatCompatibilityRetry(url, config, first.response.status, field);
|
|
1199
|
+
const retry = await send(other);
|
|
1200
|
+
if (retry.response.ok) {
|
|
1201
|
+
rememberOutputTokenField(this.deps.compatibilityMemoScope ?? config, url, other);
|
|
1202
|
+
}
|
|
1203
|
+
return retry;
|
|
1204
|
+
}
|
|
1205
|
+
mayRetryOutputTokenField(first, field, config) {
|
|
1206
|
+
return (field !== undefined &&
|
|
1207
|
+
config.outputTokenParameter === undefined &&
|
|
1208
|
+
!first.response.ok &&
|
|
1209
|
+
isStrictChatShapeRejection(first.response.status));
|
|
1210
|
+
}
|
|
1101
1211
|
logChatCompatibilityRetry(url, config, status, omittedField) {
|
|
1102
1212
|
this.log.write(activityLogEvent(CHAT_REQUEST_COMPATIBILITY_RETRY_OPERATION, { level: "warn", status, correlationId: logCorrelationId(this.log) }, {
|
|
1103
1213
|
endpointDigest: sha256Hex(logEndpointHost(url) ?? "invalid-endpoint"),
|
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
import type { ModelProviderConfig } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Whether the model accepts function tools on Chat Completions only with `reasoning_effort: "none"`
|
|
4
|
+
* (#3640, Microsoft's documented GPT-5.6 contract; omitting the field does not help). Every other
|
|
5
|
+
* model, including the rest of the gpt-5 family, keeps the effort the turn selected.
|
|
6
|
+
*/
|
|
7
|
+
export declare function requiresNoReasoningWithTools(modelId: string): boolean;
|
|
2
8
|
/** One provider-field projection shared by normal calls and raw readiness probes. */
|
|
3
9
|
export declare function providerOutputTokenLimit(maxOutputTokens: number | undefined, config: ModelProviderConfig): {
|
|
4
10
|
readonly max_tokens?: number;
|
|
5
11
|
readonly max_completion_tokens?: number;
|
|
6
12
|
};
|
|
13
|
+
/** The two provider fields that carry an output-token bound. */
|
|
14
|
+
export type OutputTokenField = "max_tokens" | "max_completion_tokens";
|
|
15
|
+
export declare const OTHER_OUTPUT_TOKEN_FIELD: Readonly<Record<OutputTokenField, OutputTokenField>>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether a provider rejection names the output-token field a request sent AND says that field is
|
|
18
|
+
* unsupported: Azure answers a GPT-5 deployment's max_tokens with param "max_tokens" and code
|
|
19
|
+
* "unsupported_parameter"; an older model names max_completion_tokens as an unrecognized argument.
|
|
20
|
+
* A rejected value of a supported field ("invalid_value", "integer above maximum") is no reason to
|
|
21
|
+
* switch fields (#3639, PR #3625 review). One rule for the chat adapter and the readiness probe.
|
|
22
|
+
*/
|
|
23
|
+
export declare function rejectsOutputTokenField(payload: unknown, field: OutputTokenField): boolean;
|
|
7
24
|
//# sourceMappingURL=output-token-limit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-token-limit.d.ts","sourceRoot":"","sources":["../src/output-token-limit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"output-token-limit.d.ts","sourceRoot":"","sources":["../src/output-token-limit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAMtD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAErE;AAED,qFAAqF;AACrF,wBAAgB,wBAAwB,CACtC,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,MAAM,EAAE,mBAAmB,GAC1B;IAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAA;CAAE,CAU3E;AAED,gEAAgE;AAChE,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,uBAAuB,CAAC;AAEtE,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAGzF,CAAC;AAMF;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAO1F"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
const COMPLETION_TOKEN_PARAMETER_MODEL_RE = /^(?:gpt-5|o[134])(?:[.-]|$)/iu;
|
|
2
|
+
const NO_REASONING_WITH_TOOLS_MODEL_RE = /^gpt-5\.6(?:[.-]|$)/iu;
|
|
3
|
+
/**
|
|
4
|
+
* Whether the model accepts function tools on Chat Completions only with `reasoning_effort: "none"`
|
|
5
|
+
* (#3640, Microsoft's documented GPT-5.6 contract; omitting the field does not help). Every other
|
|
6
|
+
* model, including the rest of the gpt-5 family, keeps the effort the turn selected.
|
|
7
|
+
*/
|
|
8
|
+
export function requiresNoReasoningWithTools(modelId) {
|
|
9
|
+
return NO_REASONING_WITH_TOOLS_MODEL_RE.test(modelId);
|
|
10
|
+
}
|
|
2
11
|
/** One provider-field projection shared by normal calls and raw readiness probes. */
|
|
3
12
|
export function providerOutputTokenLimit(maxOutputTokens, config) {
|
|
4
13
|
if (maxOutputTokens === undefined)
|
|
@@ -11,3 +20,26 @@ export function providerOutputTokenLimit(maxOutputTokens, config) {
|
|
|
11
20
|
? { max_completion_tokens: maxOutputTokens }
|
|
12
21
|
: { max_tokens: maxOutputTokens };
|
|
13
22
|
}
|
|
23
|
+
export const OTHER_OUTPUT_TOKEN_FIELD = {
|
|
24
|
+
max_tokens: "max_completion_tokens",
|
|
25
|
+
max_completion_tokens: "max_tokens",
|
|
26
|
+
};
|
|
27
|
+
function isRecord(value) {
|
|
28
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Whether a provider rejection names the output-token field a request sent AND says that field is
|
|
32
|
+
* unsupported: Azure answers a GPT-5 deployment's max_tokens with param "max_tokens" and code
|
|
33
|
+
* "unsupported_parameter"; an older model names max_completion_tokens as an unrecognized argument.
|
|
34
|
+
* A rejected value of a supported field ("invalid_value", "integer above maximum") is no reason to
|
|
35
|
+
* switch fields (#3639, PR #3625 review). One rule for the chat adapter and the readiness probe.
|
|
36
|
+
*/
|
|
37
|
+
export function rejectsOutputTokenField(payload, field) {
|
|
38
|
+
const error = isRecord(payload) && isRecord(payload.error) ? payload.error : payload;
|
|
39
|
+
if (!isRecord(error))
|
|
40
|
+
return false;
|
|
41
|
+
const message = typeof error.message === "string" ? error.message.toLowerCase() : "";
|
|
42
|
+
const code = typeof error.code === "string" ? error.code.toLowerCase() : "";
|
|
43
|
+
const namesField = error.param === field || message.includes(field);
|
|
44
|
+
return namesField && /unsupported|not supported|unrecognized|unknown/.test(`${code} ${message}`);
|
|
45
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ModelGatewayLogSink } from "./observability.js";
|
|
1
2
|
import type { GatewayConfig, ModelProviderConfig } from "./types.js";
|
|
2
3
|
export interface GatewayReadinessChatCompletionRequest {
|
|
3
4
|
readonly config: GatewayConfig;
|
|
@@ -7,6 +8,12 @@ export interface GatewayReadinessChatCompletionRequest {
|
|
|
7
8
|
readonly fetchImpl?: typeof fetch | undefined;
|
|
8
9
|
readonly maxResponseBytes?: number | undefined;
|
|
9
10
|
readonly maxOutputTokens?: number | undefined;
|
|
11
|
+
readonly log?: ModelGatewayLogSink | undefined;
|
|
12
|
+
readonly correlationId?: string | undefined;
|
|
13
|
+
readonly errorEvidence?: ((error: unknown) => {
|
|
14
|
+
readonly frames: readonly string[];
|
|
15
|
+
readonly causeChain: readonly string[];
|
|
16
|
+
}) | undefined;
|
|
10
17
|
}
|
|
11
18
|
export declare function requestGatewayReadinessChatCompletion(request: GatewayReadinessChatCompletionRequest): Promise<Response>;
|
|
12
19
|
//# sourceMappingURL=readiness-probe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readiness-probe.d.ts","sourceRoot":"","sources":["../src/readiness-probe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"readiness-probe.d.ts","sourceRoot":"","sources":["../src/readiness-probe.ts"],"names":[],"mappings":"AAaA,OAAO,EAML,KAAK,mBAAmB,EACzB,MAAM,oBAAoB,CAAC;AAQ5B,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAQrE,MAAM,WAAW,qCAAqC;IACpD,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACjD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAG9C,QAAQ,CAAC,GAAG,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAG5C,QAAQ,CAAC,aAAa,CAAC,EACnB,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK;QACnB,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;QACnC,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;KACxC,CAAC,GACF,SAAS,CAAC;CACf;AA2YD,wBAAsB,qCAAqC,CACzD,OAAO,EAAE,qCAAqC,GAC7C,OAAO,CAAC,QAAQ,CAAC,CAgBnB"}
|