@wildo-ai/wildo-cli 1.1.13 → 1.1.15

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 (589) hide show
  1. package/dist/src/commands/build/approve.command.d.ts +4 -0
  2. package/dist/src/commands/build/approve.command.d.ts.map +1 -1
  3. package/dist/src/commands/build/approve.command.js +14 -3
  4. package/dist/src/commands/build/approve.command.js.map +1 -1
  5. package/dist/src/commands/build/close.command.d.ts +4 -0
  6. package/dist/src/commands/build/close.command.d.ts.map +1 -1
  7. package/dist/src/commands/build/close.command.js +17 -3
  8. package/dist/src/commands/build/close.command.js.map +1 -1
  9. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  10. package/dist/src/commands/config/sync.command.js +21 -1
  11. package/dist/src/commands/config/sync.command.js.map +1 -1
  12. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  13. package/dist/src/commands/creation/feed.command.js +6 -3
  14. package/dist/src/commands/creation/feed.command.js.map +1 -1
  15. package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
  16. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  17. package/dist/src/commands/fwk/publish-all.command.js +57 -3
  18. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  19. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  20. package/dist/src/commands/fwk/publish-docker.command.js +16 -1
  21. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  22. package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
  23. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  24. package/dist/src/commands/fwk/registry-host.command.js +78 -3
  25. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  26. package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
  27. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  28. package/dist/src/commands/generate/email-command.utils.js +5 -0
  29. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  30. package/dist/src/commands/init.command.d.ts +14 -0
  31. package/dist/src/commands/init.command.d.ts.map +1 -1
  32. package/dist/src/commands/init.command.js +36 -5
  33. package/dist/src/commands/init.command.js.map +1 -1
  34. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  35. package/dist/src/commands/local/deregister.command.js +4 -0
  36. package/dist/src/commands/local/deregister.command.js.map +1 -1
  37. package/dist/src/commands/local/dev.command.d.ts +6 -0
  38. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  39. package/dist/src/commands/local/dev.command.js +72 -0
  40. package/dist/src/commands/local/dev.command.js.map +1 -1
  41. package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
  42. package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
  43. package/dist/src/commands/local/jobs-command.utils.js +44 -0
  44. package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
  45. package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
  46. package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
  47. package/dist/src/commands/local/jobs-run.command.js +92 -0
  48. package/dist/src/commands/local/jobs-run.command.js.map +1 -0
  49. package/dist/src/commands/local/jobs.command.d.ts +7 -0
  50. package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
  51. package/dist/src/commands/local/jobs.command.js +59 -0
  52. package/dist/src/commands/local/jobs.command.js.map +1 -0
  53. package/dist/src/commands/local/tunnel.command.d.ts +84 -0
  54. package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
  55. package/dist/src/commands/local/tunnel.command.js +274 -0
  56. package/dist/src/commands/local/tunnel.command.js.map +1 -0
  57. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  58. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  59. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  60. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  61. package/dist/src/commands/registry/update.command.js +1 -0
  62. package/dist/src/commands/registry/update.command.js.map +1 -1
  63. package/dist/src/commands/seal/verify.command.d.ts +18 -0
  64. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  65. package/dist/src/commands/seal/verify.command.js +62 -1
  66. package/dist/src/commands/seal/verify.command.js.map +1 -1
  67. package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
  68. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  69. package/dist/src/services/application/app-bootstrap.service.js +49 -3
  70. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  71. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  72. package/dist/src/services/application/app-runtime-targets.service.js +9 -1
  73. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  74. package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
  75. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  76. package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
  77. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  78. package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
  79. package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
  80. package/dist/src/services/application/local-tunnel.service.js +294 -0
  81. package/dist/src/services/application/local-tunnel.service.js.map +1 -0
  82. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  83. package/dist/src/services/application/provider-runtime-sync.service.js +29 -1
  84. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  85. package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
  86. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  87. package/dist/src/services/application/saas-skeleton.service.js +26 -2
  88. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  89. package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
  90. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  91. package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
  92. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  93. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  94. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  95. package/dist/src/services/companion/build-console.service.js +54 -4
  96. package/dist/src/services/companion/build-console.service.js.map +1 -1
  97. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  98. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  99. package/dist/src/services/companion/creation-console.service.js +14 -2
  100. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  101. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  102. package/dist/src/services/companion/creation-drive.service.js +5 -2
  103. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  104. package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
  105. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  106. package/dist/src/services/credentials/application-secrets.service.js +1 -1
  107. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  108. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  109. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  110. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  111. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  112. package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
  113. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  114. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  115. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  116. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  117. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  118. package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
  119. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  120. package/dist/src/services/credentials/secrets-writer.service.js +12 -3
  121. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  122. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  123. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  124. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  125. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  126. package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
  127. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  128. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
  129. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  130. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -14
  131. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  132. package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
  133. package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
  134. package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
  135. package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
  136. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  137. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  138. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  139. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
  140. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  141. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +20 -8
  142. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  143. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
  144. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  145. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  146. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  147. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
  148. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  149. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
  150. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
  151. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
  152. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
  153. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
  154. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
  155. package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
  156. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
  157. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
  158. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
  159. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
  160. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  161. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  162. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  163. package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
  164. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  165. package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
  166. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  167. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
  168. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
  169. package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
  170. package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
  171. package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
  172. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  173. package/dist/src/services/environment/env-configuration-generator.service.js +45 -8
  174. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  175. package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
  176. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  177. package/dist/src/services/environment/env-vars-builder.service.js +47 -32
  178. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  179. package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
  180. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  181. package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
  182. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  183. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  184. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  185. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  186. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  187. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  188. package/dist/src/services/environment/environment-setup.service.js +17 -6
  189. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  190. package/dist/src/services/environment/environment.service.d.ts +4 -3
  191. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  192. package/dist/src/services/environment/environment.service.js +0 -1
  193. package/dist/src/services/environment/environment.service.js.map +1 -1
  194. package/dist/src/services/framework/framework-docker-publish.service.d.ts +129 -0
  195. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  196. package/dist/src/services/framework/framework-docker-publish.service.js +271 -19
  197. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  198. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  199. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  200. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  201. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  202. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  203. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  204. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  205. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  206. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  207. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  208. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  209. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  210. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  211. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  212. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  213. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  214. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  215. package/dist/src/services/registry/module-install.service.js +1 -0
  216. package/dist/src/services/registry/module-install.service.js.map +1 -1
  217. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  218. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  219. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  220. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  221. package/dist/src/services/security/csp-sync.service.js +21 -2
  222. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  223. package/dist/tsconfig.build.tsbuildinfo +1 -1
  224. package/framework-root-package.json +3 -3
  225. package/package.json +23 -23
  226. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
  227. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +31 -9
  228. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
  229. package/templates/infra/registry-host/docker-compose.yml +9 -2
  230. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  231. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  232. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  233. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  234. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  235. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  236. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  237. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  238. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  239. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  240. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  241. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  242. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  243. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  244. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  245. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  246. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  247. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  248. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  249. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  250. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  251. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  252. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  253. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  254. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  255. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  256. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  257. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  258. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  259. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  260. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  261. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  262. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  263. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  264. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  265. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  266. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  267. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  268. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  269. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  270. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  271. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  272. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  273. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  274. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  275. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  276. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  277. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  278. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  279. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  280. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  281. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  282. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  283. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  284. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  285. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  286. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  287. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  288. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  289. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  290. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  291. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  292. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  293. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  294. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  295. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  296. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  297. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  298. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  299. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  300. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  301. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  302. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  303. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  304. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  305. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  306. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  307. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  308. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  309. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  310. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  311. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  312. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  313. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  314. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  315. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  316. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  317. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  318. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  319. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  320. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  321. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  322. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  323. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  324. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  325. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  326. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  327. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  328. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  329. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  330. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  331. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  332. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  333. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  334. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  335. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  336. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  337. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  338. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  339. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  340. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  341. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  342. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  343. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  344. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  345. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  346. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  347. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  348. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  349. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  350. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  351. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  352. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  353. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  354. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  355. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  356. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  357. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  358. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  359. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  360. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  361. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  362. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  363. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  364. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  365. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  366. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  367. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  368. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  369. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  370. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  371. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  372. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  373. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  374. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  375. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  376. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  377. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  378. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  379. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  380. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  381. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  382. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  383. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  384. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  385. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  386. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  387. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  388. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  389. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  390. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  391. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  392. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  393. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  394. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  395. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  396. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  397. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  398. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  399. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  400. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  401. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  402. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  403. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  404. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  405. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  406. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  407. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  408. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  409. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  410. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  411. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  412. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  413. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  414. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  415. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  416. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  417. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  418. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  419. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  420. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  421. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  422. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  423. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  424. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  425. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  426. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  427. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  428. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  429. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  430. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  431. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  432. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  433. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  434. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  435. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  436. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  437. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  438. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  439. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  440. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  441. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  442. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  443. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  444. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  445. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  446. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  447. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  448. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  449. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  450. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  451. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  452. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  453. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  454. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  455. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  456. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  457. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  458. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  459. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  460. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  461. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  462. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  463. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  464. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  465. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  466. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  467. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  468. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  469. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  470. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  471. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  472. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  473. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  474. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  475. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  476. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  477. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  478. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  479. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  480. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  481. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  482. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  483. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  484. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  485. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  486. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  487. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  488. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  489. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  490. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  491. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  492. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  493. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  494. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  495. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  496. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  497. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  498. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  499. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  500. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  501. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  502. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  503. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  504. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  505. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  506. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  507. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  508. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  509. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  510. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  511. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  512. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  513. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  514. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  515. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  516. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  517. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  518. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  519. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  520. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  521. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  522. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  523. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  524. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  525. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  526. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  527. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  528. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  529. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  530. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  531. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  532. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  533. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  534. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  535. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  536. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  537. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  538. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  539. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  540. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  541. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  542. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  543. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  544. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  545. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  546. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  547. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  548. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  549. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  550. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  551. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  552. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  553. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  554. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  555. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  556. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  557. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  558. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  559. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  560. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  561. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  562. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  563. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  564. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  565. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  566. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  567. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  568. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  569. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  570. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  571. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  572. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  573. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  574. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  575. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  576. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  577. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  578. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  579. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  580. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  581. package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
  582. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  583. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  584. package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
  585. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
  586. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  587. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  588. package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
  589. package/wildo-framework.info.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"authored-infra-config.utils.js","sourceRoot":"","sources":["../../../../src/services/environment/authored-infra-config.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,gCAAgC,EAChC,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,GAE1B,MAAM,+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,CAAC,MAAM;aAC9E;YACD,UAAU,EAAE;gBACV,QAAQ,EAAE,UAAU,EAAE,QAAQ,IAAI,yCAAyC,CAAC,QAAQ;gBACpF,OAAO,EAAE,yCAAyC,CAAC,QAAQ;aAC5D;SACF;QACD,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,GAAG,EAAE,MAAM,CAAC,GAAG;QACf,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;QACnD,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC3B,CAAC,CAAC;gBACE,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;gBACtC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,YAAY;gBAC5C,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ;aACrC;YACH,CAAC,CAAC,SAAS;QACb,cAAc,EAAE,MAAM,CAAC,cAAc;QACrC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;QAC7C,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;QACrD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;QAC/C,+BAA+B,EAAE,MAAM,CAAC,+BAA+B;KACxE,CAAC;AACJ,CAAC","sourcesContent":["/**\n * authored-infra-config.utils — shared helpers for reading the authored\n * `wildo.infra.<env>.config.ts` descriptor and projecting it into the\n * platform-level `PlatformEnvConfigJson` shape.\n *\n * Originally lived as private helpers inside `commands/config/sync.command.ts`.\n * Extracted so the new runtime-bootstrap surface (used by `wildo local up`\n * pre-flight) can reuse the exact same projection — single source of truth\n * keeps the runtime artifacts written by `local up` byte-identical to the\n * ones `wildo config sync --domain manifest` would produce later.\n */\n\nimport { existsSync, readdirSync } from 'fs';\n\nimport {\n BackingServiceSource,\n DatabaseEngine,\n resolveApplicationDatabaseEngine,\n loadInfraEnvConfig,\n resolveAppLayout,\n resolveInfraEnvConfigPath,\n type WildoInfraEnvConfig,\n} from '@wildo-ai/platform-config-lib';\nimport type { PlatformEnvConfigJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION,\n DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION,\n} from '~wildo-cli/services/data-services/data-services.schemas';\n\nexport interface LoadedAuthoredInfraEnvConfig {\n path: string;\n config: WildoInfraEnvConfig;\n}\n\n/** The shared path rule (`resolveInfraEnvConfigPath` in platform-config-lib), kept under the CLI's historical name. */\nexport function resolveAuthoredInfraConfigPath(saasRoot: string, envName: string): string {\n return resolveInfraEnvConfigPath(saasRoot, envName);\n}\n\n/**\n * The shared loader (`loadInfraEnvConfig` in platform-config-lib), kept under the CLI's historical name and argument\n * order so its importers and the test that mocks this module are unchanged. The dev companion reads the same file\n * through the shared loader.\n */\nexport async function loadAuthoredInfraEnvConfig(\n envName: string,\n saasRoot: string,\n): Promise<LoadedAuthoredInfraEnvConfig | null> {\n return loadInfraEnvConfig(saasRoot, envName);\n}\n\n/** One authored environment: the directory name it lives under, and its loaded config. */\nexport interface LoadedNamedAuthoredInfraEnvConfig extends LoadedAuthoredInfraEnvConfig {\n envName: string;\n}\n\n/** An environment directory whose authored config failed to load, and why. */\nexport interface UnreadableAuthoredInfraEnvConfig {\n readonly envName: string;\n readonly error: unknown;\n}\n\n/**\n * One environment directory as {@link settleAllAuthoredInfraEnvConfigs} found it: loaded, or failing to load. Told apart\n * with `'error' in`, which narrows whether or not the compiling package checks nulls strictly.\n */\nexport type SettledAuthoredInfraEnvConfig = LoadedNamedAuthoredInfraEnvConfig | UnreadableAuthoredInfraEnvConfig;\n\n/**\n * Every environment the application authors: each directory of its infrastructure home that carries an authored\n * `wildo.infra.<local|remote>.config.ts`, loaded through {@link loadAuthoredInfraEnvConfig}. A directory without one is\n * not an environment and is skipped. Empty when the application has no infrastructure home.\n *\n * The ONE enumeration of an application's environments: the lockfile projections and the `config sync` servability\n * preflight (`loadAuthoredInfraEnvSelections`, #1693) and the schema planner's default adapter (#2708) all judge this\n * same population, so no reader can count one environment another misses. The dev companion cannot import this module\n * and restates the same walk for the same question (`assessApplicationSchemaPlanObligation`, #2724: is a baseline owed?);\n * change one, change both.\n *\n * SETTLED rather than thrown, so a reader that can still answer with the environments that did load decides that for\n * itself: the schema planner refuses only when an unreadable environment could change its answer.\n * {@link loadAllAuthoredInfraEnvConfigs} is the throwing form.\n */\nexport async function settleAllAuthoredInfraEnvConfigs(saasRoot: string): Promise<SettledAuthoredInfraEnvConfig[]> {\n const infraDir = resolveAppLayout(saasRoot).authoredInfrastructureHome;\n if (!existsSync(infraDir)) return [];\n const settled: SettledAuthoredInfraEnvConfig[] = [];\n for (const entry of readdirSync(infraDir, { withFileTypes: true })) {\n if (!entry.isDirectory()) continue;\n try {\n const authored = await loadAuthoredInfraEnvConfig(entry.name, saasRoot);\n if (authored) settled.push({ envName: entry.name, ...authored });\n } catch (error) {\n settled.push({ envName: entry.name, error });\n }\n }\n return settled;\n}\n\n/** {@link settleAllAuthoredInfraEnvConfigs}, throwing the first environment that failed to load. */\nexport async function loadAllAuthoredInfraEnvConfigs(saasRoot: string): Promise<LoadedNamedAuthoredInfraEnvConfig[]> {\n const loaded: LoadedNamedAuthoredInfraEnvConfig[] = [];\n for (const environment of await settleAllAuthoredInfraEnvConfigs(saasRoot)) {\n if ('error' in environment) throw environment.error;\n loaded.push(environment);\n }\n return loaded;\n}\n\n/**\n * Reason string when the authored infra config cannot serve as a config.json\n * fallback (currently: Atlas-backed environments require generated config.json\n * because authored infra config does not include Atlas API metadata or\n * external Mongo connection endpoints).\n */\nexport function getUnsupportedAuthoredConfigFallbackReason(\n envName: string,\n authoredConfigPath: string,\n authoredConfig: WildoInfraEnvConfig,\n): string | null {\n // Slice 4.B.0 (2026-05-07): Atlas detection now uses (source=MANAGED,\n // provider='atlas') instead of the legacy `source: ATLAS` enum value.\n // Same operational meaning — operator authored a managed Mongo whose\n // brand is Atlas; the generated config.json carries the Atlas API\n // metadata + external endpoints that the authored infra descriptor\n // doesn't include.\n const mongo = authoredConfig.backingServices.mongodb;\n if (mongo?.source === BackingServiceSource.MANAGED && mongo.provider === 'atlas') {\n return (\n `Cannot regenerate config for '${envName}' from authored infra descriptor at ${authoredConfigPath}: `\n + 'Atlas-backed environments require generated config.json because authored infra config '\n + 'does not include Atlas API metadata or external Mongo connection endpoints.'\n );\n }\n\n return null;\n}\n\n/**\n * Resolve the platform's database engine for an authored environment.\n *\n * **Precedence: an authored `database` block WINS; the inference below is the fallback.**\n *\n * The inference exists because the engine was historically not authorable at all — it lived only\n * as an answer to an interactive prompt in the machine-local `environments.json`. Every environment\n * predating the authored field relies on it, so it keeps its exact behaviour.\n *\n * What it cannot express, and why the authored field had to exist: the rule is\n * `postgresql && !mongodb`, while a PostgreSQL platform is REQUIRED to also declare\n * `backingServices.mongodb` (the bootstrap plane is Mongo-wired, and both this schema and\n * `env-vars-builder` refuse a PostgreSQL platform that renders no mongod). The intended state is\n * therefore `postgresql && mongodb`, which this function always resolves to MONGODB. It is not a\n * bug in the rule — it is a question the rule cannot be asked.\n *\n * This is the same inexpressibility Phase 5.1 fixed one layer down, where `needsLocalMongoDB` was\n * `engine === MONGODB && source === SELF` and became a union so that \"which containers render\"\n * stopped being collapsed into \"what engine is the platform\". The identical collapse survived here,\n * in \"what engine is the platform\" vs \"which services are declared\".\n *\n * **Deliberately NOT made smarter.** Widening it to \"postgresql present ⇒ PostgreSQL\" would flip\n * every environment that declares PostgreSQL as an APPLICATION-tier substrate — Wonder Todos'\n * `local` does exactly that today — into a PostgreSQL PLATFORM on its next `wildo config sync`.\n * A silent engine change on an existing environment is the worst outcome available here.\n */\nexport function resolveDatabaseChoiceFromInfraConfig(\n config: WildoInfraEnvConfig,\n): PlatformEnvConfigJson['database'] {\n if (config.database) {\n return config.database;\n }\n\n return inferDatabaseChoiceFromInfraConfig(config);\n}\n\n/**\n * The pre-authoring inference. Retained as the fallback for environments that author no `database`\n * block — see {@link resolveDatabaseChoiceFromInfraConfig} for the precedence and for why this\n * cannot express a PostgreSQL platform.\n */\nexport function inferDatabaseChoiceFromInfraConfig(\n config: WildoInfraEnvConfig,\n): PlatformEnvConfigJson['database'] {\n const postgresql = config.backingServices.postgresql;\n const mongodb = config.backingServices.mongodb;\n\n if (postgresql && !mongodb) {\n return {\n engine: DatabaseEngine.POSTGRESQL,\n source: postgresql.source,\n };\n }\n\n return {\n engine: DatabaseEngine.MONGODB,\n source: mongodb?.source ?? BackingServiceSource.SELF,\n };\n}\n\n/**\n * The bytes `config.json` holds: the one serialization every writer of the generated file uses (the local self-heal,\n * `config sync`, and the remote overlay of `loadConfigForSync`), so equal content is equal bytes and a file is\n * rewritten only when its content moves (#2311).\n */\nexport function serializeConfigJson(config: PlatformEnvConfigJson): string {\n return `${JSON.stringify(config, null, 2)}\\n`;\n}\n\n/**\n * Project a parsed `wildo.infra.<env>.config.ts` into the persisted\n * platform-level `environments/<env>/config.json` shape.\n *\n * `devCompanion` is intentionally NOT persisted here — see Slice 3 deep-review\n * M-5 note in `commands/config/sync.command.ts` for the dual-config-json\n * design rationale.\n */\nexport function buildConfigJsonFromInfraEnvConfig(config: WildoInfraEnvConfig): PlatformEnvConfigJson {\n const storage = config.backingServices.s3;\n const postgresql = config.backingServices.postgresql;\n\n return {\n type: config.locationType,\n runtime: config.runtime,\n runtimeEnvironment: config.runtimeEnvironment,\n /**\n * Always present here, never `undefined`: the authored schema resolves its own default from\n * `locationType` in the transform, so what reaches this projection is the environment's settled\n * answer rather than what the author happened to type.\n */\n localDataStorage: config.localDataStorage,\n /** Always present: the descriptor transform resolves `FULL` when nothing is authored (#2303). */\n serviceProfile: config.serviceProfile,\n database: resolveDatabaseChoiceFromInfraConfig(config),\n /**\n * The APPLICATION's engine — RESOLVED, never inferred and never left absent.\n *\n * Absence means PostgreSQL (`DEFAULT_APPLICATION_DATABASE_ENGINE`, #1571), and it is resolved HERE\n * so `config.json` always carries an explicit engine: every later reader of the file — the\n * bootstrap request, the e2e store probe — then sees the same answer without holding its own copy\n * of the default. Inferring it from which backing services are declared would resurrect exactly\n * the defect the authored field exists to remove, since `postgresql && mongodb` is both the normal\n * state and unresolvable by inference.\n *\n * ⚠️ THIS is the projection that writes `config.json`, not the `transform` in\n * `defineInfraEnvConfig`. Both exist and both must carry a new field: the transform feeds\n * in-process consumers, this one feeds the file every generator later reads. Adding the field to\n * only the transform (2026-08-19) produced a silently ABSENT key here — the reconcile reported\n * success and `applicationDatabase` simply was not in the written file.\n */\n applicationDatabase: { engine: resolveApplicationDatabaseEngine(config.applicationDatabase) },\n infrastructure: {\n storage: {\n provider: (storage?.provider ?? DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION.PROVIDER) as 'minio',\n useSsl: storage?.endpoint?.startsWith('https://') ?? false,\n bucket: storage?.bucket ?? DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION.BUCKET,\n },\n postgresql: {\n database: postgresql?.database ?? DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION.DATABASE,\n sslMode: DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION.SSL_MODE,\n },\n },\n publicDomain: config.publicDomain,\n serviceHosts: config.serviceHosts,\n cdn: config.cdn,\n platformStorage: config.platformStorage,\n platformKeyManagement: config.platformKeyManagement,\n systemsOfRecord: config.systemsOfRecord,\n kubernetes: config.kubernetes\n ? {\n namespace: config.kubernetes.namespace,\n ingressClass: config.kubernetes.ingressClass,\n services: config.kubernetes.services,\n }\n : undefined,\n remoteProvider: config.remoteProvider,\n infrastructureHost: config.infrastructureHost,\n backingServices: config.backingServices,\n serviceAuth: config.serviceAuth,\n logging: config.logging,\n observability: config.observability,\n providerSelection: config.providerSelection,\n email: config.email,\n agentContentGuardrails: config.agentContentGuardrails,\n ownershipDnsStandIn: config.ownershipDnsStandIn,\n applicationCreationVerification: config.applicationCreationVerification,\n };\n}\n"]}
1
+ {"version":3,"file":"authored-infra-config.utils.js","sourceRoot":"","sources":["../../../../src/services/environment/authored-infra-config.utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,IAAI,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,cAAc,EACd,0CAA0C,EAC1C,gCAAgC,EAChC,kBAAkB,EAClB,gBAAgB,EAChB,yBAAyB,GAE1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,2CAA2C,EAC3C,yCAAyC,GAC1C,MAAM,yDAAyD,CAAC;AAOjE,uHAAuH;AACvH,MAAM,UAAU,8BAA8B,CAAC,QAAgB,EAAE,OAAe;IAC9E,OAAO,yBAAyB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAC9C,OAAe,EACf,QAAgB;IAEhB,OAAO,kBAAkB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,QAAgB;IAC9D,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,0BAA0B,CAAC,2BAA2B,EAAE,QAAQ,CAAC,CAAC;QACvF,OAAO,0CAA0C,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACnF,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,iGAAiG;AACjG,MAAM,2BAA2B,GAAG,OAAO,CAAC;AAmB5C;;;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,UAAU,EAAE,MAAM,CAAC,UAAU;YAC3B,CAAC,CAAC;gBACE,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS;gBACtC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,YAAY;gBAC5C,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,QAAQ;aACrC;YACH,CAAC,CAAC,SAAS;QACb,cAAc,EAAE,MAAM,CAAC,cAAc;QACrC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;QAC7C,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,iBAAiB,EAAE,MAAM,CAAC,iBAAiB;QAC3C,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;QACrD,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;QAC/C,+BAA+B,EAAE,MAAM,CAAC,+BAA+B;KACxE,CAAC;AACJ,CAAC","sourcesContent":["/**\n * authored-infra-config.utils — shared helpers for reading the authored\n * `wildo.infra.<env>.config.ts` descriptor and projecting it into the\n * platform-level `PlatformEnvConfigJson` shape.\n *\n * Originally lived as private helpers inside `commands/config/sync.command.ts`.\n * Extracted so the new runtime-bootstrap surface (used by `wildo local up`\n * pre-flight) can reuse the exact same projection — single source of truth\n * keeps the runtime artifacts written by `local up` byte-identical to the\n * ones `wildo config sync --domain manifest` would produce later.\n */\n\nimport { existsSync, readdirSync } from 'fs';\n\nimport {\n BackingServiceSource,\n DatabaseEngine,\n environmentServiceProfileRunsMessageBroker,\n resolveApplicationDatabaseEngine,\n loadInfraEnvConfig,\n resolveAppLayout,\n resolveInfraEnvConfigPath,\n type WildoInfraEnvConfig,\n} from '@wildo-ai/platform-config-lib';\nimport type { PlatformEnvConfigJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport {\n DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION,\n DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION,\n} from '~wildo-cli/services/data-services/data-services.schemas';\n\nexport interface LoadedAuthoredInfraEnvConfig {\n path: string;\n config: WildoInfraEnvConfig;\n}\n\n/** The shared path rule (`resolveInfraEnvConfigPath` in platform-config-lib), kept under the CLI's historical name. */\nexport function resolveAuthoredInfraConfigPath(saasRoot: string, envName: string): string {\n return resolveInfraEnvConfigPath(saasRoot, envName);\n}\n\n/**\n * The shared loader (`loadInfraEnvConfig` in platform-config-lib), kept under the CLI's historical name and argument\n * order so its importers and the test that mocks this module are unchanged. The dev companion reads the same file\n * through the shared loader.\n */\nexport async function loadAuthoredInfraEnvConfig(\n envName: string,\n saasRoot: string,\n): Promise<LoadedAuthoredInfraEnvConfig | null> {\n return loadInfraEnvConfig(saasRoot, envName);\n}\n\n/**\n * Whether the platform a HOST application owns runs a message broker, from its authored `local` descriptor (#2303\n * slice D): `environmentServiceProfileRunsMessageBroker` of its `serviceProfile`. Read by `wildo init` before scaffolding\n * a hosted application, whose descriptor must declare no RabbitMQ vhost on a host that runs no broker.\n *\n * A host with no readable `local` descriptor answers `true`, the broker every host ran before profiles existed: the\n * scaffold keeps its previous shape, and the hosted resolution then names what is wrong with the host.\n */\nexport async function readHostRunsMessageBroker(hostRoot: string): Promise<boolean> {\n try {\n const loaded = await loadAuthoredInfraEnvConfig(HOST_LOCAL_ENVIRONMENT_NAME, hostRoot);\n return environmentServiceProfileRunsMessageBroker(loaded?.config.serviceProfile);\n } catch {\n return true;\n }\n}\n\n/** The environment a hosted scaffold is written for: the local one (`infrastructure/local/`). */\nconst HOST_LOCAL_ENVIRONMENT_NAME = 'local';\n\n/** One authored environment: the directory name it lives under, and its loaded config. */\nexport interface LoadedNamedAuthoredInfraEnvConfig extends LoadedAuthoredInfraEnvConfig {\n envName: string;\n}\n\n/** An environment directory whose authored config failed to load, and why. */\nexport interface UnreadableAuthoredInfraEnvConfig {\n readonly envName: string;\n readonly error: unknown;\n}\n\n/**\n * One environment directory as {@link settleAllAuthoredInfraEnvConfigs} found it: loaded, or failing to load. Told apart\n * with `'error' in`, which narrows whether or not the compiling package checks nulls strictly.\n */\nexport type SettledAuthoredInfraEnvConfig = LoadedNamedAuthoredInfraEnvConfig | UnreadableAuthoredInfraEnvConfig;\n\n/**\n * Every environment the application authors: each directory of its infrastructure home that carries an authored\n * `wildo.infra.<local|remote>.config.ts`, loaded through {@link loadAuthoredInfraEnvConfig}. A directory without one is\n * not an environment and is skipped. Empty when the application has no infrastructure home.\n *\n * The ONE enumeration of an application's environments: the lockfile projections and the `config sync` servability\n * preflight (`loadAuthoredInfraEnvSelections`, #1693) and the schema planner's default adapter (#2708) all judge this\n * same population, so no reader can count one environment another misses. The dev companion cannot import this module\n * and restates the same walk for the same question (`assessApplicationSchemaPlanObligation`, #2724: is a baseline owed?);\n * change one, change both.\n *\n * SETTLED rather than thrown, so a reader that can still answer with the environments that did load decides that for\n * itself: the schema planner refuses only when an unreadable environment could change its answer.\n * {@link loadAllAuthoredInfraEnvConfigs} is the throwing form.\n */\nexport async function settleAllAuthoredInfraEnvConfigs(saasRoot: string): Promise<SettledAuthoredInfraEnvConfig[]> {\n const infraDir = resolveAppLayout(saasRoot).authoredInfrastructureHome;\n if (!existsSync(infraDir)) return [];\n const settled: SettledAuthoredInfraEnvConfig[] = [];\n for (const entry of readdirSync(infraDir, { withFileTypes: true })) {\n if (!entry.isDirectory()) continue;\n try {\n const authored = await loadAuthoredInfraEnvConfig(entry.name, saasRoot);\n if (authored) settled.push({ envName: entry.name, ...authored });\n } catch (error) {\n settled.push({ envName: entry.name, error });\n }\n }\n return settled;\n}\n\n/** {@link settleAllAuthoredInfraEnvConfigs}, throwing the first environment that failed to load. */\nexport async function loadAllAuthoredInfraEnvConfigs(saasRoot: string): Promise<LoadedNamedAuthoredInfraEnvConfig[]> {\n const loaded: LoadedNamedAuthoredInfraEnvConfig[] = [];\n for (const environment of await settleAllAuthoredInfraEnvConfigs(saasRoot)) {\n if ('error' in environment) throw environment.error;\n loaded.push(environment);\n }\n return loaded;\n}\n\n/**\n * Reason string when the authored infra config cannot serve as a config.json\n * fallback (currently: Atlas-backed environments require generated config.json\n * because authored infra config does not include Atlas API metadata or\n * external Mongo connection endpoints).\n */\nexport function getUnsupportedAuthoredConfigFallbackReason(\n envName: string,\n authoredConfigPath: string,\n authoredConfig: WildoInfraEnvConfig,\n): string | null {\n // Slice 4.B.0 (2026-05-07): Atlas detection now uses (source=MANAGED,\n // provider='atlas') instead of the legacy `source: ATLAS` enum value.\n // Same operational meaning — operator authored a managed Mongo whose\n // brand is Atlas; the generated config.json carries the Atlas API\n // metadata + external endpoints that the authored infra descriptor\n // doesn't include.\n const mongo = authoredConfig.backingServices.mongodb;\n if (mongo?.source === BackingServiceSource.MANAGED && mongo.provider === 'atlas') {\n return (\n `Cannot regenerate config for '${envName}' from authored infra descriptor at ${authoredConfigPath}: `\n + 'Atlas-backed environments require generated config.json because authored infra config '\n + 'does not include Atlas API metadata or external Mongo connection endpoints.'\n );\n }\n\n return null;\n}\n\n/**\n * Resolve the platform's database engine for an authored environment.\n *\n * **Precedence: an authored `database` block WINS; the inference below is the fallback.**\n *\n * The inference exists because the engine was historically not authorable at all — it lived only\n * as an answer to an interactive prompt in the machine-local `environments.json`. Every environment\n * predating the authored field relies on it, so it keeps its exact behaviour.\n *\n * What it cannot express, and why the authored field had to exist: the rule is\n * `postgresql && !mongodb`, while a PostgreSQL platform is REQUIRED to also declare\n * `backingServices.mongodb` (the bootstrap plane is Mongo-wired, and both this schema and\n * `env-vars-builder` refuse a PostgreSQL platform that renders no mongod). The intended state is\n * therefore `postgresql && mongodb`, which this function always resolves to MONGODB. It is not a\n * bug in the rule — it is a question the rule cannot be asked.\n *\n * This is the same inexpressibility Phase 5.1 fixed one layer down, where `needsLocalMongoDB` was\n * `engine === MONGODB && source === SELF` and became a union so that \"which containers render\"\n * stopped being collapsed into \"what engine is the platform\". The identical collapse survived here,\n * in \"what engine is the platform\" vs \"which services are declared\".\n *\n * **Deliberately NOT made smarter.** Widening it to \"postgresql present ⇒ PostgreSQL\" would flip\n * every environment that declares PostgreSQL as an APPLICATION-tier substrate — Wonder Todos'\n * `local` does exactly that today — into a PostgreSQL PLATFORM on its next `wildo config sync`.\n * A silent engine change on an existing environment is the worst outcome available here.\n */\nexport function resolveDatabaseChoiceFromInfraConfig(\n config: WildoInfraEnvConfig,\n): PlatformEnvConfigJson['database'] {\n if (config.database) {\n return config.database;\n }\n\n return inferDatabaseChoiceFromInfraConfig(config);\n}\n\n/**\n * The pre-authoring inference. Retained as the fallback for environments that author no `database`\n * block — see {@link resolveDatabaseChoiceFromInfraConfig} for the precedence and for why this\n * cannot express a PostgreSQL platform.\n */\nexport function inferDatabaseChoiceFromInfraConfig(\n config: WildoInfraEnvConfig,\n): PlatformEnvConfigJson['database'] {\n const postgresql = config.backingServices.postgresql;\n const mongodb = config.backingServices.mongodb;\n\n if (postgresql && !mongodb) {\n return {\n engine: DatabaseEngine.POSTGRESQL,\n source: postgresql.source,\n };\n }\n\n return {\n engine: DatabaseEngine.MONGODB,\n source: mongodb?.source ?? BackingServiceSource.SELF,\n };\n}\n\n/**\n * The bytes `config.json` holds: the one serialization every writer of the generated file uses (the local self-heal,\n * `config sync`, and the remote overlay of `loadConfigForSync`), so equal content is equal bytes and a file is\n * rewritten only when its content moves (#2311).\n */\nexport function serializeConfigJson(config: PlatformEnvConfigJson): string {\n return `${JSON.stringify(config, null, 2)}\\n`;\n}\n\n/**\n * Project a parsed `wildo.infra.<env>.config.ts` into the persisted\n * platform-level `environments/<env>/config.json` shape.\n *\n * `devCompanion` is intentionally NOT persisted here — see Slice 3 deep-review\n * M-5 note in `commands/config/sync.command.ts` for the dual-config-json\n * design rationale.\n */\nexport function buildConfigJsonFromInfraEnvConfig(config: WildoInfraEnvConfig): PlatformEnvConfigJson {\n const storage = config.backingServices.s3;\n const postgresql = config.backingServices.postgresql;\n\n return {\n type: config.locationType,\n runtime: config.runtime,\n runtimeEnvironment: config.runtimeEnvironment,\n /**\n * Always present here, never `undefined`: the authored schema resolves its own default from\n * `locationType` in the transform, so what reaches this projection is the environment's settled\n * answer rather than what the author happened to type.\n */\n localDataStorage: config.localDataStorage,\n /** Always present: the descriptor transform resolves `FULL` when nothing is authored (#2303). */\n serviceProfile: config.serviceProfile,\n database: resolveDatabaseChoiceFromInfraConfig(config),\n /**\n * The APPLICATION's engine — RESOLVED, never inferred and never left absent.\n *\n * Absence means PostgreSQL (`DEFAULT_APPLICATION_DATABASE_ENGINE`, #1571), and it is resolved HERE\n * so `config.json` always carries an explicit engine: every later reader of the file — the\n * bootstrap request, the e2e store probe — then sees the same answer without holding its own copy\n * of the default. Inferring it from which backing services are declared would resurrect exactly\n * the defect the authored field exists to remove, since `postgresql && mongodb` is both the normal\n * state and unresolvable by inference.\n *\n * ⚠️ THIS is the projection that writes `config.json`, not the `transform` in\n * `defineInfraEnvConfig`. Both exist and both must carry a new field: the transform feeds\n * in-process consumers, this one feeds the file every generator later reads. Adding the field to\n * only the transform (2026-08-19) produced a silently ABSENT key here — the reconcile reported\n * success and `applicationDatabase` simply was not in the written file.\n */\n applicationDatabase: { engine: resolveApplicationDatabaseEngine(config.applicationDatabase) },\n infrastructure: {\n storage: {\n provider: (storage?.provider ?? DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION.PROVIDER) as 'minio',\n useSsl: storage?.endpoint?.startsWith('https://') ?? false,\n bucket: storage?.bucket ?? DEFAULT_PLATFORM_FILE_STORAGE_CONFIGURATION.BUCKET,\n },\n postgresql: {\n database: postgresql?.database ?? DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION.DATABASE,\n sslMode: DEFAULT_PLATFORM_POSTGRESQL_CONFIGURATION.SSL_MODE,\n },\n },\n publicDomain: config.publicDomain,\n serviceHosts: config.serviceHosts,\n cdn: config.cdn,\n platformStorage: config.platformStorage,\n platformKeyManagement: config.platformKeyManagement,\n systemsOfRecord: config.systemsOfRecord,\n kubernetes: config.kubernetes\n ? {\n namespace: config.kubernetes.namespace,\n ingressClass: config.kubernetes.ingressClass,\n services: config.kubernetes.services,\n }\n : undefined,\n remoteProvider: config.remoteProvider,\n infrastructureHost: config.infrastructureHost,\n backingServices: config.backingServices,\n serviceAuth: config.serviceAuth,\n logging: config.logging,\n observability: config.observability,\n providerSelection: config.providerSelection,\n email: config.email,\n agentContentGuardrails: config.agentContentGuardrails,\n ownershipDnsStandIn: config.ownershipDnsStandIn,\n applicationCreationVerification: config.applicationCreationVerification,\n };\n}\n"]}
@@ -1,3 +1,9 @@
1
+ /**
2
+ * The name a container of a LOCAL environment reaches a process on the host by, in BOTH container lanes: compose maps it
3
+ * to `host-gateway` (`COMPOSE_HOST_GATEWAY_EXTRA_HOST`), and a Kind scheduler pod resolves it through the cluster's DNS or
4
+ * a `hostAliases` entry (`resolveKindPodHostGateway`, #3957). Docker Desktop's own name for the host.
5
+ */
6
+ export declare const CONTAINER_HOST_GATEWAY_HOSTNAME = "host.docker.internal";
1
7
  /**
2
8
  * What {@link resolveContainerHostGatewayListenHost} reads from the machine. Injected so the decision is testable on any
3
9
  * host; {@link SYSTEM_CONTAINER_HOST_GATEWAY_PROBE} is the real one.
@@ -1 +1 @@
1
- {"version":3,"file":"container-host-gateway-listen-host.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/container-host-gateway-listen-host.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IACnC,2HAA2H;IAC3H,kBAAkB,IAAI,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAC/C;;;OAGG;IACH,uBAAuB,IAAI,SAAS,MAAM,EAAE,CAAC;CAC9C;AAQD,eAAO,MAAM,mCAAmC,EAAE,yBAmBjD,CAAC;AAKF;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,GAAE,MAAM,MAA8D,GAAG,SAAS,MAAM,EAAE,CAQ1I;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAY7E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,GAAE,yBAA+D,GAAG,MAAM,GAAG,SAAS,CAKhJ"}
1
+ {"version":3,"file":"container-host-gateway-listen-host.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/container-host-gateway-listen-host.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,yBAAyB,CAAC;AAEtE;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC;IACnC,2HAA2H;IAC3H,kBAAkB,IAAI,SAAS,MAAM,EAAE,GAAG,IAAI,CAAC;IAC/C;;;OAGG;IACH,uBAAuB,IAAI,SAAS,MAAM,EAAE,CAAC;CAC9C;AAQD,eAAO,MAAM,mCAAmC,EAAE,yBAmBjD,CAAC;AAKF;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,GAAE,MAAM,MAA8D,GAAG,SAAS,MAAM,EAAE,CAQ1I;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAY7E;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,GAAE,yBAA+D,GAAG,MAAM,GAAG,SAAS,CAKhJ"}
@@ -2,6 +2,12 @@ import { execFileSync } from 'node:child_process';
2
2
  import { readFileSync } from 'node:fs';
3
3
  import { isIPv4 } from 'node:net';
4
4
  import { networkInterfaces } from 'node:os';
5
+ /**
6
+ * The name a container of a LOCAL environment reaches a process on the host by, in BOTH container lanes: compose maps it
7
+ * to `host-gateway` (`COMPOSE_HOST_GATEWAY_EXTRA_HOST`), and a Kind scheduler pod resolves it through the cluster's DNS or
8
+ * a `hostAliases` entry (`resolveKindPodHostGateway`, #3957). Docker Desktop's own name for the host.
9
+ */
10
+ export const CONTAINER_HOST_GATEWAY_HOSTNAME = 'host.docker.internal';
5
11
  /**
6
12
  * The deadline on the `docker` call. Generating environment files must not hang on a daemon that accepts the connection
7
13
  * and never answers; a missing answer costs only the Linux compose runtimes' reach, which the backend's log then names.
@@ -1 +1 @@
1
- {"version":3,"file":"container-host-gateway-listen-host.js","sourceRoot":"","sources":["../../../../src/services/environment/container-host-gateway-listen-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAiB5C;;;GAGG;AACH,MAAM,yBAAyB,GAAG,KAAK,CAAC;AAExC,MAAM,CAAC,MAAM,mCAAmC,GAA8B;IAC5E,QAAQ,EAAE,OAAO,CAAC,QAAQ;IAC1B,kBAAkB;QAChB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,4CAA4C,CAAC,EAAE;gBAChI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;gBACnC,OAAO,EAAE,yBAAyB;aACnC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACrE,CAAC;QAAC,MAAM,CAAC;YACP,6EAA6E;YAC7E,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;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D,IAAI,IAAI,KAAK,SAAS,IAAI,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;AACxB,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,qCAAqC,CAAC,QAAmC,mCAAmC;IAC1H,IAAI,KAAK,CAAC,QAAQ,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IACjD,MAAM,OAAO,GAAG,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACtF,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;QAAE,OAAO,SAAS,CAAC;IACnG,OAAO,KAAK,CAAC,uBAAuB,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AACjF,CAAC","sourcesContent":["import { execFileSync } from 'node:child_process';\nimport { readFileSync } from 'node:fs';\nimport { isIPv4 } from 'node:net';\nimport { networkInterfaces } from 'node:os';\n\n/**\n * What {@link resolveContainerHostGatewayListenHost} reads from the machine. Injected so the decision is testable on any\n * host; {@link SYSTEM_CONTAINER_HOST_GATEWAY_PROBE} is the real one.\n */\nexport interface ContainerHostGatewayProbe {\n readonly platform: NodeJS.Platform;\n /** The default bridge network's gateway addresses as the Docker daemon reports them, or `null` when it does not answer. */\n readBridgeGateways(): readonly string[] | null;\n /**\n * Every address assigned to an interface of this host, INCLUDING an interface whose link is down: an address is bindable\n * whatever the carrier, and `docker0` has none while no container sits on the default bridge.\n */\n localInterfaceAddresses(): readonly string[];\n}\n\n/**\n * The deadline on the `docker` call. Generating environment files must not hang on a daemon that accepts the connection\n * and never answers; a missing answer costs only the Linux compose runtimes' reach, which the backend's log then names.\n */\nconst DOCKER_INSPECT_TIMEOUT_MS = 5_000;\n\nexport const SYSTEM_CONTAINER_HOST_GATEWAY_PROBE: ContainerHostGatewayProbe = {\n platform: process.platform,\n readBridgeGateways() {\n try {\n const output = execFileSync('docker', ['network', 'inspect', 'bridge', '--format', '{{range .IPAM.Config}}{{.Gateway}} {{end}}'], {\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n timeout: DOCKER_INSPECT_TIMEOUT_MS,\n });\n return output.split(/\\s+/).filter((address) => address.length > 0);\n } catch {\n // No docker binary, no daemon, or no `bridge` network: nothing to listen on.\n return null;\n }\n },\n localInterfaceAddresses() {\n const reported = Object.values(networkInterfaces()).flatMap((addresses) => (addresses ?? []).map((entry) => entry.address));\n return [...new Set([...reported, ...readKernelLocalIPv4Addresses()])];\n },\n};\n\n/** The kernel's IPv4 routing tables, local table included. Linux only; absent elsewhere. */\nconst KERNEL_IPV4_FIB_TRIE_PATH = '/proc/net/fib_trie';\n\n/**\n * The IPv4 addresses this host's kernel accepts as its own, read from its local routing table, or none when the file\n * cannot be read (not Linux, or a restricted `/proc`).\n *\n * Why not `os.networkInterfaces()` alone: Node reads addresses through libuv, which leaves out every interface that is not\n * both UP and RUNNING. `docker0` is UP with no carrier until a container joins the DEFAULT bridge, and compose runtimes\n * join a network of their own, so on a Docker Engine host the bridge gateway was missing from that list in exactly the\n * case #3387 exists for, while `listen(port, '172.17.0.1')` succeeds (measured 2026-11-10, #3585). The local table lists\n * an address as soon as it is assigned, whatever the link state, and only in this network namespace, so a rootless or\n * Docker Desktop gateway (another namespace, another machine) is still absent from it.\n */\nexport function readKernelLocalIPv4Addresses(read: () => string = () => readFileSync(KERNEL_IPV4_FIB_TRIE_PATH, 'utf8')): readonly string[] {\n let trie: string;\n try {\n trie = read();\n } catch {\n return [];\n }\n return parseKernelLocalIPv4Addresses(trie);\n}\n\n/**\n * The addresses `/proc/net/fib_trie` marks `/32 host LOCAL`: each is printed as a `|-- <address>` leaf, followed by one\n * line per route on it, and a `/32 host LOCAL` route is an address assigned to this host. The broadcast and network\n * addresses beside it carry `BROADCAST` or `LINK`, never `/32 host LOCAL`, and loopback's `127.0.0.0/8 host LOCAL` is a\n * prefix, not an address.\n */\nexport function parseKernelLocalIPv4Addresses(trie: string): readonly string[] {\n const addresses = new Set<string>();\n let leaf: string | undefined;\n for (const line of trie.split('\\n')) {\n const node = /^[\\s|]*[|+]-- (\\S+)/.exec(line);\n if (node !== null) {\n leaf = isIPv4(node[1]!) ? node[1] : undefined;\n continue;\n }\n if (leaf !== undefined && /^\\s*\\/32 host LOCAL\\s*$/.test(line)) addresses.add(leaf);\n }\n return [...addresses];\n}\n\n/**\n * The address a host-run (native, LOCAL) application backend must ALSO listen on so a compose minion or worker reaches it\n * through `host.docker.internal` (#3387), or `undefined` when the loopback listener already suffices.\n *\n * Every compose runtime maps `host.docker.internal` to `host-gateway`. Docker documents that value as the default bridge's\n * gateway unless the daemon's `host-gateway-ip` overrides it, and the bridge gateway is what `docker network inspect\n * bridge` reports as `IPAM.Config[].Gateway`:\n *\n * - **macOS and Windows (Docker Desktop):** the gateway is forwarded to the host's loopback, which the backend already\n * serves on `127.0.0.1` (measured 2026-11-06, see `LOCAL_APPLICATION_BACKEND_LISTEN_HOST`). Nothing to add.\n * - **Linux, Docker Engine:** the gateway (for example `172.17.0.1`) is an address of THIS host, which a loopback-bound\n * process does not serve. This is the case the answer exists for.\n * - **Linux, Docker Desktop or rootless Docker:** the bridge lives inside a VM or a namespace and its gateway is not an\n * address of this host, so binding it would fail. Recognised by exactly that: the gateway must be assigned to one of\n * this host's interfaces. That one check, rather than detecting the Docker product, is what makes the answer safe to bind.\n *\n * Only an IPv4 gateway is taken: `host-gateway` resolves to the IPv4 one, and an IPv6 bridge gateway is reported beside it\n * when the daemon enables IPv6. A daemon `host-gateway-ip` override is not read; with one set, the compose runtimes would\n * dial an address this backend does not serve, and the backend's warning-free start would hide it. No lane sets it.\n */\nexport function resolveContainerHostGatewayListenHost(probe: ContainerHostGatewayProbe = SYSTEM_CONTAINER_HOST_GATEWAY_PROBE): string | undefined {\n if (probe.platform !== 'linux') return undefined;\n const gateway = (probe.readBridgeGateways() ?? []).find((address) => isIPv4(address));\n if (gateway === undefined || gateway === '0.0.0.0' || gateway.startsWith('127.')) return undefined;\n return probe.localInterfaceAddresses().includes(gateway) ? gateway : undefined;\n}\n"]}
1
+ {"version":3,"file":"container-host-gateway-listen-host.js","sourceRoot":"","sources":["../../../../src/services/environment/container-host-gateway-listen-host.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,sBAAsB,CAAC;AAiBtE;;;GAGG;AACH,MAAM,yBAAyB,GAAG,KAAK,CAAC;AAExC,MAAM,CAAC,MAAM,mCAAmC,GAA8B;IAC5E,QAAQ,EAAE,OAAO,CAAC,QAAQ;IAC1B,kBAAkB;QAChB,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,4CAA4C,CAAC,EAAE;gBAChI,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;gBACnC,OAAO,EAAE,yBAAyB;aACnC,CAAC,CAAC;YACH,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CA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,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9C,SAAS;QACX,CAAC;QACD,IAAI,IAAI,KAAK,SAAS,IAAI,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC;YAAE,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;AACxB,CAAC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,qCAAqC,CAAC,QAAmC,mCAAmC;IAC1H,IAAI,KAAK,CAAC,QAAQ,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IACjD,MAAM,OAAO,GAAG,CAAC,KAAK,CAAC,kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACtF,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;QAAE,OAAO,SAAS,CAAC;IACnG,OAAO,KAAK,CAAC,uBAAuB,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;AACjF,CAAC","sourcesContent":["import { execFileSync } from 'node:child_process';\nimport { readFileSync } from 'node:fs';\nimport { isIPv4 } from 'node:net';\nimport { networkInterfaces } from 'node:os';\n\n/**\n * The name a container of a LOCAL environment reaches a process on the host by, in BOTH container lanes: compose maps it\n * to `host-gateway` (`COMPOSE_HOST_GATEWAY_EXTRA_HOST`), and a Kind scheduler pod resolves it through the cluster's DNS or\n * a `hostAliases` entry (`resolveKindPodHostGateway`, #3957). Docker Desktop's own name for the host.\n */\nexport const CONTAINER_HOST_GATEWAY_HOSTNAME = 'host.docker.internal';\n\n/**\n * What {@link resolveContainerHostGatewayListenHost} reads from the machine. Injected so the decision is testable on any\n * host; {@link SYSTEM_CONTAINER_HOST_GATEWAY_PROBE} is the real one.\n */\nexport interface ContainerHostGatewayProbe {\n readonly platform: NodeJS.Platform;\n /** The default bridge network's gateway addresses as the Docker daemon reports them, or `null` when it does not answer. */\n readBridgeGateways(): readonly string[] | null;\n /**\n * Every address assigned to an interface of this host, INCLUDING an interface whose link is down: an address is bindable\n * whatever the carrier, and `docker0` has none while no container sits on the default bridge.\n */\n localInterfaceAddresses(): readonly string[];\n}\n\n/**\n * The deadline on the `docker` call. Generating environment files must not hang on a daemon that accepts the connection\n * and never answers; a missing answer costs only the Linux compose runtimes' reach, which the backend's log then names.\n */\nconst DOCKER_INSPECT_TIMEOUT_MS = 5_000;\n\nexport const SYSTEM_CONTAINER_HOST_GATEWAY_PROBE: ContainerHostGatewayProbe = {\n platform: process.platform,\n readBridgeGateways() {\n try {\n const output = execFileSync('docker', ['network', 'inspect', 'bridge', '--format', '{{range .IPAM.Config}}{{.Gateway}} {{end}}'], {\n encoding: 'utf8',\n stdio: ['ignore', 'pipe', 'ignore'],\n timeout: DOCKER_INSPECT_TIMEOUT_MS,\n });\n return output.split(/\\s+/).filter((address) => address.length > 0);\n } catch {\n // No docker binary, no daemon, or no `bridge` network: nothing to listen on.\n return null;\n }\n },\n localInterfaceAddresses() {\n const reported = Object.values(networkInterfaces()).flatMap((addresses) => (addresses ?? []).map((entry) => entry.address));\n return [...new Set([...reported, ...readKernelLocalIPv4Addresses()])];\n },\n};\n\n/** The kernel's IPv4 routing tables, local table included. Linux only; absent elsewhere. */\nconst KERNEL_IPV4_FIB_TRIE_PATH = '/proc/net/fib_trie';\n\n/**\n * The IPv4 addresses this host's kernel accepts as its own, read from its local routing table, or none when the file\n * cannot be read (not Linux, or a restricted `/proc`).\n *\n * Why not `os.networkInterfaces()` alone: Node reads addresses through libuv, which leaves out every interface that is not\n * both UP and RUNNING. `docker0` is UP with no carrier until a container joins the DEFAULT bridge, and compose runtimes\n * join a network of their own, so on a Docker Engine host the bridge gateway was missing from that list in exactly the\n * case #3387 exists for, while `listen(port, '172.17.0.1')` succeeds (measured 2026-11-10, #3585). The local table lists\n * an address as soon as it is assigned, whatever the link state, and only in this network namespace, so a rootless or\n * Docker Desktop gateway (another namespace, another machine) is still absent from it.\n */\nexport function readKernelLocalIPv4Addresses(read: () => string = () => readFileSync(KERNEL_IPV4_FIB_TRIE_PATH, 'utf8')): readonly string[] {\n let trie: string;\n try {\n trie = read();\n } catch {\n return [];\n }\n return parseKernelLocalIPv4Addresses(trie);\n}\n\n/**\n * The addresses `/proc/net/fib_trie` marks `/32 host LOCAL`: each is printed as a `|-- <address>` leaf, followed by one\n * line per route on it, and a `/32 host LOCAL` route is an address assigned to this host. The broadcast and network\n * addresses beside it carry `BROADCAST` or `LINK`, never `/32 host LOCAL`, and loopback's `127.0.0.0/8 host LOCAL` is a\n * prefix, not an address.\n */\nexport function parseKernelLocalIPv4Addresses(trie: string): readonly string[] {\n const addresses = new Set<string>();\n let leaf: string | undefined;\n for (const line of trie.split('\\n')) {\n const node = /^[\\s|]*[|+]-- (\\S+)/.exec(line);\n if (node !== null) {\n leaf = isIPv4(node[1]!) ? node[1] : undefined;\n continue;\n }\n if (leaf !== undefined && /^\\s*\\/32 host LOCAL\\s*$/.test(line)) addresses.add(leaf);\n }\n return [...addresses];\n}\n\n/**\n * The address a host-run (native, LOCAL) application backend must ALSO listen on so a compose minion or worker reaches it\n * through `host.docker.internal` (#3387), or `undefined` when the loopback listener already suffices.\n *\n * Every compose runtime maps `host.docker.internal` to `host-gateway`. Docker documents that value as the default bridge's\n * gateway unless the daemon's `host-gateway-ip` overrides it, and the bridge gateway is what `docker network inspect\n * bridge` reports as `IPAM.Config[].Gateway`:\n *\n * - **macOS and Windows (Docker Desktop):** the gateway is forwarded to the host's loopback, which the backend already\n * serves on `127.0.0.1` (measured 2026-11-06, see `LOCAL_APPLICATION_BACKEND_LISTEN_HOST`). Nothing to add.\n * - **Linux, Docker Engine:** the gateway (for example `172.17.0.1`) is an address of THIS host, which a loopback-bound\n * process does not serve. This is the case the answer exists for.\n * - **Linux, Docker Desktop or rootless Docker:** the bridge lives inside a VM or a namespace and its gateway is not an\n * address of this host, so binding it would fail. Recognised by exactly that: the gateway must be assigned to one of\n * this host's interfaces. That one check, rather than detecting the Docker product, is what makes the answer safe to bind.\n *\n * Only an IPv4 gateway is taken: `host-gateway` resolves to the IPv4 one, and an IPv6 bridge gateway is reported beside it\n * when the daemon enables IPv6. A daemon `host-gateway-ip` override is not read; with one set, the compose runtimes would\n * dial an address this backend does not serve, and the backend's warning-free start would hide it. No lane sets it.\n */\nexport function resolveContainerHostGatewayListenHost(probe: ContainerHostGatewayProbe = SYSTEM_CONTAINER_HOST_GATEWAY_PROBE): string | undefined {\n if (probe.platform !== 'linux') return undefined;\n const gateway = (probe.readBridgeGateways() ?? []).find((address) => isIPv4(address));\n if (gateway === undefined || gateway === '0.0.0.0' || gateway.startsWith('127.')) return undefined;\n return probe.localInterfaceAddresses().includes(gateway) ? gateway : undefined;\n}\n"]}
@@ -381,5 +381,17 @@ export declare function generatePlatformServiceEnvFiles(env: PlatformEnvironment
381
381
  * (non-local env, or zero provider secrets to emit).
382
382
  */
383
383
  export declare function generateProviderSecretsEnvFile(env: PlatformEnvironmentConfiguration, credentials: PlatformEnvSecretsJson): string | null;
384
+ /**
385
+ * Write a generated `.env` only when its content changed, and atomically (#3985).
386
+ *
387
+ * `wildo local dev` regenerates every runtime's env files while the stack runs, whenever the declaration changes. A
388
+ * rewrite of an UNCHANGED file is not harmless: Vite (and Astro on it) restarts its dev server when an env file changes,
389
+ * so every unrelated config edit would restart the frontend and the website under whatever was using them. And a truncate
390
+ * followed by a write lets a runtime that starts at that instant read half a file, which is the refusal class #3985 removes.
391
+ * So an identical file is left untouched (its modification time too), and a changed one is written beside it and renamed
392
+ * over it, keeping the mode the old file had (a person may have narrowed it). A `.env` someone replaced with a symlink
393
+ * becomes a regular file again on the next change; no generated layout uses one.
394
+ */
395
+ export declare function writeGeneratedEnvFileIfChanged(filePath: string, content: string): boolean;
384
396
  export {};
385
397
  //# sourceMappingURL=env-configuration-generator.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-configuration-generator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/env-configuration-generator.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EAEpB,qCAAqC,EAErC,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAO5G,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAM3F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AA6DtD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,gCAAgC,EACrC,cAAc,CAAC,EAAE,qBAAqB,GAAG,IAAI,GAC5C,qBAAqB,CAOvB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,8BAA8B;IAC7C,qFAAqF;IACrF,eAAe,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA4B,SAAQ,8BAA8B;IACjF,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;OAQG;IACH,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,oBAAoB,EAAE,uBAAuB,CAAC;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB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AE,0BAA0B,EAAE,EACjD,oBAAoB,CAAC,EAAE,4BAA4B,EAAE,EACrD,WAAW,CAAC,EAAE;IACZ;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,GACA,IAAI,CA6PN;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,gCAAgC,EACrC,WAAW,EAAE,sBAAsB,GAClC,MAAM,GAAG,IAAI,CAef"}
1
+ {"version":3,"file":"env-configuration-generator.service.d.ts","sourceRoot":"","sources":["../../../../src/services/environment/env-configuration-generator.service.ts"],"names":[],"mappings":"AAmBA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EAEpB,qCAAqC,EAErC,KAAK,wBAAwB,EAC9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AACzH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,qDAAqD,CAAC;AAO5G,OAAO,EAA2D,KAAK,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAM7H,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AA8DtD;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,gCAAgC,EACrC,cAAc,CAAC,EAAE,qBAAqB,GAAG,IAAI,GAC5C,qBAAqB,CAOvB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,8BAA8B;IAC7C,qFAAqF;IACrF,eAAe,EAAE,MAAM,CAAC;IACxB,uEAAuE;IACvE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA4B,SAAQ,8BAA8B;IACjF,uFAAuF;IACvF,UAAU,CA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G,EAAE,MAAM,EACX,mBAAmB,CAAC,EAAE,2BAA2B,EAAE,EACnD,aAAa,CAAC,EAAE,0BAA0B,EAAE,EAC5C,oBAAoB,CAAC,EAAE,mCAAmC,EAAE,EAC5D,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,EACjD,kBAAkB,CAAC,EAAE,0BAA0B,EAAE,EACjD,oBAAoB,CAAC,EAAE,4BAA4B,EAAE,EACrD,WAAW,CAAC,EAAE;IACZ;;;;;OAKG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC,GACA,IAAI,CAqQN;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,gCAAgC,EACrC,WAAW,EAAE,sBAAsB,GAClC,MAAM,GAAG,IAAI,CAef;AA6GD;;;;;;;;;;GAUG;AACH,wBAAgB,8BAA8B,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAoBzF"}
@@ -1,4 +1,4 @@
1
- import { closeSync, constants as fsConstants, existsSync, fchmodSync, fstatSync, ftruncateSync, lstatSync, mkdirSync, openSync, readFileSync, realpathSync, unlinkSync, writeFileSync, writeSync, } from 'fs';
1
+ import { chmodSync, closeSync, constants as fsConstants, existsSync, fchmodSync, fstatSync, ftruncateSync, lstatSync, mkdirSync, openSync, readFileSync, realpathSync, renameSync, unlinkSync, writeFileSync, writeSync, } from 'fs';
2
2
  import { dirname, join, resolve } from 'path';
3
3
  import { resolveFrameworkLayout, BOOTSTRAP_PLATFORM_SERVICES, ApplicationCreationVerificationEnvKey, WildoLocationType, } from '@wildo-ai/platform-config-lib';
4
4
  import { EnvironmentUtils } from '../../services/environment/environment.service.js';
@@ -7,13 +7,14 @@ import { IMMUDB_AUDIT_STATE_LOCAL_DATA_DIR } from '../../services/data-services/
7
7
  import { LOCAL_APPLICATION_BACKEND_LISTEN_HOST } from '../../services/environment/platform-runtime.schemas.js';
8
8
  import { resolveContainerHostGatewayListenHost } from '../../services/environment/container-host-gateway-listen-host.js';
9
9
  import { InfrastructureHost } from '../../services/environment/infrastructure-host.service.js';
10
- import { PlatformWildoServices } from '@wildo-ai/platform-config-lib';
10
+ import { PlatformWildoServices, resolveApplicationDatabaseEngine } from '@wildo-ai/platform-config-lib';
11
11
  import { PLATFORM_SERVICE_CATALOG } from '../../services/catalog/service-catalog.schemas.js';
12
12
  import { FILE_NAMES, GENERATED_FILE_HEADER } from '../../infrastructure/io/io.schemas.js';
13
13
  import { ServiceAddressResolver, AddressPerspective } from '../../services/catalog/service-address-resolver.service.js';
14
14
  import { PlatformEnvVarsBuilder } from '../../services/environment/env-vars-builder.service.js';
15
15
  import { declaredProviderScope } from '../../services/credentials/provider-env-vars.utils.js';
16
16
  import { APPLICATION_BACKEND_ENV_KEY_LIST } from '@wildo-ai/platform-core-shared';
17
+ import { assertProfileRunsDeclaredMinions } from '../../services/environment/environment-service-profile.utils.js';
17
18
  const APPLICATION_BACKEND_RESERVED_ENV_KEYS = new Set(APPLICATION_BACKEND_ENV_KEY_LIST);
18
19
  function assertNoApplicationBackendReservedEnvOverrides(extraEnv, targetDescription) {
19
20
  const overriddenKeys = Object.keys(extraEnv ?? {}).filter((key) => APPLICATION_BACKEND_RESERVED_ENV_KEYS.has(key)).sort();
@@ -116,10 +117,14 @@ export function buildPlatformServiceEnvMap(env, credentials, frameworkPath) {
116
117
  return envByDir;
117
118
  }
118
119
  export function generatePlatformServiceEnvFiles(env, frameworkPath, credentials, log, applicationBackends, companionApis, applicationFrontends, applicationWorkers, applicationMinions, applicationOperators, writePolicy) {
119
- const platformServiceEnvs = buildPlatformServiceEnvMap(env, credentials, frameworkPath);
120
120
  // Single load+hydrate seam (loadInfraHydratedConfig) for the app-host loops below; the platform
121
- // hosts are hydrated the same way inside buildPlatformServiceEnvMap above.
121
+ // hosts are hydrated the same way inside buildPlatformServiceEnvMap below.
122
122
  const config = loadInfraHydratedConfig(env);
123
+ // #2303: a profile whose queue cannot confine its minions (the DATABASE queue on MongoDB) refuses them before ANY file is
124
+ // written, so the native lane does not spawn a minion only for its boot to refuse it. Reads the same profile and engine
125
+ // the minion env would carry.
126
+ assertProfileRunsDeclaredMinions({ name: env.name, serviceProfile: config.serviceProfile }, applicationMinions?.length ?? 0, resolveApplicationDatabaseEngine(config.applicationDatabase));
127
+ const platformServiceEnvs = buildPlatformServiceEnvMap(env, credentials, frameworkPath);
123
128
  const addressCtx = ServiceAddressResolver.fromEnvironment(env, AddressPerspective.HOST_FACING);
124
129
  const addresses = ServiceAddressResolver.resolve(addressCtx);
125
130
  const frameworkLayout = resolveFrameworkLayout(frameworkPath);
@@ -444,14 +449,46 @@ function encodeDotenvValue(key, value) {
444
449
  * sinks have different readers and would then receive literal quotes).
445
450
  */
446
451
  function writeEnvFile(filePath, env) {
452
+ const content = Object.entries(env)
453
+ .map(([key, value]) => `${key}=${encodeDotenvValue(key, value)}`)
454
+ .join('\n');
455
+ writeGeneratedEnvFileIfChanged(filePath, GENERATED_FILE_HEADER + '\n\n' + content + '\n');
456
+ }
457
+ /**
458
+ * Write a generated `.env` only when its content changed, and atomically (#3985).
459
+ *
460
+ * `wildo local dev` regenerates every runtime's env files while the stack runs, whenever the declaration changes. A
461
+ * rewrite of an UNCHANGED file is not harmless: Vite (and Astro on it) restarts its dev server when an env file changes,
462
+ * so every unrelated config edit would restart the frontend and the website under whatever was using them. And a truncate
463
+ * followed by a write lets a runtime that starts at that instant read half a file, which is the refusal class #3985 removes.
464
+ * So an identical file is left untouched (its modification time too), and a changed one is written beside it and renamed
465
+ * over it, keeping the mode the old file had (a person may have narrowed it). A `.env` someone replaced with a symlink
466
+ * becomes a regular file again on the next change; no generated layout uses one.
467
+ */
468
+ export function writeGeneratedEnvFileIfChanged(filePath, content) {
447
469
  const dir = dirname(filePath);
448
470
  if (!existsSync(dir)) {
449
471
  mkdirSync(dir, { recursive: true });
450
472
  }
451
- const content = Object.entries(env)
452
- .map(([key, value]) => `${key}=${encodeDotenvValue(key, value)}`)
453
- .join('\n');
454
- writeFileSync(filePath, GENERATED_FILE_HEADER + '\n\n' + content + '\n');
473
+ let previousMode;
474
+ if (existsSync(filePath)) {
475
+ if (readFileSync(filePath, 'utf8') === content)
476
+ return false;
477
+ previousMode = lstatSync(filePath).mode & 0o777;
478
+ }
479
+ const temporaryPath = `${filePath}.${process.pid}.tmp`;
480
+ try {
481
+ writeFileSync(temporaryPath, content, previousMode === undefined ? undefined : { mode: previousMode });
482
+ if (previousMode !== undefined)
483
+ chmodSync(temporaryPath, previousMode);
484
+ renameSync(temporaryPath, filePath);
485
+ }
486
+ catch (error) {
487
+ if (existsSync(temporaryPath))
488
+ unlinkSync(temporaryPath);
489
+ throw error;
490
+ }
491
+ return true;
455
492
  }
456
493
  const APPLICATION_OPERATOR_ENV_HEADER = `${GENERATED_FILE_HEADER}\n# application-creation-verification operator environment`;
457
494
  const APPLICATION_OPERATOR_WRITABLE_ENV_KEYS = [