@oscharko-dev/keiko 0.3.1 → 0.3.6

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 (196) hide show
  1. package/README.md +59 -615
  2. package/dist/ui/csp-hashes.json +15 -15
  3. package/dist/ui/static/404.html +1 -1
  4. package/dist/ui/static/__next.__PAGE__.txt +2 -2
  5. package/dist/ui/static/__next._full.txt +2 -2
  6. package/dist/ui/static/__next._head.txt +1 -1
  7. package/dist/ui/static/__next._index.txt +1 -1
  8. package/dist/ui/static/__next._tree.txt +1 -1
  9. package/dist/ui/static/_next/static/chunks/{3ql3z-e3ohbu2.js → 0v0vrvwtrfjy7.js} +3 -3
  10. package/dist/ui/static/_next/static/chunks/{2_2qkgnh1dz0w.js → 0yetjgsqfhpjk.js} +1 -1
  11. package/dist/ui/static/_next/static/chunks/{1-voj04h-yqwz.js → 12mrameobjgif.js} +1 -1
  12. package/dist/ui/static/_next/static/chunks/{0ksa37i-utc0h.js → 1_aiwavt3hd8k.js} +1 -1
  13. package/dist/ui/static/_next/static/chunks/{0x1960pxw5y7a.js → 1ecmfvnoo52jh.js} +1 -1
  14. package/dist/ui/static/_next/static/chunks/{3zxbj77kx-r5_.js → 1m9a3jzo9q1u5.js} +1 -1
  15. package/dist/ui/static/_next/static/chunks/{2v37q27ax5l4p.js → 2ie-82h35jico.js} +1 -1
  16. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  17. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  18. package/dist/ui/static/_not-found/__next._index.txt +1 -1
  19. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  20. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  21. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  22. package/dist/ui/static/_not-found.html +1 -1
  23. package/dist/ui/static/_not-found.txt +1 -1
  24. package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
  25. package/dist/ui/static/atlassian-connectors/__next._head.txt +1 -1
  26. package/dist/ui/static/atlassian-connectors/__next._index.txt +1 -1
  27. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  28. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
  29. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.txt +1 -1
  30. package/dist/ui/static/atlassian-connectors.html +1 -1
  31. package/dist/ui/static/atlassian-connectors.txt +1 -1
  32. package/dist/ui/static/index.html +1 -1
  33. package/dist/ui/static/index.txt +2 -2
  34. package/dist/ui/static/launch/__next._full.txt +2 -2
  35. package/dist/ui/static/launch/__next._head.txt +1 -1
  36. package/dist/ui/static/launch/__next._index.txt +1 -1
  37. package/dist/ui/static/launch/__next._tree.txt +1 -1
  38. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +2 -2
  39. package/dist/ui/static/launch/__next.launch.txt +1 -1
  40. package/dist/ui/static/launch.html +1 -1
  41. package/dist/ui/static/launch.txt +2 -2
  42. package/dist/ui/static/local-knowledge/__next._full.txt +2 -2
  43. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  44. package/dist/ui/static/local-knowledge/__next._index.txt +1 -1
  45. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  46. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +2 -2
  47. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  48. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
  49. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  50. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +1 -1
  51. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  52. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
  53. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +1 -1
  54. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  55. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  56. package/dist/ui/static/local-knowledge/capsule.txt +1 -1
  57. package/dist/ui/static/local-knowledge.html +1 -1
  58. package/dist/ui/static/local-knowledge.txt +2 -2
  59. package/dist/ui/static/memoriaviva/__next._full.txt +1 -1
  60. package/dist/ui/static/memoriaviva/__next._head.txt +1 -1
  61. package/dist/ui/static/memoriaviva/__next._index.txt +1 -1
  62. package/dist/ui/static/memoriaviva/__next._tree.txt +1 -1
  63. package/dist/ui/static/memoriaviva/__next.memoriaviva.__PAGE__.txt +1 -1
  64. package/dist/ui/static/memoriaviva/__next.memoriaviva.txt +1 -1
  65. package/dist/ui/static/memoriaviva/consolidation/__next._full.txt +1 -1
  66. package/dist/ui/static/memoriaviva/consolidation/__next._head.txt +1 -1
  67. package/dist/ui/static/memoriaviva/consolidation/__next._index.txt +1 -1
  68. package/dist/ui/static/memoriaviva/consolidation/__next._tree.txt +1 -1
  69. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.__PAGE__.txt +1 -1
  70. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.txt +1 -1
  71. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.txt +1 -1
  72. package/dist/ui/static/memoriaviva/consolidation.html +1 -1
  73. package/dist/ui/static/memoriaviva/consolidation.txt +1 -1
  74. package/dist/ui/static/memoriaviva/detail/__next._full.txt +1 -1
  75. package/dist/ui/static/memoriaviva/detail/__next._head.txt +1 -1
  76. package/dist/ui/static/memoriaviva/detail/__next._index.txt +1 -1
  77. package/dist/ui/static/memoriaviva/detail/__next._tree.txt +1 -1
  78. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.__PAGE__.txt +1 -1
  79. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.txt +1 -1
  80. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.txt +1 -1
  81. package/dist/ui/static/memoriaviva/detail.html +1 -1
  82. package/dist/ui/static/memoriaviva/detail.txt +1 -1
  83. package/dist/ui/static/memoriaviva/health-scan/__next._full.txt +1 -1
  84. package/dist/ui/static/memoriaviva/health-scan/__next._head.txt +1 -1
  85. package/dist/ui/static/memoriaviva/health-scan/__next._index.txt +1 -1
  86. package/dist/ui/static/memoriaviva/health-scan/__next._tree.txt +1 -1
  87. package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.health-scan.__PAGE__.txt +1 -1
  88. package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.health-scan.txt +1 -1
  89. package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.txt +1 -1
  90. package/dist/ui/static/memoriaviva/health-scan.html +1 -1
  91. package/dist/ui/static/memoriaviva/health-scan.txt +1 -1
  92. package/dist/ui/static/memoriaviva/journal/__next._full.txt +1 -1
  93. package/dist/ui/static/memoriaviva/journal/__next._head.txt +1 -1
  94. package/dist/ui/static/memoriaviva/journal/__next._index.txt +1 -1
  95. package/dist/ui/static/memoriaviva/journal/__next._tree.txt +1 -1
  96. package/dist/ui/static/memoriaviva/journal/__next.memoriaviva.journal.__PAGE__.txt +1 -1
  97. package/dist/ui/static/memoriaviva/journal/__next.memoriaviva.journal.txt +1 -1
  98. package/dist/ui/static/memoriaviva/journal/__next.memoriaviva.txt +1 -1
  99. package/dist/ui/static/memoriaviva/journal.html +1 -1
  100. package/dist/ui/static/memoriaviva/journal.txt +1 -1
  101. package/dist/ui/static/memoriaviva/review-queue/__next._full.txt +1 -1
  102. package/dist/ui/static/memoriaviva/review-queue/__next._head.txt +1 -1
  103. package/dist/ui/static/memoriaviva/review-queue/__next._index.txt +1 -1
  104. package/dist/ui/static/memoriaviva/review-queue/__next._tree.txt +1 -1
  105. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.__PAGE__.txt +1 -1
  106. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.txt +1 -1
  107. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.txt +1 -1
  108. package/dist/ui/static/memoriaviva/review-queue.html +1 -1
  109. package/dist/ui/static/memoriaviva/review-queue.txt +1 -1
  110. package/dist/ui/static/memoriaviva.html +1 -1
  111. package/dist/ui/static/memoriaviva.txt +1 -1
  112. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-platforms.d.ts.map +1 -1
  113. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-platforms.js +10 -11
  114. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.d.ts +1 -0
  115. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.d.ts.map +1 -1
  116. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.js +31 -22
  117. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.d.ts +3 -0
  118. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.d.ts.map +1 -1
  119. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.js +88 -14
  120. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts +4 -3
  121. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts.map +1 -1
  122. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.js +168 -38
  123. package/node_modules/@oscharko-dev/keiko-cli/dist/portable.d.ts.map +1 -1
  124. package/node_modules/@oscharko-dev/keiko-cli/dist/portable.js +1 -0
  125. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
  126. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +3 -3
  127. package/node_modules/@oscharko-dev/keiko-cli/package.json +13 -13
  128. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  129. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
  130. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +2 -2
  131. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  132. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  133. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  134. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  135. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  136. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  137. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  138. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  139. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  140. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  141. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  142. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  143. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  144. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  145. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  146. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  147. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  148. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  149. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  150. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  151. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  152. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  153. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  154. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  155. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  156. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  157. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  158. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  159. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  160. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  161. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  162. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  163. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  164. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +2 -0
  165. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
  166. package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -0
  167. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  168. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  169. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.d.ts +42 -0
  170. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.d.ts.map +1 -0
  171. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.js +185 -0
  172. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  173. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionCodingRuntimeResolver.js +4 -1
  174. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts +9 -0
  175. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.d.ts.map +1 -1
  176. package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/runtimeAuthorityService.js +24 -1
  177. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts +1 -0
  178. package/node_modules/@oscharko-dev/keiko-server/dist/deps.d.ts.map +1 -1
  179. package/node_modules/@oscharko-dev/keiko-server/dist/deps.js +3 -3
  180. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts +1 -0
  181. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts.map +1 -1
  182. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.js +80 -10
  183. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  184. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  185. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  186. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  187. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  188. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  189. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  190. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  191. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  192. package/package.json +27 -39
  193. package/release-impact.catalog.json +294 -0
  194. /package/dist/ui/static/_next/static/{MCItfG-Jx7r8l8N0jlybM → AS69MxWoWkePQgeJ0TdtV}/_buildManifest.js +0 -0
  195. /package/dist/ui/static/_next/static/{MCItfG-Jx7r8l8N0jlybM → AS69MxWoWkePQgeJ0TdtV}/_clientMiddlewareManifest.js +0 -0
  196. /package/dist/ui/static/_next/static/{MCItfG-Jx7r8l8N0jlybM → AS69MxWoWkePQgeJ0TdtV}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-consolidation",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,8 +25,8 @@
25
25
  "node": ">=24.18.0 <25"
26
26
  },
27
27
  "dependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.1",
29
- "@oscharko-dev/keiko-security": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6"
30
30
  },
31
31
  "private": true
32
32
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_GOVERNANCE_VERSION: "0.3.1";
1
+ export declare const KEIKO_MEMORY_GOVERNANCE_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_GOVERNANCE_VERSION = "0.3.1";
1
+ export const KEIKO_MEMORY_GOVERNANCE_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-governance",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,8 +25,8 @@
25
25
  "node": ">=24.18.0 <25"
26
26
  },
27
27
  "dependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.1",
29
- "@oscharko-dev/keiko-security": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6"
30
30
  },
31
31
  "private": true
32
32
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_RETRIEVAL_VERSION: "0.3.1";
1
+ export declare const KEIKO_MEMORY_RETRIEVAL_VERSION: "0.3.6";
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.1";
4
+ export const KEIKO_MEMORY_RETRIEVAL_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-retrieval",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,8 +25,8 @@
25
25
  "node": ">=24.18.0 <25"
26
26
  },
27
27
  "dependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.1",
29
- "@oscharko-dev/keiko-security": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6"
30
30
  },
31
31
  "private": true
32
32
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_VAULT_VERSION: "0.3.1";
1
+ export declare const KEIKO_MEMORY_VAULT_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_VAULT_VERSION = "0.3.1";
1
+ export const KEIKO_MEMORY_VAULT_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-vault",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,8 +25,8 @@
25
25
  "node": ">=24.18.0 <25"
26
26
  },
27
27
  "dependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.1",
29
- "@oscharko-dev/keiko-security": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6"
30
30
  },
31
31
  "private": true
32
32
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MODEL_GATEWAY_VERSION: "0.3.1";
1
+ export declare const KEIKO_MODEL_GATEWAY_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -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.1";
3
+ export const KEIKO_MODEL_GATEWAY_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-model-gateway",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal workspace package: Keiko model gateway — provider abstraction, OpenAI-compatible adapter, capability registry, routing, resilience, TLS handling. Not published independently.",
@@ -33,8 +33,8 @@
33
33
  "node": ">=24.18.0 <25"
34
34
  },
35
35
  "dependencies": {
36
- "@oscharko-dev/keiko-contracts": "0.3.1",
37
- "@oscharko-dev/keiko-security": "0.3.1"
36
+ "@oscharko-dev/keiko-contracts": "0.3.6",
37
+ "@oscharko-dev/keiko-security": "0.3.6"
38
38
  },
39
39
  "private": true
40
40
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-quality-intelligence",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,8 +25,8 @@
25
25
  "node": ">=24.18.0 <25"
26
26
  },
27
27
  "dependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.1",
29
- "@oscharko-dev/keiko-security": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6"
30
30
  },
31
31
  "private": true
32
32
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-sandbox",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,7 +25,7 @@
25
25
  "node": ">=24.18.0 <25"
26
26
  },
27
27
  "dependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6"
29
29
  },
30
30
  "private": true
31
31
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,14 +25,14 @@
25
25
  "node": ">=24.18.0 <25"
26
26
  },
27
27
  "dependencies": {
28
- "@oscharko-dev/keiko-contracts": "0.3.1",
29
- "@oscharko-dev/keiko-evaluations": "0.3.1",
30
- "@oscharko-dev/keiko-evidence": "0.3.1",
31
- "@oscharko-dev/keiko-harness": "0.3.1",
32
- "@oscharko-dev/keiko-model-gateway": "0.3.1",
33
- "@oscharko-dev/keiko-verification": "0.3.1",
34
- "@oscharko-dev/keiko-workflows": "0.3.1",
35
- "@oscharko-dev/keiko-workspace": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-evaluations": "0.3.6",
30
+ "@oscharko-dev/keiko-evidence": "0.3.6",
31
+ "@oscharko-dev/keiko-harness": "0.3.6",
32
+ "@oscharko-dev/keiko-model-gateway": "0.3.6",
33
+ "@oscharko-dev/keiko-verification": "0.3.6",
34
+ "@oscharko-dev/keiko-workflows": "0.3.6",
35
+ "@oscharko-dev/keiko-workspace": "0.3.6"
36
36
  },
37
37
  "private": true
38
38
  }
@@ -12,5 +12,7 @@ export type { SqliteErrorLike, SqliteErrorUnwrap } from "./sqlite-corruption.js"
12
12
  export { SqliteQuickCheckError, sqliteErrorLike, sqliteErrorText, isSqliteCorruptionError, errorRecord, } from "./sqlite-corruption.js";
13
13
  export type { PromptInjectionSignalCode, PromptInjectionSeverity, PromptInjectionSignal, } from "./promptInjection.js";
14
14
  export { PROMPT_INJECTION_SIGNAL_CODES, isPromptInjectionSignalCode, detectPromptInjectionSignals, containsRedactableSecret, hasCriticalInjectionSignal, } from "./promptInjection.js";
15
+ export type { WindowsShortcutDefinition, WindowsShortcutSpawnFn } from "./windows-shortcuts.js";
16
+ export { WINDOWS_SHORTCUT_MAX_BYTES, WINDOWS_SHORTCUT_TIMEOUT_MS, equivalentWindowsShortcutPath, windowsSystemRoot, parseWindowsShortcutFallback, readWindowsShortcutDefinition, runWindowsShortcutCommand, windowsShortcutFallbackContent, writeWindowsShortcutDefinition, } from "./windows-shortcuts.js";
15
17
  export * from "./errors/index.js";
16
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,OAAO,EACL,MAAM,EACN,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE7E,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAIxF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAI3F,YAAY,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EACL,yBAAyB,EACzB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAI7B,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,uBAAuB,EACvB,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAGhC,YAAY,EACV,yBAAyB,EACzB,uBAAuB,EACv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M,sBAAsB,CAAC;AAC9B,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,EACzB,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,wBAAwB,CAAC;AAEhC,cAAc,mBAAmB,CAAC"}
@@ -15,4 +15,5 @@ export { DIR_MODE, FILE_MODE, ensureDirHardened, chmodIfPresent } from "./fs-har
15
15
  export { KEYCHAIN_SPAWN_TIMEOUT_MS, readMacosKeychainSecret, writeMacosKeychainSecret, } from "./macos-keychain.js";
16
16
  export { SqliteQuickCheckError, sqliteErrorLike, sqliteErrorText, isSqliteCorruptionError, errorRecord, } from "./sqlite-corruption.js";
17
17
  export { PROMPT_INJECTION_SIGNAL_CODES, isPromptInjectionSignalCode, detectPromptInjectionSignals, containsRedactableSecret, hasCriticalInjectionSignal, } from "./promptInjection.js";
18
+ export { WINDOWS_SHORTCUT_MAX_BYTES, WINDOWS_SHORTCUT_TIMEOUT_MS, equivalentWindowsShortcutPath, windowsSystemRoot, parseWindowsShortcutFallback, readWindowsShortcutDefinition, runWindowsShortcutCommand, windowsShortcutFallbackContent, writeWindowsShortcutDefinition, } from "./windows-shortcuts.js";
18
19
  export * from "./errors/index.js";
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_SECURITY_VERSION: "0.3.1";
1
+ export declare const KEIKO_SECURITY_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -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.1";
4
+ export const KEIKO_SECURITY_VERSION = "0.3.6";
@@ -0,0 +1,42 @@
1
+ export interface WindowsShortcutDefinition {
2
+ readonly targetPath: string;
3
+ readonly workingDirectory: string;
4
+ readonly iconPath: string;
5
+ }
6
+ export declare const WINDOWS_SHORTCUT_MAX_BYTES: number;
7
+ export declare const WINDOWS_SHORTCUT_TIMEOUT_MS = 30000;
8
+ type ShortcutEnvSource = Readonly<Record<string, string | undefined>>;
9
+ export type WindowsShortcutSpawnFn = (command: string, args: readonly string[], options: {
10
+ readonly env: NodeJS.ProcessEnv;
11
+ readonly shell: false;
12
+ readonly stdio: "pipe";
13
+ readonly timeout: number;
14
+ readonly windowsHide: true;
15
+ }) => {
16
+ readonly error?: Error | undefined;
17
+ readonly status: number | null;
18
+ readonly stdout: Buffer | null;
19
+ readonly stderr: Buffer | null;
20
+ };
21
+ /**
22
+ * The trusted Windows system root: an absolute SystemRoot/WINDIR from the environment, or the
23
+ * platform default. The one shared trust decision every governed Windows child-process helper
24
+ * (cscript, powershell) resolves its executable against.
25
+ */
26
+ export declare function windowsSystemRoot(env: ShortcutEnvSource): string;
27
+ /**
28
+ * Run the fixed shortcut JScript through cscript. Fails closed on spawn errors, nonzero exits,
29
+ * and ANY stderr output; returns decoded stdout (three UTF-16LE lines in read mode).
30
+ */
31
+ export declare function runWindowsShortcutCommand(mode: "create" | "read", path: string, definition: WindowsShortcutDefinition, env: ShortcutEnvSource, failurePrefix: string, spawnFn?: WindowsShortcutSpawnFn): string;
32
+ /** The JSON stand-in written on non-Windows hosts instead of a binary `.lnk`. */
33
+ export declare function windowsShortcutFallbackContent(definition: WindowsShortcutDefinition): string;
34
+ export declare function parseWindowsShortcutFallback(path: string): WindowsShortcutDefinition | undefined;
35
+ /** Read a shortcut's fields; undefined on any refusal (fail-closed read). */
36
+ export declare function readWindowsShortcutDefinition(path: string, env: ShortcutEnvSource, failurePrefix: string, spawnFn?: WindowsShortcutSpawnFn): WindowsShortcutDefinition | undefined;
37
+ /** Create/overwrite the shortcut (JSON fallback off Windows). Throws on failure. */
38
+ export declare function writeWindowsShortcutDefinition(path: string, definition: WindowsShortcutDefinition, env: ShortcutEnvSource, failurePrefix: string, spawnFn?: WindowsShortcutSpawnFn): void;
39
+ /** Case- and separator-insensitive Windows path equivalence for shortcut field comparison. */
40
+ export declare function equivalentWindowsShortcutPath(left: string, right: string): boolean;
41
+ export {};
42
+ //# sourceMappingURL=windows-shortcuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windows-shortcuts.d.ts","sourceRoot":"","sources":["../src/windows-shortcuts.ts"],"names":[],"mappings":"AAiBA,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,0BAA0B,QAAa,CAAC;AAIrD,eAAO,MAAM,2BAA2B,QAAS,CAAC;AAwBlD,KAAK,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;AAEtE,MAAM,MAAM,sBAAsB,GAAG,CACnC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,OAAO,EAAE;IACP,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;CAC5B,KACE;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAGhE;AAiDD;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,IAAI,EAAE,QAAQ,GAAG,MAAM,EACvB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,yBAAyB,EACrC,GAAG,EAAE,iBAAiB,EACtB,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,sBAAkC,GAC1C,MAAM,CAyBR;AAED,iFAAiF;AACjF,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,CAE5F;AAgBD,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAUhG;AAQD,6EAA6E;AAC7E,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,iBAAiB,EACtB,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,sBAAkC,GAC1C,yBAAyB,GAAG,SAAS,CAmBvC;AAED,oFAAoF;AACpF,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,yBAAyB,EACrC,GAAG,EAAE,iBAAiB,EACtB,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE,sBAAkC,GAC1C,IAAI,CAMN;AAED,8FAA8F;AAC9F,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAElF"}
@@ -0,0 +1,185 @@
1
+ // Governed Windows Start Menu shortcut integration (issue #3072). The one home of the `.lnk`
2
+ // create/read layer that the portable CLI registration (keiko-cli/portable-maintenance) and the
3
+ // server update activation (keiko-server/update-portable-activation-files) both consume — the
4
+ // same role macos-keychain.ts plays for the macOS credential store: a fail-closed wrapper around
5
+ // a platform tool this repository never reimplements.
6
+ //
7
+ // Mechanics: `cscript.exe` (absolute path under a validated SystemRoot) runs a fixed JScript
8
+ // written to a private temp directory; shortcut fields travel as argv, never interpolated into
9
+ // script text, so no caller-controlled value is evaluated. Any nonzero exit or stderr output
10
+ // fails closed. On non-Windows hosts (unit suites, cross-platform staging) a JSON fallback
11
+ // document stands in for the binary `.lnk` so behaviour stays testable everywhere.
12
+ import { spawnSync } from "node:child_process";
13
+ import { mkdtempSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
14
+ import { tmpdir } from "node:os";
15
+ import { join, win32 as win32Path } from "node:path";
16
+ export const WINDOWS_SHORTCUT_MAX_BYTES = 128 * 1024;
17
+ // A wedged script host (WSH is COM-backed and can hang on a broken shell registration) must not
18
+ // block a setup or activation forever: spawnSync enforces this bound and surfaces the kill as a
19
+ // spawn error, which the caller already fails closed on.
20
+ export const WINDOWS_SHORTCUT_TIMEOUT_MS = 30_000;
21
+ const WINDOWS_SHORTCUT_FALLBACK_SCHEMA = "keiko-windows-shortcut-v1";
22
+ const DEFAULT_WINDOWS_ROOT = String.raw `C:\Windows`;
23
+ const WINDOWS_SHORTCUT_SCRIPT = [
24
+ 'var shell = WScript.CreateObject("WScript.Shell");',
25
+ "var mode = WScript.Arguments.Item(0);",
26
+ "var path = WScript.Arguments.Item(1);",
27
+ "var shortcut = shell.CreateShortcut(path);",
28
+ 'if (mode === "create") {',
29
+ " shortcut.TargetPath = WScript.Arguments.Item(2);",
30
+ ' shortcut.Arguments = "";',
31
+ " shortcut.WorkingDirectory = WScript.Arguments.Item(3);",
32
+ " shortcut.IconLocation = WScript.Arguments.Item(4);",
33
+ ' shortcut.Description = "Keiko";',
34
+ " shortcut.Save();",
35
+ "} else {",
36
+ " WScript.StdOut.WriteLine(shortcut.TargetPath);",
37
+ " WScript.StdOut.WriteLine(shortcut.WorkingDirectory);",
38
+ " WScript.StdOut.WriteLine(shortcut.IconLocation);",
39
+ "}",
40
+ "",
41
+ ].join("\r\n");
42
+ /**
43
+ * The trusted Windows system root: an absolute SystemRoot/WINDIR from the environment, or the
44
+ * platform default. The one shared trust decision every governed Windows child-process helper
45
+ * (cscript, powershell) resolves its executable against.
46
+ */
47
+ export function windowsSystemRoot(env) {
48
+ const root = env.SystemRoot ?? env.WINDIR ?? DEFAULT_WINDOWS_ROOT;
49
+ return win32Path.isAbsolute(root) ? root : DEFAULT_WINDOWS_ROOT;
50
+ }
51
+ function windowsCscriptExecutable(env) {
52
+ return win32Path.join(windowsSystemRoot(env), "System32", "cscript.exe");
53
+ }
54
+ // The script host gets ONLY the variables it needs to run — never the caller's process
55
+ // environment, which in the server holds provider API keys and other secrets.
56
+ function windowsShortcutEnv(env) {
57
+ const root = windowsSystemRoot(env);
58
+ return {
59
+ SystemRoot: root,
60
+ WINDIR: root,
61
+ ComSpec: win32Path.join(root, "System32", "cmd.exe"),
62
+ ...(env.TEMP === undefined ? {} : { TEMP: env.TEMP }),
63
+ ...(env.TMP === undefined ? {} : { TMP: env.TMP }),
64
+ };
65
+ }
66
+ function windowsShortcutArgs(mode, scriptPath, path, definition) {
67
+ // `//U` makes cscript emit UTF-16LE on stdout/stderr; without it, redirected output uses the
68
+ // active ANSI/OEM code page and non-ASCII profile paths (e.g. `José`) come back corrupted,
69
+ // failing the post-create readback verification.
70
+ if (mode === "read")
71
+ return ["//Nologo", "//U", "//E:JScript", scriptPath, mode, path];
72
+ return [
73
+ "//Nologo",
74
+ "//U",
75
+ "//E:JScript",
76
+ scriptPath,
77
+ mode,
78
+ path,
79
+ definition.targetPath,
80
+ definition.workingDirectory,
81
+ definition.iconPath,
82
+ ];
83
+ }
84
+ // Failure text stays content-free: WSH stderr names the script path and the shortcut path, and
85
+ // both live under the user profile, so embedding it would carry the OS username into operator
86
+ // diagnostics. Status and byte count are enough to diagnose the class of failure.
87
+ function shortcutFailure(failurePrefix, status, stderr) {
88
+ return `${failurePrefix} (cscript exit ${String(status)}, stderr ${String(stderr.byteLength)} bytes)`;
89
+ }
90
+ /**
91
+ * Run the fixed shortcut JScript through cscript. Fails closed on spawn errors, nonzero exits,
92
+ * and ANY stderr output; returns decoded stdout (three UTF-16LE lines in read mode).
93
+ */
94
+ export function runWindowsShortcutCommand(mode, path, definition, env, failurePrefix, spawnFn = spawnSync) {
95
+ const scriptRoot = mkdtempSync(join(tmpdir(), "keiko-shortcut-"));
96
+ const scriptPath = join(scriptRoot, "shortcut.js");
97
+ try {
98
+ writeFileSync(scriptPath, WINDOWS_SHORTCUT_SCRIPT, "utf8");
99
+ const result = spawnFn(windowsCscriptExecutable(env), windowsShortcutArgs(mode, scriptPath, path, definition), {
100
+ env: windowsShortcutEnv(env),
101
+ shell: false,
102
+ stdio: "pipe",
103
+ timeout: WINDOWS_SHORTCUT_TIMEOUT_MS,
104
+ windowsHide: true,
105
+ });
106
+ if (result.error !== undefined)
107
+ throw result.error;
108
+ const stderr = result.stderr ?? Buffer.alloc(0);
109
+ if (result.status !== 0 || stderr.byteLength > 0) {
110
+ throw new Error(shortcutFailure(failurePrefix, result.status, stderr));
111
+ }
112
+ return (result.stdout ?? Buffer.alloc(0)).toString("utf16le");
113
+ }
114
+ finally {
115
+ rmSync(scriptRoot, { recursive: true, force: true });
116
+ }
117
+ }
118
+ /** The JSON stand-in written on non-Windows hosts instead of a binary `.lnk`. */
119
+ export function windowsShortcutFallbackContent(definition) {
120
+ return `${JSON.stringify({ schema: WINDOWS_SHORTCUT_FALLBACK_SCHEMA, ...definition })}\n`;
121
+ }
122
+ function shortcutDefinitionFromRecord(raw) {
123
+ if (typeof raw !== "object" || raw === null || Array.isArray(raw))
124
+ return undefined;
125
+ const record = raw;
126
+ if (record.schema !== WINDOWS_SHORTCUT_FALLBACK_SCHEMA)
127
+ return undefined;
128
+ if (typeof record.targetPath !== "string")
129
+ return undefined;
130
+ if (typeof record.workingDirectory !== "string")
131
+ return undefined;
132
+ if (typeof record.iconPath !== "string")
133
+ return undefined;
134
+ return {
135
+ targetPath: record.targetPath,
136
+ workingDirectory: record.workingDirectory,
137
+ iconPath: record.iconPath,
138
+ };
139
+ }
140
+ export function parseWindowsShortcutFallback(path) {
141
+ try {
142
+ // The size bound lives here, not only at the call sites: this is an exported entry point,
143
+ // and a reader that JSON-parses an unbounded file is a bug waiting for its first caller.
144
+ const size = statSync(path).size;
145
+ if (size <= 0 || size > WINDOWS_SHORTCUT_MAX_BYTES)
146
+ return undefined;
147
+ return shortcutDefinitionFromRecord(JSON.parse(readFileSync(path, "utf8")));
148
+ }
149
+ catch {
150
+ return undefined;
151
+ }
152
+ }
153
+ const EMPTY_DEFINITION = {
154
+ targetPath: "",
155
+ workingDirectory: "",
156
+ iconPath: "",
157
+ };
158
+ /** Read a shortcut's fields; undefined on any refusal (fail-closed read). */
159
+ export function readWindowsShortcutDefinition(path, env, failurePrefix, spawnFn = spawnSync) {
160
+ if (process.platform !== "win32")
161
+ return parseWindowsShortcutFallback(path);
162
+ try {
163
+ const output = runWindowsShortcutCommand("read", path, EMPTY_DEFINITION, env, failurePrefix, spawnFn);
164
+ const [targetPath, workingDirectory, iconPath] = output.split(/\r?\n/u);
165
+ if (targetPath === undefined || workingDirectory === undefined || iconPath === undefined) {
166
+ return undefined;
167
+ }
168
+ return { targetPath, workingDirectory, iconPath };
169
+ }
170
+ catch {
171
+ return undefined;
172
+ }
173
+ }
174
+ /** Create/overwrite the shortcut (JSON fallback off Windows). Throws on failure. */
175
+ export function writeWindowsShortcutDefinition(path, definition, env, failurePrefix, spawnFn = spawnSync) {
176
+ if (process.platform !== "win32") {
177
+ writeFileSync(path, windowsShortcutFallbackContent(definition), "utf8");
178
+ return;
179
+ }
180
+ runWindowsShortcutCommand("create", path, definition, env, failurePrefix, spawnFn);
181
+ }
182
+ /** Case- and separator-insensitive Windows path equivalence for shortcut field comparison. */
183
+ export function equivalentWindowsShortcutPath(left, right) {
184
+ return win32Path.normalize(left).toLowerCase() === win32Path.normalize(right).toLowerCase();
185
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-security",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -89,7 +89,7 @@
89
89
  "node": ">=24.18.0 <25"
90
90
  },
91
91
  "dependencies": {
92
- "@oscharko-dev/keiko-contracts": "0.3.1"
92
+ "@oscharko-dev/keiko-contracts": "0.3.6"
93
93
  },
94
94
  "private": true
95
95
  }
@@ -304,7 +304,10 @@ function researchApprovalRequester(input, context, runId, pending, onRuntimeEven
304
304
  };
305
305
  }
306
306
  function runtimeAuthorityLive(input, context, minted, authority) {
307
- const resolved = authority.revalidateCapabilityForMutation({
307
+ // Operator admission, not a child tool mutation: the guarded operations (follow-up dispatch,
308
+ // abort, question answers) are deliberately reachable while the run is paused — sticky pause
309
+ // holds the runtime, not the human. The tool facade keeps the running-only revalidation.
310
+ const resolved = authority.revalidateCapabilityForOperatorAdmission({
308
311
  capability: minted.toolFacadeCapability,
309
312
  adapterKind: adapterKind(context),
310
313
  liveFacts: productionRuntimeAuthorityFacts(input.workspaceAuthority, context),
@@ -109,6 +109,15 @@ export declare class CodingRuntimeAuthorityService {
109
109
  resolveForDelegation(reference: CodingRuntimeAuthorityRef, request: EditorAgentRuntimeDelegationRequest): CodingRuntimeResolution;
110
110
  resolveCapabilityForDelegation(input: CodingRuntimeCapabilityDelegationInput): CodingRuntimeResolution;
111
111
  revalidateCapabilityForMutation(input: CodingRuntimeCapabilityRecheckInput): CodingRuntimeResolution;
112
+ /**
113
+ * The operator-admission variant: dispatching a follow-up task turn, aborting, and answering
114
+ * questions are HUMAN operations the coordinator deliberately admits while the run is paused
115
+ * (sticky pause, no auto-resume). They carry the same capability, envelope, and live-facts
116
+ * revalidation as the tool path — only the admissible runtime states differ. Holding these to
117
+ * running-only silently 403'd every paused follow-up after #2644 unified the authority path.
118
+ */
119
+ revalidateCapabilityForOperatorAdmission(input: CodingRuntimeCapabilityRecheckInput): CodingRuntimeResolution;
120
+ private revalidateCapabilityForStates;
112
121
  revoke(runId: string, nowIso: string): void;
113
122
  /** Synchronously closes every server-owned authority before process termination is signalled. */
114
123
  revokeBeforeTerminate(runId: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"runtimeAuthorityService.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/runtimeAuthorityService.ts"],"names":[],"mappings":"AACA,OAAO,EAQL,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,uCAAuC,EAC5C,KAAK,iCAAiC,EACtC,KAAK,oCAAoC,EAEzC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,sCAAsC,EAC3C,KAAK,2BAA2B,EAChC,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EAClC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,4BAA4B,EAG5B,KAAK,mCAAmC,EACzC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAA4B,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAGlG,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE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AAS,EACzB,MAAM,EAAE,+BAA+B,EACvC,MAAM,EAAE,MAAM,EACd,WAAW,CAAC,EAAE,iCAAiC,GAC9C,OAAO,CAcT;IAED,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,eAAe;IAiBvB,OAAO,CAAC,iBAAiB;IAkBzB,OAAO,CAAC,4BAA4B;IAYpC,OAAO,CAAC,qBAAqB;CAM9B;AA2PD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,qBAAqB,GAAG,MAAM,CAE/E;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAE9D;AAED,wBAAgB,oCAAoC,CAClD,QAAQ,EAAE,gCAAgC,GACzC,MAAM,CAER"}
@@ -5,6 +5,14 @@ import { createInMemorySupervisedCodingApprovalStore, } from "./supervisedCoding
5
5
  import { createInMemoryRuntimeCapabilityStore, } from "./runtimeCapabilityStore.js";
6
6
  import { verifyRuntimeReapReceipt } from "./runtimeProcessSupervisor.js";
7
7
  import { projectRuntimeAuthorityValue } from "./runtimeAuthorityProjection.js";
8
+ // Child tool mutations may only ever run against a RUNNING run; operator admissions (follow-up
9
+ // dispatch, abort, question answers) legitimately reach a paused run — sticky pause holds the
10
+ // runtime, not the human.
11
+ const RUNNING_ONLY = new Set(["running"]);
12
+ const OPERATOR_ADMISSIBLE_STATES = new Set([
13
+ "running",
14
+ "paused",
15
+ ]);
8
16
  export class CodingRuntimeAuthorityService {
9
17
  registry;
10
18
  newRunId;
@@ -198,6 +206,21 @@ export class CodingRuntimeAuthorityService {
198
206
  });
199
207
  }
200
208
  revalidateCapabilityForMutation(input) {
209
+ // A paused run must never execute a child mutation — running is the only admissible state
210
+ // for the tool path.
211
+ return this.revalidateCapabilityForStates(input, RUNNING_ONLY);
212
+ }
213
+ /**
214
+ * The operator-admission variant: dispatching a follow-up task turn, aborting, and answering
215
+ * questions are HUMAN operations the coordinator deliberately admits while the run is paused
216
+ * (sticky pause, no auto-resume). They carry the same capability, envelope, and live-facts
217
+ * revalidation as the tool path — only the admissible runtime states differ. Holding these to
218
+ * running-only silently 403'd every paused follow-up after #2644 unified the authority path.
219
+ */
220
+ revalidateCapabilityForOperatorAdmission(input) {
221
+ return this.revalidateCapabilityForStates(input, OPERATOR_ADMISSIBLE_STATES);
222
+ }
223
+ revalidateCapabilityForStates(input, admissibleStates) {
201
224
  const authenticated = this.capabilities.authenticate(input.capability, Date.parse(input.nowIso));
202
225
  if (!authenticated.ok || authenticated.binding.audience !== "tool-facade") {
203
226
  return authenticated.ok
@@ -205,7 +228,7 @@ export class CodingRuntimeAuthorityService {
205
228
  : capabilityFailure(authenticated.reason);
206
229
  }
207
230
  const reference = this.activeAuthorityRef;
208
- if (this.runtimeState.state !== "running" ||
231
+ if (!admissibleStates.has(this.runtimeState.state) ||
209
232
  this.activeTreeBindingId === undefined ||
210
233
  this.runtimeState.runId !== reference?.runId ||
211
234
  !capabilityMatchesDelegation(authenticated.binding, reference, input)) {
@@ -315,6 +315,7 @@ export interface BuildHandlerDepsOptions {
315
315
  readonly autonomousDeliveryStopState?: UiHandlerDeps["autonomousDeliveryStopState"] | undefined;
316
316
  readonly uiDbPath?: string | undefined;
317
317
  readonly store?: UiStore | undefined;
318
+ readonly codingRuntimeSnapshotStore?: CodingRuntimeSnapshotStore | undefined;
318
319
  readonly updateSession?: UpdateSessionManager | undefined;
319
320
  readonly updatePreflight?: UiHandlerDeps["updatePreflight"];
320
321
  readonly updateLocalState?: UpdateLocalStateManager | undefined;