@wildo-ai/wildo-cli 1.1.13 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (589) hide show
  1. package/dist/src/commands/build/approve.command.d.ts +4 -0
  2. package/dist/src/commands/build/approve.command.d.ts.map +1 -1
  3. package/dist/src/commands/build/approve.command.js +14 -3
  4. package/dist/src/commands/build/approve.command.js.map +1 -1
  5. package/dist/src/commands/build/close.command.d.ts +4 -0
  6. package/dist/src/commands/build/close.command.d.ts.map +1 -1
  7. package/dist/src/commands/build/close.command.js +17 -3
  8. package/dist/src/commands/build/close.command.js.map +1 -1
  9. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  10. package/dist/src/commands/config/sync.command.js +21 -1
  11. package/dist/src/commands/config/sync.command.js.map +1 -1
  12. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  13. package/dist/src/commands/creation/feed.command.js +6 -3
  14. package/dist/src/commands/creation/feed.command.js.map +1 -1
  15. package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
  16. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  17. package/dist/src/commands/fwk/publish-all.command.js +57 -3
  18. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  19. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  20. package/dist/src/commands/fwk/publish-docker.command.js +16 -1
  21. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  22. package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
  23. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  24. package/dist/src/commands/fwk/registry-host.command.js +78 -3
  25. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  26. package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
  27. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  28. package/dist/src/commands/generate/email-command.utils.js +5 -0
  29. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  30. package/dist/src/commands/init.command.d.ts +14 -0
  31. package/dist/src/commands/init.command.d.ts.map +1 -1
  32. package/dist/src/commands/init.command.js +36 -5
  33. package/dist/src/commands/init.command.js.map +1 -1
  34. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  35. package/dist/src/commands/local/deregister.command.js +4 -0
  36. package/dist/src/commands/local/deregister.command.js.map +1 -1
  37. package/dist/src/commands/local/dev.command.d.ts +6 -0
  38. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  39. package/dist/src/commands/local/dev.command.js +72 -0
  40. package/dist/src/commands/local/dev.command.js.map +1 -1
  41. package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
  42. package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
  43. package/dist/src/commands/local/jobs-command.utils.js +44 -0
  44. package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
  45. package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
  46. package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
  47. package/dist/src/commands/local/jobs-run.command.js +92 -0
  48. package/dist/src/commands/local/jobs-run.command.js.map +1 -0
  49. package/dist/src/commands/local/jobs.command.d.ts +7 -0
  50. package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
  51. package/dist/src/commands/local/jobs.command.js +59 -0
  52. package/dist/src/commands/local/jobs.command.js.map +1 -0
  53. package/dist/src/commands/local/tunnel.command.d.ts +84 -0
  54. package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
  55. package/dist/src/commands/local/tunnel.command.js +274 -0
  56. package/dist/src/commands/local/tunnel.command.js.map +1 -0
  57. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  58. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  59. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  60. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  61. package/dist/src/commands/registry/update.command.js +1 -0
  62. package/dist/src/commands/registry/update.command.js.map +1 -1
  63. package/dist/src/commands/seal/verify.command.d.ts +18 -0
  64. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  65. package/dist/src/commands/seal/verify.command.js +62 -1
  66. package/dist/src/commands/seal/verify.command.js.map +1 -1
  67. package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
  68. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  69. package/dist/src/services/application/app-bootstrap.service.js +49 -3
  70. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  71. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  72. package/dist/src/services/application/app-runtime-targets.service.js +9 -1
  73. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  74. package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
  75. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  76. package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
  77. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  78. package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
  79. package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
  80. package/dist/src/services/application/local-tunnel.service.js +294 -0
  81. package/dist/src/services/application/local-tunnel.service.js.map +1 -0
  82. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  83. package/dist/src/services/application/provider-runtime-sync.service.js +29 -1
  84. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  85. package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
  86. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  87. package/dist/src/services/application/saas-skeleton.service.js +26 -2
  88. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  89. package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
  90. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  91. package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
  92. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  93. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  94. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  95. package/dist/src/services/companion/build-console.service.js +54 -4
  96. package/dist/src/services/companion/build-console.service.js.map +1 -1
  97. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  98. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  99. package/dist/src/services/companion/creation-console.service.js +14 -2
  100. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  101. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  102. package/dist/src/services/companion/creation-drive.service.js +5 -2
  103. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  104. package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
  105. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  106. package/dist/src/services/credentials/application-secrets.service.js +1 -1
  107. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  108. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  109. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  110. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  111. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  112. package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
  113. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  114. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  115. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  116. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  117. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  118. package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
  119. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  120. package/dist/src/services/credentials/secrets-writer.service.js +12 -3
  121. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  122. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  123. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  124. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  125. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  126. package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
  127. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  128. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
  129. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  130. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -14
  131. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  132. package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
  133. package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
  134. package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
  135. package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
  136. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  137. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  138. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  139. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
  140. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  141. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +20 -8
  142. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  143. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
  144. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  145. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  146. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  147. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
  148. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  149. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
  150. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
  151. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
  152. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
  153. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
  154. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
  155. package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
  156. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
  157. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
  158. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
  159. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
  160. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  161. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  162. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  163. package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
  164. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  165. package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
  166. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  167. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
  168. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
  169. package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
  170. package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
  171. package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
  172. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  173. package/dist/src/services/environment/env-configuration-generator.service.js +45 -8
  174. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  175. package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
  176. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  177. package/dist/src/services/environment/env-vars-builder.service.js +47 -32
  178. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  179. package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
  180. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  181. package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
  182. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  183. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  184. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  185. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  186. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  187. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  188. package/dist/src/services/environment/environment-setup.service.js +17 -6
  189. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  190. package/dist/src/services/environment/environment.service.d.ts +4 -3
  191. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  192. package/dist/src/services/environment/environment.service.js +0 -1
  193. package/dist/src/services/environment/environment.service.js.map +1 -1
  194. package/dist/src/services/framework/framework-docker-publish.service.d.ts +129 -0
  195. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  196. package/dist/src/services/framework/framework-docker-publish.service.js +271 -19
  197. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  198. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  199. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  200. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  201. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  202. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  203. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  204. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  205. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  206. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  207. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  208. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  209. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  210. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  211. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  212. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  213. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  214. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  215. package/dist/src/services/registry/module-install.service.js +1 -0
  216. package/dist/src/services/registry/module-install.service.js.map +1 -1
  217. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  218. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  219. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  220. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  221. package/dist/src/services/security/csp-sync.service.js +21 -2
  222. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  223. package/dist/tsconfig.build.tsbuildinfo +1 -1
  224. package/framework-root-package.json +3 -3
  225. package/package.json +23 -23
  226. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
  227. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +31 -9
  228. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
  229. package/templates/infra/registry-host/docker-compose.yml +9 -2
  230. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  231. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  232. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  233. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  234. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  235. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  236. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  237. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  238. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  239. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  240. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  241. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  242. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  243. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  244. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  245. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  246. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  247. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  248. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  249. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  250. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  251. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  252. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  253. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  254. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  255. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  256. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  257. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  258. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  259. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  260. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  261. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  262. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  263. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  264. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  265. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  266. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  267. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  268. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  269. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  270. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  271. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  272. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  273. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  274. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  275. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  276. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  277. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  278. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  279. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  280. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  281. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  282. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  283. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  284. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  285. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  286. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  287. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  288. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  289. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  290. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  291. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  292. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  293. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  294. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  295. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  296. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  297. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  298. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  299. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  300. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  301. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  302. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  303. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  304. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  305. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  306. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  307. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  308. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  309. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  310. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  311. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  312. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  313. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  314. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  315. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  316. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  317. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  318. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  319. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  320. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  321. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  322. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  323. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  324. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  325. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  326. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  327. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  328. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  329. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  330. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  331. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  332. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  333. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  334. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  335. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  336. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  337. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  338. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  339. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  340. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  341. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  342. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  343. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  344. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  345. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  346. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  347. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  348. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  349. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  350. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  351. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  352. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  353. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  354. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  355. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  356. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  357. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  358. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  359. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  360. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  361. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  362. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  363. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  364. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  365. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  366. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  367. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  368. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  369. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  370. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  371. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  372. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  373. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  374. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  375. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  376. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  377. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  378. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  379. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  380. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  381. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  382. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  383. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  384. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  385. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  386. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  387. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  388. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  389. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  390. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  391. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  392. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  393. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  394. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  395. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  396. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  397. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  398. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  399. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  400. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  401. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  402. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  403. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  404. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  405. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  406. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  407. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  408. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  409. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  410. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  411. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  412. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  413. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  414. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  415. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  416. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  417. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  418. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  419. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  420. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  421. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  422. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  423. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  424. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  425. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  426. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  427. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  428. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  429. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  430. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  431. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  432. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  433. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  434. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  435. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  436. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  437. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  438. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  439. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  440. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  441. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  442. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  443. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  444. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  445. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  446. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  447. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  448. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  449. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  450. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  451. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  452. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  453. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  454. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  455. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  456. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  457. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  458. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  459. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  460. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  461. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  462. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  463. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  464. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  465. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  466. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  467. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  468. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  469. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  470. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  471. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  472. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  473. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  474. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  475. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  476. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  477. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  478. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  479. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  480. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  481. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  482. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  483. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  484. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  485. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  486. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  487. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  488. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  489. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  490. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  491. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  492. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  493. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  494. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  495. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  496. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  497. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  498. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  499. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  500. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  501. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  502. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  503. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  504. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  505. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  506. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  507. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  508. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  509. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  510. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  511. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  512. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  513. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  514. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  515. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  516. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  517. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  518. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  519. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  520. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  521. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  522. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  523. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  524. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  525. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  526. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  527. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  528. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  529. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  530. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  531. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  532. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  533. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  534. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  535. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  536. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  537. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  538. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  539. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  540. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  541. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  542. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  543. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  544. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  545. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  546. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  547. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  548. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  549. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  550. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  551. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  552. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  553. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  554. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  555. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  556. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  557. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  558. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  559. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  560. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  561. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  562. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  563. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  564. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  565. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  566. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  567. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  568. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  569. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  570. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  571. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  572. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  573. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  574. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  575. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  576. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  577. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  578. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  579. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  580. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  581. package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
  582. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  583. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  584. package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
  585. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
  586. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  587. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  588. package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
  589. package/wildo-framework.info.json +1 -1
@@ -1,5 +1,6 @@
1
- import { spawnSync } from 'child_process';
2
- import { existsSync, readFileSync } from 'fs';
1
+ import { spawn, spawnSync } from 'child_process';
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,54 @@ 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, #3963).
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 crash is
170
+ * intermittent (same base image digest, same QEMU), and FREQUENT: the 1.1.14 release (run 43853716196,
171
+ * 2026-11-16) crashed on both of its two attempts, so 3 of the 4 arm64 attempts then recorded crashed.
172
+ *
173
+ * So an attempt ends the moment QEMU reports the crash (`QEMU_CRASH_PATTERN`) and is tried again, which costs
174
+ * about two minutes rather than the whole bound. The bound stays for a build that hangs WITHOUT that line, and
175
+ * at most `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS` attempts may run it out: the worst case is the two silent
176
+ * 50-minute attempts the lane already allowed, which fit inside the release job's limit with the rest of the
177
+ * lane. A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12.
178
+ *
179
+ * A retry cannot release half an image: `buildx build --push` writes the tag only after every platform has
180
+ * built, and the tag is the release's own, which nothing names until the npm step that follows.
181
+ */
182
+ export const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS = 50 * 60_000;
183
+ export const FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS = 4;
184
+ export const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS = 2;
185
+ /**
186
+ * What QEMU prints when an emulated process dies of a signal nothing handled. A process that probes a CPU
187
+ * feature by catching SIGILL (OpenSSL does) never produces it, because the signal is caught; this line means
188
+ * an emulated process is DEAD, and in every recorded instance the build then hung without another word. It
189
+ * appears in none of the successful release logs read (#3963), so ending the attempt on it cannot end a build
190
+ * that would have finished.
191
+ */
192
+ export const QEMU_CRASH_PATTERN = /qemu: uncaught target signal \d+/;
193
+ /**
194
+ * How one image build attempt ended (#3963). Only `SUCCEEDED` ends the build; `TIMED_OUT` counts against
195
+ * `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS`; `SPAWN_FAILED` (docker itself could not start) is not retried, since
196
+ * a second start would fail the same way; the rest are tried again.
197
+ */
198
+ export var DockerBuildAttemptOutcome;
199
+ (function (DockerBuildAttemptOutcome) {
200
+ /** buildx exited 0: every platform built and the index was pushed. */
201
+ DockerBuildAttemptOutcome["SUCCEEDED"] = "succeeded";
202
+ /** The attempt ran out of `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and was ended. */
203
+ DockerBuildAttemptOutcome["TIMED_OUT"] = "timed-out";
204
+ /** QEMU printed `QEMU_CRASH_PATTERN`, and the attempt was ended without waiting for the bound. */
205
+ DockerBuildAttemptOutcome["EMULATOR_CRASHED"] = "emulator-crashed";
206
+ /** The `docker` process could not be started at all. */
207
+ DockerBuildAttemptOutcome["SPAWN_FAILED"] = "spawn-failed";
208
+ /** buildx exited non-zero, or was ended by a signal this lane did not send. */
209
+ DockerBuildAttemptOutcome["FAILED"] = "failed";
210
+ })(DockerBuildAttemptOutcome || (DockerBuildAttemptOutcome = {}));
106
211
  export class FrameworkDockerPublishService {
107
212
  static async publishImages(options = {}) {
108
213
  const resolvedFrameworkRoot = options.frameworkRoot ?? FrameworkReleaseService.getFrameworkRoot();
@@ -111,6 +216,8 @@ export class FrameworkDockerPublishService {
111
216
  const aliasTags = (options.aliasTags ?? []).map((tag) => tag.trim()).filter((tag) => tag.length > 0);
112
217
  const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(resolvedFrameworkRoot);
113
218
  const immutableTag = options.immutableTag?.trim() || frameworkConfig.frameworkVersion;
219
+ // Read before anything is built, so an unknown value refuses a dry run too rather than surfacing after the push.
220
+ const signing = frameworkImageSigningOf();
114
221
  const allTargets = frameworkConfig.publish.docker.images;
115
222
  const requestedTargets = new Set(options.targets ?? []);
116
223
  const selectedTargets = allTargets.filter((image) => requestedTargets.size === 0 || requestedTargets.has(image.imageName));
@@ -138,11 +245,12 @@ export class FrameworkDockerPublishService {
138
245
  const aliasImageRefs = aliasTags.map((tag) => `${imageRepository}:${tag}`);
139
246
  return {
140
247
  imageName: image.imageName,
248
+ imageRepository,
141
249
  imageRef,
142
250
  aliasImageRefs,
143
251
  buildContextPath: FrameworkDockerPublishService.asFrameworkRelativePath(resolvedFrameworkRoot, buildContract.contextPath),
144
252
  dockerfilePath: FrameworkDockerPublishService.asFrameworkRelativePath(resolvedFrameworkRoot, buildContract.dockerfilePath),
145
- commands: FrameworkDockerPublishService.buildCommandPreview(buildContract.contextPath, buildContract.dockerfilePath, imageRef, aliasImageRefs, { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
253
+ commands: FrameworkDockerPublishService.buildCommandPreview(buildContract.contextPath, buildContract.dockerfilePath, imageRepository, imageRef, aliasImageRefs, { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }, signing),
146
254
  };
147
255
  }),
148
256
  };
@@ -169,20 +277,31 @@ export class FrameworkDockerPublishService {
169
277
  * in the same index, and the OCI labels name the release, the repository, the revision and the
170
278
  * build instant (`provenanceLabelArgs`).
171
279
  */
172
- FrameworkDockerPublishService.runDockerCommand('buildx build --push', [
173
- 'buildx',
174
- 'build',
175
- '--platform',
176
- FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),
177
- '-f',
178
- buildContract.dockerfilePath,
179
- '-t',
180
- target.imageRef,
181
- ...FrameworkDockerPublishService.provenanceLabelArgs(resolvedFrameworkRoot, dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath), { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
182
- ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,
183
- '--push',
184
- buildContract.contextPath,
185
- ]);
280
+ // buildx writes the pushed index's digest here (`containerimage.digest`): what the signature is made over.
281
+ const metadataDir = mkdtempSync(join(tmpdir(), 'wildo-image-metadata-'));
282
+ const metadataFile = join(metadataDir, 'metadata.json');
283
+ try {
284
+ await FrameworkDockerPublishService.runDockerBuild('buildx build --push', [
285
+ 'buildx',
286
+ 'build',
287
+ '--platform',
288
+ FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),
289
+ '-f',
290
+ buildContract.dockerfilePath,
291
+ '-t',
292
+ target.imageRef,
293
+ ...FrameworkDockerPublishService.provenanceLabelArgs(resolvedFrameworkRoot, dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath), { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
294
+ ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,
295
+ '--metadata-file',
296
+ metadataFile,
297
+ '--push',
298
+ buildContract.contextPath,
299
+ ]);
300
+ target.digest = FrameworkDockerPublishService.pushedDigestOf(metadataFile);
301
+ }
302
+ finally {
303
+ rmSync(metadataDir, { recursive: true, force: true });
304
+ }
186
305
  }
187
306
  /*
188
307
  * Aliases are repointed only after EVERY immutable push has succeeded.
@@ -210,8 +329,55 @@ export class FrameworkDockerPublishService {
210
329
  ]);
211
330
  }
212
331
  }
332
+ // Signed by digest once every image is pushed; see FrameworkImageSigning.COSIGN_KEYLESS for what that covers.
333
+ for (const target of result.targets) {
334
+ target.signature = FrameworkDockerPublishService.signImage(target, signing);
335
+ }
213
336
  return result;
214
337
  }
338
+ /** The image index digest buildx recorded in its metadata file, or undefined when it recorded none. */
339
+ static pushedDigestOf(metadataFile) {
340
+ try {
341
+ const metadata = JSON.parse(readFileSync(metadataFile, 'utf8'));
342
+ const digest = metadata['containerimage.digest'];
343
+ return typeof digest === 'string' && /^sha256:[0-9a-f]{64}$/.test(digest) ? digest : undefined;
344
+ }
345
+ catch {
346
+ return undefined;
347
+ }
348
+ }
349
+ /**
350
+ * Sign one pushed image as the environment asks (#3063). Never throws: the image is already public, so a signature
351
+ * that cannot be made is reported (FAILED, with the command to run by hand) rather than stopping the release after it
352
+ * published, and a consumer's `cosign verify` sees it missing rather than being told anything false.
353
+ *
354
+ * cosign reads the registry credentials `docker login` wrote (`loginWithFrameworkSecrets`), and in GitHub Actions takes
355
+ * the job's OIDC token on its own (`id-token: write`). SIGNED means the signature then VERIFIED against this job's
356
+ * workflow identity (`cosign verify`), so the outcome is the registry's answer rather than the signing command's exit.
357
+ */
358
+ static signImage(target, signing, spawn = spawnSync, env = process.env) {
359
+ if (signing === undefined)
360
+ return { outcome: FrameworkImageSignatureOutcome.NOT_REQUESTED };
361
+ if (!target.digest) {
362
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `buildx recorded no digest for ${target.imageRepository}; sign it by hand: cosign sign --yes ${target.imageRepository}@<digest>` };
363
+ }
364
+ const reference = `${target.imageRepository}@${target.digest}`;
365
+ const identity = githubWorkflowSigningIdentityOf(env);
366
+ if (!identity) {
367
+ 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}` };
368
+ }
369
+ const failed = (step, run) => `${step}: ${run.error ? run.error.message : `cosign exited ${run.status ?? 'without a status'}`}`;
370
+ const signed = spawn('cosign', ['sign', '--yes', reference], { encoding: 'utf8', stdio: 'inherit' });
371
+ if (signed.status !== 0) {
372
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('cosign sign', signed)}; sign it by hand: cosign sign --yes ${reference}` };
373
+ }
374
+ const verifyArgs = ['verify', '--certificate-identity', identity, '--certificate-oidc-issuer', GITHUB_ACTIONS_OIDC_ISSUER, reference];
375
+ const verified = spawn('cosign', verifyArgs, { encoding: 'utf8', stdio: 'inherit' });
376
+ if (verified.status !== 0) {
377
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('signed, but cosign verify', verified)}; check it with: cosign ${verifyArgs.join(' ')}` };
378
+ }
379
+ return { outcome: FrameworkImageSignatureOutcome.SIGNED };
380
+ }
215
381
  /**
216
382
  * Log the Docker CLI in to the framework's registry with `docker.publishToken` from the framework secrets file.
217
383
  *
@@ -312,10 +478,13 @@ export class FrameworkDockerPublishService {
312
478
  const frameworkLayout = resolveFrameworkLayout(frameworkRoot);
313
479
  return dockerContextSourcePathspecs(frameworkRoot, buildDefinition.resolveContextPath(frameworkLayout), buildDefinition.resolveDockerfilePath(frameworkLayout));
314
480
  }
315
- static buildCommandPreview(contextPath, dockerfilePath, imageRef, aliasImageRefs, identity) {
481
+ static buildCommandPreview(contextPath, dockerfilePath, imageRepository, imageRef, aliasImageRefs, identity, signing) {
316
482
  return [
317
- `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}"`,
483
+ `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}"`,
318
484
  ...aliasImageRefs.map((aliasRef) => `docker buildx imagetools create -t "${aliasRef}" "${imageRef}"`),
485
+ ...(signing === FrameworkImageSigning.COSIGN_KEYLESS
486
+ ? [`cosign sign --yes "${imageRepository}@<pushed digest>"`, `cosign verify --certificate-identity <this workflow> --certificate-oidc-issuer ${GITHUB_ACTIONS_OIDC_ISSUER} "${imageRepository}@<pushed digest>"`]
487
+ : []),
319
488
  ];
320
489
  }
321
490
  static asFrameworkRelativePath(frameworkRoot, absolutePath) {
@@ -342,6 +511,89 @@ export class FrameworkDockerPublishService {
342
511
  throw new Error(`Docker login failed for username "${username}" at ${registryHost}.`);
343
512
  }
344
513
  }
514
+ /**
515
+ * Run one image build, bounded by `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and tried up to
516
+ * `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times (#3063, #3963).
517
+ *
518
+ * The output is streamed through, unchanged, and watched: the moment QEMU reports a crashed emulated process
519
+ * (`QEMU_CRASH_PATTERN`) the attempt is ended and tried again, instead of waiting out the bound in silence. A
520
+ * build that runs out of time is ended the same way; at most `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS` attempts
521
+ * may, so the worst case stays two full bounds. Ending an attempt sends SIGTERM to the buildx client, and
522
+ * BuildKit cancels the build when its session closes. Every failure says which attempt it was and why.
523
+ */
524
+ static async runDockerBuild(label, args, spawnProcess = spawn, log = (message) => console.error(message), timeoutMs = FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS) {
525
+ const minutes = Math.round(FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS / 60_000);
526
+ let timeouts = 0;
527
+ for (let attempt = 1; attempt <= FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS; attempt += 1) {
528
+ const outcome = await FrameworkDockerPublishService.runOneDockerBuild(args, spawnProcess, timeoutMs);
529
+ if (outcome.kind === DockerBuildAttemptOutcome.SUCCEEDED)
530
+ return;
531
+ if (outcome.kind === DockerBuildAttemptOutcome.TIMED_OUT)
532
+ timeouts += 1;
533
+ const reason = outcome.kind === DockerBuildAttemptOutcome.TIMED_OUT
534
+ ? `it ran out of its ${minutes} minutes (an emulated platform can hang without a word)`
535
+ : outcome.kind === DockerBuildAttemptOutcome.EMULATOR_CRASHED
536
+ ? `QEMU crashed an emulated process ("${outcome.line}"), after which the build never finishes`
537
+ : outcome.kind === DockerBuildAttemptOutcome.SPAWN_FAILED
538
+ ? `docker could not be started (${outcome.message})`
539
+ : outcome.signal
540
+ ? `it was ended by ${outcome.signal}`
541
+ : `it exited ${outcome.status ?? 'without a status'}`;
542
+ const last = attempt === FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS ||
543
+ timeouts >= FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS ||
544
+ outcome.kind === DockerBuildAttemptOutcome.SPAWN_FAILED;
545
+ log(`Docker ${label}, attempt ${attempt} of ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS}: ${reason}.${last ? '' : ' Trying again.'}`);
546
+ if (last)
547
+ throw new Error(`Docker ${label} failed after ${attempt} attempt${attempt === 1 ? '' : 's'}: ${reason}.`);
548
+ }
549
+ }
550
+ /**
551
+ * One build attempt: docker's output goes to this process's own stdout/stderr as it arrives (a release log
552
+ * reads exactly as before), and each line is checked against `QEMU_CRASH_PATTERN`. Lines are reassembled
553
+ * across chunks so a crash line split by the pipe is still seen.
554
+ */
555
+ static runOneDockerBuild(args, spawnProcess, timeoutMs) {
556
+ return new Promise((resolve) => {
557
+ const child = spawnProcess('docker', args, { stdio: ['ignore', 'pipe', 'pipe'] });
558
+ let ended;
559
+ const end = (reason) => {
560
+ if (ended)
561
+ return;
562
+ ended = reason;
563
+ child.kill('SIGTERM');
564
+ };
565
+ const timer = setTimeout(() => end({ kind: DockerBuildAttemptOutcome.TIMED_OUT }), timeoutMs);
566
+ const watch = (stream, sink) => {
567
+ let pending = '';
568
+ stream?.on('data', (chunk) => {
569
+ const text = chunk.toString();
570
+ sink.write(text);
571
+ const lines = (pending + text).split('\n');
572
+ pending = lines.pop() ?? '';
573
+ for (const line of lines) {
574
+ const crash = QEMU_CRASH_PATTERN.exec(line);
575
+ if (crash)
576
+ end({ kind: DockerBuildAttemptOutcome.EMULATOR_CRASHED, line: line.slice(crash.index).trim() });
577
+ }
578
+ });
579
+ };
580
+ watch(child.stdout, process.stdout);
581
+ watch(child.stderr, process.stderr);
582
+ child.on('error', (error) => {
583
+ clearTimeout(timer);
584
+ resolve({ kind: DockerBuildAttemptOutcome.SPAWN_FAILED, message: error.message });
585
+ });
586
+ child.on('close', (status, signal) => {
587
+ clearTimeout(timer);
588
+ if (ended)
589
+ resolve(ended);
590
+ else if (status === 0)
591
+ resolve({ kind: DockerBuildAttemptOutcome.SUCCEEDED });
592
+ else
593
+ resolve({ kind: DockerBuildAttemptOutcome.FAILED, status, signal });
594
+ });
595
+ });
596
+ }
345
597
  static runDockerCommand(label, args) {
346
598
  const result = spawnSync('docker', args, {
347
599
  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,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,sCAAsC,GACvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAEnF,iIAAiI;AACjI,MAAM,CAAC,MAAM,8BAA8B,GAAG,mCAAmC,CAAC;AAClF,MAAM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,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,kBAAkB,CAAC,EACnE;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 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 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 /**\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 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,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,GAGjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,kCAAkC,EAClC,sCAAsC,GACvC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAEnF,iIAAiI;AACjI,MAAM,CAAC,MAAM,8BAA8B,GAAG,mCAAmC,CAAC;AAClF,MAAM,CAAC,MAAM,6BAA6B,GAAG,kCAA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;YACpC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC1B,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,OAAO,CAAC,EAAE,IAAI,EAAE,yBAAyB,CAAC,YAAY,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;YACpF,CAAC,CAAC,CAAC;YACH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE;gBACnC,YAAY,CAAC,KAAK,CAAC,CAAC;gBACpB,IAAI,KAAK;oBAAE,OAAO,CAAC,KAAK,CAAC,CAAC;qBACrB,IAAI,MAAM,KAAK,CAAC;oBAAE,OAAO,CAAC,EAAE,IAAI,EAAE,yBAAyB,CAAC,SAAS,EAAE,CAAC,CAAC;;oBACzE,OAAO,CAAC,EAAE,IAAI,EAAE,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;YAC3E,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,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 { spawn, 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, #3963).\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 crash is\n * intermittent (same base image digest, same QEMU), and FREQUENT: the 1.1.14 release (run 43853716196,\n * 2026-11-16) crashed on both of its two attempts, so 3 of the 4 arm64 attempts then recorded crashed.\n *\n * So an attempt ends the moment QEMU reports the crash (`QEMU_CRASH_PATTERN`) and is tried again, which costs\n * about two minutes rather than the whole bound. The bound stays for a build that hangs WITHOUT that line, and\n * at most `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS` attempts may run it out: the worst case is the two silent\n * 50-minute attempts the lane already allowed, which fit inside the release job's limit with the rest of the\n * lane. A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12.\n *\n * A retry cannot release half an image: `buildx build --push` writes the tag only after every platform has\n * built, and the tag is the 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 = 4;\nexport const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS = 2;\n\n/**\n * What QEMU prints when an emulated process dies of a signal nothing handled. A process that probes a CPU\n * feature by catching SIGILL (OpenSSL does) never produces it, because the signal is caught; this line means\n * an emulated process is DEAD, and in every recorded instance the build then hung without another word. It\n * appears in none of the successful release logs read (#3963), so ending the attempt on it cannot end a build\n * that would have finished.\n */\nexport const QEMU_CRASH_PATTERN = /qemu: uncaught target signal \\d+/;\n\n/**\n * How one image build attempt ended (#3963). Only `SUCCEEDED` ends the build; `TIMED_OUT` counts against\n * `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS`; `SPAWN_FAILED` (docker itself could not start) is not retried, since\n * a second start would fail the same way; the rest are tried again.\n */\nexport enum DockerBuildAttemptOutcome {\n /** buildx exited 0: every platform built and the index was pushed. */\n SUCCEEDED = 'succeeded',\n /** The attempt ran out of `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and was ended. */\n TIMED_OUT = 'timed-out',\n /** QEMU printed `QEMU_CRASH_PATTERN`, and the attempt was ended without waiting for the bound. */\n EMULATOR_CRASHED = 'emulator-crashed',\n /** The `docker` process could not be started at all. */\n SPAWN_FAILED = 'spawn-failed',\n /** buildx exited non-zero, or was ended by a signal this lane did not send. */\n FAILED = 'failed',\n}\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 await 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 up to\n * `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times (#3063, #3963).\n *\n * The output is streamed through, unchanged, and watched: the moment QEMU reports a crashed emulated process\n * (`QEMU_CRASH_PATTERN`) the attempt is ended and tried again, instead of waiting out the bound in silence. A\n * build that runs out of time is ended the same way; at most `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS` attempts\n * may, so the worst case stays two full bounds. Ending an attempt sends SIGTERM to the buildx client, and\n * BuildKit cancels the build when its session closes. Every failure says which attempt it was and why.\n */\n static async runDockerBuild(\n label: string,\n args: string[],\n spawnProcess: typeof spawn = spawn,\n log: (message: string) => void = (message) => console.error(message),\n timeoutMs: number = FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS,\n ): Promise<void> {\n const minutes = Math.round(FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS / 60_000);\n let timeouts = 0;\n for (let attempt = 1; attempt <= FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS; attempt += 1) {\n const outcome = await FrameworkDockerPublishService.runOneDockerBuild(args, spawnProcess, timeoutMs);\n if (outcome.kind === DockerBuildAttemptOutcome.SUCCEEDED) return;\n if (outcome.kind === DockerBuildAttemptOutcome.TIMED_OUT) timeouts += 1;\n const reason =\n outcome.kind === DockerBuildAttemptOutcome.TIMED_OUT\n ? `it ran out of its ${minutes} minutes (an emulated platform can hang without a word)`\n : outcome.kind === DockerBuildAttemptOutcome.EMULATOR_CRASHED\n ? `QEMU crashed an emulated process (\"${outcome.line}\"), after which the build never finishes`\n : outcome.kind === DockerBuildAttemptOutcome.SPAWN_FAILED\n ? `docker could not be started (${outcome.message})`\n : outcome.signal\n ? `it was ended by ${outcome.signal}`\n : `it exited ${outcome.status ?? 'without a status'}`;\n const last =\n attempt === FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS ||\n timeouts >= FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUTS ||\n outcome.kind === DockerBuildAttemptOutcome.SPAWN_FAILED;\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 ${attempt} attempt${attempt === 1 ? '' : 's'}: ${reason}.`);\n }\n }\n\n /**\n * One build attempt: docker's output goes to this process's own stdout/stderr as it arrives (a release log\n * reads exactly as before), and each line is checked against `QEMU_CRASH_PATTERN`. Lines are reassembled\n * across chunks so a crash line split by the pipe is still seen.\n */\n private static runOneDockerBuild(\n args: string[],\n spawnProcess: typeof spawn,\n timeoutMs: number,\n ): Promise<\n | { kind: DockerBuildAttemptOutcome.SUCCEEDED }\n | { kind: DockerBuildAttemptOutcome.TIMED_OUT }\n | { kind: DockerBuildAttemptOutcome.EMULATOR_CRASHED; line: string }\n | { kind: DockerBuildAttemptOutcome.SPAWN_FAILED; message: string }\n | { kind: DockerBuildAttemptOutcome.FAILED; status: number | null; signal: NodeJS.Signals | null }\n > {\n return new Promise((resolve) => {\n const child = spawnProcess('docker', args, { stdio: ['ignore', 'pipe', 'pipe'] });\n let ended: { kind: DockerBuildAttemptOutcome.TIMED_OUT } | { kind: DockerBuildAttemptOutcome.EMULATOR_CRASHED; line: string } | undefined;\n const end = (reason: NonNullable<typeof ended>) => {\n if (ended) return;\n ended = reason;\n child.kill('SIGTERM');\n };\n const timer = setTimeout(() => end({ kind: DockerBuildAttemptOutcome.TIMED_OUT }), timeoutMs);\n const watch = (stream: NodeJS.ReadableStream | null, sink: NodeJS.WritableStream) => {\n let pending = '';\n stream?.on('data', (chunk: Buffer | string) => {\n const text = chunk.toString();\n sink.write(text);\n const lines = (pending + text).split('\\n');\n pending = lines.pop() ?? '';\n for (const line of lines) {\n const crash = QEMU_CRASH_PATTERN.exec(line);\n if (crash) end({ kind: DockerBuildAttemptOutcome.EMULATOR_CRASHED, line: line.slice(crash.index).trim() });\n }\n });\n };\n watch(child.stdout, process.stdout);\n watch(child.stderr, process.stderr);\n child.on('error', (error) => {\n clearTimeout(timer);\n resolve({ kind: DockerBuildAttemptOutcome.SPAWN_FAILED, message: error.message });\n });\n child.on('close', (status, signal) => {\n clearTimeout(timer);\n if (ended) resolve(ended);\n else if (status === 0) resolve({ kind: DockerBuildAttemptOutcome.SUCCEEDED });\n else resolve({ kind: DockerBuildAttemptOutcome.FAILED, status, signal });\n });\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"}