@wildo-ai/wildo-cli 1.1.12 → 1.1.14

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 (548) 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 +22 -1
  11. package/dist/src/commands/config/sync.command.js.map +1 -1
  12. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  13. package/dist/src/commands/context/journey.command.js +8 -0
  14. package/dist/src/commands/context/journey.command.js.map +1 -1
  15. package/dist/src/commands/creation/drive.command.d.ts.map +1 -1
  16. package/dist/src/commands/creation/drive.command.js +2 -0
  17. package/dist/src/commands/creation/drive.command.js.map +1 -1
  18. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  19. package/dist/src/commands/creation/feed.command.js +6 -3
  20. package/dist/src/commands/creation/feed.command.js.map +1 -1
  21. package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
  22. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  23. package/dist/src/commands/fwk/publish-all.command.js +64 -2
  24. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  25. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  26. package/dist/src/commands/fwk/publish-docker.command.js +16 -1
  27. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  28. package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
  29. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  30. package/dist/src/commands/fwk/registry-host.command.js +78 -3
  31. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  32. package/dist/src/commands/init.command.d.ts +14 -0
  33. package/dist/src/commands/init.command.d.ts.map +1 -1
  34. package/dist/src/commands/init.command.js +29 -3
  35. package/dist/src/commands/init.command.js.map +1 -1
  36. package/dist/src/commands/local/dev.command.d.ts +68 -0
  37. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  38. package/dist/src/commands/local/dev.command.js +216 -8
  39. package/dist/src/commands/local/dev.command.js.map +1 -1
  40. package/dist/src/commands/local/doctor.command.d.ts +22 -9
  41. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  42. package/dist/src/commands/local/doctor.command.js +45 -42
  43. package/dist/src/commands/local/doctor.command.js.map +1 -1
  44. package/dist/src/commands/providers/connect.command.d.ts.map +1 -1
  45. package/dist/src/commands/providers/connect.command.js +11 -1
  46. package/dist/src/commands/providers/connect.command.js.map +1 -1
  47. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  48. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  49. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  50. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  51. package/dist/src/commands/registry/update.command.js +1 -0
  52. package/dist/src/commands/registry/update.command.js.map +1 -1
  53. package/dist/src/commands/seal/currency.command.d.ts +13 -0
  54. package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
  55. package/dist/src/commands/seal/currency.command.js +52 -0
  56. package/dist/src/commands/seal/currency.command.js.map +1 -0
  57. package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
  58. package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
  59. package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
  60. package/dist/src/commands/seal/verify.command.d.ts +23 -0
  61. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  62. package/dist/src/commands/seal/verify.command.js +88 -3
  63. package/dist/src/commands/seal/verify.command.js.map +1 -1
  64. package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
  65. package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
  66. package/dist/src/services/application/content-guardrail-classifier.service.js +75 -11
  67. package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
  68. package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
  69. package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
  70. package/dist/src/services/application/local-provider-doubles.service.js +214 -0
  71. package/dist/src/services/application/local-provider-doubles.service.js.map +1 -0
  72. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  73. package/dist/src/services/application/provider-runtime-sync.service.js +26 -1
  74. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  75. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  76. package/dist/src/services/application/saas-skeleton.service.js +24 -2
  77. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  78. package/dist/src/services/application/system-of-record-simulators.service.d.ts +21 -2
  79. package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -1
  80. package/dist/src/services/application/system-of-record-simulators.service.js +21 -12
  81. package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -1
  82. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  83. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  84. package/dist/src/services/companion/build-console.service.js +54 -4
  85. package/dist/src/services/companion/build-console.service.js.map +1 -1
  86. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  87. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  88. package/dist/src/services/companion/creation-console.service.js +14 -2
  89. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  90. package/dist/src/services/companion/creation-drive.service.d.ts +32 -2
  91. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  92. package/dist/src/services/companion/creation-drive.service.js +66 -6
  93. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  94. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  95. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  96. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  97. package/dist/src/services/credentials/credentials.schemas.d.ts +6 -0
  98. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  99. package/dist/src/services/credentials/credentials.schemas.js +7 -1
  100. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  101. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  102. package/dist/src/services/credentials/provider-env-vars.utils.js +11 -3
  103. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  104. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  105. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  106. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  107. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  108. package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
  109. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  110. package/dist/src/services/data-services/data-services.schemas.js +9 -0
  111. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  112. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  113. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  114. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  115. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  116. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +15 -4
  117. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  118. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  119. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  120. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  121. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  122. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +3 -1
  123. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  124. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  125. package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
  126. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  127. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  128. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  129. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  130. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  131. package/dist/src/services/environment/authored-infra-config.utils.js +1 -0
  132. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  133. package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -1
  134. package/dist/src/services/environment/authored-infra-member-authority.js +5 -0
  135. package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -1
  136. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  137. package/dist/src/services/environment/env-configuration-generator.service.js +14 -6
  138. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  139. package/dist/src/services/environment/env-vars-builder.service.d.ts +6 -0
  140. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  141. package/dist/src/services/environment/env-vars-builder.service.js +24 -1
  142. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  143. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  144. package/dist/src/services/environment/environment-hydration.utils.js +1 -0
  145. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  146. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  147. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  148. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  149. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  150. package/dist/src/services/environment/environment.schemas.d.ts +7 -1
  151. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  152. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  153. package/dist/src/services/environment/runtime-bootstrap.service.d.ts +2 -0
  154. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  155. package/dist/src/services/environment/runtime-bootstrap.service.js +4 -0
  156. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  157. package/dist/src/services/framework/framework-docker-publish.service.d.ts +102 -0
  158. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  159. package/dist/src/services/framework/framework-docker-publish.service.js +204 -25
  160. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  161. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  162. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  163. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  164. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  165. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  166. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  167. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  168. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  169. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  170. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  171. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  172. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  173. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  174. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  175. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  176. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  177. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  178. package/dist/src/services/registry/module-install.service.js +1 -0
  179. package/dist/src/services/registry/module-install.service.js.map +1 -1
  180. package/dist/src/services/registry/provider-connect.service.d.ts +57 -1
  181. package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -1
  182. package/dist/src/services/registry/provider-connect.service.js +63 -2
  183. package/dist/src/services/registry/provider-connect.service.js.map +1 -1
  184. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  185. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  186. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  187. package/dist/tsconfig.build.tsbuildinfo +1 -1
  188. package/framework-root-package.json +3 -3
  189. package/package.json +22 -22
  190. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +2 -2
  191. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +17 -2
  192. package/templates/infra/registry-host/docker-compose.yml +9 -2
  193. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  194. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  195. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  196. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  197. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  198. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  199. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  200. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  201. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  202. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  203. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  204. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  205. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  206. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  207. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  208. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  209. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  210. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  211. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  212. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  213. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  214. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  215. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  216. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  217. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  218. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  219. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  220. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  221. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  222. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  223. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  224. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  225. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  226. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  227. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  228. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  229. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  230. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  231. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  232. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  233. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  234. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  235. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  236. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  237. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  238. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  239. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  240. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  241. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  242. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  243. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  244. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  245. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  246. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  247. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  248. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  249. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  250. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  251. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  252. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  253. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  254. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  255. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  256. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  257. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  258. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  259. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  260. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  261. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  262. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  263. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  264. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  265. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  266. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  267. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  268. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  269. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  270. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  271. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  272. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  273. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  274. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  275. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  276. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  277. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  278. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  279. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  280. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  281. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  282. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  283. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  284. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  285. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  286. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  287. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  288. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  289. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  290. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  291. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  292. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  293. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  294. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  295. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  296. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  297. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  298. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  299. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  300. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  301. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  302. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  303. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  304. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  305. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  306. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  307. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  308. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  309. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  310. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  311. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  312. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  313. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  314. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  315. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  316. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  317. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  318. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  319. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  320. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  321. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  322. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  323. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  324. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  325. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  326. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  327. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  328. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  329. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  330. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  331. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  332. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  333. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  334. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  335. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  336. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  337. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  338. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  339. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  340. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  341. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  342. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  343. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  344. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  345. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  346. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  347. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  348. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  349. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  350. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  351. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  352. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  353. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  354. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  355. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  356. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  357. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  358. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  359. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  360. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  361. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  362. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  363. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  364. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  365. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  366. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  367. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  368. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  369. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  370. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  371. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  372. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  373. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  374. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  375. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  376. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  377. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  378. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  379. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  380. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  381. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  382. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  383. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  384. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  385. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  386. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  387. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  388. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  389. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  390. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  391. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  392. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  393. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  394. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  395. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  396. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  397. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  398. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  399. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  400. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  401. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  402. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  403. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  404. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  405. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  406. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  407. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  408. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  409. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  410. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  411. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  412. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  413. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  414. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  415. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  416. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  417. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  418. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  419. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  420. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  421. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  422. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  423. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  424. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  425. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  426. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  427. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  428. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  429. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  430. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  431. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  432. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  433. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  434. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  435. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  436. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  437. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  438. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  439. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  440. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  441. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  442. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  443. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  444. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  445. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  446. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  447. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  448. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  449. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  450. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  451. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  452. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  453. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  454. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  455. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  456. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  457. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  458. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  459. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  460. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  461. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  462. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  463. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  464. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  465. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  466. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  467. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  468. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  469. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  470. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  471. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  472. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  473. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  474. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  475. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  476. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  477. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  478. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  479. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  480. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  481. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  482. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  483. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  484. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  485. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  486. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  487. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  488. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  489. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  490. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  491. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  492. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  493. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  494. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  495. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  496. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  497. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  498. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  499. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  500. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  501. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  502. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  503. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  504. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  505. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  506. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  507. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  508. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  509. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  510. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  511. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  512. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  513. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  514. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  515. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  516. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  517. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  518. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  519. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  520. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  521. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  522. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  523. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  524. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  525. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  526. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  527. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  528. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  529. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  530. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  531. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  532. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  533. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  534. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  535. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  536. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  537. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  538. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  539. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  540. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  541. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  542. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  543. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  544. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  545. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  546. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  547. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  548. package/wildo-framework.info.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-bootstrap.service.js","sourceRoot":"","sources":["../../../../src/services/environment/runtime-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,GAElB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EACL,iCAAiC,EACjC,mBAAmB,EACnB,0CAA0C,EAC1C,0BAA0B,GAC3B,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,wEAAwE,CAAC;AAEhF,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+DAA+D,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAC;AA+BvF,MAAM,YAAY,GAA2B;IAC3C,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,KAAK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C,CAAC;YACjG,IAAI,kBAAkB,EAAE,CAAC;gBACvB,GAAG,CAAC,IAAI,CACN,cAAc;oBACZ,CAAC,CAAC,iBAAiB,UAAU,CAAC,6BAA6B,8BAA8B;oBACzF,CAAC,CAAC,yBAAyB,UAAU,CAAC,6BAA6B,kCAAkC,CACxG,CAAC;YACJ,CAAC;QACH,CAAC;QAED,IAAI,YAAY,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,IAAI,CAAC,cAAc,EAAE,CAAC;gBACpB,MAAM,IAAI,KAAK,CACb,mBAAmB,UAAU,CAAC,kBAAkB,SAAS,GAAG,CAAC,IAAI,6CAA6C;sBAC5G,mGAAmG,CACtG,CAAC;YACJ,CAAC;YACD,GAAG,CAAC,IAAI,CACN,UAAU,UAAU,CAAC,kBAAkB,4EAA4E,CACpH,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,YAAY,GAAG,wBAAwB,CAAC,GAAG,EAAE,oBAAoB,EAAE,WAAW,CAAC,CAAC;YAChF,IAAI,YAAY,EAAE,CAAC;gBACjB,GAAG,CAAC,IAAI,CACN,cAAc;oBACZ,CAAC,CAAC,kBAAkB,UAAU,CAAC,kBAAkB,8BAA8B;oBAC/E,CAAC,CAAC,yBAAyB,UAAU,CAAC,kBAAkB,iDAAiD,CAC5G,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAC;IAC9C,CAAC;CACF","sourcesContent":["/**\n * runtime-bootstrap — headless self-healing pre-flight for `wildo local up`.\n *\n * Background. Before this service existed, the only paths that wrote the\n * Docker Compose runtime artifacts (`config.json`,\n * `docker-compose.wildo-platform.yml`, `.env.wildo-platform`) were:\n * 1. The interactive `wildo setup` flow (rejects `--non-interactive`).\n * 2. The post-bootstrap `wildo config sync --domain manifest` /\n * `wildo config sync` flow, which assumes the artifacts already exist\n * and additionally tries to reach apps-manager (circular: apps-manager\n * cannot start until the compose stack is up, but the compose stack\n * cannot render until config sync ran).\n *\n * That left the \"fresh clone of an existing app + `wildo local up`\" loop\n * stuck on hand-edited `config.json` / `.env.wildo-platform` files — exactly\n * the zero-touch greenfield experience the operator expects.\n *\n * What this service does. Right before `wildo local up` invokes\n * `ContextManager.resolveInfraContext` (which fail-loud-checks the compose\n * file presence), we:\n * - Re-load the authored `wildo.infra.<env>.config.ts` and rehydrate the\n * in-memory env state (`backingServices`, `serviceAuth`, `runtime`,\n * `runtimeEnvironment`, `database`, `publicDomain`, `kubernetes`,\n * `logging`, `observability`, `providerSelection`, `email`, …) so the\n * authored source-of-truth wins over a stale `environments.json` snapshot.\n * - Project the authored config through {@link buildConfigJsonFromInfraEnvConfig} (the same projection\n * `wildo config sync` writes) and write `config.json` when the file is missing or its bytes differ from the\n * projection (#2311). Identical bytes write nothing.\n * - For DOCKER_COMPOSE runtimes only, render the compose template and the `.env.wildo-platform` env file on every\n * run, and write each only when its content differs from the file on disk (#2311). Comparing what the inputs\n * PRODUCE is the one check that is total over them (`config.json`, `secrets.json`, the framework templates, the\n * application's configuration), so an edit to any of them reaches the next start. Same generators\n * `runInfraWrite` calls during the interactive setup flow.\n *\n * Single source of truth. The projection, rendering and env-file generation\n * are all delegated to the existing services — this file only orchestrates.\n * Result: artifacts produced here are byte-identical to the ones a later\n * `wildo config sync --domain manifest` (or interactive `wildo setup`) would\n * produce.\n *\n * Atlas / managed-Mongo guard. When the authored config cannot serve as a\n * `config.json` fallback (today: ATLAS-backed Mongo, which needs API\n * metadata not present in the authored descriptor), we surface the same\n * reason string used by `sync.command.ts` and abort — there is nothing\n * useful we can self-heal in that case.\n *\n * Secrets handling. We never ROTATE `secrets.json` here — rotation is\n * destructive and stays behind `wildo config sync --rotate-secrets`. We DO\n * provision missing framework-managed material (see\n * {@link SecretsProvisioning.ensureForEnvironment}), which is the additive\n * mirror image of everything else this pre-flight does: mint only what is\n * absent, never touch what exists. Without it, a material introduced after an\n * environment was set up never reaches that environment — which is exactly how\n * the immudb state-signing keypair stayed missing and left the audit store's\n * whole-server-substitution defense off. Operator-typed secrets still require\n * interactive authoring: if `secrets.json` is missing entirely, a missing\n * `.env.wildo-platform` throws with a clear hint to run `wildo setup` (or restore\n * from a backup), and existing compose artifacts are left as they are with a warning\n * rather than re-rendered without the material they project.\n *\n * Shared with `wildo config sync`. The authored-infra → generated-config\n * reconciliation primitives ({@link RuntimeBootstrap.refreshEnvFromAuthored}\n * + the config.json projection write) are ALSO the source of truth for\n * `config sync`, exposed via {@link RuntimeBootstrap.reconcileGeneratedConfigFromAuthored}.\n * The two callers differ ONLY in write policy:\n * - `local up` self-heal ({@link RuntimeBootstrap.ensureLocalRuntimeArtifacts})\n * writes config.json when it is missing or differs from the projection, and the compose artifacts when missing\n * or when their inputs changed — an idempotent pre-flight that must not churn `environments.json`'s `updatedAt`\n * or the compose file on an unchanged descriptor.\n * - `config sync` reconcile ALWAYS brings config.json to the authored\n * projection — it is an explicit \"make authored infra the source of truth\"\n * command, so a stale-but-present config.json (e.g. a pre-`backingServices`\n * snapshot missing a newly-authored `immudb` service) is deterministically\n * rewritten before the compose / env-file steps read it. Identical bytes are\n * not rewritten, so its mtime moves only when its content does.\n */\n\nimport { existsSync, readFileSync, writeFileSync } from 'fs';\nimport { join } from 'path';\n\nimport {\n PUBLIC_DOMAIN_DEFAULTS,\n WildoDeploymentRuntime,\n WildoLocationType,\n type WildoInfraEnvConfig,\n} from '@wildo-ai/platform-config-lib';\n\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { FileUtils } from '~wildo-cli/infrastructure/io/file.utils';\nimport {\n buildConfigJsonFromInfraEnvConfig,\n serializeConfigJson,\n getUnsupportedAuthoredConfigFallbackReason,\n loadAuthoredInfraEnvConfig,\n} from '~wildo-cli/services/environment/authored-infra-config.utils';\nimport {\n generateEnvWildoPlatform,\n renderDockerComposeTemplate,\n} from '~wildo-cli/services/deployment/docker/docker-compose-generator.service';\nimport type { FrameworkManagedSecretMaterialRef } from '~wildo-cli/services/credentials/framework-managed-secrets';\nimport {\n SecretsProvisioning,\n SecretsProvisioningStatus,\n} from '~wildo-cli/services/credentials/secrets-provisioning.service';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport type { PlatformEnvConfigJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\n\n/**\n * Summary of what the runtime-bootstrap pre-flight wrote on disk during this\n * invocation. Returned to call sites so they can decide whether to log a\n * \"self-healed N artifacts\" line and so tests can assert on the exact\n * deltas without inspecting the filesystem twice.\n */\nexport interface RuntimeBootstrapResult {\n /** Authored env state was re-projected onto `environments.json`. */\n refreshedEnvState: boolean;\n /** `config.json` was written: it was missing, or its bytes differed from the authored projection (#2311). */\n wroteConfigJson: boolean;\n /**\n * Docker Compose template was written: it was missing, or its rendered content differed from the file on disk\n * because one of its inputs changed (#2311). The files it bind-mounts are re-materialized on every run either way.\n */\n wroteDockerCompose: boolean;\n /** `.env.wildo-platform` was written: it was missing, or its generated content differed from the file on disk (#2311). */\n wroteEnvFile: boolean;\n /**\n * Framework-managed credential materials that were absent from `secrets.json` and have\n * just been minted (empty on a fully provisioned environment). The compose render and the platform env file then\n * differ from what is on disk wherever they project that material, so they are rewritten with it.\n */\n mintedSecretMaterials: FrameworkManagedSecretMaterialRef[];\n}\n\nconst NO_OP_RESULT: RuntimeBootstrapResult = {\n refreshedEnvState: false,\n wroteConfigJson: false,\n wroteDockerCompose: false,\n wroteEnvFile: false,\n mintedSecretMaterials: [],\n};\n\n\n/**\n * Pre-flight ensures the runtime artifacts `wildo local up` depends on\n * exist on disk for the given environment, generating them from the\n * authored `wildo.infra.<env>.config.ts` when missing, and re-deriving\n * each from its input when that input changed (#2311). See file header for\n * the full rationale.\n *\n * Pre-conditions:\n * - `env` is the in-memory environment from `ctx.activeEnv` (already\n * seeded by `ExistingAppBootstrapService`).\n * - `saasRoot` is the resolved targeted-app declaration root.\n *\n * Post-conditions on success:\n * - In-memory env state mirrors the authored infra descriptor.\n * - `config.json` exists in the env's resolved config dir.\n * - For DOCKER_COMPOSE runtimes, the compose render and\n * `.env.wildo-platform` exist in the env's docker-compose dir.\n *\n * Throws when the authored descriptor is missing (the operator must\n * author or restore one) or when secrets are required and absent.\n */\nexport interface RuntimeBootstrapInput {\n env: PlatformEnvironmentConfiguration;\n saasRoot: string;\n /**\n * Framework checkout root — required only for `DOCKER_COMPOSE` runtimes\n * because the compose template render needs to locate the Handlebars\n * template directory under the framework repo. Pass `null` if not\n * available; for K8s envs this preflight does not need it.\n */\n frameworkPath: string | null;\n isFrameworkDeveloper: boolean;\n log: Logger;\n}\n\n/**\n * Outcome of {@link RuntimeBootstrap.reconcileGeneratedConfigFromAuthored}.\n * A TS enum (not a literal-string union) so callers get autocomplete +\n * refactor-safety when branching on the result.\n */\nexport enum RuntimeConfigReconcileStatus {\n /** Env-state + `config.json` were regenerated from the authored descriptor. */\n RECONCILED = 'reconciled',\n /** Env is not LOCAL — remote/CI keep their generated / reconstructed config.json. */\n SKIPPED_NON_LOCAL = 'skipped-non-local',\n /** No authored `wildo.infra.<env>.config.ts` exists to reconcile from. */\n NO_AUTHORED_CONFIG = 'no-authored-config',\n /**\n * Authored descriptor cannot fully serve as the config.json source of truth\n * (today: Atlas-backed Mongo, whose generated config.json carries API\n * metadata + external endpoints the authored descriptor omits). The existing\n * generated config.json is left untouched.\n */\n SKIPPED_UNSUPPORTED = 'skipped-unsupported',\n}\n\nexport type RuntimeConfigReconcileResult =\n | {\n status: RuntimeConfigReconcileStatus.RECONCILED;\n /**\n * True when the persisted env-registry snapshot actually changed\n * (conservative diff) — false when the env was already current and only\n * `config.json` was brought current. (For RECONCILED config.json always\n * ends up as the authored projection, written only when its bytes differ,\n * so there is no separate flag for it.)\n */\n refreshedEnvState: boolean;\n }\n | { status: RuntimeConfigReconcileStatus.SKIPPED_NON_LOCAL }\n | { status: RuntimeConfigReconcileStatus.NO_AUTHORED_CONFIG }\n | { status: RuntimeConfigReconcileStatus.SKIPPED_UNSUPPORTED; reason: string };\n\n/** A kept `config.json`'s top-level members, for naming what changed; unreadable reads as empty (it is rewritten). */\nfunction parseConfigJsonOrEmpty(bytes: string): Record<string, unknown> {\n try {\n const parsed: unknown = JSON.parse(bytes);\n return parsed !== null && typeof parsed === 'object' ? parsed as Record<string, unknown> : {};\n } catch {\n return {};\n }\n}\n\nexport class RuntimeBootstrap {\n /**\n * Reconcile the two generated INPUTS that `wildo config sync` (and the\n * compose / env-file renderers it drives) read as the source of truth for\n * backing services / ports / sources:\n * - the persisted env-registry snapshot (`environments.json`), refreshed\n * in place via {@link RuntimeBootstrap.refreshEnvFromAuthored}; and\n * - the generated `config.json`, ALWAYS brought to the authored\n * `wildo.infra.<env>.config.ts` projection (written only when its bytes differ).\n *\n * Root fix for the stale-config-json bug: `config sync` used to read a\n * generated `config.json` (and `environments.json`) that it never refreshed\n * from the authored descriptor, so an authored change (e.g. adding an\n * `immudb` backing service) never reached the generated docker-compose.\n * Calling this BEFORE any sync domain consumes those inputs makes the\n * authored `.ts` the deterministic source of truth every run.\n *\n * Unlike {@link RuntimeBootstrap.ensureLocalRuntimeArtifacts} (the `local up`\n * self-heal) this does NOT render the compose / env-file artifacts — it only\n * refreshes their inputs. It also does NOT touch remote/CI environments,\n * which legitimately reconstruct `config.json` from env vars / a sibling\n * secrets repo (see the LOCAL guard below and the Atlas carve-out).\n *\n * Fail-soft by contract: returns a status the caller inspects; never throws\n * for the \"no authored descriptor\" or \"Atlas\" cases. It DOES surface a throw\n * from {@link loadAuthoredInfraEnvConfig} (broken / env-mismatched `.ts`) so\n * the caller can decide — `config sync` treats authored-load/schema failures\n * as fatal and does not run later domains against an old snapshot. Logging is intentionally the\n * caller's concern (it emits status-specific messages off the returned\n * result), so no `log` is taken here.\n */\n static async reconcileGeneratedConfigFromAuthored(input: {\n env: PlatformEnvironmentConfiguration;\n saasRoot: string;\n }): Promise<RuntimeConfigReconcileResult> {\n const { env, saasRoot } = input;\n\n if (env.locationType !== WildoLocationType.LOCAL) {\n return { status: RuntimeConfigReconcileStatus.SKIPPED_NON_LOCAL };\n }\n\n const loaded = await loadAuthoredInfraEnvConfig(env.name, saasRoot);\n if (!loaded) {\n return { status: RuntimeConfigReconcileStatus.NO_AUTHORED_CONFIG };\n }\n\n const fallbackReason = getUnsupportedAuthoredConfigFallbackReason(\n env.name,\n loaded.path,\n loaded.config,\n );\n if (fallbackReason) {\n return { status: RuntimeConfigReconcileStatus.SKIPPED_UNSUPPORTED, reason: fallbackReason };\n }\n\n const refreshedEnvState = RuntimeBootstrap.refreshEnvFromAuthored(env, loaded.config);\n RuntimeBootstrap.writeConfigJsonFromAuthored(env, loaded.config);\n\n return {\n status: RuntimeConfigReconcileStatus.RECONCILED,\n refreshedEnvState,\n };\n }\n\n static async ensureLocalRuntimeArtifacts(\n input: RuntimeBootstrapInput,\n ): Promise<RuntimeBootstrapResult> {\n const { env, saasRoot, frameworkPath, isFrameworkDeveloper, log } = input;\n\n if (env.locationType !== WildoLocationType.LOCAL) {\n return NO_OP_RESULT;\n }\n\n const loaded = await loadAuthoredInfraEnvConfig(env.name, saasRoot);\n if (!loaded) {\n throw new Error(\n `Cannot bootstrap runtime artifacts for '${env.name}': no authored infra descriptor found.\\n`\n + ` Expected: <saasRoot>/infrastructure/${env.name}/wildo.infra.${env.name === 'local' ? 'local' : 'remote'}.config.ts`,\n );\n }\n\n const fallbackReason = getUnsupportedAuthoredConfigFallbackReason(\n env.name,\n loaded.path,\n loaded.config,\n );\n if (fallbackReason) {\n throw new Error(`${fallbackReason}\\n Run 'wildo setup' to author '${env.name}' interactively.`);\n }\n\n const refreshedEnvState = RuntimeBootstrap.refreshEnvFromAuthored(env, loaded.config);\n\n const wroteConfigJson = RuntimeBootstrap.ensureConfigJson(env, loaded.config, log);\n\n // Mint any framework-managed credential material this environment predates, BEFORE\n // the compose render / env-file generation read `secrets.json` — those artifacts\n // project the material (e.g. the immudb `--signingKey` mount), so provisioning after\n // them would leave the freshly minted key stranded until the next command.\n const mintedSecretMaterials = RuntimeBootstrap.provisionFrameworkManagedSecrets(env, log);\n\n let wroteDockerCompose = false;\n let wroteEnvFile = false;\n\n // A HOSTED environment renders no compose project and no `.env.wildo-platform`: both are its host's,\n // and a render here would describe the host's containers over this application's `local_data`.\n if (env.runtime === WildoDeploymentRuntime.DOCKER_COMPOSE && loaded.config.infrastructureHost === undefined) {\n const composeArtifacts = await RuntimeBootstrap.ensureDockerComposeArtifacts(\n env,\n frameworkPath,\n isFrameworkDeveloper,\n // Rendered on every run, newly minted secret material and a `local_data` reset included: the\n // comparison of the rendered content sees every input, and the render re-materializes the files\n // compose bind-mounts (the immudb signing key, the mongot password) each time (#2311).\n log,\n );\n wroteDockerCompose = composeArtifacts.wroteDockerCompose;\n wroteEnvFile = composeArtifacts.wroteEnvFile;\n }\n\n return {\n refreshedEnvState,\n wroteConfigJson,\n wroteDockerCompose,\n wroteEnvFile,\n mintedSecretMaterials,\n };\n }\n\n /**\n * Additive `secrets.json` self-heal: mint every framework-managed credential material\n * the environment is missing and persist it. Returns the minted material refs so the\n * caller can invalidate the derived artifacts that project them.\n *\n * Fail-soft. A missing/unreadable `secrets.json` is NOT handled here — the downstream\n * compose step refuses a MISSING `.env.wildo-platform` with the actionable \"run `wildo setup`\"\n * message (and leaves existing artifacts alone with a warning), and pre-empting it with a\n * second error would only bury that guidance.\n */\n private static provisionFrameworkManagedSecrets(\n env: PlatformEnvironmentConfiguration,\n log: Logger,\n ): FrameworkManagedSecretMaterialRef[] {\n const outcome = SecretsProvisioning.ensureForEnvironment(env.name);\n if (outcome.status !== SecretsProvisioningStatus.PROVISIONED) {\n return [];\n }\n\n log.info(\n ` Provisioned ${outcome.mintedRefs.length} missing framework-managed secret material(s) for '${env.name}': `\n + `${outcome.mintedRefs.join(', ')}.`,\n );\n return outcome.mintedRefs;\n }\n\n /**\n * Rehydrate the in-memory env from the authored infra descriptor so a\n * stale `environments.json` cannot mask a fresh authored change. We\n * mutate in place AND persist via {@link EnvironmentLifecycle.updateEnvironmentState}\n * so subsequent reads (compose generator, env-vars builder, address\n * resolver) all see the same source-of-truth.\n *\n * Conservative diff. We only persist when at least one tracked field\n * actually changed — re-running `wildo local up` against a fully synced\n * state must remain a no-op so we don't churn `environments.json`'s\n * `updatedAt` on every invocation.\n *\n * For some members OMISSION from the descriptor is authoritative: removed there, they are cleared from the record\n * too, so hydration cannot bring a removed value back. Each is read by what the same command renders next, so a\n * stale copy acts on the wrong target:\n *\n * - `infrastructureHost`, the environment's infrastructure OWNER: a copy describing the previous owner steers the\n * next render, readiness probe and registration at the wrong substrate.\n * - `email`, the shared receiving domain, projected into `WILDO_INBOUND_EMAIL_SHARED_DOMAIN`: a stale copy keeps\n * routing mail to a domain the descriptor no longer names.\n * - `ownershipDnsStandIn`, projected into `WILDO_OWNERSHIP_DNS_STAND_IN_URL` (local-only, #2519): a stale copy keeps\n * answering domain-ownership challenges from a double the descriptor no longer names, or, removed from the\n * descriptor, keeps verifying domains against one at all.\n * - `logging`, `observability`, `providerSelection`, projected into `LOG_LEVEL`, the `OTEL_*` variables and\n * `WILDO_PROVIDER_SELECTION_OVERRIDES`: a stale copy keeps a level, an exporter or a provider choice the\n * descriptor no longer makes.\n * - `serviceHosts`, the per-service subdomains projected into `WILDO_SERVICE_HOSTS` (and, on a remote lane, into\n * `APPLICATION_RUNTIME_ENDPOINTS`): a stale copy addresses a service at a host the descriptor no longer gives it.\n * - `platformKeyManagement` (#2933), projected into apps-manager's `PLATFORM_KEY_VAULT_*` and deciding whether the\n * platform runs its own OpenBao: a stale copy keeps apps-manager pointed at a Vault the descriptor no longer names.\n * - `serviceAuth`, the service-to-service policy: a removed policy must stop applying.\n *\n * REMOVAL matters as much as change, because hydration (`hydrateEnvironmentFromConfig`, `loadInfraHydratedConfig`)\n * falls back from one copy to the other: a field one copy still holds comes back. A new authored member that an\n * `.env` builder reads, and that only the descriptor decides, joins this set. Every writer of these registry fields\n * derives them from the descriptor (this method; `wildo setup` seeds `logging` from it; the CI path builds its record\n * from `config.json`), which is what makes omission authoritative safe.\n *\n * The set used to be a hand-kept constant, `CONFIG_JSON_FIELDS_TRACKING_AUTHORED`, which also decided when\n * `config.json` was rewritten. That is how #2311 happened: a kept `config.json` was rewritten only when one of those\n * members diverged, so every other member the `.env` builders read (`backingServices`, `publicDomain`, …) kept its\n * value from the last `wildo config sync`. `ensureConfigJson` now compares the whole projection, the constant had no\n * reader left, and it was removed (it had already missed `serviceAuth`).\n *\n * Both mechanisms are local-only. A REMOTE environment gets the same answer another way (#2310):\n * `ConfigSyncCommand.loadConfigForSync` lays every member the descriptor decides over its persisted `config.json`\n * (`overlayAuthoredInfraMembers`, driven by `AUTHORED_INFRA_MEMBER_AUTHORITY`), and `hydrateEnvironmentFromConfig`\n * then takes those members from that `config.json`, absence included, so this record's copy cannot win either.\n */\n private static refreshEnvFromAuthored(\n env: PlatformEnvironmentConfiguration,\n authored: WildoInfraEnvConfig,\n ): boolean {\n const seededRuntime = authored.runtime ?? env.runtime;\n const seededRuntimeEnvironment = authored.runtimeEnvironment ?? env.runtimeEnvironment;\n const seededPublicDomain = authored.publicDomain\n ?? env.publicDomain\n ?? (seededRuntime === WildoDeploymentRuntime.KUBERNETES\n ? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S\n : PUBLIC_DOMAIN_DEFAULTS.LOCAL_COMPOSE);\n\n const next: PlatformEnvironmentConfiguration = {\n ...env,\n runtime: seededRuntime,\n runtimeEnvironment: seededRuntimeEnvironment,\n publicDomain: seededPublicDomain,\n /**\n * Always defined on the authored descriptor — its transform resolves the `locationType`\n * default — so there is no `?? env.` fallback to write here, unlike `runtime` above. Paired\n * with the `diffSelector` entry, per the rule stated there.\n */\n localDataStorage: authored.localDataStorage,\n /** Always defined on the authored descriptor (its transform resolves `FULL`). Paired with `diffSelector` (#2303). */\n serviceProfile: authored.serviceProfile,\n /**\n * The platform's database engine, when the environment AUTHORS one.\n *\n * `database` is only optional on the authored descriptor — every environment that does not\n * declare it keeps the engine it already had, which is what preserves the behaviour of every\n * environment created before the field existed. It is REQUIRED on the registry record, so the\n * fallback is `env.database` rather than `undefined`.\n *\n * This matters more than the other fields here because of an asymmetry in the two consumers\n * of the choice: `needsLocalMongoDB` / `needsLocalPostgreSQL` resolve the PLATFORM half via\n * `getDatabaseChoice(env.name)`, i.e. from the PERSISTED registry, while taking the\n * `backingServices` half from the in-memory env they are handed. So the container-rendering\n * decisions read this record, not the caller's snapshot — an authored engine that never\n * lands here is invisible to compose, to the K8s catalog, and to `local_data` pre-creation,\n * while the env-var builders (which read `config.json`) would already have moved.\n */\n database: authored.database ?? env.database,\n // Omission is authoritative: an environment that stops naming a host owns its infrastructure again.\n infrastructureHost: authored.infrastructureHost,\n // Authored `kubernetes` carries `{ namespace, ingressClass? }` but\n // the CLI runtime shape (`PlatformEnvironmentKubernetesConfig`) is\n // `{ namespace, imageRegistry? }`. The runtime `imageRegistry` is\n // computed at setup-time (see `environment-setup.service.ts` →\n // `KIND_CLUSTER_DEFAULTS.REGISTRY_PORT`) and has no authored\n // counterpart, so we only project `namespace` and preserve the\n // existing `imageRegistry` from the in-memory env state. Authored\n // `ingressClass` is not mirrored: authored and persisted config accept\n // only the Traefik controller installed by Wildo. The manifest renderer\n // uses that canonical supported class rather than a runtime override.\n kubernetes: authored.kubernetes\n ? {\n namespace: authored.kubernetes.namespace,\n imageRegistry: env.kubernetes?.imageRegistry,\n }\n : env.kubernetes,\n // Omission is authoritative; see the posture blocks below.\n serviceHosts: authored.serviceHosts,\n // Omission is authoritative (#2310): a CDN entry removed from the descriptor must return its route to the ingress.\n cdn: authored.cdn,\n backingServices: authored.backingServices ?? env.backingServices,\n // Omission is authoritative: never resurrect a removed policy from the registry cache.\n serviceAuth: authored.serviceAuth,\n /*\n * Omission is authoritative for these members (the method's JSDoc says why, per member): removing a log level,\n * an exporter, a provider choice, the receiving-domain override or a service host from the infra config must\n * stop it. Falling back to `env` kept the registry's copy (this record IS the registry's cached object, saved\n * whole by the next update), and hydration's `config.x ?? env.x` then brought it back into every `.env`, through\n * `wildo config sync` as well as `wildo local dev`. Every writer of these fields derives them from the authored\n * descriptor (`wildo setup` seeds them from it), so `undefined` here means \"not authored\", never \"not known\".\n */\n logging: authored.logging,\n observability: authored.observability,\n providerSelection: authored.providerSelection,\n email: authored.email,\n ownershipDnsStandIn: authored.ownershipDnsStandIn,\n platformKeyManagement: authored.platformKeyManagement,\n };\n\n const changed = JSON.stringify(RuntimeBootstrap.diffSelector(env))\n !== JSON.stringify(RuntimeBootstrap.diffSelector(next));\n\n if (!changed) {\n return false;\n }\n\n Object.assign(env, next);\n EnvironmentLifecycle.updateEnvironmentState(env);\n EnvironmentUtils.invalidateCache();\n return true;\n }\n\n /**\n * Selects only the fields {@link refreshEnvFromAuthored} mutates so the\n * change-detection JSON diff stays narrow and stable (avoids false\n * positives from `updatedAt` / `setupStatus` churn).\n */\n private static diffSelector(env: PlatformEnvironmentConfiguration): Record<string, unknown> {\n return {\n runtime: env.runtime,\n runtimeEnvironment: env.runtimeEnvironment,\n publicDomain: env.publicDomain,\n /**\n * Paired with the `localDataStorage` projection in {@link refreshEnvFromAuthored}. Flipping\n * an environment's storage mode is a ONE-LINE authored edit and frequently the only one in\n * its change, so omitting it here is precisely the \"copied but not diffed\" case the rule\n * above describes: the refresh would return `false` and the new mode would never reach the\n * environment or the compose file rendered from it.\n */\n localDataStorage: env.localDataStorage,\n /** Paired with the `serviceProfile` projection above: a profile flip is often a one-line change (#2303). */\n serviceProfile: env.serviceProfile,\n /**\n * Every field this projects must ALSO be part of what `refreshEnvFromAuthored` DETECTS, not\n * merely part of what it copies. A field that is copied but not diffed makes a change\n * touching only that field read as unchanged, so the refresh returns `false` and the authored\n * value never reaches the environment at all. Add to both lists, or to neither.\n */\n serviceHosts: env.serviceHosts,\n cdn: env.cdn,\n kubernetes: env.kubernetes,\n /**\n * Paired with the `database` projection in {@link refreshEnvFromAuthored} — the rule above is\n * not advisory. An authored engine flip is frequently the ONLY edit in its change (it is one\n * line), so omitting it here would make precisely the change this field exists to express\n * diff as unchanged, return `false`, and never reach `updateEnvironmentState`.\n */\n database: env.database,\n infrastructureHost: env.infrastructureHost,\n backingServices: env.backingServices,\n serviceAuth: env.serviceAuth,\n logging: env.logging,\n observability: env.observability,\n providerSelection: env.providerSelection,\n email: env.email,\n ownershipDnsStandIn: env.ownershipDnsStandIn,\n platformKeyManagement: env.platformKeyManagement,\n };\n }\n\n /**\n * Write `config.json` from the authored infra descriptor when it is missing or its bytes differ from the projection\n * (idempotent self-heal for `local up` / `local dev`).\n *\n * Keyed on the WHOLE projection (#2311). `config.json` is a cache of the descriptor: `wildo config sync` overwrites a\n * local one with this same projection every time, so a file that differs from it is stale by definition, whichever\n * member differs. Keying on a hand-kept list of members left every other one (`backingServices`, `publicDomain`, …)\n * at its last-synced value, read by the `.env` builders and preferred by hydration. Identical bytes write nothing,\n * so an unchanged descriptor churns nothing. Members only `wildo setup` writes (`externalServices`, `externalEndpoints`,\n * `atlas`) go with the first rewrite, as with `config sync`: on a LOCAL environment `externalServices` names only\n * the self-hosted providers (every reader tests for a non-default one), `externalEndpoints` and `atlas` are Atlas-only,\n * and Atlas is refused locally (`getUnsupportedAuthoredConfigFallbackReason`).\n */\n private static ensureConfigJson(\n env: PlatformEnvironmentConfiguration,\n authored: WildoInfraEnvConfig,\n log: Logger,\n ): boolean {\n const configPath = join(EnvironmentPaths.resolveConfigDir(env.name), FILE_NAMES.CONFIG_JSON);\n if (existsSync(configPath)) {\n const projected = buildConfigJsonFromInfraEnvConfig(authored);\n const current = readFileSync(configPath, 'utf8');\n if (current === serializeConfigJson(projected)) {\n return false;\n }\n const persisted = parseConfigJsonOrEmpty(current);\n const diverged = [...new Set([...Object.keys(persisted), ...Object.keys(projected)])].filter(\n (field) => JSON.stringify(persisted[field] ?? null) !== JSON.stringify((projected as Record<string, unknown>)[field] ?? null),\n );\n RuntimeBootstrap.writeConfigJsonFromAuthored(env, authored);\n if (diverged.includes('infrastructureHost')) {\n log.info(\n authored.infrastructureHost\n ? ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now runs on the infrastructure of ${authored.infrastructureHost.applicationRoot}.`\n : ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now owns its infrastructure.`,\n );\n }\n if (diverged.includes('email')) {\n const sharedDomain = authored.email?.inbound?.sharedDomain;\n log.info(\n sharedDomain\n ? ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now receives email at ${sharedDomain}.`\n : ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now receives email at the backend configuration's shared domain.`,\n );\n }\n const otherFields = diverged.filter((field) => field !== 'infrastructureHost' && field !== 'email');\n if (otherFields.length > 0) {\n log.info(` Rewrote ${FILE_NAMES.CONFIG_JSON}: the authored ${otherFields.join(', ')} changed.`);\n } else if (diverged.length === 0) {\n log.info(` Rewrote ${FILE_NAMES.CONFIG_JSON} to the authored projection (its layout differed).`);\n }\n return true;\n }\n\n RuntimeBootstrap.writeConfigJsonFromAuthored(env, authored);\n log.info(` Self-healed missing ${FILE_NAMES.CONFIG_JSON} from authored infra descriptor.`);\n return true;\n }\n\n /**\n * Project the authored infra descriptor into the persisted `config.json`\n * shape and write it, invalidating the config cache so the next read\n * returns the fresh shape.\n *\n * Uses the shared {@link buildConfigJsonFromInfraEnvConfig} projection — the\n * single source of truth also used by the `local up` self-heal and the\n * `loadConfigForSync` authored fallback. Callers own the write-policy\n * decision (missing or bytes differ, vs. always).\n *\n * Identical bytes are NOT rewritten, even for an \"always\" caller (`wildo config sync`, `wildo dev start`), so the\n * file's mtime moves only when its content does and nothing that dates artifacts reads a change that did not happen\n * (#2311). The compose artifacts derived from it compare their own rendered content, so they do not depend on this.\n */\n private static writeConfigJsonFromAuthored(\n env: PlatformEnvironmentConfiguration,\n authored: WildoInfraEnvConfig,\n ): void {\n const configDir = EnvironmentPaths.resolveConfigDir(env.name);\n const projected = buildConfigJsonFromInfraEnvConfig(authored);\n FileUtils.ensureDirectoryExists(configDir);\n const configPath = join(configDir, FILE_NAMES.CONFIG_JSON);\n const bytes = serializeConfigJson(projected);\n if (!existsSync(configPath) || readFileSync(configPath, 'utf8') !== bytes) {\n writeFileSync(configPath, bytes);\n }\n EnvironmentUtils.invalidateCache();\n }\n\n /**\n * Ensure the Docker Compose runtime artifacts exist and are current:\n * - `docker-compose.wildo-platform.yml` (template render)\n * - `.env.wildo-platform` (infra credentials env file)\n *\n * Both delegate to the same generators that `runInfraWrite` calls in the\n * interactive setup flow, so the rendered artifacts match exactly.\n *\n * Both are rendered on EVERY run, and each generator writes only when its content differs from the file on disk\n * (#2311). That is total over their inputs by construction. The previous triggers were each keyed on ONE input and\n * missed the rest: \"missing\", \"this run minted secret material\" (blind to a hand edit of `secrets.json`), \"older\n * than `config.json`\" (blind to `secrets.json` and to the framework template), and a predicate for one bind-mounted\n * file (blind to the mongot password beside it). Rejected: an mtime check over a list of inputs, because the list is\n * what rots (the render also reads the application's minion and worker configuration, and the template directory).\n *\n * Without a framework path (no framework checkout to render the template from) an EXISTING compose file is left as\n * it is and said so: refusing would stop `wildo local dev` on a file that may well be current, and the remedy,\n * `wildo config sync --domain manifest` from a workspace with a framework path, needs nothing this run holds. A\n * MISSING one still refuses, because `docker compose up` cannot run without it. When `secrets.json` cannot be read,\n * both EXISTING artifacts are left alone with a warning (re-rendering them would drop the material they project),\n * and a missing `.env.wildo-platform` refuses.\n */\n private static async ensureDockerComposeArtifacts(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string | null,\n isFrameworkDeveloper: boolean,\n log: Logger,\n ): Promise<{ wroteDockerCompose: boolean; wroteEnvFile: boolean }> {\n const composeDir = EnvironmentPaths.resolveDockerComposeDir(env.name);\n const composePath = join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM);\n const envFilePath = join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM);\n // Captured before rendering, so the log can say whether a file was re-derived or created.\n const composeExisted = existsSync(composePath);\n const envFileExisted = existsSync(envFilePath);\n\n // Read ONCE, before either artifact: the compose render projects the same material (the immudb signing key and\n // admin password, the mongot sync-source password), and a render without it is a degraded file, not a current one.\n const credentials = EnvironmentUtils.loadSecretsJson(env.name);\n\n let wroteDockerCompose = false;\n if (!frameworkPath) {\n if (!composeExisted) {\n throw new Error(\n `Cannot render ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} for '${env.name}': no framework path available.\\n`\n + ` The compose template lives under the framework checkout. Re-run with a framework path configured, or run 'wildo config sync --domain manifest' from a workspace that has one.`,\n );\n }\n log.warn(\n ` Left ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} as it is: no framework path to render it from, so it may not `\n + `reflect a recent change. Run 'wildo config sync --domain manifest' from a workspace that has one.`,\n );\n } else if (!credentials && composeExisted) {\n // Rendering now would drop the immudb `--signingKey` block, its admin password and the mongot service, and\n // write that degraded file over a working one (or refuse, for a self-hosted OpenBao). Leave it, as the env\n // file below is left.\n log.warn(\n ` Left ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} as it is: secrets.json is missing or unreadable, so it cannot be checked.`,\n );\n } else {\n wroteDockerCompose = await renderDockerComposeTemplate(env, frameworkPath, isFrameworkDeveloper);\n if (wroteDockerCompose) {\n log.info(\n composeExisted\n ? ` Re-rendered ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM}: one of its inputs changed.`\n : ` Self-healed missing ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} from authored infra descriptor.`,\n );\n }\n }\n\n let wroteEnvFile = false;\n if (!credentials) {\n if (!envFileExisted) {\n throw new Error(\n `Cannot generate ${FILE_NAMES.ENV_WILDO_PLATFORM} for '${env.name}': secrets.json is missing or unreadable.\\n`\n + ` Run 'wildo setup' to author secrets interactively, or restore a known-good secrets.json backup.`,\n );\n }\n log.warn(\n ` Left ${FILE_NAMES.ENV_WILDO_PLATFORM} as it is: secrets.json is missing or unreadable, so it cannot be checked.`,\n );\n } else {\n wroteEnvFile = generateEnvWildoPlatform(env, isFrameworkDeveloper, credentials);\n if (wroteEnvFile) {\n log.info(\n envFileExisted\n ? ` Re-generated ${FILE_NAMES.ENV_WILDO_PLATFORM}: one of its inputs changed.`\n : ` Self-healed missing ${FILE_NAMES.ENV_WILDO_PLATFORM} from authored infra descriptor + secrets.json.`,\n );\n }\n }\n\n return { wroteDockerCompose, wroteEnvFile };\n }\n}\n"]}
1
+ {"version":3,"file":"runtime-bootstrap.service.js","sourceRoot":"","sources":["../../../../src/services/environment/runtime-bootstrap.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAE5B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,GAElB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EACL,iCAAiC,EACjC,mBAAmB,EACnB,0CAA0C,EAC1C,0BAA0B,GAC3B,MAAM,6DAA6D,CAAC;AACrE,OAAO,EACL,wBAAwB,EACxB,2BAA2B,GAC5B,MAAM,wEAAwE,CAAC;AAEhF,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAC1B,MAAM,8DAA8D,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+DAA+D,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,2DAA2D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;YAC1C,2GAA2G;YAC3G,2GAA2G;YAC3G,sBAAsB;YACtB,GAAG,CAAC,IAAI,CACN,UAAU,UAAU,CAAC,6BAA6B,4EAA4E,CAC/H,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,kBAAkB,GAAG,MAAM,2BAA2B,CAAC,GAAG,EAAE,aAAa,EAAE,oBAAoB,CAAC,CAAC;YACjG,IAAI,kBAAkB,EAAE,CAAC;gBACvB,GAAG,CAAC,IAAI,CACN,cAAc;oBACZ,CAAC,CAAC,iBAAiB,UAAU,CAAC,6BAA6B,8BAA8B;oBACzF,CAAC,CAAC,yBAAyB,UAAU,CAAC,6BAA6B,kCAAkC,CACxG,CAAC;YACJ,CAAC;QACH,CAAC;QAED,IAAI,YAAY,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,IAAI,CAAC,cAAc,EAAE,CAAC;gBACpB,MAAM,IAAI,KAAK,CACb,mBAAmB,UAAU,CAAC,kBAAkB,SAAS,GAAG,CAAC,IAAI,6CAA6C;sBAC5G,mGAAmG,CACtG,CAAC;YACJ,CAAC;YACD,GAAG,CAAC,IAAI,CACN,UAAU,UAAU,CAAC,kBAAkB,4EAA4E,CACpH,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,YAAY,GAAG,wBAAwB,CAAC,GAAG,EAAE,oBAAoB,EAAE,WAAW,CAAC,CAAC;YAChF,IAAI,YAAY,EAAE,CAAC;gBACjB,GAAG,CAAC,IAAI,CACN,cAAc;oBACZ,CAAC,CAAC,kBAAkB,UAAU,CAAC,kBAAkB,8BAA8B;oBAC/E,CAAC,CAAC,yBAAyB,UAAU,CAAC,kBAAkB,iDAAiD,CAC5G,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAC;IAC9C,CAAC;CACF","sourcesContent":["/**\n * runtime-bootstrap — headless self-healing pre-flight for `wildo local up`.\n *\n * Background. Before this service existed, the only paths that wrote the\n * Docker Compose runtime artifacts (`config.json`,\n * `docker-compose.wildo-platform.yml`, `.env.wildo-platform`) were:\n * 1. The interactive `wildo setup` flow (rejects `--non-interactive`).\n * 2. The post-bootstrap `wildo config sync --domain manifest` /\n * `wildo config sync` flow, which assumes the artifacts already exist\n * and additionally tries to reach apps-manager (circular: apps-manager\n * cannot start until the compose stack is up, but the compose stack\n * cannot render until config sync ran).\n *\n * That left the \"fresh clone of an existing app + `wildo local up`\" loop\n * stuck on hand-edited `config.json` / `.env.wildo-platform` files — exactly\n * the zero-touch greenfield experience the operator expects.\n *\n * What this service does. Right before `wildo local up` invokes\n * `ContextManager.resolveInfraContext` (which fail-loud-checks the compose\n * file presence), we:\n * - Re-load the authored `wildo.infra.<env>.config.ts` and rehydrate the\n * in-memory env state (`backingServices`, `serviceAuth`, `runtime`,\n * `runtimeEnvironment`, `database`, `publicDomain`, `kubernetes`,\n * `logging`, `observability`, `providerSelection`, `email`, …) so the\n * authored source-of-truth wins over a stale `environments.json` snapshot.\n * - Project the authored config through {@link buildConfigJsonFromInfraEnvConfig} (the same projection\n * `wildo config sync` writes) and write `config.json` when the file is missing or its bytes differ from the\n * projection (#2311). Identical bytes write nothing.\n * - For DOCKER_COMPOSE runtimes only, render the compose template and the `.env.wildo-platform` env file on every\n * run, and write each only when its content differs from the file on disk (#2311). Comparing what the inputs\n * PRODUCE is the one check that is total over them (`config.json`, `secrets.json`, the framework templates, the\n * application's configuration), so an edit to any of them reaches the next start. Same generators\n * `runInfraWrite` calls during the interactive setup flow.\n *\n * Single source of truth. The projection, rendering and env-file generation\n * are all delegated to the existing services — this file only orchestrates.\n * Result: artifacts produced here are byte-identical to the ones a later\n * `wildo config sync --domain manifest` (or interactive `wildo setup`) would\n * produce.\n *\n * Atlas / managed-Mongo guard. When the authored config cannot serve as a\n * `config.json` fallback (today: ATLAS-backed Mongo, which needs API\n * metadata not present in the authored descriptor), we surface the same\n * reason string used by `sync.command.ts` and abort — there is nothing\n * useful we can self-heal in that case.\n *\n * Secrets handling. We never ROTATE `secrets.json` here — rotation is\n * destructive and stays behind `wildo config sync --rotate-secrets`. We DO\n * provision missing framework-managed material (see\n * {@link SecretsProvisioning.ensureForEnvironment}), which is the additive\n * mirror image of everything else this pre-flight does: mint only what is\n * absent, never touch what exists. Without it, a material introduced after an\n * environment was set up never reaches that environment — which is exactly how\n * the immudb state-signing keypair stayed missing and left the audit store's\n * whole-server-substitution defense off. Operator-typed secrets still require\n * interactive authoring: if `secrets.json` is missing entirely, a missing\n * `.env.wildo-platform` throws with a clear hint to run `wildo setup` (or restore\n * from a backup), and existing compose artifacts are left as they are with a warning\n * rather than re-rendered without the material they project.\n *\n * Shared with `wildo config sync`. The authored-infra → generated-config\n * reconciliation primitives ({@link RuntimeBootstrap.refreshEnvFromAuthored}\n * + the config.json projection write) are ALSO the source of truth for\n * `config sync`, exposed via {@link RuntimeBootstrap.reconcileGeneratedConfigFromAuthored}.\n * The two callers differ ONLY in write policy:\n * - `local up` self-heal ({@link RuntimeBootstrap.ensureLocalRuntimeArtifacts})\n * writes config.json when it is missing or differs from the projection, and the compose artifacts when missing\n * or when their inputs changed — an idempotent pre-flight that must not churn `environments.json`'s `updatedAt`\n * or the compose file on an unchanged descriptor.\n * - `config sync` reconcile ALWAYS brings config.json to the authored\n * projection — it is an explicit \"make authored infra the source of truth\"\n * command, so a stale-but-present config.json (e.g. a pre-`backingServices`\n * snapshot missing a newly-authored `immudb` service) is deterministically\n * rewritten before the compose / env-file steps read it. Identical bytes are\n * not rewritten, so its mtime moves only when its content does.\n */\n\nimport { existsSync, readFileSync, writeFileSync } from 'fs';\nimport { join } from 'path';\n\nimport {\n PUBLIC_DOMAIN_DEFAULTS,\n WildoDeploymentRuntime,\n WildoLocationType,\n type WildoInfraEnvConfig,\n} from '@wildo-ai/platform-config-lib';\n\nimport { FILE_NAMES } from '~wildo-cli/infrastructure/io/io.schemas';\nimport { FileUtils } from '~wildo-cli/infrastructure/io/file.utils';\nimport {\n buildConfigJsonFromInfraEnvConfig,\n serializeConfigJson,\n getUnsupportedAuthoredConfigFallbackReason,\n loadAuthoredInfraEnvConfig,\n} from '~wildo-cli/services/environment/authored-infra-config.utils';\nimport {\n generateEnvWildoPlatform,\n renderDockerComposeTemplate,\n} from '~wildo-cli/services/deployment/docker/docker-compose-generator.service';\nimport type { FrameworkManagedSecretMaterialRef } from '~wildo-cli/services/credentials/framework-managed-secrets';\nimport {\n SecretsProvisioning,\n SecretsProvisioningStatus,\n} from '~wildo-cli/services/credentials/secrets-provisioning.service';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\nimport { EnvironmentPaths } from '~wildo-cli/services/environment/environment-paths.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport type { Logger } from '~wildo-cli/kernel/types';\nimport type { PlatformEnvConfigJson } from '~wildo-cli/services/credentials/credentials.schemas';\nimport type { PlatformEnvironmentConfiguration } from '~wildo-cli/services/environment/environment.schemas';\n\n/**\n * Summary of what the runtime-bootstrap pre-flight wrote on disk during this\n * invocation. Returned to call sites so they can decide whether to log a\n * \"self-healed N artifacts\" line and so tests can assert on the exact\n * deltas without inspecting the filesystem twice.\n */\nexport interface RuntimeBootstrapResult {\n /** Authored env state was re-projected onto `environments.json`. */\n refreshedEnvState: boolean;\n /** `config.json` was written: it was missing, or its bytes differed from the authored projection (#2311). */\n wroteConfigJson: boolean;\n /**\n * Docker Compose template was written: it was missing, or its rendered content differed from the file on disk\n * because one of its inputs changed (#2311). The files it bind-mounts are re-materialized on every run either way.\n */\n wroteDockerCompose: boolean;\n /** `.env.wildo-platform` was written: it was missing, or its generated content differed from the file on disk (#2311). */\n wroteEnvFile: boolean;\n /**\n * Framework-managed credential materials that were absent from `secrets.json` and have\n * just been minted (empty on a fully provisioned environment). The compose render and the platform env file then\n * differ from what is on disk wherever they project that material, so they are rewritten with it.\n */\n mintedSecretMaterials: FrameworkManagedSecretMaterialRef[];\n}\n\nconst NO_OP_RESULT: RuntimeBootstrapResult = {\n refreshedEnvState: false,\n wroteConfigJson: false,\n wroteDockerCompose: false,\n wroteEnvFile: false,\n mintedSecretMaterials: [],\n};\n\n\n/**\n * Pre-flight ensures the runtime artifacts `wildo local up` depends on\n * exist on disk for the given environment, generating them from the\n * authored `wildo.infra.<env>.config.ts` when missing, and re-deriving\n * each from its input when that input changed (#2311). See file header for\n * the full rationale.\n *\n * Pre-conditions:\n * - `env` is the in-memory environment from `ctx.activeEnv` (already\n * seeded by `ExistingAppBootstrapService`).\n * - `saasRoot` is the resolved targeted-app declaration root.\n *\n * Post-conditions on success:\n * - In-memory env state mirrors the authored infra descriptor.\n * - `config.json` exists in the env's resolved config dir.\n * - For DOCKER_COMPOSE runtimes, the compose render and\n * `.env.wildo-platform` exist in the env's docker-compose dir.\n *\n * Throws when the authored descriptor is missing (the operator must\n * author or restore one) or when secrets are required and absent.\n */\nexport interface RuntimeBootstrapInput {\n env: PlatformEnvironmentConfiguration;\n saasRoot: string;\n /**\n * Framework checkout root — required only for `DOCKER_COMPOSE` runtimes\n * because the compose template render needs to locate the Handlebars\n * template directory under the framework repo. Pass `null` if not\n * available; for K8s envs this preflight does not need it.\n */\n frameworkPath: string | null;\n isFrameworkDeveloper: boolean;\n log: Logger;\n}\n\n/**\n * Outcome of {@link RuntimeBootstrap.reconcileGeneratedConfigFromAuthored}.\n * A TS enum (not a literal-string union) so callers get autocomplete +\n * refactor-safety when branching on the result.\n */\nexport enum RuntimeConfigReconcileStatus {\n /** Env-state + `config.json` were regenerated from the authored descriptor. */\n RECONCILED = 'reconciled',\n /** Env is not LOCAL — remote/CI keep their generated / reconstructed config.json. */\n SKIPPED_NON_LOCAL = 'skipped-non-local',\n /** No authored `wildo.infra.<env>.config.ts` exists to reconcile from. */\n NO_AUTHORED_CONFIG = 'no-authored-config',\n /**\n * Authored descriptor cannot fully serve as the config.json source of truth\n * (today: Atlas-backed Mongo, whose generated config.json carries API\n * metadata + external endpoints the authored descriptor omits). The existing\n * generated config.json is left untouched.\n */\n SKIPPED_UNSUPPORTED = 'skipped-unsupported',\n}\n\nexport type RuntimeConfigReconcileResult =\n | {\n status: RuntimeConfigReconcileStatus.RECONCILED;\n /**\n * True when the persisted env-registry snapshot actually changed\n * (conservative diff) — false when the env was already current and only\n * `config.json` was brought current. (For RECONCILED config.json always\n * ends up as the authored projection, written only when its bytes differ,\n * so there is no separate flag for it.)\n */\n refreshedEnvState: boolean;\n }\n | { status: RuntimeConfigReconcileStatus.SKIPPED_NON_LOCAL }\n | { status: RuntimeConfigReconcileStatus.NO_AUTHORED_CONFIG }\n | { status: RuntimeConfigReconcileStatus.SKIPPED_UNSUPPORTED; reason: string };\n\n/** A kept `config.json`'s top-level members, for naming what changed; unreadable reads as empty (it is rewritten). */\nfunction parseConfigJsonOrEmpty(bytes: string): Record<string, unknown> {\n try {\n const parsed: unknown = JSON.parse(bytes);\n return parsed !== null && typeof parsed === 'object' ? parsed as Record<string, unknown> : {};\n } catch {\n return {};\n }\n}\n\nexport class RuntimeBootstrap {\n /**\n * Reconcile the two generated INPUTS that `wildo config sync` (and the\n * compose / env-file renderers it drives) read as the source of truth for\n * backing services / ports / sources:\n * - the persisted env-registry snapshot (`environments.json`), refreshed\n * in place via {@link RuntimeBootstrap.refreshEnvFromAuthored}; and\n * - the generated `config.json`, ALWAYS brought to the authored\n * `wildo.infra.<env>.config.ts` projection (written only when its bytes differ).\n *\n * Root fix for the stale-config-json bug: `config sync` used to read a\n * generated `config.json` (and `environments.json`) that it never refreshed\n * from the authored descriptor, so an authored change (e.g. adding an\n * `immudb` backing service) never reached the generated docker-compose.\n * Calling this BEFORE any sync domain consumes those inputs makes the\n * authored `.ts` the deterministic source of truth every run.\n *\n * Unlike {@link RuntimeBootstrap.ensureLocalRuntimeArtifacts} (the `local up`\n * self-heal) this does NOT render the compose / env-file artifacts — it only\n * refreshes their inputs. It also does NOT touch remote/CI environments,\n * which legitimately reconstruct `config.json` from env vars / a sibling\n * secrets repo (see the LOCAL guard below and the Atlas carve-out).\n *\n * Fail-soft by contract: returns a status the caller inspects; never throws\n * for the \"no authored descriptor\" or \"Atlas\" cases. It DOES surface a throw\n * from {@link loadAuthoredInfraEnvConfig} (broken / env-mismatched `.ts`) so\n * the caller can decide — `config sync` treats authored-load/schema failures\n * as fatal and does not run later domains against an old snapshot. Logging is intentionally the\n * caller's concern (it emits status-specific messages off the returned\n * result), so no `log` is taken here.\n */\n static async reconcileGeneratedConfigFromAuthored(input: {\n env: PlatformEnvironmentConfiguration;\n saasRoot: string;\n }): Promise<RuntimeConfigReconcileResult> {\n const { env, saasRoot } = input;\n\n if (env.locationType !== WildoLocationType.LOCAL) {\n return { status: RuntimeConfigReconcileStatus.SKIPPED_NON_LOCAL };\n }\n\n const loaded = await loadAuthoredInfraEnvConfig(env.name, saasRoot);\n if (!loaded) {\n return { status: RuntimeConfigReconcileStatus.NO_AUTHORED_CONFIG };\n }\n\n const fallbackReason = getUnsupportedAuthoredConfigFallbackReason(\n env.name,\n loaded.path,\n loaded.config,\n );\n if (fallbackReason) {\n return { status: RuntimeConfigReconcileStatus.SKIPPED_UNSUPPORTED, reason: fallbackReason };\n }\n\n const refreshedEnvState = RuntimeBootstrap.refreshEnvFromAuthored(env, loaded.config);\n RuntimeBootstrap.writeConfigJsonFromAuthored(env, loaded.config);\n\n return {\n status: RuntimeConfigReconcileStatus.RECONCILED,\n refreshedEnvState,\n };\n }\n\n static async ensureLocalRuntimeArtifacts(\n input: RuntimeBootstrapInput,\n ): Promise<RuntimeBootstrapResult> {\n const { env, saasRoot, frameworkPath, isFrameworkDeveloper, log } = input;\n\n if (env.locationType !== WildoLocationType.LOCAL) {\n return NO_OP_RESULT;\n }\n\n const loaded = await loadAuthoredInfraEnvConfig(env.name, saasRoot);\n if (!loaded) {\n throw new Error(\n `Cannot bootstrap runtime artifacts for '${env.name}': no authored infra descriptor found.\\n`\n + ` Expected: <saasRoot>/infrastructure/${env.name}/wildo.infra.${env.name === 'local' ? 'local' : 'remote'}.config.ts`,\n );\n }\n\n const fallbackReason = getUnsupportedAuthoredConfigFallbackReason(\n env.name,\n loaded.path,\n loaded.config,\n );\n if (fallbackReason) {\n throw new Error(`${fallbackReason}\\n Run 'wildo setup' to author '${env.name}' interactively.`);\n }\n\n const refreshedEnvState = RuntimeBootstrap.refreshEnvFromAuthored(env, loaded.config);\n\n const wroteConfigJson = RuntimeBootstrap.ensureConfigJson(env, loaded.config, log);\n\n // Mint any framework-managed credential material this environment predates, BEFORE\n // the compose render / env-file generation read `secrets.json` — those artifacts\n // project the material (e.g. the immudb `--signingKey` mount), so provisioning after\n // them would leave the freshly minted key stranded until the next command.\n const mintedSecretMaterials = RuntimeBootstrap.provisionFrameworkManagedSecrets(env, log);\n\n let wroteDockerCompose = false;\n let wroteEnvFile = false;\n\n // A HOSTED environment renders no compose project and no `.env.wildo-platform`: both are its host's,\n // and a render here would describe the host's containers over this application's `local_data`.\n if (env.runtime === WildoDeploymentRuntime.DOCKER_COMPOSE && loaded.config.infrastructureHost === undefined) {\n const composeArtifacts = await RuntimeBootstrap.ensureDockerComposeArtifacts(\n env,\n frameworkPath,\n isFrameworkDeveloper,\n // Rendered on every run, newly minted secret material and a `local_data` reset included: the\n // comparison of the rendered content sees every input, and the render re-materializes the files\n // compose bind-mounts (the immudb signing key, the mongot password) each time (#2311).\n log,\n );\n wroteDockerCompose = composeArtifacts.wroteDockerCompose;\n wroteEnvFile = composeArtifacts.wroteEnvFile;\n }\n\n return {\n refreshedEnvState,\n wroteConfigJson,\n wroteDockerCompose,\n wroteEnvFile,\n mintedSecretMaterials,\n };\n }\n\n /**\n * Additive `secrets.json` self-heal: mint every framework-managed credential material\n * the environment is missing and persist it. Returns the minted material refs so the\n * caller can invalidate the derived artifacts that project them.\n *\n * Fail-soft. A missing/unreadable `secrets.json` is NOT handled here — the downstream\n * compose step refuses a MISSING `.env.wildo-platform` with the actionable \"run `wildo setup`\"\n * message (and leaves existing artifacts alone with a warning), and pre-empting it with a\n * second error would only bury that guidance.\n */\n private static provisionFrameworkManagedSecrets(\n env: PlatformEnvironmentConfiguration,\n log: Logger,\n ): FrameworkManagedSecretMaterialRef[] {\n const outcome = SecretsProvisioning.ensureForEnvironment(env.name);\n if (outcome.status !== SecretsProvisioningStatus.PROVISIONED) {\n return [];\n }\n\n log.info(\n ` Provisioned ${outcome.mintedRefs.length} missing framework-managed secret material(s) for '${env.name}': `\n + `${outcome.mintedRefs.join(', ')}.`,\n );\n return outcome.mintedRefs;\n }\n\n /**\n * Rehydrate the in-memory env from the authored infra descriptor so a\n * stale `environments.json` cannot mask a fresh authored change. We\n * mutate in place AND persist via {@link EnvironmentLifecycle.updateEnvironmentState}\n * so subsequent reads (compose generator, env-vars builder, address\n * resolver) all see the same source-of-truth.\n *\n * Conservative diff. We only persist when at least one tracked field\n * actually changed — re-running `wildo local up` against a fully synced\n * state must remain a no-op so we don't churn `environments.json`'s\n * `updatedAt` on every invocation.\n *\n * For some members OMISSION from the descriptor is authoritative: removed there, they are cleared from the record\n * too, so hydration cannot bring a removed value back. Each is read by what the same command renders next, so a\n * stale copy acts on the wrong target:\n *\n * - `infrastructureHost`, the environment's infrastructure OWNER: a copy describing the previous owner steers the\n * next render, readiness probe and registration at the wrong substrate.\n * - `email`, the shared receiving domain, projected into `WILDO_INBOUND_EMAIL_SHARED_DOMAIN`: a stale copy keeps\n * routing mail to a domain the descriptor no longer names.\n * - `agentContentGuardrails`, projected into `WILDO_AGENT_CONTENT_GUARDRAILS`: a stale copy keeps running agents\n * unguarded after the descriptor stopped saying so, or, removed, keeps refusing after it started.\n * - `ownershipDnsStandIn`, projected into `WILDO_OWNERSHIP_DNS_STAND_IN_URL` (local-only, #2519): a stale copy keeps\n * answering domain-ownership challenges from a double the descriptor no longer names, or, removed from the\n * descriptor, keeps verifying domains against one at all.\n * - `logging`, `observability`, `providerSelection`, projected into `LOG_LEVEL`, the `OTEL_*` variables and\n * `WILDO_PROVIDER_SELECTION_OVERRIDES`: a stale copy keeps a level, an exporter or a provider choice the\n * descriptor no longer makes.\n * - `serviceHosts`, the per-service subdomains projected into `WILDO_SERVICE_HOSTS` (and, on a remote lane, into\n * `APPLICATION_RUNTIME_ENDPOINTS`): a stale copy addresses a service at a host the descriptor no longer gives it.\n * - `platformKeyManagement` (#2933), projected into apps-manager's `PLATFORM_KEY_VAULT_*` and deciding whether the\n * platform runs its own OpenBao: a stale copy keeps apps-manager pointed at a Vault the descriptor no longer names.\n * - `serviceAuth`, the service-to-service policy: a removed policy must stop applying.\n *\n * REMOVAL matters as much as change, because hydration (`hydrateEnvironmentFromConfig`, `loadInfraHydratedConfig`)\n * falls back from one copy to the other: a field one copy still holds comes back. A new authored member that an\n * `.env` builder reads, and that only the descriptor decides, joins this set. Every writer of these registry fields\n * derives them from the descriptor (this method; `wildo setup` seeds `logging` from it; the CI path builds its record\n * from `config.json`), which is what makes omission authoritative safe.\n *\n * The set used to be a hand-kept constant, `CONFIG_JSON_FIELDS_TRACKING_AUTHORED`, which also decided when\n * `config.json` was rewritten. That is how #2311 happened: a kept `config.json` was rewritten only when one of those\n * members diverged, so every other member the `.env` builders read (`backingServices`, `publicDomain`, …) kept its\n * value from the last `wildo config sync`. `ensureConfigJson` now compares the whole projection, the constant had no\n * reader left, and it was removed (it had already missed `serviceAuth`).\n *\n * Both mechanisms are local-only. A REMOTE environment gets the same answer another way (#2310):\n * `ConfigSyncCommand.loadConfigForSync` lays every member the descriptor decides over its persisted `config.json`\n * (`overlayAuthoredInfraMembers`, driven by `AUTHORED_INFRA_MEMBER_AUTHORITY`), and `hydrateEnvironmentFromConfig`\n * then takes those members from that `config.json`, absence included, so this record's copy cannot win either.\n */\n private static refreshEnvFromAuthored(\n env: PlatformEnvironmentConfiguration,\n authored: WildoInfraEnvConfig,\n ): boolean {\n const seededRuntime = authored.runtime ?? env.runtime;\n const seededRuntimeEnvironment = authored.runtimeEnvironment ?? env.runtimeEnvironment;\n const seededPublicDomain = authored.publicDomain\n ?? env.publicDomain\n ?? (seededRuntime === WildoDeploymentRuntime.KUBERNETES\n ? PUBLIC_DOMAIN_DEFAULTS.LOCAL_K8S\n : PUBLIC_DOMAIN_DEFAULTS.LOCAL_COMPOSE);\n\n const next: PlatformEnvironmentConfiguration = {\n ...env,\n runtime: seededRuntime,\n runtimeEnvironment: seededRuntimeEnvironment,\n publicDomain: seededPublicDomain,\n /**\n * Always defined on the authored descriptor — its transform resolves the `locationType`\n * default — so there is no `?? env.` fallback to write here, unlike `runtime` above. Paired\n * with the `diffSelector` entry, per the rule stated there.\n */\n localDataStorage: authored.localDataStorage,\n /** Always defined on the authored descriptor (its transform resolves `FULL`). Paired with `diffSelector` (#2303). */\n serviceProfile: authored.serviceProfile,\n /**\n * The platform's database engine, when the environment AUTHORS one.\n *\n * `database` is only optional on the authored descriptor — every environment that does not\n * declare it keeps the engine it already had, which is what preserves the behaviour of every\n * environment created before the field existed. It is REQUIRED on the registry record, so the\n * fallback is `env.database` rather than `undefined`.\n *\n * This matters more than the other fields here because of an asymmetry in the two consumers\n * of the choice: `needsLocalMongoDB` / `needsLocalPostgreSQL` resolve the PLATFORM half via\n * `getDatabaseChoice(env.name)`, i.e. from the PERSISTED registry, while taking the\n * `backingServices` half from the in-memory env they are handed. So the container-rendering\n * decisions read this record, not the caller's snapshot — an authored engine that never\n * lands here is invisible to compose, to the K8s catalog, and to `local_data` pre-creation,\n * while the env-var builders (which read `config.json`) would already have moved.\n */\n database: authored.database ?? env.database,\n // Omission is authoritative: an environment that stops naming a host owns its infrastructure again.\n infrastructureHost: authored.infrastructureHost,\n // Authored `kubernetes` carries `{ namespace, ingressClass? }` but\n // the CLI runtime shape (`PlatformEnvironmentKubernetesConfig`) is\n // `{ namespace, imageRegistry? }`. The runtime `imageRegistry` is\n // computed at setup-time (see `environment-setup.service.ts` →\n // `KIND_CLUSTER_DEFAULTS.REGISTRY_PORT`) and has no authored\n // counterpart, so we only project `namespace` and preserve the\n // existing `imageRegistry` from the in-memory env state. Authored\n // `ingressClass` is not mirrored: authored and persisted config accept\n // only the Traefik controller installed by Wildo. The manifest renderer\n // uses that canonical supported class rather than a runtime override.\n kubernetes: authored.kubernetes\n ? {\n namespace: authored.kubernetes.namespace,\n imageRegistry: env.kubernetes?.imageRegistry,\n }\n : env.kubernetes,\n // Omission is authoritative; see the posture blocks below.\n serviceHosts: authored.serviceHosts,\n // Omission is authoritative (#2310): a CDN entry removed from the descriptor must return its route to the ingress.\n cdn: authored.cdn,\n backingServices: authored.backingServices ?? env.backingServices,\n // Omission is authoritative: never resurrect a removed policy from the registry cache.\n serviceAuth: authored.serviceAuth,\n /*\n * Omission is authoritative for these members (the method's JSDoc says why, per member): removing a log level,\n * an exporter, a provider choice, the receiving-domain override or a service host from the infra config must\n * stop it. Falling back to `env` kept the registry's copy (this record IS the registry's cached object, saved\n * whole by the next update), and hydration's `config.x ?? env.x` then brought it back into every `.env`, through\n * `wildo config sync` as well as `wildo local dev`. Every writer of these fields derives them from the authored\n * descriptor (`wildo setup` seeds them from it), so `undefined` here means \"not authored\", never \"not known\".\n */\n logging: authored.logging,\n observability: authored.observability,\n providerSelection: authored.providerSelection,\n email: authored.email,\n agentContentGuardrails: authored.agentContentGuardrails,\n ownershipDnsStandIn: authored.ownershipDnsStandIn,\n platformKeyManagement: authored.platformKeyManagement,\n };\n\n const changed = JSON.stringify(RuntimeBootstrap.diffSelector(env))\n !== JSON.stringify(RuntimeBootstrap.diffSelector(next));\n\n if (!changed) {\n return false;\n }\n\n Object.assign(env, next);\n EnvironmentLifecycle.updateEnvironmentState(env);\n EnvironmentUtils.invalidateCache();\n return true;\n }\n\n /**\n * Selects only the fields {@link refreshEnvFromAuthored} mutates so the\n * change-detection JSON diff stays narrow and stable (avoids false\n * positives from `updatedAt` / `setupStatus` churn).\n */\n private static diffSelector(env: PlatformEnvironmentConfiguration): Record<string, unknown> {\n return {\n runtime: env.runtime,\n runtimeEnvironment: env.runtimeEnvironment,\n publicDomain: env.publicDomain,\n /**\n * Paired with the `localDataStorage` projection in {@link refreshEnvFromAuthored}. Flipping\n * an environment's storage mode is a ONE-LINE authored edit and frequently the only one in\n * its change, so omitting it here is precisely the \"copied but not diffed\" case the rule\n * above describes: the refresh would return `false` and the new mode would never reach the\n * environment or the compose file rendered from it.\n */\n localDataStorage: env.localDataStorage,\n /** Paired with the `serviceProfile` projection above: a profile flip is often a one-line change (#2303). */\n serviceProfile: env.serviceProfile,\n /**\n * Every field this projects must ALSO be part of what `refreshEnvFromAuthored` DETECTS, not\n * merely part of what it copies. A field that is copied but not diffed makes a change\n * touching only that field read as unchanged, so the refresh returns `false` and the authored\n * value never reaches the environment at all. Add to both lists, or to neither.\n */\n serviceHosts: env.serviceHosts,\n cdn: env.cdn,\n kubernetes: env.kubernetes,\n /**\n * Paired with the `database` projection in {@link refreshEnvFromAuthored} — the rule above is\n * not advisory. An authored engine flip is frequently the ONLY edit in its change (it is one\n * line), so omitting it here would make precisely the change this field exists to express\n * diff as unchanged, return `false`, and never reach `updateEnvironmentState`.\n */\n database: env.database,\n infrastructureHost: env.infrastructureHost,\n backingServices: env.backingServices,\n serviceAuth: env.serviceAuth,\n logging: env.logging,\n observability: env.observability,\n providerSelection: env.providerSelection,\n email: env.email,\n agentContentGuardrails: env.agentContentGuardrails,\n ownershipDnsStandIn: env.ownershipDnsStandIn,\n platformKeyManagement: env.platformKeyManagement,\n };\n }\n\n /**\n * Write `config.json` from the authored infra descriptor when it is missing or its bytes differ from the projection\n * (idempotent self-heal for `local up` / `local dev`).\n *\n * Keyed on the WHOLE projection (#2311). `config.json` is a cache of the descriptor: `wildo config sync` overwrites a\n * local one with this same projection every time, so a file that differs from it is stale by definition, whichever\n * member differs. Keying on a hand-kept list of members left every other one (`backingServices`, `publicDomain`, …)\n * at its last-synced value, read by the `.env` builders and preferred by hydration. Identical bytes write nothing,\n * so an unchanged descriptor churns nothing. Members only `wildo setup` writes (`externalServices`, `externalEndpoints`,\n * `atlas`) go with the first rewrite, as with `config sync`: on a LOCAL environment `externalServices` names only\n * the self-hosted providers (every reader tests for a non-default one), `externalEndpoints` and `atlas` are Atlas-only,\n * and Atlas is refused locally (`getUnsupportedAuthoredConfigFallbackReason`).\n */\n private static ensureConfigJson(\n env: PlatformEnvironmentConfiguration,\n authored: WildoInfraEnvConfig,\n log: Logger,\n ): boolean {\n const configPath = join(EnvironmentPaths.resolveConfigDir(env.name), FILE_NAMES.CONFIG_JSON);\n if (existsSync(configPath)) {\n const projected = buildConfigJsonFromInfraEnvConfig(authored);\n const current = readFileSync(configPath, 'utf8');\n if (current === serializeConfigJson(projected)) {\n return false;\n }\n const persisted = parseConfigJsonOrEmpty(current);\n const diverged = [...new Set([...Object.keys(persisted), ...Object.keys(projected)])].filter(\n (field) => JSON.stringify(persisted[field] ?? null) !== JSON.stringify((projected as Record<string, unknown>)[field] ?? null),\n );\n RuntimeBootstrap.writeConfigJsonFromAuthored(env, authored);\n if (diverged.includes('infrastructureHost')) {\n log.info(\n authored.infrastructureHost\n ? ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now runs on the infrastructure of ${authored.infrastructureHost.applicationRoot}.`\n : ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now owns its infrastructure.`,\n );\n }\n if (diverged.includes('email')) {\n const sharedDomain = authored.email?.inbound?.sharedDomain;\n log.info(\n sharedDomain\n ? ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now receives email at ${sharedDomain}.`\n : ` Rewrote ${FILE_NAMES.CONFIG_JSON}: this environment now receives email at the backend configuration's shared domain.`,\n );\n }\n const otherFields = diverged.filter((field) => field !== 'infrastructureHost' && field !== 'email');\n if (otherFields.length > 0) {\n log.info(` Rewrote ${FILE_NAMES.CONFIG_JSON}: the authored ${otherFields.join(', ')} changed.`);\n } else if (diverged.length === 0) {\n log.info(` Rewrote ${FILE_NAMES.CONFIG_JSON} to the authored projection (its layout differed).`);\n }\n return true;\n }\n\n RuntimeBootstrap.writeConfigJsonFromAuthored(env, authored);\n log.info(` Self-healed missing ${FILE_NAMES.CONFIG_JSON} from authored infra descriptor.`);\n return true;\n }\n\n /**\n * Project the authored infra descriptor into the persisted `config.json`\n * shape and write it, invalidating the config cache so the next read\n * returns the fresh shape.\n *\n * Uses the shared {@link buildConfigJsonFromInfraEnvConfig} projection — the\n * single source of truth also used by the `local up` self-heal and the\n * `loadConfigForSync` authored fallback. Callers own the write-policy\n * decision (missing or bytes differ, vs. always).\n *\n * Identical bytes are NOT rewritten, even for an \"always\" caller (`wildo config sync`, `wildo dev start`), so the\n * file's mtime moves only when its content does and nothing that dates artifacts reads a change that did not happen\n * (#2311). The compose artifacts derived from it compare their own rendered content, so they do not depend on this.\n */\n private static writeConfigJsonFromAuthored(\n env: PlatformEnvironmentConfiguration,\n authored: WildoInfraEnvConfig,\n ): void {\n const configDir = EnvironmentPaths.resolveConfigDir(env.name);\n const projected = buildConfigJsonFromInfraEnvConfig(authored);\n FileUtils.ensureDirectoryExists(configDir);\n const configPath = join(configDir, FILE_NAMES.CONFIG_JSON);\n const bytes = serializeConfigJson(projected);\n if (!existsSync(configPath) || readFileSync(configPath, 'utf8') !== bytes) {\n writeFileSync(configPath, bytes);\n }\n EnvironmentUtils.invalidateCache();\n }\n\n /**\n * Ensure the Docker Compose runtime artifacts exist and are current:\n * - `docker-compose.wildo-platform.yml` (template render)\n * - `.env.wildo-platform` (infra credentials env file)\n *\n * Both delegate to the same generators that `runInfraWrite` calls in the\n * interactive setup flow, so the rendered artifacts match exactly.\n *\n * Both are rendered on EVERY run, and each generator writes only when its content differs from the file on disk\n * (#2311). That is total over their inputs by construction. The previous triggers were each keyed on ONE input and\n * missed the rest: \"missing\", \"this run minted secret material\" (blind to a hand edit of `secrets.json`), \"older\n * than `config.json`\" (blind to `secrets.json` and to the framework template), and a predicate for one bind-mounted\n * file (blind to the mongot password beside it). Rejected: an mtime check over a list of inputs, because the list is\n * what rots (the render also reads the application's minion and worker configuration, and the template directory).\n *\n * Without a framework path (no framework checkout to render the template from) an EXISTING compose file is left as\n * it is and said so: refusing would stop `wildo local dev` on a file that may well be current, and the remedy,\n * `wildo config sync --domain manifest` from a workspace with a framework path, needs nothing this run holds. A\n * MISSING one still refuses, because `docker compose up` cannot run without it. When `secrets.json` cannot be read,\n * both EXISTING artifacts are left alone with a warning (re-rendering them would drop the material they project),\n * and a missing `.env.wildo-platform` refuses.\n */\n private static async ensureDockerComposeArtifacts(\n env: PlatformEnvironmentConfiguration,\n frameworkPath: string | null,\n isFrameworkDeveloper: boolean,\n log: Logger,\n ): Promise<{ wroteDockerCompose: boolean; wroteEnvFile: boolean }> {\n const composeDir = EnvironmentPaths.resolveDockerComposeDir(env.name);\n const composePath = join(composeDir, FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM);\n const envFilePath = join(composeDir, FILE_NAMES.ENV_WILDO_PLATFORM);\n // Captured before rendering, so the log can say whether a file was re-derived or created.\n const composeExisted = existsSync(composePath);\n const envFileExisted = existsSync(envFilePath);\n\n // Read ONCE, before either artifact: the compose render projects the same material (the immudb signing key and\n // admin password, the mongot sync-source password), and a render without it is a degraded file, not a current one.\n const credentials = EnvironmentUtils.loadSecretsJson(env.name);\n\n let wroteDockerCompose = false;\n if (!frameworkPath) {\n if (!composeExisted) {\n throw new Error(\n `Cannot render ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} for '${env.name}': no framework path available.\\n`\n + ` The compose template lives under the framework checkout. Re-run with a framework path configured, or run 'wildo config sync --domain manifest' from a workspace that has one.`,\n );\n }\n log.warn(\n ` Left ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} as it is: no framework path to render it from, so it may not `\n + `reflect a recent change. Run 'wildo config sync --domain manifest' from a workspace that has one.`,\n );\n } else if (!credentials && composeExisted) {\n // Rendering now would drop the immudb `--signingKey` block, its admin password and the mongot service, and\n // write that degraded file over a working one (or refuse, for a self-hosted OpenBao). Leave it, as the env\n // file below is left.\n log.warn(\n ` Left ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} as it is: secrets.json is missing or unreadable, so it cannot be checked.`,\n );\n } else {\n wroteDockerCompose = await renderDockerComposeTemplate(env, frameworkPath, isFrameworkDeveloper);\n if (wroteDockerCompose) {\n log.info(\n composeExisted\n ? ` Re-rendered ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM}: one of its inputs changed.`\n : ` Self-healed missing ${FILE_NAMES.DOCKER_COMPOSE_WILDO_PLATFORM} from authored infra descriptor.`,\n );\n }\n }\n\n let wroteEnvFile = false;\n if (!credentials) {\n if (!envFileExisted) {\n throw new Error(\n `Cannot generate ${FILE_NAMES.ENV_WILDO_PLATFORM} for '${env.name}': secrets.json is missing or unreadable.\\n`\n + ` Run 'wildo setup' to author secrets interactively, or restore a known-good secrets.json backup.`,\n );\n }\n log.warn(\n ` Left ${FILE_NAMES.ENV_WILDO_PLATFORM} as it is: secrets.json is missing or unreadable, so it cannot be checked.`,\n );\n } else {\n wroteEnvFile = generateEnvWildoPlatform(env, isFrameworkDeveloper, credentials);\n if (wroteEnvFile) {\n log.info(\n envFileExisted\n ? ` Re-generated ${FILE_NAMES.ENV_WILDO_PLATFORM}: one of its inputs changed.`\n : ` Self-healed missing ${FILE_NAMES.ENV_WILDO_PLATFORM} from authored infra descriptor + secrets.json.`,\n );\n }\n }\n\n return { wroteDockerCompose, wroteEnvFile };\n }\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { spawnSync } from 'child_process';
1
2
  /** OCI annotation keys (image-spec `annotations.md`, dead-plan-citation: the OCI spec's own file), used here as build labels. */
2
3
  export declare const FRAMEWORK_IMAGE_REVISION_LABEL = "org.opencontainers.image.revision";
3
4
  export declare const FRAMEWORK_IMAGE_CREATED_LABEL = "org.opencontainers.image.created";
@@ -16,6 +17,49 @@ export declare const FRAMEWORK_IMAGE_SOURCE_LABEL = "org.opencontainers.image.so
16
17
  * `imagetools create` carries them along when an alias is repointed at the index.
17
18
  */
18
19
  export declare const FRAMEWORK_IMAGE_ATTESTATION_ARGS: readonly ["--provenance=mode=max", "--sbom=true"];
20
+ /**
21
+ * How a pushed framework image is signed (#3063). Chosen by the environment that runs the lane, never by the lane
22
+ * itself: keyless signing needs a workload identity (the release job's GitHub OIDC token), which a developer machine
23
+ * running the break-glass `wildo fwk release` does not have.
24
+ */
25
+ export declare enum FrameworkImageSigning {
26
+ /**
27
+ * `cosign sign --yes <repository>@<digest>`: a short-lived Fulcio certificate bound to the release workflow's identity,
28
+ * the signature recorded in the Rekor transparency log and stored beside the image index in the registry, then
29
+ * `cosign verify` against that identity. Signs the DIGEST of the index buildx pushed, never a tag, so what is signed is
30
+ * exactly what was built. An alias (`latest`) is covered only while it names that same index: `imagetools create` from
31
+ * one index source keeps the index as it is, so its digest is the signed one.
32
+ *
33
+ * The certificate puts the repository, the workflow, its ref, the commit and the run in the public Rekor log for good.
34
+ * The image's own OCI labels already publish the source URL and the revision.
35
+ */
36
+ COSIGN_KEYLESS = "cosign_keyless"
37
+ }
38
+ /** The environment variable a release environment sets to a {@link FrameworkImageSigning} member. Unset: no signing. */
39
+ export declare const FRAMEWORK_IMAGE_SIGNING_ENV = "WILDO_FRAMEWORK_IMAGE_SIGNING";
40
+ /** The OIDC issuer of a GitHub Actions workload identity: the issuer of every keyless certificate the release signs with. */
41
+ export declare const GITHUB_ACTIONS_OIDC_ISSUER = "https://token.actions.githubusercontent.com";
42
+ /**
43
+ * The identity a keyless signature made in this job carries, as `cosign verify --certificate-identity` takes it:
44
+ * `https://github.com/<owner>/<repo>/<workflow path>@<ref>`, from `GITHUB_WORKFLOW_REF`. Undefined outside Actions.
45
+ */
46
+ export declare function githubWorkflowSigningIdentityOf(env?: NodeJS.ProcessEnv): string | undefined;
47
+ /** What became of one image's signature. */
48
+ export declare enum FrameworkImageSignatureOutcome {
49
+ /** Signed by digest. */
50
+ SIGNED = "signed",
51
+ /** The environment asked for no signing (a developer machine running the break-glass release). */
52
+ NOT_REQUESTED = "not_requested",
53
+ /**
54
+ * Asked for and not proven: no workload identity to sign as (`GITHUB_WORKFLOW_REF` unset), the pushed digest unreadable,
55
+ * cosign absent or refusing to sign, or a signature made that `cosign verify` did not confirm. The image is already public, so
56
+ * the release does not stop on it (a consumer's `cosign verify` reports the missing signature, a false claim is not
57
+ * made); the lane reports it, and the image is signed by hand with the command named in `reason`.
58
+ */
59
+ FAILED = "failed"
60
+ }
61
+ /** The signing the environment asks for, or undefined. An unknown value is refused, never read as "no signing". */
62
+ export declare function frameworkImageSigningOf(env?: NodeJS.ProcessEnv): FrameworkImageSigning | undefined;
19
63
  /**
20
64
  * The git pathspecs covering what a Docker build SENDS from its context, derived from the ignore file
21
65
  * the build itself obeys: `<Dockerfile>.dockerignore` when present (BuildKit prefers it), else the
@@ -61,7 +105,16 @@ export interface FrameworkDockerPublishOptions {
61
105
  }
62
106
  export interface FrameworkDockerPublishTargetResult {
63
107
  imageName: string;
108
+ /** `<registry host>/<namespace>/<image>`, with no tag: what a digest reference is written against. */
109
+ imageRepository: string;
64
110
  imageRef: string;
111
+ /** The image index digest the push wrote (`containerimage.digest` in buildx's metadata file), once pushed. */
112
+ digest?: string;
113
+ /** What became of the image's signature, once pushed (#3063). */
114
+ signature?: {
115
+ outcome: FrameworkImageSignatureOutcome;
116
+ reason?: string;
117
+ };
65
118
  aliasImageRefs: string[];
66
119
  buildContextPath: string;
67
120
  dockerfilePath: string;
@@ -93,8 +146,50 @@ export interface FrameworkDockerPublishResult {
93
146
  * same command moves to a CI matrix with native runners, and this list does not change.
94
147
  */
95
148
  export declare const FRAMEWORK_DOCKER_IMAGE_PLATFORMS: readonly ["linux/amd64", "linux/arm64"];
149
+ /**
150
+ * How long one image build may run, and how many times it is tried (#3063).
151
+ *
152
+ * The arm64 half is built under QEMU, and QEMU can crash the emulated Node process (`qemu: uncaught target
153
+ * signal 4 (Illegal instruction)`) with nothing in the build noticing: the 1.1.13 release (framework-release
154
+ * run 43566115901, 2026-11-14) crashed 103 s into the arm64 `pnpm install`, printed nothing for two hours and
155
+ * was cancelled by GitHub's three-hour job limit, with the version tagged and nothing published. The same
156
+ * step took 3 min 54 s in the 1.1.12 release, from the same base image digest and the same QEMU, so the crash
157
+ * is intermittent, and a second attempt is the remedy.
158
+ *
159
+ * A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12, so the bound is generous.
160
+ * Two attempts fit inside the release job's limit with the rest of the lane. A retry cannot release half an
161
+ * image: `buildx build --push` writes the tag only after every platform has built, and the tag is the
162
+ * release's own, which nothing names until the npm step that follows.
163
+ */
164
+ export declare const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS: number;
165
+ export declare const FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS = 2;
96
166
  export declare class FrameworkDockerPublishService {
97
167
  static publishImages(options?: FrameworkDockerPublishOptions): Promise<FrameworkDockerPublishResult>;
168
+ /** The image index digest buildx recorded in its metadata file, or undefined when it recorded none. */
169
+ static pushedDigestOf(metadataFile: string): string | undefined;
170
+ /**
171
+ * Sign one pushed image as the environment asks (#3063). Never throws: the image is already public, so a signature
172
+ * that cannot be made is reported (FAILED, with the command to run by hand) rather than stopping the release after it
173
+ * published, and a consumer's `cosign verify` sees it missing rather than being told anything false.
174
+ *
175
+ * cosign reads the registry credentials `docker login` wrote (`loginWithFrameworkSecrets`), and in GitHub Actions takes
176
+ * the job's OIDC token on its own (`id-token: write`). SIGNED means the signature then VERIFIED against this job's
177
+ * workflow identity (`cosign verify`), so the outcome is the registry's answer rather than the signing command's exit.
178
+ */
179
+ static signImage(target: Pick<FrameworkDockerPublishTargetResult, 'imageRepository' | 'digest'>, signing: FrameworkImageSigning | undefined, spawn?: typeof spawnSync, env?: NodeJS.ProcessEnv): NonNullable<FrameworkDockerPublishTargetResult['signature']>;
180
+ /**
181
+ * Log the Docker CLI in to the framework's registry with `docker.publishToken` from the framework secrets file.
182
+ *
183
+ * Every step that WRITES to the registry calls it itself: the image push, and moving the `latest` alias
184
+ * (`wildo fwk publish all` step 8). A resumed release (`--skipDocker`) skips the push, so an alias move that relied
185
+ * on the push's login ran unauthenticated: on a developer machine an earlier `docker login` hid that, and on a fresh
186
+ * CI runner Docker Hub answered 401 (framework-release run 43278280537, 2026-11-12, #3063).
187
+ *
188
+ * @param frameworkRoot the framework checkout whose secrets file and release config are read
189
+ */
190
+ static loginToRegistry(frameworkRoot: string): Promise<void>;
191
+ /** The login itself; `docker` gives the registry host, and the namespace used as the username when the secrets name none. */
192
+ private static loginWithFrameworkSecrets;
98
193
  private static loadFrameworkConfigOrThrow;
99
194
  private static resolveBuildContract;
100
195
  /**
@@ -134,6 +229,13 @@ export declare class FrameworkDockerPublishService {
134
229
  * the wrong registry and the later push fails as unauthenticated.
135
230
  */
136
231
  private static runDockerLogin;
232
+ /**
233
+ * Run one image build, bounded by `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and tried
234
+ * `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times. A build that runs out of time is killed (SIGTERM ends the buildx
235
+ * client, and BuildKit cancels the build when its session closes). Every failure says which attempt it was and
236
+ * why, so a release log shows a hang as a hang rather than as silence.
237
+ */
238
+ static runDockerBuild(label: string, args: string[], spawn?: typeof spawnSync, log?: (message: string) => void): void;
137
239
  private static runDockerCommand;
138
240
  }
139
241
  //# sourceMappingURL=framework-docker-publish.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"framework-docker-publish.service.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/framework-docker-publish.service.ts"],"names":[],"mappings":"AAiBA,iIAAiI;AACjI,eAAO,MAAM,8BAA8B,sCAAsC,CAAC;AAClF,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,kGAAkG;AAClG,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,mDAAoD,CAAC;AAalG;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAA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B;IAItC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAOhC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,cAAc;IAe7B,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAShC"}
1
+ {"version":3,"file":"framework-docker-publish.service.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/framework-docker-publish.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAkB1C,iIAAiI;AACjI,eAAO,MAAM,8BAA8B,sCAAsC,CAAC;AAClF,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF;;;GAGG;AACH,eAAO,MAAM,6BAA6B,qCAAqC,CAAC;AAChF,kGAAkG;AAClG,eAAO,MAAM,4BAA4B,oCAAoC,CAAC;AAE9E;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC,mDAAoD,CAAC;AAElG;;;;GAIG;AACH,oBAAY,qBAAqB;IAC/B;;;;;;;;;OASG;IACH,cAAc,mBAAmB;CAClC;AAED,wHAAwH;AACxH,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAE3E,6HAA6H;AAC7H,eAAO,MAAM,0BAA0B,gDAAgD,CAAC;AAExF;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,SAAS,CAGxG;AAED,4CAA4C;AAC5C,oBAAY,8BAA8B;IACxC,wBAAwB;IACxB,MAAM,WAAW;IACjB,kGAAkG;IAClG,aAAa,kBAAkB;IAC/B;;;;;OAKG;IACH,MAAM,WAAW;CAClB;AAED,mHAAmH;AACnH,wBAAgB,uBAAuB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,qBAAqB,GAAG,SAAS,CAO/G;AAaD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GA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