@oscharko-dev/keiko 0.3.16 → 0.3.17

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 (214) 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/investigate.d.ts +8 -0
  52. package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.d.ts.map +1 -1
  53. package/node_modules/@oscharko-dev/keiko-cli/dist/investigate.js +283 -16
  54. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts +71 -0
  55. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.d.ts.map +1 -1
  56. package/node_modules/@oscharko-dev/keiko-cli/dist/support-analyze.js +420 -11
  57. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts +23 -1
  58. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.d.ts.map +1 -1
  59. package/node_modules/@oscharko-dev/keiko-cli/dist/support-export.js +41 -7
  60. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts +6 -0
  61. package/node_modules/@oscharko-dev/keiko-cli/dist/support.d.ts.map +1 -1
  62. package/node_modules/@oscharko-dev/keiko-cli/dist/support.js +289 -13
  63. package/node_modules/@oscharko-dev/keiko-cli/package.json +13 -13
  64. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  65. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
  66. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +2 -2
  67. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  68. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  69. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  70. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  71. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  72. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  73. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  74. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  75. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  76. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  77. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  78. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  79. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  80. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  81. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  82. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts +1 -0
  83. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.d.ts.map +1 -1
  84. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/consolidate.js +26 -6
  85. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.d.ts +2 -1
  86. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.d.ts.map +1 -1
  87. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/index.js +1 -0
  88. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.d.ts +19 -0
  89. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.d.ts.map +1 -0
  90. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/log-port.js +112 -0
  91. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/types.d.ts +2 -0
  92. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/types.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  94. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  95. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  96. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  97. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  98. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  99. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  100. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  101. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  102. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  103. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  104. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  105. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts +4 -0
  106. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.d.ts.map +1 -1
  107. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-adapter.js +25 -0
  108. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  109. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  110. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  111. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  112. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  113. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  114. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  115. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  116. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  117. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.d.ts +1 -0
  118. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.d.ts.map +1 -1
  119. package/node_modules/@oscharko-dev/keiko-server/dist/atlassian/httpPort.js +24 -1
  120. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  121. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +1 -0
  122. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.d.ts.map +1 -1
  123. package/node_modules/@oscharko-dev/keiko-server/dist/coding-app-session/sessionChannel.js +3 -3
  124. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeEventHub.js +3 -3
  126. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingRuntimeManager.js +19 -4
  127. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.d.ts.map +1 -1
  128. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/codingSafeActivityProjection.js +23 -3
  129. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts +2 -2
  130. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.d.ts.map +1 -1
  131. package/node_modules/@oscharko-dev/keiko-server/dist/diagnostics-log.js +97 -13
  132. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.d.ts.map +1 -1
  133. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-setup.js +8 -3
  134. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.d.ts.map +1 -1
  135. package/node_modules/@oscharko-dev/keiko-server/dist/grounded-entailment-stage.js +7 -5
  136. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts +1 -1
  137. package/node_modules/@oscharko-dev/keiko-server/dist/index.d.ts.map +1 -1
  138. package/node_modules/@oscharko-dev/keiko-server/dist/index.js +5 -2
  139. package/node_modules/@oscharko-dev/keiko-server/dist/memory-conflict-advisory.d.ts.map +1 -1
  140. package/node_modules/@oscharko-dev/keiko-server/dist/memory-conflict-advisory.js +9 -3
  141. package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.d.ts.map +1 -1
  142. package/node_modules/@oscharko-dev/keiko-server/dist/memory-consolidation-handlers.js +56 -19
  143. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts +1 -1
  144. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.d.ts.map +1 -1
  145. package/node_modules/@oscharko-dev/keiko-server/dist/memory-handlers.js +80 -29
  146. package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.d.ts +2 -0
  147. package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.d.ts.map +1 -1
  148. package/node_modules/@oscharko-dev/keiko-server/dist/memory-maintenance-handlers.js +18 -2
  149. package/node_modules/@oscharko-dev/keiko-server/dist/memory-salience.d.ts.map +1 -1
  150. package/node_modules/@oscharko-dev/keiko-server/dist/memory-salience.js +18 -7
  151. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts +1 -1
  152. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-log.d.ts.map +1 -1
  153. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.d.ts.map +1 -1
  154. package/node_modules/@oscharko-dev/keiko-server/dist/observability/server-logger.js +1 -0
  155. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts +11 -0
  156. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.d.ts.map +1 -1
  157. package/node_modules/@oscharko-dev/keiko-server/dist/process-log-sink.js +17 -0
  158. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts.map +1 -1
  159. package/node_modules/@oscharko-dev/keiko-server/dist/qualityIntelligence/figmaSnapshotRoutes.js +10 -4
  160. package/node_modules/@oscharko-dev/keiko-server/dist/sink.d.ts +4 -0
  161. package/node_modules/@oscharko-dev/keiko-server/dist/sink.d.ts.map +1 -1
  162. package/node_modules/@oscharko-dev/keiko-server/dist/sink.js +98 -0
  163. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.d.ts.map +1 -1
  164. package/node_modules/@oscharko-dev/keiko-server/dist/store/messages.js +16 -1
  165. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-catalog.d.ts +2 -1
  166. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-catalog.d.ts.map +1 -1
  167. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-catalog.js +17 -2
  168. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.d.ts.map +1 -1
  169. package/node_modules/@oscharko-dev/keiko-server/dist/update-preflight-routes.js +2 -2
  170. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts +4 -0
  171. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.d.ts.map +1 -1
  172. package/node_modules/@oscharko-dev/keiko-server/dist/voice-realtime.js +68 -13
  173. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  174. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  175. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  176. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  177. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  178. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  179. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  180. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  181. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  182. package/package.json +26 -25
  183. package/release-impact.catalog.json +69 -12
  184. package/vendor/oscharko-dev-keiko-cli-0.3.17.tgz +0 -0
  185. package/vendor/{oscharko-dev-keiko-connectors-0.3.16.tgz → oscharko-dev-keiko-connectors-0.3.17.tgz} +0 -0
  186. package/vendor/{oscharko-dev-keiko-contracts-0.3.16.tgz → oscharko-dev-keiko-contracts-0.3.17.tgz} +0 -0
  187. package/vendor/{oscharko-dev-keiko-evaluations-0.3.16.tgz → oscharko-dev-keiko-evaluations-0.3.17.tgz} +0 -0
  188. package/vendor/{oscharko-dev-keiko-evidence-0.3.16.tgz → oscharko-dev-keiko-evidence-0.3.17.tgz} +0 -0
  189. package/vendor/{oscharko-dev-keiko-git-0.3.16.tgz → oscharko-dev-keiko-git-0.3.17.tgz} +0 -0
  190. package/vendor/oscharko-dev-keiko-harness-0.3.17.tgz +0 -0
  191. package/vendor/{oscharko-dev-keiko-local-knowledge-0.3.16.tgz → oscharko-dev-keiko-local-knowledge-0.3.17.tgz} +0 -0
  192. package/vendor/{oscharko-dev-keiko-memory-capture-0.3.16.tgz → oscharko-dev-keiko-memory-capture-0.3.17.tgz} +0 -0
  193. package/vendor/oscharko-dev-keiko-memory-consolidation-0.3.17.tgz +0 -0
  194. package/vendor/{oscharko-dev-keiko-memory-governance-0.3.16.tgz → oscharko-dev-keiko-memory-governance-0.3.17.tgz} +0 -0
  195. package/vendor/{oscharko-dev-keiko-memory-retrieval-0.3.16.tgz → oscharko-dev-keiko-memory-retrieval-0.3.17.tgz} +0 -0
  196. package/vendor/{oscharko-dev-keiko-memory-vault-0.3.16.tgz → oscharko-dev-keiko-memory-vault-0.3.17.tgz} +0 -0
  197. package/vendor/{oscharko-dev-keiko-model-gateway-0.3.16.tgz → oscharko-dev-keiko-model-gateway-0.3.17.tgz} +0 -0
  198. package/vendor/{oscharko-dev-keiko-quality-intelligence-0.3.16.tgz → oscharko-dev-keiko-quality-intelligence-0.3.17.tgz} +0 -0
  199. package/vendor/{oscharko-dev-keiko-sandbox-0.3.16.tgz → oscharko-dev-keiko-sandbox-0.3.17.tgz} +0 -0
  200. package/vendor/{oscharko-dev-keiko-sdk-0.3.16.tgz → oscharko-dev-keiko-sdk-0.3.17.tgz} +0 -0
  201. package/vendor/oscharko-dev-keiko-security-0.3.17.tgz +0 -0
  202. package/vendor/oscharko-dev-keiko-server-0.3.17.tgz +0 -0
  203. package/vendor/{oscharko-dev-keiko-tools-0.3.16.tgz → oscharko-dev-keiko-tools-0.3.17.tgz} +0 -0
  204. package/vendor/{oscharko-dev-keiko-verification-0.3.16.tgz → oscharko-dev-keiko-verification-0.3.17.tgz} +0 -0
  205. package/vendor/{oscharko-dev-keiko-workflows-0.3.16.tgz → oscharko-dev-keiko-workflows-0.3.17.tgz} +0 -0
  206. package/vendor/{oscharko-dev-keiko-workspace-0.3.16.tgz → oscharko-dev-keiko-workspace-0.3.17.tgz} +0 -0
  207. package/vendor/oscharko-dev-keiko-cli-0.3.16.tgz +0 -0
  208. package/vendor/oscharko-dev-keiko-harness-0.3.16.tgz +0 -0
  209. package/vendor/oscharko-dev-keiko-memory-consolidation-0.3.16.tgz +0 -0
  210. package/vendor/oscharko-dev-keiko-security-0.3.16.tgz +0 -0
  211. package/vendor/oscharko-dev-keiko-server-0.3.16.tgz +0 -0
  212. /package/dist/ui/static/_next/static/{nV-Flxo4itfIzasbhujy9 → C3-P-HHUm15MLLjtORoPG}/_buildManifest.js +0 -0
  213. /package/dist/ui/static/_next/static/{nV-Flxo4itfIzasbhujy9 → C3-P-HHUm15MLLjtORoPG}/_clientMiddlewareManifest.js +0 -0
  214. /package/dist/ui/static/_next/static/{nV-Flxo4itfIzasbhujy9 → C3-P-HHUm15MLLjtORoPG}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-evaluations",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal evaluations package: deterministic evaluation harness — scripted ModelPort fixtures, six scored dimensions, surface-parity check, scorecard renderer, and the offline-vs-live model provider selector (ADR-0012, ADR-0019). Not published independently.",
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-evidence": "0.3.16",
26
- "@oscharko-dev/keiko-harness": "0.3.16",
27
- "@oscharko-dev/keiko-local-knowledge": "0.3.16",
28
- "@oscharko-dev/keiko-model-gateway": "0.3.16",
29
- "@oscharko-dev/keiko-security": "0.3.16",
30
- "@oscharko-dev/keiko-tools": "0.3.16",
31
- "@oscharko-dev/keiko-workflows": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-evidence": "0.3.17",
26
+ "@oscharko-dev/keiko-harness": "0.3.17",
27
+ "@oscharko-dev/keiko-local-knowledge": "0.3.17",
28
+ "@oscharko-dev/keiko-model-gateway": "0.3.17",
29
+ "@oscharko-dev/keiko-security": "0.3.17",
30
+ "@oscharko-dev/keiko-tools": "0.3.17",
31
+ "@oscharko-dev/keiko-workflows": "0.3.17"
32
32
  }
33
33
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_EVIDENCE_VERSION: "0.3.16";
1
+ export declare const KEIKO_EVIDENCE_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_EVIDENCE_VERSION = "0.3.16";
1
+ export const KEIKO_EVIDENCE_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-evidence",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal evidence package: Keiko evidence manifests, redacted-by-construction builder, retention/rotation, EvidenceStore port + node adapter, side-file writer, and workflow-evidence mapping (ADR-0010 + ADR-0017 + ADR-0019). Not published independently.",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-security": "0.3.16",
26
- "@oscharko-dev/keiko-workspace": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-security": "0.3.17",
26
+ "@oscharko-dev/keiko-workspace": "0.3.17"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-git",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: shared Git core primitives — hardened process runner and environments, repository resolution and path containment, porcelain/ref/remote/history parsers, and failure classification. Single source of truth consumed by keiko-server, keiko-tools, and keiko-workspace. Not published independently.",
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_HARNESS_VERSION: "0.3.16";
1
+ export declare const KEIKO_HARNESS_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -2,4 +2,4 @@
2
2
  // observe the public-surface generation at runtime. This is the PACKAGE version, distinct
3
3
  // from HARNESS_VERSION (the runtime/event-schema version that lives in @oscharko-dev/keiko-contracts
4
4
  // — re-exported from the package barrel so consumers see a single import source).
5
- export const KEIKO_HARNESS_VERSION = "0.3.16";
5
+ export const KEIKO_HARNESS_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-harness",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal harness package: Keiko agent runtime loop, session/cancellation/limits, state machine, event emission, port abstractions, and dry-run-first patch proposal seam (ADR-0004 + ADR-0019). Not published independently.",
@@ -21,10 +21,10 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-security": "0.3.16",
26
- "@oscharko-dev/keiko-model-gateway": "0.3.16",
27
- "@oscharko-dev/keiko-workspace": "0.3.16",
28
- "@oscharko-dev/keiko-tools": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-security": "0.3.17",
26
+ "@oscharko-dev/keiko-model-gateway": "0.3.17",
27
+ "@oscharko-dev/keiko-workspace": "0.3.17",
28
+ "@oscharko-dev/keiko-tools": "0.3.17"
29
29
  }
30
30
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_LOCAL_KNOWLEDGE_VERSION: "0.3.16";
1
+ export declare const KEIKO_LOCAL_KNOWLEDGE_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Package version literal for @oscharko-dev/keiko-local-knowledge. Bumped lockstep with the
2
2
  // package.json "version" field so a value-import gives consumers a single source of truth
3
3
  // without parsing JSON at runtime.
4
- export const KEIKO_LOCAL_KNOWLEDGE_VERSION = "0.3.16";
4
+ export const KEIKO_LOCAL_KNOWLEDGE_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-local-knowledge",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal local-knowledge package: on-disk capsule store (node:sqlite + WAL) and capsule/source/CapsuleSet lifecycle CRUD for the Local Knowledge Connector (Epic #189, Issue #193). Not published independently.",
@@ -32,9 +32,9 @@
32
32
  },
33
33
  "private": true,
34
34
  "peerDependencies": {
35
- "@oscharko-dev/keiko-contracts": "0.3.16",
36
- "@oscharko-dev/keiko-model-gateway": "0.3.16",
37
- "@oscharko-dev/keiko-security": "0.3.16",
38
- "@oscharko-dev/keiko-workspace": "0.3.16"
35
+ "@oscharko-dev/keiko-contracts": "0.3.17",
36
+ "@oscharko-dev/keiko-model-gateway": "0.3.17",
37
+ "@oscharko-dev/keiko-security": "0.3.17",
38
+ "@oscharko-dev/keiko-workspace": "0.3.17"
39
39
  }
40
40
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_CAPTURE_VERSION: "0.3.16";
1
+ export declare const KEIKO_MEMORY_CAPTURE_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_CAPTURE_VERSION = "0.3.16";
1
+ export const KEIKO_MEMORY_CAPTURE_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-capture",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "MemoriaViva — Internal memory-capture package: governed capture policy gate that turns raw user text and reviewed workflow outcomes into MemoryProposal / MemoryUpdate / MemoryForget / MemorySupersession envelopes. PRIMARY secret-prevention boundary (defence-in-depth on top of looksLikeSecretShape in keiko-contracts). Pure functions only; no IO, no clock, no randomness (caller supplies nowMs and newId via CaptureContext). ADR-0019 direction rule 3g (capture may depend only on keiko-contracts and keiko-security). Not published independently.",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-security": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-security": "0.3.17"
26
26
  }
27
27
  }
@@ -1,4 +1,5 @@
1
1
  import { type MemoryRecord } from "@oscharko-dev/keiko-contracts/memory";
2
2
  import type { ConsolidationOptions, ConsolidationResult } from "./types.js";
3
+ export type SummaryFallbackReason = "absent" | "invalid-output" | "union-not-preserved" | "generator-threw";
3
4
  export declare function runConsolidation(memories: readonly MemoryRecord[], options: ConsolidationOptions): ConsolidationResult;
4
5
  //# sourceMappingURL=consolidate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"consolidate.d.ts","sourceRoot":"","sources":["../src/consolidate.ts"],"names":[],"mappings":"AAYA,OAAO,EAIL,KAAK,YAAY,EAKlB,MAAM,sCAAsC,CAAC;AAsB9C,OAAO,KAAK,EAGV,oBAAoB,EACpB,mBAAmB,EAKpB,MAAM,YAAY,CAAC;AAmmBpB,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,SAAS,YAAY,EAAE,EACjC,OAAO,EAAE,oBAAoB,GAC5B,mBAAmB,CAoCrB"}
1
+ {"version":3,"file":"consolidate.d.ts","sourceRoot":"","sources":["../src/consolidate.ts"],"names":[],"mappings":"AAeA,OAAO,EAIL,KAAK,YAAY,EAKlB,MAAM,sCAAsC,CAAC;AAuB9C,OAAO,KAAK,EAGV,oBAAoB,EACpB,mBAAmB,EAKpB,MAAM,YAAY,CAAC;AA6VpB,MAAM,MAAM,qBAAqB,GAC/B,QAAQ,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,iBAAiB,CAAC;AA+R1E,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,SAAS,YAAY,EAAE,EACjC,OAAO,EAAE,oBAAoB,GAC5B,mBAAmB,CAoCrB"}
@@ -1,5 +1,8 @@
1
1
  // runConsolidation: the engine entry point. Pure function; no IO; no clock reads; no
2
- // randomness. Every impurity is injected via ConsolidationOptions.
2
+ // randomness. Every impurity is injected via ConsolidationOptions — including the one optional
3
+ // activity-log write (`logSink`, see `log-port.ts`): absent by default, so the default call
4
+ // remains IO-free, and a caller that opts in only ever observes a `consolidation.summary.fallback`
5
+ // event synchronously during the call, never anything that changes the returned result.
3
6
  //
4
7
  // Merge / supersession relationships are routed through ReviewItems; optional body summaries are
5
8
  // emitted as MemoryUpdate envelopes in updatesProposed only when the caller supplies the pure
@@ -14,6 +17,7 @@ import { JACCARD_DEFAULT, MAX_AGE_MS_DEFAULT, MAX_CLUSTERS_PER_RUN_DEFAULT, MAX_
14
17
  import { compareEdges, compareRecordsByAge, compareRecordsByRecency, compareReviewItems, } from "./_ordering.js";
15
18
  import { CONFLICT_OVERLAP_THRESHOLD, detectConflicts, findConflictPairs } from "./conflicts.js";
16
19
  import { scanDuplicateClusters } from "./dedupe.js";
20
+ import { emitConsolidationLogEvent } from "./log-port.js";
17
21
  import { normalizeBody } from "./similarity.js";
18
22
  import { findStaleMemories } from "./stale.js";
19
23
  const DEFAULT_ELIGIBLE_STATUSES = ["accepted", "proposed", "conflicted"];
@@ -51,6 +55,7 @@ function optionalResolvedPorts(options) {
51
55
  ...(options.summaryGenerator !== undefined
52
56
  ? { summaryGenerator: options.summaryGenerator }
53
57
  : {}),
58
+ ...(options.logSink !== undefined ? { logSink: options.logSink } : {}),
54
59
  };
55
60
  }
56
61
  function resolveNumericKnobs(options) {
@@ -263,15 +268,16 @@ function normalizeSummaryOutput(output) {
263
268
  return output;
264
269
  }
265
270
  function chooseSummaryBody(generator, input, sourceBodies, unionBody) {
266
- if (generator === undefined)
267
- return { body: unionBody, fallbackUsed: true };
271
+ if (generator === undefined) {
272
+ return { body: unionBody, fallbackUsed: true, summaryFallbackReason: "absent" };
273
+ }
268
274
  try {
269
275
  const generated = normalizeSummaryOutput(generator(input));
270
276
  if (generated === null || generated.body.trim().length === 0) {
271
- return { body: unionBody, fallbackUsed: true };
277
+ return { body: unionBody, fallbackUsed: true, summaryFallbackReason: "invalid-output" };
272
278
  }
273
279
  if (!summaryPreservesUnion(generated.body, sourceBodies)) {
274
- return { body: unionBody, fallbackUsed: true };
280
+ return { body: unionBody, fallbackUsed: true, summaryFallbackReason: "union-not-preserved" };
275
281
  }
276
282
  return {
277
283
  body: generated.body.trim(),
@@ -280,7 +286,7 @@ function chooseSummaryBody(generator, input, sourceBodies, unionBody) {
280
286
  };
281
287
  }
282
288
  catch {
283
- return { body: unionBody, fallbackUsed: true };
289
+ return { body: unionBody, fallbackUsed: true, summaryFallbackReason: "generator-threw" };
284
290
  }
285
291
  }
286
292
  function summaryReviewerNote(cluster, fallbackUsed, reviewerNote) {
@@ -293,6 +299,19 @@ function summaryReviewerNote(cluster, fallbackUsed, reviewerNote) {
293
299
  noteParts.push(reviewerNote);
294
300
  return noteParts.join(" ");
295
301
  }
302
+ // Fires exactly when `chooseSummaryBody` fell back to the deterministic union — the ONE call
303
+ // site (this package's composition root, `runConsolidation`, via `buildSummaryUpdate`) that both
304
+ // knows the cause AND has the caller-supplied sink. `extra.reason` is the closed-union label
305
+ // only, never the generated body, the union body, or any source content.
306
+ function logSummaryFallback(resolved, summary) {
307
+ if (!summary.fallbackUsed || summary.summaryFallbackReason === undefined)
308
+ return;
309
+ emitConsolidationLogEvent(resolved.logSink, {
310
+ category: "consolidation",
311
+ op: "consolidation.summary.fallback",
312
+ extra: { reason: summary.summaryFallbackReason },
313
+ });
314
+ }
296
315
  function buildSummaryUpdate(cluster, resolved) {
297
316
  const actionInput = mergeActionForCluster(cluster);
298
317
  if (actionInput === null)
@@ -308,6 +327,7 @@ function buildSummaryUpdate(cluster, resolved) {
308
327
  sourceMemoryIds: sourceIdsForCluster(cluster),
309
328
  sourceBodies,
310
329
  }, sourceBodies, unionBody);
330
+ logSummaryFallback(resolved, summary);
311
331
  return {
312
332
  update: {
313
333
  schemaVersion: "1",
@@ -1,5 +1,6 @@
1
1
  export { KEIKO_MEMORY_CONSOLIDATION_VERSION } from "./version.js";
2
2
  export type { ConsolidationJob, ConsolidationJobState, ConsolidationAccessStat, ConsolidationEmbedding, ConsolidationEvidence, ConsolidationEvidenceKind, ConsolidationOptions, ConsolidationResult, ConsolidationSummaryGenerator, ConsolidationSummaryInput, ConsolidationSummaryOutput, ConsolidationSummaryStatus, ProposedAction, ReviewItem, ReviewItemSuggestedResolution, ReviewReason, StaleFlag, StaleReason, } from "./types.js";
3
- export { runConsolidation } from "./consolidate.js";
3
+ export { runConsolidation, type SummaryFallbackReason } from "./consolidate.js";
4
4
  export { buildConsolidationJob, ConsolidationJobError, transitionJob, type ConsolidationJobErrorCode, } from "./job.js";
5
+ export { nullConsolidationLogSink, type ConsolidationLogCategory, type ConsolidationLogEvent, type ConsolidationLogLevel, type ConsolidationLogSink, } from "./log-port.js";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAClE,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,UAAU,EACV,6BAA6B,EAC7B,YAAY,EACZ,SAAS,EACT,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,KAAK,yBAAyB,GAC/B,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kCAAkC,EAAE,MAAM,cAAc,CAAC;AAClE,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,6BAA6B,EAC7B,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,cAAc,EACd,UAAU,EACV,6BAA6B,EAC7B,YAAY,EACZ,SAAS,EACT,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,aAAa,EACb,KAAK,yBAAyB,GAC/B,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,wBAAwB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,eAAe,CAAC"}
@@ -5,3 +5,4 @@
5
5
  export { KEIKO_MEMORY_CONSOLIDATION_VERSION } from "./version.js";
6
6
  export { runConsolidation } from "./consolidate.js";
7
7
  export { buildConsolidationJob, ConsolidationJobError, transitionJob, } from "./job.js";
8
+ export { nullConsolidationLogSink, } from "./log-port.js";
@@ -0,0 +1,19 @@
1
+ export type ConsolidationLogLevel = "debug" | "info" | "warn" | "error";
2
+ export type ConsolidationLogCategory = "consolidation" | "diagnostic";
3
+ export interface ConsolidationLogEvent {
4
+ readonly level?: ConsolidationLogLevel | undefined;
5
+ readonly category: ConsolidationLogCategory;
6
+ readonly op: string;
7
+ readonly correlationId?: string | undefined;
8
+ readonly durationMs?: number | undefined;
9
+ readonly status?: number | undefined;
10
+ readonly errorKind?: string | undefined;
11
+ readonly extra?: Readonly<Record<string, unknown>> | undefined;
12
+ }
13
+ export interface ConsolidationLogSink {
14
+ readonly write: (event: ConsolidationLogEvent) => void;
15
+ }
16
+ export declare function nullConsolidationLogSink(): ConsolidationLogSink;
17
+ export declare function consolidationErrorKind(error: unknown): string;
18
+ export declare function emitConsolidationLogEvent(sink: ConsolidationLogSink | undefined, event: ConsolidationLogEvent): void;
19
+ //# sourceMappingURL=log-port.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log-port.d.ts","sourceRoot":"","sources":["../src/log-port.ts"],"names":[],"mappings":"AA0BA,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAExE,MAAM,MAAM,wBAAwB,GAAG,eAAe,GAAG,YAAY,CAAC;AAEtE,MAAM,WAAW,qBAAqB;IAEpC,QAAQ,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,QAAQ,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;CAChE;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACxD;AAQD,wBAAgB,wBAAwB,IAAI,oBAAoB,CAE/D;AA0BD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAG7D;AAWD,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,oBAAoB,GAAG,SAAS,EACtC,KAAK,EAAE,qBAAqB,GAC3B,IAAI,CAON"}
@@ -0,0 +1,112 @@
1
+ // Content-free activity-log seam for the memory-consolidation package.
2
+ //
3
+ // WHY THIS FILE EXISTS INSTEAD OF AN IMPORT
4
+ //
5
+ // The server owns the process-wide logger and the file sink that writes `server.log`. This
6
+ // package sits BELOW `keiko-server` in the ADR-0019 dependency direction, so importing that
7
+ // logger would invert the arrow that `arch:check` enforces. The package therefore declares the
8
+ // structural shape it needs and accepts an optional sink through `ConsolidationOptions`; the
9
+ // server wires its own sink in at its own composition root, and every call site degrades to a
10
+ // no-op when nothing is wired.
11
+ //
12
+ // The event shape is deliberately a STRUCTURAL SUBSET of the server's `ServerLogEvent` — the
13
+ // same shape `packages/keiko-local-knowledge/src/knowledge-log.ts`'s `KnowledgeLogEvent` already
14
+ // uses — so a `ServerLogSink` is assignable to `ConsolidationLogSink` with no adapter and no
15
+ // shared import (AGENTS.md: "a domain package gets its own structural log-port copy, never a
16
+ // sibling import"). The category union is narrowed to the labels this package can legitimately
17
+ // emit.
18
+ //
19
+ // REDACTION IS STRUCTURAL, NOT A CALLER PROMISE
20
+ //
21
+ // A field here carries counts, closed-union reason labels, error kinds, and this package's own
22
+ // opaque identifiers. Memory bodies, summaries, reviewer notes, and any other record content
23
+ // never reach a field on this event.
24
+ import { classifyErrorKind } from "@oscharko-dev/keiko-contracts";
25
+ const NULL_SINK = {
26
+ write(_event) {
27
+ // Explicit no-op: the default whenever no caller wired a sink.
28
+ },
29
+ };
30
+ export function nullConsolidationLogSink() {
31
+ return NULL_SINK;
32
+ }
33
+ // The shape an error KIND may have is `classifyErrorKind` (ADR-0173 D11), imported from
34
+ // `keiko-contracts` rather than declared here, so this reducer and its siblings in
35
+ // `keiko-local-knowledge/src/knowledge-log.ts`, `keiko-server/src/observability/server-log.ts`
36
+ // and `keiko-model-gateway/src/observability.ts` cannot drift into accepting different things: an
37
+ // identifier, a taxonomy code, a constructor name — never a sentence.
38
+ //
39
+ // READING the property is itself a call into foreign code: an accessor, a Proxy `get` trap, or a
40
+ // `Object.defineProperty(error, "code", { get() { throw … } })` runs OUR stack frame while we are
41
+ // already mid-recovery from the failure being classified. An unreadable property degrades to the
42
+ // next candidate, exactly like a property whose value fails the shape gate.
43
+ function errorKindProperty(error, key) {
44
+ let value;
45
+ try {
46
+ value = error[key];
47
+ }
48
+ catch {
49
+ return undefined;
50
+ }
51
+ return classifyErrorKind(value);
52
+ }
53
+ // Classification only: the coded `code`, else the constructor `name`, else "unknown". The
54
+ // message is NEVER read — a thrown error's message routinely carries a fragment of the content
55
+ // that failed to parse — and neither `code` nor `name` is trusted to be a code just because it is
56
+ // called one: both must pass `classifyErrorKind`'s shape gate first.
57
+ export function consolidationErrorKind(error) {
58
+ if (typeof error !== "object" || error === null)
59
+ return "unknown";
60
+ return errorKindProperty(error, "code") ?? errorKindProperty(error, "name") ?? "unknown";
61
+ }
62
+ // ─── Writing a line must never become the failure it describes ────────────────
63
+ //
64
+ // Mirrors `emitKnowledgeLogEvent`'s two-rule contract:
65
+ // 1. A sink failure must never surface to the consolidation run being logged — the sink is
66
+ // foreign code supplied through options.
67
+ // 2. A permanently broken sink must never be invisible — it is reported once per sink instance,
68
+ // never once per event, so a run with many fallbacks cannot flood stderr.
69
+ const REPORTED_FAILED_SINKS = new WeakSet();
70
+ export function emitConsolidationLogEvent(sink, event) {
71
+ if (sink === undefined)
72
+ return;
73
+ try {
74
+ sink.write(event);
75
+ }
76
+ catch (cause) {
77
+ reportFailedConsolidationLogSink(sink, event.op, cause);
78
+ }
79
+ }
80
+ function reportFailedConsolidationLogSink(sink, droppedOp, cause) {
81
+ if (REPORTED_FAILED_SINKS.has(sink))
82
+ return;
83
+ REPORTED_FAILED_SINKS.add(sink);
84
+ const errorKind = consolidationErrorKind(cause);
85
+ try {
86
+ sink.write({
87
+ level: "error",
88
+ category: "diagnostic",
89
+ op: "consolidation.log.sink-failed",
90
+ errorKind,
91
+ extra: { droppedOp },
92
+ });
93
+ return;
94
+ }
95
+ catch {
96
+ // The transport refuses this shape too, so it is the transport that is down — fall through to
97
+ // the only channel left.
98
+ }
99
+ warnFailedConsolidationLogSink(droppedOp, errorKind);
100
+ }
101
+ function warnFailedConsolidationLogSink(droppedOp, errorKind) {
102
+ try {
103
+ process.emitWarning("Keiko activity log sink is failing; log lines are being dropped.", {
104
+ type: "KeikoActivityLog",
105
+ code: "KEIKO_LOG_SINK_FAILED",
106
+ detail: `op=${droppedOp} errorKind=${errorKind}`,
107
+ });
108
+ }
109
+ catch {
110
+ // The process warning channel is the last one there is; a report beyond it does not exist.
111
+ }
112
+ }
@@ -1,4 +1,5 @@
1
1
  import type { MemoryEdge, MemoryEdgeId, MemoryId, MemoryRecord, MemoryReviewerId, MemoryStatus, MemoryUpdate } from "@oscharko-dev/keiko-contracts/memory";
2
+ import type { ConsolidationLogSink } from "./log-port.js";
2
3
  export type ConsolidationJobState = "queued" | "running" | "completed" | "failed" | "canceled" | "skipped";
3
4
  export interface ConsolidationJob {
4
5
  readonly id: string;
@@ -93,6 +94,7 @@ export interface ConsolidationOptions {
93
94
  readonly embeddingFor?: (memoryId: MemoryId) => ConsolidationEmbedding | undefined;
94
95
  readonly accessStatsFor?: (memoryId: MemoryId) => ConsolidationAccessStat | undefined;
95
96
  readonly summaryGenerator?: ConsolidationSummaryGenerator;
97
+ readonly logSink?: ConsolidationLogSink;
96
98
  }
97
99
  export interface ConsolidationResult {
98
100
  readonly state: "completed" | "canceled" | "skipped" | "failed";
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACb,MAAM,sCAAsC,CAAC;AAQ9C,MAAM,MAAM,qBAAqB,GAC/B,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,qBAAqB,CAAC;IACtC,QAAQ,CAAC,SAAS,CAAC,EA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2 @@
1
- export declare const KEIKO_MEMORY_CONSOLIDATION_VERSION: "0.3.16";
1
+ export declare const KEIKO_MEMORY_CONSOLIDATION_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_CONSOLIDATION_VERSION = "0.3.16";
1
+ export const KEIKO_MEMORY_CONSOLIDATION_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-consolidation",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "MemoriaViva — Internal memory-consolidation package: pure-function engine that takes a bounded set of accepted MemoryRecords and returns proposed relationship edges, stale flags, and review items (multi-way duplicates and potential conflicts). The engine NEVER mutates accepted memories: every merge/supersession is routed through a ReviewItem so the caller (#211 MemoriaViva UI or a workflow) materializes the actual MemorySupersession envelope after explicit review. No IO, no clock, no randomness (caller supplies nowMs and id factories via ConsolidationOptions). ADR-0019 direction rule 3h (consolidation may depend only on keiko-contracts and keiko-security). Not published independently.",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-security": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-security": "0.3.17"
26
26
  }
27
27
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_GOVERNANCE_VERSION: "0.3.16";
1
+ export declare const KEIKO_MEMORY_GOVERNANCE_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_GOVERNANCE_VERSION = "0.3.16";
1
+ export const KEIKO_MEMORY_GOVERNANCE_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-governance",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "MemoriaViva — Internal memory-governance package (Epic #204 child #209): pure-function envelope builders for user-driven corrections, conflict resolution, selective forgetting, expiration, pinning and archiving over Governed Enterprise Memory Vault records. Every public function returns a contracts-validated operation envelope (MemoryProposal / MemorySupersession / MemoryUpdate / MemoryForget / MemoryPin / MemoryUnpin / MemoryArchive) or a StatusTransition; the caller (vault #206, audit #214, MemoriaViva UI #211, retrieval #210) materialises the persistence side. Pinned memories cannot be silently selected for forget. No IO, no clock, no randomness (caller supplies nowMs). ADR-0019 direction rule 3i (governance may depend only on keiko-contracts and keiko-security). Not published independently.",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-security": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-security": "0.3.17"
26
26
  }
27
27
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_RETRIEVAL_VERSION: "0.3.16";
1
+ export declare const KEIKO_MEMORY_RETRIEVAL_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Single source of truth for the package version. Pinned as a literal so consumers can
2
2
  // import it for telemetry or evidence persistence without parsing package.json at runtime.
3
3
  // Bump in lockstep with package.json on every release.
4
- export const KEIKO_MEMORY_RETRIEVAL_VERSION = "0.3.16";
4
+ export const KEIKO_MEMORY_RETRIEVAL_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-retrieval",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "MemoriaViva — Internal memory-retrieval package (Epic #204 child #210): pure-function scoped retrieval + hybrid ranking + token-budgeted context assembly over Governed Enterprise Memory Vault records. Caller supplies a MemoryQueryPort (no keiko-memory-vault import) so the vault remains injectable and this layer stays pure (no IO, no clock, no randomness; caller supplies nowMs). Ranking combines deterministic lexical relevance, recency decay, provenance confidence, pinned boost, correction boost, and graph proximity into a weighted sum. The context block carries inclusion/omission reasons per memory so downstream callers (Conversation Center #212, workflow agents #213) and audit (#214) can render fully explainable surfaces. Suppression check is duplicated inline (synced with @oscharko-dev/keiko-memory-governance/suppression.ts) to keep the dep graph on contracts+security only. ADR-0019 direction rule 3j enforces this scope. Not published independently.",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-security": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-security": "0.3.17"
26
26
  }
27
27
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_VAULT_VERSION: "0.3.16";
1
+ export declare const KEIKO_MEMORY_VAULT_VERSION: "0.3.17";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_VAULT_VERSION = "0.3.16";
1
+ export const KEIKO_MEMORY_VAULT_VERSION = "0.3.17";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-vault",
3
- "version": "0.3.16",
3
+ "version": "0.3.17",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "MemoriaViva — Internal memory-vault package: governed enterprise memory storage (node:sqlite). Scope-isolated CRUD, edges, embeddings, tombstones, validator-gated boundary, redaction-aware writes (ADR-0019 + Epic #204). Not published independently.",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.16",
25
- "@oscharko-dev/keiko-security": "0.3.16"
24
+ "@oscharko-dev/keiko-contracts": "0.3.17",
25
+ "@oscharko-dev/keiko-security": "0.3.17"
26
26
  }
27
27
  }
@@ -1,14 +1,18 @@
1
+ import { type ModelGatewayLogContext, type ModelGatewayLogSink } from "./observability.js";
1
2
  import type { CostClass, GatewayRequest, GatewayStreamChunk, ModelProviderConfig, NormalizedResponse, ProviderAdapter } from "./types.js";
2
3
  export interface AdapterDeps {
3
4
  readonly fetchImpl?: typeof fetch | undefined;
4
5
  readonly requestId: string;
5
6
  readonly costClass: CostClass;
6
7
  readonly now?: (() => number) | undefined;
8
+ readonly log?: ModelGatewayLogSink | undefined;
9
+ readonly logContext?: ModelGatewayLogContext | undefined;
7
10
  }
8
11
  export declare const STREAM_IDLE_TIMEOUT_MS = 60000;
9
12
  export declare class OpenAiAdapter implements ProviderAdapter {
10
13
  private readonly deps;
11
14
  private readonly now;
15
+ private readonly log;
12
16
  constructor(deps: AdapterDeps);
13
17
  call: (request: GatewayRequest, config: ModelProviderConfig) => Promise<NormalizedResponse>;
14
18
  callStream: (this: OpenAiAdapter, request: GatewayRequest, config: ModelProviderConfig) => AsyncGenerator<GatewayStreamChunk>;
@@ -1 +1 @@
1
- {"version":3,"file":"openai-adapter.d.ts","sourceRoot":"","sources":["../src/openai-adapter.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAEV,SAAS,EAET,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAElB,eAAe,EAEhB,MAAM,YAAY,CAAC;AAmBpB,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,KAAK,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAC;CAC3C;AAiJD,eAAO,MAAM,sBAAsB,QAAS,CAAC;AA+Q7C,qBAAa,aAAc,YAAW,e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