@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.
Files changed (308) hide show
  1. package/dist/ui/csp-hashes.json +6 -6
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +11 -11
  4. package/dist/ui/static/__next._full.txt +13 -13
  5. package/dist/ui/static/__next._tree.txt +2 -2
  6. package/dist/ui/static/_next/static/chunks/01jy5ldd_0r_5.css +23 -0
  7. package/dist/ui/static/_next/static/chunks/04c8gos36pwl8.js +1 -0
  8. package/dist/ui/static/_next/static/chunks/06yzmh78cidsr.js +1 -0
  9. package/dist/ui/static/_next/static/chunks/08kdz_q929mef.js +1 -0
  10. package/dist/ui/static/_next/static/chunks/0mkhgmj9-jvu-.js +1 -0
  11. package/dist/ui/static/_next/static/chunks/0no8igw4lg7c2.js +1 -0
  12. package/dist/ui/static/_next/static/chunks/0qt-w4yzb50ov.js +1 -0
  13. package/dist/ui/static/_next/static/chunks/{1fgcho9v65crw.js → 0rd6-ijqn28cg.js} +1 -1
  14. package/dist/ui/static/_next/static/chunks/0w48lw1wvc7ig.js +1 -0
  15. package/dist/ui/static/_next/static/chunks/115f9zt0f5hm4.js +1 -0
  16. package/dist/ui/static/_next/static/chunks/18qf6y7a99idv.js +1 -0
  17. package/dist/ui/static/_next/static/chunks/1cjmlpaxzl17x.js +1 -0
  18. package/dist/ui/static/_next/static/chunks/1jfpuw9-h8iaq.js +1 -0
  19. package/dist/ui/static/_next/static/chunks/1mi566lu15tc0.js +1 -0
  20. package/dist/ui/static/_next/static/chunks/1oe16odh9-wem.js +1 -0
  21. package/dist/ui/static/_next/static/chunks/1ql6xdhcq4th6.js +1 -0
  22. package/dist/ui/static/_next/static/chunks/1rrylkj4wfhla.js +1 -0
  23. package/dist/ui/static/_next/static/chunks/1uxrq3q9n5v4y.js +1 -0
  24. package/dist/ui/static/_next/static/chunks/22yars17p-i_a.js +1 -0
  25. package/dist/ui/static/_next/static/chunks/2iehfums033xv.css +3 -0
  26. package/dist/ui/static/_next/static/chunks/2kh0qihno0n1w.js +1 -0
  27. package/dist/ui/static/_next/static/chunks/2p6x_6c78vqic.js +1 -0
  28. package/dist/ui/static/_next/static/chunks/2r-wzbygkv3rm.js +3 -0
  29. package/dist/ui/static/_next/static/chunks/2wtsqscjch4bx.js +1 -0
  30. package/dist/ui/static/_next/static/chunks/35q-v--ikwjcq.js +1 -0
  31. package/dist/ui/static/_next/static/chunks/36m_1433yesno.js +1 -0
  32. package/dist/ui/static/_next/static/chunks/37mtn-h7j8ygx.js +1 -0
  33. package/dist/ui/static/_next/static/chunks/37ti5e50bu145.js +1 -0
  34. package/dist/ui/static/_next/static/chunks/38lcc_6fqzw1l.js +1 -0
  35. package/dist/ui/static/_next/static/chunks/{2vhgpp_064_st.js → 3gb3syh5vkuxt.js} +1 -1
  36. package/dist/ui/static/_next/static/chunks/3gtstv3k7jsm2.js +1 -0
  37. package/dist/ui/static/_next/static/chunks/{1mcajwmbse068.js → 3hs8v_qv53sil.js} +2 -2
  38. package/dist/ui/static/_next/static/chunks/3n4gsbv-im5ia.js +1 -0
  39. package/dist/ui/static/_next/static/chunks/3vnb2msty1ab4.js +1 -0
  40. package/dist/ui/static/_next/static/chunks/3zd1y0ze7hnsy.js +1 -0
  41. package/dist/ui/static/_next/static/chunks/412pf48_r8im3.js +1 -0
  42. package/dist/ui/static/_not-found/__next._full.txt +9 -9
  43. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +8 -8
  44. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  45. package/dist/ui/static/_not-found.html +1 -1
  46. package/dist/ui/static/_not-found.txt +9 -9
  47. package/dist/ui/static/atlassian-connectors/__next._full.txt +11 -11
  48. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  49. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +10 -10
  50. package/dist/ui/static/atlassian-connectors.html +1 -1
  51. package/dist/ui/static/atlassian-connectors.txt +11 -11
  52. package/dist/ui/static/index.html +1 -1
  53. package/dist/ui/static/index.txt +13 -13
  54. package/dist/ui/static/launch/__next._full.txt +13 -13
  55. package/dist/ui/static/launch/__next._tree.txt +2 -2
  56. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +11 -11
  57. package/dist/ui/static/launch.html +1 -1
  58. package/dist/ui/static/launch.txt +13 -13
  59. package/dist/ui/static/local-knowledge/__next._full.txt +13 -13
  60. package/dist/ui/static/local-knowledge/__next._tree.txt +2 -2
  61. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +11 -11
  62. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +12 -12
  63. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  64. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +10 -10
  65. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  66. package/dist/ui/static/local-knowledge/capsule.txt +12 -12
  67. package/dist/ui/static/local-knowledge.html +1 -1
  68. package/dist/ui/static/local-knowledge.txt +13 -13
  69. package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
  70. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
  71. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts.map +1 -1
  72. package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
  73. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  74. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts +56 -16
  75. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.d.ts.map +1 -1
  76. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-failure-class-contracts.js +81 -13
  77. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +724 -66
  78. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
  79. package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +835 -47
  80. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts +45 -0
  81. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.d.ts.map +1 -1
  82. package/node_modules/@oscharko-dev/keiko-contracts/dist/diagnostics.js +133 -3
  83. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts +6 -0
  84. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.d.ts.map +1 -1
  85. package/node_modules/@oscharko-dev/keiko-contracts/dist/editor-agent.js +13 -2
  86. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.d.ts.map +1 -1
  87. package/node_modules/@oscharko-dev/keiko-contracts/dist/gateway.js +18 -9
  88. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
  89. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts.map +1 -1
  90. package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
  91. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  92. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  93. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  94. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts.map +1 -1
  95. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  96. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  97. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
  98. package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts.map +1 -1
  99. package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
  100. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  101. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  102. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts.map +1 -1
  103. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  104. package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
  105. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  106. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts.map +1 -1
  107. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  108. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  109. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  110. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts.map +1 -1
  111. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  112. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  113. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  114. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts.map +1 -1
  115. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  116. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  117. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  118. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts.map +1 -1
  119. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  120. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  121. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  122. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts.map +1 -1
  123. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  124. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  125. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  126. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts.map +1 -1
  127. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  128. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  129. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts +15 -0
  130. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.d.ts.map +1 -1
  131. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/config.js +32 -0
  132. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +4 -0
  133. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  134. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +134 -24
  135. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.d.ts +17 -0
  136. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.d.ts.map +1 -1
  137. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/output-token-limit.js +32 -0
  138. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts +7 -0
  139. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.d.ts.map +1 -1
  140. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/readiness-probe.js +303 -14
  141. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  142. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts.map +1 -1
  143. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  144. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
  145. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  146. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  147. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  148. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  149. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  151. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  152. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.d.ts.map +1 -1
  153. package/node_modules/@oscharko-dev/keiko-server/dist/client-diagnostics-routes.js +248 -15
  154. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts +2 -2
  155. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.d.ts.map +1 -1
  156. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeActivityOperations.js +1 -0
  157. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.d.ts +6 -1
  158. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.d.ts.map +1 -1
  159. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEditorMutationLeaseCoordinator.js +26 -8
  160. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts +13 -0
  161. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +9 -0
  163. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts +14 -1
  164. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.d.ts.map +1 -1
  165. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeOrchestrator.js +184 -53
  166. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +6 -4
  167. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts +7 -0
  168. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.d.ts.map +1 -1
  169. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolApprovalBridge.js +27 -0
  170. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts +4 -6
  171. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.d.ts.map +1 -1
  172. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacade.js +24 -9
  173. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts +0 -16
  174. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolFacadePorts.d.ts.map +1 -1
  175. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts +8 -2
  176. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.d.ts.map +1 -1
  177. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolIpc.js +6 -1
  178. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts +0 -8
  179. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.d.ts.map +1 -1
  180. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingToolReadEditPorts.js +14 -20
  181. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeAdapter.js +11 -23
  182. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.d.ts.map +1 -1
  183. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeRuntimeComposition.js +14 -23
  184. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts +6 -19
  185. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.d.ts.map +1 -1
  186. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2ApprovalRequests.js +13 -208
  187. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts +5 -1
  188. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.d.ts.map +1 -1
  189. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/opencodeV2HttpClient.js +2 -2
  190. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts +0 -6
  191. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.d.ts.map +1 -1
  192. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionAuxiliaryPorts.js +2 -2
  193. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.d.ts.map +1 -1
  194. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimePorts.js +1 -0
  195. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts +3 -1
  196. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.d.ts.map +1 -1
  197. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionManagedWorktreeTools.js +53 -51
  198. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.d.ts.map +1 -1
  199. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-gateway.js +129 -31
  200. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.d.ts.map +1 -1
  201. package/node_modules/@oscharko-dev/keiko-server/dist/coding-sidecar-tool-facade.js +11 -7
  202. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.d.ts.map +1 -1
  203. package/node_modules/@oscharko-dev/keiko-server/dist/editor/agentRoutes.js +18 -8
  204. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  205. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +12 -6
  206. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts +4 -0
  207. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.d.ts.map +1 -1
  208. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-tool-calling-probe.js +12 -0
  209. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.d.ts.map +1 -1
  210. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/execution.js +4 -0
  211. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts +3 -1
  212. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.d.ts.map +1 -1
  213. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyObservationService.js +5 -2
  214. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.d.ts.map +1 -1
  215. package/node_modules/@oscharko-dev/keiko-server/dist/gitDelivery/journeyRoutes.js +34 -28
  216. package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.d.ts +7 -0
  217. package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.d.ts.map +1 -1
  218. package/node_modules/@oscharko-dev/keiko-server/dist/gitRepositoryReads.js +11 -0
  219. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts +4 -0
  220. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.d.ts.map +1 -1
  221. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/activity-log.js +12 -0
  222. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/provisioning.d.ts.map +1 -1
  223. package/node_modules/@oscharko-dev/keiko-server/dist/task-workspace/provisioning.js +9 -2
  224. package/node_modules/@oscharko-dev/keiko-server/package.json +22 -22
  225. package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
  226. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  227. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts.map +1 -1
  228. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  229. package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
  230. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  231. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  232. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  233. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts.map +1 -1
  234. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  235. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  236. package/package.json +26 -26
  237. package/release-impact.catalog.json +128 -0
  238. package/vendor/{oscharko-dev-keiko-cli-1.1.8.tgz → oscharko-dev-keiko-cli-1.1.10.tgz} +0 -0
  239. package/vendor/{oscharko-dev-keiko-connectors-1.1.8.tgz → oscharko-dev-keiko-connectors-1.1.10.tgz} +0 -0
  240. package/vendor/oscharko-dev-keiko-contracts-1.1.10.tgz +0 -0
  241. package/vendor/{oscharko-dev-keiko-evaluations-1.1.8.tgz → oscharko-dev-keiko-evaluations-1.1.10.tgz} +0 -0
  242. package/vendor/{oscharko-dev-keiko-evidence-1.1.8.tgz → oscharko-dev-keiko-evidence-1.1.10.tgz} +0 -0
  243. package/vendor/oscharko-dev-keiko-git-1.1.10.tgz +0 -0
  244. package/vendor/{oscharko-dev-keiko-harness-1.1.8.tgz → oscharko-dev-keiko-harness-1.1.10.tgz} +0 -0
  245. package/vendor/{oscharko-dev-keiko-local-knowledge-1.1.8.tgz → oscharko-dev-keiko-local-knowledge-1.1.10.tgz} +0 -0
  246. package/vendor/oscharko-dev-keiko-memory-capture-1.1.10.tgz +0 -0
  247. package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.10.tgz +0 -0
  248. package/vendor/{oscharko-dev-keiko-memory-governance-1.1.8.tgz → oscharko-dev-keiko-memory-governance-1.1.10.tgz} +0 -0
  249. package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.10.tgz +0 -0
  250. package/vendor/{oscharko-dev-keiko-memory-vault-1.1.8.tgz → oscharko-dev-keiko-memory-vault-1.1.10.tgz} +0 -0
  251. package/vendor/oscharko-dev-keiko-model-gateway-1.1.10.tgz +0 -0
  252. package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.8.tgz → oscharko-dev-keiko-quality-intelligence-1.1.10.tgz} +0 -0
  253. package/vendor/oscharko-dev-keiko-sandbox-1.1.10.tgz +0 -0
  254. package/vendor/{oscharko-dev-keiko-sdk-1.1.8.tgz → oscharko-dev-keiko-sdk-1.1.10.tgz} +0 -0
  255. package/vendor/{oscharko-dev-keiko-security-1.1.8.tgz → oscharko-dev-keiko-security-1.1.10.tgz} +0 -0
  256. package/vendor/oscharko-dev-keiko-server-1.1.10.tgz +0 -0
  257. package/vendor/{oscharko-dev-keiko-tool-catalog-1.1.8.tgz → oscharko-dev-keiko-tool-catalog-1.1.10.tgz} +0 -0
  258. package/vendor/{oscharko-dev-keiko-tools-1.1.8.tgz → oscharko-dev-keiko-tools-1.1.10.tgz} +0 -0
  259. package/vendor/{oscharko-dev-keiko-verification-1.1.8.tgz → oscharko-dev-keiko-verification-1.1.10.tgz} +0 -0
  260. package/vendor/{oscharko-dev-keiko-workflows-1.1.8.tgz → oscharko-dev-keiko-workflows-1.1.10.tgz} +0 -0
  261. package/vendor/{oscharko-dev-keiko-workspace-1.1.8.tgz → oscharko-dev-keiko-workspace-1.1.10.tgz} +0 -0
  262. package/dist/ui/static/_next/static/chunks/02i0eppipph7e.js +0 -1
  263. package/dist/ui/static/_next/static/chunks/03deeo56ud39g.js +0 -1
  264. package/dist/ui/static/_next/static/chunks/09jwu8wa22c1d.js +0 -1
  265. package/dist/ui/static/_next/static/chunks/0_8kv51rrhcg-.js +0 -1
  266. package/dist/ui/static/_next/static/chunks/0hc828_gdkyek.js +0 -3
  267. package/dist/ui/static/_next/static/chunks/0m0w3hleoejwg.js +0 -1
  268. package/dist/ui/static/_next/static/chunks/0n5hz6kjgs-3-.js +0 -1
  269. package/dist/ui/static/_next/static/chunks/0pgkz9ug1jhtt.js +0 -1
  270. package/dist/ui/static/_next/static/chunks/0qv7j1mski9o8.css +0 -17
  271. package/dist/ui/static/_next/static/chunks/0tt79fba99mv7.js +0 -1
  272. package/dist/ui/static/_next/static/chunks/0vtnpcijh-jqw.js +0 -1
  273. package/dist/ui/static/_next/static/chunks/0we68cbpsgepq.css +0 -1
  274. package/dist/ui/static/_next/static/chunks/0xxx56s32tn9r.css +0 -5
  275. package/dist/ui/static/_next/static/chunks/15wj80h_5chl0.js +0 -1
  276. package/dist/ui/static/_next/static/chunks/17lvph58d0v4m.js +0 -1
  277. package/dist/ui/static/_next/static/chunks/18-rkk8vbltb8.js +0 -1
  278. package/dist/ui/static/_next/static/chunks/18grpx4tuavds.js +0 -1
  279. package/dist/ui/static/_next/static/chunks/19-9yyj6ksj8d.js +0 -1
  280. package/dist/ui/static/_next/static/chunks/1lj5se4u-t-e9.js +0 -1
  281. package/dist/ui/static/_next/static/chunks/1pxoon_tb72gi.js +0 -1
  282. package/dist/ui/static/_next/static/chunks/1unz12nl7ckz4.js +0 -1
  283. package/dist/ui/static/_next/static/chunks/2179tism08tgt.js +0 -1
  284. package/dist/ui/static/_next/static/chunks/23wd6f5u9_yck.js +0 -1
  285. package/dist/ui/static/_next/static/chunks/28qanioylwdin.js +0 -1
  286. package/dist/ui/static/_next/static/chunks/2dbr8ufwv1hwn.js +0 -1
  287. package/dist/ui/static/_next/static/chunks/2gfp5s1i_t9xw.js +0 -1
  288. package/dist/ui/static/_next/static/chunks/2iz4lys7fa5a6.js +0 -1
  289. package/dist/ui/static/_next/static/chunks/2l9ens2l3tayx.js +0 -1
  290. package/dist/ui/static/_next/static/chunks/2x2iahxszw6_z.css +0 -1
  291. package/dist/ui/static/_next/static/chunks/34-h9dto6z42f.js +0 -1
  292. package/dist/ui/static/_next/static/chunks/3408jbh7566qd.js +0 -1
  293. package/dist/ui/static/_next/static/chunks/3k6g7nzn589fs.js +0 -1
  294. package/dist/ui/static/_next/static/chunks/3ly6-f_52vfie.js +0 -1
  295. package/dist/ui/static/_next/static/chunks/3q_kn20qriqd7.js +0 -1
  296. package/dist/ui/static/_next/static/chunks/3s_vd83y41tei.css +0 -1
  297. package/dist/ui/static/_next/static/chunks/3zbk4r-6rxn7j.css +0 -2
  298. package/vendor/oscharko-dev-keiko-contracts-1.1.8.tgz +0 -0
  299. package/vendor/oscharko-dev-keiko-git-1.1.8.tgz +0 -0
  300. package/vendor/oscharko-dev-keiko-memory-capture-1.1.8.tgz +0 -0
  301. package/vendor/oscharko-dev-keiko-memory-consolidation-1.1.8.tgz +0 -0
  302. package/vendor/oscharko-dev-keiko-memory-retrieval-1.1.8.tgz +0 -0
  303. package/vendor/oscharko-dev-keiko-model-gateway-1.1.8.tgz +0 -0
  304. package/vendor/oscharko-dev-keiko-sandbox-1.1.8.tgz +0 -0
  305. package/vendor/oscharko-dev-keiko-server-1.1.8.tgz +0 -0
  306. /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_buildManifest.js +0 -0
  307. /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_clientMiddlewareManifest.js +0 -0
  308. /package/dist/ui/static/_next/static/{xFln0tD9J1Dx0Nlv71fAF → lA0N8Tc8KZpJTM4YAywwM}/_ssgManifest.js +0 -0
@@ -1,6 +1,222 @@
1
- import { apiKeyHeaderValue, DEFAULT_API_KEY_HEADER_NAME, trimTrailingSlash } from "./config.js";
2
- import { gatewayFetch } from "./http.js";
3
- import { providerOutputTokenLimit } from "./output-token-limit.js";
1
+ import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/keiko-contracts/runtime/observability";
2
+ import { sha256Hex } from "@oscharko-dev/keiko-security/hashing";
3
+ import { apiKeyHeaderValue, DEFAULT_API_KEY_HEADER_NAME, trimTrailingAzureOpenAiSegment, trimTrailingSlash, } from "./config.js";
4
+ import { gatewayFetch, readJsonCapped } from "./http.js";
5
+ import { activityLogErrorKind, logEndpointHost, logModelId, resolveLogSink, withCorrelationId, } from "./observability.js";
6
+ import { OTHER_OUTPUT_TOKEN_FIELD, providerOutputTokenLimit, rejectsOutputTokenField, requiresNoReasoningWithTools, } from "./output-token-limit.js";
7
+ // A strict OpenAI-compatible chat shape rejects a malformed request with 400 or 422 — the same
8
+ // two statuses the production adapter's own compatibility retry gates on (isStrictChatShapeRejection).
9
+ function isStrictChatShapeRejectionStatus(status) {
10
+ return status === 400 || status === 422;
11
+ }
12
+ const READINESS_FAILURE_TRACE_FIELDS = {
13
+ frames: {
14
+ type: "string-array",
15
+ dataClass: "opaque-id",
16
+ required: false,
17
+ maxLength: 512,
18
+ maxItems: 64,
19
+ },
20
+ causeChain: {
21
+ type: "string-array",
22
+ dataClass: "error-kind",
23
+ required: false,
24
+ maxLength: 128,
25
+ maxItems: 64,
26
+ },
27
+ };
28
+ // PR #3625 review: a readiness probe's compatibility retry, recorded BEFORE it is sent — which field
29
+ // it leaves out and the status that made it retry — so a retry that then throws is still
30
+ // reconstructable; the retry's own answer is the correlated fetch line after it, and a retry that
31
+ // throws adds the failed line below. Body-free: an endpoint digest and the safe model id only.
32
+ const READINESS_COMPATIBILITY_RETRY_OPERATION = defineActivityLogOperation({
33
+ contractKind: "activity-log-operation",
34
+ schemaVersion: 1,
35
+ op: "gateway.readiness.compatibility-retry",
36
+ category: "gateway",
37
+ owner: "keiko-model-gateway",
38
+ emitter: "readiness-probe.logReadinessCompatibilityRetry",
39
+ fields: {
40
+ endpointDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
41
+ modelId: { type: "string", dataClass: "opaque-id", required: true, maxLength: 256 },
42
+ omittedField: {
43
+ type: "string",
44
+ dataClass: "closed-enum",
45
+ required: true,
46
+ values: ["stream_options", "max_tokens", "max_completion_tokens"],
47
+ },
48
+ rejectedStatus: { type: "integer", dataClass: "count", required: true },
49
+ },
50
+ causal: "correlation",
51
+ lifecycle: "state",
52
+ analyzerProjection: "timeline",
53
+ failureClasses: ["gateway-chat-provider-call"],
54
+ proofIds: ["gateway.readiness.compatibility-retry.line"],
55
+ releaseImpact: "patch",
56
+ });
57
+ // The compatibility retry failed: the gateway rejected it too (with the status it answered) or it
58
+ // threw (a timeout, a transport or egress failure). Which field it had left out and the closed class
59
+ // of the failure, under the probe's correlation id.
60
+ const READINESS_COMPATIBILITY_RETRY_FAILED_OPERATION = defineActivityLogOperation({
61
+ contractKind: "activity-log-operation",
62
+ schemaVersion: 1,
63
+ op: "gateway.readiness.compatibility-retry.failed",
64
+ category: "gateway",
65
+ owner: "keiko-model-gateway",
66
+ emitter: "readiness-probe.logReadinessCompatibilityRetryFailed",
67
+ fields: {
68
+ endpointDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
69
+ modelId: { type: "string", dataClass: "opaque-id", required: true, maxLength: 256 },
70
+ omittedField: {
71
+ type: "string",
72
+ dataClass: "closed-enum",
73
+ required: true,
74
+ values: ["stream_options", "max_tokens", "max_completion_tokens"],
75
+ },
76
+ },
77
+ causal: "correlation",
78
+ lifecycle: "failure",
79
+ analyzerProjection: "failure-cluster",
80
+ failureClasses: ["gateway-chat-provider-call"],
81
+ proofIds: ["gateway.readiness.compatibility-retry.failed.line"],
82
+ releaseImpact: "patch",
83
+ });
84
+ // PR #3625 review: a rejected probe the probe did NOT answer with the other output-token field,
85
+ // because the rejection named another cause or could not be read — so an unrelated rejection never
86
+ // costs a second paid request, and the log says why no field retry followed.
87
+ const READINESS_COMPATIBILITY_RETRY_SKIPPED_OPERATION = defineActivityLogOperation({
88
+ contractKind: "activity-log-operation",
89
+ schemaVersion: 1,
90
+ op: "gateway.readiness.compatibility-retry.skipped",
91
+ category: "gateway",
92
+ owner: "keiko-model-gateway",
93
+ emitter: "readiness-probe.logReadinessFieldRetrySkipped",
94
+ fields: {
95
+ endpointDigest: { type: "string", dataClass: "digest", required: true, maxLength: 64 },
96
+ modelId: { type: "string", dataClass: "opaque-id", required: true, maxLength: 256 },
97
+ sentField: {
98
+ type: "string",
99
+ dataClass: "closed-enum",
100
+ required: true,
101
+ values: ["max_tokens", "max_completion_tokens"],
102
+ },
103
+ reason: {
104
+ type: "string",
105
+ dataClass: "closed-enum",
106
+ required: true,
107
+ values: ["other-cause", "unreadable-rejection"],
108
+ },
109
+ rejectedStatus: { type: "integer", dataClass: "count", required: true },
110
+ ...READINESS_FAILURE_TRACE_FIELDS,
111
+ },
112
+ causal: "correlation",
113
+ lifecycle: "state",
114
+ analyzerProjection: "timeline",
115
+ failureClasses: ["gateway-chat-provider-call"],
116
+ proofIds: ["gateway.readiness.compatibility-retry.skipped.line"],
117
+ releaseImpact: "patch",
118
+ });
119
+ // A provider rejection body is small; anything larger is not an error document worth reading.
120
+ const READINESS_REJECTION_MAX_BYTES = 64 * 1024;
121
+ function readinessLog(request) {
122
+ return withCorrelationId(resolveLogSink(request.log), request.correlationId);
123
+ }
124
+ function readinessRetryFields(request, omittedField) {
125
+ const url = readinessChatCompletionsUrl(request.provider);
126
+ return {
127
+ endpointDigest: sha256Hex(logEndpointHost(url) ?? "invalid-endpoint"),
128
+ modelId: logModelId(request.provider.modelId),
129
+ omittedField,
130
+ };
131
+ }
132
+ function correlationOf(request) {
133
+ return request.correlationId === undefined ? {} : { correlationId: request.correlationId };
134
+ }
135
+ function logReadinessCompatibilityRetry(request, omittedField, rejectedStatus) {
136
+ readinessLog(request).write(activityLogEvent(READINESS_COMPATIBILITY_RETRY_OPERATION, { level: "info", ...correlationOf(request) }, { ...readinessRetryFields(request, omittedField), rejectedStatus }));
137
+ }
138
+ function logReadinessCompatibilityRetryFailed(request, omittedField, failure) {
139
+ readinessLog(request).write(activityLogEvent(READINESS_COMPATIBILITY_RETRY_FAILED_OPERATION, {
140
+ level: "warn",
141
+ ...correlationOf(request),
142
+ errorKind: failure.errorKind,
143
+ ...(failure.status === undefined ? {} : { status: failure.status }),
144
+ }, readinessRetryFields(request, omittedField)));
145
+ }
146
+ // The closed class of a status a retried probe was answered with.
147
+ function readinessStatusErrorKind(status) {
148
+ if (status === 408 || status === 504)
149
+ return "timeout";
150
+ if (status === 429)
151
+ return "rate-limited";
152
+ if (status === 401 || status === 403)
153
+ return "permission-denied";
154
+ if (status === 409)
155
+ return "conflict";
156
+ return status >= 500 ? "unavailable" : "invalid-request";
157
+ }
158
+ // An unreadable rejection is not rethrown: the caller handles the bare 400 and never reaches its
159
+ // own failure path, so this line carries the read error's frames and cause chain itself.
160
+ function logReadinessFieldRetrySkipped(request, sentField, rejectedStatus, unreadable) {
161
+ const url = readinessChatCompletionsUrl(request.provider);
162
+ readinessLog(request).write(activityLogEvent(READINESS_COMPATIBILITY_RETRY_SKIPPED_OPERATION, unreadable === undefined
163
+ ? { level: "info", ...correlationOf(request) }
164
+ : {
165
+ level: "warn",
166
+ ...correlationOf(request),
167
+ errorKind: activityLogErrorKind(unreadable.error),
168
+ }, {
169
+ endpointDigest: sha256Hex(logEndpointHost(url) ?? "invalid-endpoint"),
170
+ modelId: logModelId(request.provider.modelId),
171
+ sentField,
172
+ reason: unreadable === undefined ? "other-cause" : "unreadable-rejection",
173
+ rejectedStatus,
174
+ ...(unreadable === undefined ? {} : request.errorEvidence?.(unreadable.error)),
175
+ }));
176
+ }
177
+ // A rejected answer handed back with its status and headers but without its body: readiness reads
178
+ // only the status of a rejected answer.
179
+ function withoutBody(answer) {
180
+ return new Response(null, {
181
+ status: answer.status,
182
+ statusText: answer.statusText,
183
+ headers: answer.headers,
184
+ });
185
+ }
186
+ // The rejection read once from the answer itself, bounded, never from a clone: a clone tees the
187
+ // body, and cancelling one tee branch waits until the other is cancelled too, so a capped or failed
188
+ // read would stall on an original nobody reads (PR #3625 review). An unreadable rejection is
189
+ // recorded with its closed error kind, frames and cause chain.
190
+ async function readRejection(request, answer, sentField) {
191
+ try {
192
+ return { payload: await readJsonCapped(answer, READINESS_REJECTION_MAX_BYTES) };
193
+ }
194
+ catch (error) {
195
+ logReadinessFieldRetrySkipped(request, sentField, answer.status, { error });
196
+ return undefined;
197
+ }
198
+ }
199
+ // Records the retry before sending it, and its failure if it throws, then rethrows.
200
+ async function sendReadinessRetry(request, omittedField, rejectedStatus, send) {
201
+ logReadinessCompatibilityRetry(request, omittedField, rejectedStatus);
202
+ let retry;
203
+ try {
204
+ retry = await send();
205
+ }
206
+ catch (error) {
207
+ logReadinessCompatibilityRetryFailed(request, omittedField, {
208
+ errorKind: activityLogErrorKind(error),
209
+ });
210
+ throw error;
211
+ }
212
+ if (!retry.ok) {
213
+ logReadinessCompatibilityRetryFailed(request, omittedField, {
214
+ errorKind: readinessStatusErrorKind(retry.status),
215
+ status: retry.status,
216
+ });
217
+ }
218
+ return retry;
219
+ }
4
220
  function providerHeaders(provider) {
5
221
  const headerName = provider.apiKeyHeaderName ?? DEFAULT_API_KEY_HEADER_NAME;
6
222
  return {
@@ -8,12 +224,15 @@ function providerHeaders(provider) {
8
224
  [headerName]: apiKeyHeaderValue(headerName, provider.apiKey),
9
225
  };
10
226
  }
227
+ // Mirrors openai-adapter.ts's chatCompletionsUrl exactly, including the #3643 fix: the Azure
228
+ // branch strips a base URL's own trailing "/openai" segment before appending one, so setup/
229
+ // readiness and production share the same corrected URL instead of the same malformed one.
11
230
  function readinessChatCompletionsUrl(provider) {
12
- const trimmed = trimTrailingSlash(provider.baseUrl);
13
231
  if (provider.endpointStyle === "azure-openai-deployment") {
232
+ const trimmed = trimTrailingAzureOpenAiSegment(provider.baseUrl);
14
233
  return `${trimmed}/openai/deployments/${encodeURIComponent(provider.modelId)}/chat/completions?api-version=${encodeURIComponent(provider.apiVersion ?? "")}`;
15
234
  }
16
- return `${trimmed}/chat/completions`;
235
+ return `${trimTrailingSlash(provider.baseUrl)}/chat/completions`;
17
236
  }
18
237
  function withoutOutputTokenLimits(body) {
19
238
  const bounded = { ...body };
@@ -21,25 +240,95 @@ function withoutOutputTokenLimits(body) {
21
240
  delete bounded.max_completion_tokens;
22
241
  return bounded;
23
242
  }
24
- // Gateway-owned raw chat-completions probe for operational readiness checks. The server needs a raw
25
- // provider-shaped response to verify streaming/tool/schema/multimodal capabilities, but credentialed
26
- // HTTP egress still stays inside the model-gateway package and uses the central config-level egress
27
- // policy instead of a caller-selected provider-local policy.
28
- export function requestGatewayReadinessChatCompletion(request) {
29
- const { config, provider, body, stream, fetchImpl, maxResponseBytes, maxOutputTokens } = request;
30
- const requestBody = JSON.stringify({
243
+ // #3640: mirrors openai-adapter.ts's reasoningEffortField exactly — a GPT-5.6 deployment requires
244
+ // reasoning_effort: "none" whenever a Chat Completions request includes function tools. The forced
245
+ // tool-calling probe (packages/keiko-server's gateway-tool-calling-probe.ts) sends
246
+ // `tools`/`tool_choice` with no effort at all; without this override every such probe against a
247
+ // GPT-5.6 deployment is rejected and it is recorded as not supporting tool calling, even though a
248
+ // plain chat probe (no tools) succeeds. Other models are probed as before.
249
+ function readinessReasoningEffortOverride(body, provider) {
250
+ return body.tools !== undefined && requiresNoReasoningWithTools(provider.modelId)
251
+ ? { reasoning_effort: "none" }
252
+ : {};
253
+ }
254
+ function readinessRequestBody(request, includeUsage) {
255
+ const { provider, body, stream, maxOutputTokens } = request;
256
+ return JSON.stringify({
31
257
  model: provider.modelId,
32
258
  ...withoutOutputTokenLimits(body),
33
259
  ...providerOutputTokenLimit(maxOutputTokens, provider),
34
- ...(stream === true ? { stream: true, stream_options: { include_usage: true } } : {}),
260
+ ...readinessReasoningEffortOverride(body, provider),
261
+ ...(stream === true
262
+ ? { stream: true, ...(includeUsage ? { stream_options: { include_usage: true } } : {}) }
263
+ : {}),
35
264
  });
265
+ }
266
+ function dispatchReadinessChatCompletion(request, includeUsage) {
267
+ const { config, provider, fetchImpl, maxResponseBytes, correlationId } = request;
36
268
  return gatewayFetch(readinessChatCompletionsUrl(provider), {
37
269
  method: "POST",
38
270
  headers: providerHeaders(provider),
39
- body: requestBody,
271
+ body: readinessRequestBody(request, includeUsage),
40
272
  ...(fetchImpl !== undefined ? { fetchImpl } : {}),
41
273
  timeoutMs: provider.timeoutMs,
42
274
  ...(maxResponseBytes !== undefined ? { maxResponseBytes } : {}),
43
275
  ...(config.egress !== undefined ? { egress: config.egress } : {}),
276
+ ...(request.log === undefined ? {} : { log: request.log }),
277
+ ...(correlationId === undefined ? {} : { logContext: { correlationId } }),
44
278
  });
45
279
  }
280
+ // #3641: a streamed probe that a strict gateway rejects (400/422) is retried once without the
281
+ // optional `stream_options` field, like the production adapter's own compatibility fallback
282
+ // (OpenAiAdapter.dispatchCompatibleStream); otherwise a gateway whose production traffic streams
283
+ // after that fallback was recorded as "streaming unsupported" by this probe alone. Every such
284
+ // rejection is retried, not only one naming the field, so the probe never parses an untrusted
285
+ // error body: a rejection for any other reason comes back unchanged and keeps its verdict.
286
+ async function requestWithStreamFallback(request) {
287
+ const first = await dispatchReadinessChatCompletion(request, true);
288
+ if (request.stream !== true || first.ok || !isStrictChatShapeRejectionStatus(first.status)) {
289
+ return first;
290
+ }
291
+ await first.body?.cancel();
292
+ return sendReadinessRetry(request, "stream_options", first.status, () => dispatchReadinessChatCompletion(request, false));
293
+ }
294
+ // #3639: the default output-token field follows the model family, which a deployment alias hides
295
+ // (a GPT-5 deployment named "prod-chat" is sent max_tokens and rejects it). The same request with
296
+ // the other field, when the probe sent one it chose itself; an operator's explicit field stays.
297
+ function withOtherOutputTokenField(request) {
298
+ const { provider, maxOutputTokens } = request;
299
+ if (maxOutputTokens === undefined || provider.outputTokenParameter !== undefined) {
300
+ return undefined;
301
+ }
302
+ const other = OTHER_OUTPUT_TOKEN_FIELD[sentOutputTokenField(request)];
303
+ return { ...request, provider: { ...provider, outputTokenParameter: other } };
304
+ }
305
+ // Gateway-owned raw chat-completions probe for operational readiness checks. The server needs a raw
306
+ // provider-shaped response to verify streaming/tool/schema/multimodal capabilities, but credentialed
307
+ // HTTP egress still stays inside the model-gateway package and uses the central config-level egress
308
+ // policy instead of a caller-selected provider-local policy.
309
+ //
310
+ // A strict rejection is also retried once with the other output-token field (#3639), like the
311
+ // production adapter's fallback (OpenAiAdapter.dispatchWithOutputTokenFallback) but, as above,
312
+ // without parsing the error body: any other rejection comes back again and keeps its verdict.
313
+ export async function requestGatewayReadinessChatCompletion(request) {
314
+ const answer = await requestWithStreamFallback(request);
315
+ const other = withOtherOutputTokenField(request);
316
+ if (other === undefined || answer.ok || !isStrictChatShapeRejectionStatus(answer.status)) {
317
+ return answer;
318
+ }
319
+ const sentField = sentOutputTokenField(request);
320
+ const rejection = await readRejection(request, answer, sentField);
321
+ if (rejection === undefined)
322
+ return withoutBody(answer);
323
+ if (!rejectsOutputTokenField(rejection.payload, sentField)) {
324
+ logReadinessFieldRetrySkipped(request, sentField, answer.status);
325
+ return withoutBody(answer);
326
+ }
327
+ return sendReadinessRetry(request, sentField, answer.status, () => requestWithStreamFallback(other));
328
+ }
329
+ function sentOutputTokenField(request) {
330
+ return "max_completion_tokens" in
331
+ providerOutputTokenLimit(request.maxOutputTokens, request.provider)
332
+ ? "max_completion_tokens"
333
+ : "max_tokens";
334
+ }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MODEL_GATEWAY_VERSION: "1.1.8";
1
+ export declare const KEIKO_MODEL_GATEWAY_VERSION: "1.1.10";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,EAAG,QAAiB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  // Package version constant. Pinned at the workspace package's package.json version. Promoted to
2
2
  // a `const` string-literal type so downstream tests/assertions stay byte-exact.
3
- export const KEIKO_MODEL_GATEWAY_VERSION = "1.1.8";
3
+ export const KEIKO_MODEL_GATEWAY_VERSION = "1.1.10";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-model-gateway",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: Keiko model gateway — provider abstraction, OpenAI-compatible adapter, capability registry, routing, resilience, TLS handling. Not published independently.",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "private": true,
35
35
  "peerDependencies": {
36
- "@oscharko-dev/keiko-contracts": "1.1.8",
37
- "@oscharko-dev/keiko-security": "1.1.8",
38
- "@oscharko-dev/keiko-tool-catalog": "1.1.8"
36
+ "@oscharko-dev/keiko-contracts": "1.1.10",
37
+ "@oscharko-dev/keiko-security": "1.1.10",
38
+ "@oscharko-dev/keiko-tool-catalog": "1.1.10"
39
39
  }
40
40
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-quality-intelligence",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: pure-domain Keiko Quality Intelligence test-design logic. Not published independently.",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "1.1.8",
25
- "@oscharko-dev/keiko-security": "1.1.8"
24
+ "@oscharko-dev/keiko-contracts": "1.1.10",
25
+ "@oscharko-dev/keiko-security": "1.1.10"
26
26
  }
27
27
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-sandbox",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal sandbox package: reusable OS/container egress isolation and gateway-only Linux namespace confinement (ADR-0043). Owns backend selection, wrapper construction, attestation, availability probes, and the internal Linux namespace/descriptor-relay launcher. Not published independently.",
@@ -21,6 +21,6 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "1.1.8"
24
+ "@oscharko-dev/keiko-contracts": "1.1.10"
25
25
  }
26
26
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-sdk",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal SDK package: public agent, workflow, verification, workspace, evidence, and evaluation surface that the root product facade re-exports (Issue #426, ADR-0019). Not published independently.",
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "1.1.8",
25
- "@oscharko-dev/keiko-evaluations": "1.1.8",
26
- "@oscharko-dev/keiko-evidence": "1.1.8",
27
- "@oscharko-dev/keiko-harness": "1.1.8",
28
- "@oscharko-dev/keiko-model-gateway": "1.1.8",
29
- "@oscharko-dev/keiko-verification": "1.1.8",
30
- "@oscharko-dev/keiko-workflows": "1.1.8",
31
- "@oscharko-dev/keiko-workspace": "1.1.8"
24
+ "@oscharko-dev/keiko-contracts": "1.1.10",
25
+ "@oscharko-dev/keiko-evaluations": "1.1.10",
26
+ "@oscharko-dev/keiko-evidence": "1.1.10",
27
+ "@oscharko-dev/keiko-harness": "1.1.10",
28
+ "@oscharko-dev/keiko-model-gateway": "1.1.10",
29
+ "@oscharko-dev/keiko-verification": "1.1.10",
30
+ "@oscharko-dev/keiko-workflows": "1.1.10",
31
+ "@oscharko-dev/keiko-workspace": "1.1.10"
32
32
  }
33
33
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_SECURITY_VERSION: "1.1.8";
1
+ export declare const KEIKO_SECURITY_VERSION: "1.1.10";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,EAAG,QAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // Version anchor for @oscharko-dev/keiko-security. Pinned to the package's package.json version.
2
2
  // Lets consumers assert which security primitive contract they linked against (ADR-0019 leaf-package
3
3
  // pattern, mirroring @oscharko-dev/keiko-contracts).
4
- export const KEIKO_SECURITY_VERSION = "1.1.8";
4
+ export const KEIKO_SECURITY_VERSION = "1.1.10";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-security",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: shared Keiko security primitives (redaction, safe error shaping, secret collection, content hashing, trust-boundary helpers). Not published independently.",
@@ -101,6 +101,6 @@
101
101
  },
102
102
  "private": true,
103
103
  "peerDependencies": {
104
- "@oscharko-dev/keiko-contracts": "1.1.8"
104
+ "@oscharko-dev/keiko-contracts": "1.1.10"
105
105
  }
106
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"client-diagnostics-routes.d.ts","sourceRoot":"","sources":["../src/client-diagnostics-routes.ts"],"names":[],"mappings":"AAsFA,OAAO,EAAa,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AA8uB7E,yFAAyF;AACzF,wBAAgB,yCAAyC,IAAI,IAAI,CAIhE;AAmGD;;;;GAIG;AACH,wBAAgB,kCAAkC,IAAI,IAAI,CASzD;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAElE;AAiUD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE7D;AAmYD,wBAAsB,4BAA4B,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAqB1F"}
1
+ {"version":3,"file":"client-diagnostics-routes.d.ts","sourceRoot":"","sources":["../src/client-diagnostics-routes.ts"],"names":[],"mappings":"AAuGA,OAAO,EAAa,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AA43B7E,yFAAyF;AACzF,wBAAgB,yCAAyC,IAAI,IAAI,CAIhE;AAmGD;;;;GAIG;AACH,wBAAgB,kCAAkC,IAAI,IAAI,CASzD;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAElE;AAuZD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE7D;AAyaD,wBAAsB,4BAA4B,CAAC,GAAG,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAqB1F"}