@wildo-ai/wildo-cli 1.1.8 → 1.1.9

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 (1426) hide show
  1. package/dist/src/commands/build/run.command.d.ts +8 -5
  2. package/dist/src/commands/build/run.command.d.ts.map +1 -1
  3. package/dist/src/commands/build/run.command.js +62 -9
  4. package/dist/src/commands/build/run.command.js.map +1 -1
  5. package/dist/src/commands/config/document-releases.command.d.ts.map +1 -1
  6. package/dist/src/commands/config/document-releases.command.js +2 -1
  7. package/dist/src/commands/config/document-releases.command.js.map +1 -1
  8. package/dist/src/commands/config/mutate.command.js +1 -1
  9. package/dist/src/commands/config/mutate.command.js.map +1 -1
  10. package/dist/src/commands/config/reapply-declaration.command.d.ts +9 -3
  11. package/dist/src/commands/config/reapply-declaration.command.d.ts.map +1 -1
  12. package/dist/src/commands/config/reapply-declaration.command.js +10 -4
  13. package/dist/src/commands/config/reapply-declaration.command.js.map +1 -1
  14. package/dist/src/commands/config/validate.command.d.ts +20 -0
  15. package/dist/src/commands/config/validate.command.d.ts.map +1 -1
  16. package/dist/src/commands/config/validate.command.js +57 -5
  17. package/dist/src/commands/config/validate.command.js.map +1 -1
  18. package/dist/src/commands/context/journey.command.d.ts +54 -0
  19. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  20. package/dist/src/commands/context/journey.command.js +126 -14
  21. package/dist/src/commands/context/journey.command.js.map +1 -1
  22. package/dist/src/commands/context/launch-blockers.command.d.ts +19 -0
  23. package/dist/src/commands/context/launch-blockers.command.d.ts.map +1 -0
  24. package/dist/src/commands/context/launch-blockers.command.js +71 -0
  25. package/dist/src/commands/context/launch-blockers.command.js.map +1 -0
  26. package/dist/src/commands/creation/answer.command.d.ts +3 -0
  27. package/dist/src/commands/creation/answer.command.d.ts.map +1 -1
  28. package/dist/src/commands/creation/answer.command.js +18 -2
  29. package/dist/src/commands/creation/answer.command.js.map +1 -1
  30. package/dist/src/commands/creation/deliberate.command.js +1 -1
  31. package/dist/src/commands/creation/deliberate.command.js.map +1 -1
  32. package/dist/src/commands/creation/depth.command.d.ts +16 -0
  33. package/dist/src/commands/creation/depth.command.d.ts.map +1 -0
  34. package/dist/src/commands/creation/depth.command.js +50 -0
  35. package/dist/src/commands/creation/depth.command.js.map +1 -0
  36. package/dist/src/commands/creation/loop.command.d.ts.map +1 -1
  37. package/dist/src/commands/creation/loop.command.js +11 -1
  38. package/dist/src/commands/creation/loop.command.js.map +1 -1
  39. package/dist/src/commands/creation/preflight.command.d.ts +15 -0
  40. package/dist/src/commands/creation/preflight.command.d.ts.map +1 -0
  41. package/dist/src/commands/creation/preflight.command.js +53 -0
  42. package/dist/src/commands/creation/preflight.command.js.map +1 -0
  43. package/dist/src/commands/creation/propose.command.d.ts +18 -0
  44. package/dist/src/commands/creation/propose.command.d.ts.map +1 -0
  45. package/dist/src/commands/creation/propose.command.js +57 -0
  46. package/dist/src/commands/creation/propose.command.js.map +1 -0
  47. package/dist/src/commands/creation/questions.command.d.ts.map +1 -1
  48. package/dist/src/commands/creation/questions.command.js +21 -6
  49. package/dist/src/commands/creation/questions.command.js.map +1 -1
  50. package/dist/src/commands/creation/reason.command.d.ts +12 -0
  51. package/dist/src/commands/creation/reason.command.d.ts.map +1 -0
  52. package/dist/src/commands/creation/reason.command.js +37 -0
  53. package/dist/src/commands/creation/reason.command.js.map +1 -0
  54. package/dist/src/commands/creation/report.command.d.ts +23 -0
  55. package/dist/src/commands/creation/report.command.d.ts.map +1 -0
  56. package/dist/src/commands/creation/report.command.js +129 -0
  57. package/dist/src/commands/creation/report.command.js.map +1 -0
  58. package/dist/src/commands/creation/run.command.d.ts +2 -0
  59. package/dist/src/commands/creation/run.command.d.ts.map +1 -1
  60. package/dist/src/commands/creation/run.command.js +9 -0
  61. package/dist/src/commands/creation/run.command.js.map +1 -1
  62. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts +28 -0
  63. package/dist/src/commands/db/db-schema-plan-migration.utils.d.ts.map +1 -0
  64. package/dist/src/commands/db/db-schema-plan-migration.utils.js +38 -0
  65. package/dist/src/commands/db/db-schema-plan-migration.utils.js.map +1 -0
  66. package/dist/src/commands/db/db-schema-plan.utils.d.ts +0 -27
  67. package/dist/src/commands/db/db-schema-plan.utils.d.ts.map +1 -1
  68. package/dist/src/commands/db/db-schema-plan.utils.js +0 -26
  69. package/dist/src/commands/db/db-schema-plan.utils.js.map +1 -1
  70. package/dist/src/commands/db/generate.command.d.ts.map +1 -1
  71. package/dist/src/commands/db/generate.command.js +2 -1
  72. package/dist/src/commands/db/generate.command.js.map +1 -1
  73. package/dist/src/commands/help.command.d.ts.map +1 -1
  74. package/dist/src/commands/help.command.js +2 -0
  75. package/dist/src/commands/help.command.js.map +1 -1
  76. package/dist/src/commands/init.command.d.ts +6 -1
  77. package/dist/src/commands/init.command.d.ts.map +1 -1
  78. package/dist/src/commands/init.command.js +50 -12
  79. package/dist/src/commands/init.command.js.map +1 -1
  80. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  81. package/dist/src/commands/local/dev.command.js +10 -5
  82. package/dist/src/commands/local/dev.command.js.map +1 -1
  83. package/dist/src/commands/local/doctor.command.d.ts +7 -4
  84. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  85. package/dist/src/commands/local/doctor.command.js +33 -54
  86. package/dist/src/commands/local/doctor.command.js.map +1 -1
  87. package/dist/src/commands/local/smoke.command.d.ts +18 -0
  88. package/dist/src/commands/local/smoke.command.d.ts.map +1 -0
  89. package/dist/src/commands/local/smoke.command.js +59 -0
  90. package/dist/src/commands/local/smoke.command.js.map +1 -0
  91. package/dist/src/commands/local-defaults/capture.command.d.ts.map +1 -1
  92. package/dist/src/commands/local-defaults/capture.command.js +3 -2
  93. package/dist/src/commands/local-defaults/capture.command.js.map +1 -1
  94. package/dist/src/commands/prefs/set.command.d.ts.map +1 -1
  95. package/dist/src/commands/prefs/set.command.js +6 -1
  96. package/dist/src/commands/prefs/set.command.js.map +1 -1
  97. package/dist/src/commands/secrets/set.command.d.ts.map +1 -1
  98. package/dist/src/commands/secrets/set.command.js +17 -4
  99. package/dist/src/commands/secrets/set.command.js.map +1 -1
  100. package/dist/src/commands/setup.command.d.ts.map +1 -1
  101. package/dist/src/commands/setup.command.js +5 -4
  102. package/dist/src/commands/setup.command.js.map +1 -1
  103. package/dist/src/commands/update.command.d.ts.map +1 -1
  104. package/dist/src/commands/update.command.js +65 -12
  105. package/dist/src/commands/update.command.js.map +1 -1
  106. package/dist/src/commands/website/audit.command.d.ts.map +1 -1
  107. package/dist/src/commands/website/audit.command.js +4 -0
  108. package/dist/src/commands/website/audit.command.js.map +1 -1
  109. package/dist/src/commands/workbench/open.command.js +1 -1
  110. package/dist/src/commands/workbench/open.command.js.map +1 -1
  111. package/dist/src/commands/workbench/status.command.js +1 -1
  112. package/dist/src/commands/workbench/status.command.js.map +1 -1
  113. package/dist/src/kernel/bootstrap.js +3 -2
  114. package/dist/src/kernel/bootstrap.js.map +1 -1
  115. package/dist/src/kernel/command-index-cache.d.ts +29 -0
  116. package/dist/src/kernel/command-index-cache.d.ts.map +1 -0
  117. package/dist/src/kernel/command-index-cache.js +89 -0
  118. package/dist/src/kernel/command-index-cache.js.map +1 -0
  119. package/dist/src/kernel/command-registry.d.ts +28 -0
  120. package/dist/src/kernel/command-registry.d.ts.map +1 -1
  121. package/dist/src/kernel/command-registry.js +89 -18
  122. package/dist/src/kernel/command-registry.js.map +1 -1
  123. package/dist/src/services/application/app-bootstrap.service.d.ts +26 -5
  124. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  125. package/dist/src/services/application/app-bootstrap.service.js +39 -13
  126. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  127. package/dist/src/services/application/application-browser-smoke.service.d.ts +77 -0
  128. package/dist/src/services/application/application-browser-smoke.service.d.ts.map +1 -0
  129. package/dist/src/services/application/application-browser-smoke.service.js +195 -0
  130. package/dist/src/services/application/application-browser-smoke.service.js.map +1 -0
  131. package/dist/src/services/application/application-creation-readiness.service.d.ts +107 -0
  132. package/dist/src/services/application/application-creation-readiness.service.d.ts.map +1 -1
  133. package/dist/src/services/application/application-creation-readiness.service.js +278 -18
  134. package/dist/src/services/application/application-creation-readiness.service.js.map +1 -1
  135. package/dist/src/services/application/application-initialization-verification.service.d.ts +8 -3
  136. package/dist/src/services/application/application-initialization-verification.service.d.ts.map +1 -1
  137. package/dist/src/services/application/application-initialization-verification.service.js +8 -3
  138. package/dist/src/services/application/application-initialization-verification.service.js.map +1 -1
  139. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts +2 -0
  140. package/dist/src/services/application/application-runtime-bootstrap.service.d.ts.map +1 -1
  141. package/dist/src/services/application/application-runtime-bootstrap.service.js +26 -0
  142. package/dist/src/services/application/application-runtime-bootstrap.service.js.map +1 -1
  143. package/dist/src/services/application/backend-config.paths.d.ts +8 -0
  144. package/dist/src/services/application/backend-config.paths.d.ts.map +1 -0
  145. package/dist/src/services/application/backend-config.paths.js +9 -0
  146. package/dist/src/services/application/backend-config.paths.js.map +1 -0
  147. package/dist/src/services/application/creation-host-readiness.service.d.ts +61 -0
  148. package/dist/src/services/application/creation-host-readiness.service.d.ts.map +1 -0
  149. package/dist/src/services/application/creation-host-readiness.service.js +167 -0
  150. package/dist/src/services/application/creation-host-readiness.service.js.map +1 -0
  151. package/dist/src/services/application/creation-preflight.service.d.ts +46 -0
  152. package/dist/src/services/application/creation-preflight.service.d.ts.map +1 -0
  153. package/dist/src/services/application/creation-preflight.service.js +87 -0
  154. package/dist/src/services/application/creation-preflight.service.js.map +1 -0
  155. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts +79 -0
  156. package/dist/src/services/application/degraded-registration-declaration-convergence.service.d.ts.map +1 -0
  157. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js +110 -0
  158. package/dist/src/services/application/degraded-registration-declaration-convergence.service.js.map +1 -0
  159. package/dist/src/services/application/dev-schema-drift.service.d.ts.map +1 -1
  160. package/dist/src/services/application/dev-schema-drift.service.js +2 -1
  161. package/dist/src/services/application/dev-schema-drift.service.js.map +1 -1
  162. package/dist/src/services/application/provider-runtime-sync.service.d.ts +70 -10
  163. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  164. package/dist/src/services/application/provider-runtime-sync.service.js +100 -11
  165. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  166. package/dist/src/services/application/saas-skeleton.service.d.ts +12 -0
  167. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  168. package/dist/src/services/application/saas-skeleton.service.js +27 -2
  169. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  170. package/dist/src/services/application/stored-declaration-currency.service.d.ts +46 -0
  171. package/dist/src/services/application/stored-declaration-currency.service.d.ts.map +1 -0
  172. package/dist/src/services/application/stored-declaration-currency.service.js +76 -0
  173. package/dist/src/services/application/stored-declaration-currency.service.js.map +1 -0
  174. package/dist/src/services/application/systems-of-record-library.service.d.ts.map +1 -1
  175. package/dist/src/services/application/systems-of-record-library.service.js +3 -1
  176. package/dist/src/services/application/systems-of-record-library.service.js.map +1 -1
  177. package/dist/src/services/companion/build-console.service.d.ts +53 -3
  178. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  179. package/dist/src/services/companion/build-console.service.js +94 -8
  180. package/dist/src/services/companion/build-console.service.js.map +1 -1
  181. package/dist/src/services/companion/creation-console.service.d.ts +25 -1
  182. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  183. package/dist/src/services/companion/creation-console.service.js +72 -1
  184. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  185. package/dist/src/services/companion/creation-run-report.models.d.ts +97 -0
  186. package/dist/src/services/companion/creation-run-report.models.d.ts.map +1 -0
  187. package/dist/src/services/companion/creation-run-report.models.js +1 -0
  188. package/dist/src/services/companion/creation-run-report.models.js.map +1 -0
  189. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts +0 -1
  190. package/dist/src/services/compliance/generated-compliance-module-wiring.d.ts.map +1 -1
  191. package/dist/src/services/compliance/generated-compliance-module-wiring.js +1 -1
  192. package/dist/src/services/compliance/generated-compliance-module-wiring.js.map +1 -1
  193. package/dist/src/services/compliance/governed-document-releases.generator.d.ts +0 -2
  194. package/dist/src/services/compliance/governed-document-releases.generator.d.ts.map +1 -1
  195. package/dist/src/services/compliance/governed-document-releases.generator.js +2 -5
  196. package/dist/src/services/compliance/governed-document-releases.generator.js.map +1 -1
  197. package/dist/src/services/context/context-manager.service.d.ts.map +1 -1
  198. package/dist/src/services/context/context-manager.service.js +3 -0
  199. package/dist/src/services/context/context-manager.service.js.map +1 -1
  200. package/dist/src/services/context/context.schemas.d.ts +8 -3
  201. package/dist/src/services/context/context.schemas.d.ts.map +1 -1
  202. package/dist/src/services/context/context.schemas.js.map +1 -1
  203. package/dist/src/services/credentials/application-secrets.service.d.ts +14 -0
  204. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  205. package/dist/src/services/credentials/application-secrets.service.js +76 -7
  206. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  207. package/dist/src/services/credentials/local-defaults.service.d.ts +42 -11
  208. package/dist/src/services/credentials/local-defaults.service.d.ts.map +1 -1
  209. package/dist/src/services/credentials/local-defaults.service.js +75 -10
  210. package/dist/src/services/credentials/local-defaults.service.js.map +1 -1
  211. package/dist/src/services/deployment/docker/compose-service-health.d.ts +5 -0
  212. package/dist/src/services/deployment/docker/compose-service-health.d.ts.map +1 -1
  213. package/dist/src/services/deployment/docker/compose-service-health.js +5 -0
  214. package/dist/src/services/deployment/docker/compose-service-health.js.map +1 -1
  215. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts +136 -2
  216. package/dist/src/services/deployment/docker/docker-compose-readiness.service.d.ts.map +1 -1
  217. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js +360 -32
  218. package/dist/src/services/deployment/docker/docker-compose-readiness.service.js.map +1 -1
  219. package/dist/src/services/deployment/docker/docker.service.d.ts +28 -0
  220. package/dist/src/services/deployment/docker/docker.service.d.ts.map +1 -1
  221. package/dist/src/services/deployment/docker/docker.service.js +53 -1
  222. package/dist/src/services/deployment/docker/docker.service.js.map +1 -1
  223. package/dist/src/services/deployment/local-precondition-checks.service.d.ts +16 -0
  224. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  225. package/dist/src/services/deployment/local-precondition-checks.service.js +37 -1
  226. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  227. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js +1 -1
  228. package/dist/src/services/deployment/local-runtime-process-cleanup.service.js.map +1 -1
  229. package/dist/src/services/deployment/platform-lifecycle.service.d.ts.map +1 -1
  230. package/dist/src/services/deployment/platform-lifecycle.service.js +20 -8
  231. package/dist/src/services/deployment/platform-lifecycle.service.js.map +1 -1
  232. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  233. package/dist/src/services/environment/environment-setup.service.js +19 -9
  234. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  235. package/dist/src/services/environment/environment.schemas.d.ts +5 -2
  236. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  237. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  238. package/dist/src/services/environment/infrastructure-host.service.js +1 -1
  239. package/dist/src/services/environment/infrastructure-host.service.js.map +1 -1
  240. package/dist/src/services/environment/platform-runtime.schemas.d.ts +9 -0
  241. package/dist/src/services/environment/platform-runtime.schemas.d.ts.map +1 -1
  242. package/dist/src/services/environment/platform-runtime.schemas.js +11 -0
  243. package/dist/src/services/environment/platform-runtime.schemas.js.map +1 -1
  244. package/dist/src/services/framework/application-claude-settings.js +1 -1
  245. package/dist/src/services/framework/application-claude-settings.js.map +1 -1
  246. package/dist/src/services/framework/dev-compile-status.paths.d.ts +9 -0
  247. package/dist/src/services/framework/dev-compile-status.paths.d.ts.map +1 -0
  248. package/dist/src/services/framework/dev-compile-status.paths.js +10 -0
  249. package/dist/src/services/framework/dev-compile-status.paths.js.map +1 -0
  250. package/dist/src/services/framework/framework-development-skills-sync.service.js +1 -1
  251. package/dist/src/services/framework/framework-development-skills-sync.service.js.map +1 -1
  252. package/dist/src/services/framework/framework-knowledge-audit.service.d.ts.map +1 -1
  253. package/dist/src/services/framework/framework-knowledge-audit.service.js +3 -1
  254. package/dist/src/services/framework/framework-knowledge-audit.service.js.map +1 -1
  255. package/dist/src/services/framework/framework-knowledge-generation.service.d.ts.map +1 -1
  256. package/dist/src/services/framework/framework-knowledge-generation.service.js +8 -0
  257. package/dist/src/services/framework/framework-knowledge-generation.service.js.map +1 -1
  258. package/dist/src/services/framework/framework-npm-publish.service.d.ts +20 -5
  259. package/dist/src/services/framework/framework-npm-publish.service.d.ts.map +1 -1
  260. package/dist/src/services/framework/framework-npm-publish.service.js +88 -7
  261. package/dist/src/services/framework/framework-npm-publish.service.js.map +1 -1
  262. package/dist/src/services/framework/framework-publish-manifest.service.d.ts.map +1 -1
  263. package/dist/src/services/framework/framework-publish-manifest.service.js +43 -5
  264. package/dist/src/services/framework/framework-publish-manifest.service.js.map +1 -1
  265. package/dist/src/services/framework/installed-framework-assets.service.d.ts +20 -2
  266. package/dist/src/services/framework/installed-framework-assets.service.d.ts.map +1 -1
  267. package/dist/src/services/framework/installed-framework-assets.service.js +24 -1
  268. package/dist/src/services/framework/installed-framework-assets.service.js.map +1 -1
  269. package/dist/src/services/tracker/creation-run-tracker.service.d.ts +46 -0
  270. package/dist/src/services/tracker/creation-run-tracker.service.d.ts.map +1 -0
  271. package/dist/src/services/tracker/creation-run-tracker.service.js +66 -0
  272. package/dist/src/services/tracker/creation-run-tracker.service.js.map +1 -0
  273. package/dist/src/services/website/website-label-pack-audit.service.d.ts +11 -1
  274. package/dist/src/services/website/website-label-pack-audit.service.d.ts.map +1 -1
  275. package/dist/src/services/website/website-label-pack-audit.service.js +14 -2
  276. package/dist/src/services/website/website-label-pack-audit.service.js.map +1 -1
  277. package/package.json +20 -17
  278. package/scripts/dev-orchestrator/compile-diagnostic-protocol.mjs +189 -0
  279. package/scripts/dev-orchestrator/local-dev-protocol.mjs +683 -0
  280. package/scripts/dev-orchestrator/local-dev-status.mjs +1234 -0
  281. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +8 -0
  282. package/templates/saas/scenarios/add-marketing-page/files/website/src/pages-impl/__pageRef__.page.tsx.hbs +9 -19
  283. package/templates/saas/scenarios/add-marketing-page/files/website/src/sections/__pageRef__.sections.tsx.hbs +6 -2
  284. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/package.json.hbs +1 -1
  285. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/scripts/wait-for-publication.mjs +117 -8
  286. package/templates/saas/scenarios/add-technical-doc/scenario.json +3 -0
  287. package/templates/saas/scenarios/add-website/files/website/src/pages-impl/landing.page.tsx +7 -17
  288. package/templates/saas/scenarios/add-website/files/website/src/sections/landing.sections.tsx +9 -2
  289. package/templates/saas/scenarios/add-website/scenario.json +2 -0
  290. package/templates/saas/skeleton/CLAUDE.md.hbs +4 -1
  291. package/templates/saas/skeleton/frontend/tsconfig.json.hbs +6 -3
  292. package/templates/saas/skeleton/frontend/tsconfig.node.json +18 -3
  293. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +247 -0
  294. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +31 -15
  295. package/templates/saas/skeleton/specifications/src/brand/resolved-assets.generated.ts +10 -0
  296. package/templates/saas/skeleton/wildo.saas.config.ts.init.hbs +20 -6
  297. package/wildo-framework.info.json +1 -1
  298. package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts +0 -8
  299. package/dist/src/__tests__/sandbox-dependencies.test-helpers.d.ts.map +0 -1
  300. package/dist/src/__tests__/sandbox-dependencies.test-helpers.js +0 -54
  301. package/dist/src/__tests__/sandbox-dependencies.test-helpers.js.map +0 -1
  302. package/dist/src/commands/__tests__/compose-dependency-preview.test.d.ts +0 -2
  303. package/dist/src/commands/__tests__/compose-dependency-preview.test.d.ts.map +0 -1
  304. package/dist/src/commands/__tests__/compose-dependency-preview.test.js +0 -271
  305. package/dist/src/commands/__tests__/compose-dependency-preview.test.js.map +0 -1
  306. package/dist/src/commands/__tests__/init-application-repository.test.d.ts +0 -2
  307. package/dist/src/commands/__tests__/init-application-repository.test.d.ts.map +0 -1
  308. package/dist/src/commands/__tests__/init-application-repository.test.js +0 -125
  309. package/dist/src/commands/__tests__/init-application-repository.test.js.map +0 -1
  310. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.d.ts +0 -2
  311. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.d.ts.map +0 -1
  312. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.js +0 -51
  313. package/dist/src/commands/__tests__/init-scaffold-dispatch.test.js.map +0 -1
  314. package/dist/src/commands/__tests__/update.command.test.d.ts +0 -2
  315. package/dist/src/commands/__tests__/update.command.test.d.ts.map +0 -1
  316. package/dist/src/commands/__tests__/update.command.test.js +0 -249
  317. package/dist/src/commands/__tests__/update.command.test.js.map +0 -1
  318. package/dist/src/commands/acp/__tests__/probe.command.test.d.ts +0 -2
  319. package/dist/src/commands/acp/__tests__/probe.command.test.d.ts.map +0 -1
  320. package/dist/src/commands/acp/__tests__/probe.command.test.js +0 -36
  321. package/dist/src/commands/acp/__tests__/probe.command.test.js.map +0 -1
  322. package/dist/src/commands/build/__tests__/console-verbs.commands.test.d.ts +0 -2
  323. package/dist/src/commands/build/__tests__/console-verbs.commands.test.d.ts.map +0 -1
  324. package/dist/src/commands/build/__tests__/console-verbs.commands.test.js +0 -259
  325. package/dist/src/commands/build/__tests__/console-verbs.commands.test.js.map +0 -1
  326. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts +0 -22
  327. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.d.ts.map +0 -1
  328. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js +0 -268
  329. package/dist/src/commands/config/__tests__/reapply-declaration.command.test.js.map +0 -1
  330. package/dist/src/commands/config/__tests__/sync.command.test.d.ts +0 -2
  331. package/dist/src/commands/config/__tests__/sync.command.test.d.ts.map +0 -1
  332. package/dist/src/commands/config/__tests__/sync.command.test.js +0 -1591
  333. package/dist/src/commands/config/__tests__/sync.command.test.js.map +0 -1
  334. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.d.ts +0 -2
  335. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.d.ts.map +0 -1
  336. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.js +0 -134
  337. package/dist/src/commands/config/__tests__/sync.config-source-hosting.command.test.js.map +0 -1
  338. package/dist/src/commands/config/__tests__/sync.hosted.command.test.d.ts +0 -2
  339. package/dist/src/commands/config/__tests__/sync.hosted.command.test.d.ts.map +0 -1
  340. package/dist/src/commands/config/__tests__/sync.hosted.command.test.js +0 -106
  341. package/dist/src/commands/config/__tests__/sync.hosted.command.test.js.map +0 -1
  342. package/dist/src/commands/config/__tests__/validate.command.test.d.ts +0 -14
  343. package/dist/src/commands/config/__tests__/validate.command.test.d.ts.map +0 -1
  344. package/dist/src/commands/config/__tests__/validate.command.test.js +0 -1076
  345. package/dist/src/commands/config/__tests__/validate.command.test.js.map +0 -1
  346. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts +0 -2
  347. package/dist/src/commands/context/__tests__/assurance-basis.command.test.d.ts.map +0 -1
  348. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js +0 -63
  349. package/dist/src/commands/context/__tests__/assurance-basis.command.test.js.map +0 -1
  350. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.d.ts +0 -2
  351. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.d.ts.map +0 -1
  352. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.js +0 -118
  353. package/dist/src/commands/context/__tests__/companion-refusal-hint.test.js.map +0 -1
  354. package/dist/src/commands/context/__tests__/default-service-key.test.d.ts +0 -2
  355. package/dist/src/commands/context/__tests__/default-service-key.test.d.ts.map +0 -1
  356. package/dist/src/commands/context/__tests__/default-service-key.test.js +0 -103
  357. package/dist/src/commands/context/__tests__/default-service-key.test.js.map +0 -1
  358. package/dist/src/commands/context/__tests__/elements.command.test.d.ts +0 -2
  359. package/dist/src/commands/context/__tests__/elements.command.test.d.ts.map +0 -1
  360. package/dist/src/commands/context/__tests__/elements.command.test.js +0 -82
  361. package/dist/src/commands/context/__tests__/elements.command.test.js.map +0 -1
  362. package/dist/src/commands/context/__tests__/info.command.test.d.ts +0 -2
  363. package/dist/src/commands/context/__tests__/info.command.test.d.ts.map +0 -1
  364. package/dist/src/commands/context/__tests__/info.command.test.js +0 -321
  365. package/dist/src/commands/context/__tests__/info.command.test.js.map +0 -1
  366. package/dist/src/commands/context/__tests__/journey-application-line.test.d.ts +0 -2
  367. package/dist/src/commands/context/__tests__/journey-application-line.test.d.ts.map +0 -1
  368. package/dist/src/commands/context/__tests__/journey-application-line.test.js +0 -71
  369. package/dist/src/commands/context/__tests__/journey-application-line.test.js.map +0 -1
  370. package/dist/src/commands/context/__tests__/journey-attempt-history.test.d.ts +0 -2
  371. package/dist/src/commands/context/__tests__/journey-attempt-history.test.d.ts.map +0 -1
  372. package/dist/src/commands/context/__tests__/journey-attempt-history.test.js +0 -27
  373. package/dist/src/commands/context/__tests__/journey-attempt-history.test.js.map +0 -1
  374. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts +0 -19
  375. package/dist/src/commands/context/__tests__/jurisdictions.command.test.d.ts.map +0 -1
  376. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js +0 -106
  377. package/dist/src/commands/context/__tests__/jurisdictions.command.test.js.map +0 -1
  378. package/dist/src/commands/context/__tests__/pipelines.command.test.d.ts +0 -2
  379. package/dist/src/commands/context/__tests__/pipelines.command.test.d.ts.map +0 -1
  380. package/dist/src/commands/context/__tests__/pipelines.command.test.js +0 -136
  381. package/dist/src/commands/context/__tests__/pipelines.command.test.js.map +0 -1
  382. package/dist/src/commands/context/__tests__/workspace.command.test.d.ts +0 -2
  383. package/dist/src/commands/context/__tests__/workspace.command.test.d.ts.map +0 -1
  384. package/dist/src/commands/context/__tests__/workspace.command.test.js +0 -78
  385. package/dist/src/commands/context/__tests__/workspace.command.test.js.map +0 -1
  386. package/dist/src/commands/creation/__tests__/creation.commands.test.d.ts +0 -2
  387. package/dist/src/commands/creation/__tests__/creation.commands.test.d.ts.map +0 -1
  388. package/dist/src/commands/creation/__tests__/creation.commands.test.js +0 -294
  389. package/dist/src/commands/creation/__tests__/creation.commands.test.js.map +0 -1
  390. package/dist/src/commands/creation/__tests__/revert.command.test.d.ts +0 -2
  391. package/dist/src/commands/creation/__tests__/revert.command.test.d.ts.map +0 -1
  392. package/dist/src/commands/creation/__tests__/revert.command.test.js +0 -62
  393. package/dist/src/commands/creation/__tests__/revert.command.test.js.map +0 -1
  394. package/dist/src/commands/db/__tests__/compiled-model-currency.test.d.ts +0 -2
  395. package/dist/src/commands/db/__tests__/compiled-model-currency.test.d.ts.map +0 -1
  396. package/dist/src/commands/db/__tests__/compiled-model-currency.test.js +0 -99
  397. package/dist/src/commands/db/__tests__/compiled-model-currency.test.js.map +0 -1
  398. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.d.ts +0 -2
  399. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.d.ts.map +0 -1
  400. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.js +0 -68
  401. package/dist/src/commands/db/__tests__/schema-plan-migration-write.test.js.map +0 -1
  402. package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts +0 -2
  403. package/dist/src/commands/dev/__tests__/design-tokens.command.test.d.ts.map +0 -1
  404. package/dist/src/commands/dev/__tests__/design-tokens.command.test.js +0 -202
  405. package/dist/src/commands/dev/__tests__/design-tokens.command.test.js.map +0 -1
  406. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.d.ts +0 -2
  407. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.d.ts.map +0 -1
  408. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.js +0 -69
  409. package/dist/src/commands/dev/__tests__/force-stop.hosted.command.test.js.map +0 -1
  410. package/dist/src/commands/dev/__tests__/start.command.test.d.ts +0 -2
  411. package/dist/src/commands/dev/__tests__/start.command.test.d.ts.map +0 -1
  412. package/dist/src/commands/dev/__tests__/start.command.test.js +0 -475
  413. package/dist/src/commands/dev/__tests__/start.command.test.js.map +0 -1
  414. package/dist/src/commands/dev/__tests__/start.hosted.command.test.d.ts +0 -2
  415. package/dist/src/commands/dev/__tests__/start.hosted.command.test.d.ts.map +0 -1
  416. package/dist/src/commands/dev/__tests__/start.hosted.command.test.js +0 -132
  417. package/dist/src/commands/dev/__tests__/start.hosted.command.test.js.map +0 -1
  418. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.d.ts +0 -2
  419. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.d.ts.map +0 -1
  420. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.js +0 -88
  421. package/dist/src/commands/dev/__tests__/stop-all.hosted.command.test.js.map +0 -1
  422. package/dist/src/commands/dev/__tests__/stop.command.test.d.ts +0 -2
  423. package/dist/src/commands/dev/__tests__/stop.command.test.d.ts.map +0 -1
  424. package/dist/src/commands/dev/__tests__/stop.command.test.js +0 -72
  425. package/dist/src/commands/dev/__tests__/stop.command.test.js.map +0 -1
  426. package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts +0 -2
  427. package/dist/src/commands/dev/__tests__/sync-csp.command.test.d.ts.map +0 -1
  428. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js +0 -198
  429. package/dist/src/commands/dev/__tests__/sync-csp.command.test.js.map +0 -1
  430. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts +0 -2
  431. package/dist/src/commands/docs/__tests__/publish.command.test.d.ts.map +0 -1
  432. package/dist/src/commands/docs/__tests__/publish.command.test.js +0 -124
  433. package/dist/src/commands/docs/__tests__/publish.command.test.js.map +0 -1
  434. package/dist/src/commands/frontend/__tests__/publish.command.test.d.ts +0 -2
  435. package/dist/src/commands/frontend/__tests__/publish.command.test.d.ts.map +0 -1
  436. package/dist/src/commands/frontend/__tests__/publish.command.test.js +0 -70
  437. package/dist/src/commands/frontend/__tests__/publish.command.test.js.map +0 -1
  438. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts +0 -2
  439. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.d.ts.map +0 -1
  440. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js +0 -79
  441. package/dist/src/commands/fwk/__tests__/dev-skills.command.test.js.map +0 -1
  442. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts +0 -2
  443. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.d.ts.map +0 -1
  444. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js +0 -119
  445. package/dist/src/commands/fwk/__tests__/generate-docs.command.test.js.map +0 -1
  446. package/dist/src/commands/fwk/__tests__/publish-all.command.test.d.ts +0 -2
  447. package/dist/src/commands/fwk/__tests__/publish-all.command.test.d.ts.map +0 -1
  448. package/dist/src/commands/fwk/__tests__/publish-all.command.test.js +0 -308
  449. package/dist/src/commands/fwk/__tests__/publish-all.command.test.js.map +0 -1
  450. package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts +0 -2
  451. package/dist/src/commands/generate/__tests__/email-command.utils.test.d.ts.map +0 -1
  452. package/dist/src/commands/generate/__tests__/email-command.utils.test.js +0 -96
  453. package/dist/src/commands/generate/__tests__/email-command.utils.test.js.map +0 -1
  454. package/dist/src/commands/generate/__tests__/email-test-send.command.test.d.ts +0 -2
  455. package/dist/src/commands/generate/__tests__/email-test-send.command.test.d.ts.map +0 -1
  456. package/dist/src/commands/generate/__tests__/email-test-send.command.test.js +0 -46
  457. package/dist/src/commands/generate/__tests__/email-test-send.command.test.js.map +0 -1
  458. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.d.ts +0 -2
  459. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.d.ts.map +0 -1
  460. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.js +0 -33
  461. package/dist/src/commands/generate/__tests__/empty-unit-selection.test.js.map +0 -1
  462. package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts +0 -2
  463. package/dist/src/commands/local/__tests__/dev-status.command.test.d.ts.map +0 -1
  464. package/dist/src/commands/local/__tests__/dev-status.command.test.js +0 -58
  465. package/dist/src/commands/local/__tests__/dev-status.command.test.js.map +0 -1
  466. package/dist/src/commands/local/__tests__/dev.command.test.d.ts +0 -2
  467. package/dist/src/commands/local/__tests__/dev.command.test.d.ts.map +0 -1
  468. package/dist/src/commands/local/__tests__/dev.command.test.js +0 -467
  469. package/dist/src/commands/local/__tests__/dev.command.test.js.map +0 -1
  470. package/dist/src/commands/local/__tests__/dev.hosted.command.test.d.ts +0 -2
  471. package/dist/src/commands/local/__tests__/dev.hosted.command.test.d.ts.map +0 -1
  472. package/dist/src/commands/local/__tests__/dev.hosted.command.test.js +0 -164
  473. package/dist/src/commands/local/__tests__/dev.hosted.command.test.js.map +0 -1
  474. package/dist/src/commands/local/__tests__/doctor.command.test.d.ts +0 -2
  475. package/dist/src/commands/local/__tests__/doctor.command.test.d.ts.map +0 -1
  476. package/dist/src/commands/local/__tests__/doctor.command.test.js +0 -285
  477. package/dist/src/commands/local/__tests__/doctor.command.test.js.map +0 -1
  478. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.d.ts +0 -2
  479. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.d.ts.map +0 -1
  480. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.js +0 -111
  481. package/dist/src/commands/local/__tests__/doctor.hosted.command.test.js.map +0 -1
  482. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.d.ts +0 -2
  483. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.d.ts.map +0 -1
  484. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.js +0 -136
  485. package/dist/src/commands/local/__tests__/hosted-refusals.command.test.js.map +0 -1
  486. package/dist/src/commands/local/__tests__/init.command.test.d.ts +0 -2
  487. package/dist/src/commands/local/__tests__/init.command.test.d.ts.map +0 -1
  488. package/dist/src/commands/local/__tests__/init.command.test.js +0 -110
  489. package/dist/src/commands/local/__tests__/init.command.test.js.map +0 -1
  490. package/dist/src/commands/local/__tests__/reinit.command.test.d.ts +0 -2
  491. package/dist/src/commands/local/__tests__/reinit.command.test.d.ts.map +0 -1
  492. package/dist/src/commands/local/__tests__/reinit.command.test.js +0 -186
  493. package/dist/src/commands/local/__tests__/reinit.command.test.js.map +0 -1
  494. package/dist/src/commands/local/__tests__/reset.command.test.d.ts +0 -2
  495. package/dist/src/commands/local/__tests__/reset.command.test.d.ts.map +0 -1
  496. package/dist/src/commands/local/__tests__/reset.command.test.js +0 -308
  497. package/dist/src/commands/local/__tests__/reset.command.test.js.map +0 -1
  498. package/dist/src/commands/local/__tests__/up.command.test.d.ts +0 -2
  499. package/dist/src/commands/local/__tests__/up.command.test.d.ts.map +0 -1
  500. package/dist/src/commands/local/__tests__/up.command.test.js +0 -225
  501. package/dist/src/commands/local/__tests__/up.command.test.js.map +0 -1
  502. package/dist/src/commands/lock/__tests__/check.command.test.d.ts +0 -11
  503. package/dist/src/commands/lock/__tests__/check.command.test.d.ts.map +0 -1
  504. package/dist/src/commands/lock/__tests__/check.command.test.js +0 -140
  505. package/dist/src/commands/lock/__tests__/check.command.test.js.map +0 -1
  506. package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts +0 -35
  507. package/dist/src/commands/lock/__tests__/check.live.contract.test.d.ts.map +0 -1
  508. package/dist/src/commands/lock/__tests__/check.live.contract.test.js +0 -122
  509. package/dist/src/commands/lock/__tests__/check.live.contract.test.js.map +0 -1
  510. package/dist/src/commands/market/__tests__/generate.command.test.d.ts +0 -2
  511. package/dist/src/commands/market/__tests__/generate.command.test.d.ts.map +0 -1
  512. package/dist/src/commands/market/__tests__/generate.command.test.js +0 -217
  513. package/dist/src/commands/market/__tests__/generate.command.test.js.map +0 -1
  514. package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts +0 -2
  515. package/dist/src/commands/market/__tests__/market-command.utils.test.d.ts.map +0 -1
  516. package/dist/src/commands/market/__tests__/market-command.utils.test.js +0 -148
  517. package/dist/src/commands/market/__tests__/market-command.utils.test.js.map +0 -1
  518. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts +0 -2
  519. package/dist/src/commands/providers/__tests__/required-inputs.test.d.ts.map +0 -1
  520. package/dist/src/commands/providers/__tests__/required-inputs.test.js +0 -35
  521. package/dist/src/commands/providers/__tests__/required-inputs.test.js.map +0 -1
  522. package/dist/src/commands/registry/__tests__/edited-files-protection.test.d.ts +0 -10
  523. package/dist/src/commands/registry/__tests__/edited-files-protection.test.d.ts.map +0 -1
  524. package/dist/src/commands/registry/__tests__/edited-files-protection.test.js +0 -232
  525. package/dist/src/commands/registry/__tests__/edited-files-protection.test.js.map +0 -1
  526. package/dist/src/commands/registry/__tests__/local-checkout-install.test.d.ts +0 -11
  527. package/dist/src/commands/registry/__tests__/local-checkout-install.test.d.ts.map +0 -1
  528. package/dist/src/commands/registry/__tests__/local-checkout-install.test.js +0 -450
  529. package/dist/src/commands/registry/__tests__/local-checkout-install.test.js.map +0 -1
  530. package/dist/src/commands/registry/__tests__/publish.test.d.ts +0 -2
  531. package/dist/src/commands/registry/__tests__/publish.test.d.ts.map +0 -1
  532. package/dist/src/commands/registry/__tests__/publish.test.js +0 -196
  533. package/dist/src/commands/registry/__tests__/publish.test.js.map +0 -1
  534. package/dist/src/commands/registry/__tests__/repair-contract.test.d.ts +0 -2
  535. package/dist/src/commands/registry/__tests__/repair-contract.test.d.ts.map +0 -1
  536. package/dist/src/commands/registry/__tests__/repair-contract.test.js +0 -168
  537. package/dist/src/commands/registry/__tests__/repair-contract.test.js.map +0 -1
  538. package/dist/src/commands/registry/__tests__/requirements.test.d.ts +0 -2
  539. package/dist/src/commands/registry/__tests__/requirements.test.d.ts.map +0 -1
  540. package/dist/src/commands/registry/__tests__/requirements.test.js +0 -500
  541. package/dist/src/commands/registry/__tests__/requirements.test.js.map +0 -1
  542. package/dist/src/commands/registry/__tests__/version-resolution.test.d.ts +0 -2
  543. package/dist/src/commands/registry/__tests__/version-resolution.test.d.ts.map +0 -1
  544. package/dist/src/commands/registry/__tests__/version-resolution.test.js +0 -87
  545. package/dist/src/commands/registry/__tests__/version-resolution.test.js.map +0 -1
  546. package/dist/src/commands/registry/__tests__/yank.test.d.ts +0 -9
  547. package/dist/src/commands/registry/__tests__/yank.test.d.ts.map +0 -1
  548. package/dist/src/commands/registry/__tests__/yank.test.js +0 -92
  549. package/dist/src/commands/registry/__tests__/yank.test.js.map +0 -1
  550. package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts +0 -2
  551. package/dist/src/commands/remote/__tests__/remote-commands.test.d.ts.map +0 -1
  552. package/dist/src/commands/remote/__tests__/remote-commands.test.js +0 -100
  553. package/dist/src/commands/remote/__tests__/remote-commands.test.js.map +0 -1
  554. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.d.ts +0 -2
  555. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.d.ts.map +0 -1
  556. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.js +0 -61
  557. package/dist/src/commands/secrets/__tests__/secrets-commands.flags.test.js.map +0 -1
  558. package/dist/src/commands/website/__tests__/audit.command.test.d.ts +0 -2
  559. package/dist/src/commands/website/__tests__/audit.command.test.d.ts.map +0 -1
  560. package/dist/src/commands/website/__tests__/audit.command.test.js +0 -163
  561. package/dist/src/commands/website/__tests__/audit.command.test.js.map +0 -1
  562. package/dist/src/commands/workbench/__tests__/parallelism.command.test.d.ts +0 -2
  563. package/dist/src/commands/workbench/__tests__/parallelism.command.test.d.ts.map +0 -1
  564. package/dist/src/commands/workbench/__tests__/parallelism.command.test.js +0 -51
  565. package/dist/src/commands/workbench/__tests__/parallelism.command.test.js.map +0 -1
  566. package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts +0 -2
  567. package/dist/src/commands/workbench/__tests__/workbench.commands.test.d.ts.map +0 -1
  568. package/dist/src/commands/workbench/__tests__/workbench.commands.test.js +0 -59
  569. package/dist/src/commands/workbench/__tests__/workbench.commands.test.js.map +0 -1
  570. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts +0 -2
  571. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.d.ts.map +0 -1
  572. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js +0 -138
  573. package/dist/src/infrastructure/process/__tests__/spawn.utils.test.js.map +0 -1
  574. package/dist/src/kernel/__tests__/bootstrap.test.d.ts +0 -2
  575. package/dist/src/kernel/__tests__/bootstrap.test.d.ts.map +0 -1
  576. package/dist/src/kernel/__tests__/bootstrap.test.js +0 -88
  577. package/dist/src/kernel/__tests__/bootstrap.test.js.map +0 -1
  578. package/dist/src/kernel/__tests__/command-registry.test.d.ts +0 -2
  579. package/dist/src/kernel/__tests__/command-registry.test.d.ts.map +0 -1
  580. package/dist/src/kernel/__tests__/command-registry.test.js +0 -197
  581. package/dist/src/kernel/__tests__/command-registry.test.js.map +0 -1
  582. package/dist/src/kernel/__tests__/command-runner.test.d.ts +0 -2
  583. package/dist/src/kernel/__tests__/command-runner.test.d.ts.map +0 -1
  584. package/dist/src/kernel/__tests__/command-runner.test.js +0 -285
  585. package/dist/src/kernel/__tests__/command-runner.test.js.map +0 -1
  586. package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts +0 -2
  587. package/dist/src/kernel/__tests__/command-scope-utils.test.d.ts.map +0 -1
  588. package/dist/src/kernel/__tests__/command-scope-utils.test.js +0 -46
  589. package/dist/src/kernel/__tests__/command-scope-utils.test.js.map +0 -1
  590. package/dist/src/kernel/__tests__/flag-utils.test.d.ts +0 -2
  591. package/dist/src/kernel/__tests__/flag-utils.test.d.ts.map +0 -1
  592. package/dist/src/kernel/__tests__/flag-utils.test.js +0 -38
  593. package/dist/src/kernel/__tests__/flag-utils.test.js.map +0 -1
  594. package/dist/src/kernel/__tests__/hooks.test.d.ts +0 -2
  595. package/dist/src/kernel/__tests__/hooks.test.d.ts.map +0 -1
  596. package/dist/src/kernel/__tests__/hooks.test.js +0 -72
  597. package/dist/src/kernel/__tests__/hooks.test.js.map +0 -1
  598. package/dist/src/kernel/__tests__/machine-preference-answers.test.d.ts +0 -2
  599. package/dist/src/kernel/__tests__/machine-preference-answers.test.d.ts.map +0 -1
  600. package/dist/src/kernel/__tests__/machine-preference-answers.test.js +0 -118
  601. package/dist/src/kernel/__tests__/machine-preference-answers.test.js.map +0 -1
  602. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts +0 -2
  603. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.d.ts.map +0 -1
  604. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js +0 -88
  605. package/dist/src/modules/domain/credentials/__tests__/admin-user.module.test.js.map +0 -1
  606. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts +0 -2
  607. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.d.ts.map +0 -1
  608. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js +0 -154
  609. package/dist/src/modules/domain/credentials/__tests__/approver-user.module.test.js.map +0 -1
  610. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts +0 -2
  611. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.d.ts.map +0 -1
  612. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js +0 -89
  613. package/dist/src/modules/domain/environment/__tests__/database-config.module.test.js.map +0 -1
  614. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts +0 -2
  615. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.d.ts.map +0 -1
  616. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js +0 -112
  617. package/dist/src/services/application/__tests__/app-bootstrap.approving-administrator.test.js.map +0 -1
  618. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.d.ts +0 -2
  619. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.d.ts.map +0 -1
  620. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.js +0 -91
  621. package/dist/src/services/application/__tests__/app-bootstrap.backing-service-addressing.test.js.map +0 -1
  622. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts +0 -2
  623. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.d.ts.map +0 -1
  624. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js +0 -140
  625. package/dist/src/services/application/__tests__/app-bootstrap.service.apps-manager-reconnect.test.js.map +0 -1
  626. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts +0 -2
  627. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.d.ts.map +0 -1
  628. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js +0 -220
  629. package/dist/src/services/application/__tests__/app-bootstrap.service.degraded-env.test.js.map +0 -1
  630. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts +0 -2
  631. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.d.ts.map +0 -1
  632. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js +0 -114
  633. package/dist/src/services/application/__tests__/app-bootstrap.service.operation-timeout.test.js.map +0 -1
  634. package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts +0 -2
  635. package/dist/src/services/application/__tests__/app-bootstrap.service.test.d.ts.map +0 -1
  636. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js +0 -884
  637. package/dist/src/services/application/__tests__/app-bootstrap.service.test.js.map +0 -1
  638. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts +0 -2
  639. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.d.ts.map +0 -1
  640. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js +0 -254
  641. package/dist/src/services/application/__tests__/app-bootstrap.two-phase-seeding.test.js.map +0 -1
  642. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts +0 -2
  643. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.d.ts.map +0 -1
  644. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js +0 -263
  645. package/dist/src/services/application/__tests__/app-runtime-targets.service.test.js.map +0 -1
  646. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.d.ts +0 -2
  647. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.d.ts.map +0 -1
  648. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.js +0 -51
  649. package/dist/src/services/application/__tests__/app-schema-bootstrap.unmigrated-postgresql.test.js.map +0 -1
  650. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts +0 -2
  651. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.d.ts.map +0 -1
  652. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js +0 -160
  653. package/dist/src/services/application/__tests__/application-assets-delivery.service.test.js.map +0 -1
  654. package/dist/src/services/application/__tests__/application-creation-readiness.test.d.ts +0 -2
  655. package/dist/src/services/application/__tests__/application-creation-readiness.test.d.ts.map +0 -1
  656. package/dist/src/services/application/__tests__/application-creation-readiness.test.js +0 -152
  657. package/dist/src/services/application/__tests__/application-creation-readiness.test.js.map +0 -1
  658. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts +0 -2
  659. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.d.ts.map +0 -1
  660. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js +0 -233
  661. package/dist/src/services/application/__tests__/application-dependency-alignment.service.test.js.map +0 -1
  662. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.d.ts +0 -2
  663. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.d.ts.map +0 -1
  664. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.js +0 -29
  665. package/dist/src/services/application/__tests__/application-dev-port-offsets.copies.test.js.map +0 -1
  666. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts +0 -2
  667. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.d.ts.map +0 -1
  668. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js +0 -159
  669. package/dist/src/services/application/__tests__/application-initialization-verification.service.test.js.map +0 -1
  670. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts +0 -2
  671. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.d.ts.map +0 -1
  672. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js +0 -143
  673. package/dist/src/services/application/__tests__/application-runtime-bootstrap.service.test.js.map +0 -1
  674. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts +0 -2
  675. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.d.ts.map +0 -1
  676. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js +0 -41
  677. package/dist/src/services/application/__tests__/apps-manager-unavailable-classification.test.js.map +0 -1
  678. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts +0 -2
  679. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.d.ts.map +0 -1
  680. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js +0 -65
  681. package/dist/src/services/application/__tests__/audit-provider-immudb-backing.test.js.map +0 -1
  682. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts +0 -2
  683. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.d.ts.map +0 -1
  684. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js +0 -46
  685. package/dist/src/services/application/__tests__/dev-orchestrator.service.test.js.map +0 -1
  686. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts +0 -10
  687. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.d.ts.map +0 -1
  688. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js +0 -156
  689. package/dist/src/services/application/__tests__/dev-schema-drift.service.test.js.map +0 -1
  690. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.d.ts +0 -2
  691. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.d.ts.map +0 -1
  692. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.js +0 -60
  693. package/dist/src/services/application/__tests__/environment-provider-configurations.service.test.js.map +0 -1
  694. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts +0 -2
  695. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.d.ts.map +0 -1
  696. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js +0 -298
  697. package/dist/src/services/application/__tests__/existing-app-bootstrap.service.test.js.map +0 -1
  698. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.d.ts +0 -2
  699. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.d.ts.map +0 -1
  700. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.js +0 -118
  701. package/dist/src/services/application/__tests__/frontend-provider-source.service.test.js.map +0 -1
  702. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.d.ts +0 -2
  703. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.d.ts.map +0 -1
  704. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.js +0 -175
  705. package/dist/src/services/application/__tests__/frontend-public-config-secret-screen.service.test.js.map +0 -1
  706. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.d.ts +0 -2
  707. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.d.ts.map +0 -1
  708. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.js +0 -31
  709. package/dist/src/services/application/__tests__/frontend-vite-warmup.template.test.js.map +0 -1
  710. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.d.ts +0 -2
  711. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.d.ts.map +0 -1
  712. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.js +0 -82
  713. package/dist/src/services/application/__tests__/local-app-reinit.hosted-guard.test.js.map +0 -1
  714. package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts +0 -2
  715. package/dist/src/services/application/__tests__/local-app-reinit.service.test.d.ts.map +0 -1
  716. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js +0 -383
  717. package/dist/src/services/application/__tests__/local-app-reinit.service.test.js.map +0 -1
  718. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts +0 -2
  719. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.d.ts.map +0 -1
  720. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js +0 -98
  721. package/dist/src/services/application/__tests__/local-application-initialization.guard.test.js.map +0 -1
  722. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.d.ts +0 -2
  723. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.d.ts.map +0 -1
  724. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.js +0 -138
  725. package/dist/src/services/application/__tests__/local-application-initialization.hosted.test.js.map +0 -1
  726. package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts +0 -2
  727. package/dist/src/services/application/__tests__/local-application-initialization.service.test.d.ts.map +0 -1
  728. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js +0 -129
  729. package/dist/src/services/application/__tests__/local-application-initialization.service.test.js.map +0 -1
  730. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.d.ts +0 -2
  731. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.d.ts.map +0 -1
  732. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.js +0 -76
  733. package/dist/src/services/application/__tests__/provider-augmentation-materialization.guard.test.js.map +0 -1
  734. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts +0 -2
  735. package/dist/src/services/application/__tests__/provider-package-links.service.test.d.ts.map +0 -1
  736. package/dist/src/services/application/__tests__/provider-package-links.service.test.js +0 -284
  737. package/dist/src/services/application/__tests__/provider-package-links.service.test.js.map +0 -1
  738. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.d.ts +0 -2
  739. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.d.ts.map +0 -1
  740. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.js +0 -40
  741. package/dist/src/services/application/__tests__/provider-runtime-sync.secret-screen.guard.test.js.map +0 -1
  742. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts +0 -2
  743. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.d.ts.map +0 -1
  744. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js +0 -946
  745. package/dist/src/services/application/__tests__/provider-runtime-sync.service.test.js.map +0 -1
  746. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts +0 -19
  747. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.d.ts.map +0 -1
  748. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js +0 -188
  749. package/dist/src/services/application/__tests__/saas-and-infra-contracts.test.js.map +0 -1
  750. package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts +0 -2
  751. package/dist/src/services/application/__tests__/saas-scaffold.service.test.d.ts.map +0 -1
  752. package/dist/src/services/application/__tests__/saas-scaffold.service.test.js +0 -29
  753. package/dist/src/services/application/__tests__/saas-scaffold.service.test.js.map +0 -1
  754. package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts +0 -2
  755. package/dist/src/services/application/__tests__/saas-skeleton.service.test.d.ts.map +0 -1
  756. package/dist/src/services/application/__tests__/saas-skeleton.service.test.js +0 -860
  757. package/dist/src/services/application/__tests__/saas-skeleton.service.test.js.map +0 -1
  758. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.d.ts +0 -2
  759. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.d.ts.map +0 -1
  760. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.js +0 -180
  761. package/dist/src/services/application/__tests__/skeleton-infra-ownership.test.js.map +0 -1
  762. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.d.ts +0 -2
  763. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.d.ts.map +0 -1
  764. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.js +0 -79
  765. package/dist/src/services/application/__tests__/systems-of-record-library.service.test.js.map +0 -1
  766. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts +0 -2
  767. package/dist/src/services/catalog/__tests__/durable-state-classification.test.d.ts.map +0 -1
  768. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js +0 -93
  769. package/dist/src/services/catalog/__tests__/durable-state-classification.test.js.map +0 -1
  770. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.d.ts +0 -2
  771. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.d.ts.map +0 -1
  772. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.js +0 -89
  773. package/dist/src/services/catalog/__tests__/live-recreate-classification.test.js.map +0 -1
  774. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts +0 -2
  775. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.d.ts.map +0 -1
  776. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js +0 -172
  777. package/dist/src/services/catalog/__tests__/service-address-resolver.service.test.js.map +0 -1
  778. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts +0 -2
  779. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.d.ts.map +0 -1
  780. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js +0 -152
  781. package/dist/src/services/catalog/__tests__/service-catalog.schemas.test.js.map +0 -1
  782. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts +0 -2
  783. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.d.ts.map +0 -1
  784. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js +0 -123
  785. package/dist/src/services/coding-agents/__tests__/acp-conformance-probe.service.test.js.map +0 -1
  786. package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts +0 -10
  787. package/dist/src/services/companion/__tests__/companion-client.service.test.d.ts.map +0 -1
  788. package/dist/src/services/companion/__tests__/companion-client.service.test.js +0 -241
  789. package/dist/src/services/companion/__tests__/companion-client.service.test.js.map +0 -1
  790. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.d.ts +0 -2
  791. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.d.ts.map +0 -1
  792. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.js +0 -25
  793. package/dist/src/services/companion/__tests__/companion-health-hint.utils.test.js.map +0 -1
  794. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts +0 -2
  795. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.d.ts.map +0 -1
  796. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js +0 -74
  797. package/dist/src/services/companion/__tests__/companion-lifecycle.service.test.js.map +0 -1
  798. package/dist/src/services/companion/__tests__/console-fast-path.test.d.ts +0 -2
  799. package/dist/src/services/companion/__tests__/console-fast-path.test.d.ts.map +0 -1
  800. package/dist/src/services/companion/__tests__/console-fast-path.test.js +0 -138
  801. package/dist/src/services/companion/__tests__/console-fast-path.test.js.map +0 -1
  802. package/dist/src/services/companion/__tests__/creation-watch.test.d.ts +0 -2
  803. package/dist/src/services/companion/__tests__/creation-watch.test.d.ts.map +0 -1
  804. package/dist/src/services/companion/__tests__/creation-watch.test.js +0 -86
  805. package/dist/src/services/companion/__tests__/creation-watch.test.js.map +0 -1
  806. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts +0 -2
  807. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.d.ts.map +0 -1
  808. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js +0 -14
  809. package/dist/src/services/companion/__tests__/workbench-browser-launcher.service.test.js.map +0 -1
  810. package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts +0 -2
  811. package/dist/src/services/companion/__tests__/workbench-cli.service.test.d.ts.map +0 -1
  812. package/dist/src/services/companion/__tests__/workbench-cli.service.test.js +0 -51
  813. package/dist/src/services/companion/__tests__/workbench-cli.service.test.js.map +0 -1
  814. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.d.ts +0 -2
  815. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.d.ts.map +0 -1
  816. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.js +0 -71
  817. package/dist/src/services/compliance/__tests__/data-retention-schedule.generator.test.js.map +0 -1
  818. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.d.ts +0 -2
  819. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.d.ts.map +0 -1
  820. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.js +0 -85
  821. package/dist/src/services/compliance/__tests__/generated-compliance-module-wiring.test.js.map +0 -1
  822. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.d.ts +0 -2
  823. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.d.ts.map +0 -1
  824. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.js +0 -289
  825. package/dist/src/services/compliance/__tests__/governed-document-releases.generator.test.js.map +0 -1
  826. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.d.ts +0 -2
  827. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.d.ts.map +0 -1
  828. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.js +0 -78
  829. package/dist/src/services/compliance/__tests__/governed-document-releases.loader.test.js.map +0 -1
  830. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.d.ts +0 -2
  831. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.d.ts.map +0 -1
  832. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.js +0 -67
  833. package/dist/src/services/compliance/__tests__/service-consent-requirement.generator.test.js.map +0 -1
  834. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.d.ts +0 -2
  835. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.d.ts.map +0 -1
  836. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.js +0 -109
  837. package/dist/src/services/compliance/__tests__/subject-data-recipients.generator.test.js.map +0 -1
  838. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.d.ts +0 -2
  839. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.d.ts.map +0 -1
  840. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.js +0 -54
  841. package/dist/src/services/context/__tests__/context-manager.hosted-infra-context.test.js.map +0 -1
  842. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts +0 -2
  843. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.d.ts.map +0 -1
  844. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js +0 -56
  845. package/dist/src/services/context/__tests__/context-manager.installed-assets.test.js.map +0 -1
  846. package/dist/src/services/context/__tests__/context-manager.service.test.d.ts +0 -2
  847. package/dist/src/services/context/__tests__/context-manager.service.test.d.ts.map +0 -1
  848. package/dist/src/services/context/__tests__/context-manager.service.test.js +0 -119
  849. package/dist/src/services/context/__tests__/context-manager.service.test.js.map +0 -1
  850. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.d.ts +0 -2
  851. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.d.ts.map +0 -1
  852. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.js +0 -138
  853. package/dist/src/services/credentials/__tests__/application-secret-owners.service.test.js.map +0 -1
  854. package/dist/src/services/credentials/__tests__/application-secrets.service.test.d.ts +0 -2
  855. package/dist/src/services/credentials/__tests__/application-secrets.service.test.d.ts.map +0 -1
  856. package/dist/src/services/credentials/__tests__/application-secrets.service.test.js +0 -201
  857. package/dist/src/services/credentials/__tests__/application-secrets.service.test.js.map +0 -1
  858. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts +0 -28
  859. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.d.ts.map +0 -1
  860. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js +0 -239
  861. package/dist/src/services/credentials/__tests__/ci-secrets-mapping.test.js.map +0 -1
  862. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts +0 -2
  863. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.d.ts.map +0 -1
  864. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js +0 -328
  865. package/dist/src/services/credentials/__tests__/composed-provider-secrets.guard.test.js.map +0 -1
  866. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.d.ts +0 -2
  867. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.d.ts.map +0 -1
  868. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.js +0 -52
  869. package/dist/src/services/credentials/__tests__/credentials.service.hosted-write.test.js.map +0 -1
  870. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.d.ts +0 -2
  871. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.d.ts.map +0 -1
  872. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.js +0 -89
  873. package/dist/src/services/credentials/__tests__/framework-managed-secrets.scope.test.js.map +0 -1
  874. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts +0 -14
  875. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.d.ts.map +0 -1
  876. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js +0 -284
  877. package/dist/src/services/credentials/__tests__/framework-managed-secrets.test.js.map +0 -1
  878. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.d.ts +0 -2
  879. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.d.ts.map +0 -1
  880. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.js +0 -56
  881. package/dist/src/services/credentials/__tests__/pem-multiline-normalization.test.js.map +0 -1
  882. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts +0 -2
  883. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.d.ts.map +0 -1
  884. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js +0 -95
  885. package/dist/src/services/credentials/__tests__/provider-contribution-registration.guard.test.js.map +0 -1
  886. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.d.ts +0 -2
  887. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.d.ts.map +0 -1
  888. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.js +0 -113
  889. package/dist/src/services/credentials/__tests__/remote-secrets-store.service.test.js.map +0 -1
  890. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.d.ts +0 -2
  891. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.d.ts.map +0 -1
  892. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.js +0 -271
  893. package/dist/src/services/credentials/__tests__/secret-requirements.service.test.js.map +0 -1
  894. package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts +0 -2
  895. package/dist/src/services/credentials/__tests__/secrets-contracts.test.d.ts.map +0 -1
  896. package/dist/src/services/credentials/__tests__/secrets-contracts.test.js +0 -277
  897. package/dist/src/services/credentials/__tests__/secrets-contracts.test.js.map +0 -1
  898. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.d.ts +0 -2
  899. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.d.ts.map +0 -1
  900. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.js +0 -54
  901. package/dist/src/services/credentials/__tests__/secrets-provisioning.hosted-scope.test.js.map +0 -1
  902. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.d.ts +0 -2
  903. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.d.ts.map +0 -1
  904. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.js +0 -61
  905. package/dist/src/services/credentials/__tests__/secrets-section-ownership.test.js.map +0 -1
  906. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts +0 -2
  907. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.d.ts.map +0 -1
  908. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js +0 -64
  909. package/dist/src/services/deployment/__tests__/apps-manager-diagnostics.service.test.js.map +0 -1
  910. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.d.ts +0 -2
  911. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.d.ts.map +0 -1
  912. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.js +0 -90
  913. package/dist/src/services/deployment/__tests__/ci-deploy-generator.hosted.test.js.map +0 -1
  914. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts +0 -2
  915. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.d.ts.map +0 -1
  916. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js +0 -369
  917. package/dist/src/services/deployment/__tests__/ci-deploy-generator.service.test.js.map +0 -1
  918. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.d.ts +0 -2
  919. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.d.ts.map +0 -1
  920. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.js +0 -51
  921. package/dist/src/services/deployment/__tests__/ci-workflow-cluster-ownership.test.js.map +0 -1
  922. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts +0 -2
  923. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.d.ts.map +0 -1
  924. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js +0 -148
  925. package/dist/src/services/deployment/__tests__/ci-workflow-generator.service.test.js.map +0 -1
  926. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.d.ts +0 -2
  927. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.d.ts.map +0 -1
  928. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.js +0 -47
  929. package/dist/src/services/deployment/__tests__/coding-agent-login-check.test.js.map +0 -1
  930. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts +0 -2
  931. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.d.ts.map +0 -1
  932. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js +0 -799
  933. package/dist/src/services/deployment/__tests__/deployment-template-contracts.test.js.map +0 -1
  934. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts +0 -20
  935. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.d.ts.map +0 -1
  936. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js +0 -348
  937. package/dist/src/services/deployment/__tests__/host-toolchain-readiness.service.test.js.map +0 -1
  938. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.d.ts +0 -2
  939. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.d.ts.map +0 -1
  940. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.js +0 -83
  941. package/dist/src/services/deployment/__tests__/hosted-compose-edge-ownership.test.js.map +0 -1
  942. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts +0 -2
  943. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.d.ts.map +0 -1
  944. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js +0 -211
  945. package/dist/src/services/deployment/__tests__/infra-templates-render-smoke.test.js.map +0 -1
  946. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.d.ts +0 -2
  947. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.d.ts.map +0 -1
  948. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.js +0 -68
  949. package/dist/src/services/deployment/__tests__/infra-writer.hosted.test.js.map +0 -1
  950. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts +0 -2
  951. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.d.ts.map +0 -1
  952. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js +0 -97
  953. package/dist/src/services/deployment/__tests__/local-dev-observer-lifecycle.test.js.map +0 -1
  954. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts +0 -2
  955. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.d.ts.map +0 -1
  956. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js +0 -258
  957. package/dist/src/services/deployment/__tests__/local-dev-output-boundary.test.js.map +0 -1
  958. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts +0 -2
  959. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.d.ts.map +0 -1
  960. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js +0 -336
  961. package/dist/src/services/deployment/__tests__/local-dev-session-lease.service.test.js.map +0 -1
  962. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts +0 -2
  963. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.d.ts.map +0 -1
  964. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js +0 -100
  965. package/dist/src/services/deployment/__tests__/local-dev-shutdown-coordinator.test.js.map +0 -1
  966. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.d.ts +0 -2
  967. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.d.ts.map +0 -1
  968. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.js +0 -79
  969. package/dist/src/services/deployment/__tests__/local-infrastructure-initialization.hosted-guard.test.js.map +0 -1
  970. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts +0 -11
  971. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.d.ts.map +0 -1
  972. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js +0 -494
  973. package/dist/src/services/deployment/__tests__/local-precondition-checks.service.test.js.map +0 -1
  974. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts +0 -2
  975. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.d.ts.map +0 -1
  976. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js +0 -229
  977. package/dist/src/services/deployment/__tests__/local-runtime-process-cleanup.service.test.js.map +0 -1
  978. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts +0 -2
  979. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.d.ts.map +0 -1
  980. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js +0 -145
  981. package/dist/src/services/deployment/__tests__/parity.compose-vs-k8s.test.js.map +0 -1
  982. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.d.ts +0 -2
  983. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.d.ts.map +0 -1
  984. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.js +0 -100
  985. package/dist/src/services/deployment/__tests__/platform-lifecycle.hosted-guard.test.js.map +0 -1
  986. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts +0 -2
  987. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.d.ts.map +0 -1
  988. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js +0 -245
  989. package/dist/src/services/deployment/__tests__/platform-lifecycle.service.test.js.map +0 -1
  990. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts +0 -2
  991. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.d.ts.map +0 -1
  992. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js +0 -27
  993. package/dist/src/services/deployment/__tests__/platform-runtime-policy.service.test.js.map +0 -1
  994. package/dist/src/services/deployment/__tests__/platform-service-memory.test.d.ts +0 -2
  995. package/dist/src/services/deployment/__tests__/platform-service-memory.test.d.ts.map +0 -1
  996. package/dist/src/services/deployment/__tests__/platform-service-memory.test.js +0 -88
  997. package/dist/src/services/deployment/__tests__/platform-service-memory.test.js.map +0 -1
  998. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.d.ts +0 -2
  999. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.d.ts.map +0 -1
  1000. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.js +0 -339
  1001. package/dist/src/services/deployment/docker/__tests__/backing-service-health-watch.test.js.map +0 -1
  1002. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts +0 -2
  1003. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.d.ts.map +0 -1
  1004. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js +0 -45
  1005. package/dist/src/services/deployment/docker/__tests__/compose-env-value-encoding.test.js.map +0 -1
  1006. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts +0 -2
  1007. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.d.ts.map +0 -1
  1008. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js +0 -81
  1009. package/dist/src/services/deployment/docker/__tests__/compose-host-mounted-artifact.test.js.map +0 -1
  1010. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.d.ts +0 -2
  1011. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.d.ts.map +0 -1
  1012. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.js +0 -151
  1013. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.hosted-guard.test.js.map +0 -1
  1014. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts +0 -2
  1015. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.d.ts.map +0 -1
  1016. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js +0 -1183
  1017. package/dist/src/services/deployment/docker/__tests__/docker-compose-generator.service.test.js.map +0 -1
  1018. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts +0 -2
  1019. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.d.ts.map +0 -1
  1020. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js +0 -156
  1021. package/dist/src/services/deployment/docker/__tests__/docker-compose-readiness.service.test.js.map +0 -1
  1022. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.d.ts +0 -2
  1023. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.d.ts.map +0 -1
  1024. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.js +0 -199
  1025. package/dist/src/services/deployment/docker/__tests__/local-data-adoption.service.test.js.map +0 -1
  1026. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.d.ts +0 -2
  1027. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.d.ts.map +0 -1
  1028. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.js +0 -81
  1029. package/dist/src/services/deployment/k8s/__tests__/cluster-controller-charts.test.js.map +0 -1
  1030. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.d.ts +0 -2
  1031. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.d.ts.map +0 -1
  1032. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.js +0 -62
  1033. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.hosted-guard.test.js.map +0 -1
  1034. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts +0 -2
  1035. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.d.ts.map +0 -1
  1036. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js +0 -265
  1037. package/dist/src/services/deployment/k8s/__tests__/k8s-bootstrap.service.test.js.map +0 -1
  1038. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.d.ts +0 -2
  1039. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.d.ts.map +0 -1
  1040. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.js +0 -77
  1041. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.hosted-guard.test.js.map +0 -1
  1042. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts +0 -2
  1043. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.d.ts.map +0 -1
  1044. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js +0 -1087
  1045. package/dist/src/services/deployment/k8s/__tests__/k8s-manifest-generator.service.test.js.map +0 -1
  1046. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts +0 -2
  1047. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.d.ts.map +0 -1
  1048. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js +0 -39
  1049. package/dist/src/services/deployment/k8s/__tests__/k8s-operations.service.test.js.map +0 -1
  1050. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts +0 -2
  1051. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.d.ts.map +0 -1
  1052. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js +0 -235
  1053. package/dist/src/services/deployment/k8s/__tests__/k8s-runtime-env-secrets.test.js.map +0 -1
  1054. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.d.ts +0 -2
  1055. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.d.ts.map +0 -1
  1056. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.js +0 -71
  1057. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.hosted.test.js.map +0 -1
  1058. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts +0 -2
  1059. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.d.ts.map +0 -1
  1060. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js +0 -307
  1061. package/dist/src/services/deployment/k8s/__tests__/k8s-secrets-generator.service.test.js.map +0 -1
  1062. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts +0 -2
  1063. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.d.ts.map +0 -1
  1064. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js +0 -47
  1065. package/dist/src/services/deployment/k8s/__tests__/kind.service.test.js.map +0 -1
  1066. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts +0 -2
  1067. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.d.ts.map +0 -1
  1068. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js +0 -22
  1069. package/dist/src/services/deployment/k8s/__tests__/local-k8s-application-pruning.service.test.js.map +0 -1
  1070. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.d.ts +0 -2
  1071. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.d.ts.map +0 -1
  1072. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.js +0 -52
  1073. package/dist/src/services/environment/__tests__/application-admin-secret-env-key.test.js.map +0 -1
  1074. package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts +0 -2
  1075. package/dist/src/services/environment/__tests__/compose-converge-args.test.d.ts.map +0 -1
  1076. package/dist/src/services/environment/__tests__/compose-converge-args.test.js +0 -112
  1077. package/dist/src/services/environment/__tests__/compose-converge-args.test.js.map +0 -1
  1078. package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts +0 -2
  1079. package/dist/src/services/environment/__tests__/config-hydration-seam.test.d.ts.map +0 -1
  1080. package/dist/src/services/environment/__tests__/config-hydration-seam.test.js +0 -105
  1081. package/dist/src/services/environment/__tests__/config-hydration-seam.test.js.map +0 -1
  1082. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.d.ts +0 -2
  1083. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.d.ts.map +0 -1
  1084. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.js +0 -86
  1085. package/dist/src/services/environment/__tests__/env-configuration-generator.hosted.test.js.map +0 -1
  1086. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts +0 -2
  1087. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.d.ts.map +0 -1
  1088. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js +0 -571
  1089. package/dist/src/services/environment/__tests__/env-configuration-generator.service.test.js.map +0 -1
  1090. package/dist/src/services/environment/__tests__/env-sync.hosted.test.d.ts +0 -2
  1091. package/dist/src/services/environment/__tests__/env-sync.hosted.test.d.ts.map +0 -1
  1092. package/dist/src/services/environment/__tests__/env-sync.hosted.test.js +0 -80
  1093. package/dist/src/services/environment/__tests__/env-sync.hosted.test.js.map +0 -1
  1094. package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts +0 -2
  1095. package/dist/src/services/environment/__tests__/env-sync.service.test.d.ts.map +0 -1
  1096. package/dist/src/services/environment/__tests__/env-sync.service.test.js +0 -195
  1097. package/dist/src/services/environment/__tests__/env-sync.service.test.js.map +0 -1
  1098. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts +0 -2
  1099. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.d.ts.map +0 -1
  1100. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js +0 -1896
  1101. package/dist/src/services/environment/__tests__/env-vars-builder.service.test.js.map +0 -1
  1102. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts +0 -22
  1103. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.d.ts.map +0 -1
  1104. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js +0 -110
  1105. package/dist/src/services/environment/__tests__/environment-hydration.utils.test.js.map +0 -1
  1106. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts +0 -2
  1107. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.d.ts.map +0 -1
  1108. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js +0 -82
  1109. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-mongodb.test.js.map +0 -1
  1110. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts +0 -2
  1111. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.d.ts.map +0 -1
  1112. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js +0 -116
  1113. package/dist/src/services/environment/__tests__/environment-lifecycle.needs-local-postgresql.test.js.map +0 -1
  1114. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts +0 -2
  1115. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.d.ts.map +0 -1
  1116. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js +0 -128
  1117. package/dist/src/services/environment/__tests__/environment-lifecycle.self-hosts-backing-service.test.js.map +0 -1
  1118. package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts +0 -2
  1119. package/dist/src/services/environment/__tests__/environment-paths.service.test.d.ts.map +0 -1
  1120. package/dist/src/services/environment/__tests__/environment-paths.service.test.js +0 -18
  1121. package/dist/src/services/environment/__tests__/environment-paths.service.test.js.map +0 -1
  1122. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.d.ts +0 -2
  1123. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.d.ts.map +0 -1
  1124. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.js +0 -220
  1125. package/dist/src/services/environment/__tests__/environment-registry.hosted-secrets.test.js.map +0 -1
  1126. package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts +0 -2
  1127. package/dist/src/services/environment/__tests__/environment-registry.service.test.d.ts.map +0 -1
  1128. package/dist/src/services/environment/__tests__/environment-registry.service.test.js +0 -175
  1129. package/dist/src/services/environment/__tests__/environment-registry.service.test.js.map +0 -1
  1130. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts +0 -2
  1131. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.d.ts.map +0 -1
  1132. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js +0 -321
  1133. package/dist/src/services/environment/__tests__/environment-setup.non-interactive.test.js.map +0 -1
  1134. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.d.ts +0 -2
  1135. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.d.ts.map +0 -1
  1136. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.js +0 -83
  1137. package/dist/src/services/environment/__tests__/hosted-infrastructure-leftovers.service.test.js.map +0 -1
  1138. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.d.ts +0 -2
  1139. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.d.ts.map +0 -1
  1140. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.js +0 -162
  1141. package/dist/src/services/environment/__tests__/infrastructure-host.service.test.js.map +0 -1
  1142. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts +0 -2
  1143. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.d.ts.map +0 -1
  1144. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js +0 -96
  1145. package/dist/src/services/environment/__tests__/platform-engine-change.utils.test.js.map +0 -1
  1146. package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts +0 -2
  1147. package/dist/src/services/environment/__tests__/platform-image-ref.test.d.ts.map +0 -1
  1148. package/dist/src/services/environment/__tests__/platform-image-ref.test.js +0 -109
  1149. package/dist/src/services/environment/__tests__/platform-image-ref.test.js.map +0 -1
  1150. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts +0 -2
  1151. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.d.ts.map +0 -1
  1152. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js +0 -48
  1153. package/dist/src/services/environment/__tests__/platform-runtime-state.service.test.js.map +0 -1
  1154. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts +0 -2
  1155. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.d.ts.map +0 -1
  1156. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js +0 -96
  1157. package/dist/src/services/environment/__tests__/provider-secrets-env.service.test.js.map +0 -1
  1158. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts +0 -2
  1159. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.d.ts.map +0 -1
  1160. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js +0 -150
  1161. package/dist/src/services/environment/__tests__/runtime-bootstrap.authored-database-refresh.test.js.map +0 -1
  1162. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.d.ts +0 -2
  1163. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.d.ts.map +0 -1
  1164. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.js +0 -79
  1165. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosted.test.js.map +0 -1
  1166. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.d.ts +0 -2
  1167. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.d.ts.map +0 -1
  1168. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.js +0 -108
  1169. package/dist/src/services/environment/__tests__/runtime-bootstrap.hosting.test.js.map +0 -1
  1170. package/dist/src/services/framework/__tests__/application-claude-settings.test.d.ts +0 -2
  1171. package/dist/src/services/framework/__tests__/application-claude-settings.test.d.ts.map +0 -1
  1172. package/dist/src/services/framework/__tests__/application-claude-settings.test.js +0 -174
  1173. package/dist/src/services/framework/__tests__/application-claude-settings.test.js.map +0 -1
  1174. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts +0 -2
  1175. package/dist/src/services/framework/__tests__/application-rule-imports.test.d.ts.map +0 -1
  1176. package/dist/src/services/framework/__tests__/application-rule-imports.test.js +0 -58
  1177. package/dist/src/services/framework/__tests__/application-rule-imports.test.js.map +0 -1
  1178. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.d.ts +0 -2
  1179. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.d.ts.map +0 -1
  1180. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.js +0 -152
  1181. package/dist/src/services/framework/__tests__/claude-plugin-authored-commands.test.js.map +0 -1
  1182. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.d.ts +0 -2
  1183. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.d.ts.map +0 -1
  1184. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.js +0 -81
  1185. package/dist/src/services/framework/__tests__/claude-plugin-compiler.test.js.map +0 -1
  1186. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.d.ts +0 -2
  1187. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.d.ts.map +0 -1
  1188. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.js +0 -66
  1189. package/dist/src/services/framework/__tests__/claude-plugin-validate.test.js.map +0 -1
  1190. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts +0 -2
  1191. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.d.ts.map +0 -1
  1192. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js +0 -58
  1193. package/dist/src/services/framework/__tests__/engine-provider-specifications.reconciliation.test.js.map +0 -1
  1194. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts +0 -14
  1195. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.d.ts.map +0 -1
  1196. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js +0 -65
  1197. package/dist/src/services/framework/__tests__/fixtures/framework-knowledge-package-only.fixture.js.map +0 -1
  1198. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts +0 -2
  1199. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.d.ts.map +0 -1
  1200. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js +0 -41
  1201. package/dist/src/services/framework/__tests__/framework-development-skills-sync.installed-package.test.js.map +0 -1
  1202. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts +0 -2
  1203. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.d.ts.map +0 -1
  1204. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js +0 -38
  1205. package/dist/src/services/framework/__tests__/framework-development-skills-sync.package-only.test.js.map +0 -1
  1206. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts +0 -2
  1207. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.d.ts.map +0 -1
  1208. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js +0 -181
  1209. package/dist/src/services/framework/__tests__/framework-development-skills-sync.service.test.js.map +0 -1
  1210. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts +0 -2
  1211. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.d.ts.map +0 -1
  1212. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js +0 -415
  1213. package/dist/src/services/framework/__tests__/framework-docker-publish.service.test.js.map +0 -1
  1214. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts +0 -2
  1215. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.d.ts.map +0 -1
  1216. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js +0 -100
  1217. package/dist/src/services/framework/__tests__/framework-knowledge-application-guidance.validator.test.js.map +0 -1
  1218. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts +0 -2
  1219. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.d.ts.map +0 -1
  1220. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js +0 -270
  1221. package/dist/src/services/framework/__tests__/framework-knowledge-audit.live.contract.test.js.map +0 -1
  1222. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts +0 -2
  1223. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.d.ts.map +0 -1
  1224. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js +0 -1731
  1225. package/dist/src/services/framework/__tests__/framework-knowledge-audit.service.test.js.map +0 -1
  1226. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts +0 -2
  1227. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.d.ts.map +0 -1
  1228. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js +0 -1211
  1229. package/dist/src/services/framework/__tests__/framework-knowledge-generation.service.test.js.map +0 -1
  1230. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts +0 -2
  1231. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.d.ts.map +0 -1
  1232. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js +0 -783
  1233. package/dist/src/services/framework/__tests__/framework-npm-publish.service.test.js.map +0 -1
  1234. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts +0 -2
  1235. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.d.ts.map +0 -1
  1236. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js +0 -545
  1237. package/dist/src/services/framework/__tests__/framework-publish-manifest.service.test.js.map +0 -1
  1238. package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts +0 -2
  1239. package/dist/src/services/framework/__tests__/framework-release.service.test.d.ts.map +0 -1
  1240. package/dist/src/services/framework/__tests__/framework-release.service.test.js +0 -96
  1241. package/dist/src/services/framework/__tests__/framework-release.service.test.js.map +0 -1
  1242. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts +0 -2
  1243. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.d.ts.map +0 -1
  1244. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js +0 -64
  1245. package/dist/src/services/framework/__tests__/framework-secrets-writer.test.js.map +0 -1
  1246. package/dist/src/services/framework/__tests__/framework-update.service.test.d.ts +0 -2
  1247. package/dist/src/services/framework/__tests__/framework-update.service.test.d.ts.map +0 -1
  1248. package/dist/src/services/framework/__tests__/framework-update.service.test.js +0 -348
  1249. package/dist/src/services/framework/__tests__/framework-update.service.test.js.map +0 -1
  1250. package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts +0 -2
  1251. package/dist/src/services/framework/__tests__/framework-version.service.test.d.ts.map +0 -1
  1252. package/dist/src/services/framework/__tests__/framework-version.service.test.js +0 -105
  1253. package/dist/src/services/framework/__tests__/framework-version.service.test.js.map +0 -1
  1254. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.d.ts +0 -2
  1255. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.d.ts.map +0 -1
  1256. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.js +0 -200
  1257. package/dist/src/services/framework/__tests__/frontend-component-catalog.generator.test.js.map +0 -1
  1258. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts +0 -2
  1259. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.d.ts.map +0 -1
  1260. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js +0 -60
  1261. package/dist/src/services/framework/__tests__/installed-framework-assets.service.test.js.map +0 -1
  1262. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.d.ts +0 -2
  1263. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.d.ts.map +0 -1
  1264. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.js +0 -20
  1265. package/dist/src/services/framework/__tests__/knowledge-skill-invocability.test.js.map +0 -1
  1266. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.d.ts +0 -2
  1267. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.d.ts.map +0 -1
  1268. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.js +0 -28
  1269. package/dist/src/services/framework/__tests__/playbook-input-aspects.live.contract.test.js.map +0 -1
  1270. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.d.ts +0 -2
  1271. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.d.ts.map +0 -1
  1272. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.js +0 -60
  1273. package/dist/src/services/framework/__tests__/refine-mode-self-input.live.contract.test.js.map +0 -1
  1274. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.d.ts +0 -2
  1275. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.d.ts.map +0 -1
  1276. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.js +0 -57
  1277. package/dist/src/services/framework/provider-transposition/__tests__/api-version-settlement.test.js.map +0 -1
  1278. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts +0 -2
  1279. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.d.ts.map +0 -1
  1280. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js +0 -100
  1281. package/dist/src/services/framework/provider-transposition/__tests__/base-url-is-a-declared-env-slot.test.js.map +0 -1
  1282. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts +0 -2
  1283. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.d.ts.map +0 -1
  1284. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js +0 -92
  1285. package/dist/src/services/framework/provider-transposition/__tests__/client-and-schema-agree.test.js.map +0 -1
  1286. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.d.ts +0 -2
  1287. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.d.ts.map +0 -1
  1288. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.js +0 -95
  1289. package/dist/src/services/framework/provider-transposition/__tests__/compliance-profile-emission.test.js.map +0 -1
  1290. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.d.ts +0 -2
  1291. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.d.ts.map +0 -1
  1292. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.js +0 -255
  1293. package/dist/src/services/framework/provider-transposition/__tests__/connection-derived-operation-host.test.js.map +0 -1
  1294. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts +0 -2
  1295. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.d.ts.map +0 -1
  1296. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js +0 -83
  1297. package/dist/src/services/framework/provider-transposition/__tests__/decision-projection.test.js.map +0 -1
  1298. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.d.ts +0 -2
  1299. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.d.ts.map +0 -1
  1300. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.js +0 -114
  1301. package/dist/src/services/framework/provider-transposition/__tests__/frontend-facet-emission.test.js.map +0 -1
  1302. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.d.ts +0 -2
  1303. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.d.ts.map +0 -1
  1304. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.js +0 -905
  1305. package/dist/src/services/framework/provider-transposition/__tests__/helper-prefix-constants-and-base-url-hosts.test.js.map +0 -1
  1306. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.d.ts +0 -2
  1307. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.d.ts.map +0 -1
  1308. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.js +0 -228
  1309. package/dist/src/services/framework/provider-transposition/__tests__/input-options-derivation.test.js.map +0 -1
  1310. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.d.ts +0 -2
  1311. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.d.ts.map +0 -1
  1312. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.js +0 -310
  1313. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-endpoint-host-allowances.test.js.map +0 -1
  1314. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.d.ts +0 -2
  1315. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.d.ts.map +0 -1
  1316. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.js +0 -351
  1317. package/dist/src/services/framework/provider-transposition/__tests__/oauth2-scope-placeholders-and-deployment-hosts.test.js.map +0 -1
  1318. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.d.ts +0 -2
  1319. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.d.ts.map +0 -1
  1320. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.js +0 -363
  1321. package/dist/src/services/framework/provider-transposition/__tests__/openapi-enrichment.test.js.map +0 -1
  1322. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts +0 -2
  1323. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.d.ts.map +0 -1
  1324. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js +0 -226
  1325. package/dist/src/services/framework/provider-transposition/__tests__/plan-matches-emit.test.js.map +0 -1
  1326. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts +0 -2
  1327. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.d.ts.map +0 -1
  1328. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js +0 -399
  1329. package/dist/src/services/framework/provider-transposition/__tests__/provider-catalogue-record.test.js.map +0 -1
  1330. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.d.ts +0 -2
  1331. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.d.ts.map +0 -1
  1332. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.js +0 -177
  1333. package/dist/src/services/framework/provider-transposition/__tests__/reported-account-facts.test.js.map +0 -1
  1334. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.d.ts +0 -2
  1335. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.d.ts.map +0 -1
  1336. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.js +0 -48
  1337. package/dist/src/services/framework/provider-transposition/__tests__/systems-of-record-door-withdrawn.test.js.map +0 -1
  1338. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts +0 -2
  1339. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.d.ts.map +0 -1
  1340. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js +0 -818
  1341. package/dist/src/services/framework/provider-transposition/__tests__/transposition-contract.test.js.map +0 -1
  1342. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.d.ts +0 -9
  1343. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.d.ts.map +0 -1
  1344. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.js +0 -77
  1345. package/dist/src/services/framework/provider-transposition/__tests__/typed-client-output-types.test.js.map +0 -1
  1346. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.d.ts +0 -2
  1347. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.d.ts.map +0 -1
  1348. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.js +0 -221
  1349. package/dist/src/services/framework/provider-transposition/__tests__/vendor-grouping-and-engine-augmentation.test.js.map +0 -1
  1350. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.d.ts +0 -2
  1351. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.d.ts.map +0 -1
  1352. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.js +0 -144
  1353. package/dist/src/services/framework/provider-transposition/__tests__/vendor-unsupported-connection-values.test.js.map +0 -1
  1354. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts +0 -2
  1355. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.d.ts.map +0 -1
  1356. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js +0 -70
  1357. package/dist/src/services/frontend/__tests__/cloudflare-cdn.service.test.js.map +0 -1
  1358. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts +0 -2
  1359. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.d.ts.map +0 -1
  1360. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js +0 -52
  1361. package/dist/src/services/frontend/__tests__/frontend-dist-uploader.service.test.js.map +0 -1
  1362. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts +0 -2
  1363. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.d.ts.map +0 -1
  1364. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js +0 -135
  1365. package/dist/src/services/frontend/__tests__/frontend-publish.service.test.js.map +0 -1
  1366. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.d.ts +0 -2
  1367. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.d.ts.map +0 -1
  1368. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.js +0 -85
  1369. package/dist/src/services/registry/__tests__/boundary-fanout.utils.test.js.map +0 -1
  1370. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.d.ts +0 -2
  1371. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.d.ts.map +0 -1
  1372. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.js +0 -159
  1373. package/dist/src/services/registry/__tests__/git-ignored-paths.utils.test.js.map +0 -1
  1374. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.d.ts +0 -8
  1375. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.d.ts.map +0 -1
  1376. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.js +0 -148
  1377. package/dist/src/services/registry/__tests__/local-checkout-module-source.service.test.js.map +0 -1
  1378. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.d.ts +0 -2
  1379. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.d.ts.map +0 -1
  1380. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.js +0 -50
  1381. package/dist/src/services/registry/__tests__/module-acquisition.utils.test.js.map +0 -1
  1382. package/dist/src/services/registry/__tests__/module-registration.service.test.d.ts +0 -2
  1383. package/dist/src/services/registry/__tests__/module-registration.service.test.d.ts.map +0 -1
  1384. package/dist/src/services/registry/__tests__/module-registration.service.test.js +0 -302
  1385. package/dist/src/services/registry/__tests__/module-registration.service.test.js.map +0 -1
  1386. package/dist/src/services/registry/__tests__/module-requirements.service.test.d.ts +0 -2
  1387. package/dist/src/services/registry/__tests__/module-requirements.service.test.d.ts.map +0 -1
  1388. package/dist/src/services/registry/__tests__/module-requirements.service.test.js +0 -138
  1389. package/dist/src/services/registry/__tests__/module-requirements.service.test.js.map +0 -1
  1390. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.d.ts +0 -2
  1391. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.d.ts.map +0 -1
  1392. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.js +0 -68
  1393. package/dist/src/services/registry/__tests__/provider-module-checks.service.test.js.map +0 -1
  1394. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.d.ts +0 -2
  1395. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.d.ts.map +0 -1
  1396. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.js +0 -91
  1397. package/dist/src/services/registry/__tests__/provider-module-identity.service.test.js.map +0 -1
  1398. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.d.ts +0 -2
  1399. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.d.ts.map +0 -1
  1400. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.js +0 -67
  1401. package/dist/src/services/registry/__tests__/registry-config-resolver.service.test.js.map +0 -1
  1402. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts +0 -67
  1403. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.d.ts.map +0 -1
  1404. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js +0 -229
  1405. package/dist/src/services/security/__tests__/csp-artifact-currency.live.contract.test.js.map +0 -1
  1406. package/dist/src/services/security/__tests__/csp-boundary.test.d.ts +0 -2
  1407. package/dist/src/services/security/__tests__/csp-boundary.test.d.ts.map +0 -1
  1408. package/dist/src/services/security/__tests__/csp-boundary.test.js +0 -103
  1409. package/dist/src/services/security/__tests__/csp-boundary.test.js.map +0 -1
  1410. package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts +0 -2
  1411. package/dist/src/services/security/__tests__/csp-sync.service.test.d.ts.map +0 -1
  1412. package/dist/src/services/security/__tests__/csp-sync.service.test.js +0 -617
  1413. package/dist/src/services/security/__tests__/csp-sync.service.test.js.map +0 -1
  1414. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts +0 -2
  1415. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.d.ts.map +0 -1
  1416. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js +0 -117
  1417. package/dist/src/services/website/__tests__/website-structured-data-audit.adapter-seam.test.js.map +0 -1
  1418. package/dist/src/test-utils/certificate-fixtures.test.utils.d.ts +0 -21
  1419. package/dist/src/test-utils/certificate-fixtures.test.utils.d.ts.map +0 -1
  1420. package/dist/src/test-utils/certificate-fixtures.test.utils.js +0 -57
  1421. package/dist/src/test-utils/certificate-fixtures.test.utils.js.map +0 -1
  1422. package/dist/src/test-utils/resolved-homes.test.utils.d.ts +0 -4
  1423. package/dist/src/test-utils/resolved-homes.test.utils.d.ts.map +0 -1
  1424. package/dist/src/test-utils/resolved-homes.test.utils.js +0 -18
  1425. package/dist/src/test-utils/resolved-homes.test.utils.js.map +0 -1
  1426. package/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -1,1896 +0,0 @@
1
- import { describe, expect, it, vi } from 'vitest';
2
- import { declaredProviderScope } from '../../../services/credentials/provider-env-vars.utils.js';
3
- import { ApplicationBackendBootstrapEnvKeys, ApplicationBackendDataEnvKeys, BackingServiceKind, BackingServiceSource, BOOTSTRAP_PLATFORM_SERVICES, DatabaseEngine, PLATFORM_POSTGRES_DATABASE, PLATFORM_POSTGRES_MAINTENANCE_DATABASE, PlatformInfrastructureEnvKeys, PlatformProcessEnvKeys, PlatformSecurityEnvKeys, PlatformWildoServices, STORAGE_DEFAULTS, WildoDeploymentRuntime, WildoLocationType, } from '@wildo-ai/platform-config-lib';
4
- import { ApplicationBackendRuntimeEnvKeys, ApplicationWorkerBootstrapEnvKeys, ApplicationWorkerHttpSurfaceEnvKeys, ApplicationWorkerRuntimeEnvKeys, HttpServerEnvKey, } from '@wildo-ai/platform-core-shared';
5
- import { EngineCapability, RuntimeEnvironment } from '@wildo-ai/saas-models';
6
- import { PlatformEnvVarsBuilder, assertNoStorageSecretInGeneratedEnv, assertNoPlatformCredentialInGeneratedEnv } from '../../../services/environment/env-vars-builder.service.js';
7
- import { IMMUDB_CREDENTIAL_ENV_KEYS } from '../../../services/data-services/data-services.schemas.js';
8
- import { PlatformEnvOperatingSystem, SetupStatus, } from '../../../services/environment/environment.schemas.js';
9
- const credentials = {
10
- mongodb: {
11
- rootUser: 'mongo',
12
- rootPassword: 'mongo-password',
13
- },
14
- valkey: {
15
- adminUser: 'default',
16
- adminPassword: 'valkey-password',
17
- },
18
- postgresql: {
19
- adminUser: 'postgres',
20
- adminPassword: 'postgres-password',
21
- },
22
- rabbitmq: {
23
- adminUsername: 'rabbit',
24
- adminPassword: 'rabbit-password',
25
- erlangCookie: 'rabbit-cookie',
26
- },
27
- storage: {
28
- accessKey: 'minio',
29
- secretKey: 'minio-secret',
30
- },
31
- platform: {
32
- // NOT a substring of any legitimately-emitted app-tier value (the leak guard matches by
33
- // CONTAINMENT since the 5.3 review — a URL-embedded credential is as leaked as a bare one —
34
- // and the previous 'primary-secret' was accidentally contained in the app bootstrap fixture's
35
- // own 'platform-primary-secret', which production's independently-minted secrets cannot do).
36
- primarySecret: 'platform-tier-root-primary-secret-9f3a',
37
- adminSecret: 'admin-secret',
38
- appsManager: {
39
- privateKey: 'private-key',
40
- publicKey: 'public-key',
41
- },
42
- // Crontabs P2P signing keypair — required since the scheduled-cron JWT fix
43
- // (`buildAppsManagerFullEnv` fail-louds when absent). Mirrors `appsManager`.
44
- crontabsBatchesManager: {
45
- privateKey: 'crontabs-private-key',
46
- publicKey: 'crontabs-public-key',
47
- },
48
- },
49
- admin: {
50
- email: 'admin@example.com',
51
- password: 'admin-password',
52
- firstName: 'Ada',
53
- lastName: 'Lovelace',
54
- },
55
- };
56
- const appBootstrapCredentials = {
57
- APPLICATION_ID: 'app-123',
58
- PLATFORM_APPLICATION_PRIMARY_SECRET: 'platform-primary-secret',
59
- PLATFORM_APPS_MANAGER_URL: 'https://apps-manager.example.com',
60
- APPLICATION_ENV: RuntimeEnvironment.STAGING,
61
- APPLICATION_SLUG: 'wonder-todos',
62
- };
63
- const addresses = {
64
- infra: {
65
- mongodb: { host: 'mongo', port: 27017, url: 'http://mongo:27017' },
66
- valkey: { host: 'valkey', port: 6379, url: 'http://valkey:6379' },
67
- rabbitmq: { host: 'rabbitmq', port: 5672, url: 'http://rabbitmq:5672' },
68
- rabbitmqManagement: { host: 'rabbitmq', port: 15672, url: 'http://rabbitmq:15672' },
69
- minio: { host: 'minio', port: 9000, url: 'http://minio:9000' },
70
- postgresql: { host: 'postgresql', port: 5432, url: 'http://postgresql:5432' },
71
- clamav: { host: 'clamav', port: 3310, url: 'http://clamav:3310' },
72
- immudb: { host: 'immudb', port: 3322, url: 'http://immudb:3322' },
73
- },
74
- platform: {
75
- appsManager: { host: 'apps-manager', port: 3000, url: 'https://apps-manager.example.com' },
76
- crontabsBatchesManager: { host: 'crontabs', port: 3002, url: 'https://crontabs.example.com' },
77
- moduleRegistry: { host: 'module-registry', port: 3003, url: 'https://module-registry.example.com' },
78
- },
79
- };
80
- function createEnvironment(overrides = {}) {
81
- return {
82
- name: 'preview-eu',
83
- locationType: WildoLocationType.REMOTE,
84
- runtime: WildoDeploymentRuntime.KUBERNETES,
85
- runtimeEnvironment: RuntimeEnvironment.STAGING,
86
- os: PlatformEnvOperatingSystem.LINUX,
87
- secretsPath: '',
88
- configPath: '',
89
- infraPath: '',
90
- database: {
91
- engine: DatabaseEngine.MONGODB,
92
- source: BackingServiceSource.SELF,
93
- },
94
- publicDomain: 'preview-eu.wildo.ai',
95
- kubernetes: {
96
- namespace: 'preview-eu',
97
- },
98
- remoteProvider: {
99
- provider: 'scaleway',
100
- registryEndpoint: 'rg.fr-par.scw.cloud/demo',
101
- },
102
- setupStatus: SetupStatus.NOT_STARTED,
103
- createdAt: new Date().toISOString(),
104
- updatedAt: new Date().toISOString(),
105
- ...overrides,
106
- };
107
- }
108
- function createConfig(overrides = {}) {
109
- return {
110
- type: WildoLocationType.REMOTE,
111
- runtime: WildoDeploymentRuntime.KUBERNETES,
112
- runtimeEnvironment: RuntimeEnvironment.STAGING,
113
- database: {
114
- engine: DatabaseEngine.MONGODB,
115
- source: BackingServiceSource.SELF,
116
- },
117
- // Explicit, because an absent applicationDatabase now selects PostgreSQL (#1571) and these
118
- // fixtures describe a MongoDB application unless a case overrides it.
119
- applicationDatabase: { engine: DatabaseEngine.MONGODB },
120
- infrastructure: {
121
- storage: {
122
- provider: 'minio',
123
- useSsl: false,
124
- bucket: 'bucket',
125
- },
126
- postgresql: {
127
- database: 'postgres',
128
- sslMode: 'disable',
129
- },
130
- },
131
- publicDomain: 'preview-eu.wildo.ai',
132
- kubernetes: {
133
- namespace: 'preview-eu',
134
- },
135
- remoteProvider: {
136
- provider: 'scaleway',
137
- registryEndpoint: 'rg.fr-par.scw.cloud/demo',
138
- },
139
- ...overrides,
140
- };
141
- }
142
- describe('PlatformEnvVarsBuilder', () => {
143
- it('emits explicit runtime semantics and ingress settings for remote apps-manager env', () => {
144
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
145
- expect(env.APPLICATION_ENV).toBe(RuntimeEnvironment.STAGING);
146
- expect(env.K8S_NAMESPACE).toBe('preview-eu');
147
- });
148
- it('fails when env generation is missing explicit runtime semantics', () => {
149
- expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({ runtimeEnvironment: undefined }), createEnvironment({ runtimeEnvironment: undefined }))).toThrow(/missing explicit runtime semantics/);
150
- });
151
- it('does not emit PostgreSQL bootstrap variables when the selected engine is MongoDB', () => {
152
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
153
- database: {
154
- engine: DatabaseEngine.MONGODB,
155
- source: BackingServiceSource.SELF,
156
- },
157
- }), createEnvironment({
158
- database: {
159
- engine: DatabaseEngine.MONGODB,
160
- source: BackingServiceSource.SELF,
161
- },
162
- }));
163
- expect(env.PG_HOST).toBeUndefined();
164
- expect(env.PG_ADMIN_USER).toBeUndefined();
165
- expect(env.PG_SSL_MODE).toBeUndefined();
166
- });
167
- it('emits OTEL_* telemetry env for the apps-manager when observability is enabled (Slice 2 Phase 5b platform-host spread)', () => {
168
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), createEnvironment(), { serviceVersion: '9.9.9' });
169
- expect(env.OTEL_ENABLED).toBe('true');
170
- expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');
171
- // Platform service identity (PlatformApplicationType.PLATFORM_APPS_MANAGER).
172
- expect(env.OTEL_SERVICE_NAME).toBeTruthy();
173
- expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');
174
- // service.version threaded from the host's package.json version (audit A-10 platform-host parity).
175
- expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=9.9.9');
176
- // Localhost dev endpoint → no auth header (no telemetryProvider threaded).
177
- expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();
178
- });
179
- it('omits OTEL_* for the apps-manager when observability is disabled', () => {
180
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({ observability: { enabled: false } }), createEnvironment());
181
- expect(env.OTEL_ENABLED).toBeUndefined();
182
- expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBeUndefined();
183
- });
184
- it('emits WILDO_LLM_OBS_* from observability.llmObservability INDEPENDENTLY of the OTLP enabled gate', () => {
185
- // OTLP telemetry OFF + LLM-obs content capture ON: the two signals are
186
- // separate — LLM-obs activation is provider-selection-driven, not
187
- // OTEL_ENABLED-driven, so the projection must not sit behind the gate.
188
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
189
- observability: {
190
- enabled: false,
191
- llmObservability: {
192
- captureContent: true,
193
- sampleRate: 0.5,
194
- providerEnv: { POSTHOG_HOST: 'https://eu.i.posthog.com', POSTHOG_PROJECT_ID: '42' },
195
- },
196
- },
197
- }), createEnvironment());
198
- expect(env.OTEL_ENABLED).toBeUndefined();
199
- expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBe('true');
200
- expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBe('0.5');
201
- // Non-secret provider connection env authored in checked-in config.
202
- expect(env.POSTHOG_HOST).toBe('https://eu.i.posthog.com');
203
- expect(env.POSTHOG_PROJECT_ID).toBe('42');
204
- });
205
- it('omits WILDO_LLM_OBS_* when llmObservability is absent or captureContent is false', () => {
206
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
207
- observability: { enabled: true, llmObservability: { captureContent: false } },
208
- }), createEnvironment());
209
- expect(env.WILDO_LLM_OBS_CAPTURE_CONTENT).toBeUndefined();
210
- expect(env.WILDO_LLM_OBS_SAMPLE_RATE).toBeUndefined();
211
- });
212
- it('emits service.version for a bootstrap platform service (module-registry) when observability is enabled', () => {
213
- const env = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.MODULE_REGISTRY, credentials, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), createEnvironment(), '0.1.0');
214
- expect(env.OTEL_ENABLED).toBe('true');
215
- expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('service.version=0.1.0');
216
- });
217
- it('can omit bootstrap admin credentials from steady-state apps-manager env', () => {
218
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment(), {
219
- includeBootstrapAdminCredentials: false,
220
- });
221
- expect(env.ADMIN_EMAIL).toBeUndefined();
222
- expect(env.ADMIN_PASSWORD).toBeUndefined();
223
- expect(env.ADMIN_FIRST_NAME).toBeUndefined();
224
- expect(env.ADMIN_LAST_NAME).toBeUndefined();
225
- });
226
- it('fails closed when external storage wiring is authored', () => {
227
- expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
228
- externalEndpoints: {
229
- storage: {
230
- endpoint: 's3.example.com',
231
- port: 443,
232
- },
233
- },
234
- }), createEnvironment())).toThrow(/External storage wiring is not supported yet/);
235
- });
236
- it('accepts managed MinIO storage provider metadata in externalServices', () => {
237
- expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
238
- type: WildoLocationType.LOCAL,
239
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
240
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
241
- externalServices: {
242
- mongodb: { provider: 'self-managed' },
243
- valkey: { provider: 'valkey-self' },
244
- storage: { provider: 'minio' },
245
- rabbitmq: { provider: 'self-managed' },
246
- },
247
- }), createEnvironment({
248
- name: 'local',
249
- locationType: WildoLocationType.LOCAL,
250
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
251
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
252
- }))).not.toThrow();
253
- });
254
- /**
255
- * #1910: a backend is handed the scanner at the address it reaches it on, and only when the environment declares
256
- * one. Without CLAMAV_HOST the engine scans nothing — every required scan ends `scan_failed` — which is what a
257
- * `wildo local dev` backend ran with, beside a healthy `clamav` container, until this was emitted.
258
- */
259
- it('gives an application backend the virus scanner the environment declares, and none when it declares none', () => {
260
- const build = (backingServices) => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ backingServices }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
261
- const declared = build({ [BackingServiceKind.CLAMAV]: { source: BackingServiceSource.SELF } });
262
- expect(declared[ApplicationBackendDataEnvKeys.CLAMAV_HOST]).toBe('clamav');
263
- expect(declared[ApplicationBackendDataEnvKeys.CLAMAV_PORT]).toBe('3310');
264
- const undeclared = build(undefined);
265
- expect(undeclared[ApplicationBackendDataEnvKeys.CLAMAV_HOST]).toBeUndefined();
266
- expect(undeclared[ApplicationBackendDataEnvKeys.CLAMAV_PORT]).toBeUndefined();
267
- });
268
- it('emits Mongo direct-connection runtime material for local application backends', () => {
269
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
270
- database: {
271
- engine: DatabaseEngine.MONGODB,
272
- source: BackingServiceSource.SELF,
273
- },
274
- }), 'local', declaredProviderScope([]), {
275
- deploymentLocationType: WildoLocationType.LOCAL,
276
- appDatabaseName: 'wonder_todos',
277
- mongodbDirectConnection: true,
278
- });
279
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_DIRECT_CONNECTION]).toBe('true');
280
- });
281
- it('emits deployment location as an explicit topology authority instead of inferring it from application behavior mode', () => {
282
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'preview-eu', declaredProviderScope([]), {
283
- applicationEnv: RuntimeEnvironment.DEVELOPMENT,
284
- deploymentLocationType: WildoLocationType.REMOTE,
285
- });
286
- expect(env[ApplicationBackendBootstrapEnvKeys.APPLICATION_ENV]).toBe(RuntimeEnvironment.DEVELOPMENT);
287
- expect(env[ApplicationBackendBootstrapEnvKeys.DEPLOYMENT_LOCATION_TYPE]).toBe(WildoLocationType.REMOTE);
288
- expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBeUndefined();
289
- });
290
- it.each([
291
- [WildoLocationType.REMOTE, 'preview-eu', '1'],
292
- [WildoLocationType.LOCAL, 'local', undefined],
293
- ])('declares the reverse proxies in front of a %s backend: one Traefik remotely, none locally (#1788)', (location, environmentId, expected) => {
294
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), environmentId, declaredProviderScope([]), { deploymentLocationType: location });
295
- expect(env[HttpServerEnvKey.HTTP_TRUSTED_PROXY_HOPS]).toBe(expected);
296
- });
297
- it('gives a MINION no proxy hop count, though it delegates to the backend builder that emits one (#1788)', () => {
298
- const env = PlatformEnvVarsBuilder.buildApplicationMinionEnv(appBootstrapCredentials, 'lead-enricher', credentials, addresses, createConfig(), 'preview-eu', declaredProviderScope([]), { resourceAccess: {} }, { deploymentLocationType: WildoLocationType.REMOTE });
299
- expect(env[HttpServerEnvKey.HTTP_TRUSTED_PROXY_HOPS]).toBeUndefined();
300
- });
301
- it('emits an explicit app-owned runtime-signals home only when supplied by local deployment composition', () => {
302
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), {
303
- deploymentLocationType: WildoLocationType.LOCAL,
304
- runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',
305
- });
306
- expect(env[ApplicationBackendRuntimeEnvKeys.APPLICATION_RUNTIME_SIGNALS_HOME]).toBe('/srv/wonder-todos/.wildo-saas/runtime-signals');
307
- });
308
- it('rejects a local filesystem authority under remote deployment topology', () => {
309
- expect(() => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'production', declaredProviderScope([]), {
310
- deploymentLocationType: WildoLocationType.REMOTE,
311
- runtimeSignalsHome: '/srv/wonder-todos/.wildo-saas/runtime-signals',
312
- })).toThrow('only be emitted for explicit local deployment topology');
313
- });
314
- it('emits storage env vars for application backends', () => {
315
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
316
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');
317
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_ENDPOINT]).toBe('minio');
318
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_PORT]).toBe('9000');
319
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_USE_SSL]).toBe('false');
320
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('bucket');
321
- // The credential half is deliberately ABSENT. `STORAGE_ACCESS_KEY` /
322
- // `STORAGE_SECRET_KEY` are the object store's ROOT credential — the same pair
323
- // MinIO's own container runs as — and emitting them here handed root to every
324
- // application backend, minion and worker. Applications now fetch short-lived,
325
- // prefix-confined session credentials from apps-manager at runtime.
326
- // See `.claude/plans/object-storage-root-credential-distribution.md`.
327
- // Asserted by raw key NAME, not through the enum: those members have since
328
- // been removed from `ApplicationBackendDataEnvKey` entirely, so an
329
- // enum-based assertion would no longer compile — and the raw name is the
330
- // stronger check anyway, proving absence from the emitted env regardless of
331
- // what the contract type happens to declare.
332
- expect(env['STORAGE_ACCESS_KEY']).toBeUndefined();
333
- expect(env['STORAGE_SECRET_KEY']).toBeUndefined();
334
- });
335
- it('emits WILDO_WORKER_<NAME>_URL for each declared worker dispatch URL (G-8 / MW4)', () => {
336
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'staging', declaredProviderScope([]), {
337
- deploymentLocationType: WildoLocationType.REMOTE,
338
- workerUrls: {
339
- // camelCase bucket key; the HOST is the normalized DNS name the CLI
340
- // computes via `buildWorkerInternalUrl` (matches the deployed Service).
341
- myNodeWorker: 'http://wonder-todos-worker-my-node-worker:8081',
342
- // kebab-case bucket key — both normalize to the same UPPER_SNAKE env key
343
- 'my-rust-worker': 'http://wonder-todos-worker-my-rust-worker:8080',
344
- },
345
- });
346
- // The env-key normalization (camelCase + kebab → UPPER_SNAKE) is shared with
347
- // the backend read-side (`wildoWorkerUrlEnvKey`), so emit and read cannot drift.
348
- expect(env.WILDO_WORKER_MY_NODE_WORKER_URL).toBe('http://wonder-todos-worker-my-node-worker:8081');
349
- expect(env.WILDO_WORKER_MY_RUST_WORKER_URL).toBe('http://wonder-todos-worker-my-rust-worker:8080');
350
- });
351
- it('omits worker dispatch URLs when none are provided (local / no declared workers)', () => {
352
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
353
- expect(Object.keys(env).some((key) => key.startsWith('WILDO_WORKER_'))).toBe(false);
354
- });
355
- it('builds a minimal env-driven contract for application workers', () => {
356
- const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentials, createConfig(), 'local', declaredProviderScope([]), {
357
- runtimeEndpoints: {
358
- 'wonder-todos-api': {
359
- publicUrl: 'http://localhost:4241',
360
- internalUrl: 'http://localhost:4241',
361
- },
362
- },
363
- });
364
- expect(env[ApplicationWorkerBootstrapEnvKeys.APPLICATION_ID]).toBe('app-123');
365
- // Worker identity — the canonical `APP_OWNED_SERVICE_*` pair. `..._NAME` is the
366
- // `workers` bucket key (the apps-manager worker-bootstrap path segment); `..._KIND`
367
- // pins it as a worker. `SERVICE_NAME` stays the separate process/observability name.
368
- expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_KIND]).toBe('worker');
369
- expect(env[ApplicationWorkerBootstrapEnvKeys.APP_OWNED_SERVICE_NAME]).toBe('rustWorker');
370
- expect(env[ApplicationWorkerBootstrapEnvKeys.SERVICE_NAME]).toBe('my-rust-worker');
371
- expect(env[ApplicationWorkerBootstrapEnvKeys.PLATFORM_APPLICATION_PRIMARY_SECRET]).toBe('platform-primary-secret');
372
- expect(env[ApplicationWorkerRuntimeEnvKeys.APPLICATION_RUNTIME_ENDPOINTS]).toContain('wonder-todos-api');
373
- expect(env.MONGODB_HOST).toBeUndefined();
374
- expect(env.RABBITMQ_HOST).toBeUndefined();
375
- expect(env.STORAGE_ACCESS_KEY).toBeUndefined();
376
- });
377
- it('projects the authored HTTP surface into the worker env (WORKER_HTTP_PORT + probe paths)', () => {
378
- const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentials, createConfig(), 'local', declaredProviderScope([]), {
379
- http: { port: 8081, healthPath: '/healthz', readyPath: '/readyz' },
380
- });
381
- expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('8081');
382
- expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HEALTH_PATH]).toBe('/healthz');
383
- expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_READY_PATH]).toBe('/readyz');
384
- // metricsPath is optional (Prometheus opt-in) — omitted when not authored.
385
- expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBeUndefined();
386
- });
387
- it('emits WORKER_METRICS_PATH only when the worker opts into a scrape surface', () => {
388
- const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentials, createConfig(), 'local', declaredProviderScope([]), {
389
- http: { port: 9090, healthPath: '/health', readyPath: '/ready', metricsPath: '/metrics' },
390
- });
391
- expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_HTTP_PORT]).toBe('9090');
392
- expect(env[ApplicationWorkerHttpSurfaceEnvKeys.WORKER_METRICS_PATH]).toBe('/metrics');
393
- });
394
- /*
395
- * Issue #94. The companion was a deliberate N/A for the platform PostgreSQL env — correctly,
396
- * while its startup could not honor those keys. Now that it derives its adapter from
397
- * DATABASE_DEFAULT_ADAPTER and pre-connects PG_CONNECT_URL, withholding them is what would
398
- * lie: the companion would read platform rows from a Mongo database the platform stopped
399
- * using and report every application as unregistered.
400
- */
401
- it('emits the platform PostgreSQL env into the companion on a PostgreSQL-engined platform', () => {
402
- const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig({
403
- type: WildoLocationType.LOCAL,
404
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
405
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
406
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
407
- }), createEnvironment({
408
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
409
- backingServices: {
410
- [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
411
- },
412
- }), { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} });
413
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform');
414
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');
415
- });
416
- it('writes NEITHER PostgreSQL key into the companion env on a MongoDB-engined platform', () => {
417
- // The no-op half: existing companion `.env` material stays byte-identical, and an adapter
418
- // selection is never emitted for a platform that did not declare one.
419
- const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig({
420
- type: WildoLocationType.LOCAL,
421
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
422
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
423
- }), createEnvironment({
424
- name: 'local',
425
- locationType: WildoLocationType.LOCAL,
426
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
427
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
428
- }), { host: '0.0.0.0', port: 4341, runtimeEndpoints: {} });
429
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();
430
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();
431
- });
432
- it('emits platform-focused database and service wiring for companion api env', () => {
433
- const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig({
434
- type: WildoLocationType.LOCAL,
435
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
436
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
437
- }), createEnvironment({
438
- name: 'local',
439
- locationType: WildoLocationType.LOCAL,
440
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
441
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
442
- }), {
443
- host: '0.0.0.0',
444
- port: 4341,
445
- runtimeEndpoints: {
446
- 'wonder-todos-api': {
447
- publicUrl: 'http://localhost:4241',
448
- internalUrl: 'http://localhost:4241',
449
- },
450
- },
451
- });
452
- expect(env[PlatformProcessEnvKeys.SERVICE_NAME]).toBe('wonder-todos-dev-companion');
453
- expect(env[PlatformProcessEnvKeys.HOST]).toBe('0.0.0.0');
454
- expect(env[PlatformProcessEnvKeys.PORT]).toBe('4341');
455
- expect(env[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');
456
- expect(env[PlatformInfrastructureEnvKeys.REDIS_ADMIN_PASSWORD]).toBe('valkey-password');
457
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_ADMIN_PASSWORD]).toBe('rabbit-password');
458
- expect(env[PlatformSecurityEnvKeys.PLATFORM_APPS_MANAGER_PUBLIC_KEY]).toBe('public-key');
459
- expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('platform_crontabs_batches_manager');
460
- expect(env.APPLICATION_RUNTIME_ENDPOINTS).toContain('wonder-todos-dev-companion');
461
- /**
462
- * The companion also needs the APPLICATION's PostgreSQL ADDRESS, and the reason is not symmetry.
463
- * It loads the application's resource registry, which REFUSES to initialize when a resource
464
- * declares `persistenceAdapter: 'postgresql'` while `database.postgresql` is absent — and the
465
- * app-configuration loader builds that branch only when a HOST arrives. Without these keys the
466
- * companion crash-looped on "PostgreSQL is not enabled in database config" while the backend and
467
- * the minions, which DO receive them, booted the same registry fine (measured 2026-08-27).
468
- *
469
- * Address only, under the APPLICATION-backend keys the loader reads. Credentials travel through
470
- * `secrets.database.postgresql`; selection stays `DATABASE_DEFAULT_ADAPTER`.
471
- */
472
- expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_HOST]).toBe('postgresql');
473
- expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_PORT]).toBe('5432');
474
- });
475
- it('gives the companion storage TOPOLOGY but omits the object storage ROOT credential', () => {
476
- // The companion stays platform-tier for Mongo/Redis/RabbitMQ — the assertions in
477
- // the test above pin that, and the blanket platform-credential guard is
478
- // deliberately NOT applied to this builder for that reason. Storage is the one
479
- // axis where it is app-tier: it runs the same `WildoManagedStorageProvider` as
480
- // backend-api and fetches short-lived, prefix-confined STS sessions using the
481
- // bootstrap contract. The root pair it used to receive was NEVER READ — its only
482
- // effect was to park the object store's root credential in a `.env` on a
483
- // developer's disk for the lifetime of the dev stack.
484
- //
485
- // Topology is asserted alongside the absence deliberately: a builder that
486
- // dropped storage wiring wholesale would also satisfy a pure absence check, and
487
- // that would break the companion's file operations while looking like a fix.
488
- const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentials, addresses, createConfig(), createEnvironment());
489
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');
490
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('bucket');
491
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBeUndefined();
492
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBeUndefined();
493
- // Value-level, not key-level: a future builder that emitted the same secret
494
- // under a different key would defeat the two assertions above.
495
- expect(Object.values(env)).not.toContain(credentials.storage.secretKey);
496
- });
497
- it.each([PlatformWildoServices.CRONTABS_BATCHES_MANAGER, PlatformWildoServices.MODULE_REGISTRY])('emits the storage ADDRESS for bootstrap service %s, and never the root credential (#1761)', (service) => {
498
- const env = PlatformEnvVarsBuilder.buildBootstrapEnv(service, credentials, addresses, createConfig(), createEnvironment());
499
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_PROVIDER]).toBe('minio');
500
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_ENDPOINT]).toBe('minio');
501
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_PORT]).toBe('9000');
502
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_USE_SSL]).toBe('false');
503
- // The PLATFORM bucket (#1112), never the application config's `infrastructure.storage.bucket` ('bucket').
504
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe(STORAGE_DEFAULTS.BUCKET);
505
- // Both services resolve storage through apps-manager's STS, with no env fallback; the root pair was
506
- // emitted and never read. Asserted by VALUE too, so the secret cannot survive under another key.
507
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_ACCESS_KEY]).toBeUndefined();
508
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_SECRET_KEY]).toBeUndefined();
509
- expect(Object.values(env)).not.toContain(credentials.storage.secretKey);
510
- });
511
- it('emits Redis and RabbitMQ topology for the crontabs bootstrap service', () => {
512
- const env = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, createConfig(), createEnvironment());
513
- expect(env[PlatformInfrastructureEnvKeys.REDIS_HOST]).toBe('valkey');
514
- expect(env[PlatformInfrastructureEnvKeys.REDIS_PORT]).toBe('6379');
515
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_HOST]).toBe('rabbitmq');
516
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_PORT]).toBe('5672');
517
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_MANAGEMENT_PORT]).toBe('15672');
518
- });
519
- it('emits MONGO_CONNECT_URL for the module-registry bootstrap service ONLY (crontabs bridges platform config)', () => {
520
- const registryEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.MODULE_REGISTRY, credentials, addresses, createConfig(), createEnvironment());
521
- const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, createConfig(), createEnvironment());
522
- // module-registry rides the framework's `StartApplicationBackendService`, which opens the
523
- // PLATFORM_MANAGEMENT connection from `MONGO_CONNECT_URL` → it MUST be provisioned.
524
- expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toContain('/wildo_platform');
525
- expect(registryEnv[PlatformInfrastructureEnvKeys.MONGO_PLATFORM_URL]).toContain('/wildo_platform');
526
- // crontabs uses a custom two-phase startup that bridges platform config for its Mongo access and
527
- // never reads `MONGO_CONNECT_URL`, so the emission is scoped OUT of it.
528
- expect(crontabsEnv[PlatformInfrastructureEnvKeys.MONGO_CONNECT_URL]).toBeUndefined();
529
- });
530
- // ==========================================================================
531
- // Authored backingServices propagation (Slice 3.2 — F-23)
532
- // ==========================================================================
533
- describe('backingServices overrides', () => {
534
- it('emits REDIS_DATABASE for apps-manager when authored, and never the application\'s RABBITMQ_VHOST (#1112)', () => {
535
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
536
- backingServices: {
537
- [BackingServiceKind.REDIS]: {
538
- source: BackingServiceSource.SELF,
539
- database: 3,
540
- },
541
- [BackingServiceKind.RABBITMQ]: {
542
- source: BackingServiceSource.SELF,
543
- vhost: '/wonder',
544
- },
545
- },
546
- }), createEnvironment());
547
- expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('3');
548
- // An application's vhost is not the platform's: it travels with that application's registration (#1107).
549
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();
550
- });
551
- it('omits REDIS_DATABASE / RABBITMQ_VHOST when not authored', () => {
552
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
553
- expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBeUndefined();
554
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();
555
- });
556
- it('uses authored mongodb.database as application MONGODB_DATABASE when no override is supplied', () => {
557
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
558
- backingServices: {
559
- [BackingServiceKind.MONGODB]: {
560
- source: BackingServiceSource.SELF,
561
- database: 'wonder-todos-db',
562
- },
563
- [BackingServiceKind.REDIS]: {
564
- source: BackingServiceSource.SELF,
565
- database: 5,
566
- },
567
- [BackingServiceKind.RABBITMQ]: {
568
- source: BackingServiceSource.SELF,
569
- vhost: '/wonder',
570
- },
571
- },
572
- }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
573
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');
574
- expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('5');
575
- expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('/wonder');
576
- });
577
- it('lets explicit appDatabaseName override the authored mongodb.database', () => {
578
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
579
- backingServices: {
580
- [BackingServiceKind.MONGODB]: {
581
- source: BackingServiceSource.SELF,
582
- database: 'wonder-todos-db',
583
- },
584
- },
585
- }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'explicit_app' });
586
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('explicit_app');
587
- });
588
- // ========================================================================
589
- // Slice 3.6 — `wildo.saas.config.dataServices` projection (F-43)
590
- //
591
- // These tests pin the contract for the three `dataServices` fields wired
592
- // end-to-end in Slice 3.6:
593
- // - `dataServices.redis.keyPrefix` → REDIS_KEY_PREFIX env (REPLACE
594
- // semantics for the legacy username-derived prefix in RedisService)
595
- // - `dataServices.s3.bucketPrefix` → STORAGE_BUCKET_PREFIX env
596
- // (PREPEND semantics for object keys in WildoManagedStorageProvider)
597
- // - `dataServices.rabbitmq.vhost` → DELETED (vhost is an
598
- // infra/topology concern; only the infra-side seam emits the env)
599
- //
600
- // The fields are caller-supplied options (the env builder does not
601
- // import `WildoSaasConfig` — they are threaded by `app-bootstrap.service`
602
- // from `NormalizedSaasRuntimeDescriptor`).
603
- // ========================================================================
604
- it('emits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is authored', () => {
605
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' });
606
- expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');
607
- });
608
- it('omits REDIS_KEY_PREFIX when dataServices.redis.keyPrefix is unset', () => {
609
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
610
- expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBeUndefined();
611
- });
612
- it('emits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is authored', () => {
613
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' });
614
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');
615
- });
616
- it('omits STORAGE_BUCKET_PREFIX when dataServices.s3.bucketPrefix is unset', () => {
617
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
618
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBeUndefined();
619
- });
620
- it('emits both REDIS_KEY_PREFIX and STORAGE_BUCKET_PREFIX side-by-side without conflict', () => {
621
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), {
622
- deploymentLocationType: WildoLocationType.LOCAL,
623
- redisKeyPrefix: 'wonder-todos:',
624
- storageBucketPrefix: 'wonder-todos',
625
- appDatabaseName: 'wonder-todos',
626
- });
627
- expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');
628
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');
629
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos');
630
- });
631
- it('emits REDIS_KEY_PREFIX even when no valkey infra address is wired (dataServices is independent of infra)', () => {
632
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, { ...addresses, infra: { ...addresses.infra, valkey: null } }, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, redisKeyPrefix: 'wonder-todos:' });
633
- expect(env[ApplicationBackendDataEnvKeys.REDIS_HOST]).toBeUndefined();
634
- expect(env[ApplicationBackendDataEnvKeys.REDIS_KEY_PREFIX]).toBe('wonder-todos:');
635
- });
636
- it('emits STORAGE_BUCKET_PREFIX even when no minio infra address is wired (dataServices is independent of infra)', () => {
637
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, { ...addresses, infra: { ...addresses.infra, minio: null } }, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, storageBucketPrefix: 'wonder-todos' });
638
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBeUndefined();
639
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET_PREFIX]).toBe('wonder-todos');
640
- });
641
- it('emits REDIS_DATABASE for the crontabs bootstrap service when authored, and no RABBITMQ_VHOST (#1112)', () => {
642
- const env = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, createConfig({
643
- backingServices: {
644
- [BackingServiceKind.REDIS]: {
645
- source: BackingServiceSource.SELF,
646
- database: 7,
647
- },
648
- [BackingServiceKind.RABBITMQ]: {
649
- source: BackingServiceSource.SELF,
650
- vhost: '/crontabs',
651
- },
652
- },
653
- }), createEnvironment());
654
- expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('7');
655
- // crontabs-manager never read it: its connection's vhost comes from its platform secret.
656
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();
657
- });
658
- it('renders the SAME platform bucket for apps-manager and module-registry, whatever the application authors (#1112)', () => {
659
- const config = createConfig({ backingServices: { [BackingServiceKind.S3]: { source: BackingServiceSource.SELF, bucket: 'some-app-local' } } });
660
- const appsManager = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, config, createEnvironment());
661
- const registry = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.MODULE_REGISTRY, credentials, addresses, config, createEnvironment());
662
- const infra = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, config, createEnvironment());
663
- expect(appsManager[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe(STORAGE_DEFAULTS.BUCKET);
664
- expect(registry[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe(STORAGE_DEFAULTS.BUCKET);
665
- expect(infra.STORAGE_BUCKET).toBe(STORAGE_DEFAULTS.BUCKET);
666
- });
667
- it('renders an authored remote platformStorage bucket for every platform service (#1112)', () => {
668
- const config = createConfig({ platformStorage: { bucket: 'acme-wildo-platform-prod' } });
669
- const appsManager = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, config, createEnvironment());
670
- const registry = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.MODULE_REGISTRY, credentials, addresses, config, createEnvironment());
671
- expect(appsManager[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('acme-wildo-platform-prod');
672
- expect(registry[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe('acme-wildo-platform-prod');
673
- });
674
- });
675
- // ==========================================================================
676
- // Wonder-todos infra snapshot — end-to-end propagation (Slice 3.2 — F-23)
677
- //
678
- // This test pins the contract by mirroring the authored fields of
679
- // `examples/wonder-todos/infrastructure/local/wildo.infra.local.config.ts`
680
- // and asserting they all land in the runtime env vars produced for the
681
- // application backend AND the platform-init / apps-manager surfaces.
682
- //
683
- // We reproduce the projection that `sync.command.buildConfigJsonFromInfraEnvConfig`
684
- // performs (the function is module-private so we cannot import it directly):
685
- // - `infrastructure.storage.bucket` <= `backingServices.s3.bucket`
686
- // - `backingServices` is persisted as-is into the snapshot.
687
- // ==========================================================================
688
- describe('wonder-todos local infra snapshot (end-to-end)', () => {
689
- const wonderTodosBackingServices = {
690
- [BackingServiceKind.MONGODB]: {
691
- source: BackingServiceSource.SELF,
692
- database: 'wonder-todos-db',
693
- host: 'localhost',
694
- port: 27017,
695
- },
696
- [BackingServiceKind.REDIS]: {
697
- source: BackingServiceSource.SELF,
698
- host: 'localhost',
699
- port: 6379,
700
- database: 0,
701
- },
702
- [BackingServiceKind.RABBITMQ]: {
703
- source: BackingServiceSource.SELF,
704
- host: 'localhost',
705
- port: 5672,
706
- vhost: 'wonder-todos',
707
- },
708
- [BackingServiceKind.S3]: {
709
- source: BackingServiceSource.SELF,
710
- provider: 'minio',
711
- endpoint: 'http://localhost:9000',
712
- bucket: 'wonder-todos-local',
713
- },
714
- [BackingServiceKind.CLAMAV]: { source: BackingServiceSource.SELF },
715
- };
716
- function makeWonderTodosConfig(overrides = {}) {
717
- return createConfig({
718
- type: WildoLocationType.LOCAL,
719
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
720
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
721
- infrastructure: {
722
- storage: {
723
- provider: 'minio',
724
- useSsl: false,
725
- bucket: 'wonder-todos-local',
726
- },
727
- postgresql: {
728
- database: 'wonder-todos',
729
- sslMode: 'disable',
730
- },
731
- },
732
- backingServices: wonderTodosBackingServices,
733
- kubernetes: undefined,
734
- remoteProvider: undefined,
735
- ...overrides,
736
- });
737
- }
738
- function makeWonderTodosEnv() {
739
- return createEnvironment({
740
- name: 'local',
741
- locationType: WildoLocationType.LOCAL,
742
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
743
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
744
- kubernetes: undefined,
745
- remoteProvider: undefined,
746
- backingServices: wonderTodosBackingServices,
747
- });
748
- }
749
- it('propagates every authored backingServices field to the application backend env', () => {
750
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, makeWonderTodosConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
751
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder-todos-db');
752
- expect(env[ApplicationBackendDataEnvKeys.REDIS_DATABASE]).toBe('0');
753
- expect(env[ApplicationBackendDataEnvKeys.RABBITMQ_VHOST]).toBe('wonder-todos');
754
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_BUCKET]).toBe('wonder-todos-local');
755
- expect(env[ApplicationBackendDataEnvKeys.STORAGE_PROVIDER]).toBe('minio');
756
- });
757
- it('propagates authored redis-db to the apps-manager env, but not the application\'s vhost or bucket (#1112)', () => {
758
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, makeWonderTodosConfig(), makeWonderTodosEnv());
759
- expect(env[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();
760
- expect(env[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');
761
- expect(env[PlatformInfrastructureEnvKeys.STORAGE_BUCKET]).toBe(STORAGE_DEFAULTS.BUCKET);
762
- });
763
- it('propagates authored redis-db to the crontabs bootstrap env, and no vhost (#1112)', () => {
764
- const crontabsEnv = PlatformEnvVarsBuilder.buildBootstrapEnv(PlatformWildoServices.CRONTABS_BATCHES_MANAGER, credentials, addresses, makeWonderTodosConfig(), makeWonderTodosEnv());
765
- expect(crontabsEnv[PlatformInfrastructureEnvKeys.RABBITMQ_VHOST]).toBeUndefined();
766
- expect(crontabsEnv[PlatformInfrastructureEnvKeys.REDIS_DATABASE]).toBe('0');
767
- });
768
- });
769
- /**
770
- * Slice 3.5 — `infra.logging.*` projection.
771
- *
772
- * Pins the middle of the data flow:
773
- *
774
- * `WildoInfraEnvConfig.logging` → `PlatformEnvConfigJson.logging`
775
- * (persisted) → `emitLoggingEnv` (HERE) → `LOG_LEVEL` /
776
- * `LOG_FORMATTED_CONSOLE_ERRORS` env vars → `LoggerService`.
777
- *
778
- * The schema-side round-trip is pinned by
779
- * `define-infra-env-config.unimplemented.test.ts`; the consumer-side
780
- * read is pinned by `logger.service.env-wiring.test.ts`. This block
781
- * pins the projection step that is invisible to those two tests.
782
- */
783
- describe('Slice 3.5 — logging env projection', () => {
784
- it('emits LOG_LEVEL and LOG_FORMATTED_CONSOLE_ERRORS for apps-manager when authored', () => {
785
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
786
- logging: {
787
- level: 'warn',
788
- formattedConsoleErrors: true,
789
- },
790
- }), createEnvironment());
791
- expect(env.LOG_LEVEL).toBe('warn');
792
- expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('true');
793
- });
794
- it('omits LOG_LEVEL / LOG_FORMATTED_CONSOLE_ERRORS when logging block is absent (no false defaults)', () => {
795
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
796
- expect(env.LOG_LEVEL).toBeUndefined();
797
- expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBeUndefined();
798
- });
799
- it('also emits the logging vars on the application-backend surface', () => {
800
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
801
- logging: {
802
- level: 'debug',
803
- formattedConsoleErrors: false,
804
- },
805
- }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
806
- expect(env.LOG_LEVEL).toBe('debug');
807
- expect(env.LOG_FORMATTED_CONSOLE_ERRORS).toBe('false');
808
- });
809
- });
810
- /**
811
- * Per-env provider selection override — `infra.providerSelection` →
812
- * `PlatformEnvConfigJson.providerSelection` → `emitProviderSelectionEnv`
813
- * (serialized JSON) → `WILDO_PROVIDER_SELECTION_OVERRIDES`, read by
814
- * `ExternalProvidersRegistryBackendService` to override the app-wide
815
- * `wildo.saas.config.ts` selection per environment.
816
- */
817
- /**
818
- * Per-env documentation-site origins — `infra.documentationSite` →
819
- * `PlatformEnvConfigJson.documentationSite` → `emitDocumentationSiteEnv` → the three
820
- * `WILDO_DOCS_*` vars, read by the application's `docusaurus.config.ts`.
821
- *
822
- * Emitted as three scalars rather than one serialized payload (the `providerSelection`
823
- * shape): the docs config reads each directly, and a JSON blob would force it to parse a
824
- * payload to recover three strings.
825
- */
826
- describe('per-env documentation-site origins (WILDO_DOCS_*) projection', () => {
827
- it('emits each authored origin under its own var', () => {
828
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
829
- documentationSite: {
830
- apiBaseUrl: 'https://api.example.com',
831
- appUrl: 'https://app.example.com',
832
- frontendServiceName: 'wonder-todos-docs',
833
- },
834
- }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
835
- expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');
836
- expect(env.WILDO_DOCS_APP_URL).toBe('https://app.example.com');
837
- expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBe('wonder-todos-docs');
838
- });
839
- it('omits every var when documentationSite is absent (no false default)', () => {
840
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
841
- expect(env.WILDO_DOCS_API_BASE_URL).toBeUndefined();
842
- expect(env.WILDO_DOCS_APP_URL).toBeUndefined();
843
- expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();
844
- });
845
- it('emits ONLY the authored members, leaving the rest to the docs config defaults', () => {
846
- // A partially-authored block is the realistic case: an environment may pin the API
847
- // origin while the others stay local. Emitting an empty string for the unauthored
848
- // ones would be worse than omitting them — the docs config treats PRESENCE as an
849
- // explicit binding and would compile an empty origin into the bundle.
850
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ documentationSite: { apiBaseUrl: 'https://api.example.com' } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
851
- expect(env.WILDO_DOCS_API_BASE_URL).toBe('https://api.example.com');
852
- expect(env.WILDO_DOCS_APP_URL).toBeUndefined();
853
- expect(env.WILDO_DOCS_FRONTEND_SERVICE_NAME).toBeUndefined();
854
- });
855
- });
856
- describe('per-env provider selection override (WILDO_PROVIDER_SELECTION_OVERRIDES) projection', () => {
857
- it('emits the serialized override on the application-backend surface when authored', () => {
858
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({
859
- providerSelection: {
860
- [EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },
861
- },
862
- }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
863
- expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeDefined();
864
- expect(JSON.parse(env.WILDO_PROVIDER_SELECTION_OVERRIDES)).toEqual({
865
- [EngineCapability.EMAIL_TRANSACTIONAL]: { primary: 'email-preview' },
866
- });
867
- });
868
- it('omits the var when providerSelection is absent (no false default)', () => {
869
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
870
- expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();
871
- });
872
- it('omits the var when providerSelection is an empty object', () => {
873
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ providerSelection: {} }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
874
- expect(env.WILDO_PROVIDER_SELECTION_OVERRIDES).toBeUndefined();
875
- });
876
- });
877
- /**
878
- * Slice 2 Phase 5 — `infra.observability.*` → `OTEL_*` projection.
879
- *
880
- * `WildoInfraEnvConfig.observability` → `PlatformEnvConfigJson.observability`
881
- * → `emitObservabilityEnv` (HERE) → `OTEL_ENABLED` / `OTEL_EXPORTER_OTLP_ENDPOINT`
882
- * / `OTEL_SERVICE_NAME` / `OTEL_RESOURCE_ATTRIBUTES`, read by the `otel-preload`.
883
- *
884
- * The auth-header cases (Phase 5b) exercise the provider-agnostic resolver: the
885
- * provisioned telemetry token in `providerEnv` identifies the OBSERVABILITY_TELEMETRY
886
- * provider (betterstack, registered with `otlpAuth: Bearer {token}`) and is formatted
887
- * into `OTEL_EXPORTER_OTLP_HEADERS` — no provider named in the CLI.
888
- */
889
- describe('Slice 2 Phase 5 — observability (OTEL_*) env projection', () => {
890
- it('emits OTEL_* on the application-backend surface when the observability block is enabled', () => {
891
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
892
- expect(env.OTEL_ENABLED).toBe('true');
893
- expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('http://localhost:4318');
894
- expect(env.OTEL_SERVICE_NAME).toBe('wonder-todos-api');
895
- expect(env.OTEL_RESOURCE_ATTRIBUTES).toContain('deployment.environment=');
896
- });
897
- it('omits OTEL_* when the observability block is absent or disabled (no false defaults)', () => {
898
- const absent = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig(), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
899
- expect(absent.OTEL_ENABLED).toBeUndefined();
900
- const disabled = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({ observability: { enabled: false } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
901
- expect(disabled.OTEL_ENABLED).toBeUndefined();
902
- });
903
- it('emits OTEL_EXPORTER_OTLP_HEADERS from a provisioned telemetry provider token (Phase 5b)', () => {
904
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: { BETTERSTACK_SOURCE_TOKEN: 'tok_test_123' } }, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), 'local',
905
- // DECLARES the telemetry provider. This argument was `[]` until #360 and the header was
906
- // emitted anyway — that is the defect, pinned from both directions in the dedicated
907
- // describe below. Kept here as the positive case for the Phase-5b resolver itself.
908
- declaredProviderScope(['betterstack']), { deploymentLocationType: WildoLocationType.LOCAL });
909
- expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBe('Authorization=Bearer tok_test_123');
910
- });
911
- it('omits OTEL_EXPORTER_OTLP_HEADERS when no telemetry token is provisioned (no-auth collector)', () => {
912
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: {} }, addresses, createConfig({ observability: { enabled: true, endpoint: 'http://localhost:4318' } }), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
913
- expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();
914
- });
915
- });
916
- /**
917
- * `credentials.providerEnv` is read at runtime via
918
- * `ExternalProvidersRegistryBackendService.getProviderSecret/getProviderApiKey`
919
- * (in `saas-backend-lib`), which calls `process.env[envVarName]`. Application
920
- * backends, env-driven workers, and the dev companion call those methods;
921
- * apps-manager does not. The keys therefore MUST NOT appear in apps-manager env.
922
- */
923
- describe('provider env canonical sinks', () => {
924
- const credentialsWithProviders = {
925
- ...credentials,
926
- providerEnv: {
927
- OPENAI_API_KEY: 'sk-openai-test',
928
- ANTHROPIC_API_KEY: 'sk-ant-test',
929
- RESEND_API_KEY: 're_test',
930
- },
931
- };
932
- const PROVIDER_KEYS = ['OPENAI_API_KEY', 'ANTHROPIC_API_KEY', 'RESEND_API_KEY'];
933
- /**
934
- * The provider REFS whose secrets those keys are.
935
- *
936
- * Application-tier builders now require a declared scope and fail CLOSED
937
- * without one, so these tests supply it explicitly. That does not weaken the
938
- * invariant they exist for — which is NEGATIVE: provider secrets must never
939
- * reach apps-manager or a bootstrap service. It narrows the positive half
940
- * from "every application runtime gets every key" to "a runtime gets the keys
941
- * it DECLARED", which is the point of `providers.scopes.*`.
942
- */
943
- const PROVIDER_REFS = ['openai', 'anthropic', 'resend'];
944
- it('does NOT emit any provider env key in apps-manager full env', () => {
945
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentialsWithProviders, addresses, createConfig(), createEnvironment());
946
- for (const key of PROVIDER_KEYS) {
947
- expect(env[key]).toBeUndefined();
948
- }
949
- });
950
- it.each(BOOTSTRAP_PLATFORM_SERVICES)('does NOT emit any provider env key in bootstrap service env (%s)', (service) => {
951
- const env = PlatformEnvVarsBuilder.buildBootstrapEnv(service, credentialsWithProviders, addresses, createConfig(), createEnvironment());
952
- for (const key of PROVIDER_KEYS) {
953
- expect(env[key]).toBeUndefined();
954
- }
955
- });
956
- it('emits every provider env key in application backend env (canonical sink)', () => {
957
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithProviders, addresses, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), { deploymentLocationType: WildoLocationType.LOCAL });
958
- expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
959
- expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');
960
- expect(env.RESEND_API_KEY).toBe('re_test');
961
- });
962
- it('emits every provider env key in companion api env (canonical sink — companion runs ExternalProvidersRegistryBackendService)', () => {
963
- const env = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentialsWithProviders, addresses, createConfig({
964
- type: WildoLocationType.LOCAL,
965
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
966
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
967
- }), createEnvironment({
968
- name: 'local',
969
- locationType: WildoLocationType.LOCAL,
970
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
971
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
972
- }));
973
- expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
974
- expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');
975
- expect(env.RESEND_API_KEY).toBe('re_test');
976
- });
977
- it('emits every provider env key in application worker env (canonical sink for non-Node workers)', () => {
978
- const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithProviders, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), {});
979
- expect(env.OPENAI_API_KEY).toBe('sk-openai-test');
980
- expect(env.ANTHROPIC_API_KEY).toBe('sk-ant-test');
981
- expect(env.RESEND_API_KEY).toBe('re_test');
982
- });
983
- it('materializes each provider key in exactly three sinks (backend + worker + companion) across every platform/bootstrap surface', () => {
984
- const appsMgrEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentialsWithProviders, addresses, createConfig(), createEnvironment());
985
- const bootstrapEnvs = BOOTSTRAP_PLATFORM_SERVICES.map((service) => PlatformEnvVarsBuilder.buildBootstrapEnv(service, credentialsWithProviders, addresses, createConfig(), createEnvironment()));
986
- const backendEnv = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithProviders, addresses, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), { deploymentLocationType: WildoLocationType.LOCAL });
987
- const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithProviders, createConfig(), 'local', declaredProviderScope(PROVIDER_REFS), {});
988
- const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentialsWithProviders, addresses, createConfig({
989
- type: WildoLocationType.LOCAL,
990
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
991
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
992
- }), createEnvironment({
993
- name: 'local',
994
- locationType: WildoLocationType.LOCAL,
995
- runtime: WildoDeploymentRuntime.DOCKER_COMPOSE,
996
- runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT,
997
- }));
998
- for (const key of PROVIDER_KEYS) {
999
- const sinks = [
1000
- appsMgrEnv[key],
1001
- ...bootstrapEnvs.map((env) => env[key]),
1002
- backendEnv[key],
1003
- workerEnv[key],
1004
- companionEnv[key],
1005
- ].filter((value) => value !== undefined);
1006
- expect(sinks.length, `Provider key '${key}' must materialize in exactly THREE sinks (backend + worker + companion). Got: ${sinks.length}.`).toBe(3);
1007
- }
1008
- });
1009
- });
1010
- /**
1011
- * immudb state-signature pinning — the audit client pins `IMMUDB_STATE_PUBLIC_KEY` to
1012
- * cryptographically reject a whole-server substitution. The key is FRAMEWORK-GENERATED
1013
- * (`credentials.immudb.stateSigningPublicKey`, never operator-typed), so `env-vars-builder`
1014
- * injects it into every backend runtime's env — but ONLY when the immudb audit provider is
1015
- * configured (its `IMMUDB_HOST` is present in providerEnv), and NEVER the private half.
1016
- */
1017
- describe('immudb state-signing public-key delivery', () => {
1018
- const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\nMFkwEwexamplepub\n-----END PUBLIC KEY-----\n';
1019
- const PRIVATE_KEY = '-----BEGIN EC PRIVATE KEY-----\nMHcCAQEEexamplepriv\n-----END EC PRIVATE KEY-----\n';
1020
- const credentialsWithImmudb = (providerEnv) => ({
1021
- ...credentials,
1022
- immudb: { stateSigningPrivateKey: PRIVATE_KEY, stateSigningPublicKey: PUBLIC_KEY },
1023
- providerEnv,
1024
- });
1025
- it('injects IMMUDB_STATE_PUBLIC_KEY (public half only) into the app backend env when immudb is configured', () => {
1026
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithImmudb({ [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.PASSWORD]: 'pw' }), addresses, createConfig(), 'local',
1027
- // `immudb` must be in scope for its state-signing PUBLIC key to be
1028
- // delivered — the key is attributable to that provider, so a runtime that
1029
- // does not declare immudb correctly receives nothing for it.
1030
- declaredProviderScope(['immudb']), { deploymentLocationType: WildoLocationType.LOCAL });
1031
- expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
1032
- // The PRIVATE key is SERVER-side only — it must NEVER surface in an app runtime's env.
1033
- expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.SERVER.STATE_SIGNING_KEY]).toBeUndefined();
1034
- expect(Object.values(env)).not.toContain(PRIVATE_KEY);
1035
- });
1036
- it('also delivers the public key to the companion and worker runtimes', () => {
1037
- const providerEnv = { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb' };
1038
- const workerEnv = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'rustWorker', 'my-rust-worker', credentialsWithImmudb(providerEnv), createConfig(), 'local', declaredProviderScope(['immudb']), {});
1039
- const companionEnv = PlatformEnvVarsBuilder.buildCompanionPlatformEnv(appBootstrapCredentials, 'wonder-todos-dev-companion', credentialsWithImmudb(providerEnv), addresses, createConfig({ type: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }), createEnvironment({ name: 'local', locationType: WildoLocationType.LOCAL, runtime: WildoDeploymentRuntime.DOCKER_COMPOSE, runtimeEnvironment: RuntimeEnvironment.DEVELOPMENT }));
1040
- expect(workerEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
1041
- expect(companionEnv[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
1042
- });
1043
- it('does NOT inject the public key when the immudb provider is not configured (no IMMUDB_HOST)', () => {
1044
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentialsWithImmudb({ OPENAI_API_KEY: 'sk-openai-test' }), addresses, createConfig(), 'local',
1045
- // `immudb` must be in scope for its state-signing PUBLIC key to be
1046
- // delivered — the key is attributable to that provider, so a runtime that
1047
- // does not declare immudb correctly receives nothing for it.
1048
- declaredProviderScope(['immudb']), { deploymentLocationType: WildoLocationType.LOCAL });
1049
- expect(env[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBeUndefined();
1050
- });
1051
- });
1052
- /**
1053
- * `buildRuntimeProviderEnv` is the public projection of the SAME provider-env
1054
- * map merged into every backend/companion/worker runtime — the authority
1055
- * `wildo config sync` reuses to emit the standalone provider-secrets sink.
1056
- * These pins guarantee the sink stays byte-identical to the runtime provider
1057
- * env (authored `providerEnv` verbatim + the framework-injected immudb key),
1058
- * so a future refactor cannot let the sink drift from what the backend gets.
1059
- */
1060
- describe('buildRuntimeProviderEnv (provider-secrets sink authority)', () => {
1061
- const PUBLIC_KEY = '-----BEGIN PUBLIC KEY-----\nMFkwEwexamplepub\n-----END PUBLIC KEY-----\n';
1062
- it('returns the authored providerEnv verbatim (incl. base64-ish API keys)', () => {
1063
- const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc==', OPENAI_API_KEY: 'sk-openai-xyz' };
1064
- const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });
1065
- expect(result).toEqual(providerEnv);
1066
- });
1067
- it('does not mutate the source credentials.providerEnv', () => {
1068
- const providerEnv = { ANTHROPIC_API_KEY: 'sk-ant-abc' };
1069
- const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv });
1070
- result.INJECTED = 'x';
1071
- expect(providerEnv).toEqual({ ANTHROPIC_API_KEY: 'sk-ant-abc' });
1072
- });
1073
- it('injects the framework-generated immudb state key when immudb is configured (a naive providerEnv copy would drop it)', () => {
1074
- const result = PlatformEnvVarsBuilder.buildRuntimeProviderEnv({
1075
- ...credentials,
1076
- immudb: { stateSigningPrivateKey: 'priv', stateSigningPublicKey: PUBLIC_KEY },
1077
- providerEnv: { [IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.HOST]: 'immudb', ANTHROPIC_API_KEY: 'sk-ant' },
1078
- });
1079
- expect(result[IMMUDB_CREDENTIAL_ENV_KEYS.PROVIDER.STATE_PUBLIC_KEY]).toBe(PUBLIC_KEY);
1080
- expect(result.ANTHROPIC_API_KEY).toBe('sk-ant');
1081
- });
1082
- it('returns an empty map when no providers are authored', () => {
1083
- expect(PlatformEnvVarsBuilder.buildRuntimeProviderEnv({ ...credentials, providerEnv: {} })).toEqual({});
1084
- });
1085
- });
1086
- });
1087
- // The storage values in the shared `credentials` fixture above. Named here so the
1088
- // assertions below can prove the guard never prints them.
1089
- const TEST_STORAGE_ACCESS_KEY = 'minio';
1090
- const TEST_STORAGE_SECRET_KEY = 'minio-secret';
1091
- /** Build an application-tier env through the real builder. */
1092
- function buildBackendEnvForTest() {
1093
- return PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, addresses, createConfig({}), 'local', declaredProviderScope([]), {
1094
- deploymentLocationType: WildoLocationType.LOCAL,
1095
- appDatabaseName: 'wonder_todos',
1096
- });
1097
- }
1098
- describe('PlatformEnvVarsBuilder — object storage ROOT credential is not distributed (storage plan R5)', () => {
1099
- it('omits STORAGE_ACCESS_KEY / STORAGE_SECRET_KEY from application-tier env', () => {
1100
- // Those two are the object store's ROOT credential — the same pair assigned
1101
- // to MINIO_ROOT_USER / MINIO_ROOT_PASSWORD. Applications now obtain
1102
- // short-lived, prefix-confined session credentials from apps-manager.
1103
- const env = buildBackendEnvForTest();
1104
- expect(env.STORAGE_ACCESS_KEY).toBeUndefined();
1105
- expect(env.STORAGE_SECRET_KEY).toBeUndefined();
1106
- });
1107
- it('still emits the NON-secret storage wiring the adapter needs', () => {
1108
- // The removal must be surgical: endpoint/bucket/provider are not secrets and
1109
- // the storage adapter cannot address the store without them. Deleting them
1110
- // too would disable file storage rather than secure it.
1111
- const env = buildBackendEnvForTest();
1112
- expect(env.STORAGE_ENDPOINT).toBeDefined();
1113
- expect(env.STORAGE_BUCKET).toBeDefined();
1114
- expect(env.STORAGE_PROVIDER).toBeDefined();
1115
- });
1116
- it('THROWS if the root SECRET reaches application env under ANY key name', () => {
1117
- // The regression gate, tested against the guard directly because there is
1118
- // deliberately no production path that leaks — which is the point.
1119
- //
1120
- // The leak uses a DIFFERENT key name on purpose: a key-name check would be
1121
- // defeated exactly this way, so the guard compares VALUES.
1122
- expect(() => assertNoStorageSecretInGeneratedEnv({ SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
1123
- });
1124
- it('passes a clean env, so the guard is not vacuously green', () => {
1125
- // Without this, a guard that threw on everything — or on nothing — would look
1126
- // identical to a working one in the test above.
1127
- expect(() => assertNoStorageSecretInGeneratedEnv({ STORAGE_ENDPOINT: 'minio', STORAGE_BUCKET: 'bucket' }, credentials, 'testBuilder')).not.toThrow();
1128
- });
1129
- it('never puts the secret VALUE in the error message', () => {
1130
- // An error containing the secret would write it into CI logs — a worse place
1131
- // than the env file it was caught in.
1132
- try {
1133
- assertNoStorageSecretInGeneratedEnv({ SOME_UNRELATED_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder');
1134
- throw new Error('expected the guard to throw');
1135
- }
1136
- catch (error) {
1137
- const message = error.message;
1138
- expect(message).not.toContain(TEST_STORAGE_ACCESS_KEY);
1139
- expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);
1140
- // …but it must name the offending KEY, or the failure is unactionable.
1141
- expect(message).toContain('SOME_UNRELATED_KEY');
1142
- }
1143
- });
1144
- });
1145
- describe('assertNoStorageSecretInGeneratedEnv — the forbidden set is the SECRET only, and has no key exemptions', () => {
1146
- it('does NOT fire on the access key, which is an identifier rather than a credential', () => {
1147
- // The access key is the principal's NAME: for MinIO conventionally the literal
1148
- // `minio` (also the provider name and the compose hostname), and in this
1149
- // repository's generated secrets a short shared admin username that is
1150
- // byte-identical to `mongodb.rootUser` and `rabbitmq.adminUsername`. It grants
1151
- // nothing on its own.
1152
- //
1153
- // It used to be in the forbidden set, and that forced an exemption list of env
1154
- // KEY NAMES to suppress the resulting false positives — re-introducing a
1155
- // by-name escape hatch into a guard whose entire premise is that names are
1156
- // defeatable. Dropping the access key removed the false positives and the
1157
- // escape hatch together.
1158
- expect(() => assertNoStorageSecretInGeneratedEnv({
1159
- STORAGE_PROVIDER: TEST_STORAGE_ACCESS_KEY,
1160
- STORAGE_ENDPOINT: TEST_STORAGE_ACCESS_KEY,
1161
- SOME_OTHER_KEY: TEST_STORAGE_ACCESS_KEY,
1162
- }, credentials, 'testBuilder')).not.toThrow();
1163
- });
1164
- it('fires on the SECRET even under a key that used to be exempt', () => {
1165
- // The load-bearing consequence of removing the exemption list. Previously
1166
- // `STORAGE_ENDPOINT` was skipped entirely, so a secret emitted under it would
1167
- // have passed. No key is skipped now.
1168
- expect(() => assertNoStorageSecretInGeneratedEnv({ STORAGE_ENDPOINT: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder')).toThrow(/STORAGE_ENDPOINT/);
1169
- });
1170
- it('fires on the SECRET under its own canonical key name', () => {
1171
- expect(() => assertNoStorageSecretInGeneratedEnv({ STORAGE_SECRET_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder')).toThrow(/STORAGE_SECRET_KEY/);
1172
- });
1173
- });
1174
- describe('assertNoStorageSecretInGeneratedEnv — every application-tier builder is a call site', () => {
1175
- // `buildApplicationBackendEnv` and `buildApplicationWorkerEnv` each build an env
1176
- // from scratch and so each need the guard; `buildApplicationMinionEnv` delegates
1177
- // to the backend builder and inherits it. The worker was missed when the guard
1178
- // first landed — it emits no STORAGE_* today, but `resolveRuntimeProviderEnv`
1179
- // fans values out of the same `credentials` object the root pair lives in.
1180
- // See `.claude/rules/invariant-call-site-enumeration.md`.
1181
- const buildWorkerEnv = (workerCredentials, scopedProviderRefs) => PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'myRustWorker', 'wonder-todos-my-rust-worker', workerCredentials, createConfig({}), 'local', declaredProviderScope(scopedProviderRefs), {});
1182
- it('the worker builder produces a clean env today', () => {
1183
- // Positive control: without this, the throwing test below could not be
1184
- // distinguished from a builder that fails for any input.
1185
- expect(() => buildWorkerEnv(credentials, [])).not.toThrow();
1186
- });
1187
- it('the worker builder REFUSES when the storage secret reaches its env through a provider value', () => {
1188
- // Drives the guard through the only channel by which the worker env can
1189
- // currently carry arbitrary values out of `credentials` — the scoped provider
1190
- // fan-out. Asserting the OUTPUT instead would pass whether or not the guard is
1191
- // wired, which is precisely the mistake that let the worker call site go
1192
- // missing in the first place.
1193
- const leaking = {
1194
- ...credentials,
1195
- providerEnv: { OPENAI_API_KEY: TEST_STORAGE_SECRET_KEY },
1196
- };
1197
- expect(() => buildWorkerEnv(leaking, ['openai'])).toThrow(/buildApplicationWorkerEnv emitted platform-tier credentials/);
1198
- });
1199
- });
1200
- describe('PlatformEnvVarsBuilder — provider secrets are scoped to the declared providers (minions plan R6 / F19)', () => {
1201
- const PROVIDER_ENV = {
1202
- OPENAI_API_KEY: 'sk-openai-xxxxxxxx',
1203
- ANTHROPIC_API_KEY: 'sk-anthropic-xxxxxxxx',
1204
- STRIPE_SECRET_KEY: 'sk-stripe-xxxxxxxx',
1205
- RESEND_API_KEY: 're-resend-xxxxxxxx',
1206
- };
1207
- function buildScoped(scopedProviderRefs) {
1208
- return PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: PROVIDER_ENV }, addresses, createConfig({}), 'local', declaredProviderScope(scopedProviderRefs), { deploymentLocationType: WildoLocationType.LOCAL });
1209
- }
1210
- it('gives a runtime scoped to openai ONLY the openai key', () => {
1211
- // The finding in one assertion: a marketing-scraper minion declared with
1212
- // `openai` was receiving the application's Stripe secret key.
1213
- const env = buildScoped(['openai']);
1214
- expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);
1215
- expect(env.STRIPE_SECRET_KEY).toBeUndefined();
1216
- expect(env.ANTHROPIC_API_KEY).toBeUndefined();
1217
- expect(env.RESEND_API_KEY).toBeUndefined();
1218
- });
1219
- it('gives a runtime declaring NO providers no provider secrets at all', () => {
1220
- // `myRustWorker` declares `providers: {}` and previously received every key.
1221
- const env = buildScoped([]);
1222
- for (const key of Object.keys(PROVIDER_ENV)) {
1223
- expect(env[key], key).toBeUndefined();
1224
- }
1225
- });
1226
- it('FAILS CLOSED when the scope is omitted entirely', () => {
1227
- // The load-bearing default. "Omitted" must mean NONE, not ALL — the opposite
1228
- // default is exactly how every minion came to hold every provider secret.
1229
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: PROVIDER_ENV }, addresses, createConfig({}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL });
1230
- expect(env.STRIPE_SECRET_KEY).toBeUndefined();
1231
- expect(env.OPENAI_API_KEY).toBeUndefined();
1232
- });
1233
- it('still gives a broadly-scoped runtime everything it declared', () => {
1234
- // The filter must not be a blunt instrument: the backend declares most
1235
- // providers and must keep them, or storage/AI/billing all break.
1236
- const env = buildScoped(['openai', 'anthropic', 'stripe', 'resend']);
1237
- expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);
1238
- expect(env.ANTHROPIC_API_KEY).toBe(PROVIDER_ENV.ANTHROPIC_API_KEY);
1239
- expect(env.STRIPE_SECRET_KEY).toBe(PROVIDER_ENV.STRIPE_SECRET_KEY);
1240
- expect(env.RESEND_API_KEY).toBe(PROVIDER_ENV.RESEND_API_KEY);
1241
- });
1242
- it('DROPS a key no provider claims, and says so, instead of passing it as configuration (#329)', () => {
1243
- /*
1244
- * INVERTED by #329, and the inversion is the security fix rather than a taste change.
1245
- *
1246
- * This pin used to assert the opposite — "a key no provider claims is config (a hostname, a
1247
- * database name), dropping it would break runtimes for a reason unrelated to credentials".
1248
- * That reasoning held only while every provider was engine-shipped. The moment a provider can
1249
- * ship as its own package, "no provider claims it" stops meaning "it is not a secret" and
1250
- * starts meaning "the CLI cannot SEE the provider that owns it" — so the rule delivered a
1251
- * package-shipped provider's API key into every worker and minion environment, silently, which
1252
- * is exactly what the confinement exists to prevent.
1253
- *
1254
- * The premise was also wrong on its own terms: a provider whose configuration is a hostname or
1255
- * a database name puts THAT in its own secrets contract — immudb and odoo both do — and every
1256
- * framework writer of `providerEnv` fills it straight from those contracts. Measured when this
1257
- * was inverted: both dogfood applications' live `providerEnv` holds 13 keys and every one is
1258
- * attributable, so failing closed drops nothing that exists today.
1259
- */
1260
- const warn = vi.spyOn(console, 'warn').mockImplementation(() => { });
1261
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: { ...PROVIDER_ENV, SOME_PLAIN_CONFIG: 'not-a-provider-secret' } }, addresses, createConfig({}), 'local', declaredProviderScope(['openai']), { deploymentLocationType: WildoLocationType.LOCAL });
1262
- expect(env.SOME_PLAIN_CONFIG).toBeUndefined();
1263
- expect(env.STRIPE_SECRET_KEY).toBeUndefined();
1264
- // A refusal nobody can see is the failure mode this whole slice is about, so the drop names
1265
- // the key. Asserting the report — not only the absence — is what stops a future "simplify"
1266
- // from turning the fix back into a silent one.
1267
- expect(warn).toHaveBeenCalledWith(expect.stringContaining('SOME_PLAIN_CONFIG'));
1268
- warn.mockRestore();
1269
- // The provider it DID declare still arrives — the filter is not a blunt instrument.
1270
- expect(env.OPENAI_API_KEY).toBe(PROVIDER_ENV.OPENAI_API_KEY);
1271
- });
1272
- /*
1273
- * #1637. One `config sync` builds every runtime's env, and the same orphaned key was reported once PER
1274
- * runtime. It is dropped from each, reported once within the report window, and the report names where it
1275
- * is removed — and that the dev companion still carries it (it receives every provider key).
1276
- */
1277
- it('reports an orphaned key ONCE however many runtimes drop it, naming how to remove it', () => {
1278
- const warn = vi.spyOn(console, 'warn').mockImplementation(() => { });
1279
- const build = () => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', { ...credentials, providerEnv: { ...PROVIDER_ENV, RETIRED_VENDOR_BASE_URL: 'https://retired.example' } }, addresses, createConfig({}), 'local', declaredProviderScope(['openai']), { deploymentLocationType: WildoLocationType.LOCAL });
1280
- expect(build().RETIRED_VENDOR_BASE_URL).toBeUndefined();
1281
- expect(build().RETIRED_VENDOR_BASE_URL).toBeUndefined();
1282
- const reports = warn.mock.calls.map(([message]) => String(message)).filter((message) => message.includes('RETIRED_VENDOR_BASE_URL'));
1283
- warn.mockRestore();
1284
- expect(reports).toHaveLength(1);
1285
- expect(reports[0]).toContain('wildo secrets unset <NAME>');
1286
- expect(reports[0]).toContain('only the dev companion, which receives every provider key, still carries them');
1287
- });
1288
- });
1289
- describe('PlatformEnvVarsBuilder — a minion receives the providers it DECLARED (F-F)', () => {
1290
- // `providers.scopes.minions.<name>` is the authored boundary. Two ways to get it
1291
- // wrong, and the minion path has been on both sides: inheriting the whole
1292
- // application bag (a minion scoped to `openai` holding STRIPE_SECRET_KEY), or
1293
- // fail-closing to nothing (the same minion losing the `openai` key it declared
1294
- // and needs). Only the DECLARED set is correct.
1295
- const credentialsWithProviders = {
1296
- ...credentials,
1297
- providerEnv: {
1298
- OPENAI_API_KEY: 'sk-openai-test',
1299
- STRIPE_SECRET_KEY: 'sk-stripe-test',
1300
- RESEND_API_KEY: 're_test',
1301
- },
1302
- };
1303
- // The scope is a POSITIONAL argument, which is what makes this helper honest. While it was an
1304
- // optional field on `options`, an earlier version compiled cleanly through a conditional spread
1305
- // (a spread suppresses TypeScript's excess-property check) even though the builder's options type
1306
- // did not declare the field at all — the test exercised the runtime and hid the very type gap
1307
- // that kept the generator from passing it. A positional parameter has no such escape: this helper
1308
- // cannot call the builder without stating a scope, and neither can production code.
1309
- // The access declaration is a PARAMETER here for the same reason the scope is:
1310
- // a helper that hard-coded one would let a caller omit the distinction between
1311
- // "declared nothing" and "declared empty", which is the distinction that decides
1312
- // whether a minion receives database topology at all.
1313
- const buildMinionEnv = (scopedProviderRefs, accessDeclaration = { resourceAccess: {} }) => PlatformEnvVarsBuilder.buildApplicationMinionEnv(appBootstrapCredentials, 'wonder-todos-marketing-scrapper', credentialsWithProviders, addresses, createConfig({}), 'local', declaredProviderScope(scopedProviderRefs), accessDeclaration, {
1314
- deploymentLocationType: WildoLocationType.LOCAL,
1315
- appDatabaseName: 'wonder_todos',
1316
- });
1317
- /**
1318
- * R-COHERENCE (Step 5-egress): a minion that may not REACH a backing service
1319
- * must not receive that service's topology either.
1320
- *
1321
- * The failure these prevent is not a refusal — it is that `isConfigured()`
1322
- * reports true, a probe or a first use runs, and an unroutable host fails as a
1323
- * timeout, reading as "the service is down" for a runtime that was never
1324
- * supposed to have it.
1325
- */
1326
- it('a minion that DECLARED NO resourceAccess receives no database or storage topology', () => {
1327
- const env = buildMinionEnv(['openai'], {});
1328
- expect(env.MONGODB_HOST).toBeUndefined();
1329
- expect(env.POSTGRESQL_HOST).toBeUndefined();
1330
- expect(env.STORAGE_ENDPOINT).toBeUndefined();
1331
- });
1332
- it('…but STILL receives queue and cache topology, whose credentials are always minted', () => {
1333
- // Withholding these would strand a credential apps-manager issues to every
1334
- // minion — the same incoherence from the other direction.
1335
- const env = buildMinionEnv(['openai'], {});
1336
- expect(env.RABBITMQ_HOST).toBeDefined();
1337
- expect(env.REDIS_HOST).toBeDefined();
1338
- });
1339
- it('a minion that DECLARED resourceAccess receives database topology', () => {
1340
- // Declared-but-empty counts as declared. If this reddens while the pin above
1341
- // stays green, presence was replaced by truthiness.
1342
- const env = buildMinionEnv(['openai'], { resourceAccess: {} });
1343
- expect(env.MONGODB_HOST).toBeDefined();
1344
- });
1345
- it('the APPLICATION BACKEND is unaffected by the minion gate', () => {
1346
- // The builder the minion delegates to is the backend's own. This is the pin
1347
- // that reddens if the gate is applied inside it without a per-runtime input —
1348
- // narrowing the backend while believing only a minion was narrowed.
1349
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-backend', credentialsWithProviders, addresses, createConfig({}), 'local', declaredProviderScope(['openai']), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1350
- expect(env.MONGODB_HOST).toBeDefined();
1351
- expect(env.STORAGE_ENDPOINT).toBeDefined();
1352
- });
1353
- it('receives the DECLARED provider key', () => {
1354
- expect(buildMinionEnv(['openai']).OPENAI_API_KEY).toBe('sk-openai-test');
1355
- });
1356
- it('does NOT receive provider keys it did not declare', () => {
1357
- const env = buildMinionEnv(['openai']);
1358
- expect(env.STRIPE_SECRET_KEY).toBeUndefined();
1359
- expect(env.RESEND_API_KEY).toBeUndefined();
1360
- });
1361
- it('receives NO provider secrets when it declares none (fail-closed)', () => {
1362
- const env = buildMinionEnv([]);
1363
- expect(env.OPENAI_API_KEY).toBeUndefined();
1364
- expect(env.STRIPE_SECRET_KEY).toBeUndefined();
1365
- });
1366
- });
1367
- /**
1368
- * #360 — the confinement invariant's SECOND delivery path.
1369
- *
1370
- * The per-key fan-out was scoped; `OTEL_EXPORTER_OTLP_HEADERS` was composed from the raw
1371
- * `credentials.providerEnv`, so the token a runtime was correctly refused arrived on the next
1372
- * line, inside a header. One invariant, two paths, one of them open.
1373
- *
1374
- * Every assertion below is a PAIR — withheld on one side, delivered on the other — because a
1375
- * one-sided pin cannot distinguish "the confinement works" from "the header is broken for
1376
- * everyone". `betterstack` is the engine's only `otlpAuth` provider, so it is the only ref that
1377
- * can exercise this path at all.
1378
- */
1379
- describe('PlatformEnvVarsBuilder — a telemetry secret does not bypass the scope inside the OTLP header (#360)', () => {
1380
- const TELEMETRY_TOKEN = 'bs-secret-token';
1381
- const observabilityCredentials = {
1382
- ...credentials,
1383
- providerEnv: { BETTERSTACK_SOURCE_TOKEN: TELEMETRY_TOKEN },
1384
- };
1385
- const telemetryEnabledConfig = () => createConfig({ observability: { enabled: true, endpoint: 'https://in.betterstack.com' } });
1386
- const buildBackend = (scopedProviderRefs) => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', observabilityCredentials, addresses, telemetryEnabledConfig(), 'local', declaredProviderScope(scopedProviderRefs), { deploymentLocationType: WildoLocationType.LOCAL });
1387
- // The worker builds its env from scratch instead of delegating, so it is a SEPARATE call site
1388
- // for the same invariant — the shape that produced this defect's fourteen predecessors
1389
- // (`.claude/rules/invariant-call-site-enumeration.md`). Pinning only the backend would leave
1390
- // the worker free to regress on its own.
1391
- const buildWorker = (scopedProviderRefs) => PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'myRustWorker', 'wonder-todos-my-rust-worker', observabilityCredentials, telemetryEnabledConfig(), 'local', declaredProviderScope(scopedProviderRefs), {});
1392
- const buildMinion = (scopedProviderRefs) => PlatformEnvVarsBuilder.buildApplicationMinionEnv(appBootstrapCredentials, 'wonder-todos-marketing-scrapper', observabilityCredentials, addresses, telemetryEnabledConfig(), 'local', declaredProviderScope(scopedProviderRefs), { resourceAccess: {} }, { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1393
- describe.each([
1394
- ['backend', buildBackend],
1395
- ['worker', buildWorker],
1396
- ['minion', buildMinion],
1397
- ])('%s', (_label, build) => {
1398
- it('receives the telemetry token by NO path when its scope excludes the provider', () => {
1399
- const env = build([]);
1400
- // The path the confinement already covered…
1401
- expect(env.BETTERSTACK_SOURCE_TOKEN).toBeUndefined();
1402
- // …and the one it did not. Asserting absence of the HEADER is not enough on its own: the
1403
- // value is what leaked, so the token itself must appear nowhere in the emitted env.
1404
- expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBeUndefined();
1405
- expect(Object.values(env).some((value) => value.includes(TELEMETRY_TOKEN))).toBe(false);
1406
- });
1407
- it('still exports telemetry, unauthenticated, when the scope excludes the provider', () => {
1408
- // The decision's stated cost, pinned so it stays the cost. Withholding the header must not
1409
- // silently disable telemetry — that would turn a credential decision into an observability
1410
- // outage, and the runtime would go dark rather than export anonymously.
1411
- const env = build([]);
1412
- expect(env.OTEL_ENABLED).toBe('true');
1413
- expect(env.OTEL_EXPORTER_OTLP_ENDPOINT).toBe('https://in.betterstack.com');
1414
- });
1415
- it('receives the header when it DOES declare the telemetry provider', () => {
1416
- // Without this the pins above are satisfied by a builder that never emits a header at all.
1417
- const env = build(['betterstack']);
1418
- expect(env.OTEL_EXPORTER_OTLP_HEADERS).toBe(`Authorization=Bearer ${TELEMETRY_TOKEN}`);
1419
- expect(env.BETTERSTACK_SOURCE_TOKEN).toBe(TELEMETRY_TOKEN);
1420
- });
1421
- });
1422
- });
1423
- describe('assertNoPlatformCredentialInGeneratedEnv — the whole platform credential set, not just storage', () => {
1424
- // Storage was found by reading code, not by a check. The other backing services
1425
- // are absent from app env only because each mints per-application credentials —
1426
- // a property of how they happen to be wired, enforced nowhere. A future provider
1427
- // that skips minting (exactly what the MinIO module did) would reproduce the
1428
- // same exposure against a different service with nothing to catch it.
1429
- const cases = [
1430
- ['the MongoDB root password', credentials.mongodb.rootPassword],
1431
- ['the RabbitMQ admin password', credentials.rabbitmq.adminPassword],
1432
- ['the RabbitMQ Erlang cookie', credentials.rabbitmq.erlangCookie],
1433
- ['the object storage ROOT credential', TEST_STORAGE_SECRET_KEY],
1434
- ];
1435
- for (const [label, value] of cases) {
1436
- it(`refuses ${label} under an arbitrary key`, () => {
1437
- expect(() => assertNoPlatformCredentialInGeneratedEnv({ INNOCENT_LOOKING_KEY: value }, credentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
1438
- });
1439
- }
1440
- it('refuses a credential EMBEDDED inside a connection URL — raw or percent-encoded (containment, 5.3 review F6)', () => {
1441
- // A URL-embedded credential is exactly as leaked as a bare one. The exact-value comparison
1442
- // was blind to it — and `PG_CONNECT_URL` now legitimately carries the encoded admin password
1443
- // on the PLATFORM tier, so a future app-tier builder copying that URL is the live scenario.
1444
- const rawEmbedded = `postgresql://wildo_admin:${credentials.postgresql.adminPassword}@host:5432/db`;
1445
- expect(() => assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: rawEmbedded }, credentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
1446
- const specialCharCredentials = {
1447
- ...credentials,
1448
- postgresql: { adminUser: 'wildo_admin', adminPassword: 'p@ss:w#rd-long-generated-value' },
1449
- };
1450
- const encodedEmbedded = `postgresql://wildo_admin:${encodeURIComponent('p@ss:w#rd-long-generated-value')}@host:5432/db`;
1451
- expect(() => assertNoPlatformCredentialInGeneratedEnv({ SOME_URL: encodedEmbedded }, specialCharCredentials, 'testBuilder')).toThrow(/emitted platform-tier credentials/);
1452
- });
1453
- it('names every distinct credential it found, so one fix does not mask another', () => {
1454
- try {
1455
- assertNoPlatformCredentialInGeneratedEnv({ A_KEY: credentials.mongodb.rootPassword, B_KEY: TEST_STORAGE_SECRET_KEY }, credentials, 'testBuilder');
1456
- throw new Error('expected the guard to throw');
1457
- }
1458
- catch (error) {
1459
- const message = error.message;
1460
- expect(message).toContain('A_KEY');
1461
- expect(message).toContain('B_KEY');
1462
- // …and still never the values themselves.
1463
- expect(message).not.toContain(credentials.mongodb.rootPassword);
1464
- expect(message).not.toContain(TEST_STORAGE_SECRET_KEY);
1465
- }
1466
- });
1467
- it('does NOT fire on an IDENTIFIER — usernames collide with hostnames and provider ids', () => {
1468
- expect(() => assertNoPlatformCredentialInGeneratedEnv({ SOME_KEY: credentials.mongodb.rootUser, OTHER: TEST_STORAGE_ACCESS_KEY }, credentials, 'testBuilder')).not.toThrow();
1469
- });
1470
- it('passes a clean env, so the widened guard is not vacuously green', () => {
1471
- expect(() => assertNoPlatformCredentialInGeneratedEnv({ STORAGE_ENDPOINT: 'minio', MONGODB_HOST: 'mongodb' }, credentials, 'testBuilder')).not.toThrow();
1472
- });
1473
- });
1474
- /**
1475
- * The postgres credential-emission UNION rule (2026-08-11 regression pins).
1476
- *
1477
- * `shouldProvisionPostgreSQL` used to test ONLY `config.database.engine === POSTGRESQL`, while the
1478
- * compose generator rendered the postgres SERVICE from the wider `needsLocalPostgreSQL` rule
1479
- * (engine OR an author-declared SELF backing service). A MongoDB-platform app with
1480
- * `backingServices.postgresql: SELF` therefore got a compose service with a BLANK
1481
- * `POSTGRES_ADMIN_PASSWORD` — the container refuses to initialize and crash-loops, failing
1482
- * `wildo local dev` at infrastructure readiness. These pins hold the two gates to one rule.
1483
- */
1484
- describe('buildInfraCredentialEnv — postgres union rule', () => {
1485
- it('emits postgres admin credentials for a MongoDB-platform env whose author declared a SELF postgres backing service', () => {
1486
- const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, createConfig(), createEnvironment({
1487
- backingServices: {
1488
- [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },
1489
- },
1490
- }));
1491
- expect(env.POSTGRES_ADMIN_USER).toBe('postgres');
1492
- expect(env.POSTGRES_ADMIN_PASSWORD).toBe('postgres-password');
1493
- expect(env.POSTGRES_ADMIN_DATABASE).toBe('postgres');
1494
- });
1495
- it('emits no postgres credentials when neither the engine nor a SELF backing service asks for them', () => {
1496
- const env = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, createConfig(), createEnvironment());
1497
- expect(Object.keys(env).filter((key) => key.startsWith('POSTGRES'))).toEqual([]);
1498
- });
1499
- it('fails LOUDLY, naming the remedy, when postgres is included but secrets carry no postgresql credentials', () => {
1500
- const { postgresql: _omitted, ...withoutPostgres } = credentials;
1501
- expect(() => PlatformEnvVarsBuilder.buildInfraCredentialEnv(withoutPostgres, createConfig(), createEnvironment({
1502
- backingServices: {
1503
- [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF, host: 'localhost', port: 5432 },
1504
- },
1505
- }))).toThrow(/wildo -y setup/);
1506
- });
1507
- });
1508
- describe("emitPlatformPostgresEnv — the platform's OWN PostgreSQL (Phase 5.3, D7)", () => {
1509
- it('a Mongo-engined platform emits NEITHER key — existing .env material stays byte-identical', () => {
1510
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment());
1511
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();
1512
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();
1513
- });
1514
- /**
1515
- * The transition-legal environment shape: platform engine POSTGRESQL + an AUTHORED mongodb
1516
- * backing service (the 5.1 union's second half). A PG-engined platform without it is REFUSED
1517
- * at generation time — see the dedicated pin below.
1518
- */
1519
- const postgresEngineEnvironment = () => createEnvironment({
1520
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1521
- backingServices: {
1522
- [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
1523
- },
1524
- });
1525
- it('a self-hosted PostgreSQL-engined platform gets the initdb-database URL + the adapter selection', () => {
1526
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
1527
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1528
- }), postgresEngineEnvironment());
1529
- // The URL targets the PLATFORM's OWN database — never `infrastructure.postgresql.database`,
1530
- // which names the APPLICATION's database (see the distinctness pin below).
1531
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable');
1532
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');
1533
- });
1534
- it('the platform database is DISTINCT from the application database — the collision that would have shared tables', () => {
1535
- /**
1536
- * `infrastructure.postgresql.database` is mirrored from the author's
1537
- * `backingServices.postgresql.database` — the APPLICATION's database, and also the compose
1538
- * container's initdb database (for Wonder Todos local, literally `wonder-todos-db`). Pointing
1539
- * the platform there put its ~94 tables — `users`, `organizations`, `applications` among them
1540
- * — inside the application's database; and since every generated statement is
1541
- * `create table if not exists`, an application provisioning its own schema afterwards would
1542
- * SILENTLY ADOPT the platform's tables rather than fail. Two tenancy planes, one table set,
1543
- * no diagnostic. This pin fixes the separation as a property, not a convention.
1544
- */
1545
- const applicationDatabase = 'wonder-todos-db';
1546
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
1547
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1548
- infrastructure: {
1549
- storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },
1550
- postgresql: { database: applicationDatabase, sslMode: 'disable' },
1551
- },
1552
- }), postgresEngineEnvironment());
1553
- const platformUrl = env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL];
1554
- expect(platformUrl).not.toContain(applicationDatabase);
1555
- expect(platformUrl?.endsWith('/wildo_platform?sslmode=disable')).toBe(true);
1556
- /**
1557
- * …and the ADMIN key is the third name again — the MAINTENANCE database.
1558
- *
1559
- * This assertion previously read `toBe(applicationDatabase)`, explained by a comment claiming
1560
- * the key carried "the container's initdb database". It does not, and never did: initdb is fed
1561
- * by `POSTGRES_ADMIN_DATABASE` on a different transport (see the sibling pin below). What
1562
- * `PG_ADMIN_DATABASE` actually addresses is where the admin pool CONNECTS to run
1563
- * `CREATE DATABASE` — so pointing it at a database that pool is meant to CREATE made admin
1564
- * init fail on every machine where it did not exist yet, disabling PostgreSQL provisioning for
1565
- * the whole process behind a 200 `/health/ready`.
1566
- */
1567
- expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe(PLATFORM_POSTGRES_MAINTENANCE_DATABASE);
1568
- expect(env[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).not.toBe(applicationDatabase);
1569
- });
1570
- /**
1571
- * The three names are pinned TOGETHER because the defect was never visible in any one of them —
1572
- * each value is individually plausible, and only their relationship is wrong. A regression that
1573
- * re-derives any of the three from another reddens here.
1574
- */
1575
- it('the three PostgreSQL database names stay mutually distinct — admin ≠ application ≠ platform', () => {
1576
- const applicationDatabase = 'wonder-todos-db';
1577
- const config = createConfig({
1578
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1579
- infrastructure: {
1580
- storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },
1581
- postgresql: { database: applicationDatabase, sslMode: 'disable' },
1582
- },
1583
- });
1584
- const environment = postgresEngineEnvironment();
1585
- const appsManagerEnv = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, config, environment);
1586
- const infraEnv = PlatformEnvVarsBuilder.buildInfraCredentialEnv(credentials, config, environment);
1587
- // 1. Where the admin pool CONNECTS to provision — a database it never provisions itself.
1588
- expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE]).toBe('postgres');
1589
- // 2. The container's initdb database — a DIFFERENT key, and the one that genuinely follows the author.
1590
- expect(infraEnv.POSTGRES_ADMIN_DATABASE).toBe(applicationDatabase);
1591
- // 3. Where the platform's own tables live.
1592
- expect(appsManagerEnv[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toContain('/wildo_platform?');
1593
- expect(new Set([
1594
- appsManagerEnv[PlatformInfrastructureEnvKeys.PG_ADMIN_DATABASE],
1595
- infraEnv.POSTGRES_ADMIN_DATABASE,
1596
- PLATFORM_POSTGRES_DATABASE,
1597
- ]).size).toBe(3);
1598
- });
1599
- it('URL-encodes admin credentials — an @/:/# in the password must not corrupt the authority section', () => {
1600
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv({
1601
- ...credentials,
1602
- postgresql: { adminUser: 'wildo admin', adminPassword: 'p@ss:w#rd' },
1603
- }, addresses, createConfig({
1604
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1605
- }), postgresEngineEnvironment());
1606
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://wildo%20admin:p%40ss%3Aw%23rd@postgresql:5432/wildo_platform?sslmode=disable');
1607
- });
1608
- it('an EXOTIC authored database name cannot leak into the platform URL — nor corrupt it', () => {
1609
- /**
1610
- * This pin used to assert that the AUTHORED name was percent-encoded into the platform URL.
1611
- * That premise is gone: the platform now always targets its own `wildo_platform` database
1612
- * (the collision fix), so an authored name — however hostile — must not appear at all. The
1613
- * adversarial input is kept because it proves BOTH halves at once: no leak, and no truncation
1614
- * of the URL by a `?` that would otherwise start a query string. The builder still encodes its
1615
- * path segment defensively, which is what keeps that true if the name ever becomes derived.
1616
- */
1617
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
1618
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1619
- infrastructure: {
1620
- storage: { provider: 'minio', useSsl: false, bucket: 'bucket' },
1621
- postgresql: { database: 'my db?x', sslMode: 'disable' },
1622
- },
1623
- }), postgresEngineEnvironment());
1624
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://postgres:postgres-password@postgresql:5432/wildo_platform?sslmode=disable');
1625
- });
1626
- it('an app-authored `backingServices.postgresql: SELF` on a Mongo platform does NOT emit — the gate is the platform ENGINE, not the provisioning union', () => {
1627
- /**
1628
- * The union predicate (`shouldProvisionPostgreSQL`) correctly renders the container and its
1629
- * admin credentials for an APPLICATION's PostgreSQL resources. Handing the PLATFORM a connect
1630
- * URL — let alone flipping its default adapter — off that same signal would point the control
1631
- * plane at a database that belongs to an application. The two halves must stay apart.
1632
- */
1633
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig(), createEnvironment({
1634
- backingServices: {
1635
- [BackingServiceKind.POSTGRESQL]: { source: BackingServiceSource.SELF },
1636
- },
1637
- }));
1638
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBeUndefined();
1639
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();
1640
- // …while the provisioning half still does its job for the application's container.
1641
- expect(env[PlatformInfrastructureEnvKeys.PG_HOST]).toBe('postgresql');
1642
- });
1643
- it('a MANAGED PostgreSQL platform passes the external connectionUrl through verbatim (the Atlas mirror)', () => {
1644
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
1645
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },
1646
- externalEndpoints: {
1647
- postgresql: { connectionUrl: 'postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require' },
1648
- },
1649
- }), createEnvironment({
1650
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },
1651
- backingServices: {
1652
- [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
1653
- },
1654
- }));
1655
- expect(env[PlatformInfrastructureEnvKeys.PG_CONNECT_URL]).toBe('postgresql://neon-user:neon-pass@ep.neon.tech/wildo_platform?sslmode=require');
1656
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');
1657
- });
1658
- it('REFUSES a MANAGED PostgreSQL platform with no externalEndpoints.postgresql — at generation, naming the remedy', () => {
1659
- // Without this, the emitter wrote PG_CONNECT_URL= (empty) and the failure surfaced as an
1660
- // opaque "Invalid URL" inside boot-time env validation, three layers from the cause — and the
1661
- // slot has no wizard authoring path, so EVERY managed-PG env would hit it.
1662
- expect(() => PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
1663
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED, provider: 'neon' },
1664
- }), createEnvironment({
1665
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.MANAGED },
1666
- backingServices: {
1667
- [BackingServiceKind.MONGODB]: { source: BackingServiceSource.SELF },
1668
- },
1669
- }))).toThrow(/externalEndpoints\.postgresql/);
1670
- });
1671
- it('ACCEPTS a PostgreSQL-engined platform whose environment renders NO mongod', () => {
1672
- /**
1673
- * The inverse of what this asserted until 2026-08-28, when the requirement retired along with
1674
- * its schema-side twin in `define-infra-env-config.ts`.
1675
- *
1676
- * The refusal was written for a real trap — a `MONGO_CONNECT_URL` pointing at a container no
1677
- * transport renders — but the trap was downstream of `MONGO_CONNECT_URL` being an
1678
- * unconditionally REQUIRED key on the apps-manager env schema. It is now optional and
1679
- * empty-means-absent, exactly like `PG_CONNECT_URL`, so an unrendered mongod produces an ABSENT
1680
- * key rather than a dangling address. The generator emits an empty string here and always did;
1681
- * what changed is that the consumer now reads that as "not MongoDB-engined".
1682
- *
1683
- * The invariant that survives — a platform must render AT LEAST ONE store — lives on the env
1684
- * schema, beside the keys it is about, where a hand-edited env file is also subject to it.
1685
- */
1686
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(credentials, addresses, createConfig({
1687
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1688
- }), createEnvironment({
1689
- database: { engine: DatabaseEngine.POSTGRESQL, source: BackingServiceSource.SELF },
1690
- }));
1691
- // Emitted EMPTY, not omitted — the compose interpolation contract, and what the schema's
1692
- // `z.preprocess` reads as absent.
1693
- expect(env.MONGO_CONNECT_URL).toBe('');
1694
- expect(env.PG_CONNECT_URL).toBeTruthy();
1695
- });
1696
- });
1697
- /**
1698
- * Systems of record (#1055 §2, D2, R7) — the backend gets the instance's address and credential, and
1699
- * nothing else does.
1700
- *
1701
- * The variable names are DERIVED from the instance name rather than authored anywhere, so what these
1702
- * pin is a chain: the environment's authored address, the operator's secret, and the runtime that may
1703
- * hold either. The exclusion half is asserted rather than assumed because "nothing" is NOT what a
1704
- * minion or a worker gets by default — both receive provider keys today, and this section escapes
1705
- * `filterProviderEnvToScope` entirely, a system of record deliberately not being a provider.
1706
- */
1707
- describe('system-of-record delivery', () => {
1708
- const declaredOdoo = {
1709
- systemsOfRecord: {
1710
- odoo: {
1711
- address: {
1712
- baseUrl: 'https://acme.odoo.com',
1713
- database: 'acme',
1714
- login: 'bot@acme.com',
1715
- },
1716
- },
1717
- },
1718
- };
1719
- const credentialsWithInstanceSecret = {
1720
- ...credentials,
1721
- systemsOfRecordEnv: { WILDO_SOR_ODOO__API_KEY: 'odoo-api-key' },
1722
- };
1723
- const buildBackendEnv = (config, secrets = credentialsWithInstanceSecret) => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', secrets, addresses, createConfig(config), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1724
- it('carries every authored address slot to the backend, under its derived name', () => {
1725
- const env = buildBackendEnv(declaredOdoo);
1726
- expect(env.WILDO_SOR_ODOO__BASE_URL).toBe('https://acme.odoo.com');
1727
- expect(env.WILDO_SOR_ODOO__DATABASE).toBe('acme');
1728
- expect(env.WILDO_SOR_ODOO__LOGIN).toBe('bot@acme.com');
1729
- });
1730
- it('carries the instance credential, which secrets.json already keys by the derived name', () => {
1731
- expect(buildBackendEnv(declaredOdoo).WILDO_SOR_ODOO__API_KEY).toBe('odoo-api-key');
1732
- });
1733
- /*
1734
- * E3 — an environment with no ERP declares it, and that declaration must REACH the backend, because
1735
- * its presence is what separates "no access here" (boot, refuse reads with a code) from "somebody
1736
- * forgot" (refuse at boot). Silence cannot mean either.
1737
- */
1738
- it('emits the ENABLED marker for an instance this environment declares absent', () => {
1739
- const env = buildBackendEnv({
1740
- systemsOfRecord: { odoo: { enabled: false } },
1741
- });
1742
- expect(env.WILDO_SOR_ODOO__ENABLED).toBe('false');
1743
- expect(env.WILDO_SOR_ODOO__BASE_URL).toBeUndefined();
1744
- });
1745
- it('drops a credential naming an instance this environment does not declare', () => {
1746
- const env = buildBackendEnv(declaredOdoo, {
1747
- ...credentials,
1748
- systemsOfRecordEnv: { 'WILDO_SOR_SAP__API_KEY': 'stale-key', 'WILDO_SOR_ODOO__API_KEY': 'live' },
1749
- });
1750
- expect(env.WILDO_SOR_SAP__API_KEY).toBeUndefined();
1751
- // The positive control: without it this would pass on a builder that delivers nothing at all.
1752
- expect(env.WILDO_SOR_ODOO__API_KEY).toBe('live');
1753
- });
1754
- it('gives a MINION none of it, even though it delegates to the builder that emits it', () => {
1755
- const env = PlatformEnvVarsBuilder.buildApplicationMinionEnv(appBootstrapCredentials, 'wonder-todos-marketing-scrapper', credentialsWithInstanceSecret, addresses, createConfig(declaredOdoo), 'local', declaredProviderScope([]), { resourceAccess: {} }, { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1756
- expect(Object.keys(env).filter((key) => key.startsWith('WILDO_SOR_'))).toEqual([]);
1757
- // Positive control: the same delegation still produces a working minion env, so the assertion
1758
- // above is about the system-of-record keys rather than about an empty result.
1759
- expect(env.APPLICATION_ID).toBeTruthy();
1760
- });
1761
- it('gives a WORKER none of it', () => {
1762
- const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'myRustWorker', 'wonder-todos-my-rust-worker', credentialsWithInstanceSecret, createConfig(declaredOdoo), 'local', declaredProviderScope([]), {});
1763
- expect(Object.keys(env).filter((key) => key.startsWith('WILDO_SOR_'))).toEqual([]);
1764
- expect(env.APPLICATION_ID).toBeTruthy();
1765
- });
1766
- });
1767
- /**
1768
- * Inbound endpoint secrets (#1596) — the backend mounts `/webhooks/app/{endpointKey}` and gets the secret
1769
- * under the name it reads (`WILDO_INBOUND_<ENDPOINT_KEY>__SECRET`); no minion or worker gets it.
1770
- */
1771
- describe('inbound endpoint secret delivery', () => {
1772
- const withInboundSecret = {
1773
- ...credentials,
1774
- inboundEndpointEnv: { WILDO_INBOUND_TODO_INTAKE__SECRET: 'whsec_dGVzdA==', TODO_INTAKE_SECRET: 'misnamed' },
1775
- };
1776
- it('delivers a well-named secret to the backend and drops a key that is not one (mutation: skip the loop → red)', () => {
1777
- const env = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', withInboundSecret, addresses, createConfig({}), 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1778
- expect(env.WILDO_INBOUND_TODO_INTAKE__SECRET).toBe('whsec_dGVzdA==');
1779
- expect(env.TODO_INTAKE_SECRET).toBeUndefined();
1780
- });
1781
- it('gives a MINION none of it, though it delegates to the builder that emits it (mutation: drop the strip → red)', () => {
1782
- const env = PlatformEnvVarsBuilder.buildApplicationMinionEnv(appBootstrapCredentials, 'wonder-todos-marketing-scrapper', withInboundSecret, addresses, createConfig({}), 'local', declaredProviderScope([]), { resourceAccess: {} }, { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1783
- expect(Object.keys(env).filter((key) => key.startsWith('WILDO_INBOUND_'))).toEqual([]);
1784
- expect(env.APPLICATION_ID).toBeTruthy();
1785
- });
1786
- it('gives a WORKER none of it', () => {
1787
- const env = PlatformEnvVarsBuilder.buildApplicationWorkerEnv(appBootstrapCredentials, 'myRustWorker', 'wonder-todos-my-rust-worker', withInboundSecret, createConfig({}), 'local', declaredProviderScope([]), {});
1788
- expect(Object.keys(env).filter((key) => key.startsWith('WILDO_INBOUND_'))).toEqual([]);
1789
- expect(env.APPLICATION_ID).toBeTruthy();
1790
- });
1791
- });
1792
- describe('PlatformEnvVarsBuilder — the application store selection (#1571)', () => {
1793
- const backendEnv = (config, resolved = addresses) => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, resolved, config, 'local', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1794
- it('selects PostgreSQL when the environment authors no applicationDatabase', () => {
1795
- const env = backendEnv(createConfig({ applicationDatabase: undefined }));
1796
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('postgresql');
1797
- });
1798
- it('writes MongoDB explicitly when it is declared, so the backend never falls through to the env default', () => {
1799
- const env = backendEnv(createConfig({ applicationDatabase: { engine: DatabaseEngine.MONGODB } }));
1800
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBe('mongodb');
1801
- });
1802
- it('refuses a silent application whose environment resolves no PostgreSQL address', () => {
1803
- const withoutPostgres = { ...addresses, infra: { ...addresses.infra, postgresql: undefined } };
1804
- expect(() => backendEnv(createConfig({ applicationDatabase: undefined }), withoutPostgres)).toThrow(/selected because applicationDatabase is absent/);
1805
- });
1806
- it('gives a runtime that may not reach a database NO selection, rather than refusing it', () => {
1807
- // A minion with no resourceAccess has no database. Before the selection was gated on reachability,
1808
- // a PostgreSQL application made this throw, because the address was withheld from a runtime that
1809
- // was never meant to have one.
1810
- const env = PlatformEnvVarsBuilder.buildApplicationMinionEnv(appBootstrapCredentials, 'wonder-todos-marketing-scrapper', credentials, addresses, createConfig({ applicationDatabase: undefined }), 'local', declaredProviderScope([]), {}, // declared NO resourceAccess — the same shape the F-F pins use for "no database"
1811
- { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1812
- expect(env[ApplicationBackendDataEnvKeys.DATABASE_DEFAULT_ADAPTER]).toBeUndefined();
1813
- expect(env[ApplicationBackendDataEnvKeys.POSTGRESQL_HOST]).toBeUndefined();
1814
- });
1815
- });
1816
- /**
1817
- * #1696 — the self-hosted immudb server's sysadmin reaches apps-manager ONLY, and only where the environment runs one.
1818
- *
1819
- * apps-manager uses it to give each application its own database and `READ_WRITE` user; before #1696 the server's admin
1820
- * password was the owning application's `providerEnv.IMMUDB_PASSWORD`, i.e. an application credential.
1821
- */
1822
- describe('PlatformEnvVarsBuilder — the immudb sysadmin is apps-manager\'s alone (#1696)', () => {
1823
- const IMMUDB_ADMIN_PASSWORD = 'immudb-sysadmin-generated-7c2dAa1-';
1824
- const withImmudbAdmin = {
1825
- ...credentials,
1826
- immudb: { stateSigningPrivateKey: 'sk', stateSigningPublicKey: 'pk', adminPassword: IMMUDB_ADMIN_PASSWORD },
1827
- };
1828
- const selfHosted = createEnvironment({
1829
- backingServices: { [BackingServiceKind.IMMUDB]: { source: BackingServiceSource.SELF } },
1830
- });
1831
- it('gives apps-manager the server address and the sysadmin password when the environment self-hosts immudb', () => {
1832
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(withImmudbAdmin, addresses, createConfig(), selfHosted);
1833
- expect(env[PlatformInfrastructureEnvKeys.IMMUDB_ADMIN_HOST]).toBe('immudb');
1834
- expect(env[PlatformInfrastructureEnvKeys.IMMUDB_ADMIN_PORT]).toBe('3322');
1835
- expect(env[PlatformInfrastructureEnvKeys.IMMUDB_ADMIN_PASSWORD]).toBe(IMMUDB_ADMIN_PASSWORD);
1836
- });
1837
- it('emits nothing when the environment runs no immudb, or holds no admin material', () => {
1838
- const managed = createEnvironment({
1839
- backingServices: { [BackingServiceKind.IMMUDB]: { source: BackingServiceSource.MANAGED } },
1840
- });
1841
- for (const [secrets, environment] of [
1842
- [withImmudbAdmin, createEnvironment()],
1843
- [withImmudbAdmin, managed],
1844
- [credentials, selfHosted],
1845
- ]) {
1846
- const env = PlatformEnvVarsBuilder.buildAppsManagerFullEnv(secrets, addresses, createConfig(), environment);
1847
- expect(env[PlatformInfrastructureEnvKeys.IMMUDB_ADMIN_HOST]).toBeUndefined();
1848
- expect(env[PlatformInfrastructureEnvKeys.IMMUDB_ADMIN_PASSWORD]).toBeUndefined();
1849
- }
1850
- });
1851
- it('never reaches an application backend, and is refused if any application-tier builder ever emits it', () => {
1852
- const backend = PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', withImmudbAdmin, addresses, createConfig({ backingServices: { [BackingServiceKind.IMMUDB]: { source: BackingServiceSource.SELF } } }), 'local', declaredProviderScope(['immudb']), { deploymentLocationType: WildoLocationType.LOCAL, appDatabaseName: 'wonder_todos' });
1853
- expect(Object.values(backend).some((value) => value.includes(IMMUDB_ADMIN_PASSWORD))).toBe(false);
1854
- expect(() => assertNoPlatformCredentialInGeneratedEnv({ IMMUDB_PASSWORD: IMMUDB_ADMIN_PASSWORD }, withImmudbAdmin, 'testBuilder'))
1855
- .toThrow(/the immudb server administrator password under: IMMUDB_PASSWORD/);
1856
- });
1857
- });
1858
- /**
1859
- * #2000 — an application backend pointed at an Atlas cluster with no SRV address. Its authored
1860
- * `externalEndpoints.mongodb.connectionUrl` is then the cluster's `mongoURIWithOptions`: a comma-separated seed list
1861
- * carrying `ssl=true` and `replicaSet`. `new URL(...)` threw on it, so no env could be generated, and the env contract
1862
- * had no key to carry the TLS or the replica set even for a string that did parse.
1863
- */
1864
- describe('PlatformEnvVarsBuilder — an external MongoDB seed list reaches the backend whole (#2000)', () => {
1865
- const ATLAS_SEED_LIST = 'mongodb://c0-shard-00-00.fx.mongodb.net:27017,c0-shard-00-01.fx.mongodb.net:27017/'
1866
- + '?ssl=true&authSource=admin&replicaSet=atlas-fx-shard-0';
1867
- const managedAddresses = { ...addresses, infra: { ...addresses.infra, mongodb: null } };
1868
- const build = (connectionUrl) => PlatformEnvVarsBuilder.buildApplicationBackendEnv(appBootstrapCredentials, 'wonder-todos-api', credentials, managedAddresses, createConfig({
1869
- database: { engine: DatabaseEngine.MONGODB, source: BackingServiceSource.MANAGED, provider: 'atlas' },
1870
- externalEndpoints: { mongodb: { connectionUrl } },
1871
- }), 'preview-eu', declaredProviderScope([]), { deploymentLocationType: WildoLocationType.REMOTE, appDatabaseName: 'wonder_todos' });
1872
- it('writes the whole host list, TLS and the replica set for a seed list', () => {
1873
- const env = build(ATLAS_SEED_LIST);
1874
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_HOST]).toBe('c0-shard-00-00.fx.mongodb.net:27017,c0-shard-00-01.fx.mongodb.net:27017');
1875
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_PROTOCOL]).toBe('mongodb');
1876
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_DATABASE]).toBe('wonder_todos');
1877
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_TLS]).toBe('true');
1878
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_REPLICA_SET]).toBe('atlas-fx-shard-0');
1879
- });
1880
- it('leaves an SRV address as it was: its host and protocol, and no TLS or replica-set key it does not state', () => {
1881
- const env = build('mongodb+srv://user:s3cr3t-atlas-pw@cluster0.fx.mongodb.net/app_db?retryWrites=true');
1882
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_HOST]).toBe('cluster0.fx.mongodb.net');
1883
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_PROTOCOL]).toBe('mongodb+srv');
1884
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_TLS]).toBeUndefined();
1885
- expect(env[ApplicationBackendDataEnvKeys.MONGODB_REPLICA_SET]).toBeUndefined();
1886
- // The URL's credentials never reach the env: the backend reads them from its secrets.
1887
- expect(Object.values(env).some((value) => value.includes('s3cr3t-atlas-pw'))).toBe(false);
1888
- });
1889
- it('refuses, naming the field, a connection URL that names no MongoDB host', () => {
1890
- expect(() => build('postgresql://u:p@pg/db')).toThrow(/externalEndpoints\.mongodb\.connectionUrl/);
1891
- });
1892
- it('refuses a TLS value that is neither true nor false, rather than writing MONGODB_TLS=false (#2000 review)', () => {
1893
- expect(() => build(ATLAS_SEED_LIST.replace('ssl=true', 'ssl=yes'))).toThrow(/externalEndpoints\.mongodb\.connectionUrl/);
1894
- });
1895
- });
1896
- //# sourceMappingURL=env-vars-builder.service.test.js.map