@wildo-ai/wildo-cli 1.1.13 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (473) 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/init.command.d.ts +14 -0
  27. package/dist/src/commands/init.command.d.ts.map +1 -1
  28. package/dist/src/commands/init.command.js +29 -3
  29. package/dist/src/commands/init.command.js.map +1 -1
  30. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  31. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  32. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  33. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  34. package/dist/src/commands/registry/update.command.js +1 -0
  35. package/dist/src/commands/registry/update.command.js.map +1 -1
  36. package/dist/src/commands/seal/verify.command.d.ts +18 -0
  37. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  38. package/dist/src/commands/seal/verify.command.js +62 -1
  39. package/dist/src/commands/seal/verify.command.js.map +1 -1
  40. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  41. package/dist/src/services/application/provider-runtime-sync.service.js +26 -1
  42. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  43. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  44. package/dist/src/services/application/saas-skeleton.service.js +24 -2
  45. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  46. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  47. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  48. package/dist/src/services/companion/build-console.service.js +54 -4
  49. package/dist/src/services/companion/build-console.service.js.map +1 -1
  50. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  51. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  52. package/dist/src/services/companion/creation-console.service.js +14 -2
  53. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  54. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  55. package/dist/src/services/companion/creation-drive.service.js +5 -2
  56. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  57. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  58. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  59. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  60. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  61. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  62. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  63. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  64. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  65. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  66. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  67. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  68. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +8 -2
  69. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  70. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  71. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  72. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  73. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  74. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +3 -1
  75. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  76. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  77. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  78. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  79. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  80. package/dist/src/services/environment/env-configuration-generator.service.js +8 -3
  81. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  82. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  83. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  84. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  85. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  86. package/dist/src/services/framework/framework-docker-publish.service.d.ts +89 -0
  87. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  88. package/dist/src/services/framework/framework-docker-publish.service.js +180 -18
  89. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  90. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  91. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  92. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  93. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  94. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  95. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  96. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  97. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  98. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  99. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  100. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  101. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  102. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  103. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  104. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  105. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  106. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  107. package/dist/src/services/registry/module-install.service.js +1 -0
  108. package/dist/src/services/registry/module-install.service.js.map +1 -1
  109. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  110. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  111. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  112. package/dist/tsconfig.build.tsbuildinfo +1 -1
  113. package/framework-root-package.json +3 -3
  114. package/package.json +22 -22
  115. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
  116. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +17 -2
  117. package/templates/infra/registry-host/docker-compose.yml +9 -2
  118. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  119. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  120. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  121. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  122. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  123. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  124. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  125. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  126. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  127. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  128. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  129. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  130. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  131. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  132. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  133. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  134. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  135. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  136. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  137. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  138. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  139. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  140. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  141. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  142. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  143. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  144. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  145. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  146. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  147. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  148. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  149. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  150. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  151. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  152. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  153. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  154. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  155. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  156. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  157. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  158. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  159. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  160. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  161. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  162. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  163. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  164. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  165. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  166. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  167. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  168. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  169. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  170. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  171. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  172. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  173. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  174. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  175. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  176. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  177. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  178. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  179. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  180. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  181. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  182. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  183. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  184. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  185. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  186. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  187. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  188. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  189. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  190. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  191. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  192. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  193. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  194. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  195. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  196. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  197. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  198. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  199. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  200. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  201. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  202. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  203. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  204. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  205. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  206. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  207. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  208. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  209. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  210. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  211. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  212. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  213. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  214. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  215. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  216. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  217. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  218. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  219. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  220. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  221. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  222. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  223. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  224. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  225. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  226. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  227. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  228. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  229. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  230. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  231. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  232. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  233. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  234. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  235. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  236. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  237. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  238. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  239. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  240. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  241. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  242. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  243. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  244. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  245. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  246. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  247. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  248. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  249. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  250. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  251. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  252. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  253. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  254. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  255. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  256. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  257. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  258. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  259. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  260. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  261. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  262. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  263. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  264. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  265. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  266. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  267. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  268. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  269. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  270. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  271. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  272. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  273. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  274. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  275. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  276. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  277. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  278. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  279. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  280. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  281. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  282. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  283. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  284. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  285. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  286. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  287. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  288. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  289. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  290. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  291. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  292. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  293. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  294. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  295. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  296. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  297. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  298. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  299. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  300. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  301. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  302. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  303. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  304. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  305. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  306. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  307. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  308. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  309. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  310. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  311. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  312. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  313. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  314. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  315. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  316. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  317. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  318. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  319. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  320. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  321. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  322. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  323. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  324. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  325. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  326. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  327. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  328. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  329. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  330. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  331. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  332. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  333. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  334. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  335. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  336. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  337. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  338. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  339. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  340. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  341. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  342. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  343. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  344. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  345. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  346. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  347. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  348. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  349. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  350. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  351. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  352. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  353. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  354. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  355. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  356. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  357. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  358. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  359. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  360. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  361. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  362. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  363. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  364. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  365. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  366. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  367. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  368. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  369. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  370. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  371. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  372. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  373. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  374. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  375. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  376. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  377. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  378. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  379. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  380. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  381. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  382. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  383. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  384. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  385. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  386. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  387. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  388. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  389. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  390. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  391. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  392. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  393. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  394. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  395. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  396. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  397. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  398. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  399. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  400. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  401. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  402. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  403. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  404. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  405. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  406. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  407. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  408. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  409. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  410. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  411. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  412. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  413. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  414. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  415. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  416. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  417. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  418. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  419. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  420. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  421. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  422. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  423. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  424. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  425. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  426. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  427. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  428. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  429. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  430. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  431. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  432. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  433. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  434. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  435. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  436. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  437. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  438. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  439. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  440. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  441. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  442. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  443. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  444. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  445. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  446. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  447. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  448. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  449. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  450. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  451. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  452. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  453. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  454. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  455. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  456. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  457. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  458. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  459. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  460. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  461. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  462. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  463. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  464. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  465. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  466. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  467. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  468. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  469. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  470. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  471. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  472. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  473. package/wildo-framework.info.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import { spawnSync } from 'child_process';
2
- import { existsSync, readFileSync } from 'fs';
2
+ import { existsSync, mkdtempSync, readFileSync, rmSync } from 'fs';
3
+ import { tmpdir } from 'os';
3
4
  import { join, relative } from 'path';
4
5
  import { resolveFrameworkLayout, WildoFrameworkDockerImageRole, WildoFrameworkDockerImageVariant, } from '@wildo-ai/platform-config-lib';
5
6
  import { FRAMEWORK_RELEASE_DOCKER_NAMESPACE, FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST, } from '@wildo-ai/platform-config-lib';
@@ -23,6 +24,62 @@ export const FRAMEWORK_IMAGE_SOURCE_LABEL = 'org.opencontainers.image.source';
23
24
  * `imagetools create` carries them along when an alias is repointed at the index.
24
25
  */
25
26
  export const FRAMEWORK_IMAGE_ATTESTATION_ARGS = ['--provenance=mode=max', '--sbom=true'];
27
+ /**
28
+ * How a pushed framework image is signed (#3063). Chosen by the environment that runs the lane, never by the lane
29
+ * itself: keyless signing needs a workload identity (the release job's GitHub OIDC token), which a developer machine
30
+ * running the break-glass `wildo fwk release` does not have.
31
+ */
32
+ export var FrameworkImageSigning;
33
+ (function (FrameworkImageSigning) {
34
+ /**
35
+ * `cosign sign --yes <repository>@<digest>`: a short-lived Fulcio certificate bound to the release workflow's identity,
36
+ * the signature recorded in the Rekor transparency log and stored beside the image index in the registry, then
37
+ * `cosign verify` against that identity. Signs the DIGEST of the index buildx pushed, never a tag, so what is signed is
38
+ * exactly what was built. An alias (`latest`) is covered only while it names that same index: `imagetools create` from
39
+ * one index source keeps the index as it is, so its digest is the signed one.
40
+ *
41
+ * The certificate puts the repository, the workflow, its ref, the commit and the run in the public Rekor log for good.
42
+ * The image's own OCI labels already publish the source URL and the revision.
43
+ */
44
+ FrameworkImageSigning["COSIGN_KEYLESS"] = "cosign_keyless";
45
+ })(FrameworkImageSigning || (FrameworkImageSigning = {}));
46
+ /** The environment variable a release environment sets to a {@link FrameworkImageSigning} member. Unset: no signing. */
47
+ export const FRAMEWORK_IMAGE_SIGNING_ENV = 'WILDO_FRAMEWORK_IMAGE_SIGNING';
48
+ /** The OIDC issuer of a GitHub Actions workload identity: the issuer of every keyless certificate the release signs with. */
49
+ export const GITHUB_ACTIONS_OIDC_ISSUER = 'https://token.actions.githubusercontent.com';
50
+ /**
51
+ * The identity a keyless signature made in this job carries, as `cosign verify --certificate-identity` takes it:
52
+ * `https://github.com/<owner>/<repo>/<workflow path>@<ref>`, from `GITHUB_WORKFLOW_REF`. Undefined outside Actions.
53
+ */
54
+ export function githubWorkflowSigningIdentityOf(env = process.env) {
55
+ const workflowRef = env.GITHUB_WORKFLOW_REF?.trim();
56
+ return workflowRef ? `${env.GITHUB_SERVER_URL?.trim() || 'https://github.com'}/${workflowRef}` : undefined;
57
+ }
58
+ /** What became of one image's signature. */
59
+ export var FrameworkImageSignatureOutcome;
60
+ (function (FrameworkImageSignatureOutcome) {
61
+ /** Signed by digest. */
62
+ FrameworkImageSignatureOutcome["SIGNED"] = "signed";
63
+ /** The environment asked for no signing (a developer machine running the break-glass release). */
64
+ FrameworkImageSignatureOutcome["NOT_REQUESTED"] = "not_requested";
65
+ /**
66
+ * Asked for and not proven: no workload identity to sign as (`GITHUB_WORKFLOW_REF` unset), the pushed digest unreadable,
67
+ * cosign absent or refusing to sign, or a signature made that `cosign verify` did not confirm. The image is already public, so
68
+ * the release does not stop on it (a consumer's `cosign verify` reports the missing signature, a false claim is not
69
+ * made); the lane reports it, and the image is signed by hand with the command named in `reason`.
70
+ */
71
+ FrameworkImageSignatureOutcome["FAILED"] = "failed";
72
+ })(FrameworkImageSignatureOutcome || (FrameworkImageSignatureOutcome = {}));
73
+ /** The signing the environment asks for, or undefined. An unknown value is refused, never read as "no signing". */
74
+ export function frameworkImageSigningOf(env = process.env) {
75
+ const raw = env[FRAMEWORK_IMAGE_SIGNING_ENV]?.trim();
76
+ if (!raw)
77
+ return undefined;
78
+ if (!Object.values(FrameworkImageSigning).includes(raw)) {
79
+ throw new Error(`${FRAMEWORK_IMAGE_SIGNING_ENV}="${raw}" names no image signing; expected one of: ${Object.values(FrameworkImageSigning).join(', ')}.`);
80
+ }
81
+ return raw;
82
+ }
26
83
  /** A `.dockerignore` pattern that names no wildcard — a plain path, rather than a glob pathspec. */
27
84
  function isPlainIgnorePath(pattern) {
28
85
  return !/[*?[\]]/.test(pattern);
@@ -103,6 +160,23 @@ const FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS = {
103
160
  * same command moves to a CI matrix with native runners, and this list does not change.
104
161
  */
105
162
  export const FRAMEWORK_DOCKER_IMAGE_PLATFORMS = ['linux/amd64', 'linux/arm64'];
163
+ /**
164
+ * How long one image build may run, and how many times it is tried (#3063).
165
+ *
166
+ * The arm64 half is built under QEMU, and QEMU can crash the emulated Node process (`qemu: uncaught target
167
+ * signal 4 (Illegal instruction)`) with nothing in the build noticing: the 1.1.13 release (framework-release
168
+ * run 43566115901, 2026-11-14) crashed 103 s into the arm64 `pnpm install`, printed nothing for two hours and
169
+ * was cancelled by GitHub's three-hour job limit, with the version tagged and nothing published. The same
170
+ * step took 3 min 54 s in the 1.1.12 release, from the same base image digest and the same QEMU, so the crash
171
+ * is intermittent, and a second attempt is the remedy.
172
+ *
173
+ * A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12, so the bound is generous.
174
+ * Two attempts fit inside the release job's limit with the rest of the lane. A retry cannot release half an
175
+ * image: `buildx build --push` writes the tag only after every platform has built, and the tag is the
176
+ * release's own, which nothing names until the npm step that follows.
177
+ */
178
+ export const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS = 50 * 60_000;
179
+ export const FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS = 2;
106
180
  export class FrameworkDockerPublishService {
107
181
  static async publishImages(options = {}) {
108
182
  const resolvedFrameworkRoot = options.frameworkRoot ?? FrameworkReleaseService.getFrameworkRoot();
@@ -111,6 +185,8 @@ export class FrameworkDockerPublishService {
111
185
  const aliasTags = (options.aliasTags ?? []).map((tag) => tag.trim()).filter((tag) => tag.length > 0);
112
186
  const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(resolvedFrameworkRoot);
113
187
  const immutableTag = options.immutableTag?.trim() || frameworkConfig.frameworkVersion;
188
+ // Read before anything is built, so an unknown value refuses a dry run too rather than surfacing after the push.
189
+ const signing = frameworkImageSigningOf();
114
190
  const allTargets = frameworkConfig.publish.docker.images;
115
191
  const requestedTargets = new Set(options.targets ?? []);
116
192
  const selectedTargets = allTargets.filter((image) => requestedTargets.size === 0 || requestedTargets.has(image.imageName));
@@ -138,11 +214,12 @@ export class FrameworkDockerPublishService {
138
214
  const aliasImageRefs = aliasTags.map((tag) => `${imageRepository}:${tag}`);
139
215
  return {
140
216
  imageName: image.imageName,
217
+ imageRepository,
141
218
  imageRef,
142
219
  aliasImageRefs,
143
220
  buildContextPath: FrameworkDockerPublishService.asFrameworkRelativePath(resolvedFrameworkRoot, buildContract.contextPath),
144
221
  dockerfilePath: FrameworkDockerPublishService.asFrameworkRelativePath(resolvedFrameworkRoot, buildContract.dockerfilePath),
145
- commands: FrameworkDockerPublishService.buildCommandPreview(buildContract.contextPath, buildContract.dockerfilePath, imageRef, aliasImageRefs, { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
222
+ commands: FrameworkDockerPublishService.buildCommandPreview(buildContract.contextPath, buildContract.dockerfilePath, imageRepository, imageRef, aliasImageRefs, { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }, signing),
146
223
  };
147
224
  }),
148
225
  };
@@ -169,20 +246,31 @@ export class FrameworkDockerPublishService {
169
246
  * in the same index, and the OCI labels name the release, the repository, the revision and the
170
247
  * build instant (`provenanceLabelArgs`).
171
248
  */
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
- ]);
249
+ // buildx writes the pushed index's digest here (`containerimage.digest`): what the signature is made over.
250
+ const metadataDir = mkdtempSync(join(tmpdir(), 'wildo-image-metadata-'));
251
+ const metadataFile = join(metadataDir, 'metadata.json');
252
+ try {
253
+ FrameworkDockerPublishService.runDockerBuild('buildx build --push', [
254
+ 'buildx',
255
+ 'build',
256
+ '--platform',
257
+ FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),
258
+ '-f',
259
+ buildContract.dockerfilePath,
260
+ '-t',
261
+ target.imageRef,
262
+ ...FrameworkDockerPublishService.provenanceLabelArgs(resolvedFrameworkRoot, dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath), { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl }),
263
+ ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,
264
+ '--metadata-file',
265
+ metadataFile,
266
+ '--push',
267
+ buildContract.contextPath,
268
+ ]);
269
+ target.digest = FrameworkDockerPublishService.pushedDigestOf(metadataFile);
270
+ }
271
+ finally {
272
+ rmSync(metadataDir, { recursive: true, force: true });
273
+ }
186
274
  }
187
275
  /*
188
276
  * Aliases are repointed only after EVERY immutable push has succeeded.
@@ -210,8 +298,55 @@ export class FrameworkDockerPublishService {
210
298
  ]);
211
299
  }
212
300
  }
301
+ // Signed by digest once every image is pushed; see FrameworkImageSigning.COSIGN_KEYLESS for what that covers.
302
+ for (const target of result.targets) {
303
+ target.signature = FrameworkDockerPublishService.signImage(target, signing);
304
+ }
213
305
  return result;
214
306
  }
307
+ /** The image index digest buildx recorded in its metadata file, or undefined when it recorded none. */
308
+ static pushedDigestOf(metadataFile) {
309
+ try {
310
+ const metadata = JSON.parse(readFileSync(metadataFile, 'utf8'));
311
+ const digest = metadata['containerimage.digest'];
312
+ return typeof digest === 'string' && /^sha256:[0-9a-f]{64}$/.test(digest) ? digest : undefined;
313
+ }
314
+ catch {
315
+ return undefined;
316
+ }
317
+ }
318
+ /**
319
+ * Sign one pushed image as the environment asks (#3063). Never throws: the image is already public, so a signature
320
+ * that cannot be made is reported (FAILED, with the command to run by hand) rather than stopping the release after it
321
+ * published, and a consumer's `cosign verify` sees it missing rather than being told anything false.
322
+ *
323
+ * cosign reads the registry credentials `docker login` wrote (`loginWithFrameworkSecrets`), and in GitHub Actions takes
324
+ * the job's OIDC token on its own (`id-token: write`). SIGNED means the signature then VERIFIED against this job's
325
+ * workflow identity (`cosign verify`), so the outcome is the registry's answer rather than the signing command's exit.
326
+ */
327
+ static signImage(target, signing, spawn = spawnSync, env = process.env) {
328
+ if (signing === undefined)
329
+ return { outcome: FrameworkImageSignatureOutcome.NOT_REQUESTED };
330
+ if (!target.digest) {
331
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `buildx recorded no digest for ${target.imageRepository}; sign it by hand: cosign sign --yes ${target.imageRepository}@<digest>` };
332
+ }
333
+ const reference = `${target.imageRepository}@${target.digest}`;
334
+ const identity = githubWorkflowSigningIdentityOf(env);
335
+ if (!identity) {
336
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `keyless signing needs a GitHub Actions workload identity (GITHUB_WORKFLOW_REF is unset); sign it by hand: cosign sign --yes ${reference}` };
337
+ }
338
+ const failed = (step, run) => `${step}: ${run.error ? run.error.message : `cosign exited ${run.status ?? 'without a status'}`}`;
339
+ const signed = spawn('cosign', ['sign', '--yes', reference], { encoding: 'utf8', stdio: 'inherit' });
340
+ if (signed.status !== 0) {
341
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('cosign sign', signed)}; sign it by hand: cosign sign --yes ${reference}` };
342
+ }
343
+ const verifyArgs = ['verify', '--certificate-identity', identity, '--certificate-oidc-issuer', GITHUB_ACTIONS_OIDC_ISSUER, reference];
344
+ const verified = spawn('cosign', verifyArgs, { encoding: 'utf8', stdio: 'inherit' });
345
+ if (verified.status !== 0) {
346
+ return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('signed, but cosign verify', verified)}; check it with: cosign ${verifyArgs.join(' ')}` };
347
+ }
348
+ return { outcome: FrameworkImageSignatureOutcome.SIGNED };
349
+ }
215
350
  /**
216
351
  * Log the Docker CLI in to the framework's registry with `docker.publishToken` from the framework secrets file.
217
352
  *
@@ -312,10 +447,13 @@ export class FrameworkDockerPublishService {
312
447
  const frameworkLayout = resolveFrameworkLayout(frameworkRoot);
313
448
  return dockerContextSourcePathspecs(frameworkRoot, buildDefinition.resolveContextPath(frameworkLayout), buildDefinition.resolveDockerfilePath(frameworkLayout));
314
449
  }
315
- static buildCommandPreview(contextPath, dockerfilePath, imageRef, aliasImageRefs, identity) {
450
+ static buildCommandPreview(contextPath, dockerfilePath, imageRepository, imageRef, aliasImageRefs, identity, signing) {
316
451
  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}"`,
452
+ `docker buildx build --platform ${FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(',')} -f "${dockerfilePath}" -t "${imageRef}" --label ${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version} --label ${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl} --label ${FRAMEWORK_IMAGE_CREATED_LABEL}=<build instant> --label ${FRAMEWORK_IMAGE_REVISION_LABEL}=<HEAD>[-dirty] ${FRAMEWORK_IMAGE_ATTESTATION_ARGS.join(' ')} --metadata-file <tmp> --push "${contextPath}"`,
318
453
  ...aliasImageRefs.map((aliasRef) => `docker buildx imagetools create -t "${aliasRef}" "${imageRef}"`),
454
+ ...(signing === FrameworkImageSigning.COSIGN_KEYLESS
455
+ ? [`cosign sign --yes "${imageRepository}@<pushed digest>"`, `cosign verify --certificate-identity <this workflow> --certificate-oidc-issuer ${GITHUB_ACTIONS_OIDC_ISSUER} "${imageRepository}@<pushed digest>"`]
456
+ : []),
319
457
  ];
320
458
  }
321
459
  static asFrameworkRelativePath(frameworkRoot, absolutePath) {
@@ -342,6 +480,30 @@ export class FrameworkDockerPublishService {
342
480
  throw new Error(`Docker login failed for username "${username}" at ${registryHost}.`);
343
481
  }
344
482
  }
483
+ /**
484
+ * Run one image build, bounded by `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and tried
485
+ * `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times. A build that runs out of time is killed (SIGTERM ends the buildx
486
+ * client, and BuildKit cancels the build when its session closes). Every failure says which attempt it was and
487
+ * why, so a release log shows a hang as a hang rather than as silence.
488
+ */
489
+ static runDockerBuild(label, args, spawn = spawnSync, log = (message) => console.error(message)) {
490
+ const minutes = Math.round(FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS / 60_000);
491
+ for (let attempt = 1; attempt <= FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS; attempt += 1) {
492
+ const result = spawn('docker', args, { encoding: 'utf8', stdio: 'inherit', timeout: FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS });
493
+ if (result.status === 0)
494
+ return;
495
+ const timedOut = result.error?.code === 'ETIMEDOUT';
496
+ const reason = timedOut
497
+ ? `it ran out of its ${minutes} minutes (an emulated platform can hang without a word)`
498
+ : result.signal
499
+ ? `it was ended by ${result.signal}`
500
+ : `it exited ${result.status ?? 'without a status'}`;
501
+ const last = attempt === FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS;
502
+ log(`Docker ${label}, attempt ${attempt} of ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS}: ${reason}.${last ? '' : ' Trying again.'}`);
503
+ if (last)
504
+ throw new Error(`Docker ${label} failed after ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS} attempts: ${reason}.`);
505
+ }
506
+ }
345
507
  static runDockerCommand(label, args) {
346
508
  const result = spawnSync('docker', args, {
347
509
  encoding: 'utf8',
@@ -1 +1 @@
1
- {"version":3,"file":"framework-docker-publish.service.js","sourceRoot":"","sources":["../../../../src/services/framework/framework-docker-publish.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,6BAA6B,EAC7B,gCAAgC,GAGjC,MAAM,+BAA+B,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,kCAAkC,CAAC;AAChF;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,kCAAkC,CAAC;AAChF,kGAAkG;AAClG,MAAM,CAAC,MAAM,4BAA4B,GAAG,iCAAiC,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,uBAAuB,EAAE,aAAa,CAAU,CAAC;AAQlG,oGAAoG;AACpG,SAAS,iBAAiB,CAAC,OAAe;IACxC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,4BAA4B,CAAC,aAAqB,EAAE,WAAmB,EAAE,cAAsB;IAC7G,MAAM,eAAe,GAAG,QAAQ,CAAC,aAA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;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,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,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,kCAAkC,CAAC;AAChF;;;GAGG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,kCAAkC,CAAC;AAChF,kGAAkG;AAClG,MAAM,CAAC,MAAM,4BAA4B,GAAG,iCAAiC,CAAC;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,uBAAuB,EAAE,aAAa,CAAU,CAAC;AAElG;;;;GAIG;AACH,MAAM,CAAN,IAAY,qBAYX;AAZD,WAAY,qBAAqB;IAC/B;;;;;;;;;OASG;IACH,0DAAiC,CAAA;AACnC,CAAC,EAZW,qBAAqB,KAArB,qBAAqB,QAYhC;AAED,wHAAwH;AACxH,MAAM,CAAC,MAAM,2BAA2B,GAAG,+BAA+B,CAAC;AAE3E,6HAA6H;AAC7H,MAAM,CAAC,MAAM,0BAA0B,GAAG,6CAA6C,CAAC;AAExF;;;GA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CAAC,CAAC;YAC/H,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO;YAChC,MAAM,QAAQ,GAAI,MAAM,CAAC,KAA2C,EAAE,IAAI,KAAK,WAAW,CAAC;YAC3F,MAAM,MAAM,GAAG,QAAQ;gBACrB,CAAC,CAAC,qBAAqB,OAAO,yDAAyD;gBACvF,CAAC,CAAC,MAAM,CAAC,MAAM;oBACb,CAAC,CAAC,mBAAmB,MAAM,CAAC,MAAM,EAAE;oBACpC,CAAC,CAAC,aAAa,MAAM,CAAC,MAAM,IAAI,kBAAkB,EAAE,CAAC;YACzD,MAAM,IAAI,GAAG,OAAO,KAAK,qCAAqC,CAAC;YAC/D,GAAG,CAAC,UAAU,KAAK,aAAa,OAAO,OAAO,qCAAqC,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC;YAClI,IAAI,IAAI;gBAAE,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,iBAAiB,qCAAqC,cAAc,MAAM,GAAG,CAAC,CAAC;QAC1H,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,KAAa,EAAE,IAAc;QAC3D,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE;YACvC,QAAQ,EAAE,MAAM;YAChB,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;QACH,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC;QAC7C,CAAC;IACH,CAAC;CACF","sourcesContent":["import { spawnSync } from 'child_process';\nimport { existsSync, mkdtempSync, readFileSync, rmSync } from 'fs';\nimport { tmpdir } from 'os';\nimport { join, relative } from 'path';\nimport {\n resolveFrameworkLayout,\n WildoFrameworkDockerImageRole,\n WildoFrameworkDockerImageVariant,\n type FrameworkLayoutPaths,\n type WildoFrameworkReleaseDockerImage,\n} from '@wildo-ai/platform-config-lib';\nimport {\n FRAMEWORK_RELEASE_DOCKER_NAMESPACE,\n FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST,\n} from '@wildo-ai/platform-config-lib';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport { DockerUtils } from '~wildo-cli/services/deployment/docker/docker.service';\n\n/** OCI annotation keys (image-spec `annotations.md`, dead-plan-citation: the OCI spec's own file), used here as build labels. */\nexport const FRAMEWORK_IMAGE_REVISION_LABEL = 'org.opencontainers.image.revision';\nexport const FRAMEWORK_IMAGE_CREATED_LABEL = 'org.opencontainers.image.created';\n/**\n * The release the image IS: the immutable tag it is pushed under (the framework version, or a channel's\n * own identity such as `test-<sha>`), so an image pulled by an alias or by digest still names its release.\n */\nexport const FRAMEWORK_IMAGE_VERSION_LABEL = 'org.opencontainers.image.version';\n/** The repository the image is built from: the framework config's `publish.npm.repositoryUrl`. */\nexport const FRAMEWORK_IMAGE_SOURCE_LABEL = 'org.opencontainers.image.source';\n\n/**\n * The BuildKit attestations pushed beside every framework image, inside the same image index: SLSA\n * provenance in `max` mode (the full build definition: Dockerfile, build args, source materials) and an\n * SPDX SBOM of each platform's filesystem. Registries and scanners (Docker Scout, `docker buildx\n * imagetools inspect --format '{{json .Provenance}}'`/`'{{json .SBOM}}'`) read them from there, and\n * `imagetools create` carries them along when an alias is repointed at the index.\n */\nexport const FRAMEWORK_IMAGE_ATTESTATION_ARGS = ['--provenance=mode=max', '--sbom=true'] as const;\n\n/**\n * How a pushed framework image is signed (#3063). Chosen by the environment that runs the lane, never by the lane\n * itself: keyless signing needs a workload identity (the release job's GitHub OIDC token), which a developer machine\n * running the break-glass `wildo fwk release` does not have.\n */\nexport enum FrameworkImageSigning {\n /**\n * `cosign sign --yes <repository>@<digest>`: a short-lived Fulcio certificate bound to the release workflow's identity,\n * the signature recorded in the Rekor transparency log and stored beside the image index in the registry, then\n * `cosign verify` against that identity. Signs the DIGEST of the index buildx pushed, never a tag, so what is signed is\n * exactly what was built. An alias (`latest`) is covered only while it names that same index: `imagetools create` from\n * one index source keeps the index as it is, so its digest is the signed one.\n *\n * The certificate puts the repository, the workflow, its ref, the commit and the run in the public Rekor log for good.\n * The image's own OCI labels already publish the source URL and the revision.\n */\n COSIGN_KEYLESS = 'cosign_keyless',\n}\n\n/** The environment variable a release environment sets to a {@link FrameworkImageSigning} member. Unset: no signing. */\nexport const FRAMEWORK_IMAGE_SIGNING_ENV = 'WILDO_FRAMEWORK_IMAGE_SIGNING';\n\n/** The OIDC issuer of a GitHub Actions workload identity: the issuer of every keyless certificate the release signs with. */\nexport const GITHUB_ACTIONS_OIDC_ISSUER = 'https://token.actions.githubusercontent.com';\n\n/**\n * The identity a keyless signature made in this job carries, as `cosign verify --certificate-identity` takes it:\n * `https://github.com/<owner>/<repo>/<workflow path>@<ref>`, from `GITHUB_WORKFLOW_REF`. Undefined outside Actions.\n */\nexport function githubWorkflowSigningIdentityOf(env: NodeJS.ProcessEnv = process.env): string | undefined {\n const workflowRef = env.GITHUB_WORKFLOW_REF?.trim();\n return workflowRef ? `${env.GITHUB_SERVER_URL?.trim() || 'https://github.com'}/${workflowRef}` : undefined;\n}\n\n/** What became of one image's signature. */\nexport enum FrameworkImageSignatureOutcome {\n /** Signed by digest. */\n SIGNED = 'signed',\n /** The environment asked for no signing (a developer machine running the break-glass release). */\n NOT_REQUESTED = 'not_requested',\n /**\n * Asked for and not proven: no workload identity to sign as (`GITHUB_WORKFLOW_REF` unset), the pushed digest unreadable,\n * cosign absent or refusing to sign, or a signature made that `cosign verify` did not confirm. The image is already public, so\n * the release does not stop on it (a consumer's `cosign verify` reports the missing signature, a false claim is not\n * made); the lane reports it, and the image is signed by hand with the command named in `reason`.\n */\n FAILED = 'failed',\n}\n\n/** The signing the environment asks for, or undefined. An unknown value is refused, never read as \"no signing\". */\nexport function frameworkImageSigningOf(env: NodeJS.ProcessEnv = process.env): FrameworkImageSigning | undefined {\n const raw = env[FRAMEWORK_IMAGE_SIGNING_ENV]?.trim();\n if (!raw) return undefined;\n if (!(Object.values(FrameworkImageSigning) as string[]).includes(raw)) {\n throw new Error(`${FRAMEWORK_IMAGE_SIGNING_ENV}=\"${raw}\" names no image signing; expected one of: ${Object.values(FrameworkImageSigning).join(', ')}.`);\n }\n return raw as FrameworkImageSigning;\n}\n\n/** What the identity labels say: the release and the repository it was built from. */\ninterface FrameworkImageIdentity {\n version: string;\n sourceUrl: string;\n}\n\n/** A `.dockerignore` pattern that names no wildcard — a plain path, rather than a glob pathspec. */\nfunction isPlainIgnorePath(pattern: string): boolean {\n return !/[*?[\\]]/.test(pattern);\n}\n\n/**\n * The git pathspecs covering what a Docker build SENDS from its context, derived from the ignore file\n * the build itself obeys: `<Dockerfile>.dockerignore` when present (BuildKit prefers it), else the\n * context's `.dockerignore`. What the image was built from is then asked of those paths only — whether\n * they were dirty at build time, and how many commits touched them since — instead of the whole\n * repository, which several sessions edit at once and would mark nearly every image dirty.\n *\n * - A deny-all file (`*` then `!path` re-includes) scopes to its re-includes — a plain one as a path, a\n * wildcard one as a `:(glob)` pathspec, since the build sends what it matches; otherwise the whole\n * context is in scope.\n * - Its `**\\/…` exclusions become git `:(exclude,glob)` pathspecs, as `…/**` so a directory pattern\n * excludes the files under it (a bare `**\\/__tests__` glob matches no file — measured). EXCEPT those\n * under `src/`: the image excludes TypeScript source only because it ships the `dist/` compiled from\n * it, and `dist/` is gitignored — so the source IS the tracked form of what the image carries.\n *\n * Paths are relative to the framework root, where git runs. Pure over the ignore file's text, so a\n * new re-include there widens the scope with no edit here.\n */\nexport function dockerContextSourcePathspecs(frameworkRoot: string, contextPath: string, dockerfilePath: string): string[] {\n const contextRelative = relative(frameworkRoot, contextPath) || '.';\n const ignorePath = [`${dockerfilePath}.dockerignore`, join(contextPath, '.dockerignore')].find((candidate) => existsSync(candidate));\n const lines = ignorePath === undefined ? [] : readFileSync(ignorePath, 'utf8').split('\\n')\n .map((line) => line.trim())\n .filter((line) => line.length > 0 && !line.startsWith('#'));\n const inContext = (path: string): string => (contextRelative === '.' ? path : `${contextRelative}/${path}`);\n const includes = lines.includes('*')\n ? lines\n .filter((line) => line.startsWith('!'))\n .map((line) => (isPlainIgnorePath(line.slice(1)) ? inContext(line.slice(1)) : `:(glob)${inContext(line.slice(1))}`))\n : [contextRelative];\n const excludes = lines\n .filter((line) => line.startsWith('**/') && !line.slice(3).startsWith('src/'))\n .flatMap((line) => [`:(exclude,glob)${line}`, `:(exclude,glob)${line}/**`]);\n return [...(includes.length > 0 ? includes : [contextRelative]), ...excludes];\n}\n\nexport interface FrameworkDockerPublishOptions {\n frameworkRoot?: string;\n targets?: string[];\n dryRun?: boolean;\n /**\n * The IMMUTABLE tag every selected image is published under. Defaults to the\n * framework version.\n *\n * A channel that publishes per-commit supplies its own identity here — e.g.\n * `test-<sha>` — because on that channel the commit, not the version, is what\n * makes the artifact unique. Two pushes of the same framework version from\n * different commits must not collide on one tag.\n */\n immutableTag?: string;\n /**\n * MUTABLE aliases repointed at the image after every immutable push has\n * succeeded — `latest`, `test`, `next`.\n *\n * Kept as one list rather than a boolean per alias: an alias is a pointer, and\n * the set of pointers a channel maintains is channel policy, not a fixed\n * vocabulary this service should enumerate.\n */\n aliasTags?: string[];\n}\n\nexport interface FrameworkDockerPublishTargetResult {\n imageName: string;\n /** `<registry host>/<namespace>/<image>`, with no tag: what a digest reference is written against. */\n imageRepository: string;\n imageRef: string;\n /** The image index digest the push wrote (`containerimage.digest` in buildx's metadata file), once pushed. */\n digest?: string;\n /** What became of the image's signature, once pushed (#3063). */\n signature?: { outcome: FrameworkImageSignatureOutcome; reason?: string };\n aliasImageRefs: string[];\n buildContextPath: string;\n dockerfilePath: string;\n commands: string[];\n}\n\nexport interface FrameworkDockerPublishResult {\n frameworkVersion: string;\n namespace: string;\n targets: FrameworkDockerPublishTargetResult[];\n}\n\ninterface FrameworkDockerBuildContract {\n contextPath: string;\n dockerfilePath: string;\n}\n\ninterface FrameworkDockerBuildDefinition {\n role: WildoFrameworkDockerImageRole;\n variant: WildoFrameworkDockerImageVariant;\n resolveContextPath: (layout: FrameworkLayoutPaths) => string;\n resolveDockerfilePath: (layout: FrameworkLayoutPaths) => string;\n}\n\nconst FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS: Record<string, FrameworkDockerBuildDefinition> = {\n 'wildo-platform': {\n role: WildoFrameworkDockerImageRole.PLATFORM_SERVICE,\n variant: WildoFrameworkDockerImageVariant.DEFAULT,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.platformBaseDockerfilePath,\n },\n 'wildo-backend-base': {\n role: WildoFrameworkDockerImageRole.APPLICATION_BACKEND,\n variant: WildoFrameworkDockerImageVariant.DEFAULT,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.backendBaseDockerfilePath,\n },\n 'wildo-backend-base-java': {\n role: WildoFrameworkDockerImageRole.APPLICATION_BACKEND,\n variant: WildoFrameworkDockerImageVariant.JAVA,\n resolveContextPath: (layout) => layout.repositoryRoot,\n resolveDockerfilePath: (layout) => layout.backendJavaDockerfilePath,\n },\n};\n\n/**\n * Publishes the framework-owned Docker image contract declared in framework\n * config. Each publishable image must resolve to a truthful framework-owned\n * Dockerfile so the release lane stays explicit about what the framework ships.\n */\n/**\n * The platforms every published framework image is built for, as ONE multi-platform\n * manifest list under the immutable tag.\n *\n * Decided 2026-09-03 (Paul): the Apple-Silicon-versus-x86 split is handled by the\n * registry, never by an operator. A host pulls its native image from the same\n * `docker.io/wildoai/<image>:<version>` reference, so compose files and k8s manifests carry\n * no architecture knowledge. The previous lane built `linux/amd64` only, which put every\n * Apple Silicon developer under emulation and could never produce a native arm64 image.\n *\n * Native modules (argon2, sharp, canvas, esbuild) are installed INSIDE each platform's\n * builder stage, so the binaries match by construction — see `Dockerfile.platform-base`.\n * Building the non-native half runs under QEMU on a laptop; if that becomes too slow the\n * same command moves to a CI matrix with native runners, and this list does not change.\n */\nexport const FRAMEWORK_DOCKER_IMAGE_PLATFORMS = ['linux/amd64', 'linux/arm64'] as const;\n\n/**\n * How long one image build may run, and how many times it is tried (#3063).\n *\n * The arm64 half is built under QEMU, and QEMU can crash the emulated Node process (`qemu: uncaught target\n * signal 4 (Illegal instruction)`) with nothing in the build noticing: the 1.1.13 release (framework-release\n * run 43566115901, 2026-11-14) crashed 103 s into the arm64 `pnpm install`, printed nothing for two hours and\n * was cancelled by GitHub's three-hour job limit, with the version tagged and nothing published. The same\n * step took 3 min 54 s in the 1.1.12 release, from the same base image digest and the same QEMU, so the crash\n * is intermittent, and a second attempt is the remedy.\n *\n * A whole build (both platforms, attestations, push) took 8 min 14 s for 1.1.12, so the bound is generous.\n * Two attempts fit inside the release job's limit with the rest of the lane. A retry cannot release half an\n * image: `buildx build --push` writes the tag only after every platform has built, and the tag is the\n * release's own, which nothing names until the npm step that follows.\n */\nexport const FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS = 50 * 60_000;\nexport const FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS = 2;\n\nexport class FrameworkDockerPublishService {\n static async publishImages(\n options: FrameworkDockerPublishOptions = {},\n ): Promise<FrameworkDockerPublishResult> {\n const resolvedFrameworkRoot = options.frameworkRoot ?? FrameworkReleaseService.getFrameworkRoot();\n await FrameworkReleaseService.assertCliCompatibility(resolvedFrameworkRoot);\n const dryRun = options.dryRun === true;\n const aliasTags = (options.aliasTags ?? []).map((tag) => tag.trim()).filter((tag) => tag.length > 0);\n const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(\n resolvedFrameworkRoot,\n );\n const immutableTag = options.immutableTag?.trim() || frameworkConfig.frameworkVersion;\n // Read before anything is built, so an unknown value refuses a dry run too rather than surfacing after the push.\n const signing = frameworkImageSigningOf();\n const allTargets = frameworkConfig.publish.docker.images;\n const requestedTargets = new Set(options.targets ?? []);\n const selectedTargets = allTargets.filter(\n (image) => requestedTargets.size === 0 || requestedTargets.has(image.imageName),\n );\n\n FrameworkDockerPublishService.assertLockedDockerRegistryIdentity(\n frameworkConfig.publish.docker.registryHost,\n frameworkConfig.publish.docker.namespace,\n );\n\n if (requestedTargets.size > 0) {\n const missingTargets = [...requestedTargets].filter(\n (target) => !selectedTargets.some((image) => image.imageName === target),\n );\n if (missingTargets.length > 0) {\n throw new Error(`Unknown Docker publish target(s): ${missingTargets.join(', ')}.`);\n }\n }\n\n const result: FrameworkDockerPublishResult = {\n frameworkVersion: frameworkConfig.frameworkVersion,\n namespace: frameworkConfig.publish.docker.namespace,\n targets: selectedTargets.map((image) => {\n const buildContract = FrameworkDockerPublishService.resolveBuildContract(\n resolvedFrameworkRoot,\n image,\n );\n /**\n * Fully qualified, including the registry host. A bare\n * `<namespace>/<image>` reference resolves to Docker Hub by default, so\n * omitting the host would push these images somewhere other than the\n * registry the config declares — silently, and only discoverably by a\n * consumer failing to pull.\n */\n const imageRepository = `${frameworkConfig.publish.docker.registryHost}/${frameworkConfig.publish.docker.namespace}/${image.imageName}`;\n const imageRef = `${imageRepository}:${immutableTag}`;\n const aliasImageRefs = aliasTags.map((tag) => `${imageRepository}:${tag}`);\n\n return {\n imageName: image.imageName,\n imageRepository,\n imageRef,\n aliasImageRefs,\n buildContextPath: FrameworkDockerPublishService.asFrameworkRelativePath(\n resolvedFrameworkRoot,\n buildContract.contextPath,\n ),\n dockerfilePath: FrameworkDockerPublishService.asFrameworkRelativePath(\n resolvedFrameworkRoot,\n buildContract.dockerfilePath,\n ),\n commands: FrameworkDockerPublishService.buildCommandPreview(\n buildContract.contextPath,\n buildContract.dockerfilePath,\n imageRepository,\n imageRef,\n aliasImageRefs,\n { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl },\n signing,\n ),\n };\n }),\n };\n\n if (dryRun || result.targets.length === 0) {\n return result;\n }\n\n FrameworkDockerPublishService.assertDockerReady();\n FrameworkDockerPublishService.loginWithFrameworkSecrets(resolvedFrameworkRoot, frameworkConfig.publish.docker);\n\n for (const target of result.targets) {\n const configuredTarget = selectedTargets.find((image) => image.imageName === target.imageName);\n if (!configuredTarget) {\n throw new Error(`Missing Docker target definition for \"${target.imageName}\".`);\n }\n const buildContract = FrameworkDockerPublishService.resolveBuildContract(\n resolvedFrameworkRoot,\n configuredTarget,\n );\n\n /*\n * ONE buildx invocation builds every platform in `FRAMEWORK_DOCKER_IMAGE_PLATFORMS` and\n * pushes them as a single manifest list under the immutable tag. A multi-platform result\n * cannot be `--load`ed into the local daemon (it is not one image), which is why this is\n * `--push` rather than the old build-then-push pair. No CLI lane builds into the local daemon\n * since #2988 removed `wildo local up --rebuild`, whose image no runtime ran; the registry host's\n * `--fromCheckout` builds there, on the host's own platform.\n *\n * The push carries the SLSA provenance and SBOM attestations (`FRAMEWORK_IMAGE_ATTESTATION_ARGS`)\n * in the same index, and the OCI labels name the release, the repository, the revision and the\n * build instant (`provenanceLabelArgs`).\n */\n // buildx writes the pushed index's digest here (`containerimage.digest`): what the signature is made over.\n const metadataDir = mkdtempSync(join(tmpdir(), 'wildo-image-metadata-'));\n const metadataFile = join(metadataDir, 'metadata.json');\n try {\n FrameworkDockerPublishService.runDockerBuild('buildx build --push', [\n 'buildx',\n 'build',\n '--platform',\n FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(','),\n '-f',\n buildContract.dockerfilePath,\n '-t',\n target.imageRef,\n ...FrameworkDockerPublishService.provenanceLabelArgs(\n resolvedFrameworkRoot,\n dockerContextSourcePathspecs(resolvedFrameworkRoot, buildContract.contextPath, buildContract.dockerfilePath),\n { version: immutableTag, sourceUrl: frameworkConfig.publish.npm.repositoryUrl },\n ),\n ...FRAMEWORK_IMAGE_ATTESTATION_ARGS,\n '--metadata-file',\n metadataFile,\n '--push',\n buildContract.contextPath,\n ]);\n target.digest = FrameworkDockerPublishService.pushedDigestOf(metadataFile);\n } finally {\n rmSync(metadataDir, { recursive: true, force: true });\n }\n }\n\n /*\n * Aliases are repointed only after EVERY immutable push has succeeded.\n *\n * The previous shape moved each image's alias inside the per-image loop, so\n * a failure on image N left images 1..N-1 already advertising the new\n * release through `latest` while the release as a whole had not happened —\n * a partial release that looks complete to anyone pulling the alias. With\n * one image in the publish set that was unobservable; it returns the moment\n * a second image is re-added, which is exactly when nobody would be looking\n * for it.\n */\n for (const target of result.targets) {\n for (const aliasRef of target.aliasImageRefs) {\n // `imagetools create` repoints the alias at the whole MANIFEST LIST in the registry, its\n // attestation manifests included; a local `docker tag` + `push` would only ever carry the one\n // platform the daemon holds, and no attestation.\n FrameworkDockerPublishService.runDockerCommand('imagetools create alias', [\n 'buildx',\n 'imagetools',\n 'create',\n '-t',\n aliasRef,\n target.imageRef,\n ]);\n }\n }\n\n // Signed by digest once every image is pushed; see FrameworkImageSigning.COSIGN_KEYLESS for what that covers.\n for (const target of result.targets) {\n target.signature = FrameworkDockerPublishService.signImage(target, signing);\n }\n\n return result;\n }\n\n /** The image index digest buildx recorded in its metadata file, or undefined when it recorded none. */\n static pushedDigestOf(metadataFile: string): string | undefined {\n try {\n const metadata = JSON.parse(readFileSync(metadataFile, 'utf8')) as Record<string, unknown>;\n const digest = metadata['containerimage.digest'];\n return typeof digest === 'string' && /^sha256:[0-9a-f]{64}$/.test(digest) ? digest : undefined;\n } catch {\n return undefined;\n }\n }\n\n /**\n * Sign one pushed image as the environment asks (#3063). Never throws: the image is already public, so a signature\n * that cannot be made is reported (FAILED, with the command to run by hand) rather than stopping the release after it\n * published, and a consumer's `cosign verify` sees it missing rather than being told anything false.\n *\n * cosign reads the registry credentials `docker login` wrote (`loginWithFrameworkSecrets`), and in GitHub Actions takes\n * the job's OIDC token on its own (`id-token: write`). SIGNED means the signature then VERIFIED against this job's\n * workflow identity (`cosign verify`), so the outcome is the registry's answer rather than the signing command's exit.\n */\n static signImage(\n target: Pick<FrameworkDockerPublishTargetResult, 'imageRepository' | 'digest'>,\n signing: FrameworkImageSigning | undefined,\n spawn: typeof spawnSync = spawnSync,\n env: NodeJS.ProcessEnv = process.env,\n ): NonNullable<FrameworkDockerPublishTargetResult['signature']> {\n if (signing === undefined) return { outcome: FrameworkImageSignatureOutcome.NOT_REQUESTED };\n if (!target.digest) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `buildx recorded no digest for ${target.imageRepository}; sign it by hand: cosign sign --yes ${target.imageRepository}@<digest>` };\n }\n const reference = `${target.imageRepository}@${target.digest}`;\n const identity = githubWorkflowSigningIdentityOf(env);\n if (!identity) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `keyless signing needs a GitHub Actions workload identity (GITHUB_WORKFLOW_REF is unset); sign it by hand: cosign sign --yes ${reference}` };\n }\n const failed = (step: string, run: ReturnType<typeof spawnSync>) =>\n `${step}: ${run.error ? run.error.message : `cosign exited ${run.status ?? 'without a status'}`}`;\n const signed = spawn('cosign', ['sign', '--yes', reference], { encoding: 'utf8', stdio: 'inherit' });\n if (signed.status !== 0) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('cosign sign', signed)}; sign it by hand: cosign sign --yes ${reference}` };\n }\n const verifyArgs = ['verify', '--certificate-identity', identity, '--certificate-oidc-issuer', GITHUB_ACTIONS_OIDC_ISSUER, reference];\n const verified = spawn('cosign', verifyArgs, { encoding: 'utf8', stdio: 'inherit' });\n if (verified.status !== 0) {\n return { outcome: FrameworkImageSignatureOutcome.FAILED, reason: `${failed('signed, but cosign verify', verified)}; check it with: cosign ${verifyArgs.join(' ')}` };\n }\n return { outcome: FrameworkImageSignatureOutcome.SIGNED };\n }\n\n /**\n * Log the Docker CLI in to the framework's registry with `docker.publishToken` from the framework secrets file.\n *\n * Every step that WRITES to the registry calls it itself: the image push, and moving the `latest` alias\n * (`wildo fwk publish all` step 8). A resumed release (`--skipDocker`) skips the push, so an alias move that relied\n * on the push's login ran unauthenticated: on a developer machine an earlier `docker login` hid that, and on a fresh\n * CI runner Docker Hub answered 401 (framework-release run 43278280537, 2026-11-12, #3063).\n *\n * @param frameworkRoot the framework checkout whose secrets file and release config are read\n */\n static async loginToRegistry(frameworkRoot: string): Promise<void> {\n const frameworkConfig = await FrameworkDockerPublishService.loadFrameworkConfigOrThrow(frameworkRoot);\n FrameworkDockerPublishService.loginWithFrameworkSecrets(frameworkRoot, frameworkConfig.publish.docker);\n }\n\n /** The login itself; `docker` gives the registry host, and the namespace used as the username when the secrets name none. */\n private static loginWithFrameworkSecrets(frameworkRoot: string, docker: { registryHost: string; namespace: string }): void {\n const secrets = FrameworkReleaseService.loadFrameworkDockerSecrets(frameworkRoot);\n const publishToken = secrets?.publishToken ?? null;\n if (!publishToken) {\n throw new Error(`Docker publish requires docker.publishToken in ${FrameworkReleaseService.resolveFrameworkSecretsPath(frameworkRoot)}.`);\n }\n FrameworkDockerPublishService.runDockerLogin(docker.registryHost, secrets?.publishUsername ?? docker.namespace, publishToken);\n }\n\n private static async loadFrameworkConfigOrThrow(frameworkRoot: string) {\n const frameworkConfig = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n if (!frameworkConfig) {\n throw new Error(\n `Framework release config not found at ${FrameworkReleaseService.resolveFrameworkConfigPath(frameworkRoot)}`,\n );\n }\n return frameworkConfig;\n }\n\n private static resolveBuildContract(\n frameworkRoot: string,\n target: WildoFrameworkReleaseDockerImage,\n ): FrameworkDockerBuildContract {\n const buildDefinition = FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS[target.imageName];\n if (!buildDefinition) {\n throw new Error(\n `Docker publish target \"${target.imageName}\" is not mapped to a framework Dockerfile yet.`,\n );\n }\n if (buildDefinition.role !== target.role || buildDefinition.variant !== target.variant) {\n throw new Error(\n `Docker publish target \"${target.imageName}\" must use ${buildDefinition.role}/${buildDefinition.variant}.`,\n );\n }\n\n const frameworkLayout = resolveFrameworkLayout(frameworkRoot);\n const contextPath = buildDefinition.resolveContextPath(frameworkLayout);\n const dockerfilePath = buildDefinition.resolveDockerfilePath(frameworkLayout);\n\n if (!existsSync(dockerfilePath)) {\n throw new Error(\n `Dockerfile for \"${target.imageName}\" not found at ${dockerfilePath}.`,\n );\n }\n\n return { contextPath, dockerfilePath };\n }\n\n /**\n * Both halves of the published image identity are locked, not just the\n * namespace. The registry host is the half that used to be implicit, and an\n * unlocked host is the more dangerous of the two: a wrong namespace fails\n * loudly on push permissions, while a wrong host can succeed and publish the\n * framework to a registry nobody is watching.\n */\n private static assertLockedDockerRegistryIdentity(registryHost: string, namespace: string): void {\n if (registryHost !== FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST) {\n throw new Error(\n `Docker publish currently supports only the locked registry host \"${FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST}\".`,\n );\n }\n if (namespace !== FRAMEWORK_RELEASE_DOCKER_NAMESPACE) {\n throw new Error(\n `Docker publish currently supports only the locked namespace \"${FRAMEWORK_RELEASE_DOCKER_NAMESPACE}\".`,\n );\n }\n }\n\n /**\n * The OCI labels stamped on every pushed image: the release it is (`identity.version`, the immutable\n * tag), the repository it comes from (`identity.sourceUrl`), the source revision and the build instant.\n *\n * Read back by `fwk publish all --skipDocker`, which resumes a release whose image is already pushed:\n * existence proves the tag is there, not that it was built from the source now being published, so the\n * resume prints what the image was built from and how many commits touched its inputs since. The\n * revision is HEAD, marked `-dirty` when the image's own inputs (`sourcePathspecs`) held uncommitted\n * edits or untracked files — the image then carries content no commit has. Edits elsewhere in the\n * shared tree do not mark it.\n *\n * The version is the immutable tag even when it is not a semver version (`test-<sha>` on a per-commit\n * channel): it is the one reference that always resolves to this image, so it is what the label names.\n */\n private static provenanceLabelArgs(\n frameworkRoot: string,\n sourcePathspecs: string[],\n identity: FrameworkImageIdentity,\n ): string[] {\n const labels = [\n '--label', `${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version}`,\n '--label', `${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl}`,\n '--label', `${FRAMEWORK_IMAGE_CREATED_LABEL}=${new Date().toISOString()}`,\n ];\n const head = spawnSync('git', ['rev-parse', 'HEAD'], { cwd: frameworkRoot, encoding: 'utf8' });\n if (head.status === 0 && head.stdout.trim()) {\n const status = spawnSync('git', ['status', '--porcelain', '--untracked-files=all', '--', ...sourcePathspecs], { cwd: frameworkRoot, encoding: 'utf8' });\n const dirty = status.status !== 0 || status.stdout.trim() !== '';\n labels.push('--label', `${FRAMEWORK_IMAGE_REVISION_LABEL}=${head.stdout.trim()}${dirty ? '-dirty' : ''}`);\n }\n return labels;\n }\n\n /**\n * The source pathspecs of a configured image, by name — what `fwk publish all --skipDocker` asks git\n * about. `null` for an image this lane has no build definition for.\n */\n static imageSourcePathspecs(frameworkRoot: string, imageName: string): string[] | null {\n const buildDefinition = FRAMEWORK_DOCKER_IMAGE_BUILD_DEFINITIONS[imageName];\n if (!buildDefinition) return null;\n const frameworkLayout = resolveFrameworkLayout(frameworkRoot);\n return dockerContextSourcePathspecs(\n frameworkRoot,\n buildDefinition.resolveContextPath(frameworkLayout),\n buildDefinition.resolveDockerfilePath(frameworkLayout),\n );\n }\n\n private static buildCommandPreview(\n contextPath: string,\n dockerfilePath: string,\n imageRepository: string,\n imageRef: string,\n aliasImageRefs: string[],\n identity: FrameworkImageIdentity,\n signing: FrameworkImageSigning | undefined,\n ): string[] {\n return [\n `docker buildx build --platform ${FRAMEWORK_DOCKER_IMAGE_PLATFORMS.join(',')} -f \"${dockerfilePath}\" -t \"${imageRef}\" --label ${FRAMEWORK_IMAGE_VERSION_LABEL}=${identity.version} --label ${FRAMEWORK_IMAGE_SOURCE_LABEL}=${identity.sourceUrl} --label ${FRAMEWORK_IMAGE_CREATED_LABEL}=<build instant> --label ${FRAMEWORK_IMAGE_REVISION_LABEL}=<HEAD>[-dirty] ${FRAMEWORK_IMAGE_ATTESTATION_ARGS.join(' ')} --metadata-file <tmp> --push \"${contextPath}\"`,\n ...aliasImageRefs.map((aliasRef) => `docker buildx imagetools create -t \"${aliasRef}\" \"${imageRef}\"`),\n ...(signing === FrameworkImageSigning.COSIGN_KEYLESS\n ? [`cosign sign --yes \"${imageRepository}@<pushed digest>\"`, `cosign verify --certificate-identity <this workflow> --certificate-oidc-issuer ${GITHUB_ACTIONS_OIDC_ISSUER} \"${imageRepository}@<pushed digest>\"`]\n : []),\n ];\n }\n\n private static asFrameworkRelativePath(frameworkRoot: string, absolutePath: string): string {\n return relative(frameworkRoot, absolutePath) || '.';\n }\n\n private static assertDockerReady(): void {\n const dockerState = DockerUtils.checkDockerRunning();\n if (!dockerState.available || !dockerState.running) {\n throw new Error(dockerState.error ?? 'Docker must be running to publish framework images.');\n }\n }\n\n /**\n * `docker login` with no host argument authenticates against Docker Hub, so\n * the registry host must be passed explicitly or the credential is sent to\n * the wrong registry and the later push fails as unauthenticated.\n */\n private static runDockerLogin(registryHost: string, username: string, publishToken: string): void {\n const loginResult = spawnSync(\n 'docker',\n ['login', registryHost, '--username', username, '--password-stdin'],\n {\n input: publishToken,\n encoding: 'utf8',\n stdio: ['pipe', 'inherit', 'inherit'],\n },\n );\n if (loginResult.status !== 0) {\n throw new Error(`Docker login failed for username \"${username}\" at ${registryHost}.`);\n }\n }\n\n /**\n * Run one image build, bounded by `FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS` and tried\n * `FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS` times. A build that runs out of time is killed (SIGTERM ends the buildx\n * client, and BuildKit cancels the build when its session closes). Every failure says which attempt it was and\n * why, so a release log shows a hang as a hang rather than as silence.\n */\n static runDockerBuild(\n label: string,\n args: string[],\n spawn: typeof spawnSync = spawnSync,\n log: (message: string) => void = (message) => console.error(message),\n ): void {\n const minutes = Math.round(FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS / 60_000);\n for (let attempt = 1; attempt <= FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS; attempt += 1) {\n const result = spawn('docker', args, { encoding: 'utf8', stdio: 'inherit', timeout: FRAMEWORK_DOCKER_IMAGE_BUILD_TIMEOUT_MS });\n if (result.status === 0) return;\n const timedOut = (result.error as NodeJS.ErrnoException | undefined)?.code === 'ETIMEDOUT';\n const reason = timedOut\n ? `it ran out of its ${minutes} minutes (an emulated platform can hang without a word)`\n : result.signal\n ? `it was ended by ${result.signal}`\n : `it exited ${result.status ?? 'without a status'}`;\n const last = attempt === FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS;\n log(`Docker ${label}, attempt ${attempt} of ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS}: ${reason}.${last ? '' : ' Trying again.'}`);\n if (last) throw new Error(`Docker ${label} failed after ${FRAMEWORK_DOCKER_IMAGE_BUILD_ATTEMPTS} attempts: ${reason}.`);\n }\n }\n\n private static runDockerCommand(label: string, args: string[]): void {\n const result = spawnSync('docker', args, {\n encoding: 'utf8',\n stdio: 'inherit',\n });\n if (result.status !== 0) {\n throw new Error(`Docker ${label} failed.`);\n }\n }\n}\n"]}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The run annotations a release step writes for GitHub Actions to collect (#3699). Shared by `wildo fwk publish all` and
3
+ * the publish steps it runs as subprocesses (`wildo fwk publish docker`, #3063), so a step reports through the same
4
+ * title the release's Slack report reads without loading another command module.
5
+ */
6
+ /** The title of the run annotation a release raises when a step it does not depend on did not complete. */
7
+ export declare const RELEASE_INCOMPLETE_ANNOTATION_TITLE = "Release incomplete";
8
+ /**
9
+ * A GitHub Actions warning annotation for `message`, or null outside Actions (#3699).
10
+ *
11
+ * The provider modules are a step the release does not depend on, so their failure is a warning and the run stays
12
+ * green. A warning only LOGGED is invisible to everything that reports a run: release 1.1.13 published 3 of 48 modules
13
+ * and its Slack message read as a clean release, because `post-release-slack.mjs` lists the run's annotations and a log
14
+ * line is not one. Printed as a workflow command it becomes an annotation, and the report names it.
15
+ *
16
+ * The message is escaped as the runner requires (`%`, CR and LF), so a multi-line cause stays one annotation.
17
+ */
18
+ export declare function githubWarningAnnotation(title: string, message: string, env?: NodeJS.ProcessEnv): string | null;
19
+ //# sourceMappingURL=github-actions-annotation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-actions-annotation.d.ts","sourceRoot":"","sources":["../../../../src/services/framework/github-actions-annotation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2GAA2G;AAC3G,eAAO,MAAM,mCAAmC,uBAAuB,CAAC;AAExE;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,IAAI,CAK3H"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The run annotations a release step writes for GitHub Actions to collect (#3699). Shared by `wildo fwk publish all` and
3
+ * the publish steps it runs as subprocesses (`wildo fwk publish docker`, #3063), so a step reports through the same
4
+ * title the release's Slack report reads without loading another command module.
5
+ */
6
+ /** The title of the run annotation a release raises when a step it does not depend on did not complete. */
7
+ export const RELEASE_INCOMPLETE_ANNOTATION_TITLE = 'Release incomplete';
8
+ /**
9
+ * A GitHub Actions warning annotation for `message`, or null outside Actions (#3699).
10
+ *
11
+ * The provider modules are a step the release does not depend on, so their failure is a warning and the run stays
12
+ * green. A warning only LOGGED is invisible to everything that reports a run: release 1.1.13 published 3 of 48 modules
13
+ * and its Slack message read as a clean release, because `post-release-slack.mjs` lists the run's annotations and a log
14
+ * line is not one. Printed as a workflow command it becomes an annotation, and the report names it.
15
+ *
16
+ * The message is escaped as the runner requires (`%`, CR and LF), so a multi-line cause stays one annotation.
17
+ */
18
+ export function githubWarningAnnotation(title, message, env = process.env) {
19
+ if (env.GITHUB_ACTIONS !== 'true')
20
+ return null;
21
+ const escapeData = (value) => value.replace(/%/g, '%25').replace(/\r/g, '%0D').replace(/\n/g, '%0A');
22
+ const escapeProperty = (value) => escapeData(value).replace(/:/g, '%3A').replace(/,/g, '%2C');
23
+ return `::warning title=${escapeProperty(title)}::${escapeData(message)}`;
24
+ }
25
+ //# sourceMappingURL=github-actions-annotation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-actions-annotation.js","sourceRoot":"","sources":["../../../../src/services/framework/github-actions-annotation.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,2GAA2G;AAC3G,MAAM,CAAC,MAAM,mCAAmC,GAAG,oBAAoB,CAAC;AAExE;;;;;;;;;GASG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAAa,EAAE,OAAe,EAAE,MAAyB,OAAO,CAAC,GAAG;IAC1G,IAAI,GAAG,CAAC,cAAc,KAAK,MAAM;QAAE,OAAO,IAAI,CAAC;IAC/C,MAAM,UAAU,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACrH,MAAM,cAAc,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC9G,OAAO,mBAAmB,cAAc,CAAC,KAAK,CAAC,KAAK,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;AAC5E,CAAC","sourcesContent":["/**\n * The run annotations a release step writes for GitHub Actions to collect (#3699). Shared by `wildo fwk publish all` and\n * the publish steps it runs as subprocesses (`wildo fwk publish docker`, #3063), so a step reports through the same\n * title the release's Slack report reads without loading another command module.\n */\n\n/** The title of the run annotation a release raises when a step it does not depend on did not complete. */\nexport const RELEASE_INCOMPLETE_ANNOTATION_TITLE = 'Release incomplete';\n\n/**\n * A GitHub Actions warning annotation for `message`, or null outside Actions (#3699).\n *\n * The provider modules are a step the release does not depend on, so their failure is a warning and the run stays\n * green. A warning only LOGGED is invisible to everything that reports a run: release 1.1.13 published 3 of 48 modules\n * and its Slack message read as a clean release, because `post-release-slack.mjs` lists the run's annotations and a log\n * line is not one. Printed as a workflow command it becomes an annotation, and the report names it.\n *\n * The message is escaped as the runner requires (`%`, CR and LF), so a multi-line cause stays one annotation.\n */\nexport function githubWarningAnnotation(title: string, message: string, env: NodeJS.ProcessEnv = process.env): string | null {\n if (env.GITHUB_ACTIONS !== 'true') return null;\n const escapeData = (value: string): string => value.replace(/%/g, '%25').replace(/\\r/g, '%0D').replace(/\\n/g, '%0A');\n const escapeProperty = (value: string): string => escapeData(value).replace(/:/g, '%3A').replace(/,/g, '%2C');\n return `::warning title=${escapeProperty(title)}::${escapeData(message)}`;\n}\n"]}
@@ -0,0 +1,43 @@
1
+ import { type readRegistryHostTemplates } from '../../../services/framework/registry-host/registry-host.service';
2
+ /** The script on the host; also the deploy key's forced command. */
3
+ export declare const REGISTRY_HOST_UPGRADE_SCRIPT = "/opt/wildo-registry/upgrade-image.sh";
4
+ /** The comment that names the release's deploy key in `authorized_keys`, so authorizing again replaces it. */
5
+ export declare const REGISTRY_HOST_CI_KEY_COMMENT = "wildo-release-ci";
6
+ /** The deployed files whose digests `upgrade-image.sh --inspect` reports, in its order. */
7
+ export declare const REGISTRY_HOST_UPGRADE_COMPARED_FILES: readonly ["docker-compose.yml", "Caddyfile", "upgrade-image.sh"];
8
+ /** A tag the release publishes, and the only shape the host script accepts (`^[0-9]+\.[0-9]+\.[0-9]+$` there too). */
9
+ export declare function isRegistryHostReleaseTag(tag: string): boolean;
10
+ /** What `upgrade-image.sh --inspect` reports. A file the host does not have is `null`. */
11
+ export interface RegistryHostInspection {
12
+ readonly image: string;
13
+ readonly files: Readonly<Record<string, string | null>>;
14
+ readonly envKeys: readonly string[];
15
+ }
16
+ /** Parse `--inspect`'s lines; throws on an answer missing its image or key list, which no healthy host gives. */
17
+ export declare function parseRegistryHostInspection(stdout: string): RegistryHostInspection;
18
+ /**
19
+ * The `.env` variable NAMES this checkout's `deploy` writes. Computed from throwaway secrets, so it needs none of the real
20
+ * ones and runs in CI: the set is fixed by `buildRegistryHostEnv`, never by the values.
21
+ */
22
+ export declare function registryHostEnvKeyNames(): string[];
23
+ /**
24
+ * Why moving the image alone would leave the registry wrong: each file the host runs that differs from this checkout's,
25
+ * and each variable this checkout's `deploy` writes that the host's `.env` lacks. Empty means the upgrade is enough.
26
+ */
27
+ export declare function upgradeBlockers(input: {
28
+ inspection: RegistryHostInspection;
29
+ templates: ReturnType<typeof readRegistryHostTemplates>;
30
+ envKeyNames: readonly string[];
31
+ }): string[];
32
+ /**
33
+ * The `authorized_keys` line for the release's deploy key: the forced command (whatever the client asks, sshd runs the
34
+ * upgrade script and passes the request in SSH_ORIGINAL_COMMAND) and `restrict` (no forwarding, no PTY, no agent).
35
+ * Refuses anything but one public key, so a private key or a pasted options string can never reach the file.
36
+ */
37
+ export declare function buildRegistryHostCiAuthorizedKeyLine(publicKey: string): string;
38
+ /**
39
+ * The remote script that installs (or, with `revoke`, removes) the release's deploy key, reading the line from stdin:
40
+ * every existing line carrying the CI comment goes first, so authorizing again replaces the key rather than adding one.
41
+ */
42
+ export declare function buildAuthorizeCiRemoteScript(revoke: boolean): string;
43
+ //# sourceMappingURL=registry-host-upgrade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry-host-upgrade.d.ts","sourceRoot":"","sources":["../../../../../src/services/framework/registry-host/registry-host-upgrade.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAiD,KAAK,yBAAyB,EAAE,MAAM,mEAAmE,CAAC;AAElK,oEAAoE;AACpE,eAAO,MAAM,4BAA4B,yCAAgD,CAAC;AAE1F,8GAA8G;AAC9G,eAAO,MAAM,4BAA4B,qBAAqB,CAAC;AAE/D,2FAA2F;AAC3F,eAAO,MAAM,oCAAoC,kEAAmE,CAAC;AAErH,sHAAsH;AACtH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED,0FAA0F;AAC1F,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IACxD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CACrC;AAED,iHAAiH;AACjH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,CAclF;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAGlD;AAOD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,UAAU,EAAE,sBAAsB,CAAC;IACnC,SAAS,EAAE,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;IACxD,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;CAChC,GAAG,MAAM,EAAE,CAWX;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAI9E;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAYpE"}