@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,5 +1,6 @@
1
1
  import { spawnSync } from 'child_process';
2
- import { existsSync, readFileSync } from 'fs';
2
+ import { existsSync, mkdtempSync, readFileSync, rmSync } from 'fs';
3
+ import { tmpdir } from 'os';
3
4
  import { join, relative } from 'path';
4
5
  import { resolveFrameworkLayout, WildoFrameworkDockerImageRole, WildoFrameworkDockerImageVariant, } from '@wildo-ai/platform-config-lib';
5
6
  import { FRAMEWORK_RELEASE_DOCKER_NAMESPACE, FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST, } from '@wildo-ai/platform-config-lib';
@@ -23,6 +24,62 @@ export const FRAMEWORK_IMAGE_SOURCE_LABEL = 'org.opencontainers.image.source';
23
24
  * `imagetools create` carries them along when an alias is repointed at the index.
24
25
  */
25
26
  export const FRAMEWORK_IMAGE_ATTESTATION_ARGS = ['--provenance=mode=max', '--sbom=true'];
27
+ /**
28
+ * How a pushed framework image is signed (#3063). Chosen by the environment that runs the lane, never by the lane
29
+ * itself: keyless signing needs a workload identity (the release job's GitHub OIDC token), which a developer machine
30
+ * running the break-glass `wildo fwk release` does not have.
31
+ */
32
+ export var FrameworkImageSigning;
33
+ (function (FrameworkImageSigning) {
34
+ /**
35
+ * `cosign sign --yes <repository>@<digest>`: a short-lived Fulcio certificate bound to the release workflow's identity,
36
+ * the signature recorded in the Rekor transparency log and stored beside the image index in the registry, then
37
+ * `cosign verify` against that identity. Signs the DIGEST of the index buildx pushed, never a tag, so what is signed is
38
+ * exactly what was built. An alias (`latest`) is covered only while it names that same index: `imagetools create` from
39
+ * one index source keeps the index as it is, so its digest is the signed one.
40
+ *
41
+ * The certificate puts the repository, the workflow, its ref, the commit and the run in the public Rekor log for good.
42
+ * The image's own OCI labels already publish the source URL and the revision.
43
+ */
44
+ FrameworkImageSigning["COSIGN_KEYLESS"] = "cosign_keyless";
45
+ })(FrameworkImageSigning || (FrameworkImageSigning = {}));
46
+ /** The environment variable a release environment sets to a {@link FrameworkImageSigning} member. Unset: no signing. */
47
+ export const FRAMEWORK_IMAGE_SIGNING_ENV = 'WILDO_FRAMEWORK_IMAGE_SIGNING';
48
+ /** The OIDC issuer of a GitHub Actions workload identity: the issuer of every keyless certificate the release signs with. */
49
+ export const GITHUB_ACTIONS_OIDC_ISSUER = 'https://token.actions.githubusercontent.com';
50
+ /**
51
+ * The identity a keyless signature made in this job carries, as `cosign verify --certificate-identity` takes it:
52
+ * `https://github.com/<owner>/<repo>/<workflow path>@<ref>`, from `GITHUB_WORKFLOW_REF`. Undefined outside Actions.
53
+ */
54
+ export function githubWorkflowSigningIdentityOf(env = process.env) {
55
+ const workflowRef = env.GITHUB_WORKFLOW_REF?.trim();
56
+ return workflowRef ? `${env.GITHUB_SERVER_URL?.trim() || 'https://github.com'}/${workflowRef}` : undefined;
57
+ }
58
+ /** What became of one image's signature. */
59
+ export var FrameworkImageSignatureOutcome;
60
+ (function (FrameworkImageSignatureOutcome) {
61
+ /** Signed by digest. */
62
+ FrameworkImageSignatureOutcome["SIGNED"] = "signed";
63
+ /** The environment asked for no signing (a developer machine running the break-glass release). */
64
+ FrameworkImageSignatureOutcome["NOT_REQUESTED"] = "not_requested";
65
+ /**
66
+ * Asked for and not proven: no workload identity to sign as (`GITHUB_WORKFLOW_REF` unset), the pushed digest unreadable,
67
+ * cosign absent or refusing to sign, or a signature made that `cosign verify` did not confirm. The image is already public, so
68
+ * the release does not stop on it (a consumer's `cosign verify` reports the missing signature, a false claim is not
69
+ * made); the lane reports it, and the image is signed by hand with the command named in `reason`.
70
+ */
71
+ FrameworkImageSignatureOutcome["FAILED"] = "failed";
72
+ })(FrameworkImageSignatureOutcome || (FrameworkImageSignatureOutcome = {}));
73
+ /** The signing the environment asks for, or undefined. An unknown value is refused, never read as "no signing". */
74
+ export function frameworkImageSigningOf(env = process.env) {
75
+ const raw = env[FRAMEWORK_IMAGE_SIGNING_ENV]?.trim();
76
+ if (!raw)
77
+ return undefined;
78
+ if (!Object.values(FrameworkImageSigning).includes(raw)) {
79
+ throw new Error(`${FRAMEWORK_IMAGE_SIGNING_ENV}="${raw}" names no image signing; expected one of: ${Object.values(FrameworkImageSigning).join(', ')}.`);
80
+ }
81
+ return raw;
82
+ }
26
83
  /** A `.dockerignore` pattern that names no wildcard — a plain path, rather than a glob pathspec. */
27
84
  function isPlainIgnorePath(pattern) {
28
85
  return !/[*?[\]]/.test(pattern);
@@ -103,6 +160,23 @@ const FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS = {
103
160
  * same command moves to a CI matrix with native runners, and this list does not change.
104
161
  */
105
162
  export const FRAMEWORK_DOCKER_IMAGE_PLATFORMS = ['linux/amd64', 'linux/arm64'];
163
+ /**
164
+ * How long one image build may run, and how many times it is tried (#3063).
165
+ *
166
+ * The arm64 half is built under QEMU, and QEMU can crash the emulated Node process (`qemu: uncaught target
167
+ * signal 4 (Illegal instruction)`) with nothing in the build noticing: the 1.1.13 release (framework-release
168
+ * run 43566115901, 2026-11-14) crashed 103 s into the arm64 `pnpm install`, printed nothing for two hours and
169
+ * was cancelled by GitHub's three-hour job limit, with the version tagged and nothing published. The same
170
+ * 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
171
+ * is intermittent, and a second attempt is the remedy.
172
+ *
173
+ * A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12, so the bound is generous.
174
+ * Two attempts fit inside the release job's limit with the rest of the lane. A retry cannot release half an
175
+ * image: `buildx build --push` writes the tag only after every platform has built, and the tag is the
176
+ * release's own, which nothing names until the npm step that follows.
177
+ */
178
+ export const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS = 50 * 60_000;
179
+ export const FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS = 2;
106
180
  export class FrameworkDockerPublishService {
107
181
  static async publishImages(options = {}) {
108
182
  const resolvedFrameworkRoot = options.frameworkRoot ?? FrameworkReleaseService.getFrameworkRoot();
@@ -111,6 +185,8 @@ export class FrameworkDockerPublishService {
111
185
  const aliasTags = (options.aliasTags ?? []).map((tag) => tag.trim()).filter((tag) => tag.length > 0);
112
186
  const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(resolvedFrameworkRoot);
113
187
  const immutableTag = options.immutableTag?.trim() || frameworkConfig.frameworkVersion;
188
+ // Read before anything is built, so an unknown value refuses a dry run too rather than surfacing after the push.
189
+ const signing = frameworkImageSigningOf();
114
190
  const allTargets = frameworkConfig.publish.docker.images;
115
191
  const requestedTargets = new Set(options.targets ?? []);
116
192
  const selectedTargets = allTargets.filter((image) => requestedTargets.size === 0 || requestedTargets.has(image.imageName));
@@ -138,11 +214,12 @@ export class FrameworkDockerPublishService {
138
214
  const aliasImageRefs = aliasTags.map((tag) => `${imageRepository}:${tag}`);
139
215
  return {
140
216
  imageName: image.imageName,
217
+ imageRepository,
141
218
  imageRef,
142
219
  aliasImageRefs,
143
220
  buildContextPath: FrameworkDockerPublishService.asFrameworkRelativePath(resolvedFrameworkRoot, buildContract.contextPath),
144
221
  dockerfilePath: FrameworkDockerPublishService.asFrameworkRelativePath(resolvedFrameworkRoot, buildContract.dockerfilePath),
145
- commands: FrameworkDockerPublishService.buildCommandPreview(buildContract.contextPath, buildContract.dockerfilePath, imageRef, aliasImageRefs, { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
222
+ commands: FrameworkDockerPublishService.buildCommandPreview(buildContract.contextPath, buildContract.dockerfilePath, imageRepository, imageRef, aliasImageRefs, { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }, signing),
146
223
  };
147
224
  }),
148
225
  };
@@ -150,13 +227,7 @@ export class FrameworkDockerPublishService {
150
227
  return result;
151
228
  }
152
229
  FrameworkDockerPublishService.assertDockerReady();
153
- const secrets = FrameworkReleaseService.loadFrameworkDockerSecrets(resolvedFrameworkRoot);
154
- const publishToken = secrets?.publishToken ?? null;
155
- if (!publishToken) {
156
- throw new Error(`Docker publish requires docker.publishToken in ${FrameworkReleaseService.resolveFrameworkSecretsPath(resolvedFrameworkRoot)}.`);
157
- }
158
- const publishUsername = secrets?.publishUsername ?? frameworkConfig.publish.docker.namespace;
159
- FrameworkDockerPublishService.runDockerLogin(frameworkConfig.publish.docker.registryHost, publishUsername, publishToken);
230
+ FrameworkDockerPublishService.loginWithFrameworkSecrets(resolvedFrameworkRoot, frameworkConfig.publish.docker);
160
231
  for (const target of result.targets) {
161
232
  const configuredTarget = selectedTargets.find((image) => image.imageName === target.imageName);
162
233
  if (!configuredTarget) {
@@ -175,20 +246,31 @@ export class FrameworkDockerPublishService {
175
246
  * in the same index, and the OCI labels name the release, the repository, the revision and the
176
247
  * build instant (`provenanceLabelArgs`).
177
248
  */
178
- FrameworkDockerPublishService.runDockerCommand('buildx build --push', [
179
- 'buildx',
180
- 'build',
181
- '--platform',
182
- FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),
183
- '-f',
184
- buildContract.dockerfilePath,
185
- '-t',
186
- target.imageRef,
187
- ...FrameworkDockerPublishService.provenanceLabelArgs(resolvedFrameworkRoot, dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath), { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
188
- ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,
189
- '--push',
190
- buildContract.contextPath,
191
- ]);
249
+ // buildx writes the pushed index's digest here (`containerimage.digest`): what the signature is made over.
250
+ const metadataDir = mkdtempSync(join(tmpdir(), 'wildo-image-metadata-'));
251
+ const metadataFile = join(metadataDir, 'metadata.json');
252
+ try {
253
+ FrameworkDockerPublishService.runDockerBuild('buildx build --push', [
254
+ 'buildx',
255
+ 'build',
256
+ '--platform',
257
+ FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),
258
+ '-f',
259
+ buildContract.dockerfilePath,
260
+ '-t',
261
+ target.imageRef,
262
+ ...FrameworkDockerPublishService.provenanceLabelArgs(resolvedFrameworkRoot, dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath), { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
263
+ ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,
264
+ '--metadata-file',
265
+ metadataFile,
266
+ '--push',
267
+ buildContract.contextPath,
268
+ ]);
269
+ target.digest = FrameworkDockerPublishService.pushedDigestOf(metadataFile);
270
+ }
271
+ finally {
272
+ rmSync(metadataDir, { recursive: true, force: true });
273
+ }
192
274
  }
193
275
  /*
194
276
  * Aliases are repointed only after EVERY immutable push has succeeded.
@@ -216,8 +298,78 @@ export class FrameworkDockerPublishService {
216
298
  ]);
217
299
  }
218
300
  }
301
+ // Signed by digest once every image is pushed; see FrameworkImageSigning.COSIGN_KEYLESS for what that covers.
302
+ for (const target of result.targets) {
303
+ target.signature = FrameworkDockerPublishService.signImage(target, signing);
304
+ }
219
305
  return result;
220
306
  }
307
+ /** The image index digest buildx recorded in its metadata file, or undefined when it recorded none. */
308
+ static pushedDigestOf(metadataFile) {
309
+ try {
310
+ const metadata = JSON.parse(readFileSync(metadataFile, 'utf8'));
311
+ const digest = metadata['containerimage.digest'];
312
+ return typeof digest === 'string' && /^sha256:[0-9a-f]{64}$/.test(digest) ? digest : undefined;
313
+ }
314
+ catch {
315
+ return undefined;
316
+ }
317
+ }
318
+ /**
319
+ * Sign one pushed image as the environment asks (#3063). Never throws: the image is already public, so a signature
320
+ * that cannot be made is reported (FAILED, with the command to run by hand) rather than stopping the release after it
321
+ * published, and a consumer's `cosign verify` sees it missing rather than being told anything false.
322
+ *
323
+ * cosign reads the registry credentials `docker login` wrote (`loginWithFrameworkSecrets`), and in GitHub Actions takes
324
+ * the job's OIDC token on its own (`id-token: write`). SIGNED means the signature then VERIFIED against this job's
325
+ * workflow identity (`cosign verify`), so the outcome is the registry's answer rather than the signing command's exit.
326
+ */
327
+ static signImage(target, signing, spawn = spawnSync, env = process.env) {
328
+ if (signing === undefined)
329
+ return { outcome: FrameworkImageSignatureOutcome.NOT_REQUESTED };
330
+ if (!target.digest) {
331
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `buildx recorded no digest for ${target.imageRepository}; sign it by hand: cosign sign --yes ${target.imageRepository}@<digest>` };
332
+ }
333
+ const reference = `${target.imageRepository}@${target.digest}`;
334
+ const identity = githubWorkflowSigningIdentityOf(env);
335
+ if (!identity) {
336
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `keyless signing needs a GitHub Actions workload identity (GITHUB_WORKFLOW_REF is unset); sign it by hand: cosign sign --yes ${reference}` };
337
+ }
338
+ const failed = (step, run) => `${step}: ${run.error ? run.error.message : `cosign exited ${run.status ?? 'without a status'}`}`;
339
+ const signed = spawn('cosign', ['sign', '--yes', reference], { encoding: 'utf8', stdio: 'inherit' });
340
+ if (signed.status !== 0) {
341
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('cosign sign', signed)}; sign it by hand: cosign sign --yes ${reference}` };
342
+ }
343
+ const verifyArgs = ['verify', '--certificate-identity', identity, '--certificate-oidc-issuer', GITHUB_ACTIONS_OIDC_ISSUER, reference];
344
+ const verified = spawn('cosign', verifyArgs, { encoding: 'utf8', stdio: 'inherit' });
345
+ if (verified.status !== 0) {
346
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('signed, but cosign verify', verified)}; check it with: cosign ${verifyArgs.join(' ')}` };
347
+ }
348
+ return { outcome: FrameworkImageSignatureOutcome.SIGNED };
349
+ }
350
+ /**
351
+ * Log the Docker CLI in to the framework's registry with `docker.publishToken` from the framework secrets file.
352
+ *
353
+ * Every step that WRITES to the registry calls it itself: the image push, and moving the `latest` alias
354
+ * (`wildo fwk publish all` step 8). A resumed release (`--skipDocker`) skips the push, so an alias move that relied
355
+ * on the push's login ran unauthenticated: on a developer machine an earlier `docker login` hid that, and on a fresh
356
+ * CI runner Docker Hub answered 401 (framework-release run 43278280537, 2026-11-12, #3063).
357
+ *
358
+ * @param frameworkRoot the framework checkout whose secrets file and release config are read
359
+ */
360
+ static async loginToRegistry(frameworkRoot) {
361
+ const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(frameworkRoot);
362
+ FrameworkDockerPublishService.loginWithFrameworkSecrets(frameworkRoot, frameworkConfig.publish.docker);
363
+ }
364
+ /** The login itself; `docker` gives the registry host, and the namespace used as the username when the secrets name none. */
365
+ static loginWithFrameworkSecrets(frameworkRoot, docker) {
366
+ const secrets = FrameworkReleaseService.loadFrameworkDockerSecrets(frameworkRoot);
367
+ const publishToken = secrets?.publishToken ?? null;
368
+ if (!publishToken) {
369
+ throw new Error(`Docker publish requires docker.publishToken in ${FrameworkReleaseService.resolveFrameworkSecretsPath(frameworkRoot)}.`);
370
+ }
371
+ FrameworkDockerPublishService.runDockerLogin(docker.registryHost, secrets?.publishUsername ?? docker.namespace, publishToken);
372
+ }
221
373
  static async loadFrameworkConfigOrThrow(frameworkRoot) {
222
374
  const frameworkConfig = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);
223
375
  if (!frameworkConfig) {
@@ -295,10 +447,13 @@ export class FrameworkDockerPublishService {
295
447
  const frameworkLayout = resolveFrameworkLayout(frameworkRoot);
296
448
  return dockerContextSourcePathspecs(frameworkRoot, buildDefinition.resolveContextPath(frameworkLayout), buildDefinition.resolveDockerfilePath(frameworkLayout));
297
449
  }
298
- static buildCommandPreview(contextPath, dockerfilePath, imageRef, aliasImageRefs, identity) {
450
+ static buildCommandPreview(contextPath, dockerfilePath, imageRepository, imageRef, aliasImageRefs, identity, signing) {
299
451
  return [
300
- `docker buildx build --platform ${FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(',')} -f "${dockerfilePath}" -t "${imageRef}" --label ${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version} --label ${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl} --label ${FRAMEWORK_IMAGE_CREATED_LABEL}=<build instant> --label ${FRAMEWORK_IMAGE_REVISION_LABEL}=<HEAD>[-dirty] ${FRAMEWORK_IMAGE_ATTESTATION_ARGS.join(' ')} --push "${contextPath}"`,
452
+ `docker buildx build --platform ${FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(',')} -f "${dockerfilePath}" -t "${imageRef}" --label ${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version} --label ${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl} --label ${FRAMEWORK_IMAGE_CREATED_LABEL}=<build instant> --label ${FRAMEWORK_IMAGE_REVISION_LABEL}=<HEAD>[-dirty] ${FRAMEWORK_IMAGE_ATTESTATION_ARGS.join(' ')} --metadata-file <tmp> --push "${contextPath}"`,
301
453
  ...aliasImageRefs.map((aliasRef) => `docker buildx imagetools create -t "${aliasRef}" "${imageRef}"`),
454
+ ...(signing === FrameworkImageSigning.COSIGN_KEYLESS
455
+ ? [`cosign sign --yes "${imageRepository}@<pushed digest>"`, `cosign verify --certificate-identity <this workflow> --certificate-oidc-issuer ${GITHUB_ACTIONS_OIDC_ISSUER} "${imageRepository}@<pushed digest>"`]
456
+ : []),
302
457
  ];
303
458
  }
304
459
  static asFrameworkRelativePath(frameworkRoot, absolutePath) {
@@ -325,6 +480,30 @@ export class FrameworkDockerPublishService {
325
480
  throw new Error(`Docker login failed for username "${username}" at ${registryHost}.`);
326
481
  }
327
482
  }
483
+ /**
484
+ * Run one image build, bounded by `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and tried
485
+ * `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times. A build that runs out of time is killed (SIGTERM ends the buildx
486
+ * client, and BuildKit cancels the build when its session closes). Every failure says which attempt it was and
487
+ * why, so a release log shows a hang as a hang rather than as silence.
488
+ */
489
+ static runDockerBuild(label, args, spawn = spawnSync, log = (message) => console.error(message)) {
490
+ const minutes = Math.round(FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS / 60_000);
491
+ for (let attempt = 1; attempt <= FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS; attempt += 1) {
492
+ const result = spawn('docker', args, { encoding: 'utf8', stdio: 'inherit', timeout: FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS });
493
+ if (result.status === 0)
494
+ return;
495
+ const timedOut = result.error?.code === 'ETIMEDOUT';
496
+ const reason = timedOut
497
+ ? `it ran out of its ${minutes} minutes (an emulated platform can hang without a word)`
498
+ : result.signal
499
+ ? `it was ended by ${result.signal}`
500
+ : `it exited ${result.status ?? 'without a status'}`;
501
+ const last = attempt === FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS;
502
+ log(`Docker ${label}, attempt ${attempt} of ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS}: ${reason}.${last ? '' : ' Trying again.'}`);
503
+ if (last)
504
+ throw new Error(`Docker ${label} failed after ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS} attempts: ${reason}.`);
505
+ }
506
+ }
328
507
  static runDockerCommand(label, args) {
329
508
  const result = spawnSync('docker', args, {
330
509
  encoding: 'utf8',
@@ -1 +1 @@
1
- {"version":3,"file":"framework-docker-publish.service.js","sourceRoot":"","sources":["../../../../src/services/framework/framework-docker-publish.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,GAGjC,MAAM,+BAA+B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YACE,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;SACtC,CACF,CAAC;QACF,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC7B,MAAM,IAAI,KAAK,CAAC,qCAAqC,QAAQ,QAAQ,YAAY,GAAG,CAAC,CAAC;QACxF,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,KAAa,EAAE,IAAc;QAC3D,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE;YACvC,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;CACF","sourcesContent":["import { spawnSync } from 'child_process';\nimport { existsSync, readFileSync } from 'fs';\nimport { join, relative } from 'path';\nimport {\n resolveFrameworkLayout,\n WildoFrameworkDockerImageRole,\n WildoFrameworkDockerImageVariant,\n type FrameworkLayoutPaths,\n type WildoFrameworkReleaseDockerImage,\n} from '@wildo-ai/platform-config-lib';\nimport {\n FRAMEWORK_RELEASE_DOCKER_NAMESPACE,\n FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST,\n} from '@wildo-ai/platform-config-lib';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport { DockerUtils } from '~wildo-cli/services/deployment/docker/docker.service';\n\n/** OCI annotation keys (image-spec `annotations.md`, dead-plan-citation: the OCI spec's own file), used here as build labels. */\nexport const FRAMEWORK_IMAGE_REVISION_LABEL = 'org.opencontainers.image.revision';\nexport const FRAMEWORK_IMAGE_CREATED_LABEL = 'org.opencontainers.image.created';\n/**\n * The release the image IS: the immutable tag it is pushed under (the framework version, or a channel's\n * own identity such as `test-<sha>`), so an image pulled by an alias or by digest still names its release.\n */\nexport const FRAMEWORK_IMAGE_VERSION_LABEL = 'org.opencontainers.image.version';\n/** The repository the image is built from: the framework config's `publish.npm.repositoryUrl`. */\nexport const FRAMEWORK_IMAGE_SOURCE_LABEL = 'org.opencontainers.image.source';\n\n/**\n * The BuildKit attestations pushed beside every framework image, inside the same image index: SLSA\n * provenance in `max` mode (the full build definition: Dockerfile, build args, source materials) and an\n * SPDX SBOM of each platform's filesystem. Registries and scanners (Docker Scout, `docker buildx\n * imagetools inspect --format '{{json .Provenance}}'`/`'{{json .SBOM}}'`) read them from there, and\n * `imagetools create` carries them along when an alias is repointed at the index.\n */\nexport const FRAMEWORK_IMAGE_ATTESTATION_ARGS = ['--provenance=mode=max', '--sbom=true'] as const;\n\n/** What the identity labels say: the release and the repository it was built from. */\ninterface FrameworkImageIdentity {\n version: string;\n sourceUrl: string;\n}\n\n/** A `.dockerignore` pattern that names no wildcard — a plain path, rather than a glob pathspec. */\nfunction isPlainIgnorePath(pattern: string): boolean {\n return !/[*?[\\]]/.test(pattern);\n}\n\n/**\n * The git pathspecs covering what a Docker build SENDS from its context, derived from the ignore file\n * the build itself obeys: `<Dockerfile>.dockerignore` when present (BuildKit prefers it), else the\n * context's `.dockerignore`. What the image was built from is then asked of those paths only — whether\n * they were dirty at build time, and how many commits touched them since — instead of the whole\n * repository, which several sessions edit at once and would mark nearly every image dirty.\n *\n * - A deny-all file (`*` then `!path` re-includes) scopes to its re-includes — a plain one as a path, a\n * wildcard one as a `:(glob)` pathspec, since the build sends what it matches; otherwise the whole\n * context is in scope.\n * - Its `**\\/…` exclusions become git `:(exclude,glob)` pathspecs, as `…/**` so a directory pattern\n * excludes the files under it (a bare `**\\/__tests__` glob matches no file — measured). EXCEPT those\n * under `src/`: the image excludes TypeScript source only because it ships the `dist/` compiled from\n * it, and `dist/` is gitignored — so the source IS the tracked form of what the image carries.\n *\n * Paths are relative to the framework root, where git runs. Pure over the ignore file's text, so a\n * new re-include there widens the scope with no edit here.\n */\nexport function dockerContextSourcePathspecs(frameworkRoot: string, contextPath: string, dockerfilePath: string): string[] {\n const contextRelative = relative(frameworkRoot, contextPath) || '.';\n const ignorePath = [`${dockerfilePath}.dockerignore`, join(contextPath, '.dockerignore')].find((candidate) => existsSync(candidate));\n const lines = ignorePath === undefined ? [] : readFileSync(ignorePath, 'utf8').split('\\n')\n .map((line) => line.trim())\n .filter((line) => line.length > 0 && !line.startsWith('#'));\n const inContext = (path: string): string => (contextRelative === '.' ? path : `${contextRelative}/${path}`);\n const includes = lines.includes('*')\n ? lines\n .filter((line) => line.startsWith('!'))\n .map((line) => (isPlainIgnorePath(line.slice(1)) ? inContext(line.slice(1)) : `:(glob)${inContext(line.slice(1))}`))\n : [contextRelative];\n const excludes = lines\n .filter((line) => line.startsWith('**/') && !line.slice(3).startsWith('src/'))\n .flatMap((line) => [`:(exclude,glob)${line}`, `:(exclude,glob)${line}/**`]);\n return [...(includes.length > 0 ? includes : [contextRelative]), ...excludes];\n}\n\nexport interface FrameworkDockerPublishOptions {\n frameworkRoot?: string;\n targets?: string[];\n dryRun?: boolean;\n /**\n * The IMMUTABLE tag every selected image is published under. Defaults to the\n * framework version.\n *\n * A channel that publishes per-commit supplies its own identity here — e.g.\n * `test-<sha>` — because on that channel the commit, not the version, is what\n * makes the artifact unique. Two pushes of the same framework version from\n * different commits must not collide on one tag.\n */\n immutableTag?: string;\n /**\n * MUTABLE aliases repointed at the image after every immutable push has\n * succeeded — `latest`, `test`, `next`.\n *\n * Kept as one list rather than a boolean per alias: an alias is a pointer, and\n * the set of pointers a channel maintains is channel policy, not a fixed\n * vocabulary this service should enumerate.\n */\n aliasTags?: string[];\n}\n\nexport interface FrameworkDockerPublishTargetResult {\n imageName: string;\n imageRef: string;\n aliasImageRefs: string[];\n buildContextPath: string;\n dockerfilePath: string;\n commands: string[];\n}\n\nexport interface FrameworkDockerPublishResult {\n frameworkVersion: string;\n namespace: string;\n targets: FrameworkDockerPublishTargetResult[];\n}\n\ninterface FrameworkDockerBuildContract {\n contextPath: string;\n dockerfilePath: string;\n}\n\ninterface FrameworkDockerBuildDefinition {\n role: WildoFrameworkDockerImageRole;\n variant: WildoFrameworkDockerImageVariant;\n resolveContextPath: (layout: FrameworkLayoutPaths) => string;\n resolveDockerfilePath: (layout: FrameworkLayoutPaths) => string;\n}\n\nconst FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS: Record<string, FrameworkDockerBuildDefinition> = {\n 'wildo-platform': {\n role: WildoFrameworkDockerImageRole.PLATFORM_SERVICE,\n variant: WildoFrameworkDockerImageVariant.DEFAULT,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.platformBaseDockerfilePath,\n },\n 'wildo-backend-base': {\n role: WildoFrameworkDockerImageRole.APPLICATION_BACKEND,\n variant: WildoFrameworkDockerImageVariant.DEFAULT,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.backendBaseDockerfilePath,\n },\n 'wildo-backend-base-java': {\n role: WildoFrameworkDockerImageRole.APPLICATION_BACKEND,\n variant: WildoFrameworkDockerImageVariant.JAVA,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.backendJavaDockerfilePath,\n },\n};\n\n/**\n * Publishes the framework-owned Docker image contract declared in framework\n * config. Each publishable image must resolve to a truthful framework-owned\n * Dockerfile so the release lane stays explicit about what the framework ships.\n */\n/**\n * The platforms every published framework image is built for, as ONE multi-platform\n * manifest list under the immutable tag.\n *\n * Decided 2026-09-03 (Paul): the Apple-Silicon-versus-x86 split is handled by the\n * registry, never by an operator. A host pulls its native image from the same\n * `docker.io/wildoai/<image>:<version>` reference, so compose files and k8s manifests carry\n * no architecture knowledge. The previous lane built `linux/amd64` only, which put every\n * Apple Silicon developer under emulation and could never produce a native arm64 image.\n *\n * Native modules (argon2, sharp, canvas, esbuild) are installed INSIDE each platform's\n * builder stage, so the binaries match by construction — see `Dockerfile.platform-base`.\n * Building the non-native half runs under QEMU on a laptop; if that becomes too slow the\n * same command moves to a CI matrix with native runners, and this list does not change.\n */\nexport const FRAMEWORK_DOCKER_IMAGE_PLATFORMS = ['linux/amd64', 'linux/arm64'] as const;\n\nexport class FrameworkDockerPublishService {\n static async publishImages(\n options: FrameworkDockerPublishOptions = {},\n ): Promise<FrameworkDockerPublishResult> {\n const resolvedFrameworkRoot = options.frameworkRoot ?? FrameworkReleaseService.getFrameworkRoot();\n await FrameworkReleaseService.assertCliCompatibility(resolvedFrameworkRoot);\n const dryRun = options.dryRun === true;\n const aliasTags = (options.aliasTags ?? []).map((tag) => tag.trim()).filter((tag) => tag.length > 0);\n const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(\n resolvedFrameworkRoot,\n );\n const immutableTag = options.immutableTag?.trim() || frameworkConfig.frameworkVersion;\n const allTargets = frameworkConfig.publish.docker.images;\n const requestedTargets = new Set(options.targets ?? []);\n const selectedTargets = allTargets.filter(\n (image) => requestedTargets.size === 0 || requestedTargets.has(image.imageName),\n );\n\n FrameworkDockerPublishService.assertLockedDockerRegistryIdentity(\n frameworkConfig.publish.docker.registryHost,\n frameworkConfig.publish.docker.namespace,\n );\n\n if (requestedTargets.size > 0) {\n const missingTargets = [...requestedTargets].filter(\n (target) => !selectedTargets.some((image) => image.imageName === target),\n );\n if (missingTargets.length > 0) {\n throw new Error(`Unknown Docker publish target(s): ${missingTargets.join(', ')}.`);\n }\n }\n\n const result: FrameworkDockerPublishResult = {\n frameworkVersion: frameworkConfig.frameworkVersion,\n namespace: frameworkConfig.publish.docker.namespace,\n targets: selectedTargets.map((image) => {\n const buildContract = FrameworkDockerPublishService.resolveBuildContract(\n resolvedFrameworkRoot,\n image,\n );\n /**\n * Fully qualified, including the registry host. A bare\n * `<namespace>/<image>` reference resolves to Docker Hub by default, so\n * omitting the host would push these images somewhere other than the\n * registry the config declares — silently, and only discoverably by a\n * consumer failing to pull.\n */\n const imageRepository = `${frameworkConfig.publish.docker.registryHost}/${frameworkConfig.publish.docker.namespace}/${image.imageName}`;\n const imageRef = `${imageRepository}:${immutableTag}`;\n const aliasImageRefs = aliasTags.map((tag) => `${imageRepository}:${tag}`);\n\n return {\n imageName: image.imageName,\n imageRef,\n aliasImageRefs,\n buildContextPath: FrameworkDockerPublishService.asFrameworkRelativePath(\n resolvedFrameworkRoot,\n buildContract.contextPath,\n ),\n dockerfilePath: FrameworkDockerPublishService.asFrameworkRelativePath(\n resolvedFrameworkRoot,\n buildContract.dockerfilePath,\n ),\n commands: FrameworkDockerPublishService.buildCommandPreview(\n buildContract.contextPath,\n buildContract.dockerfilePath,\n imageRef,\n aliasImageRefs,\n { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl },\n ),\n };\n }),\n };\n\n if (dryRun || result.targets.length === 0) {\n return result;\n }\n\n FrameworkDockerPublishService.assertDockerReady();\n\n const secrets = FrameworkReleaseService.loadFrameworkDockerSecrets(resolvedFrameworkRoot);\n const publishToken = secrets?.publishToken ?? null;\n if (!publishToken) {\n throw new Error(\n `Docker publish requires docker.publishToken in ${FrameworkReleaseService.resolveFrameworkSecretsPath(resolvedFrameworkRoot)}.`,\n );\n }\n const publishUsername = secrets?.publishUsername ?? frameworkConfig.publish.docker.namespace;\n\n FrameworkDockerPublishService.runDockerLogin(\n frameworkConfig.publish.docker.registryHost,\n publishUsername,\n publishToken,\n );\n\n for (const target of result.targets) {\n const configuredTarget = selectedTargets.find((image) => image.imageName === target.imageName);\n if (!configuredTarget) {\n throw new Error(`Missing Docker target definition for \"${target.imageName}\".`);\n }\n const buildContract = FrameworkDockerPublishService.resolveBuildContract(\n resolvedFrameworkRoot,\n configuredTarget,\n );\n\n /*\n * ONE buildx invocation builds every platform in `FRAMEWORK_DOCKER_IMAGE_PLATFORMS` and\n * pushes them as a single manifest list under the immutable tag. A multi-platform result\n * cannot be `--load`ed into the local daemon (it is not one image), which is why this is\n * `--push` rather than the old build-then-push pair. No CLI lane builds into the local daemon\n * since #2988 removed `wildo local up --rebuild`, whose image no runtime ran; the registry host's\n * `--fromCheckout` builds there, on the host's own platform.\n *\n * The push carries the SLSA provenance and SBOM attestations (`FRAMEWORK_IMAGE_ATTESTATION_ARGS`)\n * in the same index, and the OCI labels name the release, the repository, the revision and the\n * build instant (`provenanceLabelArgs`).\n */\n FrameworkDockerPublishService.runDockerCommand('buildx build --push', [\n 'buildx',\n 'build',\n '--platform',\n FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),\n '-f',\n buildContract.dockerfilePath,\n '-t',\n target.imageRef,\n ...FrameworkDockerPublishService.provenanceLabelArgs(\n resolvedFrameworkRoot,\n dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath),\n { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl },\n ),\n ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,\n '--push',\n buildContract.contextPath,\n ]);\n }\n\n /*\n * Aliases are repointed only after EVERY immutable push has succeeded.\n *\n * The previous shape moved each image's alias inside the per-image loop, so\n * a failure on image N left images 1..N-1 already advertising the new\n * release through `latest` while the release as a whole had not happened —\n * a partial release that looks complete to anyone pulling the alias. With\n * one image in the publish set that was unobservable; it returns the moment\n * a second image is re-added, which is exactly when nobody would be looking\n * for it.\n */\n for (const target of result.targets) {\n for (const aliasRef of target.aliasImageRefs) {\n // `imagetools create` repoints the alias at the whole MANIFEST LIST in the registry, its\n // attestation manifests included; a local `docker tag` + `push` would only ever carry the one\n // platform the daemon holds, and no attestation.\n FrameworkDockerPublishService.runDockerCommand('imagetools create alias', [\n 'buildx',\n 'imagetools',\n 'create',\n '-t',\n aliasRef,\n target.imageRef,\n ]);\n }\n }\n\n return result;\n }\n\n private static async loadFrameworkConfigOrThrow(frameworkRoot: string) {\n const frameworkConfig = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n if (!frameworkConfig) {\n throw new Error(\n `Framework release config not found at ${FrameworkReleaseService.resolveFrameworkConfigPath(frameworkRoot)}`,\n );\n }\n return frameworkConfig;\n }\n\n private static resolveBuildContract(\n frameworkRoot: string,\n target: WildoFrameworkReleaseDockerImage,\n ): FrameworkDockerBuildContract {\n const buildDefinition = FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS[target.imageName];\n if (!buildDefinition) {\n throw new Error(\n `Docker publish target \"${target.imageName}\" is not mapped to a framework Dockerfile yet.`,\n );\n }\n if (buildDefinition.role !== target.role || buildDefinition.variant !== target.variant) {\n throw new Error(\n `Docker publish target \"${target.imageName}\" must use ${buildDefinition.role}/${buildDefinition.variant}.`,\n );\n }\n\n const frameworkLayout = resolveFrameworkLayout(frameworkRoot);\n const contextPath = buildDefinition.resolveContextPath(frameworkLayout);\n const dockerfilePath = buildDefinition.resolveDockerfilePath(frameworkLayout);\n\n if (!existsSync(dockerfilePath)) {\n throw new Error(\n `Dockerfile for \"${target.imageName}\" not found at ${dockerfilePath}.`,\n );\n }\n\n return { contextPath, dockerfilePath };\n }\n\n /**\n * Both halves of the published image identity are locked, not just the\n * namespace. The registry host is the half that used to be implicit, and an\n * unlocked host is the more dangerous of the two: a wrong namespace fails\n * loudly on push permissions, while a wrong host can succeed and publish the\n * framework to a registry nobody is watching.\n */\n private static assertLockedDockerRegistryIdentity(registryHost: string, namespace: string): void {\n if (registryHost !== FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST) {\n throw new Error(\n `Docker publish currently supports only the locked registry host \"${FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST}\".`,\n );\n }\n if (namespace !== FRAMEWORK_RELEASE_DOCKER_NAMESPACE) {\n throw new Error(\n `Docker publish currently supports only the locked namespace \"${FRAMEWORK_RELEASE_DOCKER_NAMESPACE}\".`,\n );\n }\n }\n\n /**\n * The OCI labels stamped on every pushed image: the release it is (`identity.version`, the immutable\n * tag), the repository it comes from (`identity.sourceUrl`), the source revision and the build instant.\n *\n * Read back by `fwk publish all --skipDocker`, which resumes a release whose image is already pushed:\n * existence proves the tag is there, not that it was built from the source now being published, so the\n * resume prints what the image was built from and how many commits touched its inputs since. The\n * revision is HEAD, marked `-dirty` when the image's own inputs (`sourcePathspecs`) held uncommitted\n * edits or untracked files — the image then carries content no commit has. Edits elsewhere in the\n * shared tree do not mark it.\n *\n * The version is the immutable tag even when it is not a semver version (`test-<sha>` on a per-commit\n * channel): it is the one reference that always resolves to this image, so it is what the label names.\n */\n private static provenanceLabelArgs(\n frameworkRoot: string,\n sourcePathspecs: string[],\n identity: FrameworkImageIdentity,\n ): string[] {\n const labels = [\n '--label', `${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version}`,\n '--label', `${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl}`,\n '--label', `${FRAMEWORK_IMAGE_CREATED_LABEL}=${new Date().toISOString()}`,\n ];\n const head = spawnSync('git', ['rev-parse', 'HEAD'], { cwd: frameworkRoot, encoding: 'utf8' });\n if (head.status === 0 && head.stdout.trim()) {\n const status = spawnSync('git', ['status', '--porcelain', '--untracked-files=all', '--', ...sourcePathspecs], { cwd: frameworkRoot, encoding: 'utf8' });\n const dirty = status.status !== 0 || status.stdout.trim() !== '';\n labels.push('--label', `${FRAMEWORK_IMAGE_REVISION_LABEL}=${head.stdout.trim()}${dirty ? '-dirty' : ''}`);\n }\n return labels;\n }\n\n /**\n * The source pathspecs of a configured image, by name — what `fwk publish all --skipDocker` asks git\n * about. `null` for an image this lane has no build definition for.\n */\n static imageSourcePathspecs(frameworkRoot: string, imageName: string): string[] | null {\n const buildDefinition = FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS[imageName];\n if (!buildDefinition) return null;\n const frameworkLayout = resolveFrameworkLayout(frameworkRoot);\n return dockerContextSourcePathspecs(\n frameworkRoot,\n buildDefinition.resolveContextPath(frameworkLayout),\n buildDefinition.resolveDockerfilePath(frameworkLayout),\n );\n }\n\n private static buildCommandPreview(\n contextPath: string,\n dockerfilePath: string,\n imageRef: string,\n aliasImageRefs: string[],\n identity: FrameworkImageIdentity,\n ): string[] {\n return [\n `docker buildx build --platform ${FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(',')} -f \"${dockerfilePath}\" -t \"${imageRef}\" --label ${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version} --label ${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl} --label ${FRAMEWORK_IMAGE_CREATED_LABEL}=<build instant> --label ${FRAMEWORK_IMAGE_REVISION_LABEL}=<HEAD>[-dirty] ${FRAMEWORK_IMAGE_ATTESTATION_ARGS.join(' ')} --push \"${contextPath}\"`,\n ...aliasImageRefs.map((aliasRef) => `docker buildx imagetools create -t \"${aliasRef}\" \"${imageRef}\"`),\n ];\n }\n\n private static asFrameworkRelativePath(frameworkRoot: string, absolutePath: string): string {\n return relative(frameworkRoot, absolutePath) || '.';\n }\n\n private static assertDockerReady(): void {\n const dockerState = DockerUtils.checkDockerRunning();\n if (!dockerState.available || !dockerState.running) {\n throw new Error(dockerState.error ?? 'Docker must be running to publish framework images.');\n }\n }\n\n /**\n * `docker login` with no host argument authenticates against Docker Hub, so\n * the registry host must be passed explicitly or the credential is sent to\n * the wrong registry and the later push fails as unauthenticated.\n */\n private static runDockerLogin(registryHost: string, username: string, publishToken: string): void {\n const loginResult = spawnSync(\n 'docker',\n ['login', registryHost, '--username', username, '--password-stdin'],\n {\n input: publishToken,\n encoding: 'utf8',\n stdio: ['pipe', 'inherit', 'inherit'],\n },\n );\n if (loginResult.status !== 0) {\n throw new Error(`Docker login failed for username \"${username}\" at ${registryHost}.`);\n }\n }\n\n private static runDockerCommand(label: string, args: string[]): void {\n const result = spawnSync('docker', args, {\n encoding: 'utf8',\n stdio: 'inherit',\n });\n if (result.status !== 0) {\n throw new Error(`Docker ${label} failed.`);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"framework-docker-publish.service.js","sourceRoot":"","sources":["../../../../src/services/framework/framework-docker-publish.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAA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,CAAC,KAA2C,EAAE,IAAI,KAAK,WAAW,CAAC;YAC3F,MAAM,MAAM,GAAG,QAAQ;gBACrB,CAAC,CAAC,qBAAqB,OAAO,yDAAyD;gBACvF,CAAC,CAAC,MAAM,CAAC,MAAM;oBACb,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,EAAE;oBACpC,CAAC,CAAC,aAAa,MAAM,CAAC,MAAM,IAAI,kBAAkB,EAAE,CAAC;YACzD,MAAM,IAAI,GAAG,OAAO,KAAK,qCAAqC,CAAC;YAC/D,GAAG,CAAC,UAAU,KAAK,aAAa,OAAO,OAAO,qCAAqC,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC;YAClI,IAAI,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,iBAAiB,qCAAqC,cAAc,MAAM,GAAG,CAAC,CAAC;QAC1H,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,KAAa,EAAE,IAAc;QAC3D,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE;YACvC,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;CACF","sourcesContent":["import { spawnSync } from 'child_process';\nimport { existsSync, mkdtempSync, readFileSync, rmSync } from 'fs';\nimport { tmpdir } from 'os';\nimport { join, relative } from 'path';\nimport {\n resolveFrameworkLayout,\n WildoFrameworkDockerImageRole,\n WildoFrameworkDockerImageVariant,\n type FrameworkLayoutPaths,\n type WildoFrameworkReleaseDockerImage,\n} from '@wildo-ai/platform-config-lib';\nimport {\n FRAMEWORK_RELEASE_DOCKER_NAMESPACE,\n FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST,\n} from '@wildo-ai/platform-config-lib';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport { DockerUtils } from '~wildo-cli/services/deployment/docker/docker.service';\n\n/** OCI annotation keys (image-spec `annotations.md`, dead-plan-citation: the OCI spec's own file), used here as build labels. */\nexport const FRAMEWORK_IMAGE_REVISION_LABEL = 'org.opencontainers.image.revision';\nexport const FRAMEWORK_IMAGE_CREATED_LABEL = 'org.opencontainers.image.created';\n/**\n * The release the image IS: the immutable tag it is pushed under (the framework version, or a channel's\n * own identity such as `test-<sha>`), so an image pulled by an alias or by digest still names its release.\n */\nexport const FRAMEWORK_IMAGE_VERSION_LABEL = 'org.opencontainers.image.version';\n/** The repository the image is built from: the framework config's `publish.npm.repositoryUrl`. */\nexport const FRAMEWORK_IMAGE_SOURCE_LABEL = 'org.opencontainers.image.source';\n\n/**\n * The BuildKit attestations pushed beside every framework image, inside the same image index: SLSA\n * provenance in `max` mode (the full build definition: Dockerfile, build args, source materials) and an\n * SPDX SBOM of each platform's filesystem. Registries and scanners (Docker Scout, `docker buildx\n * imagetools inspect --format '{{json .Provenance}}'`/`'{{json .SBOM}}'`) read them from there, and\n * `imagetools create` carries them along when an alias is repointed at the index.\n */\nexport const FRAMEWORK_IMAGE_ATTESTATION_ARGS = ['--provenance=mode=max', '--sbom=true'] as const;\n\n/**\n * How a pushed framework image is signed (#3063). Chosen by the environment that runs the lane, never by the lane\n * itself: keyless signing needs a workload identity (the release job's GitHub OIDC token), which a developer machine\n * running the break-glass `wildo fwk release` does not have.\n */\nexport enum FrameworkImageSigning {\n /**\n * `cosign sign --yes <repository>@<digest>`: a short-lived Fulcio certificate bound to the release workflow's identity,\n * the signature recorded in the Rekor transparency log and stored beside the image index in the registry, then\n * `cosign verify` against that identity. Signs the DIGEST of the index buildx pushed, never a tag, so what is signed is\n * exactly what was built. An alias (`latest`) is covered only while it names that same index: `imagetools create` from\n * one index source keeps the index as it is, so its digest is the signed one.\n *\n * The certificate puts the repository, the workflow, its ref, the commit and the run in the public Rekor log for good.\n * The image's own OCI labels already publish the source URL and the revision.\n */\n COSIGN_KEYLESS = 'cosign_keyless',\n}\n\n/** The environment variable a release environment sets to a {@link FrameworkImageSigning} member. Unset: no signing. */\nexport const FRAMEWORK_IMAGE_SIGNING_ENV = 'WILDO_FRAMEWORK_IMAGE_SIGNING';\n\n/** The OIDC issuer of a GitHub Actions workload identity: the issuer of every keyless certificate the release signs with. */\nexport const GITHUB_ACTIONS_OIDC_ISSUER = 'https://token.actions.githubusercontent.com';\n\n/**\n * The identity a keyless signature made in this job carries, as `cosign verify --certificate-identity` takes it:\n * `https://github.com/<owner>/<repo>/<workflow path>@<ref>`, from `GITHUB_WORKFLOW_REF`. Undefined outside Actions.\n */\nexport function githubWorkflowSigningIdentityOf(env: NodeJS.ProcessEnv = process.env): string | undefined {\n const workflowRef = env.GITHUB_WORKFLOW_REF?.trim();\n return workflowRef ? `${env.GITHUB_SERVER_URL?.trim() || 'https://github.com'}/${workflowRef}` : undefined;\n}\n\n/** What became of one image's signature. */\nexport enum FrameworkImageSignatureOutcome {\n /** Signed by digest. */\n SIGNED = 'signed',\n /** The environment asked for no signing (a developer machine running the break-glass release). */\n NOT_REQUESTED = 'not_requested',\n /**\n * Asked for and not proven: no workload identity to sign as (`GITHUB_WORKFLOW_REF` unset), the pushed digest unreadable,\n * cosign absent or refusing to sign, or a signature made that `cosign verify` did not confirm. The image is already public, so\n * the release does not stop on it (a consumer's `cosign verify` reports the missing signature, a false claim is not\n * made); the lane reports it, and the image is signed by hand with the command named in `reason`.\n */\n FAILED = 'failed',\n}\n\n/** The signing the environment asks for, or undefined. An unknown value is refused, never read as \"no signing\". */\nexport function frameworkImageSigningOf(env: NodeJS.ProcessEnv = process.env): FrameworkImageSigning | undefined {\n const raw = env[FRAMEWORK_IMAGE_SIGNING_ENV]?.trim();\n if (!raw) return undefined;\n if (!(Object.values(FrameworkImageSigning) as string[]).includes(raw)) {\n throw new Error(`${FRAMEWORK_IMAGE_SIGNING_ENV}=\"${raw}\" names no image signing; expected one of: ${Object.values(FrameworkImageSigning).join(', ')}.`);\n }\n return raw as FrameworkImageSigning;\n}\n\n/** What the identity labels say: the release and the repository it was built from. */\ninterface FrameworkImageIdentity {\n version: string;\n sourceUrl: string;\n}\n\n/** A `.dockerignore` pattern that names no wildcard — a plain path, rather than a glob pathspec. */\nfunction isPlainIgnorePath(pattern: string): boolean {\n return !/[*?[\\]]/.test(pattern);\n}\n\n/**\n * The git pathspecs covering what a Docker build SENDS from its context, derived from the ignore file\n * the build itself obeys: `<Dockerfile>.dockerignore` when present (BuildKit prefers it), else the\n * context's `.dockerignore`. What the image was built from is then asked of those paths only — whether\n * they were dirty at build time, and how many commits touched them since — instead of the whole\n * repository, which several sessions edit at once and would mark nearly every image dirty.\n *\n * - A deny-all file (`*` then `!path` re-includes) scopes to its re-includes — a plain one as a path, a\n * wildcard one as a `:(glob)` pathspec, since the build sends what it matches; otherwise the whole\n * context is in scope.\n * - Its `**\\/…` exclusions become git `:(exclude,glob)` pathspecs, as `…/**` so a directory pattern\n * excludes the files under it (a bare `**\\/__tests__` glob matches no file — measured). EXCEPT those\n * under `src/`: the image excludes TypeScript source only because it ships the `dist/` compiled from\n * it, and `dist/` is gitignored — so the source IS the tracked form of what the image carries.\n *\n * Paths are relative to the framework root, where git runs. Pure over the ignore file's text, so a\n * new re-include there widens the scope with no edit here.\n */\nexport function dockerContextSourcePathspecs(frameworkRoot: string, contextPath: string, dockerfilePath: string): string[] {\n const contextRelative = relative(frameworkRoot, contextPath) || '.';\n const ignorePath = [`${dockerfilePath}.dockerignore`, join(contextPath, '.dockerignore')].find((candidate) => existsSync(candidate));\n const lines = ignorePath === undefined ? [] : readFileSync(ignorePath, 'utf8').split('\\n')\n .map((line) => line.trim())\n .filter((line) => line.length > 0 && !line.startsWith('#'));\n const inContext = (path: string): string => (contextRelative === '.' ? path : `${contextRelative}/${path}`);\n const includes = lines.includes('*')\n ? lines\n .filter((line) => line.startsWith('!'))\n .map((line) => (isPlainIgnorePath(line.slice(1)) ? inContext(line.slice(1)) : `:(glob)${inContext(line.slice(1))}`))\n : [contextRelative];\n const excludes = lines\n .filter((line) => line.startsWith('**/') && !line.slice(3).startsWith('src/'))\n .flatMap((line) => [`:(exclude,glob)${line}`, `:(exclude,glob)${line}/**`]);\n return [...(includes.length > 0 ? includes : [contextRelative]), ...excludes];\n}\n\nexport interface FrameworkDockerPublishOptions {\n frameworkRoot?: string;\n targets?: string[];\n dryRun?: boolean;\n /**\n * The IMMUTABLE tag every selected image is published under. Defaults to the\n * framework version.\n *\n * A channel that publishes per-commit supplies its own identity here — e.g.\n * `test-<sha>` — because on that channel the commit, not the version, is what\n * makes the artifact unique. Two pushes of the same framework version from\n * different commits must not collide on one tag.\n */\n immutableTag?: string;\n /**\n * MUTABLE aliases repointed at the image after every immutable push has\n * succeeded — `latest`, `test`, `next`.\n *\n * Kept as one list rather than a boolean per alias: an alias is a pointer, and\n * the set of pointers a channel maintains is channel policy, not a fixed\n * vocabulary this service should enumerate.\n */\n aliasTags?: string[];\n}\n\nexport interface FrameworkDockerPublishTargetResult {\n imageName: string;\n /** `<registry host>/<namespace>/<image>`, with no tag: what a digest reference is written against. */\n imageRepository: string;\n imageRef: string;\n /** The image index digest the push wrote (`containerimage.digest` in buildx's metadata file), once pushed. */\n digest?: string;\n /** What became of the image's signature, once pushed (#3063). */\n signature?: { outcome: FrameworkImageSignatureOutcome; reason?: string };\n aliasImageRefs: string[];\n buildContextPath: string;\n dockerfilePath: string;\n commands: string[];\n}\n\nexport interface FrameworkDockerPublishResult {\n frameworkVersion: string;\n namespace: string;\n targets: FrameworkDockerPublishTargetResult[];\n}\n\ninterface FrameworkDockerBuildContract {\n contextPath: string;\n dockerfilePath: string;\n}\n\ninterface FrameworkDockerBuildDefinition {\n role: WildoFrameworkDockerImageRole;\n variant: WildoFrameworkDockerImageVariant;\n resolveContextPath: (layout: FrameworkLayoutPaths) => string;\n resolveDockerfilePath: (layout: FrameworkLayoutPaths) => string;\n}\n\nconst FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS: Record<string, FrameworkDockerBuildDefinition> = {\n 'wildo-platform': {\n role: WildoFrameworkDockerImageRole.PLATFORM_SERVICE,\n variant: WildoFrameworkDockerImageVariant.DEFAULT,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.platformBaseDockerfilePath,\n },\n 'wildo-backend-base': {\n role: WildoFrameworkDockerImageRole.APPLICATION_BACKEND,\n variant: WildoFrameworkDockerImageVariant.DEFAULT,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.backendBaseDockerfilePath,\n },\n 'wildo-backend-base-java': {\n role: WildoFrameworkDockerImageRole.APPLICATION_BACKEND,\n variant: WildoFrameworkDockerImageVariant.JAVA,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.backendJavaDockerfilePath,\n },\n};\n\n/**\n * Publishes the framework-owned Docker image contract declared in framework\n * config. Each publishable image must resolve to a truthful framework-owned\n * Dockerfile so the release lane stays explicit about what the framework ships.\n */\n/**\n * The platforms every published framework image is built for, as ONE multi-platform\n * manifest list under the immutable tag.\n *\n * Decided 2026-09-03 (Paul): the Apple-Silicon-versus-x86 split is handled by the\n * registry, never by an operator. A host pulls its native image from the same\n * `docker.io/wildoai/<image>:<version>` reference, so compose files and k8s manifests carry\n * no architecture knowledge. The previous lane built `linux/amd64` only, which put every\n * Apple Silicon developer under emulation and could never produce a native arm64 image.\n *\n * Native modules (argon2, sharp, canvas, esbuild) are installed INSIDE each platform's\n * builder stage, so the binaries match by construction — see `Dockerfile.platform-base`.\n * Building the non-native half runs under QEMU on a laptop; if that becomes too slow the\n * same command moves to a CI matrix with native runners, and this list does not change.\n */\nexport const FRAMEWORK_DOCKER_IMAGE_PLATFORMS = ['linux/amd64', 'linux/arm64'] as const;\n\n/**\n * How long one image build may run, and how many times it is tried (#3063).\n *\n * The arm64 half is built under QEMU, and QEMU can crash the emulated Node process (`qemu: uncaught target\n * signal 4 (Illegal instruction)`) with nothing in the build noticing: the 1.1.13 release (framework-release\n * run 43566115901, 2026-11-14) crashed 103 s into the arm64 `pnpm install`, printed nothing for two hours and\n * was cancelled by GitHub's three-hour job limit, with the version tagged and nothing published. The same\n * 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\n * is intermittent, and a second attempt is the remedy.\n *\n * A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12, so the bound is generous.\n * Two attempts fit inside the release job's limit with the rest of the lane. A retry cannot release half an\n * image: `buildx build --push` writes the tag only after every platform has built, and the tag is the\n * release's own, which nothing names until the npm step that follows.\n */\nexport const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS = 50 * 60_000;\nexport const FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS = 2;\n\nexport class FrameworkDockerPublishService {\n static async publishImages(\n options: FrameworkDockerPublishOptions = {},\n ): Promise<FrameworkDockerPublishResult> {\n const resolvedFrameworkRoot = options.frameworkRoot ?? FrameworkReleaseService.getFrameworkRoot();\n await FrameworkReleaseService.assertCliCompatibility(resolvedFrameworkRoot);\n const dryRun = options.dryRun === true;\n const aliasTags = (options.aliasTags ?? []).map((tag) => tag.trim()).filter((tag) => tag.length > 0);\n const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(\n resolvedFrameworkRoot,\n );\n const immutableTag = options.immutableTag?.trim() || frameworkConfig.frameworkVersion;\n // Read before anything is built, so an unknown value refuses a dry run too rather than surfacing after the push.\n const signing = frameworkImageSigningOf();\n const allTargets = frameworkConfig.publish.docker.images;\n const requestedTargets = new Set(options.targets ?? []);\n const selectedTargets = allTargets.filter(\n (image) => requestedTargets.size === 0 || requestedTargets.has(image.imageName),\n );\n\n FrameworkDockerPublishService.assertLockedDockerRegistryIdentity(\n frameworkConfig.publish.docker.registryHost,\n frameworkConfig.publish.docker.namespace,\n );\n\n if (requestedTargets.size > 0) {\n const missingTargets = [...requestedTargets].filter(\n (target) => !selectedTargets.some((image) => image.imageName === target),\n );\n if (missingTargets.length > 0) {\n throw new Error(`Unknown Docker publish target(s): ${missingTargets.join(', ')}.`);\n }\n }\n\n const result: FrameworkDockerPublishResult = {\n frameworkVersion: frameworkConfig.frameworkVersion,\n namespace: frameworkConfig.publish.docker.namespace,\n targets: selectedTargets.map((image) => {\n const buildContract = FrameworkDockerPublishService.resolveBuildContract(\n resolvedFrameworkRoot,\n image,\n );\n /**\n * Fully qualified, including the registry host. A bare\n * `<namespace>/<image>` reference resolves to Docker Hub by default, so\n * omitting the host would push these images somewhere other than the\n * registry the config declares — silently, and only discoverably by a\n * consumer failing to pull.\n */\n const imageRepository = `${frameworkConfig.publish.docker.registryHost}/${frameworkConfig.publish.docker.namespace}/${image.imageName}`;\n const imageRef = `${imageRepository}:${immutableTag}`;\n const aliasImageRefs = aliasTags.map((tag) => `${imageRepository}:${tag}`);\n\n return {\n imageName: image.imageName,\n imageRepository,\n imageRef,\n aliasImageRefs,\n buildContextPath: FrameworkDockerPublishService.asFrameworkRelativePath(\n resolvedFrameworkRoot,\n buildContract.contextPath,\n ),\n dockerfilePath: FrameworkDockerPublishService.asFrameworkRelativePath(\n resolvedFrameworkRoot,\n buildContract.dockerfilePath,\n ),\n commands: FrameworkDockerPublishService.buildCommandPreview(\n buildContract.contextPath,\n buildContract.dockerfilePath,\n imageRepository,\n imageRef,\n aliasImageRefs,\n { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl },\n signing,\n ),\n };\n }),\n };\n\n if (dryRun || result.targets.length === 0) {\n return result;\n }\n\n FrameworkDockerPublishService.assertDockerReady();\n FrameworkDockerPublishService.loginWithFrameworkSecrets(resolvedFrameworkRoot, frameworkConfig.publish.docker);\n\n for (const target of result.targets) {\n const configuredTarget = selectedTargets.find((image) => image.imageName === target.imageName);\n if (!configuredTarget) {\n throw new Error(`Missing Docker target definition for \"${target.imageName}\".`);\n }\n const buildContract = FrameworkDockerPublishService.resolveBuildContract(\n resolvedFrameworkRoot,\n configuredTarget,\n );\n\n /*\n * ONE buildx invocation builds every platform in `FRAMEWORK_DOCKER_IMAGE_PLATFORMS` and\n * pushes them as a single manifest list under the immutable tag. A multi-platform result\n * cannot be `--load`ed into the local daemon (it is not one image), which is why this is\n * `--push` rather than the old build-then-push pair. No CLI lane builds into the local daemon\n * since #2988 removed `wildo local up --rebuild`, whose image no runtime ran; the registry host's\n * `--fromCheckout` builds there, on the host's own platform.\n *\n * The push carries the SLSA provenance and SBOM attestations (`FRAMEWORK_IMAGE_ATTESTATION_ARGS`)\n * in the same index, and the OCI labels name the release, the repository, the revision and the\n * build instant (`provenanceLabelArgs`).\n */\n // buildx writes the pushed index's digest here (`containerimage.digest`): what the signature is made over.\n const metadataDir = mkdtempSync(join(tmpdir(), 'wildo-image-metadata-'));\n const metadataFile = join(metadataDir, 'metadata.json');\n try {\n FrameworkDockerPublishService.runDockerBuild('buildx build --push', [\n 'buildx',\n 'build',\n '--platform',\n FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),\n '-f',\n buildContract.dockerfilePath,\n '-t',\n target.imageRef,\n ...FrameworkDockerPublishService.provenanceLabelArgs(\n resolvedFrameworkRoot,\n dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath),\n { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl },\n ),\n ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,\n '--metadata-file',\n metadataFile,\n '--push',\n buildContract.contextPath,\n ]);\n target.digest = FrameworkDockerPublishService.pushedDigestOf(metadataFile);\n } finally {\n rmSync(metadataDir, { recursive: true, force: true });\n }\n }\n\n /*\n * Aliases are repointed only after EVERY immutable push has succeeded.\n *\n * The previous shape moved each image's alias inside the per-image loop, so\n * a failure on image N left images 1..N-1 already advertising the new\n * release through `latest` while the release as a whole had not happened —\n * a partial release that looks complete to anyone pulling the alias. With\n * one image in the publish set that was unobservable; it returns the moment\n * a second image is re-added, which is exactly when nobody would be looking\n * for it.\n */\n for (const target of result.targets) {\n for (const aliasRef of target.aliasImageRefs) {\n // `imagetools create` repoints the alias at the whole MANIFEST LIST in the registry, its\n // attestation manifests included; a local `docker tag` + `push` would only ever carry the one\n // platform the daemon holds, and no attestation.\n FrameworkDockerPublishService.runDockerCommand('imagetools create alias', [\n 'buildx',\n 'imagetools',\n 'create',\n '-t',\n aliasRef,\n target.imageRef,\n ]);\n }\n }\n\n // Signed by digest once every image is pushed; see FrameworkImageSigning.COSIGN_KEYLESS for what that covers.\n for (const target of result.targets) {\n target.signature = FrameworkDockerPublishService.signImage(target, signing);\n }\n\n return result;\n }\n\n /** The image index digest buildx recorded in its metadata file, or undefined when it recorded none. */\n static pushedDigestOf(metadataFile: string): string | undefined {\n try {\n const metadata = JSON.parse(readFileSync(metadataFile, 'utf8')) as Record<string, unknown>;\n const digest = metadata['containerimage.digest'];\n return typeof digest === 'string' && /^sha256:[0-9a-f]{64}$/.test(digest) ? digest : undefined;\n } catch {\n return undefined;\n }\n }\n\n /**\n * Sign one pushed image as the environment asks (#3063). Never throws: the image is already public, so a signature\n * that cannot be made is reported (FAILED, with the command to run by hand) rather than stopping the release after it\n * published, and a consumer's `cosign verify` sees it missing rather than being told anything false.\n *\n * cosign reads the registry credentials `docker login` wrote (`loginWithFrameworkSecrets`), and in GitHub Actions takes\n * the job's OIDC token on its own (`id-token: write`). SIGNED means the signature then VERIFIED against this job's\n * workflow identity (`cosign verify`), so the outcome is the registry's answer rather than the signing command's exit.\n */\n static signImage(\n target: Pick<FrameworkDockerPublishTargetResult, 'imageRepository' | 'digest'>,\n signing: FrameworkImageSigning | undefined,\n spawn: typeof spawnSync = spawnSync,\n env: NodeJS.ProcessEnv = process.env,\n ): NonNullable<FrameworkDockerPublishTargetResult['signature']> {\n if (signing === undefined) return { outcome: FrameworkImageSignatureOutcome.NOT_REQUESTED };\n if (!target.digest) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `buildx recorded no digest for ${target.imageRepository}; sign it by hand: cosign sign --yes ${target.imageRepository}@<digest>` };\n }\n const reference = `${target.imageRepository}@${target.digest}`;\n const identity = githubWorkflowSigningIdentityOf(env);\n if (!identity) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `keyless signing needs a GitHub Actions workload identity (GITHUB_WORKFLOW_REF is unset); sign it by hand: cosign sign --yes ${reference}` };\n }\n const failed = (step: string, run: ReturnType<typeof spawnSync>) =>\n `${step}: ${run.error ? run.error.message : `cosign exited ${run.status ?? 'without a status'}`}`;\n const signed = spawn('cosign', ['sign', '--yes', reference], { encoding: 'utf8', stdio: 'inherit' });\n if (signed.status !== 0) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('cosign sign', signed)}; sign it by hand: cosign sign --yes ${reference}` };\n }\n const verifyArgs = ['verify', '--certificate-identity', identity, '--certificate-oidc-issuer', GITHUB_ACTIONS_OIDC_ISSUER, reference];\n const verified = spawn('cosign', verifyArgs, { encoding: 'utf8', stdio: 'inherit' });\n if (verified.status !== 0) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('signed, but cosign verify', verified)}; check it with: cosign ${verifyArgs.join(' ')}` };\n }\n return { outcome: FrameworkImageSignatureOutcome.SIGNED };\n }\n\n /**\n * Log the Docker CLI in to the framework's registry with `docker.publishToken` from the framework secrets file.\n *\n * Every step that WRITES to the registry calls it itself: the image push, and moving the `latest` alias\n * (`wildo fwk publish all` step 8). A resumed release (`--skipDocker`) skips the push, so an alias move that relied\n * on the push's login ran unauthenticated: on a developer machine an earlier `docker login` hid that, and on a fresh\n * CI runner Docker Hub answered 401 (framework-release run 43278280537, 2026-11-12, #3063).\n *\n * @param frameworkRoot the framework checkout whose secrets file and release config are read\n */\n static async loginToRegistry(frameworkRoot: string): Promise<void> {\n const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(frameworkRoot);\n FrameworkDockerPublishService.loginWithFrameworkSecrets(frameworkRoot, frameworkConfig.publish.docker);\n }\n\n /** The login itself; `docker` gives the registry host, and the namespace used as the username when the secrets name none. */\n private static loginWithFrameworkSecrets(frameworkRoot: string, docker: { registryHost: string; namespace: string }): void {\n const secrets = FrameworkReleaseService.loadFrameworkDockerSecrets(frameworkRoot);\n const publishToken = secrets?.publishToken ?? null;\n if (!publishToken) {\n throw new Error(`Docker publish requires docker.publishToken in ${FrameworkReleaseService.resolveFrameworkSecretsPath(frameworkRoot)}.`);\n }\n FrameworkDockerPublishService.runDockerLogin(docker.registryHost, secrets?.publishUsername ?? docker.namespace, publishToken);\n }\n\n private static async loadFrameworkConfigOrThrow(frameworkRoot: string) {\n const frameworkConfig = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n if (!frameworkConfig) {\n throw new Error(\n `Framework release config not found at ${FrameworkReleaseService.resolveFrameworkConfigPath(frameworkRoot)}`,\n );\n }\n return frameworkConfig;\n }\n\n private static resolveBuildContract(\n frameworkRoot: string,\n target: WildoFrameworkReleaseDockerImage,\n ): FrameworkDockerBuildContract {\n const buildDefinition = FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS[target.imageName];\n if (!buildDefinition) {\n throw new Error(\n `Docker publish target \"${target.imageName}\" is not mapped to a framework Dockerfile yet.`,\n );\n }\n if (buildDefinition.role !== target.role || buildDefinition.variant !== target.variant) {\n throw new Error(\n `Docker publish target \"${target.imageName}\" must use ${buildDefinition.role}/${buildDefinition.variant}.`,\n );\n }\n\n const frameworkLayout = resolveFrameworkLayout(frameworkRoot);\n const contextPath = buildDefinition.resolveContextPath(frameworkLayout);\n const dockerfilePath = buildDefinition.resolveDockerfilePath(frameworkLayout);\n\n if (!existsSync(dockerfilePath)) {\n throw new Error(\n `Dockerfile for \"${target.imageName}\" not found at ${dockerfilePath}.`,\n );\n }\n\n return { contextPath, dockerfilePath };\n }\n\n /**\n * Both halves of the published image identity are locked, not just the\n * namespace. The registry host is the half that used to be implicit, and an\n * unlocked host is the more dangerous of the two: a wrong namespace fails\n * loudly on push permissions, while a wrong host can succeed and publish the\n * framework to a registry nobody is watching.\n */\n private static assertLockedDockerRegistryIdentity(registryHost: string, namespace: string): void {\n if (registryHost !== FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST) {\n throw new Error(\n `Docker publish currently supports only the locked registry host \"${FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST}\".`,\n );\n }\n if (namespace !== FRAMEWORK_RELEASE_DOCKER_NAMESPACE) {\n throw new Error(\n `Docker publish currently supports only the locked namespace \"${FRAMEWORK_RELEASE_DOCKER_NAMESPACE}\".`,\n );\n }\n }\n\n /**\n * The OCI labels stamped on every pushed image: the release it is (`identity.version`, the immutable\n * tag), the repository it comes from (`identity.sourceUrl`), the source revision and the build instant.\n *\n * Read back by `fwk publish all --skipDocker`, which resumes a release whose image is already pushed:\n * existence proves the tag is there, not that it was built from the source now being published, so the\n * resume prints what the image was built from and how many commits touched its inputs since. The\n * revision is HEAD, marked `-dirty` when the image's own inputs (`sourcePathspecs`) held uncommitted\n * edits or untracked files — the image then carries content no commit has. Edits elsewhere in the\n * shared tree do not mark it.\n *\n * The version is the immutable tag even when it is not a semver version (`test-<sha>` on a per-commit\n * channel): it is the one reference that always resolves to this image, so it is what the label names.\n */\n private static provenanceLabelArgs(\n frameworkRoot: string,\n sourcePathspecs: string[],\n identity: FrameworkImageIdentity,\n ): string[] {\n const labels = [\n '--label', `${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version}`,\n '--label', `${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl}`,\n '--label', `${FRAMEWORK_IMAGE_CREATED_LABEL}=${new Date().toISOString()}`,\n ];\n const head = spawnSync('git', ['rev-parse', 'HEAD'], { cwd: frameworkRoot, encoding: 'utf8' });\n if (head.status === 0 && head.stdout.trim()) {\n const status = spawnSync('git', ['status', '--porcelain', '--untracked-files=all', '--', ...sourcePathspecs], { cwd: frameworkRoot, encoding: 'utf8' });\n const dirty = status.status !== 0 || status.stdout.trim() !== '';\n labels.push('--label', `${FRAMEWORK_IMAGE_REVISION_LABEL}=${head.stdout.trim()}${dirty ? '-dirty' : ''}`);\n }\n return labels;\n }\n\n /**\n * The source pathspecs of a configured image, by name — what `fwk publish all --skipDocker` asks git\n * about. `null` for an image this lane has no build definition for.\n */\n static imageSourcePathspecs(frameworkRoot: string, imageName: string): string[] | null {\n const buildDefinition = FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS[imageName];\n if (!buildDefinition) return null;\n const frameworkLayout = resolveFrameworkLayout(frameworkRoot);\n return dockerContextSourcePathspecs(\n frameworkRoot,\n buildDefinition.resolveContextPath(frameworkLayout),\n buildDefinition.resolveDockerfilePath(frameworkLayout),\n );\n }\n\n private static buildCommandPreview(\n contextPath: string,\n dockerfilePath: string,\n imageRepository: string,\n imageRef: string,\n aliasImageRefs: string[],\n identity: FrameworkImageIdentity,\n signing: FrameworkImageSigning | undefined,\n ): string[] {\n return [\n `docker buildx build --platform ${FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(',')} -f \"${dockerfilePath}\" -t \"${imageRef}\" --label ${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version} --label ${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl} --label ${FRAMEWORK_IMAGE_CREATED_LABEL}=<build instant> --label ${FRAMEWORK_IMAGE_REVISION_LABEL}=<HEAD>[-dirty] ${FRAMEWORK_IMAGE_ATTESTATION_ARGS.join(' ')} --metadata-file <tmp> --push \"${contextPath}\"`,\n ...aliasImageRefs.map((aliasRef) => `docker buildx imagetools create -t \"${aliasRef}\" \"${imageRef}\"`),\n ...(signing === FrameworkImageSigning.COSIGN_KEYLESS\n ? [`cosign sign --yes \"${imageRepository}@<pushed digest>\"`, `cosign verify --certificate-identity <this workflow> --certificate-oidc-issuer ${GITHUB_ACTIONS_OIDC_ISSUER} \"${imageRepository}@<pushed digest>\"`]\n : []),\n ];\n }\n\n private static asFrameworkRelativePath(frameworkRoot: string, absolutePath: string): string {\n return relative(frameworkRoot, absolutePath) || '.';\n }\n\n private static assertDockerReady(): void {\n const dockerState = DockerUtils.checkDockerRunning();\n if (!dockerState.available || !dockerState.running) {\n throw new Error(dockerState.error ?? 'Docker must be running to publish framework images.');\n }\n }\n\n /**\n * `docker login` with no host argument authenticates against Docker Hub, so\n * the registry host must be passed explicitly or the credential is sent to\n * the wrong registry and the later push fails as unauthenticated.\n */\n private static runDockerLogin(registryHost: string, username: string, publishToken: string): void {\n const loginResult = spawnSync(\n 'docker',\n ['login', registryHost, '--username', username, '--password-stdin'],\n {\n input: publishToken,\n encoding: 'utf8',\n stdio: ['pipe', 'inherit', 'inherit'],\n },\n );\n if (loginResult.status !== 0) {\n throw new Error(`Docker login failed for username \"${username}\" at ${registryHost}.`);\n }\n }\n\n /**\n * Run one image build, bounded by `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and tried\n * `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times. A build that runs out of time is killed (SIGTERM ends the buildx\n * client, and BuildKit cancels the build when its session closes). Every failure says which attempt it was and\n * why, so a release log shows a hang as a hang rather than as silence.\n */\n static runDockerBuild(\n label: string,\n args: string[],\n spawn: typeof spawnSync = spawnSync,\n log: (message: string) => void = (message) => console.error(message),\n ): void {\n const minutes = Math.round(FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS / 60_000);\n for (let attempt = 1; attempt <= FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS; attempt += 1) {\n const result = spawn('docker', args, { encoding: 'utf8', stdio: 'inherit', timeout: FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS });\n if (result.status === 0) return;\n const timedOut = (result.error as NodeJS.ErrnoException | undefined)?.code === 'ETIMEDOUT';\n const reason = timedOut\n ? `it ran out of its ${minutes} minutes (an emulated platform can hang without a word)`\n : result.signal\n ? `it was ended by ${result.signal}`\n : `it exited ${result.status ?? 'without a status'}`;\n const last = attempt === FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS;\n log(`Docker ${label}, attempt ${attempt} of ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS}: ${reason}.${last ? '' : ' Trying again.'}`);\n if (last) throw new Error(`Docker ${label} failed after ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS} attempts: ${reason}.`);\n }\n }\n\n private static runDockerCommand(label: string, args: string[]): void {\n const result = spawnSync('docker', args, {\n encoding: 'utf8',\n stdio: 'inherit',\n });\n if (result.status !== 0) {\n throw new Error(`Docker ${label} failed.`);\n }\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The run annotations a release step writes for GitHub Actions to collect (#3699). Shared by `wildo fwk publish all` and
3
+ * the publish steps it runs as subprocesses (`wildo fwk publish docker`, #3063), so a step reports through the same
4
+ * title the release's Slack report reads without loading another command module.
5
+ */
6
+ /** The title of the run annotation a release raises when a step it does not depend on did not complete. */
7
+ export declare const RELEASE_INCOMPLETE_ANNOTATION_TITLE = "Release incomplete";
8
+ /**
9
+ * A GitHub Actions warning annotation for `message`, or null outside Actions (#3699).
10
+ *
11
+ * The provider modules are a step the release does not depend on, so their failure is a warning and the run stays
12
+ * green. A warning only LOGGED is invisible to everything that reports a run: release 1.1.13 published 3 of 48 modules
13
+ * and its Slack message read as a clean release, because `post-release-slack.mjs` lists the run's annotations and a log
14
+ * line is not one. Printed as a workflow command it becomes an annotation, and the report names it.
15
+ *
16
+ * The message is escaped as the runner requires (`%`, CR and LF), so a multi-line cause stays one annotation.
17
+ */
18
+ export declare function githubWarningAnnotation(title: string, message: string, env?: NodeJS.ProcessEnv): string | null;
19
+ //# sourceMappingURL=github-actions-annotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-actions-annotation.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/github-actions-annotation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2GAA2G;AAC3G,eAAO,MAAM,mCAAmC,uBAAuB,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,IAAI,CAK3H"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The run annotations a release step writes for GitHub Actions to collect (#3699). Shared by `wildo fwk publish all` and
3
+ * the publish steps it runs as subprocesses (`wildo fwk publish docker`, #3063), so a step reports through the same
4
+ * title the release's Slack report reads without loading another command module.
5
+ */
6
+ /** The title of the run annotation a release raises when a step it does not depend on did not complete. */
7
+ export const RELEASE_INCOMPLETE_ANNOTATION_TITLE = 'Release incomplete';
8
+ /**
9
+ * A GitHub Actions warning annotation for `message`, or null outside Actions (#3699).
10
+ *
11
+ * The provider modules are a step the release does not depend on, so their failure is a warning and the run stays
12
+ * green. A warning only LOGGED is invisible to everything that reports a run: release 1.1.13 published 3 of 48 modules
13
+ * and its Slack message read as a clean release, because `post-release-slack.mjs` lists the run's annotations and a log
14
+ * line is not one. Printed as a workflow command it becomes an annotation, and the report names it.
15
+ *
16
+ * The message is escaped as the runner requires (`%`, CR and LF), so a multi-line cause stays one annotation.
17
+ */
18
+ export function githubWarningAnnotation(title, message, env = process.env) {
19
+ if (env.GITHUB_ACTIONS !== 'true')
20
+ return null;
21
+ const escapeData = (value) => value.replace(/%/g, '%25').replace(/\r/g, '%0D').replace(/\n/g, '%0A');
22
+ const escapeProperty = (value) => escapeData(value).replace(/:/g, '%3A').replace(/,/g, '%2C');
23
+ return `::warning title=${escapeProperty(title)}::${escapeData(message)}`;
24
+ }
25
+ //# sourceMappingURL=github-actions-annotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-actions-annotation.js","sourceRoot":"","sources":["../../../../src/services/framework/github-actions-annotation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2GAA2G;AAC3G,MAAM,CAAC,MAAM,mCAAmC,GAAG,oBAAoB,CAAC;AAExE;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa,EAAE,OAAe,EAAE,MAAyB,OAAO,CAAC,GAAG;IAC1G,IAAI,GAAG,CAAC,cAAc,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAC/C,MAAM,UAAU,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrH,MAAM,cAAc,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC9G,OAAO,mBAAmB,cAAc,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;AAC5E,CAAC","sourcesContent":["/**\n * The run annotations a release step writes for GitHub Actions to collect (#3699). Shared by `wildo fwk publish all` and\n * the publish steps it runs as subprocesses (`wildo fwk publish docker`, #3063), so a step reports through the same\n * title the release's Slack report reads without loading another command module.\n */\n\n/** The title of the run annotation a release raises when a step it does not depend on did not complete. */\nexport const RELEASE_INCOMPLETE_ANNOTATION_TITLE = 'Release incomplete';\n\n/**\n * A GitHub Actions warning annotation for `message`, or null outside Actions (#3699).\n *\n * The provider modules are a step the release does not depend on, so their failure is a warning and the run stays\n * green. A warning only LOGGED is invisible to everything that reports a run: release 1.1.13 published 3 of 48 modules\n * and its Slack message read as a clean release, because `post-release-slack.mjs` lists the run's annotations and a log\n * line is not one. Printed as a workflow command it becomes an annotation, and the report names it.\n *\n * The message is escaped as the runner requires (`%`, CR and LF), so a multi-line cause stays one annotation.\n */\nexport function githubWarningAnnotation(title: string, message: string, env: NodeJS.ProcessEnv = process.env): string | null {\n if (env.GITHUB_ACTIONS !== 'true') return null;\n const escapeData = (value: string): string => value.replace(/%/g, '%25').replace(/\\r/g, '%0D').replace(/\\n/g, '%0A');\n const escapeProperty = (value: string): string => escapeData(value).replace(/:/g, '%3A').replace(/,/g, '%2C');\n return `::warning title=${escapeProperty(title)}::${escapeData(message)}`;\n}\n"]}