@oscharko-dev/keiko 0.3.3 → 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 (188) hide show
  1. package/dist/ui/csp-hashes.json +16 -16
  2. package/dist/ui/static/404.html +1 -1
  3. package/dist/ui/static/__next.__PAGE__.txt +2 -2
  4. package/dist/ui/static/__next._full.txt +2 -2
  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/_next/static/chunks/{3ql3z-e3ohbu2.js → 0v0vrvwtrfjy7.js} +3 -3
  9. package/dist/ui/static/_next/static/chunks/{2_2qkgnh1dz0w.js → 0yetjgsqfhpjk.js} +1 -1
  10. package/dist/ui/static/_next/static/chunks/{1-voj04h-yqwz.js → 12mrameobjgif.js} +1 -1
  11. package/dist/ui/static/_next/static/chunks/{0ksa37i-utc0h.js → 1_aiwavt3hd8k.js} +1 -1
  12. package/dist/ui/static/_next/static/chunks/{0x1960pxw5y7a.js → 1ecmfvnoo52jh.js} +1 -1
  13. package/dist/ui/static/_next/static/chunks/{3zxbj77kx-r5_.js → 1m9a3jzo9q1u5.js} +1 -1
  14. package/dist/ui/static/_next/static/chunks/{2v37q27ax5l4p.js → 2ie-82h35jico.js} +1 -1
  15. package/dist/ui/static/_not-found/__next._full.txt +1 -1
  16. package/dist/ui/static/_not-found/__next._head.txt +1 -1
  17. package/dist/ui/static/_not-found/__next._index.txt +1 -1
  18. package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
  19. package/dist/ui/static/_not-found/__next._not-found.txt +1 -1
  20. package/dist/ui/static/_not-found/__next._tree.txt +1 -1
  21. package/dist/ui/static/_not-found.html +1 -1
  22. package/dist/ui/static/_not-found.txt +1 -1
  23. package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
  24. package/dist/ui/static/atlassian-connectors/__next._head.txt +1 -1
  25. package/dist/ui/static/atlassian-connectors/__next._index.txt +1 -1
  26. package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
  27. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
  28. package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.txt +1 -1
  29. package/dist/ui/static/atlassian-connectors.html +1 -1
  30. package/dist/ui/static/atlassian-connectors.txt +1 -1
  31. package/dist/ui/static/index.html +1 -1
  32. package/dist/ui/static/index.txt +2 -2
  33. package/dist/ui/static/launch/__next._full.txt +2 -2
  34. package/dist/ui/static/launch/__next._head.txt +1 -1
  35. package/dist/ui/static/launch/__next._index.txt +1 -1
  36. package/dist/ui/static/launch/__next._tree.txt +1 -1
  37. package/dist/ui/static/launch/__next.launch.__PAGE__.txt +2 -2
  38. package/dist/ui/static/launch/__next.launch.txt +1 -1
  39. package/dist/ui/static/launch.html +1 -1
  40. package/dist/ui/static/launch.txt +2 -2
  41. package/dist/ui/static/local-knowledge/__next._full.txt +2 -2
  42. package/dist/ui/static/local-knowledge/__next._head.txt +1 -1
  43. package/dist/ui/static/local-knowledge/__next._index.txt +1 -1
  44. package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
  45. package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +2 -2
  46. package/dist/ui/static/local-knowledge/__next.local-knowledge.txt +1 -1
  47. package/dist/ui/static/local-knowledge/capsule/__next._full.txt +1 -1
  48. package/dist/ui/static/local-knowledge/capsule/__next._head.txt +1 -1
  49. package/dist/ui/static/local-knowledge/capsule/__next._index.txt +1 -1
  50. package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
  51. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +1 -1
  52. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.txt +1 -1
  53. package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.txt +1 -1
  54. package/dist/ui/static/local-knowledge/capsule.html +1 -1
  55. package/dist/ui/static/local-knowledge/capsule.txt +1 -1
  56. package/dist/ui/static/local-knowledge.html +1 -1
  57. package/dist/ui/static/local-knowledge.txt +2 -2
  58. package/dist/ui/static/memoriaviva/__next._full.txt +1 -1
  59. package/dist/ui/static/memoriaviva/__next._head.txt +1 -1
  60. package/dist/ui/static/memoriaviva/__next._index.txt +1 -1
  61. package/dist/ui/static/memoriaviva/__next._tree.txt +1 -1
  62. package/dist/ui/static/memoriaviva/__next.memoriaviva.__PAGE__.txt +1 -1
  63. package/dist/ui/static/memoriaviva/__next.memoriaviva.txt +1 -1
  64. package/dist/ui/static/memoriaviva/consolidation/__next._full.txt +1 -1
  65. package/dist/ui/static/memoriaviva/consolidation/__next._head.txt +1 -1
  66. package/dist/ui/static/memoriaviva/consolidation/__next._index.txt +1 -1
  67. package/dist/ui/static/memoriaviva/consolidation/__next._tree.txt +1 -1
  68. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.__PAGE__.txt +1 -1
  69. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.consolidation.txt +1 -1
  70. package/dist/ui/static/memoriaviva/consolidation/__next.memoriaviva.txt +1 -1
  71. package/dist/ui/static/memoriaviva/consolidation.html +1 -1
  72. package/dist/ui/static/memoriaviva/consolidation.txt +1 -1
  73. package/dist/ui/static/memoriaviva/detail/__next._full.txt +1 -1
  74. package/dist/ui/static/memoriaviva/detail/__next._head.txt +1 -1
  75. package/dist/ui/static/memoriaviva/detail/__next._index.txt +1 -1
  76. package/dist/ui/static/memoriaviva/detail/__next._tree.txt +1 -1
  77. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.__PAGE__.txt +1 -1
  78. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.detail.txt +1 -1
  79. package/dist/ui/static/memoriaviva/detail/__next.memoriaviva.txt +1 -1
  80. package/dist/ui/static/memoriaviva/detail.html +1 -1
  81. package/dist/ui/static/memoriaviva/detail.txt +1 -1
  82. package/dist/ui/static/memoriaviva/health-scan/__next._full.txt +1 -1
  83. package/dist/ui/static/memoriaviva/health-scan/__next._head.txt +1 -1
  84. package/dist/ui/static/memoriaviva/health-scan/__next._index.txt +1 -1
  85. package/dist/ui/static/memoriaviva/health-scan/__next._tree.txt +1 -1
  86. package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.health-scan.__PAGE__.txt +1 -1
  87. package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.health-scan.txt +1 -1
  88. package/dist/ui/static/memoriaviva/health-scan/__next.memoriaviva.txt +1 -1
  89. package/dist/ui/static/memoriaviva/health-scan.html +1 -1
  90. package/dist/ui/static/memoriaviva/health-scan.txt +1 -1
  91. package/dist/ui/static/memoriaviva/journal/__next._full.txt +1 -1
  92. package/dist/ui/static/memoriaviva/journal/__next._head.txt +1 -1
  93. package/dist/ui/static/memoriaviva/journal/__next._index.txt +1 -1
  94. package/dist/ui/static/memoriaviva/journal/__next._tree.txt +1 -1
  95. package/dist/ui/static/memoriaviva/journal/__next.memoriaviva.journal.__PAGE__.txt +1 -1
  96. package/dist/ui/static/memoriaviva/journal/__next.memoriaviva.journal.txt +1 -1
  97. package/dist/ui/static/memoriaviva/journal/__next.memoriaviva.txt +1 -1
  98. package/dist/ui/static/memoriaviva/journal.html +1 -1
  99. package/dist/ui/static/memoriaviva/journal.txt +1 -1
  100. package/dist/ui/static/memoriaviva/review-queue/__next._full.txt +1 -1
  101. package/dist/ui/static/memoriaviva/review-queue/__next._head.txt +1 -1
  102. package/dist/ui/static/memoriaviva/review-queue/__next._index.txt +1 -1
  103. package/dist/ui/static/memoriaviva/review-queue/__next._tree.txt +1 -1
  104. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.__PAGE__.txt +1 -1
  105. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.review-queue.txt +1 -1
  106. package/dist/ui/static/memoriaviva/review-queue/__next.memoriaviva.txt +1 -1
  107. package/dist/ui/static/memoriaviva/review-queue.html +1 -1
  108. package/dist/ui/static/memoriaviva/review-queue.txt +1 -1
  109. package/dist/ui/static/memoriaviva.html +1 -1
  110. package/dist/ui/static/memoriaviva.txt +1 -1
  111. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-platforms.d.ts.map +1 -1
  112. package/node_modules/@oscharko-dev/keiko-cli/dist/launcher-platforms.js +10 -11
  113. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.d.ts +1 -0
  114. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.d.ts.map +1 -1
  115. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-install.js +31 -22
  116. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.d.ts +3 -0
  117. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.d.ts.map +1 -1
  118. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-launch-notifier.js +88 -14
  119. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts +4 -3
  120. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.d.ts.map +1 -1
  121. package/node_modules/@oscharko-dev/keiko-cli/dist/portable-maintenance.js +168 -38
  122. package/node_modules/@oscharko-dev/keiko-cli/dist/portable.d.ts.map +1 -1
  123. package/node_modules/@oscharko-dev/keiko-cli/dist/portable.js +1 -0
  124. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.d.ts.map +1 -1
  125. package/node_modules/@oscharko-dev/keiko-cli/dist/repair.js +3 -3
  126. package/node_modules/@oscharko-dev/keiko-cli/package.json +13 -13
  127. package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
  128. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.d.ts +2 -2
  129. package/node_modules/@oscharko-dev/keiko-contracts/dist/index.js +2 -2
  130. package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
  131. package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
  132. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
  133. package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
  134. package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
  135. package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
  136. package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
  137. package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
  138. package/node_modules/@oscharko-dev/keiko-harness/package.json +6 -6
  139. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
  140. package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
  141. package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
  142. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
  143. package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
  144. package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
  145. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
  146. package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
  147. package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
  148. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
  149. package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
  150. package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
  151. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
  152. package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
  153. package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
  154. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
  155. package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
  156. package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
  157. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
  158. package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
  159. package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +3 -3
  160. package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
  161. package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
  162. package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
  163. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts +2 -0
  164. package/node_modules/@oscharko-dev/keiko-security/dist/index.d.ts.map +1 -1
  165. package/node_modules/@oscharko-dev/keiko-security/dist/index.js +1 -0
  166. package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
  167. package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
  168. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.d.ts +42 -0
  169. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.d.ts.map +1 -0
  170. package/node_modules/@oscharko-dev/keiko-security/dist/windows-shortcuts.js +185 -0
  171. package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
  172. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts +1 -0
  173. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.d.ts.map +1 -1
  174. package/node_modules/@oscharko-dev/keiko-server/dist/update-portable-activation-files.js +80 -10
  175. package/node_modules/@oscharko-dev/keiko-server/package.json +21 -21
  176. package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
  177. package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
  178. package/node_modules/@oscharko-dev/keiko-tools/package.json +5 -5
  179. package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
  180. package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
  181. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
  182. package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
  183. package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
  184. package/package.json +27 -39
  185. package/release-impact.catalog.json +180 -1
  186. /package/dist/ui/static/_next/static/{OLvh_PREYwGT5IVJISFs9 → AS69MxWoWkePQgeJ0TdtV}/_buildManifest.js +0 -0
  187. /package/dist/ui/static/_next/static/{OLvh_PREYwGT5IVJISFs9 → AS69MxWoWkePQgeJ0TdtV}/_clientMiddlewareManifest.js +0 -0
  188. /package/dist/ui/static/_next/static/{OLvh_PREYwGT5IVJISFs9 → AS69MxWoWkePQgeJ0TdtV}/_ssgManifest.js +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-consolidation",
3
- "version": "0.3.3",
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.3",
29
- "@oscharko-dev/keiko-security": "0.3.3"
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.3";
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.3";
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.3",
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.3",
29
- "@oscharko-dev/keiko-security": "0.3.3"
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.3";
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.3";
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.3",
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.3",
29
- "@oscharko-dev/keiko-security": "0.3.3"
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.3";
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.3";
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.3",
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.3",
29
- "@oscharko-dev/keiko-security": "0.3.3"
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.3";
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.3";
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.3",
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.3",
37
- "@oscharko-dev/keiko-security": "0.3.3"
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.3",
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.3",
29
- "@oscharko-dev/keiko-security": "0.3.3"
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.3",
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.3"
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.3",
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.3",
29
- "@oscharko-dev/keiko-evaluations": "0.3.3",
30
- "@oscharko-dev/keiko-evidence": "0.3.3",
31
- "@oscharko-dev/keiko-harness": "0.3.3",
32
- "@oscharko-dev/keiko-model-gateway": "0.3.3",
33
- "@oscharko-dev/keiko-verification": "0.3.3",
34
- "@oscharko-dev/keiko-workflows": "0.3.3",
35
- "@oscharko-dev/keiko-workspace": "0.3.3"
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,gBAA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_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.3";
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.3";
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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AE,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.3",
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.3"
92
+ "@oscharko-dev/keiko-contracts": "0.3.6"
93
93
  },
94
94
  "private": true
95
95
  }
@@ -72,6 +72,7 @@ export declare function refreshPortableRegistration(input: {
72
72
  readonly home: string;
73
73
  readonly now: number;
74
74
  }): void;
75
+ export declare function readWindowsPortableShortcutTarget(path: string, env?: EnvSource): string | undefined;
75
76
  export declare function refreshPortableShortcut(input: {
76
77
  readonly target: UpdatePortableTarget;
77
78
  readonly layout: PortableActivationLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"update-portable-activation-files.d.ts","sourceRoot":"","sources":["../src/update-portable-activation-files.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EACV,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAWnE,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,4BAA4B,CAAC;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACxD;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,C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