@wildo-ai/wildo-cli 1.1.2 → 1.1.3

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 (947) hide show
  1. package/dist/bin/wildo.d.ts.map +1 -1
  2. package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +1 -1
  3. package/dist/src/commands/acp/probe.command.d.ts.map +1 -1
  4. package/dist/src/commands/acp/probe.command.js +13 -0
  5. package/dist/src/commands/acp/probe.command.js.map +1 -1
  6. package/dist/src/commands/align-deps.command.d.ts.map +1 -1
  7. package/dist/src/commands/assets/sync.command.d.ts +6 -0
  8. package/dist/src/commands/assets/sync.command.d.ts.map +1 -1
  9. package/dist/src/commands/assets/sync.command.js +13 -3
  10. package/dist/src/commands/assets/sync.command.js.map +1 -1
  11. package/dist/src/commands/brand/propagate.command.d.ts.map +1 -1
  12. package/dist/src/commands/compose.command.d.ts.map +1 -1
  13. package/dist/src/commands/compose.command.js +16 -0
  14. package/dist/src/commands/compose.command.js.map +1 -1
  15. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +1 -1
  16. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +1 -1
  17. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +1 -1
  18. package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +1 -1
  19. package/dist/src/commands/config/__tests__/sync.command.test.js +115 -8
  20. package/dist/src/commands/config/__tests__/sync.command.test.js.map +1 -1
  21. package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +1 -1
  22. package/dist/src/commands/config/mutate.command.d.ts.map +1 -1
  23. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  24. package/dist/src/commands/config/sync.command.d.ts +36 -0
  25. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  26. package/dist/src/commands/config/sync.command.js +61 -7
  27. package/dist/src/commands/config/sync.command.js.map +1 -1
  28. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  29. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +19 -0
  30. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +1 -0
  31. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +106 -0
  32. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +1 -0
  33. package/dist/src/commands/context/coherence.command.d.ts.map +1 -1
  34. package/dist/src/commands/context/context-command.utils.d.ts.map +1 -1
  35. package/dist/src/commands/context/health.command.d.ts.map +1 -1
  36. package/dist/src/commands/context/info.command.d.ts.map +1 -1
  37. package/dist/src/commands/context/journey.command.d.ts +6 -2
  38. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  39. package/dist/src/commands/context/journey.command.js +8 -4
  40. package/dist/src/commands/context/journey.command.js.map +1 -1
  41. package/dist/src/commands/context/jurisdictions.command.d.ts +36 -0
  42. package/dist/src/commands/context/jurisdictions.command.d.ts.map +1 -0
  43. package/dist/src/commands/context/jurisdictions.command.js +115 -0
  44. package/dist/src/commands/context/jurisdictions.command.js.map +1 -0
  45. package/dist/src/commands/context/list.command.d.ts.map +1 -1
  46. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  47. package/dist/src/commands/db/diff.command.d.ts.map +1 -1
  48. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  49. package/dist/src/commands/db/migrate.command.d.ts.map +1 -1
  50. package/dist/src/commands/db/resolve.command.d.ts.map +1 -1
  51. package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +1 -1
  52. package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +1 -1
  53. package/dist/src/commands/dev/__tests__/start.command.test.js +6 -6
  54. package/dist/src/commands/dev/__tests__/start.command.test.js.map +1 -1
  55. package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +1 -1
  56. package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +1 -1
  57. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +71 -0
  58. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +1 -1
  59. package/dist/src/commands/dev/charts-audit.command.d.ts.map +1 -1
  60. package/dist/src/commands/dev/charts-audit.command.js +1 -1
  61. package/dist/src/commands/dev/charts-audit.command.js.map +1 -1
  62. package/dist/src/commands/dev/design-tokens-generate.command.d.ts.map +1 -1
  63. package/dist/src/commands/dev/design-tokens-init.command.d.ts.map +1 -1
  64. package/dist/src/commands/dev/design-tokens-validate.command.d.ts.map +1 -1
  65. package/dist/src/commands/dev/force-stop.command.d.ts.map +1 -1
  66. package/dist/src/commands/dev/resources.command.d.ts.map +1 -1
  67. package/dist/src/commands/dev/start.command.d.ts.map +1 -1
  68. package/dist/src/commands/dev/start.command.js +8 -7
  69. package/dist/src/commands/dev/start.command.js.map +1 -1
  70. package/dist/src/commands/dev/stop-all.command.d.ts.map +1 -1
  71. package/dist/src/commands/dev/sync-csp.command.d.ts.map +1 -1
  72. package/dist/src/commands/dev/sync-csp.command.js +35 -7
  73. package/dist/src/commands/dev/sync-csp.command.js.map +1 -1
  74. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +2 -0
  75. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +1 -0
  76. package/dist/src/commands/docs/__tests__/publish.command.test.js +101 -0
  77. package/dist/src/commands/docs/__tests__/publish.command.test.js.map +1 -0
  78. package/dist/src/commands/docs/publish.command.d.ts +29 -0
  79. package/dist/src/commands/docs/publish.command.d.ts.map +1 -0
  80. package/dist/src/commands/docs/publish.command.js +82 -0
  81. package/dist/src/commands/docs/publish.command.js.map +1 -0
  82. package/dist/src/commands/frontend/publish.command.d.ts.map +1 -1
  83. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +1 -1
  84. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +1 -1
  85. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +1 -1
  86. package/dist/src/commands/fwk/audit.command.d.ts.map +1 -1
  87. package/dist/src/commands/fwk/dev-skills.command.d.ts.map +1 -1
  88. package/dist/src/commands/fwk/dev-skills.command.js +12 -0
  89. package/dist/src/commands/fwk/dev-skills.command.js.map +1 -1
  90. package/dist/src/commands/fwk/generate-docs.command.d.ts.map +1 -1
  91. package/dist/src/commands/fwk/generate-providers.command.d.ts +21 -0
  92. package/dist/src/commands/fwk/generate-providers.command.d.ts.map +1 -0
  93. package/dist/src/commands/fwk/generate-providers.command.js +309 -0
  94. package/dist/src/commands/fwk/generate-providers.command.js.map +1 -0
  95. package/dist/src/commands/fwk/graph.command.d.ts.map +1 -1
  96. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  97. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  98. package/dist/src/commands/fwk/publish-npm.command.d.ts.map +1 -1
  99. package/dist/src/commands/fwk/version-bump.command.d.ts.map +1 -1
  100. package/dist/src/commands/fwk/version-set.command.d.ts.map +1 -1
  101. package/dist/src/commands/fwk/version-show.command.d.ts.map +1 -1
  102. package/dist/src/commands/fwk/version-show.command.js +9 -1
  103. package/dist/src/commands/fwk/version-show.command.js.map +1 -1
  104. package/dist/src/commands/fwk/version-sync.command.d.ts.map +1 -1
  105. package/dist/src/commands/fwk/what-touches.command.d.ts.map +1 -1
  106. package/dist/src/commands/fwk/wt-status.command.d.ts +13 -4
  107. package/dist/src/commands/fwk/wt-status.command.d.ts.map +1 -1
  108. package/dist/src/commands/fwk/wt-status.command.js +34 -5
  109. package/dist/src/commands/fwk/wt-status.command.js.map +1 -1
  110. package/dist/src/commands/fwk/wt-tail.command.d.ts +12 -6
  111. package/dist/src/commands/fwk/wt-tail.command.d.ts.map +1 -1
  112. package/dist/src/commands/fwk/wt-tail.command.js +40 -10
  113. package/dist/src/commands/fwk/wt-tail.command.js.map +1 -1
  114. package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +1 -1
  115. package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -1
  116. package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +1 -1
  117. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  118. package/dist/src/commands/generate/email-command.utils.js +1 -0
  119. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  120. package/dist/src/commands/generate/email-preview.command.d.ts.map +1 -1
  121. package/dist/src/commands/generate/email-status.command.d.ts.map +1 -1
  122. package/dist/src/commands/generate/email-test-send.command.d.ts.map +1 -1
  123. package/dist/src/commands/generate/email-translate.command.d.ts.map +1 -1
  124. package/dist/src/commands/generate/email.command.d.ts.map +1 -1
  125. package/dist/src/commands/generate/labelling-command.utils.d.ts.map +1 -1
  126. package/dist/src/commands/generate/labelling-command.utils.js +1 -0
  127. package/dist/src/commands/generate/labelling-command.utils.js.map +1 -1
  128. package/dist/src/commands/generate/labels-plan.command.d.ts.map +1 -1
  129. package/dist/src/commands/generate/labels.command.d.ts.map +1 -1
  130. package/dist/src/commands/generate/translate.command.d.ts.map +1 -1
  131. package/dist/src/commands/help.command.d.ts.map +1 -1
  132. package/dist/src/commands/help.command.js +2 -0
  133. package/dist/src/commands/help.command.js.map +1 -1
  134. package/dist/src/commands/init.command.d.ts +17 -0
  135. package/dist/src/commands/init.command.d.ts.map +1 -1
  136. package/dist/src/commands/init.command.js +57 -4
  137. package/dist/src/commands/init.command.js.map +1 -1
  138. package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +1 -1
  139. package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +1 -1
  140. package/dist/src/commands/local/__tests__/dev.command.test.js +60 -0
  141. package/dist/src/commands/local/__tests__/dev.command.test.js.map +1 -1
  142. package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +1 -1
  143. package/dist/src/commands/local/__tests__/doctor.command.test.js +16 -2
  144. package/dist/src/commands/local/__tests__/doctor.command.test.js.map +1 -1
  145. package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +1 -1
  146. package/dist/src/commands/local/__tests__/init.command.test.js +28 -1
  147. package/dist/src/commands/local/__tests__/init.command.test.js.map +1 -1
  148. package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +1 -1
  149. package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +1 -1
  150. package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +1 -1
  151. package/dist/src/commands/local/__tests__/up.command.test.js +7 -0
  152. package/dist/src/commands/local/__tests__/up.command.test.js.map +1 -1
  153. package/dist/src/commands/local/dev-status.command.d.ts.map +1 -1
  154. package/dist/src/commands/local/dev.command.d.ts +6 -3
  155. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  156. package/dist/src/commands/local/dev.command.js +13 -4
  157. package/dist/src/commands/local/dev.command.js.map +1 -1
  158. package/dist/src/commands/local/doctor.command.d.ts +9 -0
  159. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  160. package/dist/src/commands/local/doctor.command.js +24 -6
  161. package/dist/src/commands/local/doctor.command.js.map +1 -1
  162. package/dist/src/commands/local/down.command.d.ts.map +1 -1
  163. package/dist/src/commands/local/init.command.d.ts.map +1 -1
  164. package/dist/src/commands/local/init.command.js +11 -2
  165. package/dist/src/commands/local/init.command.js.map +1 -1
  166. package/dist/src/commands/local/logs.command.d.ts.map +1 -1
  167. package/dist/src/commands/local/reinit.command.d.ts.map +1 -1
  168. package/dist/src/commands/local/reset.command.d.ts.map +1 -1
  169. package/dist/src/commands/local/status.command.d.ts.map +1 -1
  170. package/dist/src/commands/local/up.command.d.ts.map +1 -1
  171. package/dist/src/commands/local/up.command.js.map +1 -1
  172. package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +1 -1
  173. package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +1 -1
  174. package/dist/src/commands/lock/check.command.d.ts.map +1 -1
  175. package/dist/src/commands/lock/check.command.js +3 -10
  176. package/dist/src/commands/lock/check.command.js.map +1 -1
  177. package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +1 -1
  178. package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +1 -1
  179. package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -1
  180. package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +1 -1
  181. package/dist/src/commands/market/generate.command.d.ts.map +1 -1
  182. package/dist/src/commands/market/market-command.utils.d.ts.map +1 -1
  183. package/dist/src/commands/market/market-command.utils.js +1 -0
  184. package/dist/src/commands/market/market-command.utils.js.map +1 -1
  185. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +2 -0
  186. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +1 -0
  187. package/dist/src/commands/providers/__tests__/required-inputs.test.js +35 -0
  188. package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +1 -0
  189. package/dist/src/commands/providers/show.command.d.ts +51 -0
  190. package/dist/src/commands/providers/show.command.d.ts.map +1 -0
  191. package/dist/src/commands/providers/show.command.js +152 -0
  192. package/dist/src/commands/providers/show.command.js.map +1 -0
  193. package/dist/src/commands/registry/add.command.d.ts.map +1 -1
  194. package/dist/src/commands/registry/info.command.d.ts.map +1 -1
  195. package/dist/src/commands/registry/lockfile-smoke.command.d.ts.map +1 -1
  196. package/dist/src/commands/registry/login.command.d.ts.map +1 -1
  197. package/dist/src/commands/registry/logout.command.d.ts.map +1 -1
  198. package/dist/src/commands/registry/ping.command.d.ts.map +1 -1
  199. package/dist/src/commands/registry/publish.command.d.ts.map +1 -1
  200. package/dist/src/commands/registry/remove.command.d.ts.map +1 -1
  201. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  202. package/dist/src/commands/registry/search.command.d.ts.map +1 -1
  203. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  204. package/dist/src/commands/registry/whoami.command.d.ts.map +1 -1
  205. package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +1 -1
  206. package/dist/src/commands/remote/create.command.d.ts.map +1 -1
  207. package/dist/src/commands/remote/list.command.d.ts.map +1 -1
  208. package/dist/src/commands/remote/status.command.d.ts.map +1 -1
  209. package/dist/src/commands/remote/sync.command.d.ts.map +1 -1
  210. package/dist/src/commands/setup.command.d.ts.map +1 -1
  211. package/dist/src/commands/version.command.d.ts.map +1 -1
  212. package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +1 -1
  213. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  214. package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +1 -1
  215. package/dist/src/commands/workbench/open.command.d.ts.map +1 -1
  216. package/dist/src/commands/workbench/status.command.d.ts.map +1 -1
  217. package/dist/src/infrastructure/errors/error.utils.d.ts.map +1 -1
  218. package/dist/src/infrastructure/io/file.utils.d.ts.map +1 -1
  219. package/dist/src/infrastructure/io/io.schemas.d.ts.map +1 -1
  220. package/dist/src/infrastructure/io/template-processor.d.ts.map +1 -1
  221. package/dist/src/infrastructure/logger/logger.service.d.ts.map +1 -1
  222. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +1 -1
  223. package/dist/src/infrastructure/process/spawn.utils.d.ts.map +1 -1
  224. package/dist/src/infrastructure/ui/formatting.service.d.ts.map +1 -1
  225. package/dist/src/infrastructure/ui/interaction-engine.service.d.ts.map +1 -1
  226. package/dist/src/infrastructure/ui/markdown-renderer.service.d.ts.map +1 -1
  227. package/dist/src/infrastructure/ui/ui.schemas.d.ts.map +1 -1
  228. package/dist/src/infrastructure/utils/string.utils.d.ts.map +1 -1
  229. package/dist/src/infrastructure/validation/validator.service.d.ts.map +1 -1
  230. package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +1 -1
  231. package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +1 -1
  232. package/dist/src/kernel/__tests__/command-registry.test.js +9 -0
  233. package/dist/src/kernel/__tests__/command-registry.test.js.map +1 -1
  234. package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +1 -1
  235. package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +1 -1
  236. package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +1 -1
  237. package/dist/src/kernel/__tests__/hooks.test.d.ts.map +1 -1
  238. package/dist/src/kernel/base-command.d.ts.map +1 -1
  239. package/dist/src/kernel/bootstrap.d.ts.map +1 -1
  240. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  241. package/dist/src/kernel/command-registry.js +6 -0
  242. package/dist/src/kernel/command-registry.js.map +1 -1
  243. package/dist/src/kernel/command-runner.d.ts.map +1 -1
  244. package/dist/src/kernel/command-scope-utils.d.ts.map +1 -1
  245. package/dist/src/kernel/flag-utils.d.ts.map +1 -1
  246. package/dist/src/kernel/hooks.d.ts.map +1 -1
  247. package/dist/src/kernel/logger.d.ts.map +1 -1
  248. package/dist/src/kernel/types.d.ts +17 -1
  249. package/dist/src/kernel/types.d.ts.map +1 -1
  250. package/dist/src/kernel/types.js +16 -0
  251. package/dist/src/kernel/types.js.map +1 -1
  252. package/dist/src/main.d.ts.map +1 -1
  253. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +1 -1
  254. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.d.ts.map +1 -1
  255. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js +2 -2
  256. package/dist/src/modules/domain/credentials/__tests__/providers-config.module.test.js.map +1 -1
  257. package/dist/src/modules/domain/credentials/admin-user.module.d.ts.map +1 -1
  258. package/dist/src/modules/domain/credentials/module.types.d.ts.map +1 -1
  259. package/dist/src/modules/domain/credentials/providers-config.module.d.ts +17 -9
  260. package/dist/src/modules/domain/credentials/providers-config.module.d.ts.map +1 -1
  261. package/dist/src/modules/domain/credentials/providers-config.module.js +18 -10
  262. package/dist/src/modules/domain/credentials/providers-config.module.js.map +1 -1
  263. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +1 -1
  264. package/dist/src/modules/domain/environment/database-config.module.d.ts.map +1 -1
  265. package/dist/src/modules/domain/environment/module.types.d.ts.map +1 -1
  266. package/dist/src/modules/domain/environment/paths-config.module.d.ts.map +1 -1
  267. package/dist/src/modules/domain/environment/runtime-selector.module.d.ts.map +1 -1
  268. package/dist/src/modules/domain/environment/runtime-semantics.module.d.ts.map +1 -1
  269. package/dist/src/modules/domain/module.types.d.ts.map +1 -1
  270. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +1 -1
  271. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +1 -1
  272. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +1 -1
  273. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +1 -1
  274. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +1 -1
  275. package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +1 -1
  276. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +22 -29
  277. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +1 -1
  278. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +1 -1
  279. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +1 -1
  280. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +1 -1
  281. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +1 -1
  282. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +2 -2
  283. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +1 -1
  284. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +1 -1
  285. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +19 -0
  286. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +1 -1
  287. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +1 -1
  288. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +1 -1
  289. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +1 -1
  290. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +1 -1
  291. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +1 -1
  292. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +1 -1
  293. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +1 -1
  294. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +1 -1
  295. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +1 -1
  296. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -1
  297. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +1 -1
  298. package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +1 -1
  299. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +8 -1
  300. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +1 -1
  301. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +1 -1
  302. package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +1 -1
  303. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +35 -0
  304. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +1 -1
  305. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +2 -0
  306. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +1 -0
  307. package/dist/src/services/application/__tests__/provider-package-links.service.test.js +156 -0
  308. package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +1 -0
  309. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +1 -1
  310. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +28 -0
  311. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +1 -1
  312. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +1 -1
  313. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -1
  314. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +1 -1
  315. package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +1 -1
  316. package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +1 -1
  317. package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +1 -1
  318. package/dist/src/services/application/app-bootstrap.service.d.ts +34 -10
  319. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  320. package/dist/src/services/application/app-bootstrap.service.js +62 -48
  321. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  322. package/dist/src/services/application/app-env.service.d.ts.map +1 -1
  323. package/dist/src/services/application/app-local-runtime-addresses.service.d.ts.map +1 -1
  324. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  325. package/dist/src/services/application/app-schema-bootstrap.service.d.ts.map +1 -1
  326. package/dist/src/services/application/application-assets-delivery.service.d.ts +22 -1
  327. package/dist/src/services/application/application-assets-delivery.service.d.ts.map +1 -1
  328. package/dist/src/services/application/application-assets-delivery.service.js +35 -7
  329. package/dist/src/services/application/application-assets-delivery.service.js.map +1 -1
  330. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  331. package/dist/src/services/application/application-dev-port-offsets.d.ts.map +1 -1
  332. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  333. package/dist/src/services/application/application-root.utils.d.ts.map +1 -1
  334. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  335. package/dist/src/services/application/application-runtime-bootstrap.service.js +0 -2
  336. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  337. package/dist/src/services/application/dev-orchestrator.service.d.ts.map +1 -1
  338. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  339. package/dist/src/services/application/existing-app-bootstrap.service.d.ts.map +1 -1
  340. package/dist/src/services/application/local-app-reinit.service.d.ts.map +1 -1
  341. package/dist/src/services/application/local-application-initialization.service.d.ts.map +1 -1
  342. package/dist/src/services/application/local-application-initialization.service.js +22 -6
  343. package/dist/src/services/application/local-application-initialization.service.js.map +1 -1
  344. package/dist/src/services/application/provider-package-links.service.d.ts +130 -0
  345. package/dist/src/services/application/provider-package-links.service.d.ts.map +1 -0
  346. package/dist/src/services/application/provider-package-links.service.js +280 -0
  347. package/dist/src/services/application/provider-package-links.service.js.map +1 -0
  348. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  349. package/dist/src/services/application/provider-runtime-sync.service.js +6 -20
  350. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  351. package/dist/src/services/application/saas-scaffold.service.d.ts.map +1 -1
  352. package/dist/src/services/application/saas-scaffold.service.js +11 -2
  353. package/dist/src/services/application/saas-scaffold.service.js.map +1 -1
  354. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  355. package/dist/src/services/application/saas-skeleton.service.js +24 -24
  356. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  357. package/dist/src/services/brand/__tests__/brand-asset-delivery.test.d.ts.map +1 -1
  358. package/dist/src/services/brand/brand-asset-projection.d.ts.map +1 -1
  359. package/dist/src/services/brand/brand-destination-utils.d.ts.map +1 -1
  360. package/dist/src/services/brand/brand-propagation.types.d.ts.map +1 -1
  361. package/dist/src/services/brand/brand-ssot-reader.d.ts.map +1 -1
  362. package/dist/src/services/brand/destinations/app-public.destination.d.ts.map +1 -1
  363. package/dist/src/services/brand/destinations/runtime-app-config.destination.d.ts.map +1 -1
  364. package/dist/src/services/brand/destinations/technical-doc-static.destination.d.ts.map +1 -1
  365. package/dist/src/services/brand/destinations/website-og.destination.d.ts.map +1 -1
  366. package/dist/src/services/brand/destinations/website-public.destination.d.ts.map +1 -1
  367. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +2 -0
  368. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +1 -0
  369. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +93 -0
  370. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +1 -0
  371. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +1 -1
  372. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +25 -5
  373. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +1 -1
  374. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +1 -1
  375. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +109 -51
  376. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +1 -1
  377. package/dist/src/services/catalog/service-address-resolver.service.d.ts +0 -1
  378. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  379. package/dist/src/services/catalog/service-address-resolver.service.js +23 -7
  380. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  381. package/dist/src/services/catalog/service-catalog.schemas.d.ts +148 -51
  382. package/dist/src/services/catalog/service-catalog.schemas.d.ts.map +1 -1
  383. package/dist/src/services/catalog/service-catalog.schemas.js +230 -78
  384. package/dist/src/services/catalog/service-catalog.schemas.js.map +1 -1
  385. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +2 -0
  386. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +1 -0
  387. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +110 -0
  388. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +1 -0
  389. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts +32 -0
  390. package/dist/src/services/coding-agents/acp-conformance-probe.service.d.ts.map +1 -1
  391. package/dist/src/services/coding-agents/acp-conformance-probe.service.js +165 -7
  392. package/dist/src/services/coding-agents/acp-conformance-probe.service.js.map +1 -1
  393. package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +1 -1
  394. package/dist/src/services/companion/__tests__/companion-client.service.test.js +96 -0
  395. package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +1 -1
  396. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +1 -1
  397. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +1 -1
  398. package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +1 -1
  399. package/dist/src/services/companion/companion-client-options.utils.d.ts.map +1 -1
  400. package/dist/src/services/companion/companion-client-options.utils.js +6 -0
  401. package/dist/src/services/companion/companion-client-options.utils.js.map +1 -1
  402. package/dist/src/services/companion/companion-client.service.d.ts.map +1 -1
  403. package/dist/src/services/companion/companion-client.service.js +34 -0
  404. package/dist/src/services/companion/companion-client.service.js.map +1 -1
  405. package/dist/src/services/companion/companion-lifecycle.service.d.ts.map +1 -1
  406. package/dist/src/services/companion/companion-local-token.utils.d.ts +20 -0
  407. package/dist/src/services/companion/companion-local-token.utils.d.ts.map +1 -0
  408. package/dist/src/services/companion/companion-local-token.utils.js +62 -0
  409. package/dist/src/services/companion/companion-local-token.utils.js.map +1 -0
  410. package/dist/src/services/companion/companion.schemas.d.ts +12 -0
  411. package/dist/src/services/companion/companion.schemas.d.ts.map +1 -1
  412. package/dist/src/services/companion/companion.schemas.js.map +1 -1
  413. package/dist/src/services/companion/git-helper.service.d.ts.map +1 -1
  414. package/dist/src/services/companion/local-companion-authority.service.d.ts.map +1 -1
  415. package/dist/src/services/companion/local-companion-authority.service.js +9 -30
  416. package/dist/src/services/companion/local-companion-authority.service.js.map +1 -1
  417. package/dist/src/services/companion/workbench-browser-launcher.service.d.ts.map +1 -1
  418. package/dist/src/services/companion/workbench-cli.service.d.ts.map +1 -1
  419. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +1 -1
  420. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +7 -0
  421. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +1 -1
  422. package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +1 -1
  423. package/dist/src/services/context/context-manager.service.d.ts +9 -0
  424. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  425. package/dist/src/services/context/context-manager.service.js +13 -1
  426. package/dist/src/services/context/context-manager.service.js.map +1 -1
  427. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  428. package/dist/src/services/context/state-manager.service.d.ts.map +1 -1
  429. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +28 -0
  430. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +1 -0
  431. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +197 -0
  432. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +1 -0
  433. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +2 -0
  434. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +1 -0
  435. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +327 -0
  436. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +1 -0
  437. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +1 -1
  438. package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +1 -1
  439. package/dist/src/services/credentials/ci-secrets-adapter.service.d.ts.map +1 -1
  440. package/dist/src/services/credentials/ci-secrets-adapter.service.js +98 -37
  441. package/dist/src/services/credentials/ci-secrets-adapter.service.js.map +1 -1
  442. package/dist/src/services/credentials/composed-provider-catalogue.d.ts +175 -0
  443. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -0
  444. package/dist/src/services/credentials/composed-provider-catalogue.js +228 -0
  445. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -0
  446. package/dist/src/services/credentials/credentials.schemas.d.ts +2 -22
  447. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  448. package/dist/src/services/credentials/credentials.schemas.js +17 -5
  449. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  450. package/dist/src/services/credentials/credentials.service.d.ts.map +1 -1
  451. package/dist/src/services/credentials/framework-managed-secrets.d.ts +105 -1
  452. package/dist/src/services/credentials/framework-managed-secrets.d.ts.map +1 -1
  453. package/dist/src/services/credentials/framework-managed-secrets.js +2 -0
  454. package/dist/src/services/credentials/framework-managed-secrets.js.map +1 -1
  455. package/dist/src/services/credentials/provider-env-vars.utils.d.ts +127 -7
  456. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  457. package/dist/src/services/credentials/provider-env-vars.utils.js +189 -45
  458. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  459. package/dist/src/services/credentials/secrets-provisioning.service.d.ts.map +1 -1
  460. package/dist/src/services/credentials/secrets-reader.service.d.ts.map +1 -1
  461. package/dist/src/services/credentials/secrets-rotation.service.d.ts.map +1 -1
  462. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  463. package/dist/src/services/data-services/data-services.schemas.d.ts +0 -1
  464. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  465. package/dist/src/services/data-services/data-services.schemas.js +0 -1
  466. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  467. package/dist/src/services/data-services/data-services.service.d.ts.map +1 -1
  468. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +1 -1
  469. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +1 -1
  470. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +91 -1
  471. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +1 -1
  472. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +1 -1
  473. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +1 -1
  474. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +45 -15
  475. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +1 -1
  476. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +1 -1
  477. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +33 -1
  478. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +1 -1
  479. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +1 -1
  480. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +1 -1
  481. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +1 -1
  482. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +1 -1
  483. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +1 -1
  484. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +1 -1
  485. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +44 -1
  486. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +1 -1
  487. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +1 -1
  488. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +1 -1
  489. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +82 -87
  490. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +1 -1
  491. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +1 -1
  492. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +1 -1
  493. package/dist/src/services/deployment/apps-manager-diagnostics.service.d.ts.map +1 -1
  494. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  495. package/dist/src/services/deployment/ci-deploy-generator.service.js +11 -1
  496. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  497. package/dist/src/services/deployment/ci-workflow-generator.service.d.ts.map +1 -1
  498. package/dist/src/services/deployment/ci-workflow-generator.service.js +23 -4
  499. package/dist/src/services/deployment/ci-workflow-generator.service.js.map +1 -1
  500. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +1 -1
  501. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +1 -1
  502. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +1 -1
  503. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +150 -7
  504. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +1 -1
  505. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +1 -1
  506. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +1 -1
  507. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  508. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +60 -12
  509. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  510. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  511. package/dist/src/services/deployment/docker/docker.schemas.d.ts.map +1 -1
  512. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  513. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts.map +1 -1
  514. package/dist/src/services/deployment/infra-writer.service.d.ts.map +1 -1
  515. package/dist/src/services/deployment/infra-writer.service.js +11 -3
  516. package/dist/src/services/deployment/infra-writer.service.js.map +1 -1
  517. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +1 -1
  518. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +1 -1
  519. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +110 -9
  520. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +1 -1
  521. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +1 -1
  522. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +2 -0
  523. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +1 -0
  524. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +226 -0
  525. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +1 -0
  526. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +1 -1
  527. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +132 -12
  528. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +1 -1
  529. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +1 -1
  530. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +1 -1
  531. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.d.ts.map +1 -1
  532. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js +3 -0
  533. package/dist/src/services/deployment/k8s/k8s-bootstrap.service.js.map +1 -1
  534. package/dist/src/services/deployment/k8s/k8s-local-infra-readiness.service.d.ts.map +1 -1
  535. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  536. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +45 -9
  537. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  538. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +4 -3
  539. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  540. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js +0 -4
  541. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  542. package/dist/src/services/deployment/k8s/k8s-operations.service.d.ts.map +1 -1
  543. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts +10 -1
  544. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  545. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +193 -33
  546. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  547. package/dist/src/services/deployment/k8s/k8s.schemas.d.ts.map +1 -1
  548. package/dist/src/services/deployment/k8s/kind.service.d.ts.map +1 -1
  549. package/dist/src/services/deployment/k8s/local-k8s-application-pruning.service.d.ts.map +1 -1
  550. package/dist/src/services/deployment/local-dev-observer-lifecycle.d.ts.map +1 -1
  551. package/dist/src/services/deployment/local-dev-output-boundary.d.ts.map +1 -1
  552. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  553. package/dist/src/services/deployment/local-dev-shutdown-coordinator.d.ts.map +1 -1
  554. package/dist/src/services/deployment/local-infrastructure-initialization.service.d.ts.map +1 -1
  555. package/dist/src/services/deployment/local-precondition-checks.schemas.d.ts.map +1 -1
  556. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +28 -17
  557. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  558. package/dist/src/services/deployment/local-precondition-checks.service.js +83 -3
  559. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  560. package/dist/src/services/deployment/local-runtime-process-cleanup.service.d.ts.map +1 -1
  561. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  562. package/dist/src/services/deployment/platform-runtime-policy.service.d.ts.map +1 -1
  563. package/dist/src/services/deployment/version-compare.utils.d.ts.map +1 -1
  564. package/dist/src/services/design-tokens/design-tokens-command.service.d.ts.map +1 -1
  565. package/dist/src/services/design-tokens/design-tokens-config.service.d.ts.map +1 -1
  566. package/dist/src/services/design-tokens/design-tokens-config.template.d.ts.map +1 -1
  567. package/dist/src/services/design-tokens/design-tokens-css-block.service.d.ts.map +1 -1
  568. package/dist/src/services/design-tokens/design-tokens-paths.service.d.ts.map +1 -1
  569. package/dist/src/services/design-tokens/design-tokens.constants.d.ts.map +1 -1
  570. package/dist/src/services/design-tokens/design-tokens.models.d.ts.map +1 -1
  571. package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +1 -1
  572. package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +1 -1
  573. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +1 -1
  574. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +36 -20
  575. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +1 -1
  576. package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +1 -1
  577. package/dist/src/services/environment/__tests__/env-sync.service.test.js +6 -4
  578. package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +1 -1
  579. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +1 -1
  580. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +89 -8
  581. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +1 -1
  582. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +1 -1
  583. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +1 -1
  584. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +1 -1
  585. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +2 -0
  586. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +1 -0
  587. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +136 -0
  588. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +1 -0
  589. package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +1 -1
  590. package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +1 -1
  591. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +1 -1
  592. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +23 -0
  593. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +1 -1
  594. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +1 -1
  595. package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +1 -1
  596. package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +1 -1
  597. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +1 -1
  598. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +1 -1
  599. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +1 -1
  600. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  601. package/dist/src/services/environment/env-configuration-generator.service.d.ts +52 -14
  602. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  603. package/dist/src/services/environment/env-configuration-generator.service.js +41 -38
  604. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  605. package/dist/src/services/environment/env-sync.service.d.ts.map +1 -1
  606. package/dist/src/services/environment/env-sync.service.js +13 -13
  607. package/dist/src/services/environment/env-sync.service.js.map +1 -1
  608. package/dist/src/services/environment/env-vars-builder.service.d.ts +28 -0
  609. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  610. package/dist/src/services/environment/env-vars-builder.service.js +169 -41
  611. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  612. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  613. package/dist/src/services/environment/environment-lifecycle.service.d.ts +53 -1
  614. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  615. package/dist/src/services/environment/environment-lifecycle.service.js +65 -1
  616. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  617. package/dist/src/services/environment/environment-paths.service.d.ts +2 -1
  618. package/dist/src/services/environment/environment-paths.service.d.ts.map +1 -1
  619. package/dist/src/services/environment/environment-paths.service.js +5 -3
  620. package/dist/src/services/environment/environment-paths.service.js.map +1 -1
  621. package/dist/src/services/environment/environment-registry.service.d.ts.map +1 -1
  622. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  623. package/dist/src/services/environment/environment-setup.service.js +23 -9
  624. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  625. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  626. package/dist/src/services/environment/environment.service.d.ts +6 -1
  627. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  628. package/dist/src/services/environment/environment.service.js +2 -0
  629. package/dist/src/services/environment/environment.service.js.map +1 -1
  630. package/dist/src/services/environment/platform-engine-change.utils.d.ts.map +1 -1
  631. package/dist/src/services/environment/platform-runtime-state.service.d.ts.map +1 -1
  632. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  633. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  634. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  635. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +2 -0
  636. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +1 -0
  637. package/dist/src/services/framework/__tests__/application-rule-imports.test.js +58 -0
  638. package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +1 -0
  639. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +2 -0
  640. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +1 -0
  641. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +47 -0
  642. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +1 -0
  643. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +1 -1
  644. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +1 -1
  645. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +1 -1
  646. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +1 -1
  647. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +1 -1
  648. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +1 -1
  649. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +1 -1
  650. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +1 -1
  651. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +1 -1
  652. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +1 -1
  653. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +1 -1
  654. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +1 -1
  655. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +50 -0
  656. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +1 -1
  657. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +1 -1
  658. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +4 -70
  659. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +1 -1
  660. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +1 -1
  661. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +1 -1
  662. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +1 -1
  663. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +78 -6
  664. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +1 -1
  665. package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +1 -1
  666. package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +1 -1
  667. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +1 -1
  668. package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +1 -1
  669. package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +1 -1
  670. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +1 -1
  671. package/dist/src/services/framework/application-rule-imports.d.ts +36 -0
  672. package/dist/src/services/framework/application-rule-imports.d.ts.map +1 -0
  673. package/dist/src/services/framework/application-rule-imports.js +77 -0
  674. package/dist/src/services/framework/application-rule-imports.js.map +1 -0
  675. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts +23 -0
  676. package/dist/src/services/framework/framework-development-skills-sync.service.d.ts.map +1 -1
  677. package/dist/src/services/framework/framework-development-skills-sync.service.js +51 -0
  678. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  679. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  680. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  681. package/dist/src/services/framework/framework-knowledge-application-guidance.validator.d.ts.map +1 -1
  682. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts +45 -0
  683. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  684. package/dist/src/services/framework/framework-knowledge-audit.service.js +122 -1
  685. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  686. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts +0 -1
  687. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  688. package/dist/src/services/framework/framework-knowledge-generation.service.js +29 -215
  689. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  690. package/dist/src/services/framework/framework-knowledge-scan.constants.d.ts.map +1 -1
  691. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  692. package/dist/src/services/framework/framework-npm-publish.service.js +7 -3
  693. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  694. package/dist/src/services/framework/framework-publish-manifest.service.d.ts +44 -1
  695. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  696. package/dist/src/services/framework/framework-publish-manifest.service.js +79 -4
  697. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  698. package/dist/src/services/framework/framework-release.service.d.ts.map +1 -1
  699. package/dist/src/services/framework/framework-version.service.d.ts +13 -0
  700. package/dist/src/services/framework/framework-version.service.d.ts.map +1 -1
  701. package/dist/src/services/framework/framework-version.service.js +23 -24
  702. package/dist/src/services/framework/framework-version.service.js.map +1 -1
  703. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  704. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +2 -0
  705. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +1 -0
  706. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +92 -0
  707. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +1 -0
  708. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +2 -0
  709. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +1 -0
  710. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +83 -0
  711. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +1 -0
  712. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +2 -0
  713. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +1 -0
  714. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +166 -0
  715. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +1 -0
  716. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +2 -0
  717. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +1 -0
  718. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +372 -0
  719. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +1 -0
  720. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +2 -0
  721. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +1 -0
  722. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +794 -0
  723. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +1 -0
  724. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts +14 -0
  725. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.d.ts.map +1 -0
  726. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js +1047 -0
  727. package/dist/src/services/framework/provider-transposition/activepieces-source.reader.js.map +1 -0
  728. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts +26 -0
  729. package/dist/src/services/framework/provider-transposition/openapi-enrichment.d.ts.map +1 -0
  730. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js +57 -0
  731. package/dist/src/services/framework/provider-transposition/openapi-enrichment.js.map +1 -0
  732. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts +35 -0
  733. package/dist/src/services/framework/provider-transposition/openapi-source.reader.d.ts.map +1 -0
  734. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js +204 -0
  735. package/dist/src/services/framework/provider-transposition/openapi-source.reader.js.map +1 -0
  736. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts +410 -0
  737. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.d.ts.map +1 -0
  738. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js +434 -0
  739. package/dist/src/services/framework/provider-transposition/provider-catalogue-record.js.map +1 -0
  740. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts +39 -0
  741. package/dist/src/services/framework/provider-transposition/provider-merge.d.ts.map +1 -0
  742. package/dist/src/services/framework/provider-transposition/provider-merge.js +274 -0
  743. package/dist/src/services/framework/provider-transposition/provider-merge.js.map +1 -0
  744. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts +130 -0
  745. package/dist/src/services/framework/provider-transposition/provider-package.emitter.d.ts.map +1 -0
  746. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js +1466 -0
  747. package/dist/src/services/framework/provider-transposition/provider-package.emitter.js.map +1 -0
  748. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts +35 -0
  749. package/dist/src/services/framework/provider-transposition/sim-source.reader.d.ts.map +1 -0
  750. package/dist/src/services/framework/provider-transposition/sim-source.reader.js +527 -0
  751. package/dist/src/services/framework/provider-transposition/sim-source.reader.js.map +1 -0
  752. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts +229 -0
  753. package/dist/src/services/framework/provider-transposition/transposed-provider.model.d.ts.map +1 -0
  754. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js +96 -0
  755. package/dist/src/services/framework/provider-transposition/transposed-provider.model.js.map +1 -0
  756. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts +55 -0
  757. package/dist/src/services/framework/provider-transposition/url-template.extractor.d.ts.map +1 -0
  758. package/dist/src/services/framework/provider-transposition/url-template.extractor.js +196 -0
  759. package/dist/src/services/framework/provider-transposition/url-template.extractor.js.map +1 -0
  760. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +1 -1
  761. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +1 -1
  762. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +1 -1
  763. package/dist/src/services/frontend/cloudflare-cdn.service.d.ts.map +1 -1
  764. package/dist/src/services/frontend/frontend-dist-uploader.service.d.ts.map +1 -1
  765. package/dist/src/services/frontend/frontend-publish.service.d.ts.map +1 -1
  766. package/dist/src/services/frontend/frontend-publish.service.js +1 -1
  767. package/dist/src/services/frontend/frontend-publish.service.js.map +1 -1
  768. package/dist/src/services/generation/domain-generator.service.d.ts.map +1 -1
  769. package/dist/src/services/generation/generator.schemas.d.ts.map +1 -1
  770. package/dist/src/services/generation/operation-generator.service.d.ts.map +1 -1
  771. package/dist/src/services/generation/resource-generator.service.d.ts.map +1 -1
  772. package/dist/src/services/generation/template-registry.service.d.ts.map +1 -1
  773. package/dist/src/services/registry/artifact-extractor.utils.d.ts.map +1 -1
  774. package/dist/src/services/registry/boundary-fanout.utils.d.ts.map +1 -1
  775. package/dist/src/services/registry/index.d.ts.map +1 -1
  776. package/dist/src/services/registry/registry-command.utils.d.ts.map +1 -1
  777. package/dist/src/services/registry/registry-config-resolver.service.d.ts.map +1 -1
  778. package/dist/src/services/registry/registry-credentials.service.d.ts.map +1 -1
  779. package/dist/src/services/registry/saas-root-required.error.d.ts.map +1 -1
  780. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +67 -0
  781. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +1 -0
  782. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +212 -0
  783. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +1 -0
  784. package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +1 -1
  785. package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +1 -1
  786. package/dist/src/services/security/__tests__/csp-sync.service.test.js +411 -5
  787. package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +1 -1
  788. package/dist/src/services/security/csp-sync.service.d.ts +27 -5
  789. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  790. package/dist/src/services/security/csp-sync.service.js +204 -16
  791. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  792. package/dist/src/services/tools/utility-tools.service.d.ts.map +1 -1
  793. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +2 -0
  794. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +1 -0
  795. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +94 -0
  796. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +1 -0
  797. package/dist/src/services/website/website-structured-data-audit.service.d.ts +9 -0
  798. package/dist/src/services/website/website-structured-data-audit.service.d.ts.map +1 -1
  799. package/dist/src/services/website/website-structured-data-audit.service.js +72 -11
  800. package/dist/src/services/website/website-structured-data-audit.service.js.map +1 -1
  801. package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +1 -1
  802. package/dist/tsconfig.build.tsbuildinfo +1 -1
  803. package/dist/tsconfig.tsbuildinfo +1 -1
  804. package/framework-root-package.json +2 -0
  805. package/package.json +19 -17
  806. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +2 -0
  807. package/templates/infra/ci/deploy-docker-compose.yml.hbs +1 -1
  808. package/templates/infra/ci/deploy-k8s.yml.hbs +1 -1
  809. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +330 -74
  810. package/templates/infra/docker-images/backend/Dockerfile.backend-base +7 -1
  811. package/templates/infra/docker-images/backend/Dockerfile.backend-base-java +7 -1
  812. package/templates/infra/docker-images/platform/Dockerfile.platform-base.dockerignore +23 -0
  813. package/templates/infra/k8s/applications/wildo-ai-application/backend.deployment.yaml.hbs +8 -5
  814. package/templates/infra/k8s/applications/wildo-ai-application/ingress.yaml.hbs +3 -2
  815. package/templates/infra/k8s/applications/wildo-ai-application/minion.deployment.yaml.hbs +22 -6
  816. package/templates/infra/k8s/applications/wildo-ai-application/worker.deployment.yaml.hbs +17 -13
  817. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +11 -0
  818. package/templates/infra/k8s/storage/local/persistent-volumes.yaml.hbs +18 -4
  819. package/templates/saas/i18n/email/components/EmailHeader.tsx +9 -0
  820. package/templates/saas/i18n/email/components/EmailLayout.tsx +14 -0
  821. package/templates/saas/i18n/email/resources/applicationApiKeys/create.application-administrator/template.tsx +1 -1
  822. package/templates/saas/i18n/email/resources/applicationApiKeys/deactivate.application-administrator/template.tsx +1 -1
  823. package/templates/saas/i18n/email/resources/applicationApiKeys/reactivate.application-administrator/template.tsx +1 -1
  824. package/templates/saas/i18n/email/resources/applicationApiKeys/regenerate.application-administrator/template.tsx +1 -1
  825. package/templates/saas/i18n/email/resources/applicationApiKeys/rotate.application-administrator/template.tsx +1 -1
  826. package/templates/saas/i18n/email/resources/applicationOAuthClients/create.application-administrator/template.tsx +1 -1
  827. package/templates/saas/i18n/email/resources/applicationOAuthClients/regenerate.application-administrator/template.tsx +1 -1
  828. package/templates/saas/i18n/email/resources/applicationOAuthClients/rotate.application-administrator/template.tsx +1 -1
  829. package/templates/saas/i18n/email/resources/applicationVersions/create.organization-administrative/template.tsx +1 -1
  830. package/templates/saas/i18n/email/resources/applicationVersions/delete.organization-administrative/template.tsx +1 -1
  831. package/templates/saas/i18n/email/resources/applicationVersions/deprecate.organization-administrative/template.tsx +1 -1
  832. package/templates/saas/i18n/email/resources/applicationVersions/promote.organization-administrative/template.tsx +1 -1
  833. package/templates/saas/i18n/email/resources/applicationVersions/rollback.organization-administrative/template.tsx +1 -1
  834. package/templates/saas/i18n/email/resources/applications/create.admin.organization-administrative/template.tsx +1 -1
  835. package/templates/saas/i18n/email/resources/applications/create.organization-administrative/template.tsx +1 -1
  836. package/templates/saas/i18n/email/resources/applications/delete.admin.organization-administrative/template.tsx +1 -1
  837. package/templates/saas/i18n/email/resources/applications/delete.organization-administrative/template.tsx +1 -1
  838. package/templates/saas/i18n/email/resources/applications/transfer.admin.organization-administrative/template.tsx +1 -1
  839. package/templates/saas/i18n/email/resources/applications/transfer.organization-administrative/template.tsx +1 -1
  840. package/templates/saas/i18n/email/resources/applications/update.admin.organization-administrative/template.tsx +1 -1
  841. package/templates/saas/i18n/email/resources/applications/update.organization-administrative/template.tsx +1 -1
  842. package/templates/saas/i18n/email/resources/organizationApiKeys/create.admin.organization-administrative/template.tsx +1 -1
  843. package/templates/saas/i18n/email/resources/organizationApiKeys/create.organization-administrative/template.tsx +1 -1
  844. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.admin.organization-administrative/template.tsx +1 -1
  845. package/templates/saas/i18n/email/resources/organizationApiKeys/deactivate.organization-administrative/template.tsx +1 -1
  846. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.admin.organization-administrative/template.tsx +1 -1
  847. package/templates/saas/i18n/email/resources/organizationApiKeys/delete.organization-administrative/template.tsx +1 -1
  848. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.admin.organization-administrative/template.tsx +1 -1
  849. package/templates/saas/i18n/email/resources/organizationApiKeys/reactivate.organization-administrative/template.tsx +1 -1
  850. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.admin.organization-administrative/template.tsx +1 -1
  851. package/templates/saas/i18n/email/resources/organizationApiKeys/regenerate.organization-administrative/template.tsx +1 -1
  852. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.admin.organization-administrative/template.tsx +1 -1
  853. package/templates/saas/i18n/email/resources/organizationApiKeys/rotate.organization-administrative/template.tsx +1 -1
  854. package/templates/saas/i18n/email/resources/organizationFeatures/disable_feature.organization-users/template.tsx +1 -1
  855. package/templates/saas/i18n/email/resources/organizationFeatures/enable_feature.organization-users/template.tsx +1 -1
  856. package/templates/saas/i18n/email/resources/organizationFeatures/reset_features.organization-administrative/template.tsx +1 -1
  857. package/templates/saas/i18n/email/resources/organizationFeatures/update.organization-users/template.tsx +1 -1
  858. package/templates/saas/i18n/email/resources/organizationMembers/create.user-self/template.tsx +1 -1
  859. package/templates/saas/i18n/email/resources/organizationMembers/delete.organization-users/template.tsx +1 -1
  860. package/templates/saas/i18n/email/resources/organizationMembers/grantOwnership.organization-users/template.tsx +1 -1
  861. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.organization-users/template.tsx +1 -1
  862. package/templates/saas/i18n/email/resources/organizationMembers/reactivate.user-self/template.tsx +1 -1
  863. package/templates/saas/i18n/email/resources/organizationMembers/resend.user-self/template.tsx +1 -1
  864. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_admin/template.tsx +1 -1
  865. package/templates/saas/i18n/email/resources/organizationMembers/revoke.user-self_invitee/template.tsx +1 -1
  866. package/templates/saas/i18n/email/resources/organizationMembers/suspend.organization-users/template.tsx +1 -1
  867. package/templates/saas/i18n/email/resources/organizationMembers/suspend.user-self/template.tsx +1 -1
  868. package/templates/saas/i18n/email/resources/organizationMembers/update.organization-users/template.tsx +1 -1
  869. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.admin.organization-administrative/template.tsx +1 -1
  870. package/templates/saas/i18n/email/resources/organizationOAuthClients/create.organization-administrative/template.tsx +1 -1
  871. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.admin.organization-administrative/template.tsx +1 -1
  872. package/templates/saas/i18n/email/resources/organizationOAuthClients/delete.organization-administrative/template.tsx +1 -1
  873. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.admin.organization-administrative/template.tsx +1 -1
  874. package/templates/saas/i18n/email/resources/organizationOAuthClients/regenerate.organization-administrative/template.tsx +1 -1
  875. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.admin.organization-administrative/template.tsx +1 -1
  876. package/templates/saas/i18n/email/resources/organizationOAuthClients/rotate.organization-administrative/template.tsx +1 -1
  877. package/templates/saas/i18n/email/resources/organizationUnits/archive.organization-administrative/template.tsx +1 -1
  878. package/templates/saas/i18n/email/resources/organizationUnits/create.organization-administrative/template.tsx +1 -1
  879. package/templates/saas/i18n/email/resources/organizationUnits/delete.organization-administrative/template.tsx +1 -1
  880. package/templates/saas/i18n/email/resources/organizationUnits/move.organization-administrative/template.tsx +1 -1
  881. package/templates/saas/i18n/email/resources/organizationUnits/restore.organization-administrative/template.tsx +1 -1
  882. package/templates/saas/i18n/email/resources/organizationUnits/update.organization-administrative/template.tsx +1 -1
  883. package/templates/saas/i18n/email/resources/organizations/activate.organization-administrative/template.tsx +1 -1
  884. package/templates/saas/i18n/email/resources/organizations/create.admin.user-self/template.tsx +1 -1
  885. package/templates/saas/i18n/email/resources/organizations/create.user-self/template.tsx +1 -1
  886. package/templates/saas/i18n/email/resources/organizations/request_deletion.admin.organization-users/template.tsx +1 -1
  887. package/templates/saas/i18n/email/resources/organizations/request_deletion.organization-users/template.tsx +1 -1
  888. package/templates/saas/i18n/email/resources/organizations/restore.organization-users/template.tsx +1 -1
  889. package/templates/saas/i18n/email/resources/organizations/suspend.organization-users/template.tsx +1 -1
  890. package/templates/saas/i18n/email/resources/organizations/update.admin.organization-administrative/template.tsx +1 -1
  891. package/templates/saas/i18n/email/resources/organizations/update.organization-administrative/template.tsx +1 -1
  892. package/templates/saas/i18n/email/resources/platformAccessGrants/requestAccess.organization-users/template.tsx +1 -1
  893. package/templates/saas/i18n/email/resources/user_self/deactivate_account.user-self/template.tsx +1 -1
  894. package/templates/saas/i18n/email/resources/user_self/reactivate_account.user-self/template.tsx +1 -1
  895. package/templates/saas/i18n/email/resources/users/assign_roles.application-administrator/template.tsx +1 -1
  896. package/templates/saas/i18n/email/resources/users/create.application-administrator/template.tsx +1 -1
  897. package/templates/saas/i18n/email/resources/users/delete.application-administrator/template.tsx +1 -1
  898. package/templates/saas/i18n/email/resources/users/force_password_reset.application-administrator/template.tsx +1 -1
  899. package/templates/saas/i18n/email/resources/users/revoke_roles.application-administrator/template.tsx +1 -1
  900. package/templates/saas/i18n/email/resources/users/send_invitation.application-administrator/template.tsx +1 -1
  901. package/templates/saas/i18n/email/resources/users/suspend_user.application-administrator/template.tsx +1 -1
  902. package/templates/saas/i18n/email/resources/users/unsuspend_user.application-administrator/template.tsx +1 -1
  903. package/templates/saas/i18n/email/resources/users/update.application-administrator/template.tsx +1 -1
  904. package/templates/saas/i18n/email/system/email-otp/template.tsx +1 -0
  905. package/templates/saas/i18n/email/system/email-verification/template.tsx +1 -1
  906. package/templates/saas/i18n/email/system/magic-link/template.tsx +1 -1
  907. package/templates/saas/i18n/email/system/new-device-login/template.tsx +1 -1
  908. package/templates/saas/i18n/email/system/organization-invitation/template.tsx +1 -0
  909. package/templates/saas/i18n/email/system/organization-member-removed/template.tsx +1 -0
  910. package/templates/saas/i18n/email/system/password-reset/template.tsx +1 -1
  911. package/templates/saas/i18n/email/system/payment-failed/template.tsx +1 -1
  912. package/templates/saas/i18n/email/system/security-alert/template.tsx +1 -0
  913. package/templates/saas/i18n/email/system/subscription-cancelled/template.tsx +1 -1
  914. package/templates/saas/i18n/email/system/subscription-confirmation/template.tsx +1 -0
  915. package/templates/saas/i18n/email/system/welcome-email/template.tsx +1 -1
  916. package/templates/saas/scenarios/add-backend-provider/scenario.json +2 -2
  917. package/templates/saas/scenarios/add-file-picker-provider/files/frontend/src/engine/providers/__providerRef__.frontend-app.module.ts.hbs +10 -4
  918. package/templates/saas/scenarios/add-minion/files/minions/__minionDir__/src/index.ts.hbs +9 -5
  919. package/templates/saas/scenarios/add-module/scenario.json +3 -3
  920. package/templates/saas/scenarios/add-provider/scenario.json +36 -0
  921. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/docusaurus.config.ts.hbs +18 -2
  922. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/csp.config.ts +20 -3
  923. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/auth/exchange.tsx +52 -0
  924. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/pages/search.tsx.hbs +47 -3
  925. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/theme/Root.tsx +26 -4
  926. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.svg +5 -4
  927. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.svg +11 -5
  928. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/wildo.tech-doc.config.ts.hbs +18 -7
  929. package/templates/saas/scenarios/add-website/files/website/src/app-origin.ts.hbs +32 -16
  930. package/templates/saas/scenarios/add-website/files/website/src/components/HeaderComponent.tsx +2 -2
  931. package/templates/saas/scenarios/add-website/files/website/src/pages/index.astro +1 -0
  932. package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +2 -2
  933. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/src/index.ts.hbs +9 -5
  934. package/templates/saas/skeleton/.wildo-saas/dev-framework-scripts/sync-engine.sh +46 -14
  935. package/templates/saas/skeleton/CLAUDE.md.hbs +12 -0
  936. package/templates/saas/skeleton/backend-api/src/index.ts +16 -0
  937. package/templates/saas/skeleton/frontend/src/config/settings-hub.config.ts +11 -5
  938. package/templates/saas/skeleton/frontend/src/engine/app-level-views/app-level-views.definitions.module.frontend.ts +1 -1
  939. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +17 -0
  940. package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +19 -0
  941. package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +59 -2
  942. package/wildo-framework.info.json +1 -1
  943. package/templates/infra/k8s/internal/gotenberg/deployment.yaml.hbs +0 -46
  944. package/templates/infra/k8s/internal/gotenberg/service.yaml.hbs +0 -19
  945. package/templates/infra/k8s/middleware.yaml.hbs +0 -101
  946. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/favicon.png +0 -0
  947. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/static/img/logo.png +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"deployment-template-contracts.test.js","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/deployment-template-contracts.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE/F,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC;AAE1F;;;;;;;;;GASG;AACH,MAAM,yBAAyB,GAAG,GAAG,oBAAoB,CAAC,gBAAgB,IAAI,wBAAwB,CAAC,MAAM,EAAE,CAAC;AAEhH,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;IAC7C,EAAE,CAAC,sFAAsF,EAAE,GAAG,EAAE;QAC9F,MAAM,YAAY,GAAG,YAAY,CAAC,I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EAAE,oBAAoB,CAAC,CACnF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH;;;;;;;;OAQG;IACH,EAAE,CAAC,sHAAsH,EAAE,GAAG,EAAE;QAC9H,MAAM,eAAe,GAAG,YAAY,CAClC,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,uCAAuC,CAAC,EAC/F,MAAM,CACP,CAAC;QACF,MAAM,iBAAiB,GAAG,YAAY,CACpC,IAAI,CAAC,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,qBAAqB,CAAC,EACxF,MAAM,CACP,CAAC;QAEF,8FAA8F;QAC9F,iEAAiE;QACjE,MAAM,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;QACtE,MAAM,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,4DAA4D,CAAC,CAAC;QAChG,MAAM,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,+DAA+D,CAAC,CAAC;QAEnG,wFAAwF;QACxF,8FAA8F;QAC9F,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,yCAAyC,CAAC,CAAC;QAC/E,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,iEAAiE,CAAC,CAAC;QACvG,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC;QACrE,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,iDAAiD,CAAC,CAAC;IACzF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, expect, it } from 'vitest';\nimport { existsSync, readFileSync } from 'fs';\nimport { dirname, join, resolve } from 'path';\nimport { fileURLToPath } from 'url';\nimport { APP_RUNTIME_SUBDIR_NAMES, WORKSPACE_HOME_NAMES } from '@wildo-ai/platform-config-lib';\n\nconst repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../../../../../..');\n\n/**\n * Repo-root-relative deploy zone as the generated workflows must address it.\n *\n * Rebuilt from the SAME layout constants\n * (`EnvironmentPaths.resolveScopedDeployArtifactsDir` composes\n * `WORKSPACE_HOME_NAMES.APP_RUNTIME_HOME` + `APP_RUNTIME_SUBDIR_NAMES.DEPLOY`),\n * so relocating the zone in the layout vocabulary without updating the `.hbs`\n * templates fails here instead of shipping a workflow that `kubectl apply`s a\n * path nothing renders to.\n */\nconst DEPLOY_ZONE_RELATIVE_PATH = `${WORKSPACE_HOME_NAMES.APP_RUNTIME_HOME}/${APP_RUNTIME_SUBDIR_NAMES.DEPLOY}`;\n\ndescribe('deployment template contracts', () => {\n it('keeps local env and runtime-signal material outside application image build contexts', () => {\n const dockerIgnore = readFileSync(join(repoRoot, '.dockerignore'), 'utf8');\n const backendEntrypoint = readFileSync(join(repoRoot, 'examples', 'wonder-todos', 'backend-api', 'src', 'index.ts'), 'utf8');\n\n expect(dockerIgnore).toContain('**/.env*');\n expect(dockerIgnore).toContain('**/.wildo-saas/runtime-signals');\n // The deploy zone must be excluded BY DIRECTORY, not left to `**/.env*`:\n // its per-service files are named `<service>.env` (e.g.\n // `demo-app-backend-api.env`), which does NOT start with `.env` and so\n // slips past that pattern — while carrying the full backend runtime env.\n // Asserted on both the monorepo-rooted context and the application image\n // context, since app images build from a workspace root that contains the\n // rendered zone.\n expect(dockerIgnore).toContain('**/.wildo-saas/deploy');\n const applicationImageDockerIgnore = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-images', 'application', '.dockerignore'),\n 'utf8',\n );\n expect(applicationImageDockerIgnore).toContain('**/.wildo-saas/deploy');\n expect(backendEntrypoint).toContain('override: false');\n expect(backendEntrypoint).not.toContain('override: true');\n });\n\n it('wires required steady-state env into the docker-compose apps-manager service', () => {\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.wildo-platform.yml.hbs'),\n 'utf8',\n );\n\n expect(composeTemplate).toContain('PLATFORM_ENVIRONMENT_ID: ${PLATFORM_ENVIRONMENT_ID}');\n expect(composeTemplate).toContain('APPLICATION_ENV: ${APPLICATION_ENV}');\n expect(composeTemplate).toContain('PLATFORM_ADMIN_SECRET: ${PLATFORM_ADMIN_SECRET}');\n // All platform service blocks (`apps_manager-init`, `apps_manager-normal`,\n // `crontabs_batches_manager`) wire the env. Pinned at >= 3 to match the\n // current platform-service catalog; bump if a new platform service joins.\n expect(\n composeTemplate.match(/PLATFORM_ENVIRONMENT_ID: \\$\\{PLATFORM_ENVIRONMENT_ID\\}/g)?.length,\n ).toBeGreaterThanOrEqual(3);\n });\n\n it('does not reference the deleted platform-infra-secret in the live app template', () => {\n const applicationTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'backend.deployment.yaml.hbs'),\n 'utf8',\n );\n\n expect(applicationTemplate).not.toContain('platform-infra-secret');\n });\n\n it('generates runtime source modules before Docker image build in deploy workflows', () => {\n const k8sWorkflow = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-k8s.yml.hbs'),\n 'utf8',\n );\n const composeWorkflow = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-docker-compose.yml.hbs'),\n 'utf8',\n );\n\n // Per-service model builds one image per service (`{{#each services}}`), so\n // assert against the stable Docker-build markers rather than a step name.\n expect(k8sWorkflow.indexOf('npx wildo config sync --ci')).toBeLessThan(\n k8sWorkflow.indexOf('docker/build-push-action'),\n );\n expect(composeWorkflow.indexOf('npx wildo config sync --ci')).toBeLessThan(\n composeWorkflow.indexOf('docker/build-push-action'),\n );\n expect(composeWorkflow.indexOf('npx wildo config sync --ci')).toBeLessThan(\n composeWorkflow.indexOf('docker build -f'),\n );\n });\n\n /**\n * Pins the canonical-sink contract enforced by `k8s-secrets-generator.service.ts`\n * for the framework application deployment template (Phase 8 — now\n * PARAMETERIZED per-app, `{{appName}}` = appSlug):\n * - Per-app env lives in ONE Secret `{{appName}}-secret` — emit-name ==\n * mount-name (the §5 emit keys on the SAME appSlug; see the\n * `emit-name == {appSlug}-secret mount` contract test in\n * `k8s-secrets-generator.service.test.ts`). The historical bug mounted a\n * hardcoded `wildo-ai-application-secret` that the `${serviceName}-secret`\n * emit never produced → fail-closed boot.\n * - Provider env vars live in the SOLE shared `providers-secret`, `optional: true`.\n * - The pod is never handed the cluster-wide infra ADMIN SECRETS — i.e. the\n * Mongo/Redis/RabbitMQ/Postgres admin material, which is genuinely minted\n * per-app (Phase 8 S2). ⚠️ QUALIFIED 2026-08-05: this is NOT the same as\n * \"no cluster-wide credential reaches the pod\". `{appName}-secret` carries\n * STORAGE_ACCESS_KEY / STORAGE_SECRET_KEY, which are the SAME values as\n * MinIO's MINIO_ROOT_USER / MINIO_ROOT_PASSWORD — object storage is the one\n * backing service with no per-app minting, so every app/minion/worker holds\n * its root credential. Tracked in\n * `.claude/plans/object-storage-root-credential-distribution.md`. The\n * assertions below are correct as written; only the blanket phrasing was.\n * the git-clone-lane relic env is gone (Phase 8 R4).\n */\n it('the K8s app BACKEND deployment template mounts {{appName}}-secret + providers-secret { optional: true }, no infra ADMIN SECRETS, no relics', () => {\n const frameworkAppTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'backend.deployment.yaml.hbs'),\n 'utf8',\n );\n\n // Per-app Secret mount — parameterized on appSlug, FAIL-CLOSED (no optional).\n expect(frameworkAppTemplate).toMatch(/envFrom:[\\s\\S]*?secretRef:[\\s\\S]*?name: \\{\\{appName\\}\\}-secret/);\n expect(frameworkAppTemplate).not.toMatch(\n /secretRef:\\s*\\n\\s*name: \\{\\{appName\\}\\}-secret\\s*\\n\\s*optional: true/,\n );\n\n // Shared `providers-secret` mount — `optional: true` REQUIRED.\n expect(frameworkAppTemplate).toMatch(/secretRef:\\s*\\n\\s*name: providers-secret\\s*\\n\\s*optional: true/);\n\n // ZERO ConfigMap mounts (single Secret per app).\n expect(frameworkAppTemplate).not.toMatch(/configMapRef:/);\n\n // S2 — the app pod is NEVER injected cluster-wide infra ADMIN creds. The\n // admin secret refs (valkey-secret / rabbitmq-secret) must not appear.\n expect(frameworkAppTemplate).not.toContain('valkey-secret');\n expect(frameworkAppTemplate).not.toContain('rabbitmq-secret');\n expect(frameworkAppTemplate).not.toContain('REDIS_ADMIN_PASSWORD');\n expect(frameworkAppTemplate).not.toContain('RABBITMQ_ADMIN');\n\n // R4 — no git-clone-lane relic env DECLARATIONS (assert the `- name:`\n // form so the explanatory comment listing them doesn't trip this).\n expect(frameworkAppTemplate).not.toMatch(/- name: SKIP_GIT_CLONE/);\n expect(frameworkAppTemplate).not.toMatch(/- name: APP_MODE/);\n expect(frameworkAppTemplate).not.toMatch(/- name: ENABLED_SERVICES/);\n });\n\n it('renders per-service images + identity (serviceName) for backend AND frontends, not one hardcoded app image', () => {\n const backendTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'backend.deployment.yaml.hbs'),\n 'utf8',\n );\n const frontendTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'frontend.deployment.yaml.hbs'),\n 'utf8',\n );\n const applicationIngressTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'ingress.yaml.hbs'),\n 'utf8',\n );\n\n // Per-SERVICE image + identity (serviceName, e.g. `{app}-backend-api` /\n // `{app}-app`), NOT one shared `{{appName}}` image.\n expect(backendTemplate).toContain('image: {{imageRegistry}}/{{serviceName}}:{{imageTag}}');\n expect(frontendTemplate).toContain('image: {{imageRegistry}}/{{serviceName}}:{{imageTag}}');\n expect(backendTemplate).toMatch(/name: \\{\\{serviceName\\}\\}/);\n expect(frontendTemplate).toMatch(/name: \\{\\{serviceName\\}\\}/);\n // The backend mounts the per-app secret; the frontend (static nginx) has NO\n // secret mount at all (config is baked at build time).\n expect(backendTemplate).toMatch(/name: \\{\\{appName\\}\\}-secret/);\n expect(frontendTemplate).not.toMatch(/secretRef:/);\n for (const t of [backendTemplate, frontendTemplate]) {\n expect(t).not.toContain('wildo-ai-dev');\n expect(t).not.toContain('isDevMode');\n expect(t).not.toContain('hostPath:');\n }\n expect(applicationIngressTemplate).not.toContain('isDevMode');\n expect(applicationIngressTemplate).not.toContain('lifecycle-wildo-ai-application');\n });\n\n it('Slice 4 — compose template uses host bind mounts under {{localDataPath}} (no named volumes)', () => {\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.wildo-platform.yml.hbs'),\n 'utf8',\n );\n\n // Every stateful service binds its data directory under the resolved\n // absolute `{{localDataPath}}/<svc>` (Slice 4.1 / 4.2 — F-8). MongoDB is\n // deliberately the exception to the one-bind-per-service shape: `mongo:8.2`\n // declares child image volumes at `/data/db` and `/data/configdb`, so both\n // exact child paths must be host binds or Docker shadows a parent `/data`\n // bind with anonymous volumes.\n expect(composeTemplate).toContain('- {{localDataPath}}/mongodb/db:/data/db');\n expect(composeTemplate).toContain('- {{localDataPath}}/mongodb/configdb:/data/configdb');\n expect(composeTemplate).not.toContain('- {{localDataPath}}/mongodb:/data');\n // Issue #74 — mongot is the second stateful service in the MongoDB lane, and it is the\n // SINGLE-bind shape, not mongod's two-child one: its image declares no `VOLUME` at all, so\n // there is nothing for Docker to shadow. Pinned here so `INFRA_SERVICE_DATA_SUBDIRS` and this\n // template cannot drift apart in either direction.\n expect(composeTemplate).toContain('- {{localDataPath}}/mongot:{{mongotDataPath}}');\n expect(composeTemplate).toContain('- {{localDataPath}}/valkey:/data');\n expect(composeTemplate).toContain('- {{localDataPath}}/rabbitmq:/var/lib/rabbitmq');\n expect(composeTemplate).toContain('- {{localDataPath}}/minio:/data');\n expect(composeTemplate).toContain('- {{localDataPath}}/postgresql:/var/lib/postgresql/data');\n expect(composeTemplate).toContain('- {{localDataPath}}/clamav:/var/lib/clamav');\n\n // Slice 4.1 — the global top-level `volumes:` block is intentionally\n // OMITTED. A stray `^volumes:\\n <name>:\\n driver: local` re-\n // introduction would silently regress us back to the named-volume\n // model and break the host-side wipe contract on `wildo local reset`.\n // Note: the template still mentions historical volume names in a\n // comment (47-line block on the mongodb mount); we deliberately match\n // against the structural top-level block instead of the names so that\n // intentional documentation doesn't trip the assertion.\n expect(composeTemplate).not.toMatch(/^volumes:\\s*\\n\\s+[a-z]+_data:\\s*\\n\\s+driver: local/m);\n expect(composeTemplate).not.toMatch(/^\\s*[a-z]+_data:\\s*\\n\\s+driver: local/m);\n\n // Mongo and ClamAV blocks are conditional — the {{#if}} guards must\n // remain so MANAGED-source environments don't spawn redundant local\n // containers.\n expect(composeTemplate).toContain('{{#if includeLocalMongoDB}}');\n expect(composeTemplate).toContain('{{#if includeLocalClamAV}}');\n });\n\n it('Slice 4 — K8s mongodb + clamav internal manifests + PV declarations exist', () => {\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'mongodb', 'service.yaml.hbs')),\n ).toBe(true);\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'mongodb', 'deployment.yaml.hbs')),\n ).toBe(true);\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'clamav', 'service.yaml.hbs')),\n ).toBe(true);\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'clamav', 'deployment.yaml.hbs')),\n ).toBe(true);\n\n const pvTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'storage', 'local', 'persistent-volumes.yaml.hbs'),\n 'utf8',\n );\n // Both K8s PVs are gated on the same predicates the Compose template\n // uses (Slice 4.7 / 4.8) so an env that opts out of MANAGED MongoDB or\n // SELF ClamAV doesn't carry an unbound PV in its rendered manifests.\n expect(pvTemplate).toContain('{{#if includeLocalMongoDB}}');\n expect(pvTemplate).toContain('{{#if includeLocalClamAV}}');\n expect(pvTemplate).toContain('/mnt/local-data/mongodb');\n expect(pvTemplate).toContain('/mnt/local-data/clamav');\n });\n\n it('Slice 4 / D7 — dead static docker-compose.yml is deleted (single source of truth = .hbs)', () => {\n // The legacy hand-edited `docker-compose.yml` in the same dir as the\n // `.hbs` template has zero live consumers (the CLI's `composeFile`\n // resolution always points at `docker-compose.wildo-platform.yml`,\n // rendered from the template). Re-introducing it would re-create the\n // parallel-topology trap that once hid optional sidecar services (YARA,\n // and the since-deleted Weaviate vector store) from the catalog.\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.yml')),\n ).toBe(false);\n });\n\n /**\n * Pins the Slice 9 invariants on the two CI deploy workflow templates\n * (`deploy-k8s.yml.hbs` + `deploy-docker-compose.yml.hbs`). These are\n * the actual `.hbs` files shipped to customers — the existing\n * `ci-workflow-generator.service.test.ts` only exercises a synthetic\n * one-line template and would NOT catch a regression where the real\n * templates drift back to `wildo deploy generate` (a phantom command\n * that was never registered in the CLI) or where the K8s template's\n * `kubectl apply` path drops the env-suffix and silently applies the\n * wrong env's manifests.\n *\n * Slice 9 invariants asserted here:\n * 1. The artifact-generation step calls `wildo config sync` (the real\n * command) and NOT the phantom `wildo deploy generate`.\n * 2. The `--domain config` filter is present so the deploy job does\n * not also re-render workflow YAMLs (`cicd` domain) and per-service\n * `.env` files (`env-files` domain) — both pointless work in CI.\n * 3. The K8s template's `kubectl apply` path is env-scoped\n * (`.wildo-saas/deploy/{{envName}}/k8s/`) — matching the env-scoped\n * output dir of `generateCiDeployArtifacts`. A drift to a path with\n * no env segment would silently apply a stale or empty directory, and\n * a drift back to the pre-relocation app-root `.wildo-deploy/` would\n * escape the deploy zone's ignore guard and leak credentials.\n * 4. The framing comment crediting `wildo config sync --domain cicd`\n * as the generator (NOT `wildo deploy ci-init`) is preserved.\n * 5. The literal phantom command strings (`wildo deploy generate`,\n * `wildo deploy ci-init`) NEVER appear — only the explicit\n * \"intentionally no `wildo deploy` command surface\" framing\n * comment is allowed.\n * 6. Both templates build per-service images from each service's OWN\n * Dockerfile (`file: {{this.dockerfile}}` under `{{#each services}}`) —\n * customer-authored assets the framework does not generate. Per-service\n * deploy (Phase 9) replaced the single `Dockerfile.app` app image.\n */\n it('Slice 9 — CI deploy templates call `wildo config sync --domain config`, never the phantom `wildo deploy`', () => {\n const k8sTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-k8s.yml.hbs'),\n 'utf8',\n );\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-docker-compose.yml.hbs'),\n 'utf8',\n );\n\n // (1) + (2) — real command, narrow domain filter.\n const expectedRun = 'run: npx wildo config sync --ci --env={{envName}} --domain config';\n expect(k8sTemplate).toContain(expectedRun);\n expect(composeTemplate).toContain(expectedRun);\n\n // (3) — env-scoped kubectl path (K8s template only), addressed inside the\n // app runtime home so the secret-bearing render is covered by the deploy\n // zone's ignore guard.\n expect(k8sTemplate).toContain(\n `kubectl apply -f ${DEPLOY_ZONE_RELATIVE_PATH}/{{envName}}/k8s/`,\n );\n expect(k8sTemplate).not.toContain(`kubectl apply -f ${DEPLOY_ZONE_RELATIVE_PATH}/k8s/`);\n // The pre-relocation app-root zone must not resurface in either template.\n expect(k8sTemplate).not.toContain('.wildo-deploy');\n expect(composeTemplate).not.toContain('.wildo-deploy');\n\n // (4) — generator credit comment.\n expect(k8sTemplate).toContain('# Generated by: wildo config sync --domain cicd');\n expect(composeTemplate).toContain('# Generated by: wildo config sync --domain cicd');\n\n // (5) — phantom command strings are forbidden anywhere except the\n // single allow-listed framing comment that explicitly documents\n // their non-existence. We strip the framing block first and then\n // assert no `wildo deploy` substring survives.\n const stripFramingComment = (s: string): string =>\n s.replace(\n /# This workflow builds one image PER SERVICE[\\s\\S]*?`wildo deploy` command surface\\.\\n/,\n '',\n );\n const k8sStripped = stripFramingComment(k8sTemplate);\n const composeStripped = stripFramingComment(composeTemplate);\n expect(k8sStripped).not.toContain('wildo deploy');\n expect(composeStripped).not.toContain('wildo deploy');\n expect(k8sStripped).not.toContain('wildo deploy generate');\n expect(composeStripped).not.toContain('wildo deploy generate');\n expect(k8sStripped).not.toContain('wildo deploy ci-init');\n expect(composeStripped).not.toContain('wildo deploy ci-init');\n\n // (6) — per-service build steps reference each service's own Dockerfile.\n expect(k8sTemplate).toContain('file: {{this.dockerfile}}');\n expect(composeTemplate).toContain('file: {{this.dockerfile}}');\n });\n\n it('does not ship the deleted local k8s e2e compatibility lane', () => {\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'jobs', 'local', 'run-e2e-tests.yaml.hbs'),\n )).toBe(false);\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'cronjobs', 'local', 'nightly-e2e-tests.yaml.hbs'),\n )).toBe(false);\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'docker-images', 'e2e', 'Dockerfile.e2e-runner'),\n )).toBe(false);\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'docker-images', 'e2e', 'Dockerfile.e2e-dev'),\n )).toBe(false);\n });\n\n /**\n * Audit Phase 2 — the self-hosted immudb templates must start the server with `--signingKey`\n * (the whole-server-substitution defense) so the audit client's pinned `IMMUDB_STATE_PUBLIC_KEY`\n * can verify a real signature. Both the mount and the flag are GATED on a provisioned key\n * (compose: the materialized key path; k8s: the secret-name template var), so an env without a\n * keypair renders no `--signingKey` and immudb runs unsigned (client warns) rather than\n * crash-looping — graceful degradation. The immudb ENTRYPOINT is the binary, so the flag rides\n * `command`/`args`.\n */\n it('Audit Phase 2 — self-hosted immudb templates pass --signingKey (state-signature defense), gated on a provisioned key', () => {\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.wildo-platform.yml.hbs'),\n 'utf8',\n );\n const immudbK8sTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'immudb', 'deployment.yaml.hbs'),\n 'utf8',\n );\n\n // Compose: the private key file (materialized under local_data) is bind-mounted read-only and\n // passed to `--signingKey`, all gated on the resolved host path.\n expect(composeTemplate).toContain('{{#if immudbSigningKeyHostPath}}');\n expect(composeTemplate).toContain('command: [\"--signingKey\", \"/etc/immudb/state-signing.key\"]');\n expect(composeTemplate).toContain('{{immudbSigningKeyHostPath}}:/etc/immudb/state-signing.key:ro');\n\n // K8s: the private key is projected from `immudb-secret` as a single file and passed to\n // `--signingKey`, gated on the secret-name var (set only for the self-hosted immudb service).\n expect(immudbK8sTemplate).toContain('{{#if immudbStateSigningKeySecretName}}');\n expect(immudbK8sTemplate).toContain('args: [\"--signingKey\", \"/etc/immudb/signing/state-signing.key\"]');\n expect(immudbK8sTemplate).toContain('key: IMMUDB_STATE_SIGNING_KEY');\n expect(immudbK8sTemplate).toContain('secretName: {{immudbStateSigningKeySecretName}}');\n });\n});\n"]}
1
+ {"version":3,"file":"deployment-template-contracts.test.js","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/deployment-template-contracts.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE/F,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC;AAE1F;;;;;;;;;GASG;AACH,MAAM,yBAAyB,GAAG,GAAG,oBAAoB,CAAC,gBAAgB,IAAI,wBAAwB,CAAC,MAAM,EAAE,CAAC;AAEhH,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EA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AAC,SAAS,CAAC,yCAAyC,CAAC,CAAC;QAC/E,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,iEAAiE,CAAC,CAAC;QACvG,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC;QACrE,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,CAAC,iDAAiD,CAAC,CAAC;IACzF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, expect, it } from 'vitest';\nimport { existsSync, readFileSync } from 'fs';\nimport { dirname, join, resolve } from 'path';\nimport { fileURLToPath } from 'url';\nimport { APP_RUNTIME_SUBDIR_NAMES, WORKSPACE_HOME_NAMES } from '@wildo-ai/platform-config-lib';\n\nconst repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../../../../../..');\n\n/**\n * Repo-root-relative deploy zone as the generated workflows must address it.\n *\n * Rebuilt from the SAME layout constants\n * (`EnvironmentPaths.resolveScopedDeployArtifactsDir` composes\n * `WORKSPACE_HOME_NAMES.APP_RUNTIME_HOME` + `APP_RUNTIME_SUBDIR_NAMES.DEPLOY`),\n * so relocating the zone in the layout vocabulary without updating the `.hbs`\n * templates fails here instead of shipping a workflow that `kubectl apply`s a\n * path nothing renders to.\n */\nconst DEPLOY_ZONE_RELATIVE_PATH = `${WORKSPACE_HOME_NAMES.APP_RUNTIME_HOME}/${APP_RUNTIME_SUBDIR_NAMES.DEPLOY}`;\n\ndescribe('deployment template contracts', () => {\n it('keeps local env and runtime-signal material outside application image build contexts', () => {\n const dockerIgnore = readFileSync(join(repoRoot, '.dockerignore'), 'utf8');\n const backendEntrypoint = readFileSync(join(repoRoot, 'examples', 'wonder-todos', 'backend-api', 'src', 'index.ts'), 'utf8');\n\n expect(dockerIgnore).toContain('**/.env*');\n expect(dockerIgnore).toContain('**/.wildo-saas/runtime-signals');\n // The deploy zone must be excluded BY DIRECTORY, not left to `**/.env*`:\n // its per-service files are named `<service>.env` (e.g.\n // `demo-app-backend-api.env`), which does NOT start with `.env` and so\n // slips past that pattern — while carrying the full backend runtime env.\n // Asserted on both the monorepo-rooted context and the application image\n // context, since app images build from a workspace root that contains the\n // rendered zone.\n expect(dockerIgnore).toContain('**/.wildo-saas/deploy');\n const applicationImageDockerIgnore = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-images', 'application', '.dockerignore'),\n 'utf8',\n );\n expect(applicationImageDockerIgnore).toContain('**/.wildo-saas/deploy');\n expect(backendEntrypoint).toContain('override: false');\n expect(backendEntrypoint).not.toContain('override: true');\n });\n\n it('wires required steady-state env into the docker-compose apps-manager service', () => {\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.wildo-platform.yml.hbs'),\n 'utf8',\n );\n\n expect(composeTemplate).toContain('PLATFORM_ENVIRONMENT_ID: ${PLATFORM_ENVIRONMENT_ID}');\n expect(composeTemplate).toContain('APPLICATION_ENV: ${APPLICATION_ENV}');\n expect(composeTemplate).toContain('PLATFORM_ADMIN_SECRET: ${PLATFORM_ADMIN_SECRET}');\n // All platform service blocks (`apps_manager-init`, `apps_manager-normal`,\n // `crontabs_batches_manager`) wire the env. Pinned at >= 3 to match the\n // current platform-service catalog; bump if a new platform service joins.\n expect(\n composeTemplate.match(/PLATFORM_ENVIRONMENT_ID: \\$\\{PLATFORM_ENVIRONMENT_ID\\}/g)?.length,\n ).toBeGreaterThanOrEqual(3);\n });\n\n it('does not reference the deleted platform-infra-secret in the live app template', () => {\n const applicationTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'backend.deployment.yaml.hbs'),\n 'utf8',\n );\n\n expect(applicationTemplate).not.toContain('platform-infra-secret');\n });\n\n it('generates runtime source modules before Docker image build in deploy workflows', () => {\n const k8sWorkflow = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-k8s.yml.hbs'),\n 'utf8',\n );\n const composeWorkflow = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-docker-compose.yml.hbs'),\n 'utf8',\n );\n\n // Per-service model builds one image per service (`{{#each services}}`), so\n // assert against the stable Docker-build markers rather than a step name.\n expect(k8sWorkflow.indexOf('npx wildo config sync --ci')).toBeLessThan(\n k8sWorkflow.indexOf('docker/build-push-action'),\n );\n expect(composeWorkflow.indexOf('npx wildo config sync --ci')).toBeLessThan(\n composeWorkflow.indexOf('docker/build-push-action'),\n );\n expect(composeWorkflow.indexOf('npx wildo config sync --ci')).toBeLessThan(\n composeWorkflow.indexOf('docker build -f'),\n );\n });\n\n /**\n * Pins the canonical-sink contract enforced by `k8s-secrets-generator.service.ts`\n * for the framework application deployment template (Phase 8 — now\n * PARAMETERIZED per-app, `{{appName}}` = appSlug):\n * - Per-RUNTIME env lives in ONE Secret `{{runtimeEnvSecretName}}` (#377) — emit-name ==\n * mount-name (the §5 emit keys on the SAME appSlug; see the\n * `emit-name == {appSlug}-secret mount` contract test in\n * `k8s-secrets-generator.service.test.ts`). The historical bug mounted a\n * hardcoded `wildo-ai-application-secret` that the `${serviceName}-secret`\n * emit never produced → fail-closed boot.\n * - Provider env vars live in this runtime's OWN `{{providersSecretName}}`, `optional: true`.\n * REPLACED the sole shared `providers-secret` (#369): one cluster Secret held the whole\n * `providerEnv` and was `envFrom`-mounted by the backend, every minion AND every worker, so\n * a worker authoring `providers: {}` received every provider key the application had. The\n * name is now resolved by `k8sRuntimeProvidersSecretName` on BOTH sides and threaded in as a\n * template variable — never composed in the template, which is what keeps emit-name ==\n * mount-name a single decision.\n * - The pod is never handed the cluster-wide infra ADMIN SECRETS — i.e. the\n * Mongo/Redis/RabbitMQ/Postgres admin material, which is genuinely minted\n * per-app (Phase 8 S2). ⚠️ QUALIFIED 2026-08-05: this is NOT the same as\n * \"no cluster-wide credential reaches the pod\". `{appName}-secret` carries\n * STORAGE_ACCESS_KEY / STORAGE_SECRET_KEY, which are the SAME values as\n * MinIO's MINIO_ROOT_USER / MINIO_ROOT_PASSWORD — object storage is the one\n * backing service with no per-app minting, so every app/minion/worker holds\n * its root credential. Tracked in\n * `.claude/plans/object-storage-root-credential-distribution.md`. The\n * assertions below are correct as written; only the blanket phrasing was.\n * the git-clone-lane relic env is gone (Phase 8 R4).\n */\n it('the K8s app BACKEND deployment template mounts {{runtimeEnvSecretName}} + its OWN {{providersSecretName}} { optional: true }, no infra ADMIN SECRETS, no relics', () => {\n const frameworkAppTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'backend.deployment.yaml.hbs'),\n 'utf8',\n );\n\n // Per-runtime env Secret mount — FAIL-CLOSED (no optional): a pod cannot boot without its\n // environment. The name is RESOLVED and threaded in, not composed here as `{{appName}}-secret`\n // (#377), so no template in this lane builds a Secret name any more — the failure this file\n // was written for, from the era when a template hardcoded a name the emit never produced.\n expect(frameworkAppTemplate).toMatch(/envFrom:[\\s\\S]*?secretRef:[\\s\\S]*?name: \\{\\{runtimeEnvSecretName\\}\\}/);\n expect(frameworkAppTemplate).not.toMatch(\n /secretRef:\\s*\\n\\s*name: \\{\\{runtimeEnvSecretName\\}\\}\\s*\\n\\s*optional: true/,\n );\n expect(frameworkAppTemplate).not.toContain('name: {{appName}}-secret');\n\n // This runtime's OWN provider Secret — `optional: true` REQUIRED, because a backend that\n // declares no providers emits no Secret and must still start (#369).\n expect(frameworkAppTemplate).toMatch(\n /secretRef:\\s*\\n\\s*name: \\{\\{providersSecretName\\}\\}\\s*\\n\\s*optional: true/,\n );\n // And the shared bag is GONE. Asserted as an absence at the MOUNT line (`name:` followed by\n // the bare literal) rather than anywhere in the file, so the historical note in the comment\n // above this template's envFrom block does not trip it.\n expect(frameworkAppTemplate).not.toMatch(/name: providers-secret$/m);\n\n // ZERO ConfigMap mounts (single Secret per app).\n expect(frameworkAppTemplate).not.toMatch(/configMapRef:/);\n\n // S2 — the app pod is NEVER injected cluster-wide infra ADMIN creds. The\n // admin secret refs (valkey-secret / rabbitmq-secret) must not appear.\n expect(frameworkAppTemplate).not.toContain('valkey-secret');\n expect(frameworkAppTemplate).not.toContain('rabbitmq-secret');\n expect(frameworkAppTemplate).not.toContain('REDIS_ADMIN_PASSWORD');\n expect(frameworkAppTemplate).not.toContain('RABBITMQ_ADMIN');\n\n // R4 — no git-clone-lane relic env DECLARATIONS (assert the `- name:`\n // form so the explanatory comment listing them doesn't trip this).\n expect(frameworkAppTemplate).not.toMatch(/- name: SKIP_GIT_CLONE/);\n expect(frameworkAppTemplate).not.toMatch(/- name: APP_MODE/);\n expect(frameworkAppTemplate).not.toMatch(/- name: ENABLED_SERVICES/);\n });\n\n it('renders per-service images + identity (serviceName) for backend AND frontends, not one hardcoded app image', () => {\n const backendTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'backend.deployment.yaml.hbs'),\n 'utf8',\n );\n const frontendTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'frontend.deployment.yaml.hbs'),\n 'utf8',\n );\n const applicationIngressTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'applications', 'wildo-ai-application', 'ingress.yaml.hbs'),\n 'utf8',\n );\n\n // Per-SERVICE image + identity (serviceName, e.g. `{app}-backend-api` /\n // `{app}-app`), NOT one shared `{{appName}}` image.\n expect(backendTemplate).toContain('image: {{imageRegistry}}/{{serviceName}}:{{imageTag}}');\n expect(frontendTemplate).toContain('image: {{imageRegistry}}/{{serviceName}}:{{imageTag}}');\n expect(backendTemplate).toMatch(/name: \\{\\{serviceName\\}\\}/);\n expect(frontendTemplate).toMatch(/name: \\{\\{serviceName\\}\\}/);\n // The backend mounts its own RESOLVED env Secret (#377 — the name is threaded in, not\n // composed from `{{appName}}` here); the frontend (static nginx) has NO secret mount at all\n // (config is baked at build time).\n expect(backendTemplate).toMatch(/name: \\{\\{runtimeEnvSecretName\\}\\}/);\n expect(frontendTemplate).not.toMatch(/secretRef:/);\n for (const t of [backendTemplate, frontendTemplate]) {\n expect(t).not.toContain('wildo-ai-dev');\n expect(t).not.toContain('isDevMode');\n expect(t).not.toContain('hostPath:');\n }\n expect(applicationIngressTemplate).not.toContain('isDevMode');\n expect(applicationIngressTemplate).not.toContain('lifecycle-wildo-ai-application');\n });\n\n it('Slice 4 — compose template uses host bind mounts under {{localDataPath}} (no named volumes)', () => {\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.wildo-platform.yml.hbs'),\n 'utf8',\n );\n\n // Every stateful service binds its data directory under the resolved\n // absolute `{{localDataPath}}/<svc>` (Slice 4.1 / 4.2 — F-8). MongoDB is\n // deliberately the exception to the one-bind-per-service shape: `mongo:8.2`\n // declares child image volumes at `/data/db` and `/data/configdb`, so both\n // exact child paths must be host binds or Docker shadows a parent `/data`\n // bind with anonymous volumes.\n expect(composeTemplate).toContain('- {{localDataPath}}/mongodb/db:/data/db');\n expect(composeTemplate).toContain('- {{localDataPath}}/mongodb/configdb:/data/configdb');\n expect(composeTemplate).not.toContain('- {{localDataPath}}/mongodb:/data');\n /*\n * mongod runs AS `mongodb`, and that is load-bearing rather than cosmetic.\n *\n * Started as root, the image chowns `/data/db` and gosu's to uid 999 — but on Docker Desktop's\n * gRPC FUSE a bind-mounted file presents as root:root 0600 whatever the host says, so that chown\n * cannot stick and uid 999 cannot reopen its own database. The first start works and every start\n * after it dies with EPERM on `WiredTiger.wt` and fatal assertion 28595, which reads as data\n * corruption and is an ownership mismatch. Naming the user makes `id -u` non-zero, so the image\n * skips both the gosu drop and the ineffective chown.\n *\n * Pinned here because deleting one line silently reintroduces a defect whose symptom points at\n * the database rather than at the compose file.\n */\n expect(composeTemplate).toContain('user: \"mongodb\"');\n // Issue #74 — mongot is the second stateful service in the MongoDB lane, and it is the\n // SINGLE-bind shape, not mongod's two-child one: its image declares no `VOLUME` at all, so\n // there is nothing for Docker to shadow. Pinned here so `INFRA_SERVICE_DATA_SUBDIRS` and this\n // template cannot drift apart in either direction.\n expect(composeTemplate).toContain('- {{localDataPath}}/mongot:{{mongotDataPath}}');\n expect(composeTemplate).toContain('- {{localDataPath}}/valkey:/data');\n expect(composeTemplate).toContain('- {{localDataPath}}/rabbitmq:/var/lib/rabbitmq');\n expect(composeTemplate).toContain('- {{localDataPath}}/minio:/data');\n expect(composeTemplate).toContain('- {{localDataPath}}/postgresql:/var/lib/postgresql/data');\n expect(composeTemplate).toContain('- {{localDataPath}}/clamav:/var/lib/clamav');\n\n // Slice 4.1 — the global top-level `volumes:` block is intentionally OMITTED. A stray\n // named-volume re-introduction would regress the host-side wipe contract on `wildo local reset`.\n // (Two mongodb volumes existed briefly on 2026-09-09 as the wrong fix for the uid defect above;\n // they are gone.)\n // Note: the template still mentions historical volume names in a\n // comment (47-line block on the mongodb mount); we deliberately match\n // against the structural top-level block instead of the names so that\n // intentional documentation doesn't trip the assertion.\n expect(composeTemplate).not.toMatch(/^volumes:\\s*\\n\\s+[a-z]+_data:\\s*\\n\\s+driver: local/m);\n expect(composeTemplate).not.toMatch(/^\\s*[a-z]+_data:\\s*\\n\\s+driver: local/m);\n\n // Mongo and ClamAV blocks are conditional — the {{#if}} guards must\n // remain so MANAGED-source environments don't spawn redundant local\n // containers.\n expect(composeTemplate).toContain('{{#if includeLocalMongoDB}}');\n expect(composeTemplate).toContain('{{#if includeLocalClamAV}}');\n });\n\n it('Slice 4 — K8s mongodb + clamav internal manifests + PV declarations exist', () => {\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'mongodb', 'service.yaml.hbs')),\n ).toBe(true);\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'mongodb', 'deployment.yaml.hbs')),\n ).toBe(true);\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'clamav', 'service.yaml.hbs')),\n ).toBe(true);\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'clamav', 'deployment.yaml.hbs')),\n ).toBe(true);\n\n const pvTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'storage', 'local', 'persistent-volumes.yaml.hbs'),\n 'utf8',\n );\n // Both K8s PVs are gated on the same predicates the Compose template\n // uses (Slice 4.7 / 4.8) so an env that opts out of MANAGED MongoDB or\n // SELF ClamAV doesn't carry an unbound PV in its rendered manifests.\n expect(pvTemplate).toContain('{{#if includeLocalMongoDB}}');\n expect(pvTemplate).toContain('{{#if includeLocalClamAV}}');\n expect(pvTemplate).toContain('/mnt/local-data/mongodb');\n expect(pvTemplate).toContain('/mnt/local-data/clamav');\n });\n\n it('Slice 4 / D7 — dead static docker-compose.yml is deleted (single source of truth = .hbs)', () => {\n // The legacy hand-edited `docker-compose.yml` in the same dir as the\n // `.hbs` template has zero live consumers (the CLI's `composeFile`\n // resolution always points at `docker-compose.wildo-platform.yml`,\n // rendered from the template). Re-introducing it would re-create the\n // parallel-topology trap that once hid optional sidecar services (YARA,\n // and the since-deleted Weaviate vector store) from the catalog.\n expect(\n existsSync(join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.yml')),\n ).toBe(false);\n });\n\n /**\n * Pins the Slice 9 invariants on the two CI deploy workflow templates\n * (`deploy-k8s.yml.hbs` + `deploy-docker-compose.yml.hbs`). These are\n * the actual `.hbs` files shipped to customers — the existing\n * `ci-workflow-generator.service.test.ts` only exercises a synthetic\n * one-line template and would NOT catch a regression where the real\n * templates drift back to `wildo deploy generate` (a phantom command\n * that was never registered in the CLI) or where the K8s template's\n * `kubectl apply` path drops the env-suffix and silently applies the\n * wrong env's manifests.\n *\n * Slice 9 invariants asserted here:\n * 1. The artifact-generation step calls `wildo config sync` (the real\n * command) and NOT the phantom `wildo deploy generate`.\n * 2. The `--domain config` filter is present so the deploy job does\n * not also re-render workflow YAMLs (`cicd` domain) and per-service\n * `.env` files (`env-files` domain) — both pointless work in CI.\n * 3. The K8s template's `kubectl apply` path is env-scoped\n * (`.wildo-saas/deploy/{{envName}}/k8s/`) — matching the env-scoped\n * output dir of `generateCiDeployArtifacts`. A drift to a path with\n * no env segment would silently apply a stale or empty directory, and\n * a drift back to the pre-relocation app-root `.wildo-deploy/` would\n * escape the deploy zone's ignore guard and leak credentials.\n * 4. The framing comment crediting `wildo config sync --domain cicd`\n * as the generator (NOT `wildo deploy ci-init`) is preserved.\n * 5. The literal phantom command strings (`wildo deploy generate`,\n * `wildo deploy ci-init`) NEVER appear — only the explicit\n * \"intentionally no `wildo deploy` command surface\" framing\n * comment is allowed.\n * 6. Both templates build per-service images from each service's OWN\n * Dockerfile (`file: {{this.dockerfile}}` under `{{#each services}}`) —\n * customer-authored assets the framework does not generate. Per-service\n * deploy (Phase 9) replaced the single `Dockerfile.app` app image.\n */\n it('Slice 9 — CI deploy templates call `wildo config sync --domain config`, never the phantom `wildo deploy`', () => {\n const k8sTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-k8s.yml.hbs'),\n 'utf8',\n );\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'ci', 'deploy-docker-compose.yml.hbs'),\n 'utf8',\n );\n\n // (1) + (2) — real command, narrow domain filter.\n const expectedRun = 'run: npx wildo config sync --ci --env={{envName}} --domain config';\n expect(k8sTemplate).toContain(expectedRun);\n expect(composeTemplate).toContain(expectedRun);\n\n // (3) — env-scoped kubectl path (K8s template only), addressed inside the\n // app runtime home so the secret-bearing render is covered by the deploy\n // zone's ignore guard.\n expect(k8sTemplate).toContain(\n `kubectl apply -f ${DEPLOY_ZONE_RELATIVE_PATH}/{{envName}}/k8s/`,\n );\n expect(k8sTemplate).not.toContain(`kubectl apply -f ${DEPLOY_ZONE_RELATIVE_PATH}/k8s/`);\n // The pre-relocation app-root zone must not resurface in either template.\n expect(k8sTemplate).not.toContain('.wildo-deploy');\n expect(composeTemplate).not.toContain('.wildo-deploy');\n\n // (4) — generator credit comment.\n expect(k8sTemplate).toContain('# Generated by: wildo config sync --domain cicd');\n expect(composeTemplate).toContain('# Generated by: wildo config sync --domain cicd');\n\n // (5) — phantom command strings are forbidden anywhere except the\n // single allow-listed framing comment that explicitly documents\n // their non-existence. We strip the framing block first and then\n // assert no `wildo deploy` substring survives.\n const stripFramingComment = (s: string): string =>\n s.replace(\n /# This workflow builds one image PER SERVICE[\\s\\S]*?`wildo deploy` command surface\\.\\n/,\n '',\n );\n const k8sStripped = stripFramingComment(k8sTemplate);\n const composeStripped = stripFramingComment(composeTemplate);\n expect(k8sStripped).not.toContain('wildo deploy');\n expect(composeStripped).not.toContain('wildo deploy');\n expect(k8sStripped).not.toContain('wildo deploy generate');\n expect(composeStripped).not.toContain('wildo deploy generate');\n expect(k8sStripped).not.toContain('wildo deploy ci-init');\n expect(composeStripped).not.toContain('wildo deploy ci-init');\n\n // (6) — per-service build steps reference each service's own Dockerfile.\n expect(k8sTemplate).toContain('file: {{this.dockerfile}}');\n expect(composeTemplate).toContain('file: {{this.dockerfile}}');\n });\n\n it('does not ship the deleted local k8s e2e compatibility lane', () => {\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'jobs', 'local', 'run-e2e-tests.yaml.hbs'),\n )).toBe(false);\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'cronjobs', 'local', 'nightly-e2e-tests.yaml.hbs'),\n )).toBe(false);\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'docker-images', 'e2e', 'Dockerfile.e2e-runner'),\n )).toBe(false);\n expect(existsSync(\n join(repoRoot, 'templates', 'infra', 'docker-images', 'e2e', 'Dockerfile.e2e-dev'),\n )).toBe(false);\n });\n\n /**\n * Audit Phase 2 — the self-hosted immudb templates must start the server with `--signingKey`\n * (the whole-server-substitution defense) so the audit client's pinned `IMMUDB_STATE_PUBLIC_KEY`\n * can verify a real signature. Both the mount and the flag are GATED on a provisioned key\n * (compose: the materialized key path; k8s: the secret-name template var), so an env without a\n * keypair renders no `--signingKey` and immudb runs unsigned (client warns) rather than\n * crash-looping — graceful degradation. The immudb ENTRYPOINT is the binary, so the flag rides\n * `command`/`args`.\n */\n it('Audit Phase 2 — self-hosted immudb templates pass --signingKey (state-signature defense), gated on a provisioned key', () => {\n const composeTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'docker-compose', 'docker-compose.wildo-platform.yml.hbs'),\n 'utf8',\n );\n const immudbK8sTemplate = readFileSync(\n join(repoRoot, 'templates', 'infra', 'k8s', 'internal', 'immudb', 'deployment.yaml.hbs'),\n 'utf8',\n );\n\n // Compose: the private key file (materialized under local_data) is bind-mounted read-only and\n // passed to `--signingKey`, all gated on the resolved host path.\n expect(composeTemplate).toContain('{{#if immudbSigningKeyHostPath}}');\n expect(composeTemplate).toContain('command: [\"--signingKey\", \"/etc/immudb/state-signing.key\"]');\n expect(composeTemplate).toContain('{{immudbSigningKeyHostPath}}:/etc/immudb/state-signing.key:ro');\n\n // K8s: the private key is projected from `immudb-secret` as a single file and passed to\n // `--signingKey`, gated on the secret-name var (set only for the self-hosted immudb service).\n expect(immudbK8sTemplate).toContain('{{#if immudbStateSigningKeySecretName}}');\n expect(immudbK8sTemplate).toContain('args: [\"--signingKey\", \"/etc/immudb/signing/state-signing.key\"]');\n expect(immudbK8sTemplate).toContain('key: IMMUDB_STATE_SIGNING_KEY');\n expect(immudbK8sTemplate).toContain('secretName: {{immudbStateSigningKeySecretName}}');\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"host-toolchain-readiness.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/host-toolchain-readiness.service.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
1
+ {"version":3,"file":"host-toolchain-readiness.service.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/host-toolchain-readiness.service.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
@@ -16,7 +16,7 @@
16
16
  * are the only mechanism available, and they exist because the state they
17
17
  * replace was FOUR surfaces disagreeing with the loosest one published.
18
18
  */
19
- import { CODING_AGENT_ADAPTER_SPECIFIER, OPENCODE_AGENT_RELEASES, OPENCODE_AGENT_VERSION, OPENCODE_ESCALATING_PERMISSION_CONFIGURATION, SUPPORTED_ACP_PROTOCOL_VERSIONS, } from '@wildo-ai/external-connectors-private/backend';
19
+ import { CODING_AGENT_ADAPTER_SPECIFIER, CODEX_AGENT_ADAPTER_SPECIFIER, OPENCODE_AGENT_RELEASES, OPENCODE_AGENT_VERSION, OPENCODE_ESCALATING_PERMISSION_CONFIGURATION, SUPPORTED_ACP_PROTOCOL_VERSIONS, } from '@wildo-ai/external-connectors-private/backend';
20
20
  import { describe, expect, it } from 'vitest';
21
21
  import { readFileSync } from 'node:fs';
22
22
  import { readdirSync } from 'node:fs';
@@ -213,6 +213,15 @@ describe('SUPPORTED_NODE_MAJOR_VERSION is the single source', () => {
213
213
  expect(readRepoFile('platform/factory/scripts/install.sh'))
214
214
  .toContain(`CODING_AGENT_ADAPTER_PIN="${CODING_AGENT_ADAPTER_SPECIFIER}"`);
215
215
  });
216
+ it('pins the Codex ACP adapter identically in TypeScript and in the installer', () => {
217
+ /*
218
+ * The second npm-distributed adapter, and the same drift risk as the first:
219
+ * a shell script cannot import the constant, so the installer carries a
220
+ * literal and this test is what makes a forgotten bump loud.
221
+ */
222
+ expect(readRepoFile('platform/factory/scripts/install.sh'))
223
+ .toContain(`CODEX_AGENT_ADAPTER_PIN="${CODEX_AGENT_ADAPTER_SPECIFIER}"`);
224
+ });
216
225
  it('pins the OpenCode agent version AND every platform checksum identically in TypeScript and in the installer', () => {
217
226
  /*
218
227
  * A binary-distributed agent carries its own integrity, so the copy is not
@@ -292,6 +301,29 @@ describe('SUPPORTED_NODE_MAJOR_VERSION is the single source', () => {
292
301
  expect(windowsInstaller).toContain('pnpm v$verifiedPnpmVersion does not match the framework packageManager pin');
293
302
  expect(windowsInstaller).not.toContain('corepack prepare pnpm@latest --activate');
294
303
  });
304
+ /**
305
+ * The three declarations #421 reconciled, pinned so they cannot drift back.
306
+ *
307
+ * These are the copies that reach a GENERATED application rather than this repository — the
308
+ * framework's own workflows are covered by the test below. They were 22, 22 and 20.0.0 against an
309
+ * authority of 26, which meant a generated pipeline built on a major the framework does not
310
+ * support and `wildo init` admitted a developer host two majors older still.
311
+ */
312
+ it('is the major the SHIPPED templates and the init floor derive from (#421)', () => {
313
+ // The two deploy templates cannot import a constant, so they read a rendered variable. Assert
314
+ // the variable is there rather than a literal — a literal is what drifted.
315
+ for (const template of ['deploy-k8s.yml.hbs', 'deploy-docker-compose.yml.hbs', 'wildo-config-validation.yml.hbs']) {
316
+ const content = readRepoFile(`templates/infra/ci/${template}`);
317
+ expect(content, `${template} must render the node version, never hard-code it`).toContain('node-version: {{nodeVersion}}');
318
+ expect(content, `${template} still hard-codes a node-version`).not.toMatch(/node-version:\s*'?\d/u);
319
+ }
320
+ // And the two TypeScript declarations derive rather than restate.
321
+ const generator = readRepoFile('platform/factory/wildo-cli/src/services/deployment/ci-workflow-generator.service.ts');
322
+ expect(generator).toContain('const VALIDATION_WORKFLOW_DEFAULT_NODE_VERSION = String(SUPPORTED_NODE_MAJOR_VERSION);');
323
+ expect(generator).toContain('nodeVersion: String(SUPPORTED_NODE_MAJOR_VERSION),');
324
+ const init = readRepoFile('platform/factory/wildo-cli/src/commands/init.command.ts');
325
+ expect(init).toContain('[PlatformEnv_Utility_Tools.NODE]: `${SUPPORTED_NODE_MAJOR_VERSION}.0.0`,');
326
+ });
295
327
  it('is the version EVERY CI workflow sets up — no workflow left behind', () => {
296
328
  // Enumerated rather than sampled. The previous drift was not one stale
297
329
  // workflow but a whole consistent set that nobody rechecked when the local
@@ -1 +1 @@
1
- {"version":3,"file":"host-toolchain-readiness.service.test.js","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/host-toolchain-readiness.service.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,EACv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AE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QACrE,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QAEhD,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,YAAY,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAClF,KAAK,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC,EAAE,CAAC;gBAC7E,IAAI,qBAAqB,CAAC,QAAQ,CAAC,KAAK,4BAA4B,EAAE,CAAC;oBACrE,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,MAAM,QAAQ,EAAE,CAAC,CAAC;gBAC1C,CAAC;YACH,CAAC;QACH,CAAC;QAED,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Host toolchain readiness — Node, pnpm and the C++ toolchain.\n *\n * Two things are pinned here, and the second is the more important one.\n *\n * **The probes** must distinguish failure SHAPES that a naive check collapses:\n * a pnpm that cannot run at all versus one that is merely old; a compiler that\n * is absent versus one that is present and cannot compile C++20. Each pair has\n * a different remedy, and the 2026-08-08 incident was in every case the shape\n * that a version comparison cannot see.\n *\n * **The version authority** must stay single. `SUPPORTED_NODE_MAJOR_VERSION` is\n * the source; `engines.node`, both installers and every CI workflow are copies\n * that no language mechanism can keep in sync — a shell script and a YAML file\n * cannot import a TypeScript constant. The lockstep assertions at the bottom\n * are the only mechanism available, and they exist because the state they\n * replace was FOUR surfaces disagreeing with the loosest one published.\n */\n\nimport {\n CODING_AGENT_ADAPTER_SPECIFIER,\n OPENCODE_AGENT_RELEASES,\n OPENCODE_AGENT_VERSION,\n OPENCODE_ESCALATING_PERMISSION_CONFIGURATION,\n SUPPORTED_ACP_PROTOCOL_VERSIONS,\n} from '@wildo-ai/external-connectors-private/backend';\nimport { describe, expect, it } from 'vitest';\nimport { readFileSync } from 'node:fs';\nimport { readdirSync } from 'node:fs';\nimport { fileURLToPath } from 'node:url';\n\nimport {\n CXX20_PROBE_SOURCE,\n isNodeVersionSupported,\n MINIMUM_PNPM_VERSION,\n parseNodeMajorVersion,\n probeCxx20Toolchain,\n probePnpmExecutable,\n readDeclaredPackageManagerPnpmVersion,\n SUPPORTED_NODE_MAJOR_VERSION,\n} from '../host-toolchain-readiness.service';\nimport { isVersionAtLeast, parseVersionTriple } from '../version-compare.utils';\n\nconst repoRootUrl = new URL('../../../../../../../', import.meta.url);\nconst readRepoFile = (relativePath: string): string =>\n readFileSync(fileURLToPath(new URL(relativePath, repoRootUrl)), 'utf-8');\n\n/** Reproduces a failed `execFileSync`: an Error carrying `code` and `stderr`. */\nfunction spawnFailure(overrides: { code?: string; stderr?: string; message?: string } = {}): Error {\n const error = new Error(overrides.message ?? 'Command failed') as Error & { code?: string; stderr?: string };\n if (overrides.code !== undefined) error.code = overrides.code;\n if (overrides.stderr !== undefined) error.stderr = overrides.stderr;\n return error;\n}\n\ndescribe('version comparison', () => {\n it('compares numerically, not lexicographically — both live gates straddle a digit-width boundary', () => {\n // `'9.0.0' >= '10.0.0'` is TRUE as strings. pnpm 9 is exactly the vintage\n // the floor exists to reject, so a string compare would wave it through\n // while looking correct on every other input in this file.\n expect(isVersionAtLeast('9.0.0', '10.0.0')).toBe(false);\n expect(isVersionAtLeast('10.6.4', '10.0.0')).toBe(true);\n expect(isVersionAtLeast('10.0.0', '10.0.0')).toBe(true);\n // The Compose side of the same trap, kept here so the shared comparator is\n // pinned against both of its callers rather than only the newer one.\n expect(isVersionAtLeast('2.9', '2.24')).toBe(false);\n });\n\n it('degrades an unparseable version to null, never to 0.0.0', () => {\n // Reading \"unknown\" as zero would fail EVERY host and make the gate look\n // broken rather than the tool.\n expect(parseVersionTriple('not-a-version')).toBeNull();\n expect(isVersionAtLeast('not-a-version', '1.0.0')).toBe(false);\n expect(isVersionAtLeast('1.0.0', 'not-a-version')).toBe(false);\n });\n\n it('reads the shapes real tools emit, including suffixed patches', () => {\n expect(parseVersionTriple('v26.7.0')).toEqual([26, 7, 0]);\n expect(parseVersionTriple('2.2')).toEqual([2, 2, 0]);\n expect(parseVersionTriple('2.24.0-desktop.1')).toEqual([2, 24, 0]);\n expect(parseVersionTriple('10.6.4+sha.abc')).toEqual([10, 6, 4]);\n });\n});\n\ndescribe('parseNodeMajorVersion / isNodeVersionSupported', () => {\n it('reads the major from both the bare and v-prefixed forms', () => {\n expect(parseNodeMajorVersion('v26.7.0')).toBe(26);\n expect(parseNodeMajorVersion('26.7.0')).toBe(26);\n expect(parseNodeMajorVersion('garbage')).toBeNull();\n });\n\n it('accepts the supported major and anything later, rejects anything earlier', () => {\n expect(isNodeVersionSupported('26.0.0', 26)).toBe(true);\n expect(isNodeVersionSupported('27.1.0', 26)).toBe(true);\n expect(isNodeVersionSupported('22.12.0', 26)).toBe(false);\n // The range that used to be PUBLISHED while nothing tested it.\n expect(isNodeVersionSupported('18.0.0', 26)).toBe(false);\n });\n\n it('treats an unreadable version as unsupported', () => {\n expect(isNodeVersionSupported('garbage', 26)).toBe(false);\n });\n});\n\ndescribe('readDeclaredPackageManagerPnpmVersion', () => {\n it('extracts the exact pin from `packageManager`', () => {\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{\"packageManager\":\"pnpm@10.6.4\"}'))\n .toBe('10.6.4');\n });\n\n it('strips a corepack integrity hash', () => {\n // Corepack writes `pnpm@10.6.4+sha512.abc…`; the pin is the version.\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{\"packageManager\":\"pnpm@10.6.4+sha512.deadbeef\"}'))\n .toBe('10.6.4');\n });\n\n it('returns null — never a mismatch — when there is no pnpm pin to compare against', () => {\n // Absence of evidence. Reporting a mismatch here would blame the operator\n // for a manifest that simply does not declare a pin.\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{}')).toBeNull();\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{\"packageManager\":\"yarn@4.1.0\"}')).toBeNull();\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => 'not json')).toBeNull();\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => {\n throw new Error('ENOENT');\n })).toBeNull();\n });\n});\n\ndescribe('probePnpmExecutable', () => {\n it('reports the ENOENT self-switch corruption as a FAILURE, not as an unknown version', () => {\n // The 2026-08-08 incident exactly: the shim was present and on PATH, the\n // `packageManager` self-switch had downloaded a 4 KB skeleton with no\n // binary, and every invocation died ENOENT. There is no version to read —\n // the absence of one IS the fault — so nothing that inspected a file could\n // have found this.\n const result = probePnpmExecutable(() => {\n throw spawnFailure({ code: 'ENOENT', message: 'spawnSync pnpm ENOENT' });\n });\n\n expect(result.version).toBeNull();\n expect(result.failure).toContain('ENOENT');\n });\n\n it('prefers the child stderr when there is one', () => {\n const result = probePnpmExecutable(() => {\n throw spawnFailure({ stderr: 'ERR_PNPM_BAD_TOOL Broken tool cache\\nsecond line' });\n });\n\n expect(result.failure).toContain('ERR_PNPM_BAD_TOOL');\n expect(result.failure).not.toContain('second line');\n });\n\n it('treats unrecognisable output as a failure rather than an unknown version', () => {\n // pnpm answering `--version` with something unparseable is a broken pnpm.\n const result = probePnpmExecutable(() => 'not a version\\n');\n\n expect(result.version).toBeNull();\n expect(result.failure).toContain('unrecognisable');\n });\n\n it('returns the version when pnpm answers normally', () => {\n expect(probePnpmExecutable(() => '10.6.4\\n')).toEqual({ version: '10.6.4', failure: null });\n });\n});\n\ndescribe('probeCxx20Toolchain', () => {\n it('COMPILES rather than reading a version string', () => {\n // The whole reason this probe exists: the broken host reported Apple clang\n // 21.0.0 over a libc++ from 2020. Pin the invocation shape, because a\n // future \"optimisation\" to `clang --version` would pass every other test\n // here while reinstating the exact blindness.\n const invocations: Array<{ compiler: string; args: readonly string[]; source: string }> = [];\n const result = probeCxx20Toolchain({\n platform: 'darwin',\n compiler: 'c++',\n run: (compiler, args, source) => {\n invocations.push({ compiler, args, source });\n },\n });\n\n expect(result.status).toBe('ok');\n expect(invocations).toHaveLength(1);\n expect(invocations[0].args).toContain('-std=c++20');\n expect(invocations[0].args).toContain('-fsyntax-only');\n // Source on stdin: this runs inside a read-only diagnostic, so the probe\n // must not write a scratch file.\n expect(invocations[0].args).toContain('-');\n expect(invocations[0].source).toBe(CXX20_PROBE_SOURCE);\n expect(invocations[0].source).toContain('#include <ranges>');\n });\n\n it('separates a MISSING compiler from one that cannot compile C++20', () => {\n // Two different remedies — install a toolchain, versus repair one whose\n // standard library is fifteen years older than its compiler — so the two\n // must not collapse into one status.\n const absent = probeCxx20Toolchain({\n platform: 'linux',\n run: () => {\n throw spawnFailure({ code: 'ENOENT', message: 'spawnSync c++ ENOENT' });\n },\n });\n expect(absent.status).toBe('absent');\n\n const unsupported = probeCxx20Toolchain({\n platform: 'darwin',\n run: () => {\n throw spawnFailure({ stderr: \"fatal error: 'ranges' file not found\" });\n },\n });\n expect(unsupported.status).toBe('unsupported');\n expect(unsupported.diagnostic).toContain(\"'ranges' file not found\");\n });\n\n it('reports Windows as NOT PROBED rather than guessing either way', () => {\n // Answering whether MSVC can compile C++20 needs a Developer Command\n // Prompt environment this process does not have. A guess would be either a\n // permanent false warning or a false assurance.\n const result = probeCxx20Toolchain({\n platform: 'win32',\n run: () => {\n throw new Error('must not be invoked on win32');\n },\n });\n\n expect(result.status).toBe('not-probed');\n });\n});\n\n/**\n * The version authority, pinned across every surface that restates it.\n *\n * These assertions are the ONLY thing preventing the state this work removed:\n * four declarations of one decision, drifting apart, with the loosest of them\n * published as the supported range.\n */\ndescribe('SUPPORTED_NODE_MAJOR_VERSION is the single source', () => {\n it('is the floor published by root `engines.node`', () => {\n const rootManifest = JSON.parse(readRepoFile('package.json')) as { engines?: { node?: string; pnpm?: string } };\n\n expect(rootManifest.engines?.node).toBe(`>=${SUPPORTED_NODE_MAJOR_VERSION}.0.0`);\n // The pnpm floor is restated by both installers; keep it derived too.\n expect(rootManifest.engines?.pnpm).toBe(`>=${MINIMUM_PNPM_VERSION.split('.')[0]}.0.0`);\n });\n\n it('pins the coding-agent adapter identically in TypeScript and in the installer', () => {\n /*\n * The adapter is an independently released dependency sitting between Wildo\n * and the model, and it was declared in TWO places with no mechanical link —\n * the provider contract and an application's own execution profile — which\n * is the shape that drifts at the first bump.\n *\n * `CODING_AGENT_ADAPTER_SPECIFIER` is now the authority. A shell script\n * cannot import it, exactly as with the Node major version, so the installer\n * carries a literal and this test is what makes a forgotten bump loud.\n */\n expect(readRepoFile('platform/factory/scripts/install.sh'))\n .toContain(`CODING_AGENT_ADAPTER_PIN=\"${CODING_AGENT_ADAPTER_SPECIFIER}\"`);\n });\n\n it('pins the OpenCode agent version AND every platform checksum identically in TypeScript and in the installer', () => {\n /*\n * A binary-distributed agent carries its own integrity, so the copy is not\n * one string but a version plus a per-platform digest table — and a digest\n * that drifts from its authority is worse than one that is missing, because\n * a mismatched download is REFUSED and reads as a broken release rather\n * than as a stale pin.\n *\n * Every platform is asserted, not just this machine's: the installer runs\n * on hosts this suite never executes on, and a table checked one row at a\n * time is a table whose other five rows nobody verifies.\n */\n const installer = readRepoFile('platform/factory/scripts/install.sh');\n expect(installer).toContain(`OPENCODE_AGENT_PIN=\"${OPENCODE_AGENT_VERSION}\"`);\n\n for (const [target, release] of Object.entries(OPENCODE_AGENT_RELEASES)) {\n // Windows has no installer branch (the lane is POSIX), so its digest is\n // authority-only — assert the four the installer actually selects from.\n if (target.startsWith('windows-')) continue;\n expect(installer, `installer is missing the ${target} checksum`).toContain(release.sha256);\n expect(release.archiveUrl).toContain(`/v${OPENCODE_AGENT_VERSION}/`);\n }\n });\n\n it('declares an escalating permission posture for OpenCode, because its default configuration does not ask', () => {\n /*\n * MEASURED 2026-09-04 with `wildo acp probe`: under its default\n * configuration OpenCode created a file having raised NO\n * `session/request_permission`, so the ceiling was unenforceable and\n * neither mutation-scope guard saw the write. Pointed at this posture the\n * identical task escalated, was refused, and wrote nothing.\n *\n * So this is not hardening — it is the condition under which the agent may\n * be dispatched at all, and a posture that silently loosened to `allow`\n * would restore the hole while every suite stayed green.\n */\n const permission = OPENCODE_ESCALATING_PERMISSION_CONFIGURATION.permission as Record<string, string>;\n expect(permission.edit).toBe('ask');\n expect(permission.bash).toBe('ask');\n expect(permission.webfetch).toBe('ask');\n });\n\n it('states the ACP protocol versions the framework can actually hold an agent to', () => {\n // Not a formality: the permission ceiling, the mutation scope and the usage\n // accounting are all expressed through protocol shapes, so an agent\n // negotiating an unsupported major is refused rather than spoken to.\n expect(SUPPORTED_ACP_PROTOCOL_VERSIONS.length).toBeGreaterThan(0);\n for (const version of SUPPORTED_ACP_PROTOCOL_VERSIONS) {\n expect(Number.isInteger(version)).toBe(true);\n expect(version).toBeGreaterThan(0);\n }\n });\n\n it('is the minimum both installers enforce', () => {\n // POSIX shell and PowerShell cannot import a TypeScript constant, so a\n // literal in each is the only option — and a test is the only thing that\n // makes a forgotten bump loud instead of silent.\n expect(readRepoFile('platform/factory/scripts/install.sh'))\n .toContain(`MIN_NODE_VERSION=\"${SUPPORTED_NODE_MAJOR_VERSION}\"`);\n expect(readRepoFile('platform/factory/scripts/install.ps1'))\n .toContain(`$MIN_NODE_VERSION = \"${SUPPORTED_NODE_MAJOR_VERSION}\"`);\n\n expect(readRepoFile('platform/factory/scripts/install.sh'))\n .toContain(`MIN_PNPM_VERSION=\"${MINIMUM_PNPM_VERSION.split('.')[0]}\"`);\n expect(readRepoFile('platform/factory/scripts/install.ps1'))\n .toContain(`$MIN_PNPM_VERSION = \"${MINIMUM_PNPM_VERSION.split('.')[0]}\"`);\n });\n\n it('repairs an unusable pnpm launcher to the framework exact pin in both installers', () => {\n // A floor-only version probe missed the exact failure reported by local\n // doctor: a pnpm shim could be on PATH yet fail with ENOENT after a partial\n // packageManager switch. Installation must bind a runnable pnpm to the\n // selected Node runtime, then verify the source checkout's pin before any\n // dependency command is allowed to run.\n const posixInstaller = readRepoFile('platform/factory/scripts/install.sh');\n expect(posixInstaller).toContain('read_framework_pnpm_pin()');\n expect(posixInstaller).toContain('npm install -g \"pnpm@$framework_pnpm_pin\"');\n expect(posixInstaller).toContain('pnpm v$verified_pnpm_version does not match the framework packageManager pin');\n expect(posixInstaller).not.toContain('corepack prepare pnpm@latest --activate');\n\n const windowsInstaller = readRepoFile('platform/factory/scripts/install.ps1');\n expect(windowsInstaller).toContain('& npm install -g \"pnpm@$frameworkPnpmPin\"');\n expect(windowsInstaller).toContain('pnpm v$verifiedPnpmVersion does not match the framework packageManager pin');\n expect(windowsInstaller).not.toContain('corepack prepare pnpm@latest --activate');\n });\n\n it('is the version EVERY CI workflow sets up — no workflow left behind', () => {\n // Enumerated rather than sampled. The previous drift was not one stale\n // workflow but a whole consistent set that nobody rechecked when the local\n // standard moved, so this asserts over the directory listing and fails the\n // day someone adds workflow #20 on an older major.\n const workflowsDir = new URL('.github/workflows/', repoRootUrl);\n const workflowFiles = readdirSync(fileURLToPath(workflowsDir))\n .filter((file) => file.endsWith('.yml') || file.endsWith('.yaml'));\n expect(workflowFiles.length).toBeGreaterThan(0);\n\n const offenders: string[] = [];\n for (const file of workflowFiles) {\n const content = readFileSync(fileURLToPath(new URL(file, workflowsDir)), 'utf-8');\n for (const [, declared] of content.matchAll(/node-version:\\s*'?([\\d.]+)'?/g)) {\n if (parseNodeMajorVersion(declared) !== SUPPORTED_NODE_MAJOR_VERSION) {\n offenders.push(`${file} → ${declared}`);\n }\n }\n }\n\n expect(offenders).toEqual([]);\n });\n});\n"]}
1
+ {"version":3,"file":"host-toolchain-readiness.service.test.js","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/host-toolchain-readiness.service.test.ts"],"names":[],"m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AAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QAEhD,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,YAAY,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;YAClF,KAAK,MAAM,CAAC,EAAE,QAAQ,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,+BAA+B,CAAC,EAAE,CAAC;gBAC7E,IAAI,qBAAqB,CAAC,QAAQ,CAAC,KAAK,4BAA4B,EAAE,CAAC;oBACrE,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,MAAM,QAAQ,EAAE,CAAC,CAAC;gBAC1C,CAAC;YACH,CAAC;QACH,CAAC;QAED,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Host toolchain readiness — Node, pnpm and the C++ toolchain.\n *\n * Two things are pinned here, and the second is the more important one.\n *\n * **The probes** must distinguish failure SHAPES that a naive check collapses:\n * a pnpm that cannot run at all versus one that is merely old; a compiler that\n * is absent versus one that is present and cannot compile C++20. Each pair has\n * a different remedy, and the 2026-08-08 incident was in every case the shape\n * that a version comparison cannot see.\n *\n * **The version authority** must stay single. `SUPPORTED_NODE_MAJOR_VERSION` is\n * the source; `engines.node`, both installers and every CI workflow are copies\n * that no language mechanism can keep in sync — a shell script and a YAML file\n * cannot import a TypeScript constant. The lockstep assertions at the bottom\n * are the only mechanism available, and they exist because the state they\n * replace was FOUR surfaces disagreeing with the loosest one published.\n */\n\nimport {\n CODING_AGENT_ADAPTER_SPECIFIER,\n CODEX_AGENT_ADAPTER_SPECIFIER,\n OPENCODE_AGENT_RELEASES,\n OPENCODE_AGENT_VERSION,\n OPENCODE_ESCALATING_PERMISSION_CONFIGURATION,\n SUPPORTED_ACP_PROTOCOL_VERSIONS,\n} from '@wildo-ai/external-connectors-private/backend';\nimport { describe, expect, it } from 'vitest';\nimport { readFileSync } from 'node:fs';\nimport { readdirSync } from 'node:fs';\nimport { fileURLToPath } from 'node:url';\n\nimport {\n CXX20_PROBE_SOURCE,\n isNodeVersionSupported,\n MINIMUM_PNPM_VERSION,\n parseNodeMajorVersion,\n probeCxx20Toolchain,\n probePnpmExecutable,\n readDeclaredPackageManagerPnpmVersion,\n SUPPORTED_NODE_MAJOR_VERSION,\n} from '../host-toolchain-readiness.service';\nimport { isVersionAtLeast, parseVersionTriple } from '../version-compare.utils';\n\nconst repoRootUrl = new URL('../../../../../../../', import.meta.url);\nconst readRepoFile = (relativePath: string): string =>\n readFileSync(fileURLToPath(new URL(relativePath, repoRootUrl)), 'utf-8');\n\n/** Reproduces a failed `execFileSync`: an Error carrying `code` and `stderr`. */\nfunction spawnFailure(overrides: { code?: string; stderr?: string; message?: string } = {}): Error {\n const error = new Error(overrides.message ?? 'Command failed') as Error & { code?: string; stderr?: string };\n if (overrides.code !== undefined) error.code = overrides.code;\n if (overrides.stderr !== undefined) error.stderr = overrides.stderr;\n return error;\n}\n\ndescribe('version comparison', () => {\n it('compares numerically, not lexicographically — both live gates straddle a digit-width boundary', () => {\n // `'9.0.0' >= '10.0.0'` is TRUE as strings. pnpm 9 is exactly the vintage\n // the floor exists to reject, so a string compare would wave it through\n // while looking correct on every other input in this file.\n expect(isVersionAtLeast('9.0.0', '10.0.0')).toBe(false);\n expect(isVersionAtLeast('10.6.4', '10.0.0')).toBe(true);\n expect(isVersionAtLeast('10.0.0', '10.0.0')).toBe(true);\n // The Compose side of the same trap, kept here so the shared comparator is\n // pinned against both of its callers rather than only the newer one.\n expect(isVersionAtLeast('2.9', '2.24')).toBe(false);\n });\n\n it('degrades an unparseable version to null, never to 0.0.0', () => {\n // Reading \"unknown\" as zero would fail EVERY host and make the gate look\n // broken rather than the tool.\n expect(parseVersionTriple('not-a-version')).toBeNull();\n expect(isVersionAtLeast('not-a-version', '1.0.0')).toBe(false);\n expect(isVersionAtLeast('1.0.0', 'not-a-version')).toBe(false);\n });\n\n it('reads the shapes real tools emit, including suffixed patches', () => {\n expect(parseVersionTriple('v26.7.0')).toEqual([26, 7, 0]);\n expect(parseVersionTriple('2.2')).toEqual([2, 2, 0]);\n expect(parseVersionTriple('2.24.0-desktop.1')).toEqual([2, 24, 0]);\n expect(parseVersionTriple('10.6.4+sha.abc')).toEqual([10, 6, 4]);\n });\n});\n\ndescribe('parseNodeMajorVersion / isNodeVersionSupported', () => {\n it('reads the major from both the bare and v-prefixed forms', () => {\n expect(parseNodeMajorVersion('v26.7.0')).toBe(26);\n expect(parseNodeMajorVersion('26.7.0')).toBe(26);\n expect(parseNodeMajorVersion('garbage')).toBeNull();\n });\n\n it('accepts the supported major and anything later, rejects anything earlier', () => {\n expect(isNodeVersionSupported('26.0.0', 26)).toBe(true);\n expect(isNodeVersionSupported('27.1.0', 26)).toBe(true);\n expect(isNodeVersionSupported('22.12.0', 26)).toBe(false);\n // The range that used to be PUBLISHED while nothing tested it.\n expect(isNodeVersionSupported('18.0.0', 26)).toBe(false);\n });\n\n it('treats an unreadable version as unsupported', () => {\n expect(isNodeVersionSupported('garbage', 26)).toBe(false);\n });\n});\n\ndescribe('readDeclaredPackageManagerPnpmVersion', () => {\n it('extracts the exact pin from `packageManager`', () => {\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{\"packageManager\":\"pnpm@10.6.4\"}'))\n .toBe('10.6.4');\n });\n\n it('strips a corepack integrity hash', () => {\n // Corepack writes `pnpm@10.6.4+sha512.abc…`; the pin is the version.\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{\"packageManager\":\"pnpm@10.6.4+sha512.deadbeef\"}'))\n .toBe('10.6.4');\n });\n\n it('returns null — never a mismatch — when there is no pnpm pin to compare against', () => {\n // Absence of evidence. Reporting a mismatch here would blame the operator\n // for a manifest that simply does not declare a pin.\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{}')).toBeNull();\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => '{\"packageManager\":\"yarn@4.1.0\"}')).toBeNull();\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => 'not json')).toBeNull();\n expect(readDeclaredPackageManagerPnpmVersion('/x/package.json', () => {\n throw new Error('ENOENT');\n })).toBeNull();\n });\n});\n\ndescribe('probePnpmExecutable', () => {\n it('reports the ENOENT self-switch corruption as a FAILURE, not as an unknown version', () => {\n // The 2026-08-08 incident exactly: the shim was present and on PATH, the\n // `packageManager` self-switch had downloaded a 4 KB skeleton with no\n // binary, and every invocation died ENOENT. There is no version to read —\n // the absence of one IS the fault — so nothing that inspected a file could\n // have found this.\n const result = probePnpmExecutable(() => {\n throw spawnFailure({ code: 'ENOENT', message: 'spawnSync pnpm ENOENT' });\n });\n\n expect(result.version).toBeNull();\n expect(result.failure).toContain('ENOENT');\n });\n\n it('prefers the child stderr when there is one', () => {\n const result = probePnpmExecutable(() => {\n throw spawnFailure({ stderr: 'ERR_PNPM_BAD_TOOL Broken tool cache\\nsecond line' });\n });\n\n expect(result.failure).toContain('ERR_PNPM_BAD_TOOL');\n expect(result.failure).not.toContain('second line');\n });\n\n it('treats unrecognisable output as a failure rather than an unknown version', () => {\n // pnpm answering `--version` with something unparseable is a broken pnpm.\n const result = probePnpmExecutable(() => 'not a version\\n');\n\n expect(result.version).toBeNull();\n expect(result.failure).toContain('unrecognisable');\n });\n\n it('returns the version when pnpm answers normally', () => {\n expect(probePnpmExecutable(() => '10.6.4\\n')).toEqual({ version: '10.6.4', failure: null });\n });\n});\n\ndescribe('probeCxx20Toolchain', () => {\n it('COMPILES rather than reading a version string', () => {\n // The whole reason this probe exists: the broken host reported Apple clang\n // 21.0.0 over a libc++ from 2020. Pin the invocation shape, because a\n // future \"optimisation\" to `clang --version` would pass every other test\n // here while reinstating the exact blindness.\n const invocations: Array<{ compiler: string; args: readonly string[]; source: string }> = [];\n const result = probeCxx20Toolchain({\n platform: 'darwin',\n compiler: 'c++',\n run: (compiler, args, source) => {\n invocations.push({ compiler, args, source });\n },\n });\n\n expect(result.status).toBe('ok');\n expect(invocations).toHaveLength(1);\n expect(invocations[0].args).toContain('-std=c++20');\n expect(invocations[0].args).toContain('-fsyntax-only');\n // Source on stdin: this runs inside a read-only diagnostic, so the probe\n // must not write a scratch file.\n expect(invocations[0].args).toContain('-');\n expect(invocations[0].source).toBe(CXX20_PROBE_SOURCE);\n expect(invocations[0].source).toContain('#include <ranges>');\n });\n\n it('separates a MISSING compiler from one that cannot compile C++20', () => {\n // Two different remedies — install a toolchain, versus repair one whose\n // standard library is fifteen years older than its compiler — so the two\n // must not collapse into one status.\n const absent = probeCxx20Toolchain({\n platform: 'linux',\n run: () => {\n throw spawnFailure({ code: 'ENOENT', message: 'spawnSync c++ ENOENT' });\n },\n });\n expect(absent.status).toBe('absent');\n\n const unsupported = probeCxx20Toolchain({\n platform: 'darwin',\n run: () => {\n throw spawnFailure({ stderr: \"fatal error: 'ranges' file not found\" });\n },\n });\n expect(unsupported.status).toBe('unsupported');\n expect(unsupported.diagnostic).toContain(\"'ranges' file not found\");\n });\n\n it('reports Windows as NOT PROBED rather than guessing either way', () => {\n // Answering whether MSVC can compile C++20 needs a Developer Command\n // Prompt environment this process does not have. A guess would be either a\n // permanent false warning or a false assurance.\n const result = probeCxx20Toolchain({\n platform: 'win32',\n run: () => {\n throw new Error('must not be invoked on win32');\n },\n });\n\n expect(result.status).toBe('not-probed');\n });\n});\n\n/**\n * The version authority, pinned across every surface that restates it.\n *\n * These assertions are the ONLY thing preventing the state this work removed:\n * four declarations of one decision, drifting apart, with the loosest of them\n * published as the supported range.\n */\ndescribe('SUPPORTED_NODE_MAJOR_VERSION is the single source', () => {\n it('is the floor published by root `engines.node`', () => {\n const rootManifest = JSON.parse(readRepoFile('package.json')) as { engines?: { node?: string; pnpm?: string } };\n\n expect(rootManifest.engines?.node).toBe(`>=${SUPPORTED_NODE_MAJOR_VERSION}.0.0`);\n // The pnpm floor is restated by both installers; keep it derived too.\n expect(rootManifest.engines?.pnpm).toBe(`>=${MINIMUM_PNPM_VERSION.split('.')[0]}.0.0`);\n });\n\n it('pins the coding-agent adapter identically in TypeScript and in the installer', () => {\n /*\n * The adapter is an independently released dependency sitting between Wildo\n * and the model, and it was declared in TWO places with no mechanical link —\n * the provider contract and an application's own execution profile — which\n * is the shape that drifts at the first bump.\n *\n * `CODING_AGENT_ADAPTER_SPECIFIER` is now the authority. A shell script\n * cannot import it, exactly as with the Node major version, so the installer\n * carries a literal and this test is what makes a forgotten bump loud.\n */\n expect(readRepoFile('platform/factory/scripts/install.sh'))\n .toContain(`CODING_AGENT_ADAPTER_PIN=\"${CODING_AGENT_ADAPTER_SPECIFIER}\"`);\n });\n\n it('pins the Codex ACP adapter identically in TypeScript and in the installer', () => {\n /*\n * The second npm-distributed adapter, and the same drift risk as the first:\n * a shell script cannot import the constant, so the installer carries a\n * literal and this test is what makes a forgotten bump loud.\n */\n expect(readRepoFile('platform/factory/scripts/install.sh'))\n .toContain(`CODEX_AGENT_ADAPTER_PIN=\"${CODEX_AGENT_ADAPTER_SPECIFIER}\"`);\n });\n\n it('pins the OpenCode agent version AND every platform checksum identically in TypeScript and in the installer', () => {\n /*\n * A binary-distributed agent carries its own integrity, so the copy is not\n * one string but a version plus a per-platform digest table — and a digest\n * that drifts from its authority is worse than one that is missing, because\n * a mismatched download is REFUSED and reads as a broken release rather\n * than as a stale pin.\n *\n * Every platform is asserted, not just this machine's: the installer runs\n * on hosts this suite never executes on, and a table checked one row at a\n * time is a table whose other five rows nobody verifies.\n */\n const installer = readRepoFile('platform/factory/scripts/install.sh');\n expect(installer).toContain(`OPENCODE_AGENT_PIN=\"${OPENCODE_AGENT_VERSION}\"`);\n\n for (const [target, release] of Object.entries(OPENCODE_AGENT_RELEASES)) {\n // Windows has no installer branch (the lane is POSIX), so its digest is\n // authority-only — assert the four the installer actually selects from.\n if (target.startsWith('windows-')) continue;\n expect(installer, `installer is missing the ${target} checksum`).toContain(release.sha256);\n expect(release.archiveUrl).toContain(`/v${OPENCODE_AGENT_VERSION}/`);\n }\n });\n\n it('declares an escalating permission posture for OpenCode, because its default configuration does not ask', () => {\n /*\n * MEASURED 2026-09-04 with `wildo acp probe`: under its default\n * configuration OpenCode created a file having raised NO\n * `session/request_permission`, so the ceiling was unenforceable and\n * neither mutation-scope guard saw the write. Pointed at this posture the\n * identical task escalated, was refused, and wrote nothing.\n *\n * So this is not hardening — it is the condition under which the agent may\n * be dispatched at all, and a posture that silently loosened to `allow`\n * would restore the hole while every suite stayed green.\n */\n const permission = OPENCODE_ESCALATING_PERMISSION_CONFIGURATION.permission as Record<string, string>;\n expect(permission.edit).toBe('ask');\n expect(permission.bash).toBe('ask');\n expect(permission.webfetch).toBe('ask');\n });\n\n it('states the ACP protocol versions the framework can actually hold an agent to', () => {\n // Not a formality: the permission ceiling, the mutation scope and the usage\n // accounting are all expressed through protocol shapes, so an agent\n // negotiating an unsupported major is refused rather than spoken to.\n expect(SUPPORTED_ACP_PROTOCOL_VERSIONS.length).toBeGreaterThan(0);\n for (const version of SUPPORTED_ACP_PROTOCOL_VERSIONS) {\n expect(Number.isInteger(version)).toBe(true);\n expect(version).toBeGreaterThan(0);\n }\n });\n\n it('is the minimum both installers enforce', () => {\n // POSIX shell and PowerShell cannot import a TypeScript constant, so a\n // literal in each is the only option — and a test is the only thing that\n // makes a forgotten bump loud instead of silent.\n expect(readRepoFile('platform/factory/scripts/install.sh'))\n .toContain(`MIN_NODE_VERSION=\"${SUPPORTED_NODE_MAJOR_VERSION}\"`);\n expect(readRepoFile('platform/factory/scripts/install.ps1'))\n .toContain(`$MIN_NODE_VERSION = \"${SUPPORTED_NODE_MAJOR_VERSION}\"`);\n\n expect(readRepoFile('platform/factory/scripts/install.sh'))\n .toContain(`MIN_PNPM_VERSION=\"${MINIMUM_PNPM_VERSION.split('.')[0]}\"`);\n expect(readRepoFile('platform/factory/scripts/install.ps1'))\n .toContain(`$MIN_PNPM_VERSION = \"${MINIMUM_PNPM_VERSION.split('.')[0]}\"`);\n });\n\n it('repairs an unusable pnpm launcher to the framework exact pin in both installers', () => {\n // A floor-only version probe missed the exact failure reported by local\n // doctor: a pnpm shim could be on PATH yet fail with ENOENT after a partial\n // packageManager switch. Installation must bind a runnable pnpm to the\n // selected Node runtime, then verify the source checkout's pin before any\n // dependency command is allowed to run.\n const posixInstaller = readRepoFile('platform/factory/scripts/install.sh');\n expect(posixInstaller).toContain('read_framework_pnpm_pin()');\n expect(posixInstaller).toContain('npm install -g \"pnpm@$framework_pnpm_pin\"');\n expect(posixInstaller).toContain('pnpm v$verified_pnpm_version does not match the framework packageManager pin');\n expect(posixInstaller).not.toContain('corepack prepare pnpm@latest --activate');\n\n const windowsInstaller = readRepoFile('platform/factory/scripts/install.ps1');\n expect(windowsInstaller).toContain('& npm install -g \"pnpm@$frameworkPnpmPin\"');\n expect(windowsInstaller).toContain('pnpm v$verifiedPnpmVersion does not match the framework packageManager pin');\n expect(windowsInstaller).not.toContain('corepack prepare pnpm@latest --activate');\n });\n\n /**\n * The three declarations #421 reconciled, pinned so they cannot drift back.\n *\n * These are the copies that reach a GENERATED application rather than this repository — the\n * framework's own workflows are covered by the test below. They were 22, 22 and 20.0.0 against an\n * authority of 26, which meant a generated pipeline built on a major the framework does not\n * support and `wildo init` admitted a developer host two majors older still.\n */\n it('is the major the SHIPPED templates and the init floor derive from (#421)', () => {\n // The two deploy templates cannot import a constant, so they read a rendered variable. Assert\n // the variable is there rather than a literal — a literal is what drifted.\n for (const template of ['deploy-k8s.yml.hbs', 'deploy-docker-compose.yml.hbs', 'wildo-config-validation.yml.hbs']) {\n const content = readRepoFile(`templates/infra/ci/${template}`);\n expect(content, `${template} must render the node version, never hard-code it`).toContain('node-version: {{nodeVersion}}');\n expect(content, `${template} still hard-codes a node-version`).not.toMatch(/node-version:\\s*'?\\d/u);\n }\n\n // And the two TypeScript declarations derive rather than restate.\n const generator = readRepoFile('platform/factory/wildo-cli/src/services/deployment/ci-workflow-generator.service.ts');\n expect(generator).toContain('const VALIDATION_WORKFLOW_DEFAULT_NODE_VERSION = String(SUPPORTED_NODE_MAJOR_VERSION);');\n expect(generator).toContain('nodeVersion: String(SUPPORTED_NODE_MAJOR_VERSION),');\n\n const init = readRepoFile('platform/factory/wildo-cli/src/commands/init.command.ts');\n expect(init).toContain('[PlatformEnv_Utility_Tools.NODE]: `${SUPPORTED_NODE_MAJOR_VERSION}.0.0`,');\n });\n\n it('is the version EVERY CI workflow sets up — no workflow left behind', () => {\n // Enumerated rather than sampled. The previous drift was not one stale\n // workflow but a whole consistent set that nobody rechecked when the local\n // standard moved, so this asserts over the directory listing and fails the\n // day someone adds workflow #20 on an older major.\n const workflowsDir = new URL('.github/workflows/', repoRootUrl);\n const workflowFiles = readdirSync(fileURLToPath(workflowsDir))\n .filter((file) => file.endsWith('.yml') || file.endsWith('.yaml'));\n expect(workflowFiles.length).toBeGreaterThan(0);\n\n const offenders: string[] = [];\n for (const file of workflowFiles) {\n const content = readFileSync(fileURLToPath(new URL(file, workflowsDir)), 'utf-8');\n for (const [, declared] of content.matchAll(/node-version:\\s*'?([\\d.]+)'?/g)) {\n if (parseNodeMajorVersion(declared) !== SUPPORTED_NODE_MAJOR_VERSION) {\n offenders.push(`${file} → ${declared}`);\n }\n }\n }\n\n expect(offenders).toEqual([]);\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"infra-templates-render-smoke.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/infra-templates-render-smoke.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"infra-templates-render-smoke.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/infra-templates-render-smoke.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"local-dev-observer-lifecycle.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/local-dev-observer-lifecycle.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"local-dev-observer-lifecycle.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/local-dev-observer-lifecycle.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"local-dev-output-boundary.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/local-dev-output-boundary.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"local-dev-output-boundary.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/local-dev-output-boundary.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"local-dev-session-lease.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/local-dev-session-lease.service.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"local-dev-session-lease.service.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/local-dev-session-lease.service.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"local-dev-shutdown-coordinator.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"local-dev-shutdown-coordinator.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"local-precondition-checks.service.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/services/deployment/__tests__/local-precondition-checks.service.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
1
+ {"version":3,"file":"local-precondition-checks.service.test.d.ts","sourceRoot":"","sources":["../../../../../src/services/deployment/__tests__/local-precondition-checks.service.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
@@ -27,7 +27,7 @@ vi.mock('child_process', () => ({
27
27
  execSync: vi.fn(() => '2.39.4\n'),
28
28
  execFileSync: vi.fn(() => '10.6.4\n'),
29
29
  }));
30
- import { checkCxx20Toolchain, checkDerivedArtifactCurrency, checkDockerComposeVersion, checkNodeVersion, checkOrphanedDevWatchers, checkPnpmToolchain, checkProviderRuntimeGeneratedModules, collectLocalPreconditionChecks, COMPOSE_UPGRADE_REMEDIATION, CXX20_TOOLCHAIN_REMEDIATION, DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH, NODE_UPGRADE_REMEDIATION, ORPHANED_DEV_WATCHER_REMEDIATION, PNPM_REPAIR_REMEDIATION, PROVIDER_RUNTIME_SYNC_REMEDIATION, } from '../local-precondition-checks.service.js';
30
+ import { checkCustomRoleScopes, checkCxx20Toolchain, checkDerivedArtifactCurrency, checkDockerComposeVersion, checkNodeVersion, checkOrphanedDevWatchers, checkPnpmToolchain, checkProviderRuntimeGeneratedModules, collectLocalPreconditionChecks, COMPOSE_UPGRADE_REMEDIATION, CXX20_TOOLCHAIN_REMEDIATION, DERIVED_ARTIFACT_CURRENCY_SWEEP_RELATIVE_PATH, NODE_UPGRADE_REMEDIATION, ORPHANED_DEV_WATCHER_REMEDIATION, PNPM_REPAIR_REMEDIATION, PROVIDER_RUNTIME_SYNC_REMEDIATION, } from '../local-precondition-checks.service.js';
31
31
  import { Cxx20ProbeStatus, SUPPORTED_NODE_MAJOR_VERSION } from '../host-toolchain-readiness.service.js';
32
32
  import { LocalPreconditionCheckStatus } from '../local-precondition-checks.schemas.js';
33
33
  import { isComposeVersionAtLeast, MINIMUM_DOCKER_COMPOSE_VERSION, parseDockerComposeVersionOutput, } from '../docker/docker-compose-readiness.service.js';
@@ -118,6 +118,49 @@ describe('checkPnpmToolchain', () => {
118
118
  }).status).toBe(LocalPreconditionCheckStatus.PASS);
119
119
  });
120
120
  });
121
+ describe('checkCustomRoleScopes', () => {
122
+ const rolesSource = (scopes) => `import { ResourcePrimaryScope } from '@wildo-ai/saas-models';
123
+
124
+ export const CUSTOM_APP_ROLES = {
125
+ ${scopes.map(([roleKey, scope]) => ` ${roleKey}: {
126
+ role: '${roleKey}',
127
+ relatedPrimaryScope: ResourcePrimaryScope.${scope},
128
+ },`).join('\n')}
129
+ };
130
+ `;
131
+ it('WARNS on a role at a scope the authorization layer skips, and says the role is INERT', () => {
132
+ const result = checkCustomRoleScopes('/app', {
133
+ readFile: () => rolesSource([['CUSTOM_SELF_THING', 'USER_SELF']]),
134
+ });
135
+ expect(result.status).toBe(LocalPreconditionCheckStatus.WARN);
136
+ // The signal has to be unmissable: the failure it replaces is a startup warning nobody reads.
137
+ expect(result.detail).toContain('CUSTOM_SELF_THING');
138
+ expect(result.detail).toContain('USER_SELF');
139
+ expect(result.detail).toContain('INERT');
140
+ expect(result.fix).toContain('shared-lib/src/engine/roles.ts');
141
+ });
142
+ it('WARNS on an unknown scope too — the default arm of the same switch', () => {
143
+ const result = checkCustomRoleScopes('/app', {
144
+ readFile: () => rolesSource([['CUSTOM_MYSTERY', 'SOMETHING_ELSE']]),
145
+ });
146
+ expect(result.status).toBe(LocalPreconditionCheckStatus.WARN);
147
+ expect(result.detail).toContain('CUSTOM_MYSTERY');
148
+ });
149
+ it('passes the two supported scopes — the POSITIVE CONTROL for the matcher', () => {
150
+ // Without this, a matcher that found nothing at all would report a clean application and a
151
+ // broken check identically. These are the exact two shapes Wonder Todos ships.
152
+ const result = checkCustomRoleScopes('/app', {
153
+ readFile: () => rolesSource([['CUSTOM_APP_MANAGER', 'APPLICATION'], ['CUSTOM_ORG_SUPERVISOR', 'ORGANIZATIONS']]),
154
+ });
155
+ expect(result.status).toBe(LocalPreconditionCheckStatus.PASS);
156
+ expect(result.detail).toContain('2 custom role(s)');
157
+ });
158
+ it('reports not-probed rather than failing when the application has no role table', () => {
159
+ const result = checkCustomRoleScopes('/app', { readFile: () => null });
160
+ expect(result.status).toBe(LocalPreconditionCheckStatus.PASS);
161
+ expect(result.detail).toContain('not-probed');
162
+ });
163
+ });
121
164
  describe('checkCxx20Toolchain', () => {
122
165
  it('WARNS on a compiler that cannot compile C++20, and names the sudo fix it must not run', () => {
123
166
  // The stale-libc++ case: clang 21.0.0 over libc++ 11.0. The check reports