@oscharko-dev/keiko 0.3.9 → 0.3.11

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 (161) hide show
  1. package/dist/ui/csp-hashes.json +7 -7
  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/package.json +13 -13
  52. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  53. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
  54. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts.map +1 -1
  55. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +2 -2
  56. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  57. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  58. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  59. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts.map +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.d.ts.map +1 -1
  65. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  66. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  67. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  68. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts.map +1 -1
  69. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  70. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  71. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  72. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts.map +1 -1
  73. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  74. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  75. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  76. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts.map +1 -1
  77. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  78. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  79. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  80. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts.map +1 -1
  81. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  82. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  83. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  84. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts.map +1 -1
  85. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  86. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  87. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  88. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts.map +1 -1
  89. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  90. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  91. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts +1 -0
  92. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.d.ts.map +1 -1
  93. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/openai-embedding-adapter.js +115 -7
  94. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  95. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts.map +1 -1
  96. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  97. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  98. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  99. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  100. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  101. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  102. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts.map +1 -1
  103. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  104. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  105. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.d.ts.map +1 -1
  106. package/node_modules/@oscharko-dev/keiko-server/dist/chat-handlers.js +10 -0
  107. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.d.ts.map +1 -1
  108. package/node_modules/@oscharko-dev/keiko-server/dist/chat-stream-handlers.js +4 -0
  109. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts +1 -0
  110. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.d.ts.map +1 -1
  111. package/node_modules/@oscharko-dev/keiko-server/dist/gateway-readiness.js +56 -1
  112. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.d.ts.map +1 -1
  113. package/node_modules/@oscharko-dev/keiko-server/dist/local-knowledge-handlers.js +3 -4
  114. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  115. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  116. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts.map +1 -1
  117. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  118. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  119. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  120. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  121. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  122. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts.map +1 -1
  123. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  124. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  125. package/package.json +25 -25
  126. package/release-impact.catalog.json +103 -0
  127. package/vendor/{oscharko-dev-keiko-cli-0.3.9.tgz → oscharko-dev-keiko-cli-0.3.11.tgz} +0 -0
  128. package/vendor/{oscharko-dev-keiko-connectors-0.3.9.tgz → oscharko-dev-keiko-connectors-0.3.11.tgz} +0 -0
  129. package/vendor/oscharko-dev-keiko-contracts-0.3.11.tgz +0 -0
  130. package/vendor/{oscharko-dev-keiko-evaluations-0.3.9.tgz → oscharko-dev-keiko-evaluations-0.3.11.tgz} +0 -0
  131. package/vendor/{oscharko-dev-keiko-evidence-0.3.9.tgz → oscharko-dev-keiko-evidence-0.3.11.tgz} +0 -0
  132. package/vendor/oscharko-dev-keiko-git-0.3.11.tgz +0 -0
  133. package/vendor/oscharko-dev-keiko-harness-0.3.11.tgz +0 -0
  134. package/vendor/{oscharko-dev-keiko-local-knowledge-0.3.9.tgz → oscharko-dev-keiko-local-knowledge-0.3.11.tgz} +0 -0
  135. package/vendor/{oscharko-dev-keiko-memory-capture-0.3.9.tgz → oscharko-dev-keiko-memory-capture-0.3.11.tgz} +0 -0
  136. package/vendor/oscharko-dev-keiko-memory-consolidation-0.3.11.tgz +0 -0
  137. package/vendor/oscharko-dev-keiko-memory-governance-0.3.11.tgz +0 -0
  138. package/vendor/{oscharko-dev-keiko-memory-retrieval-0.3.9.tgz → oscharko-dev-keiko-memory-retrieval-0.3.11.tgz} +0 -0
  139. package/vendor/{oscharko-dev-keiko-memory-vault-0.3.9.tgz → oscharko-dev-keiko-memory-vault-0.3.11.tgz} +0 -0
  140. package/vendor/oscharko-dev-keiko-model-gateway-0.3.11.tgz +0 -0
  141. package/vendor/{oscharko-dev-keiko-quality-intelligence-0.3.9.tgz → oscharko-dev-keiko-quality-intelligence-0.3.11.tgz} +0 -0
  142. package/vendor/{oscharko-dev-keiko-sandbox-0.3.9.tgz → oscharko-dev-keiko-sandbox-0.3.11.tgz} +0 -0
  143. package/vendor/oscharko-dev-keiko-sdk-0.3.11.tgz +0 -0
  144. package/vendor/{oscharko-dev-keiko-security-0.3.9.tgz → oscharko-dev-keiko-security-0.3.11.tgz} +0 -0
  145. package/vendor/oscharko-dev-keiko-server-0.3.11.tgz +0 -0
  146. package/vendor/{oscharko-dev-keiko-tools-0.3.9.tgz → oscharko-dev-keiko-tools-0.3.11.tgz} +0 -0
  147. package/vendor/oscharko-dev-keiko-verification-0.3.11.tgz +0 -0
  148. package/vendor/{oscharko-dev-keiko-workflows-0.3.9.tgz → oscharko-dev-keiko-workflows-0.3.11.tgz} +0 -0
  149. package/vendor/{oscharko-dev-keiko-workspace-0.3.9.tgz → oscharko-dev-keiko-workspace-0.3.11.tgz} +0 -0
  150. package/vendor/oscharko-dev-keiko-contracts-0.3.9.tgz +0 -0
  151. package/vendor/oscharko-dev-keiko-git-0.3.9.tgz +0 -0
  152. package/vendor/oscharko-dev-keiko-harness-0.3.9.tgz +0 -0
  153. package/vendor/oscharko-dev-keiko-memory-consolidation-0.3.9.tgz +0 -0
  154. package/vendor/oscharko-dev-keiko-memory-governance-0.3.9.tgz +0 -0
  155. package/vendor/oscharko-dev-keiko-model-gateway-0.3.9.tgz +0 -0
  156. package/vendor/oscharko-dev-keiko-sdk-0.3.9.tgz +0 -0
  157. package/vendor/oscharko-dev-keiko-server-0.3.9.tgz +0 -0
  158. package/vendor/oscharko-dev-keiko-verification-0.3.9.tgz +0 -0
  159. /package/dist/ui/static/_next/static/{OQjH4YxsBFEgdy9rVbrsH → TE3T4DCedlDBoFwpbxasE}/_buildManifest.js +0 -0
  160. /package/dist/ui/static/_next/static/{OQjH4YxsBFEgdy9rVbrsH → TE3T4DCedlDBoFwpbxasE}/_clientMiddlewareManifest.js +0 -0
  161. /package/dist/ui/static/_next/static/{OQjH4YxsBFEgdy9rVbrsH → TE3T4DCedlDBoFwpbxasE}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-git",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9";
1
+ export declare const KEIKO_HARNESS_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,EAAG,QAAiB,CAAC"}
@@ -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.9";
5
+ export const KEIKO_HARNESS_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-harness",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9",
25
- "@oscharko-dev/keiko-security": "0.3.9",
26
- "@oscharko-dev/keiko-model-gateway": "0.3.9",
27
- "@oscharko-dev/keiko-workspace": "0.3.9",
28
- "@oscharko-dev/keiko-tools": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-security": "0.3.11",
26
+ "@oscharko-dev/keiko-model-gateway": "0.3.11",
27
+ "@oscharko-dev/keiko-workspace": "0.3.11",
28
+ "@oscharko-dev/keiko-tools": "0.3.11"
29
29
  }
30
30
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_LOCAL_KNOWLEDGE_VERSION: "0.3.9";
1
+ export declare const KEIKO_LOCAL_KNOWLEDGE_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,6BAA6B,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,6BAA6B,EAAG,QAAiB,CAAC"}
@@ -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.9";
4
+ export const KEIKO_LOCAL_KNOWLEDGE_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-local-knowledge",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9",
36
- "@oscharko-dev/keiko-model-gateway": "0.3.9",
37
- "@oscharko-dev/keiko-security": "0.3.9",
38
- "@oscharko-dev/keiko-workspace": "0.3.9"
35
+ "@oscharko-dev/keiko-contracts": "0.3.11",
36
+ "@oscharko-dev/keiko-model-gateway": "0.3.11",
37
+ "@oscharko-dev/keiko-security": "0.3.11",
38
+ "@oscharko-dev/keiko-workspace": "0.3.11"
39
39
  }
40
40
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_CAPTURE_VERSION: "0.3.9";
1
+ export declare const KEIKO_MEMORY_CAPTURE_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,EAAG,QAAiB,CAAC"}
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_CAPTURE_VERSION = "0.3.9";
1
+ export const KEIKO_MEMORY_CAPTURE_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-capture",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9",
25
- "@oscharko-dev/keiko-security": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-security": "0.3.11"
26
26
  }
27
27
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_CONSOLIDATION_VERSION: "0.3.9";
1
+ export declare const KEIKO_MEMORY_CONSOLIDATION_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,EAAG,QAAiB,CAAC"}
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_CONSOLIDATION_VERSION = "0.3.9";
1
+ export const KEIKO_MEMORY_CONSOLIDATION_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-consolidation",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9",
25
- "@oscharko-dev/keiko-security": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-security": "0.3.11"
26
26
  }
27
27
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_GOVERNANCE_VERSION: "0.3.9";
1
+ export declare const KEIKO_MEMORY_GOVERNANCE_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,EAAG,QAAiB,CAAC"}
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_GOVERNANCE_VERSION = "0.3.9";
1
+ export const KEIKO_MEMORY_GOVERNANCE_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-governance",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9",
25
- "@oscharko-dev/keiko-security": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-security": "0.3.11"
26
26
  }
27
27
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_RETRIEVAL_VERSION: "0.3.9";
1
+ export declare const KEIKO_MEMORY_RETRIEVAL_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,8BAA8B,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,8BAA8B,EAAG,QAAiB,CAAC"}
@@ -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.9";
4
+ export const KEIKO_MEMORY_RETRIEVAL_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-retrieval",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9",
25
- "@oscharko-dev/keiko-security": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-security": "0.3.11"
26
26
  }
27
27
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_VAULT_VERSION: "0.3.9";
1
+ export declare const KEIKO_MEMORY_VAULT_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,QAAiB,CAAC"}
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_VAULT_VERSION = "0.3.9";
1
+ export const KEIKO_MEMORY_VAULT_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-vault",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
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.9",
25
- "@oscharko-dev/keiko-security": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-security": "0.3.11"
26
26
  }
27
27
  }
@@ -50,5 +50,6 @@ export type OpenAIEmbeddingOutcome = {
50
50
  };
51
51
  export type OpenAIEmbeddingErrorKind = "wrong-header" | "rate-limited" | "unsupported-model" | "timeout" | "cancelled" | "transport" | "http-error" | "proxy-unreachable" | "proxy-auth-required" | "proxy-egress-failed" | "proxy-blocked-by-policy" | "tls-ca-failure" | "invalid-response";
52
52
  export declare function requestOpenAIEmbedding(request: OpenAIEmbeddingRequest): Promise<OpenAIEmbeddingOutcome>;
53
+ export declare function resetStrictGatewayMemoForTests(): void;
53
54
  export declare function requestOpenAIEmbeddingBatch(request: OpenAIEmbeddingBatchRequest): Promise<OpenAIEmbeddingBatchOutcome>;
54
55
  //# sourceMappingURL=openai-embedding-adapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"openai-embedding-adapter.d.ts","sourceRo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AIX,YAAY,GACZ,mBAAmB,GACnB,qBAAqB,GACrB,qBAAqB,GACrB,yBAAyB,GACzB,gBAAgB,GAChB,kBAAkB,CAAC;AA0NvB,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,sBAAsB,CAAC,CAkBjC;AAiBD,wBAAgB,8BAA8B,IAAI,IAAI,CAGrD;AAkJD,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,2BAA2B,CAAC,CAiCtC"}
@@ -107,7 +107,7 @@ function classifyDispatchError(error, timeoutSignal, callerSignal) {
107
107
  // would misattribute the failure to the caller — #192 Copilot follow-up finding.
108
108
  return "transport";
109
109
  }
110
- function buildRequest(request) {
110
+ function buildRequest(request, minimalShape = false) {
111
111
  const name = headerName(request.apiKeyHeaderName);
112
112
  // Reuse the shared Bearer-prefixing helper from config.ts so this transport handles the
113
113
  // same `bearer ` / `x-litellm-key` / `api-key` cases the chat adapter handles, including
@@ -116,10 +116,15 @@ function buildRequest(request) {
116
116
  "content-type": "application/json",
117
117
  [name]: apiKeyHeaderValue(name, request.apiKey),
118
118
  };
119
+ // minimalShape: strict OpenAI-compatible gateways (certain LiteLLM routes / TEI backends)
120
+ // answer 400 to the unconditional `encoding_format`, which a plain curl never sends; the
121
+ // float encoding is the OpenAI default anyway. `dimensions` is deliberately KEPT in the
122
+ // minimal shape: it is only ever present when a capsule pinned it, and dropping it would
123
+ // change the vector-space identity of the returned embeddings.
119
124
  const body = JSON.stringify({
120
125
  model: request.modelId,
121
126
  input: request.input,
122
- encoding_format: "float",
127
+ ...(minimalShape ? {} : { encoding_format: "float" }),
123
128
  ...(request.dimensions !== undefined ? { dimensions: request.dimensions } : {}),
124
129
  });
125
130
  const timeoutSignal = AbortSignal.timeout(request.timeoutMs ?? 30_000);
@@ -176,20 +181,57 @@ async function decodeSuccess(response, request) {
176
181
  return { ok: true, value };
177
182
  }
178
183
  export async function requestOpenAIEmbedding(request) {
179
- const built = buildRequest(request);
184
+ const built = buildRequest(request, strictShapeEndpoints.has(request.endpoint));
180
185
  const dispatched = await dispatch(built, request.fetchImpl, request.egress);
181
186
  if (typeof dispatched === "string") {
182
187
  return { ok: false, kind: dispatched };
183
188
  }
184
189
  if (!dispatched.ok) {
190
+ await discardBody(dispatched);
191
+ if (isStrictGatewayRejection(dispatched.status) &&
192
+ !strictShapeEndpoints.has(request.endpoint)) {
193
+ return await requestMinimalShapeEmbedding(request);
194
+ }
195
+ const kind = classifyStatus(dispatched.status) ?? "transport";
196
+ return { ok: false, kind, status: dispatched.status };
197
+ }
198
+ return decodeSuccess(dispatched, request);
199
+ }
200
+ // A validation-shaped rejection (400/422) of a request that carried our optional extras: the
201
+ // endpoint ANSWERED, so this is not transport flakiness — retry exactly once in the minimal
202
+ // wire shape a plain curl would send. 401/403/404/429/5xx keep their existing semantics.
203
+ function isStrictGatewayRejection(status) {
204
+ return status === 400 || status === 422;
205
+ }
206
+ // Once a minimal retry SUCCEEDS after a strict rejection, the endpoint's strictness is
207
+ // remembered so subsequent requests skip the doomed extras round trip — Knowledge Pod
208
+ // indexing drives many batches, and re-discovering strictness per call would roughly
209
+ // triple the request count against a strict gateway. The ladder itself stays in place as
210
+ // the safety net; the memo only changes which rung is tried FIRST.
211
+ const strictShapeEndpoints = new Set();
212
+ const arrayRejectingEndpoints = new Set();
213
+ export function resetStrictGatewayMemoForTests() {
214
+ strictShapeEndpoints.clear();
215
+ arrayRejectingEndpoints.clear();
216
+ }
217
+ async function requestMinimalShapeEmbedding(request) {
218
+ const built = buildRequest(request, true);
219
+ const dispatched = await dispatch(built, request.fetchImpl, request.egress);
220
+ if (typeof dispatched === "string") {
221
+ return { ok: false, kind: dispatched };
222
+ }
223
+ if (!dispatched.ok) {
224
+ // kind and status come from the SAME response: a synthetic pair (retry kind + original
225
+ // status) would surface a contradiction in operator-visible readiness diagnostics.
185
226
  const kind = classifyStatus(dispatched.status) ?? "transport";
186
227
  await discardBody(dispatched);
187
228
  return { ok: false, kind, status: dispatched.status };
188
229
  }
230
+ strictShapeEndpoints.add(request.endpoint);
189
231
  return decodeSuccess(dispatched, request);
190
232
  }
191
233
  // ─── Array-batch transport (#189 GRD-004) ────────────────────────────────────
192
- function buildBatchRequest(request) {
234
+ function buildBatchRequest(request, minimalShape = false) {
193
235
  const name = headerName(request.apiKeyHeaderName);
194
236
  const headers = {
195
237
  "content-type": "application/json",
@@ -200,7 +242,7 @@ function buildBatchRequest(request) {
200
242
  const body = JSON.stringify({
201
243
  model: request.modelId,
202
244
  input: request.inputs,
203
- encoding_format: "float",
245
+ ...(minimalShape ? {} : { encoding_format: "float" }),
204
246
  ...(request.dimensions !== undefined ? { dimensions: request.dimensions } : {}),
205
247
  });
206
248
  const timeoutSignal = AbortSignal.timeout(request.timeoutMs ?? 30_000);
@@ -287,15 +329,81 @@ export async function requestOpenAIEmbeddingBatch(request) {
287
329
  if (request.inputs.length === 0) {
288
330
  return { ok: true, value: [] };
289
331
  }
290
- const built = buildBatchRequest(request);
332
+ // One absolute deadline bounds the COMPLETE compatibility ladder: with 96 inputs and the
333
+ // 30s default, an unbounded scalar fallback could otherwise block for over an hour.
334
+ const deadlineAt = Date.now() + (request.timeoutMs ?? 30_000);
335
+ if (arrayRejectingEndpoints.has(request.endpoint)) {
336
+ return await requestScalarFallbackBatch(request, deadlineAt);
337
+ }
338
+ const built = buildBatchRequest(request, strictShapeEndpoints.has(request.endpoint));
291
339
  const dispatched = await dispatch(built, request.fetchImpl, request.egress);
292
340
  if (typeof dispatched === "string") {
293
341
  return { ok: false, kind: dispatched };
294
342
  }
295
343
  if (!dispatched.ok) {
296
- const kind = classifyStatus(dispatched.status) ?? "transport";
297
344
  await discardBody(dispatched);
345
+ if (isStrictGatewayRejection(dispatched.status) &&
346
+ !strictShapeEndpoints.has(request.endpoint)) {
347
+ return await requestMinimalShapeEmbeddingBatch(request, deadlineAt);
348
+ }
349
+ if (isStrictGatewayRejection(dispatched.status)) {
350
+ // Known strict-shape endpoint that STILL rejects the minimal array: the array shape
351
+ // itself is unsupported — degrade to scalars and remember.
352
+ arrayRejectingEndpoints.add(request.endpoint);
353
+ return await requestScalarFallbackBatch(request, deadlineAt);
354
+ }
355
+ const kind = classifyStatus(dispatched.status) ?? "transport";
298
356
  return { ok: false, kind, status: dispatched.status };
299
357
  }
300
358
  return decodeBatchSuccess(dispatched, request);
301
359
  }
360
+ // Batch compat ladder for strict gateways: first the same array request without the optional
361
+ // extras; if the endpoint rejects the ARRAY shape itself, degrade to per-item scalar requests
362
+ // (each of which carries its own minimal-shape retry). The first failing item fails the batch.
363
+ async function requestMinimalShapeEmbeddingBatch(request, deadlineAt) {
364
+ const built = buildBatchRequest(request, true);
365
+ const dispatched = await dispatch(built, request.fetchImpl, request.egress);
366
+ if (typeof dispatched === "string") {
367
+ return { ok: false, kind: dispatched };
368
+ }
369
+ if (dispatched.ok) {
370
+ strictShapeEndpoints.add(request.endpoint);
371
+ return decodeBatchSuccess(dispatched, request);
372
+ }
373
+ await discardBody(dispatched);
374
+ if (!isStrictGatewayRejection(dispatched.status)) {
375
+ // kind and status come from the SAME response (see the scalar helper).
376
+ const kind = classifyStatus(dispatched.status) ?? "transport";
377
+ return { ok: false, kind, status: dispatched.status };
378
+ }
379
+ arrayRejectingEndpoints.add(request.endpoint);
380
+ return await requestScalarFallbackBatch(request, deadlineAt);
381
+ }
382
+ async function requestScalarFallbackBatch(request, deadlineAt) {
383
+ const value = [];
384
+ for (const input of request.inputs) {
385
+ const remainingMs = deadlineAt - Date.now();
386
+ if (remainingMs <= 0) {
387
+ return { ok: false, kind: "timeout" };
388
+ }
389
+ const outcome = await requestOpenAIEmbedding({
390
+ endpoint: request.endpoint,
391
+ apiKey: request.apiKey,
392
+ ...(request.apiKeyHeaderName !== undefined
393
+ ? { apiKeyHeaderName: request.apiKeyHeaderName }
394
+ : {}),
395
+ modelId: request.modelId,
396
+ input,
397
+ ...(request.dimensions !== undefined ? { dimensions: request.dimensions } : {}),
398
+ ...(request.signal !== undefined ? { signal: request.signal } : {}),
399
+ timeoutMs: Math.min(remainingMs, request.timeoutMs ?? 30_000),
400
+ ...(request.fetchImpl !== undefined ? { fetchImpl: request.fetchImpl } : {}),
401
+ ...(request.egress !== undefined ? { egress: request.egress } : {}),
402
+ });
403
+ if (!outcome.ok) {
404
+ return outcome;
405
+ }
406
+ value.push(outcome.value);
407
+ }
408
+ return { ok: true, value };
409
+ }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MODEL_GATEWAY_VERSION: "0.3.9";
1
+ export declare const KEIKO_MODEL_GATEWAY_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,EAAG,QAAiB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  // Package version constant. Pinned at the workspace package's package.json version. Promoted to
2
2
  // a `const` string-literal type so downstream tests/assertions stay byte-exact.
3
- export const KEIKO_MODEL_GATEWAY_VERSION = "0.3.9";
3
+ export const KEIKO_MODEL_GATEWAY_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-model-gateway",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: Keiko model gateway — provider abstraction, OpenAI-compatible adapter, capability registry, routing, resilience, TLS handling. Not published independently.",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "private": true,
31
31
  "peerDependencies": {
32
- "@oscharko-dev/keiko-contracts": "0.3.9",
33
- "@oscharko-dev/keiko-security": "0.3.9"
32
+ "@oscharko-dev/keiko-contracts": "0.3.11",
33
+ "@oscharko-dev/keiko-security": "0.3.11"
34
34
  }
35
35
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-quality-intelligence",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: pure-domain Keiko Quality Intelligence test-design logic. Not published independently.",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.9",
25
- "@oscharko-dev/keiko-security": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-security": "0.3.11"
26
26
  }
27
27
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-sandbox",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal sandbox package: the reusable OS/container egress-isolation strategy (ADR-0043). Pure backend-wrapper builders + selection + attestation, with a thin availability probe. Spawning stays in keiko-tools; this package only decides how a `network: \"none\"` command is wrapped so an outbound connection from the child fails. Not published independently.",
@@ -21,6 +21,6 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11"
25
25
  }
26
26
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-sdk",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal SDK package: public agent, workflow, verification, workspace, evidence, and evaluation surface that the root product facade re-exports (Issue #426, ADR-0019). Not published independently.",
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "private": true,
23
23
  "peerDependencies": {
24
- "@oscharko-dev/keiko-contracts": "0.3.9",
25
- "@oscharko-dev/keiko-evaluations": "0.3.9",
26
- "@oscharko-dev/keiko-evidence": "0.3.9",
27
- "@oscharko-dev/keiko-harness": "0.3.9",
28
- "@oscharko-dev/keiko-model-gateway": "0.3.9",
29
- "@oscharko-dev/keiko-verification": "0.3.9",
30
- "@oscharko-dev/keiko-workflows": "0.3.9",
31
- "@oscharko-dev/keiko-workspace": "0.3.9"
24
+ "@oscharko-dev/keiko-contracts": "0.3.11",
25
+ "@oscharko-dev/keiko-evaluations": "0.3.11",
26
+ "@oscharko-dev/keiko-evidence": "0.3.11",
27
+ "@oscharko-dev/keiko-harness": "0.3.11",
28
+ "@oscharko-dev/keiko-model-gateway": "0.3.11",
29
+ "@oscharko-dev/keiko-verification": "0.3.11",
30
+ "@oscharko-dev/keiko-workflows": "0.3.11",
31
+ "@oscharko-dev/keiko-workspace": "0.3.11"
32
32
  }
33
33
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_SECURITY_VERSION: "0.3.9";
1
+ export declare const KEIKO_SECURITY_VERSION: "0.3.11";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,sBAAsB,EAAG,QAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  // Version anchor for @oscharko-dev/keiko-security. Pinned to the package's package.json version.
2
2
  // Lets consumers assert which security primitive contract they linked against (ADR-0019 leaf-package
3
3
  // pattern, mirroring @oscharko-dev/keiko-contracts).
4
- export const KEIKO_SECURITY_VERSION = "0.3.9";
4
+ export const KEIKO_SECURITY_VERSION = "0.3.11";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-security",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: shared Keiko security primitives (redaction, safe error shaping, secret collection, content hashing, trust-boundary helpers). Not published independently.",
@@ -85,6 +85,6 @@
85
85
  },
86
86
  "private": true,
87
87
  "peerDependencies": {
88
- "@oscharko-dev/keiko-contracts": "0.3.9"
88
+ "@oscharko-dev/keiko-contracts": "0.3.11"
89
89
  }
90
90
  }