@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,5 +1,6 @@
1
1
  import { chmodSync, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, rmdirSync, unlinkSync, writeFileSync, } from "node:fs";
2
- import { dirname, join, relative, resolve } from "node:path";
2
+ import { dirname, join, relative, resolve, win32 as win32Path } from "node:path";
3
+ import { WINDOWS_SHORTCUT_MAX_BYTES, equivalentWindowsShortcutPath, readWindowsShortcutDefinition, writeWindowsShortcutDefinition, } from "@oscharko-dev/keiko-security";
3
4
  import { parseWindowsLauncherContent, windowsLauncher } from "./launcher-platforms.js";
4
5
  import { defaultManagedRoot } from "./portable-shared.js";
5
6
  const MANAGED_INSTALL_RULES = {
@@ -37,12 +38,20 @@ const MANAGED_INSTALL_RULES = {
37
38
  };
38
39
  const WINDOWS_LAUNCHER_MAX_BYTES = 64 * 1024;
39
40
  function appDataDir(env, home) {
40
- return env.APPDATA ?? join(home, "AppData", "Roaming");
41
+ // Absolute-only: an empty or relative APPDATA must not re-anchor registration paths at the
42
+ // process working directory — fall back to the canonical profile location instead.
43
+ const configured = env.APPDATA;
44
+ return configured !== undefined && win32Path.isAbsolute(configured)
45
+ ? configured
46
+ : join(home, "AppData", "Roaming");
41
47
  }
42
48
  export function windowsStartMenuRegistrationPath(env, home) {
49
+ return join(appDataDir(env, home), "Microsoft", "Windows", "Start Menu", "Programs", "Keiko.lnk");
50
+ }
51
+ export function windowsLegacyStartMenuRegistrationPath(env, home) {
43
52
  return join(appDataDir(env, home), "Microsoft", "Windows", "Start Menu", "Programs", "Keiko.bat");
44
53
  }
45
- export function parseWindowsStartMenuRegistration(path) {
54
+ export function parseWindowsStartMenuRegistration(path, env = process.env) {
46
55
  if (!existsSync(path))
47
56
  return undefined;
48
57
  try {
@@ -50,6 +59,8 @@ export function parseWindowsStartMenuRegistration(path) {
50
59
  const stat = lstatSync(path);
51
60
  if (!stat.isFile() || stat.isSymbolicLink() || stat.nlink > 1)
52
61
  return undefined;
62
+ if (path.toLowerCase().endsWith(".lnk"))
63
+ return parseWindowsShortcutRegistration(path, stat.size, env);
53
64
  if (stat.size <= 0 || stat.size > WINDOWS_LAUNCHER_MAX_BYTES)
54
65
  return undefined;
55
66
  return parseWindowsLauncherContent(readFileSync(path, "utf8"));
@@ -58,6 +69,12 @@ export function parseWindowsStartMenuRegistration(path) {
58
69
  return undefined;
59
70
  }
60
71
  }
72
+ function parseWindowsShortcutRegistration(path, size, env) {
73
+ if (size <= 0 || size > WINDOWS_SHORTCUT_MAX_BYTES)
74
+ return undefined;
75
+ const shortcut = readWindowsShortcut(path, env);
76
+ return shortcut?.targetPath;
77
+ }
61
78
  function resolvedDefaultManagedRoot(target, env, home) {
62
79
  return resolve(defaultManagedRoot(target, env, home));
63
80
  }
@@ -78,17 +95,19 @@ function registrationPlans(layout, target, managedRoot, env, home) {
78
95
  ? {
79
96
  kind,
80
97
  path: windowsStartMenuRegistrationPath(env, home),
81
- expectedContent: windowsLauncher.generateContent({
82
- exe: layout.primaryLauncherPath,
83
- port: undefined,
84
- }),
85
- fileMode: windowsLauncher.fileMode,
98
+ artifact: {
99
+ type: "windows-shortcut",
100
+ targetPath: layout.primaryLauncherPath,
101
+ workingDirectory: layout.installRoot,
102
+ iconPath: layout.primaryLauncherPath,
103
+ },
104
+ env,
86
105
  }
87
106
  : {
88
107
  kind,
89
108
  path: resolvedDefaultManagedRoot(target, env, home),
90
- expectedContent: undefined,
91
- fileMode: undefined,
109
+ artifact: { type: "directory" },
110
+ env,
92
111
  });
93
112
  }
94
113
  function isUnsafeHardlink(path) {
@@ -111,48 +130,152 @@ function assertNoSymlinkAncestor(path) {
111
130
  cursor = parent;
112
131
  }
113
132
  }
114
- function ensureFileArtifactSafe(plan) {
115
- assertNoSymlinkAncestor(plan.path);
116
- if (!existsSync(plan.path))
133
+ function ensureTextFileArtifactSafe(path, artifact) {
134
+ const status = ensureRegularUnlinkedArtifact(path, WINDOWS_LAUNCHER_MAX_BYTES);
135
+ if (status === "missing")
117
136
  return "missing";
118
- const stat = lstatSync(plan.path);
137
+ if (readFileSync(path, "utf8") !== artifact.expectedContent) {
138
+ throw new Error(`portable registration refused unknown artifact at ${path}`);
139
+ }
140
+ return "managed";
141
+ }
142
+ function ensureRegularUnlinkedArtifact(path, maxBytes) {
143
+ assertNoSymlinkAncestor(path);
144
+ if (!existsSync(path))
145
+ return "missing";
146
+ const stat = lstatSync(path);
119
147
  if (stat.isSymbolicLink()) {
120
- throw new Error(`portable registration refused symlink at ${plan.path}`);
148
+ throw new Error(`portable registration refused symlink at ${path}`);
121
149
  }
122
150
  if (!stat.isFile()) {
123
- throw new Error(`portable registration refused unknown artifact at ${plan.path}`);
151
+ throw new Error(`portable registration refused unknown artifact at ${path}`);
124
152
  }
125
153
  if (stat.nlink > 1) {
126
- throw new Error(`portable registration refused hardlink at ${plan.path}`);
154
+ throw new Error(`portable registration refused hardlink at ${path}`);
127
155
  }
128
- if (readFileSync(plan.path, "utf8") !== plan.expectedContent) {
129
- throw new Error(`portable registration refused unknown artifact at ${plan.path}`);
156
+ if (stat.size <= 0 || stat.size > maxBytes) {
157
+ throw new Error(`portable registration refused unknown artifact at ${path}`);
130
158
  }
131
159
  return "managed";
132
160
  }
133
- function writeFileArtifact(plan) {
134
- if (plan.expectedContent === undefined || plan.fileMode === undefined)
161
+ function ensureWindowsShortcutArtifactSafe(path, artifact, env) {
162
+ const status = ensureRegularUnlinkedArtifact(path, WINDOWS_SHORTCUT_MAX_BYTES);
163
+ if (status === "missing")
164
+ return "missing";
165
+ const shortcut = readWindowsShortcut(path, env);
166
+ if (shortcut === undefined || !windowsShortcutMatches(shortcut, artifact)) {
167
+ throw new Error(`portable registration refused unknown artifact at ${path}`);
168
+ }
169
+ return "managed";
170
+ }
171
+ function ensureDirectoryArtifactSafe(path) {
172
+ assertNoSymlinkAncestor(path);
173
+ if (!existsSync(path))
174
+ return "missing";
175
+ const stat = lstatSync(path);
176
+ if (stat.isSymbolicLink()) {
177
+ throw new Error(`portable registration refused symlink at ${path}`);
178
+ }
179
+ if (!stat.isDirectory()) {
180
+ throw new Error(`portable registration refused unknown artifact at ${path}`);
181
+ }
182
+ return "managed";
183
+ }
184
+ function ensureRegistrationArtifactSafe(plan) {
185
+ if (plan.artifact.type === "directory")
186
+ return ensureDirectoryArtifactSafe(plan.path);
187
+ if (plan.artifact.type === "windows-shortcut") {
188
+ return ensureWindowsShortcutArtifactSafe(plan.path, plan.artifact, plan.env);
189
+ }
190
+ return ensureTextFileArtifactSafe(plan.path, plan.artifact);
191
+ }
192
+ function writeTextFileArtifact(path, artifact) {
193
+ mkdirSync(dirname(path), { recursive: true, mode: 0o755 });
194
+ writeFileSync(path, artifact.expectedContent, {
195
+ encoding: "utf8",
196
+ mode: artifact.fileMode,
197
+ });
198
+ try {
199
+ chmodSync(path, artifact.fileMode);
200
+ }
201
+ catch {
202
+ // Best-effort on non-POSIX filesystems.
203
+ }
204
+ }
205
+ function writeWindowsShortcutArtifact(path, artifact, env) {
206
+ mkdirSync(dirname(path), { recursive: true, mode: 0o755 });
207
+ writeWindowsShortcutDefinition(path, artifact, env, SHORTCUT_FAILURE_PREFIX);
208
+ }
209
+ function writeRegistrationArtifact(plan) {
210
+ if (plan.artifact.type === "directory") {
211
+ // The directory registration artifact is the managed-root anchor itself: repairing a
212
+ // missing registration recreates the anchor directory (contents are the setup flow's job).
213
+ if (ensureRegistrationArtifactSafe(plan) === "missing") {
214
+ mkdirSync(plan.path, { recursive: true, mode: 0o755 });
215
+ }
135
216
  return;
136
- const status = ensureFileArtifactSafe(plan);
217
+ }
218
+ const status = ensureRegistrationArtifactSafe(plan);
137
219
  if (status === "managed")
138
220
  return;
139
- mkdirSync(dirname(plan.path), { recursive: true, mode: 0o755 });
140
- writeFileSync(plan.path, plan.expectedContent, { encoding: "utf8", mode: plan.fileMode });
221
+ if (plan.artifact.type === "windows-shortcut") {
222
+ writeWindowsShortcutArtifact(plan.path, plan.artifact, plan.env);
223
+ }
224
+ else {
225
+ writeTextFileArtifact(plan.path, plan.artifact);
226
+ }
227
+ ensureRegistrationArtifactSafe(plan);
228
+ }
229
+ const SHORTCUT_FAILURE_PREFIX = "portable registration shortcut command failed";
230
+ function readWindowsShortcut(path, env) {
231
+ const definition = readWindowsShortcutDefinition(path, env, SHORTCUT_FAILURE_PREFIX);
232
+ return definition === undefined ? undefined : { type: "windows-shortcut", ...definition };
233
+ }
234
+ function windowsShortcutMatches(actual, expected) {
235
+ return (equivalentWindowsShortcutPath(actual.targetPath, expected.targetPath) &&
236
+ equivalentWindowsShortcutPath(actual.workingDirectory, expected.workingDirectory));
237
+ }
238
+ function legacyWindowsRegistrationPlan(layout, env, home) {
239
+ return {
240
+ kind: "windows-start-menu",
241
+ path: windowsLegacyStartMenuRegistrationPath(env, home),
242
+ artifact: {
243
+ type: "text-file",
244
+ expectedContent: windowsLauncher.generateContent({
245
+ exe: layout.primaryLauncherPath,
246
+ port: undefined,
247
+ }),
248
+ fileMode: windowsLauncher.fileMode,
249
+ },
250
+ env,
251
+ };
252
+ }
253
+ function removeLegacyWindowsRegistration(layout, env, home, dryRun, io) {
254
+ const legacyPlan = legacyWindowsRegistrationPlan(layout, env, home);
141
255
  try {
142
- chmodSync(plan.path, plan.fileMode);
256
+ return removeVerifiedFileArtifact(legacyPlan, dryRun, io);
143
257
  }
144
- catch {
145
- // Best-effort on non-POSIX filesystems.
258
+ catch (error) {
259
+ io.err(`keiko portable: legacy Start Menu launcher was left in place: ${error instanceof Error ? error.message : "removal was refused"}\n`);
260
+ return false;
146
261
  }
147
262
  }
148
- export function installNativeRegistration(layout, target, managedRoot, env, home) {
263
+ export function installNativeRegistration(layout, target, managedRoot, env, home, io) {
149
264
  for (const plan of registrationPlans(layout, target, managedRoot, env, home)) {
150
- writeFileArtifact(plan);
265
+ writeRegistrationArtifact(plan);
266
+ if (plan.artifact.type === "windows-shortcut") {
267
+ // Migration from the pre-.lnk release: once the shortcut registration is verified, a
268
+ // legacy `Keiko.bat` whose content exactly matches the managed launcher contract is
269
+ // retired so users do not keep two Start Menu entries. Foreign or edited files are left
270
+ // untouched (the removal path is content-verified and fails soft, reporting the refusal
271
+ // through the installing CLI's own io).
272
+ removeLegacyWindowsRegistration(layout, env, home, false, io);
273
+ }
151
274
  }
152
275
  }
153
276
  function fileRegistrationStatus(plan) {
154
277
  try {
155
- return ensureFileArtifactSafe(plan) === "managed" ? "ok" : "missing";
278
+ return ensureRegistrationArtifactSafe(plan) === "managed" ? "ok" : "missing";
156
279
  }
157
280
  catch {
158
281
  return "action-required";
@@ -163,7 +286,7 @@ export function portableRegistrationHealth(layout, target, managedRoot, env, hom
163
286
  let missing = 0;
164
287
  let actionRequired = 0;
165
288
  for (const plan of registrationPlans(layout, target, managedRoot, env, home)) {
166
- const status = plan.expectedContent === undefined ? "ok" : fileRegistrationStatus(plan);
289
+ const status = fileRegistrationStatus(plan);
167
290
  if (status === "ok")
168
291
  ok += 1;
169
292
  else if (status === "missing")
@@ -173,20 +296,26 @@ export function portableRegistrationHealth(layout, target, managedRoot, env, hom
173
296
  }
174
297
  return { ok, missing, actionRequired };
175
298
  }
176
- export function repairUserLocalRegistration(layout, target, managedRoot, env, home) {
299
+ export function repairUserLocalRegistration(layout, target, managedRoot, env, home, io) {
177
300
  let repaired = 0;
178
301
  for (const plan of registrationPlans(layout, target, managedRoot, env, home)) {
179
- if (plan.expectedContent === undefined)
180
- continue;
181
302
  if (fileRegistrationStatus(plan) === "missing") {
182
- writeFileArtifact(plan);
303
+ writeRegistrationArtifact(plan);
183
304
  repaired += 1;
184
305
  }
306
+ // Same migration as setup: once the shortcut registration verifies, a legacy `Keiko.bat`
307
+ // whose content exactly matches the managed launcher contract is retired — a repair that
308
+ // recreates the `.lnk` must not leave the user with two Start Menu entries.
309
+ if (plan.artifact.type === "windows-shortcut" && fileRegistrationStatus(plan) === "ok") {
310
+ removeLegacyWindowsRegistration(layout, env, home, false, io);
311
+ }
185
312
  }
186
313
  return repaired;
187
314
  }
188
315
  function removeVerifiedFileArtifact(plan, dryRun, io) {
189
- const status = ensureFileArtifactSafe(plan);
316
+ if (plan.artifact.type === "directory")
317
+ return false;
318
+ const status = ensureRegistrationArtifactSafe(plan);
190
319
  if (status === "missing")
191
320
  return false;
192
321
  if (dryRun) {
@@ -284,9 +413,10 @@ export function removePortableManagedInstall(layout, io, dryRun) {
284
413
  export function removePortableRegistrationArtifacts(layout, target, managedRoot, env, home, dryRun, io) {
285
414
  let removed = 0;
286
415
  for (const plan of registrationPlans(layout, target, managedRoot, env, home)) {
287
- if (plan.expectedContent === undefined)
288
- continue;
289
416
  removed += removeVerifiedFileArtifact(plan, dryRun, io) ? 1 : 0;
290
417
  }
418
+ if (target === "windows-x64") {
419
+ removed += removeLegacyWindowsRegistration(layout, env, home, dryRun, io) ? 1 : 0;
420
+ }
291
421
  return removed;
292
422
  }
@@ -1 +1 @@
1
- {"version":3,"file":"portable.d.ts","sourceRoot":"","sources":["../src/portable.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,+BAA+B,CAAC;AAkBvC,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,WAAW,GAAG,CACjB,OAAO,EAAE,OAAO,GAAG,MAAM,EACzB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,GAAG,EAAE,SAAS,EACd,IAAI,EAAE;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,KAC3B,OAAO,CAAC,MAAM,CAAC,CAAC;AAarB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,sBAAsB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACvE,QAAQ,CAAC,eAAe,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CAClE;AAsaD,wBAAsB,cAAc,CAClC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,GAAG,EAAE,SAAS,EACd,IAAI,GAAE,iBAAsB,GAC3B,OAAO,CAAC,MAAM,CAAC,CAoCjB"}
1
+ {"version":3,"file":"portable.d.ts","sourceRoot":"","sources":["../src/portable.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,+BAA+B,CAAC;AAkBvC,OAAO,EAQL,KAAK,OAAO,EACb,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,KAAK,WAAW,GAAG,CACjB,OAAO,EAAE,OAAO,GAAG,MAAM,EACzB,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,GAAG,EAAE,SAAS,EACd,IAAI,EAAE;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,KAC3B,OAAO,CAAC,MAAM,CAAC,CAAC;AAarB,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IACxD,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,MAAM,CAAC,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,sBAAsB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;IACvE,QAAQ,CAAC,eAAe,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;CAClE;AAuaD,wBAAsB,cAAc,CAClC,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,GAAG,EAAE,SAAS,EACd,IAAI,GAAE,iBAAsB,GAC3B,OAAO,CAAC,MAAM,CAAC,CAoCjB"}
@@ -155,6 +155,7 @@ async function upgradeManagedWhileLocked(options, source, current, io, env, deps
155
155
  env,
156
156
  home: options.home,
157
157
  now: deps.now(),
158
+ io,
158
159
  });
159
160
  io.out("Keiko portable upgrade installed from downloaded package.\n");
160
161
  return await launchManaged(options.target, upgraded, io, env, options.stateDir, deps);
@@ -1 +1 @@
1
- {"version":3,"file":"repair.d.ts","sourceRoot":"","sources":["../src/repair.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA6FzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACpD;AA0pBD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,GAAG,EAAE,SAAS,EACd,IAAI,GAAE,aAAkB,GACvB,MAAM,CAyCR"}
1
+ {"version":3,"file":"repair.d.ts","sourceRoot":"","sources":["../src/repair.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AA6FzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,MAAM,CAAC;IAChC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;CACpD;AA4pBD,wBAAgB,YAAY,CAC1B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,EAAE,KAAK,EACT,GAAG,EAAE,SAAS,EACd,IAAI,GAAE,aAAkB,GACvB,MAAM,CAyCR"}
@@ -371,7 +371,7 @@ function checkPortableManagedInstall(stateDir, env, homedir) {
371
371
  }
372
372
  return ok("Portable managed install", "attested portable-managed install verified");
373
373
  }
374
- function checkPortableRegistration(stateDir, env, homedir, dryRun) {
374
+ function checkPortableRegistration(stateDir, env, homedir, dryRun, io) {
375
375
  const recordResult = readPortableRecordForRepair(stateDir, env, homedir);
376
376
  if (recordResult.kind === "error") {
377
377
  return action("Portable registration", recordResult.message);
@@ -387,7 +387,7 @@ function checkPortableRegistration(stateDir, env, homedir, dryRun) {
387
387
  const status = portableRegistrationStatus(health, dryRun);
388
388
  if (status !== "repair")
389
389
  return status;
390
- const repaired = repairUserLocalRegistration(record.layout, record.target, record.managedRoot, env, homedir);
390
+ const repaired = repairUserLocalRegistration(record.layout, record.target, record.managedRoot, env, homedir, io);
391
391
  return fixed("Portable registration", `repaired ${String(repaired)} user-local registration artifact(s)`);
392
392
  }
393
393
  function portableRegistrationStatus(health, dryRun) {
@@ -586,7 +586,7 @@ export function runRepairCli(args, io, env, deps = {}) {
586
586
  ...checkRuntimeStateArtifacts(stateDir, parsed.dryRun),
587
587
  checkLauncherRecords(stateDir, resolved.homedir(), io, parsed.dryRun),
588
588
  checkPortableManagedInstall(stateDir, env, resolved.homedir()),
589
- checkPortableRegistration(stateDir, env, resolved.homedir(), parsed.dryRun),
589
+ checkPortableRegistration(stateDir, env, resolved.homedir(), parsed.dryRun, io),
590
590
  ]
591
591
  : [stateRootAction];
592
592
  const results = [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal CLI package: command modules for the `keiko` binary shipped via the root product package (ADR-0019). Not published independently.",
@@ -25,18 +25,18 @@
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",
30
- "@oscharko-dev/keiko-model-gateway": "0.3.1",
31
- "@oscharko-dev/keiko-workspace": "0.3.1",
32
- "@oscharko-dev/keiko-evaluations": "0.3.1",
33
- "@oscharko-dev/keiko-evidence": "0.3.1",
34
- "@oscharko-dev/keiko-verification": "0.3.1",
35
- "@oscharko-dev/keiko-harness": "0.3.1",
36
- "@oscharko-dev/keiko-sdk": "0.3.1",
37
- "@oscharko-dev/keiko-workflows": "0.3.1",
38
- "@oscharko-dev/keiko-server": "0.3.1",
39
- "@oscharko-dev/keiko-memory-vault": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6",
30
+ "@oscharko-dev/keiko-model-gateway": "0.3.6",
31
+ "@oscharko-dev/keiko-workspace": "0.3.6",
32
+ "@oscharko-dev/keiko-evaluations": "0.3.6",
33
+ "@oscharko-dev/keiko-evidence": "0.3.6",
34
+ "@oscharko-dev/keiko-verification": "0.3.6",
35
+ "@oscharko-dev/keiko-harness": "0.3.6",
36
+ "@oscharko-dev/keiko-sdk": "0.3.6",
37
+ "@oscharko-dev/keiko-workflows": "0.3.6",
38
+ "@oscharko-dev/keiko-server": "0.3.6",
39
+ "@oscharko-dev/keiko-memory-vault": "0.3.6"
40
40
  },
41
41
  "private": true
42
42
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-connectors",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal connectors package: governed Atlassian (Confluence/Jira) connector domain logic — encrypted credential custody over the shared secret vault, opaque authRef resolution, the injectable AtlassianHttpPort transport seam, and the bounded connection-verification probe (ADR-0128, ADR-0019). No direct network or filesystem capability; keiko-server is the sole composition root. 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,5 +1,5 @@
1
- export declare const KEIKO_CONTRACTS_VERSION: "0.3.1";
2
- export declare const KEIKO_PRODUCT_VERSION: "0.3.1";
1
+ export declare const KEIKO_CONTRACTS_VERSION: "0.3.6";
2
+ export declare const KEIKO_PRODUCT_VERSION: "0.3.6";
3
3
  export { clampUnit } from "./numeric.js";
4
4
  export { binaryNdcgAtK, mean } from "./eval-metrics.js";
5
5
  export { sortedStrings } from "./stable-order.js";
@@ -16,12 +16,12 @@
16
16
  // KnowledgeCapsule / CapsuleSet primitives, document and vector lineage records, connector
17
17
  // graph state, and pure validation helpers. No implementation — types only. Implementation
18
18
  // lands in subsequent epic children.
19
- export const KEIKO_CONTRACTS_VERSION = "0.3.1";
19
+ export const KEIKO_CONTRACTS_VERSION = "0.3.6";
20
20
  // Single-source product version. Surfaced as `keiko --version`, in the BFF healthcheck
21
21
  // response, and as the SDK's exported `SDK_VERSION` constant. Kept here on the leaf
22
22
  // package so every consumer reaches it through one stable import path. Bump in lockstep
23
23
  // with the root package.json "version" field as part of every release.
24
- export const KEIKO_PRODUCT_VERSION = "0.3.1";
24
+ export const KEIKO_PRODUCT_VERSION = "0.3.6";
25
25
  // ─── Shared numeric primitive (GEN-DUP-SEMANTIC-003) ────────────────────────────
26
26
  export { clampUnit } from "./numeric.js";
27
27
  // ─── Deterministic retrieval-evaluation primitives (ADR-0152 D5 amendment, Issue #2635) ──
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-contracts",
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 contracts. Not published independently.",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-evaluations",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal evaluations package: deterministic evaluation harness — scripted ModelPort fixtures, six scored dimensions, surface-parity check, scorecard renderer, and the offline-vs-live model provider selector (ADR-0012, ADR-0019). Not published independently.",
@@ -26,14 +26,14 @@
26
26
  "node": ">=24.18.0 <25"
27
27
  },
28
28
  "dependencies": {
29
- "@oscharko-dev/keiko-contracts": "0.3.1",
30
- "@oscharko-dev/keiko-evidence": "0.3.1",
31
- "@oscharko-dev/keiko-harness": "0.3.1",
32
- "@oscharko-dev/keiko-local-knowledge": "0.3.1",
33
- "@oscharko-dev/keiko-model-gateway": "0.3.1",
34
- "@oscharko-dev/keiko-security": "0.3.1",
35
- "@oscharko-dev/keiko-tools": "0.3.1",
36
- "@oscharko-dev/keiko-workflows": "0.3.1"
29
+ "@oscharko-dev/keiko-contracts": "0.3.6",
30
+ "@oscharko-dev/keiko-evidence": "0.3.6",
31
+ "@oscharko-dev/keiko-harness": "0.3.6",
32
+ "@oscharko-dev/keiko-local-knowledge": "0.3.6",
33
+ "@oscharko-dev/keiko-model-gateway": "0.3.6",
34
+ "@oscharko-dev/keiko-security": "0.3.6",
35
+ "@oscharko-dev/keiko-tools": "0.3.6",
36
+ "@oscharko-dev/keiko-workflows": "0.3.6"
37
37
  },
38
38
  "private": true
39
39
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_EVIDENCE_VERSION: "0.3.1";
1
+ export declare const KEIKO_EVIDENCE_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_EVIDENCE_VERSION = "0.3.1";
1
+ export const KEIKO_EVIDENCE_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-evidence",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "Internal evidence package: Keiko evidence manifests, redacted-by-construction builder, retention/rotation, EvidenceStore port + node adapter, side-file writer, and workflow-evidence mapping (ADR-0010 + ADR-0017 + ADR-0019). Not published independently.",
@@ -25,9 +25,9 @@
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",
30
- "@oscharko-dev/keiko-workspace": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6",
30
+ "@oscharko-dev/keiko-workspace": "0.3.6"
31
31
  },
32
32
  "private": true
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-git",
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 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.1";
1
+ export declare const KEIKO_HARNESS_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -2,4 +2,4 @@
2
2
  // observe the public-surface generation at runtime. This is the PACKAGE version, distinct
3
3
  // from HARNESS_VERSION (the runtime/event-schema version that lives in @oscharko-dev/keiko-contracts
4
4
  // — re-exported from the package barrel so consumers see a single import source).
5
- export const KEIKO_HARNESS_VERSION = "0.3.1";
5
+ export const KEIKO_HARNESS_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-harness",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -25,11 +25,11 @@
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",
30
- "@oscharko-dev/keiko-model-gateway": "0.3.1",
31
- "@oscharko-dev/keiko-workspace": "0.3.1",
32
- "@oscharko-dev/keiko-tools": "0.3.1"
28
+ "@oscharko-dev/keiko-contracts": "0.3.6",
29
+ "@oscharko-dev/keiko-security": "0.3.6",
30
+ "@oscharko-dev/keiko-model-gateway": "0.3.6",
31
+ "@oscharko-dev/keiko-workspace": "0.3.6",
32
+ "@oscharko-dev/keiko-tools": "0.3.6"
33
33
  },
34
34
  "private": true
35
35
  }
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_LOCAL_KNOWLEDGE_VERSION: "0.3.1";
1
+ export declare const KEIKO_LOCAL_KNOWLEDGE_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Package version literal for @oscharko-dev/keiko-local-knowledge. Bumped lockstep with the
2
2
  // package.json "version" field so a value-import gives consumers a single source of truth
3
3
  // without parsing JSON at runtime.
4
- export const KEIKO_LOCAL_KNOWLEDGE_VERSION = "0.3.1";
4
+ export const KEIKO_LOCAL_KNOWLEDGE_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-local-knowledge",
3
- "version": "0.3.1",
3
+ "version": "0.3.6",
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.",
@@ -29,10 +29,10 @@
29
29
  "node": ">=24.18.0 <25"
30
30
  },
31
31
  "dependencies": {
32
- "@oscharko-dev/keiko-contracts": "0.3.1",
33
- "@oscharko-dev/keiko-model-gateway": "0.3.1",
34
- "@oscharko-dev/keiko-security": "0.3.1",
35
- "@oscharko-dev/keiko-workspace": "0.3.1",
32
+ "@oscharko-dev/keiko-contracts": "0.3.6",
33
+ "@oscharko-dev/keiko-model-gateway": "0.3.6",
34
+ "@oscharko-dev/keiko-security": "0.3.6",
35
+ "@oscharko-dev/keiko-workspace": "0.3.6",
36
36
  "pdfjs-dist": "^6.2.108",
37
37
  "yauzl": "^3.3.2"
38
38
  },
@@ -1,2 +1,2 @@
1
- export declare const KEIKO_MEMORY_CAPTURE_VERSION: "0.3.1";
1
+ export declare const KEIKO_MEMORY_CAPTURE_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_CAPTURE_VERSION = "0.3.1";
1
+ export const KEIKO_MEMORY_CAPTURE_VERSION = "0.3.6";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscharko-dev/keiko-memory-capture",
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-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.",
@@ -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_CONSOLIDATION_VERSION: "0.3.1";
1
+ export declare const KEIKO_MEMORY_CONSOLIDATION_VERSION: "0.3.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- export const KEIKO_MEMORY_CONSOLIDATION_VERSION = "0.3.1";
1
+ export const KEIKO_MEMORY_CONSOLIDATION_VERSION = "0.3.6";