@oscharko-dev/keiko 0.3.13 → 0.3.15

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 (232) 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 +1 -1
  4. package/dist/ui/static/__next._full.txt +1 -1
  5. package/dist/ui/static/__next._head.txt +1 -1
  6. package/dist/ui/static/__next._index.txt +1 -1
  7. package/dist/ui/static/__next._tree.txt +1 -1
  8. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  9. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  10. package/dist/ui/static/_not-found/__next._index.txt +1 -1
  11. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  12. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  13. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  14. package/dist/ui/static/_not-found.html +1 -1
  15. package/dist/ui/static/_not-found.txt +1 -1
  16. package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
  17. package/dist/ui/static/atlassian-connectors/__next._head.txt +1 -1
  18. package/dist/ui/static/atlassian-connectors/__next._index.txt +1 -1
  19. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  20. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
  21. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.txt +1 -1
  22. package/dist/ui/static/atlassian-connectors.html +1 -1
  23. package/dist/ui/static/atlassian-connectors.txt +1 -1
  24. package/dist/ui/static/index.html +1 -1
  25. package/dist/ui/static/index.txt +1 -1
  26. package/dist/ui/static/launch/__next._full.txt +1 -1
  27. package/dist/ui/static/launch/__next._head.txt +1 -1
  28. package/dist/ui/static/launch/__next._index.txt +1 -1
  29. package/dist/ui/static/launch/__next._tree.txt +1 -1
  30. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +1 -1
  31. package/dist/ui/static/launch/__next.launch.txt +1 -1
  32. package/dist/ui/static/launch.html +1 -1
  33. package/dist/ui/static/launch.txt +1 -1
  34. package/dist/ui/static/local-knowledge/__next._full.txt +1 -1
  35. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  36. package/dist/ui/static/local-knowledge/__next._index.txt +1 -1
  37. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  38. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +1 -1
  39. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  40. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
  41. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  42. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +1 -1
  43. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  44. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
  45. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +1 -1
  46. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  47. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  48. package/dist/ui/static/local-knowledge/capsule.txt +1 -1
  49. package/dist/ui/static/local-knowledge.html +1 -1
  50. package/dist/ui/static/local-knowledge.txt +1 -1
  51. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.d.ts.map +1 -1
  52. package/node_modules/@oscharko-dev/keiko-cli/dist/ui.js +25 -6
  53. package/node_modules/@oscharko-dev/keiko-cli/package.json +13 -13
  54. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  55. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
  56. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +2 -2
  57. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  58. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  59. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  60. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  61. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  62. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  63. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  64. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  65. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  66. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/connector-pod.d.ts +2 -0
  67. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/connector-pod.d.ts.map +1 -1
  68. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/connector-pod.js +1 -0
  69. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts +1 -0
  70. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.d.ts.map +1 -1
  71. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/index.js +3 -0
  72. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.d.ts +1 -0
  73. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.d.ts.map +1 -1
  74. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/embedding-batcher.js +341 -62
  75. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.d.ts.map +1 -1
  76. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/orchestrator.js +586 -132
  77. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/types.d.ts +9 -0
  78. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/indexing/types.d.ts.map +1 -1
  79. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.d.ts +20 -0
  80. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.d.ts.map +1 -0
  81. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/knowledge-log.js +154 -0
  82. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-refresh.d.ts +2 -0
  83. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-refresh.d.ts.map +1 -1
  84. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod-refresh.js +1 -0
  85. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod.d.ts +2 -0
  86. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod.d.ts.map +1 -1
  87. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/manual-pod.js +1 -0
  88. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/repository-pod.d.ts +2 -0
  89. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/repository-pod.d.ts.map +1 -1
  90. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/repository-pod.js +1 -0
  91. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts +2 -0
  92. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/store.js +43 -1
  94. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  95. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  96. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  97. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  98. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  99. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  100. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  101. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  102. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  103. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  104. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  105. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  106. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  107. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  108. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  109. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  110. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  111. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  112. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts +15 -2
  113. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.d.ts.map +1 -1
  114. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/gateway.js +147 -15
  115. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts +3 -0
  116. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.d.ts.map +1 -1
  117. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/http.js +188 -23
  118. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts +27 -0
  119. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.d.ts.map +1 -0
  120. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/observability.js +180 -0
  121. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts +5 -0
  122. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
  123. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +339 -55
  124. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts +18 -5
  125. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.d.ts.map +1 -1
  126. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/resilience.js +141 -26
  127. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  128. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  129. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  130. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  131. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  132. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  133. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  134. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  135. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  136. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/syncService.d.ts.map +1 -1
  137. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/syncService.js +4 -0
  138. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts +1 -1
  139. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.d.ts.map +1 -1
  140. package/node_modules/@oscharko-dev/keiko-server/dist/bounded-request-body.js +51 -3
  141. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  142. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +77 -3
  143. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.d.ts.map +1 -1
  144. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-instance-cache.js +71 -11
  145. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  146. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +9 -1
  147. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-qa.js +1 -1
  148. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.d.ts.map +1 -1
  149. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-rerank-facade.js +37 -0
  150. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +1 -0
  151. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
  152. package/node_modules/@oscharko-dev/keiko-server/dist/index.js +7 -0
  153. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
  154. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +158 -36
  155. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation-store.d.ts.map +1 -1
  156. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation-store.js +9 -1
  157. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.d.ts.map +1 -1
  158. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-remediation.js +10 -5
  159. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-store-open.d.ts.map +1 -1
  160. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-store-open.js +8 -2
  161. package/node_modules/@oscharko-dev/keiko-server/dist/manual/manual-pod-service.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-server/dist/manual/manual-pod-service.js +3 -0
  163. package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.d.ts.map +1 -1
  164. package/node_modules/@oscharko-dev/keiko-server/dist/memory-embedding.js +135 -36
  165. package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.d.ts +3 -0
  166. package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.d.ts.map +1 -0
  167. package/node_modules/@oscharko-dev/keiko-server/dist/observability/index.js +9 -0
  168. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-level.d.ts +13 -0
  169. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-level.d.ts.map +1 -0
  170. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-level.js +57 -0
  171. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-redaction.d.ts +20 -0
  172. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-redaction.d.ts.map +1 -0
  173. package/node_modules/@oscharko-dev/keiko-server/dist/observability/log-redaction.js +499 -0
  174. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts +4 -0
  175. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.d.ts.map +1 -0
  176. package/node_modules/@oscharko-dev/keiko-server/dist/observability/route-template.js +340 -0
  177. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts +49 -0
  178. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts.map +1 -0
  179. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.js +449 -0
  180. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts +36 -0
  181. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts.map +1 -0
  182. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.js +190 -0
  183. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts +11 -0
  184. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts.map +1 -0
  185. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.js +48 -0
  186. package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts +2 -0
  187. package/node_modules/@oscharko-dev/keiko-server/dist/server.d.ts.map +1 -1
  188. package/node_modules/@oscharko-dev/keiko-server/dist/server.js +22 -4
  189. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.d.ts.map +1 -1
  190. package/node_modules/@oscharko-dev/keiko-server/dist/store-handlers.js +7 -2
  191. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  192. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  193. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  194. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  195. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  196. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  197. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  198. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  199. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  200. package/package.json +25 -25
  201. package/release-impact.catalog.json +117 -7
  202. package/vendor/{oscharko-dev-keiko-cli-0.3.13.tgz → oscharko-dev-keiko-cli-0.3.15.tgz} +0 -0
  203. package/vendor/{oscharko-dev-keiko-connectors-0.3.13.tgz → oscharko-dev-keiko-connectors-0.3.15.tgz} +0 -0
  204. package/vendor/{oscharko-dev-keiko-contracts-0.3.13.tgz → oscharko-dev-keiko-contracts-0.3.15.tgz} +0 -0
  205. package/vendor/{oscharko-dev-keiko-evaluations-0.3.13.tgz → oscharko-dev-keiko-evaluations-0.3.15.tgz} +0 -0
  206. package/vendor/{oscharko-dev-keiko-evidence-0.3.13.tgz → oscharko-dev-keiko-evidence-0.3.15.tgz} +0 -0
  207. package/vendor/{oscharko-dev-keiko-git-0.3.13.tgz → oscharko-dev-keiko-git-0.3.15.tgz} +0 -0
  208. package/vendor/{oscharko-dev-keiko-harness-0.3.13.tgz → oscharko-dev-keiko-harness-0.3.15.tgz} +0 -0
  209. package/vendor/oscharko-dev-keiko-local-knowledge-0.3.15.tgz +0 -0
  210. package/vendor/{oscharko-dev-keiko-memory-capture-0.3.13.tgz → oscharko-dev-keiko-memory-capture-0.3.15.tgz} +0 -0
  211. package/vendor/{oscharko-dev-keiko-memory-consolidation-0.3.13.tgz → oscharko-dev-keiko-memory-consolidation-0.3.15.tgz} +0 -0
  212. package/vendor/oscharko-dev-keiko-memory-governance-0.3.15.tgz +0 -0
  213. package/vendor/{oscharko-dev-keiko-memory-retrieval-0.3.13.tgz → oscharko-dev-keiko-memory-retrieval-0.3.15.tgz} +0 -0
  214. package/vendor/{oscharko-dev-keiko-memory-vault-0.3.13.tgz → oscharko-dev-keiko-memory-vault-0.3.15.tgz} +0 -0
  215. package/vendor/oscharko-dev-keiko-model-gateway-0.3.15.tgz +0 -0
  216. package/vendor/{oscharko-dev-keiko-quality-intelligence-0.3.13.tgz → oscharko-dev-keiko-quality-intelligence-0.3.15.tgz} +0 -0
  217. package/vendor/{oscharko-dev-keiko-sandbox-0.3.13.tgz → oscharko-dev-keiko-sandbox-0.3.15.tgz} +0 -0
  218. package/vendor/oscharko-dev-keiko-sdk-0.3.15.tgz +0 -0
  219. package/vendor/{oscharko-dev-keiko-security-0.3.13.tgz → oscharko-dev-keiko-security-0.3.15.tgz} +0 -0
  220. package/vendor/oscharko-dev-keiko-server-0.3.15.tgz +0 -0
  221. package/vendor/{oscharko-dev-keiko-tools-0.3.13.tgz → oscharko-dev-keiko-tools-0.3.15.tgz} +0 -0
  222. package/vendor/{oscharko-dev-keiko-verification-0.3.13.tgz → oscharko-dev-keiko-verification-0.3.15.tgz} +0 -0
  223. package/vendor/{oscharko-dev-keiko-workflows-0.3.13.tgz → oscharko-dev-keiko-workflows-0.3.15.tgz} +0 -0
  224. package/vendor/{oscharko-dev-keiko-workspace-0.3.13.tgz → oscharko-dev-keiko-workspace-0.3.15.tgz} +0 -0
  225. package/vendor/oscharko-dev-keiko-local-knowledge-0.3.13.tgz +0 -0
  226. package/vendor/oscharko-dev-keiko-memory-governance-0.3.13.tgz +0 -0
  227. package/vendor/oscharko-dev-keiko-model-gateway-0.3.13.tgz +0 -0
  228. package/vendor/oscharko-dev-keiko-sdk-0.3.13.tgz +0 -0
  229. package/vendor/oscharko-dev-keiko-server-0.3.13.tgz +0 -0
  230. /package/dist/ui/static/_next/static/{iwhpaHGb663ka5R3lhZBj → 4j3JDaPBERRu_ZIgeR1VQ}/_buildManifest.js +0 -0
  231. /package/dist/ui/static/_next/static/{iwhpaHGb663ka5R3lhZBj → 4j3JDaPBERRu_ZIgeR1VQ}/_clientMiddlewareManifest.js +0 -0
  232. /package/dist/ui/static/_next/static/{iwhpaHGb663ka5R3lhZBj → 4j3JDaPBERRu_ZIgeR1VQ}/_ssgManifest.js +0 -0
@@ -0,0 +1,190 @@
1
+ // The logger callers actually hold.
2
+ //
3
+ // `ServerLogSink` stays the transport (a file, a buffer, nothing). `ServerLogger` is the calling
4
+ // surface on top of it and owns the three things every instrumentation site would otherwise
5
+ // reimplement: the level gate, the bound context, and the guarantee that logging cannot break the
6
+ // operation being logged.
7
+ //
8
+ // const log = getServerLogger().child({ correlationId, capsuleIdDigest });
9
+ // const elapsed = startLogTimer();
10
+ // log.info({ category: "indexing", op: "indexing.job.started", extra: { sourceCount } });
11
+ // log.warn({ op: "indexing.job.skipped", durationMs: elapsed(), extra: { reason } });
12
+ //
13
+ // Three properties are load-bearing:
14
+ //
15
+ // * A filtered event costs one integer comparison. The gate runs BEFORE the event source is
16
+ // evaluated, so a `debug` site may pass a thunk (`log.debug(() => ({ … }))`) and pay nothing
17
+ // at all — no object literal, no string concatenation, no JSON — while the threshold is above
18
+ // it. This is what makes per-item and per-window debug lines affordable.
19
+ // * The bound context is merged into every event, so a call site names a correlation id once.
20
+ // Child bindings compose; the event's own fields always win over the binding.
21
+ // * Nothing thrown by the sink, by a thunk, or by field redaction ever reaches the caller. A log
22
+ // line is evidence about an operation; it must never become a new failure mode for it. It is
23
+ // not DISCARDED either: a swallowed failure makes a permanently broken log look exactly like a
24
+ // quiet system, so the failure is reported once on stderr — an independent channel — throttled
25
+ // and body-free. See `reportServerLogFailure` in `server-log.ts`.
26
+ import { performance } from "node:perf_hooks";
27
+ import { resolveServerLogThreshold, serverLogLevelEnabled } from "./log-level.js";
28
+ import { closeFileServerLogSinks, createFileServerLogSink, nullServerLogSink, reportServerLogFailure, resetServerLogFailureNotices, } from "./server-log.js";
29
+ const FALLBACK_CATEGORY = "diagnostic";
30
+ const LIFTED_CONTEXT_KEYS = new Set(["correlationId", "category"]);
31
+ const KNOWN_CATEGORIES = new Set([
32
+ "http",
33
+ "gateway",
34
+ "embedding",
35
+ "indexing",
36
+ "setup",
37
+ "search",
38
+ "memory",
39
+ "diagnostic",
40
+ ]);
41
+ const EMPTY_BINDING = {
42
+ category: undefined,
43
+ correlationId: undefined,
44
+ extra: undefined,
45
+ };
46
+ function readCategory(value) {
47
+ return typeof value === "string" && KNOWN_CATEGORIES.has(value)
48
+ ? value
49
+ : undefined;
50
+ }
51
+ function resolveBinding(parent, context) {
52
+ const extra = { ...parent.extra };
53
+ for (const [name, value] of Object.entries(context)) {
54
+ if (!LIFTED_CONTEXT_KEYS.has(name))
55
+ extra[name] = value;
56
+ }
57
+ const correlationId = context.correlationId;
58
+ return {
59
+ category: readCategory(context.category) ?? parent.category,
60
+ correlationId: typeof correlationId === "string" ? correlationId : parent.correlationId,
61
+ extra: Object.keys(extra).length === 0 ? undefined : extra,
62
+ };
63
+ }
64
+ function mergeExtra(binding, input) {
65
+ if (binding.extra === undefined)
66
+ return input.extra;
67
+ if (input.extra === undefined)
68
+ return binding.extra;
69
+ return { ...binding.extra, ...input.extra };
70
+ }
71
+ function buildEvent(level, input, binding) {
72
+ return {
73
+ level,
74
+ category: input.category ?? binding.category ?? FALLBACK_CATEGORY,
75
+ op: input.op,
76
+ correlationId: input.correlationId ?? binding.correlationId,
77
+ durationMs: input.durationMs,
78
+ status: input.status,
79
+ errorKind: input.errorKind,
80
+ extra: mergeExtra(binding, input),
81
+ };
82
+ }
83
+ export function createServerLogger(options) {
84
+ const level = options.level ?? resolveServerLogThreshold(process.env);
85
+ const binding = options.context === undefined ? EMPTY_BINDING : resolveBinding(EMPTY_BINDING, options.context);
86
+ return buildLogger(options.sink, level, binding);
87
+ }
88
+ // `undefined` means the failure happened while BUILDING the event, so there is no op to name and
89
+ // the notice says only what kind of failure it was.
90
+ function failureContext(event) {
91
+ if (event === undefined)
92
+ return {};
93
+ if (event.correlationId === undefined)
94
+ return { op: event.op };
95
+ return { op: event.op, correlationId: event.correlationId };
96
+ }
97
+ // Split from `createServerLogger` so both it and `child()` share one construction path, and so
98
+ // each function stays small.
99
+ function buildLogger(sink, level, binding) {
100
+ const emit = (eventLevel, source) => {
101
+ // The gate is the first statement: below the threshold nothing is evaluated, allocated or
102
+ // serialised, so a suppressed debug site costs one comparison.
103
+ if (!serverLogLevelEnabled(eventLevel, level))
104
+ return;
105
+ // Held outside the `try` so the catch can tell "the sink failed on this event" from "the event
106
+ // could not be built at all", and name the op and correlation id in the first case.
107
+ let event;
108
+ try {
109
+ const input = typeof source === "function" ? source() : source;
110
+ event = buildEvent(eventLevel, input, binding);
111
+ sink.write(event);
112
+ }
113
+ catch (error) {
114
+ // A sink failure, a throwing thunk or a hostile field getter must never surface to the
115
+ // operation being logged. The line is lost; the request is not. What must NOT be lost is the
116
+ // fact that logging is broken — discarded here, a full disk or a permission change is
117
+ // indistinguishable from a quiet system, which is the silence this log exists to end. The
118
+ // notice goes to stderr, an independent channel, and is throttled by `reportServerLogFailure`.
119
+ reportServerLogFailure(error, failureContext(event));
120
+ }
121
+ };
122
+ return {
123
+ level,
124
+ isLevelEnabled: (candidate) => serverLogLevelEnabled(candidate, level),
125
+ debug: (source) => {
126
+ emit("debug", source);
127
+ },
128
+ info: (source) => {
129
+ emit("info", source);
130
+ },
131
+ warn: (source) => {
132
+ emit("warn", source);
133
+ },
134
+ error: (source) => {
135
+ emit("error", source);
136
+ },
137
+ log: emit,
138
+ child: (context) => buildLogger(sink, level, resolveBinding(binding, context)),
139
+ };
140
+ }
141
+ export function nullServerLogger() {
142
+ return createServerLogger({ sink: nullServerLogSink(), level: "silent" });
143
+ }
144
+ // Monotonic elapsed-milliseconds stopwatch. `performance.now()` rather than `Date.now()` so a
145
+ // system-clock adjustment mid-operation cannot produce a negative or absurd duration.
146
+ export function startLogTimer() {
147
+ const startedAt = performance.now();
148
+ return () => Number((performance.now() - startedAt).toFixed(3));
149
+ }
150
+ // `errorKindOf` lives in `server-log.js` — the file sink classifies its own failures too, so the
151
+ // module both sides already depend on owns it. It stays reachable from this module's barrel.
152
+ // Process-wide logger. Deep call sites (background indexing runs, capsule preflights, connector
153
+ // jobs) have no dependency-injection seam to thread a sink through; they resolve this instead.
154
+ // It mirrors the resolution `diagnostics-log.ts` already uses: `KEIKO_STATE_DIR` when the CLI set
155
+ // it, otherwise a null sink, so a unit test that never sets the variable writes nothing.
156
+ let processLogger = null;
157
+ function buildProcessLogger() {
158
+ const stateDir = process.env.KEIKO_STATE_DIR;
159
+ if (stateDir === undefined || stateDir === "") {
160
+ return createServerLogger({ sink: nullServerLogSink() });
161
+ }
162
+ // `createFileServerLogSink` is a per-file singleton, so this shares the CLI's descriptor and
163
+ // rotation state rather than opening a second one over the same file.
164
+ return createServerLogger({ sink: createFileServerLogSink(stateDir) });
165
+ }
166
+ export function getServerLogger() {
167
+ processLogger ??= buildProcessLogger();
168
+ return processLogger;
169
+ }
170
+ // Explicit wiring (the CLI hands over the same sink it gives `createUiServer`) and test setup.
171
+ export function setServerLogger(logger) {
172
+ processLogger = logger;
173
+ }
174
+ // Releases the activity log's OS resources and drops the memoised logger. Dropping the reference
175
+ // alone leaked the descriptor: nothing else holds the sink, so the handle stayed open for the life
176
+ // of the process and, in a long test run, once per suite that touched the logger. Every line is
177
+ // already on disk when `write` returns (the sink is synchronous), so this closes rather than
178
+ // flushes. Safe to call more than once, and safe to call early — a later write reopens.
179
+ export function shutdownServerLogging() {
180
+ processLogger = null;
181
+ closeFileServerLogSinks();
182
+ // The failure-notice throttle is process-wide state too: a notice emitted before a shutdown must
183
+ // not silence the first failure of whatever runs next.
184
+ resetServerLogFailureNotices();
185
+ }
186
+ // Tests MUST call this in `afterEach` so the process-wide slot is not shared mutable state
187
+ // between suites — and so the descriptor it opened does not outlive the suite.
188
+ export function resetServerLogger() {
189
+ shutdownServerLogging();
190
+ }
@@ -0,0 +1,11 @@
1
+ import { type ServerLogLevel, type ServerLogSink } from "./observability/index.js";
2
+ export interface ProcessServerLogSink extends ServerLogSink {
3
+ readonly enabled: (level: ServerLogLevel) => boolean;
4
+ }
5
+ /**
6
+ * The activity-log sink every BFF composition site hands to a domain package. Structurally
7
+ * satisfies `KnowledgeLogSink` and `ModelGatewayLogSink` without either package importing the
8
+ * server.
9
+ */
10
+ export declare function processServerLogSink(): ProcessServerLogSink;
11
+ //# sourceMappingURL=process-log-sink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process-log-sink.d.ts","sourceRoot":"","sources":["../src/process-log-sink.ts"],"names":[],"mappings":"AA8BA,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAC;AAKlC,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACzD,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC;CACtD;AAaD;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,oBAAoB,CAE3D"}
@@ -0,0 +1,48 @@
1
+ // The process-wide activity log, exposed as the SINK shape the domain packages accept.
2
+ //
3
+ // WHY AN ADAPTER RATHER THAN A DIRECT IMPORT
4
+ //
5
+ // ADR-0019 keeps `keiko-local-knowledge` and `keiko-model-gateway` below the BFF, so neither may
6
+ // import `getServerLogger`. Each declares the narrow structural port it needs instead
7
+ // (`KnowledgeLogSink`, `ModelGatewayLogSink`), whose event type is a subset of `ServerLogEvent`.
8
+ // The server is the composition root that supplies the real implementation, and this module is
9
+ // that supply: ONE adapter shared by every BFF composition site, so an indexing run, a knowledge
10
+ // store open, a Gateway instance and an embedding request all land in the same `server.log`
11
+ // instead of each growing its own half-wired variant.
12
+ //
13
+ // WHY THE LOGGER IS RESOLVED PER WRITE
14
+ //
15
+ // `getServerLogger()` memoises whatever it can build the first time it is called — a null sink
16
+ // while `KEIKO_STATE_DIR` is still unset, and the CLI replaces it with the real one via
17
+ // `setServerLogger` once the state directory is known. Capturing the logger in a module-level
18
+ // constant would freeze whichever instance happened to exist when this module was first imported
19
+ // and silently discard every line from the deep call sites this adapter exists to serve. The cost
20
+ // of resolving per write is one nullish check.
21
+ //
22
+ // WHY THE LEVEL PREDICATE IS PART OF THE SHAPE
23
+ //
24
+ // `ModelGatewayLogSink.enabled` is an optional narrowing hint: a `debug` site asks first and
25
+ // materialises no URL parse, no `extra` record and no event when the answer is no. A sink without
26
+ // it fails open, which is correct but pays that cost on every outbound call. Answering from the
27
+ // logger's own threshold makes a suppressed debug site free while keeping the logger's `write`
28
+ // threshold the single source of truth — the predicate can only ever suppress work, never
29
+ // authorise a line the logger itself would refuse.
30
+ import { DEFAULT_SERVER_LOG_LEVEL, getServerLogger, } from "./observability/index.js";
31
+ const PROCESS_SERVER_LOG_SINK = {
32
+ write(event) {
33
+ // The logger applies the threshold, merges any bound context, and swallows a sink failure so
34
+ // a log line can never become a new failure mode for the operation being logged.
35
+ getServerLogger().log(event.level ?? DEFAULT_SERVER_LOG_LEVEL, event);
36
+ },
37
+ enabled(level) {
38
+ return getServerLogger().isLevelEnabled(level);
39
+ },
40
+ };
41
+ /**
42
+ * The activity-log sink every BFF composition site hands to a domain package. Structurally
43
+ * satisfies `KnowledgeLogSink` and `ModelGatewayLogSink` without either package importing the
44
+ * server.
45
+ */
46
+ export function processServerLogSink() {
47
+ return PROCESS_SERVER_LOG_SINK;
48
+ }
@@ -1,5 +1,6 @@
1
1
  import { type Server } from "node:http";
2
2
  import { type UiHandlerDeps } from "./deps.js";
3
+ import { type ServerLogSink } from "./observability/server-log.js";
3
4
  import { UI_HOST } from "@oscharko-dev/keiko-contracts";
4
5
  export { UI_HOST };
5
6
  export { DEFAULT_UI_PORT } from "@oscharko-dev/keiko-contracts";
@@ -10,6 +11,7 @@ export interface UiServerDeps {
10
11
  readonly cspCacheTtlMs?: number | undefined;
11
12
  readonly port: number;
12
13
  readonly handlerDeps?: UiHandlerDeps | undefined;
14
+ readonly activityLog?: ServerLogSink | undefined;
13
15
  }
14
16
  export declare function createUiServer(deps: UiServerDeps): Server;
15
17
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAIA,OAAO,EAAsC,KAAK,MAAM,EAAuB,MAAM,WAAW,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AC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IACpE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAIjD,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CAClD;AA6QD,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,GAAG,MAAM,CAkDzD"}
@@ -10,6 +10,7 @@ import { isAllowedHost } from "./host-check.js";
10
10
  import { resolveContainedPath, serveFile } from "./static.js";
11
11
  import { errorBody, isApiPath, matchRoute, methodNotAllowedBody, notFoundBody, STREAMING, } from "./routes.js";
12
12
  import { buildRedactor } from "./deps.js";
13
+ import { nullServerLogSink } from "./observability/server-log.js";
13
14
  import { CORRELATION_RESPONSE_HEADER, resolveCorrelationId } from "./correlation.js";
14
15
  import { emitServerDiagnostic, serverDiagnosticFromError } from "./diagnostics-log.js";
15
16
  import { isVoiceDictationCapable, isVoiceRealtimeCapable } from "./read-handlers.js";
@@ -208,16 +209,33 @@ function createVoicePlanes(port, handlerDeps) {
208
209
  // terminal tool is now bounded-exec over plain HTTP (ADR-0018 D1/D8). Issue #497 (ADR-0100 D3,
209
210
  // ADR-0101) re-opens the upgrade for the single loopback voice control path `/api/voice/control`, and
210
211
  // ONLY when the deployment is full-realtime voice capable; every other upgrade keeps the hard reject.
212
+ // Every incoming HTTP request emits ONE structured line in the activity log on close, with the
213
+ // correlation id echoed in the response header. Extracted from the createServer callback so the
214
+ // top-level handler stays under the 50-line ceiling; the payload is intentionally content-free
215
+ // (method, path, status, duration).
216
+ function logRequestOnClose(req, res, correlationId, activityLog) {
217
+ const startedAt = Date.now();
218
+ const requestUrl = req.url ?? "";
219
+ const method = req.method ?? "GET";
220
+ res.on("close", () => {
221
+ activityLog.write({
222
+ category: "http",
223
+ op: "request",
224
+ correlationId,
225
+ status: res.statusCode,
226
+ durationMs: Date.now() - startedAt,
227
+ extra: { method, path: requestUrl.split("?")[0] },
228
+ });
229
+ });
230
+ }
211
231
  export function createUiServer(deps) {
212
232
  const handlerDeps = deps.handlerDeps ?? fallbackDeps();
213
233
  const { voiceControl, liveDictation } = createVoicePlanes(deps.port, handlerDeps);
234
+ const activityLog = deps.activityLog ?? nullServerLogSink();
214
235
  const server = createServer((req, res) => {
215
- // RB-6: mint (or reuse a well-formed UI-supplied) correlation id at request entry and echo it on
216
- // every response BEFORE handling, so even a streamed/committed response and a top-level failure
217
- // carry the same traceable id. `setHeader` survives the later SSE `writeHead(200, SSE_HEADERS)`
218
- // (Node merges previously-set headers), so streamed chat responses are covered too.
219
236
  const correlationId = resolveCorrelationId(req);
220
237
  res.setHeader(CORRELATION_RESPONSE_HEADER, correlationId);
238
+ logRequestOnClose(req, res, correlationId, activityLog);
221
239
  void handle(deps, handlerDeps, req, res, correlationId).catch((error) => {
222
240
  // The cause is no longer discarded: it is routed — REDACTED — to the operator diagnostic sink,
223
241
  // keyed by the correlation id, and the id is folded into the opaque 500 body so a user-reported
@@ -1 +1 @@
1
- {"version":3,"file":"store-handlers.d.ts","sourceRoot":"","sources":["../src/store-handlers.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAsD/C,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAgF3C,iBAAS,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAEpD;AAsMD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,GAAG,WAAW,CAavF;AAsCD,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,WAAW,CAAC,CAsDtB;AAeD,wBAAs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ClB,OAAO,CAAC,WAAW,CAAC,CAWtB;AAuBD,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,YAAY,EACjB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,WAAW,CAAC,CAgBtB;AAGD,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -12,6 +12,7 @@ import { UiStoreError, assertUiDbOutsideProject, validateProjectPath, } from "./
12
12
  import { projectsWithWorkspaceAvailability, projectWithWorkspaceAvailability, userFacingProjects, } from "./workspace-root-membership.js";
13
13
  import { openKnowledgeStore, resolveKnowledgeStorePath, } from "@oscharko-dev/keiko-local-knowledge";
14
14
  import { localKnowledgeProtectionOptions } from "./localKnowledgeKeyProvider.js";
15
+ import { processServerLogSink } from "./process-log-sink.js";
15
16
  import { refreshGroundedAnswerIndexLifecycle } from "./local-knowledge-index-lifecycle.js";
16
17
  import { pathIsDenied } from "./files-deny.js";
17
18
  import { clearGroundedContextIndexesForConversation, clearGroundedContextIndexesForWorkspace, } from "./grounded-context-index.js";
@@ -877,9 +878,13 @@ function openLocalKnowledgeStoreForProjection(deps) {
877
878
  const root = dirname(deps.uiDbPath ?? resolve(process.cwd(), "keiko-ui.db"));
878
879
  const dbPath = resolveKnowledgeStorePath({ runtimeStateDir: root });
879
880
  const protection = localKnowledgeProtectionOptions(deps.localKnowledgeKeyProvider);
881
+ // The chat-message projection opens the SAME store file as the capsule handlers, so it can be
882
+ // the call that first meets a corrupt or wrongly-keyed database. It carries the same sink for
883
+ // the same reason: a quarantine that leaves no line is a data-losing decision nobody can trace.
884
+ const logSink = processServerLogSink();
880
885
  const store = protection === undefined
881
- ? openKnowledgeStore({ dbPath })
882
- : openKnowledgeStore({ dbPath, protection });
886
+ ? openKnowledgeStore({ dbPath, logSink })
887
+ : openKnowledgeStore({ dbPath, protection, logSink });
883
888
  return {
884
889
  store,
885
890
  close: () => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-server",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal server package: local loopback BFF runtime (HTTP/SSE/WebSocket router, CSP, host check, CSRF gate, terminal, browser, files, run engine, SQLite-backed UI store) that mediates the browser presentation tier and the Node-side domain packages (ADR-0019). Not published independently.",
@@ -31,25 +31,25 @@
31
31
  },
32
32
  "private": true,
33
33
  "peerDependencies": {
34
- "@oscharko-dev/keiko-connectors": "0.3.13",
35
- "@oscharko-dev/keiko-contracts": "0.3.13",
36
- "@oscharko-dev/keiko-evidence": "0.3.13",
37
- "@oscharko-dev/keiko-git": "0.3.13",
38
- "@oscharko-dev/keiko-harness": "0.3.13",
39
- "@oscharko-dev/keiko-local-knowledge": "0.3.13",
40
- "@oscharko-dev/keiko-memory-capture": "0.3.13",
41
- "@oscharko-dev/keiko-memory-consolidation": "0.3.13",
42
- "@oscharko-dev/keiko-memory-governance": "0.3.13",
43
- "@oscharko-dev/keiko-memory-retrieval": "0.3.13",
44
- "@oscharko-dev/keiko-memory-vault": "0.3.13",
45
- "@oscharko-dev/keiko-model-gateway": "0.3.13",
46
- "@oscharko-dev/keiko-quality-intelligence": "0.3.13",
47
- "@oscharko-dev/keiko-sandbox": "0.3.13",
48
- "@oscharko-dev/keiko-sdk": "0.3.13",
49
- "@oscharko-dev/keiko-security": "0.3.13",
50
- "@oscharko-dev/keiko-tools": "0.3.13",
51
- "@oscharko-dev/keiko-verification": "0.3.13",
52
- "@oscharko-dev/keiko-workflows": "0.3.13",
53
- "@oscharko-dev/keiko-workspace": "0.3.13"
34
+ "@oscharko-dev/keiko-connectors": "0.3.15",
35
+ "@oscharko-dev/keiko-contracts": "0.3.15",
36
+ "@oscharko-dev/keiko-evidence": "0.3.15",
37
+ "@oscharko-dev/keiko-git": "0.3.15",
38
+ "@oscharko-dev/keiko-harness": "0.3.15",
39
+ "@oscharko-dev/keiko-local-knowledge": "0.3.15",
40
+ "@oscharko-dev/keiko-memory-capture": "0.3.15",
41
+ "@oscharko-dev/keiko-memory-consolidation": "0.3.15",
42
+ "@oscharko-dev/keiko-memory-governance": "0.3.15",
43
+ "@oscharko-dev/keiko-memory-retrieval": "0.3.15",
44
+ "@oscharko-dev/keiko-memory-vault": "0.3.15",
45
+ "@oscharko-dev/keiko-model-gateway": "0.3.15",
46
+ "@oscharko-dev/keiko-quality-intelligence": "0.3.15",
47
+ "@oscharko-dev/keiko-sandbox": "0.3.15",
48
+ "@oscharko-dev/keiko-sdk": "0.3.15",
49
+ "@oscharko-dev/keiko-security": "0.3.15",
50
+ "@oscharko-dev/keiko-tools": "0.3.15",
51
+ "@oscharko-dev/keiko-verification": "0.3.15",
52
+ "@oscharko-dev/keiko-workflows": "0.3.15",
53
+ "@oscharko-dev/keiko-workspace": "0.3.15"
54
54
  }
55
55
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_TOOLS_VERSION: "0.3.13";
1
+ export declare const KEIKO_TOOLS_VERSION: "0.3.15";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Package version constant. Bumped in lockstep with the package.json version so consumers can
2
2
  // detect divergence in tests without parsing package metadata at runtime.
3
- export const KEIKO_TOOLS_VERSION = "0.3.13";
3
+ export const KEIKO_TOOLS_VERSION = "0.3.15";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-tools",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal tools package: Keiko safe tool-execution layer — terminal-policy command allowlist, env-isolated no-shell spawn, atomic patch workflow, browser CDP adapter, and the WorkspaceWriter boundary (ADR-0006 / ADR-0017). Not published independently.",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "private": true,
38
38
  "peerDependencies": {
39
- "@oscharko-dev/keiko-contracts": "0.3.13",
40
- "@oscharko-dev/keiko-sandbox": "0.3.13",
41
- "@oscharko-dev/keiko-security": "0.3.13",
42
- "@oscharko-dev/keiko-workspace": "0.3.13"
39
+ "@oscharko-dev/keiko-contracts": "0.3.15",
40
+ "@oscharko-dev/keiko-sandbox": "0.3.15",
41
+ "@oscharko-dev/keiko-security": "0.3.15",
42
+ "@oscharko-dev/keiko-workspace": "0.3.15"
43
43
  }
44
44
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-verification",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal verification package: deterministic verification orchestrator — plan construction, resource-limit policy, best-effort memory monitoring, command classification, and audit/Markdown summaries (ADR-0007, ADR-0019). Not published independently.",
@@ -21,9 +21,9 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.13",
25
- "@oscharko-dev/keiko-security": "0.3.13",
26
- "@oscharko-dev/keiko-tools": "0.3.13",
27
- "@oscharko-dev/keiko-workspace": "0.3.13"
24
+ "@oscharko-dev/keiko-contracts": "0.3.15",
25
+ "@oscharko-dev/keiko-security": "0.3.15",
26
+ "@oscharko-dev/keiko-tools": "0.3.15",
27
+ "@oscharko-dev/keiko-workspace": "0.3.15"
28
28
  }
29
29
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-workflows",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workflows package: reviewable developer-assist workflows (unit-test generation, bug investigation), prompts/parsers/guards/report rendering, apply-mode verification gating, and UI descriptors (ADR-0008 + ADR-0009 + ADR-0019). Not published independently.",
@@ -25,14 +25,14 @@
25
25
  },
26
26
  "private": true,
27
27
  "peerDependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.13",
29
- "@oscharko-dev/keiko-security": "0.3.13",
30
- "@oscharko-dev/keiko-model-gateway": "0.3.13",
31
- "@oscharko-dev/keiko-workspace": "0.3.13",
32
- "@oscharko-dev/keiko-tools": "0.3.13",
33
- "@oscharko-dev/keiko-evidence": "0.3.13",
34
- "@oscharko-dev/keiko-verification": "0.3.13",
35
- "@oscharko-dev/keiko-harness": "0.3.13",
36
- "@oscharko-dev/keiko-quality-intelligence": "0.3.13"
28
+ "@oscharko-dev/keiko-contracts": "0.3.15",
29
+ "@oscharko-dev/keiko-security": "0.3.15",
30
+ "@oscharko-dev/keiko-model-gateway": "0.3.15",
31
+ "@oscharko-dev/keiko-workspace": "0.3.15",
32
+ "@oscharko-dev/keiko-tools": "0.3.15",
33
+ "@oscharko-dev/keiko-evidence": "0.3.15",
34
+ "@oscharko-dev/keiko-verification": "0.3.15",
35
+ "@oscharko-dev/keiko-harness": "0.3.15",
36
+ "@oscharko-dev/keiko-quality-intelligence": "0.3.15"
37
37
  }
38
38
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_WORKSPACE_VERSION: "0.3.13";
1
+ export declare const KEIKO_WORKSPACE_VERSION: "0.3.15";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Version identifier for the workspace package. Pattern matches keiko-contracts /
2
2
  // keiko-security / keiko-model-gateway: keep the literal type via `as const` so
3
3
  // downstream assertions can pin on the exact string.
4
- export const KEIKO_WORKSPACE_VERSION = "0.3.13";
4
+ export const KEIKO_WORKSPACE_VERSION = "0.3.15";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-workspace",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: Keiko repository context and workspace access — detection, safe reads, path containment, deny/ignore rules, context packs, retrieval, and summaries. Not published independently.",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "private": true,
38
38
  "peerDependencies": {
39
- "@oscharko-dev/keiko-contracts": "0.3.13",
40
- "@oscharko-dev/keiko-security": "0.3.13"
39
+ "@oscharko-dev/keiko-contracts": "0.3.15",
40
+ "@oscharko-dev/keiko-security": "0.3.15"
41
41
  }
42
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "description": "Enterprise model-agnostic developer-assist coding agent for regulated engineering workflows.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -232,7 +232,7 @@
232
232
  "@babel/core": "^8.0.1",
233
233
  "@babel/preset-env": "^8.0.2",
234
234
  "@eslint/js": "^9.39.5",
235
- "@oscharko-dev/keiko-editor": "0.3.13",
235
+ "@oscharko-dev/keiko-editor": "0.3.15",
236
236
  "@playwright/test": "^1.61.1",
237
237
  "@stryker-mutator/core": "9.6.1",
238
238
  "@stryker-mutator/vitest-runner": "9.6.1",
@@ -255,29 +255,29 @@
255
255
  "yaml": "2.9.0"
256
256
  },
257
257
  "dependencies": {
258
- "@oscharko-dev/keiko-cli": "file:vendor/oscharko-dev-keiko-cli-0.3.13.tgz",
259
- "@oscharko-dev/keiko-connectors": "file:vendor/oscharko-dev-keiko-connectors-0.3.13.tgz",
260
- "@oscharko-dev/keiko-contracts": "file:vendor/oscharko-dev-keiko-contracts-0.3.13.tgz",
261
- "@oscharko-dev/keiko-evaluations": "file:vendor/oscharko-dev-keiko-evaluations-0.3.13.tgz",
262
- "@oscharko-dev/keiko-evidence": "file:vendor/oscharko-dev-keiko-evidence-0.3.13.tgz",
263
- "@oscharko-dev/keiko-git": "file:vendor/oscharko-dev-keiko-git-0.3.13.tgz",
264
- "@oscharko-dev/keiko-harness": "file:vendor/oscharko-dev-keiko-harness-0.3.13.tgz",
265
- "@oscharko-dev/keiko-local-knowledge": "file:vendor/oscharko-dev-keiko-local-knowledge-0.3.13.tgz",
266
- "@oscharko-dev/keiko-memory-capture": "file:vendor/oscharko-dev-keiko-memory-capture-0.3.13.tgz",
267
- "@oscharko-dev/keiko-memory-consolidation": "file:vendor/oscharko-dev-keiko-memory-consolidation-0.3.13.tgz",
268
- "@oscharko-dev/keiko-memory-governance": "file:vendor/oscharko-dev-keiko-memory-governance-0.3.13.tgz",
269
- "@oscharko-dev/keiko-memory-retrieval": "file:vendor/oscharko-dev-keiko-memory-retrieval-0.3.13.tgz",
270
- "@oscharko-dev/keiko-memory-vault": "file:vendor/oscharko-dev-keiko-memory-vault-0.3.13.tgz",
271
- "@oscharko-dev/keiko-model-gateway": "file:vendor/oscharko-dev-keiko-model-gateway-0.3.13.tgz",
272
- "@oscharko-dev/keiko-quality-intelligence": "file:vendor/oscharko-dev-keiko-quality-intelligence-0.3.13.tgz",
273
- "@oscharko-dev/keiko-sandbox": "file:vendor/oscharko-dev-keiko-sandbox-0.3.13.tgz",
274
- "@oscharko-dev/keiko-sdk": "file:vendor/oscharko-dev-keiko-sdk-0.3.13.tgz",
275
- "@oscharko-dev/keiko-security": "file:vendor/oscharko-dev-keiko-security-0.3.13.tgz",
276
- "@oscharko-dev/keiko-server": "file:vendor/oscharko-dev-keiko-server-0.3.13.tgz",
277
- "@oscharko-dev/keiko-tools": "file:vendor/oscharko-dev-keiko-tools-0.3.13.tgz",
278
- "@oscharko-dev/keiko-verification": "file:vendor/oscharko-dev-keiko-verification-0.3.13.tgz",
279
- "@oscharko-dev/keiko-workflows": "file:vendor/oscharko-dev-keiko-workflows-0.3.13.tgz",
280
- "@oscharko-dev/keiko-workspace": "file:vendor/oscharko-dev-keiko-workspace-0.3.13.tgz",
258
+ "@oscharko-dev/keiko-cli": "file:vendor/oscharko-dev-keiko-cli-0.3.15.tgz",
259
+ "@oscharko-dev/keiko-connectors": "file:vendor/oscharko-dev-keiko-connectors-0.3.15.tgz",
260
+ "@oscharko-dev/keiko-contracts": "file:vendor/oscharko-dev-keiko-contracts-0.3.15.tgz",
261
+ "@oscharko-dev/keiko-evaluations": "file:vendor/oscharko-dev-keiko-evaluations-0.3.15.tgz",
262
+ "@oscharko-dev/keiko-evidence": "file:vendor/oscharko-dev-keiko-evidence-0.3.15.tgz",
263
+ "@oscharko-dev/keiko-git": "file:vendor/oscharko-dev-keiko-git-0.3.15.tgz",
264
+ "@oscharko-dev/keiko-harness": "file:vendor/oscharko-dev-keiko-harness-0.3.15.tgz",
265
+ "@oscharko-dev/keiko-local-knowledge": "file:vendor/oscharko-dev-keiko-local-knowledge-0.3.15.tgz",
266
+ "@oscharko-dev/keiko-memory-capture": "file:vendor/oscharko-dev-keiko-memory-capture-0.3.15.tgz",
267
+ "@oscharko-dev/keiko-memory-consolidation": "file:vendor/oscharko-dev-keiko-memory-consolidation-0.3.15.tgz",
268
+ "@oscharko-dev/keiko-memory-governance": "file:vendor/oscharko-dev-keiko-memory-governance-0.3.15.tgz",
269
+ "@oscharko-dev/keiko-memory-retrieval": "file:vendor/oscharko-dev-keiko-memory-retrieval-0.3.15.tgz",
270
+ "@oscharko-dev/keiko-memory-vault": "file:vendor/oscharko-dev-keiko-memory-vault-0.3.15.tgz",
271
+ "@oscharko-dev/keiko-model-gateway": "file:vendor/oscharko-dev-keiko-model-gateway-0.3.15.tgz",
272
+ "@oscharko-dev/keiko-quality-intelligence": "file:vendor/oscharko-dev-keiko-quality-intelligence-0.3.15.tgz",
273
+ "@oscharko-dev/keiko-sandbox": "file:vendor/oscharko-dev-keiko-sandbox-0.3.15.tgz",
274
+ "@oscharko-dev/keiko-sdk": "file:vendor/oscharko-dev-keiko-sdk-0.3.15.tgz",
275
+ "@oscharko-dev/keiko-security": "file:vendor/oscharko-dev-keiko-security-0.3.15.tgz",
276
+ "@oscharko-dev/keiko-server": "file:vendor/oscharko-dev-keiko-server-0.3.15.tgz",
277
+ "@oscharko-dev/keiko-tools": "file:vendor/oscharko-dev-keiko-tools-0.3.15.tgz",
278
+ "@oscharko-dev/keiko-verification": "file:vendor/oscharko-dev-keiko-verification-0.3.15.tgz",
279
+ "@oscharko-dev/keiko-workflows": "file:vendor/oscharko-dev-keiko-workflows-0.3.15.tgz",
280
+ "@oscharko-dev/keiko-workspace": "file:vendor/oscharko-dev-keiko-workspace-0.3.15.tgz",
281
281
  "pdfjs-dist": "6.2.108",
282
282
  "typescript": "6.0.3",
283
283
  "ws": "8.21.3",