@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 +1 @@
1
- {"version":3,"file":"publish-all.command.js","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-all.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO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IAAI,CAAC,+BAA+B,SAAS,GAAG,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo fwk publish all` — release the framework in ONE command: everything an application creator\n * installs, from a framework checkout, in the order that keeps every published artifact installable.\n *\n * wildo fwk publish all # release (bumping the patch first if this version is already out)\n * wildo fwk publish all --bump minor # bump minor first\n * wildo fwk publish all --distTag next # publish under `next`; leaves `latest`, the Docker `latest` alias, the site and the provider modules alone\n * wildo fwk publish all --dryRun # compile, bundle, npm + Docker + site dry runs — nothing published\n *\n * ## The order, and why each step sits where it does\n *\n * 0. A COMMIT (#3059). A real release refuses uncommitted edits to tracked files (`--allowDirty` is the loud escape\n * hatch): what is published must be what a commit holds, or no artifact can say what it was built from. The\n * shared checkout rarely qualifies, which is what `wildo fwk release` is for: it runs this command in a fresh\n * worktree of the branch as GitHub has it (#3064).\n * 1. VERSION. A fresh release needs a version npm has never seen: if the checkout's version is already\n * published it is bumped (`--bump`, default patch) — so repeated releases need no hand edit. A RESUME\n * (`--skipDocker`) never bumps: it finishes the checkout's version, whichever step stopped it, and is\n * also how a version first tried under `next` is made `latest`.\n * \"Could not ask npm\" refuses the release: read as \"not published\" it would skip the bump and push\n * a Docker tag over an image that was already released.\n * 1b. TAG FIRST (#3059). The bump is committed (\"Framework <version>: the version the release lane set …\"), tagged\n * `v<version>` (annotated) and pushed with the tag, atomically, BEFORE anything is built or published. Every\n * artifact then names a commit on GitHub that declares its version: npm's `gitHead` and the image's revision\n * label, never `-dirty`. A push GitHub refuses (the branch moved) stops the release with nothing published.\n * A resume (`--skipDocker`) requires the tag, and publishes from it.\n * 2. `fwk generate-docs`. The compiled framework knowledge is not produced by any package build, and\n * the npm lane refuses knowledge compiled for another version (#1573).\n * 3. BUNDLE the workbench (`vite build`, its `bundle` script). It is one of the two published packages no\n * dev watcher builds, and it is deliberately not a `build` script: turbo's `build` runs on every cold CI\n * VM, where a ~55 s bundle nothing there uses would be pure cost. Built with every `VITE_*` variable\n * removed from the environment, because Vite inlines them into what every app creator downloads.\n * Then BUILD the provider simulators (#3047), the other one: they keep their own lockfile outside the\n * root workspace, so neither a watcher nor `pnpm --filter` reaches them, and the step installs from that\n * lockfile before running their `build` in their own directory.\n * 4. `fwk publish npm --dryRun`. Every npm gate (stale build, stale knowledge, licensing, closure) runs\n * HERE, before anything leaves the machine: npm and Docker publication cannot be taken back.\n * 5. `fwk publish docker`. BEFORE npm, because the published CLI names `wildo-platform:<its version>`:\n * a CLI that reached npm first would send every application creator's `local up` after an image\n * that does not exist yet. The image is built from this checkout's build output, not from npm.\n * It pushes the version tag only; the `latest` alias moves in step 8.\n * 6. `fwk publish npm`. Internally in dependency order, the CLI last. A `latest` release is published\n * under the `release-staging` dist-tag, so nothing a bare `npm install` or `wildo update` resolves\n * moves while the packages go up one at a time.\n * 7. `fwk publish promote`. Waits until npm SERVES every package at the new version (npm takes minutes\n * to make a publish readable everywhere), then, for a `latest` release, points `latest` at it. The\n * staging tag stays (npm refuses its removal with this token; the next release moves it). A package npm\n * holds as a STAGED publish awaiting 2FA approval is named with its stage id while the wait goes on, so an\n * approval given then lets the release finish (#3048). Before this, `latest` was moved package by package as each was published,\n * so `wildo-cli@latest` could name dependency versions npm could not serve yet. A side-channel\n * release (`--distTag next`) only waits.\n * 7b. CLEAN INSTALLS (#3060), between \"npm serves it\" and \"it is the default\": the checkout's own `install.sh\n * --cli-version=<version>` runs in fresh `node:<supported major>` containers, one with only what the installer\n * documents and one with a JDK, and `wildo --version` must answer the version. 1.1.11 became `latest` while a\n * machine without a JDK could not install it (#3055); a failure here stops before `latest` moves.\n * `--skipInstallCheck` is the escape hatch, and says so.\n * 8. The Docker `latest` alias and the installers site (`get.wildo.ai`), `latest` releases only, once\n * npm `latest` has moved. Without the site's deploy config (`marketing/tooling/.env`) the site is\n * skipped with a WARNING and the release still succeeds: npm and Docker hold the release, and the\n * installers install whatever npm's `latest` is.\n * 9. `fwk publish providers --registry public` (#2024), `latest` releases only: the provider modules of\n * `providers-registry/` to the public module registry, under the `wildo` domain. The registry is named,\n * because left to its resolver a framework developer's shell (`WILDO_FRAMEWORK_DEVELOPER=1`) answers with the\n * LOCAL registry, and a release has one destination. AFTER npm: an installed module's `@wildo-ai/*` imports\n * resolve from npm, so the engine the modules were checked against is published before they are. Not on a\n * side channel: a stable module version moves the registry's `latest`, so the module would reach applications\n * on npm `latest` having been checked only against a `next` engine.\n * Unlike a failed site deploy, a failure here only WARNS and the release still succeeds: the registry holds versions npm does not\n * depend on, each module is published once per version, and the step is re-run alone with\n * `wildo fwk publish providers --registry public`. The dry run runs it as a dry run.\n *\n * 10. THE RECEIPT (#3061): a GitHub Release `v<version>` holding `release.json` (the commit, every npm package's\n * integrity, every image's digest, the installers' sha256), the installers themselves and `SHA256SUMS`. A\n * missing or failing `gh` only warns and prints the command: npm and Docker already hold the release.\n *\n * Each step runs as a child `wildo` invocation of the command that owns it, so every gate and log line\n * is exactly the one that command already has; this file only sequences them and stops at the first\n * failure. Every failure after the image is pushed prints the resume (`--skipDocker`, never bumps); it\n * re-publishes nothing npm has (the lane skips published packages) and promotion is idempotent.\n *\n * Not included on purpose: a full `pnpm build`. The dev watchers own every package's `dist/`, and the\n * npm lane's freshness gate names any package they left stale — run `pnpm build` then and retry.\n */\nimport { spawnSync } from 'child_process';\nimport { createHash } from 'crypto';\nimport { existsSync, mkdtempSync, readFileSync, realpathSync, writeFileSync } from 'fs';\nimport { tmpdir } from 'os';\nimport { basename, dirname, join } from 'path';\nimport { confirm } from '@inquirer/prompts';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { forwardedGlobalFlags } from '~wildo-cli/kernel/command-runner';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport {\n FrameworkVersionService,\n parseSemverBumpKind,\n SEMVER_BUMP_KINDS,\n SemverBumpKind,\n} from '~wildo-cli/services/framework/framework-version.service';\nimport {\n npmRegistryClient,\n PackageManagerCommand,\n RegistryVersionStatus,\n spawnPackageManager,\n WILDO_CLI_PACKAGE_NAME,\n WORKBENCH_PACKAGE_NAME,\n} from '~wildo-cli/services/framework/framework-update.service';\nimport {\n FRAMEWORK_IMAGE_CREATED_LABEL,\n FRAMEWORK_IMAGE_REVISION_LABEL,\n FrameworkDockerPublishService,\n} from '~wildo-cli/services/framework/framework-docker-publish.service';\nimport { FrameworkNpmDistTag } from '~wildo-cli/services/framework/framework-npm-dist-tag.service';\nimport { PROVIDER_SIMULATORS_RELATIVE_PATH } from '~wildo-cli/services/application/system-of-record-simulators.service';\nimport { SUPPORTED_NODE_MAJOR_VERSION } from '~wildo-cli/services/deployment/host-toolchain-readiness.service';\nimport { describeCliOutsideFrameworkCheckout } from '~wildo-cli/services/framework/framework-publish-cli-origin';\nimport { ASSURANCE_CYCLE_PACKAGE } from '~wildo-cli/services/assurance/assurance-cycle-location.service';\n\n/** The dist-tag an unqualified `npm install` resolves — the only tag that moves Docker `latest` and the site. */\nconst DEFAULT_NPM_DIST_TAG = FrameworkNpmDistTag.LATEST;\n\n/** The workbench script that produces its published `dist/` (see step 3 for why it is not `build`). */\nconst WORKBENCH_BUNDLE_SCRIPT = 'bundle';\n\n/** The installers a release ships (`get.wildo.ai` serves them), relative to the framework root. */\nconst INSTALLER_SCRIPTS_RELATIVE = [join('platform', 'factory', 'scripts', 'install.sh'), join('platform', 'factory', 'scripts', 'install.ps1')];\n\n/** The git tag of a release: annotated, pushed with the bump commit before anything is published (#3059). */\nexport function releaseTagName(version: string): string {\n return `v${version}`;\n}\n\n/**\n * The machines a release must install on before it becomes `latest` (#3060): fresh `node:<supported major>`\n * containers with `apt` packages on top. `minimal` is what the installer documents (curl to fetch it, nothing else);\n * the JDK profile is a machine where SAML's XSD validator compiles (#3055).\n */\nexport const CLEAN_INSTALL_PROFILES: ReadonlyArray<{ name: string; aptPackages: string[] }> = [\n { name: 'minimal', aptPackages: ['curl', 'ca-certificates'] },\n { name: 'with a JDK', aptPackages: ['curl', 'ca-certificates', 'default-jdk-headless'] },\n];\n\n/** The installers site's own CLI, relative to the framework root, and the config it deploys with. */\nconst MARKETING_TOOLING_RELATIVE = join('marketing', 'tooling');\n\n/**\n * Exit codes of `wildo-marketing installers --check-live` (`CHECK_LIVE_EXIT` in\n * `marketing/tooling/src/commands/installers.ts`, a standalone project this package cannot import —\n * a test holds the two equal). Anything that is neither CURRENT nor DIFFERENT means \"could not ask\".\n */\nexport enum LiveInstallersCheckExit {\n /** get.wildo.ai serves this checkout's installers byte for byte: redeploying would change nothing users run. */\n CURRENT = 0,\n /** A script differs or is missing on the site: users only get it through a redeploy. */\n DIFFERENT = 10,\n /** The site could not be asked; nothing is known about what it serves. */\n UNREACHABLE = 11,\n}\n\n/**\n * The directory a child `wildo` step must be LAUNCHED from: the CLI's own package directory, found from the\n * entry that started this process (the directory holding the `@wildo-ai/wildo-cli` manifest above it).\n *\n * Run from source (`wildo-dev`), the CLI is started by `tsx`, which reads the `tsconfig.json` of the directory\n * it is LAUNCHED in — the CLI package's, where the `~wildo-cli/*` alias is declared — and only then does\n * `bin/wildo.ts` move into `WILDO_INVOKE_CWD`. A step launched with `cwd: frameworkRoot` got the repository\n * root's tsconfig instead, which declares no such alias, so every step died before running:\n * `Cannot find package '~wildo-cli'`. The compiled CLI resolves nothing from its working directory, which is\n * why only `wildo-dev fwk publish all` failed. Launching every step from here and naming the framework root\n * through `WILDO_INVOKE_CWD` is the same contract `wildo-dev` itself follows, and it holds in both modes.\n *\n * Falls back to this process's working directory when no such manifest is found above the entry.\n */\nexport function resolveCliLaunchDirectory(entryPath: string): string {\n let directory = dirname(realpathSync(entryPath));\n for (;;) {\n const manifestPath = join(directory, 'package.json');\n if (existsSync(manifestPath)) {\n try {\n if ((JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name === WILDO_CLI_PACKAGE_NAME) return directory;\n } catch {\n // An unreadable manifest is not the CLI's; keep walking up.\n }\n }\n const parent = dirname(directory);\n if (parent === directory) return process.cwd();\n directory = parent;\n }\n}\n\nexport default class FwkPublishAllCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk publish all',\n description: 'Release the framework in one command: version, knowledge, workbench bundle, provider simulators build, Docker image, npm packages, installers site, provider modules',\n category: CommandCategory.Fwk,\n flags: {\n dryRun: { type: 'boolean', description: 'Plan only: compile knowledge, bundle the workbench, build the provider simulators, run the npm, Docker and site dry runs; publish nothing', default: false },\n bump: { type: 'string', description: `Bump kind when the current version is already published: ${SEMVER_BUMP_KINDS.join(', ')} (default ${SemverBumpKind.PATCH})`, default: undefined },\n distTag: { type: 'string', description: `npm dist-tag to publish under (default ${DEFAULT_NPM_DIST_TAG}); any other tag leaves Docker latest and the site alone`, default: undefined },\n skipSite: { type: 'boolean', description: 'Do not redeploy the installers site (get.wildo.ai), even when its installers are out of date', default: false },\n site: {\n type: 'boolean',\n description: 'Redeploy the installers site even when it already serves this checkout\\'s installers (it is otherwise left alone)',\n default: false,\n },\n skipDocker: {\n type: 'boolean',\n description: 'Resume a release whose platform image for this version is already pushed: skip the Docker step (refused if the image is absent)',\n default: false,\n },\n force: { type: 'boolean', description: 'Skip the confirmation before publishing', default: false },\n allowDirty: {\n type: 'boolean',\n description: 'Release although tracked files hold uncommitted edits (they ship, and every artifact says -dirty). Prefer `wildo fwk release`',\n default: false,\n },\n releaseBranch: {\n type: 'string',\n description: 'The branch the version commit and its tag are pushed to (default: the current branch; required from a detached HEAD)',\n default: undefined,\n },\n skipInstallCheck: {\n type: 'boolean',\n description: 'Make the release latest without installing it in clean containers first (says so loudly)',\n default: false,\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n // A publish, or a dry-run verdict, is only about this checkout when this checkout's own CLI runs it (#2518 review).\n // The root this command publishes from, read where its services read it.\n const cliOutsideCheckout = describeCliOutsideFrameworkCheckout(FrameworkReleaseService.getFrameworkRoot());\n if (cliOutsideCheckout) {\n ctx.log.error(cliOutsideCheckout);\n return { success: false };\n }\n const dryRun = ctx.flags.dryRun === true;\n const distTag = typeof ctx.flags.distTag === 'string' && ctx.flags.distTag.length > 0 ? ctx.flags.distTag : DEFAULT_NPM_DIST_TAG;\n const moveLatest = distTag === DEFAULT_NPM_DIST_TAG;\n const requestedBump = ctx.flags.bump === undefined ? null : parseSemverBumpKind(ctx.flags.bump);\n if (ctx.flags.bump !== undefined && requestedBump === null) {\n ctx.log.error(`--bump ${String(ctx.flags.bump)} is not one of ${SEMVER_BUMP_KINDS.join(', ')}.`);\n return { success: false };\n }\n const frameworkRoot = FrameworkReleaseService.getFrameworkRoot();\n\n try {\n // ── 1. version ──\n const current = (await FrameworkVersionService.loadFrameworkVersionState(frameworkRoot)).config.frameworkVersion;\n const currentStatus = npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, current);\n if (currentStatus === RegistryVersionStatus.UNKNOWN) {\n ctx.log.error(`Could not ask npm whether ${current} is already released (is the registry reachable?). Nothing was changed.`);\n return { success: false };\n }\n // A RESUME (`--skipDocker`) finishes the checkout's version and never bumps: whatever step stopped the release —\n // npm publish, the wait, the promotion, the Docker alias, the site — the run that finishes it must target the\n // SAME version. Whether that version is \"done\" cannot be read off npm: wildo-cli's channel tag moves before the\n // release's last steps (the side channel publishes under it; promotion moves it mid-way), so a gate reading it\n // bumped after exactly the failures it was meant to resume. The operator says it instead, and every remedy this\n // command prints carries the flag. A FRESH run bumps whenever the version is already on npm, so it never\n // re-pushes an image tag a published CLI already names.\n const resume = ctx.flags.skipDocker === true;\n if (resume && requestedBump !== null) {\n ctx.log.error('--skipDocker resumes the checkout\\'s version; it cannot be combined with --bump. Nothing was changed.');\n return { success: false };\n }\n const bumpKind = resume ? null : requestedBump ?? (currentStatus === RegistryVersionStatus.PUBLISHED ? SemverBumpKind.PATCH : null);\n const version = bumpKind ? FrameworkVersionService.bumpSemver(current, bumpKind) : current;\n if (bumpKind && npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, version) !== RegistryVersionStatus.NOT_PUBLISHED) {\n ctx.log.error(`${version} is already released, or npm could not say. Pass a larger --bump. Nothing was changed.`);\n return { success: false };\n }\n // Promotion moves `latest` by tag, which the npm lane's own prerelease guard (no dist-tag ⇒ `latest`) no longer\n // sees once the publish carries the staging tag; so the refusal is made here, before anything is published.\n if (moveLatest && version.includes('-')) {\n ctx.log.error(`${version} is a prerelease: it cannot become \"${DEFAULT_NPM_DIST_TAG}\". Pass a channel, for example --distTag next.`);\n return { success: false };\n }\n const bumpNote = bumpKind\n ? ` (${bumpKind} bump from ${current}${currentStatus === RegistryVersionStatus.PUBLISHED ? ', which is already published' : ''})`\n : resume\n ? ` (resuming ${current}: --skipDocker never bumps)`\n : '';\n ctx.log.info(` Release ${version} under npm dist-tag \"${distTag}\"${bumpNote}.`);\n if (dryRun && bumpKind) {\n // A dry run changes nothing, so it validates the checkout AS IT IS; the real run bumps first.\n ctx.log.info(` Dry run: the version stays ${current}, so the steps below validate ${current}; the real run applies the bump first.`);\n }\n\n // ── 0. a commit: what is published is what a commit holds (#3059) ──\n const allowDirty = ctx.flags.allowDirty === true;\n const editsBefore = this.uncommittedTrackedFiles(frameworkRoot);\n if (!dryRun && editsBefore.length > 0) {\n const listed = editsBefore.slice(0, 12).map((file) => ` ${file}`).join('\\n');\n const more = editsBefore.length > 12 ? `\\n … and ${editsBefore.length - 12} more` : '';\n if (!allowDirty) {\n ctx.log.error(` ${editsBefore.length} tracked file(s) hold uncommitted edits, and a release must be what a commit holds:\\n${listed}${more}`);\n ctx.log.error(' Release from the branch as GitHub has it, in a fresh worktree: wildo fwk release');\n ctx.log.error(' (--allowDirty releases these edits anyway, and every artifact will say -dirty.) Nothing was changed.');\n return { success: false };\n }\n ctx.log.warn(` --allowDirty: ${editsBefore.length} uncommitted edit(s) will ship, and the image will say -dirty:\\n${listed}${more}`);\n }\n const releaseBranch = typeof ctx.flags.releaseBranch === 'string' && ctx.flags.releaseBranch.length > 0\n ? ctx.flags.releaseBranch\n : this.git(frameworkRoot, ['branch', '--show-current']).stdout.trim();\n const tag = releaseTagName(version);\n if (!releaseBranch) {\n ctx.log.error(' HEAD is detached: pass --releaseBranch <branch>, the branch the version commit and its tag go to. Nothing was changed.');\n return { success: false };\n }\n if (resume && !dryRun && this.git(frameworkRoot, ['rev-parse', '-q', '--verify', `refs/tags/${tag}`]).status !== 0) {\n ctx.log.error(` --skipDocker resumes a release that was tagged ${tag} when it started, and there is no such tag here. Nothing was changed.`);\n return { success: false };\n }\n if (dryRun) ctx.log.info(` The real run commits the version, tags ${tag} and pushes both to origin/${releaseBranch} before publishing anything.`);\n\n if (!dryRun && !(await this.confirmRelease(ctx, version))) return { success: false };\n if (bumpKind && !dryRun) {\n await FrameworkVersionService.applyFrameworkVersion(version, frameworkRoot);\n ctx.log.success(` Version set to ${version} across the framework manifests.`);\n }\n // ── 1b. tag first: commit, tag and push before anything is built or published ──\n if (!resume && !dryRun && !this.tagRelease(ctx, frameworkRoot, version, releaseBranch, editsBefore)) return { success: false };\n\n // Launched from the CLI's own package directory and told the framework root through WILDO_INVOKE_CWD —\n // see `resolveCliLaunchDirectory` for why the step cannot simply run with `cwd: frameworkRoot`.\n const cliLaunchDirectory = resolveCliLaunchDirectory(process.argv[1]);\n const wildo = (label: string, args: string[]): boolean =>\n this.step(ctx, label, process.execPath, [...process.execArgv, process.argv[1], ...forwardedGlobalFlags({ ...ctx.globalFlags, nonInteractive: true }), ...args], cliLaunchDirectory,\n { ...process.env, WILDO_INVOKE_CWD: frameworkRoot });\n\n // ── 2–4. inputs, then every npm gate before anything leaves the machine ──\n // A dry run builds its inputs too — both are local and reversible, and the gates it runs would\n // otherwise judge whatever knowledge and workbench bundle happened to be lying around.\n if (!wildo('compile framework knowledge', ['fwk', 'generate-docs'])) return { success: false };\n if (!this.bundleWorkbench(ctx, frameworkRoot)) return { success: false };\n if (!this.bundleAssuranceCycle(ctx, frameworkRoot)) return { success: false };\n if (!this.buildProviderSimulators(ctx, frameworkRoot)) return { success: false };\n // A `latest` release is PUBLISHED under the staging tag and promoted once npm serves every package (step 7).\n const publishTag = moveLatest ? FrameworkNpmDistTag.RELEASE_STAGING : distTag;\n if (!wildo('npm gates (dry run)', ['fwk', 'publish', 'npm', '--dryRun', '--distTag', publishTag])) return { success: false };\n if (dryRun) {\n if (!wildo('Docker plan (dry run)', ['fwk', 'publish', 'docker', '--dryRun', ...(moveLatest ? ['--tagLatest'] : [])])) return { success: false };\n // A site config the dry run cannot even plan with is one the real run would fail on.\n if (moveLatest && ctx.flags.skipSite !== true && this.deploySite(ctx, frameworkRoot, true, ctx.flags.site === true) === false) return { success: false };\n if (moveLatest && !wildo('provider modules (dry run)', ['fwk', 'publish', 'providers', '--dryRun', '--registry', 'public'])) {\n ctx.log.warn(' The provider modules would not all publish (see above); the release does not depend on them.');\n }\n ctx.log.success(` Planned release ${version}. Nothing was published.`);\n return { success: true };\n }\n\n // ── 5. Docker BEFORE npm: the published CLI names wildo-platform:<version> ──\n if (resume) {\n // Resuming: the image must really be there, or the published CLI would name one that is not.\n const missing = await this.missingPlatformImages(frameworkRoot, version);\n if (missing.length > 0) {\n ctx.log.error(`--skipDocker, but ${missing.join(', ')} is not on the registry: the published CLI would name it. Run without --skipDocker.`);\n return { success: false };\n }\n ctx.log.info(`\\n ── Docker image ── already pushed for ${version}; skipped (--skipDocker).`);\n this.reportImageProvenance(ctx, frameworkRoot, await this.platformImages(frameworkRoot, version));\n } else if (!wildo('Docker image', ['fwk', 'publish', 'docker', '--force'])) {\n // The version tag only: the `latest` alias moves in step 8, once npm `latest` has.\n return { success: false };\n }\n // ── 6. npm ──\n if (!wildo('npm packages', ['fwk', 'publish', 'npm', '--force', '--distTag', publishTag])) {\n // The image is pushed and immutable for this version; a retry must not rebuild it for ten minutes.\n ctx.log.info(` The platform image for ${version} is already pushed. Once the cause is fixed, resume with:`);\n ctx.log.info(` wildo fwk publish all --skipDocker${moveLatest ? '' : ` --distTag ${distTag}`}`);\n return { success: false };\n }\n // ── 7. wait until npm serves every package, install it clean, then make a `latest` release the default ──\n const resumeHint = ` wildo fwk publish all --skipDocker${moveLatest ? '' : ` --distTag ${distTag}`}`;\n if (!wildo(`npm: wait until ${version} is readable`, ['fwk', 'publish', 'promote', '--version', version, '--waitOnly'])) {\n // Everything is published; a resume re-publishes nothing (the npm lane skips what is there) and promotes.\n ctx.log.info(` ${version} is published${moveLatest ? ` under \"${FrameworkNpmDistTag.RELEASE_STAGING}\"` : ''}. Once npm serves it, finish with:`);\n ctx.log.info(resumeHint);\n return { success: false };\n }\n if (!this.verifyCleanInstalls(ctx, frameworkRoot, version, ctx.flags.skipInstallCheck === true)) {\n ctx.log.info(` ${version} is published${moveLatest ? ` under \"${FrameworkNpmDistTag.RELEASE_STAGING}\" and is NOT the default` : ''}. Once a fix is released, or to retry:`);\n ctx.log.info(resumeHint);\n return { success: false };\n }\n if (moveLatest && !wildo(`npm: make ${version} the default`, ['fwk', 'publish', 'promote', '--version', version, '--force'])) {\n ctx.log.info(` ${version} is published under \"${FrameworkNpmDistTag.RELEASE_STAGING}\" and installs clean. Finish with:`);\n ctx.log.info(resumeHint);\n return { success: false };\n }\n // ── 8. Docker `latest` alias and installers site, after npm `latest` ──\n if (moveLatest && !(await this.repointLatest(ctx, frameworkRoot, version))) {\n ctx.log.info(` npm \"${DEFAULT_NPM_DIST_TAG}\" is at ${version}; the Docker alias and the site are not. Once the cause is fixed, finish with:`);\n ctx.log.info(' wildo fwk publish all --skipDocker');\n return { success: false };\n }\n const siteDeployed = moveLatest && ctx.flags.skipSite !== true ? this.deploySite(ctx, frameworkRoot, false, ctx.flags.site === true) : null;\n if (siteDeployed === false) {\n ctx.log.info(` ${version} is released on npm and Docker; the installers site is not. Once the cause is fixed, finish with:`);\n ctx.log.info(' wildo fwk publish all --skipDocker');\n return { success: false };\n }\n // ── 9. provider modules, after npm `latest` (an installed module's engine imports resolve from npm) ──\n if (!moveLatest) {\n ctx.log.info(' Provider modules are published only with a release npm installs by default; this side channel leaves them alone.');\n } else if (!wildo('provider modules', ['fwk', 'publish', 'providers', '--registry', 'public'])) {\n ctx.log.warn(' Not every provider module was published (see above). npm and Docker hold the release; once the cause is fixed:');\n ctx.log.warn(' wildo fwk publish providers --registry public');\n }\n\n await this.readBack(ctx, frameworkRoot, version);\n await this.publishReceipt(ctx, frameworkRoot, version, distTag, moveLatest);\n ctx.log.success(` Released ${version}.`);\n ctx.log.info(` Application creators move to it with: wildo update${moveLatest ? '' : ` --tag ${distTag}`}`);\n return { success: true };\n } catch (error) {\n ctx.log.error(`Release failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n private git(cwd: string, args: string[]): { status: number | null; stdout: string; stderr: string } {\n const result = spawnSync('git', args, { cwd, encoding: 'utf8' });\n return { status: result.status, stdout: result.stdout ?? '', stderr: result.stderr ?? '' };\n }\n\n /** Tracked files whose working-tree or staged content differs from HEAD (untracked files never ship from git). */\n private uncommittedTrackedFiles(frameworkRoot: string): string[] {\n return this.git(frameworkRoot, ['status', '--porcelain', '--untracked-files=no'])\n .stdout.split('\\n').filter((line) => line.trim().length > 0).map((line) => line.slice(3));\n }\n\n /**\n * Commit the version, tag it and push both, before anything is built or published (#3059).\n *\n * The commit holds the files the bump changed: everything uncommitted now that was not before the bump. From a\n * clean tree that is the whole bump; with `--allowDirty`, a file that already held an edit is left out (its edit is\n * not the release's to commit) and said. A version set by hand, and not bumped here, tags HEAD as it is.\n * An existing tag is reused only when it already names HEAD: a rerun after a refused push, never another commit.\n * The push is `--atomic`, so GitHub holds both the commit and the tag, or neither.\n */\n private tagRelease(ctx: CommandContext, frameworkRoot: string, version: string, branch: string, editsBefore: string[]): boolean {\n ctx.log.info(`\\n ── commit, tag and push ${releaseTagName(version)} ──`);\n const tag = releaseTagName(version);\n const before = new Set(editsBefore);\n const bumped = this.uncommittedTrackedFiles(frameworkRoot).filter((file) => !before.has(file));\n if (bumped.length > 0) {\n const add = this.git(frameworkRoot, ['add', '--', ...bumped]);\n const commit = add.status === 0\n ? this.git(frameworkRoot, ['commit', '-m', `Framework ${version}: the version the release lane set across the framework manifests`,\n '-m', `Committed and tagged ${tag} before anything was built or published (#3059).`, '--', ...bumped])\n : add;\n if (commit.status !== 0) {\n ctx.log.error(` Could not commit the version: ${commit.stderr.trim()}. Nothing was published.`);\n return false;\n }\n if (editsBefore.length > 0) ctx.log.warn(` Committed the ${bumped.length} file(s) the bump changed; ${editsBefore.length} earlier edit(s) stay uncommitted.`);\n }\n const head = this.git(frameworkRoot, ['rev-parse', 'HEAD']).stdout.trim();\n const existing = this.git(frameworkRoot, ['rev-parse', '-q', '--verify', `refs/tags/${tag}^{commit}`]);\n if (existing.status === 0 && existing.stdout.trim() !== head) {\n ctx.log.error(` ${tag} already exists and names ${existing.stdout.trim().slice(0, 9)}, not HEAD. Nothing was published.`);\n return false;\n }\n if (existing.status !== 0) {\n const tagged = this.git(frameworkRoot, ['tag', '-a', tag, '-m', `Wildo.ai framework ${version}`]);\n if (tagged.status !== 0) {\n ctx.log.error(` Could not tag ${tag}: ${tagged.stderr.trim()}. Nothing was published.`);\n return false;\n }\n }\n const pushed = this.git(frameworkRoot, ['push', '--atomic', 'origin', `HEAD:refs/heads/${branch}`, `refs/tags/${tag}`]);\n if (pushed.status !== 0) {\n ctx.log.error(` GitHub refused the version commit and ${tag} on ${branch}: ${pushed.stderr.trim()}`);\n ctx.log.error(` Nothing was published. If ${branch} moved on GitHub: git pull --rebase, git tag -f ${tag}, then rerun.`);\n return false;\n }\n ctx.log.success(` ${tag} names ${head.slice(0, 9)}, on GitHub (${branch}); every artifact of this release is built from it.`);\n return true;\n }\n\n /**\n * Install the release on fresh machines before it becomes `latest` (#3060). Each profile is a `node:<supported major>`\n * container given only its `apt` packages, running the checkout's own `install.sh --yes --cli-version=<version>`\n * (the script `get.wildo.ai` serves once this release deploys it), then `wildo --version`, which must answer the\n * version. The installer's log is printed on a failure; nothing is kept.\n */\n private verifyCleanInstalls(ctx: CommandContext, frameworkRoot: string, version: string, skip: boolean): boolean {\n if (skip) {\n ctx.log.warn(`\\n ── clean installs ── SKIPPED (--skipInstallCheck): nothing proved that a clean machine installs ${version}.`);\n return true;\n }\n const script = join(frameworkRoot, INSTALLER_SCRIPTS_RELATIVE[0]!);\n const image = `node:${SUPPORTED_NODE_MAJOR_VERSION}-bookworm-slim`;\n for (const profile of CLEAN_INSTALL_PROFILES) {\n ctx.log.info(`\\n ── clean install: ${profile.name} (${image} + ${profile.aptPackages.join(', ')}) ──`);\n const run = [\n 'export DEBIAN_FRONTEND=noninteractive',\n `(apt-get update -qq && apt-get install -y -qq --no-install-recommends ${profile.aptPackages.join(' ')}) >/dev/null 2>&1`,\n `{ sh /tmp/install.sh --yes --cli-version=${version} >/tmp/install.log 2>&1 || { tail -40 /tmp/install.log; exit 1; }; }`,\n '\"$HOME/.local/bin/wildo\" --version',\n ].join(' && ');\n const result = spawnSync('docker', ['run', '--rm', '-v', `${script}:/tmp/install.sh:ro`, image, 'sh', '-c', run], {\n cwd: frameworkRoot,\n encoding: 'utf8',\n timeout: 20 * 60_000,\n });\n const answered = (result.stdout ?? '').trim().split('\\n').at(-1)?.trim() ?? '';\n if (result.status !== 0 || answered !== version) {\n ctx.log.error(` ${version} does not install on a clean machine (${profile.name}): ${result.status === 0 ? `wildo --version answered \"${answered}\"` : `exit ${result.status ?? 'signal'}`}.`);\n const output = `${result.stdout ?? ''}${result.stderr ?? ''}`.trim();\n if (output) ctx.log.error(output.split('\\n').slice(-25).map((line) => ` ${line}`).join('\\n'));\n return false;\n }\n ctx.log.success(` Installed ${version} (${profile.name}).`);\n }\n return true;\n }\n\n /**\n * The public receipt (#3061): a GitHub Release on the tag, holding what the registries now serve. `release.json`\n * names the commit, every npm package's integrity and every image's digest, read back from npm and Docker Hub;\n * the installers ship as assets; `SHA256SUMS` covers every asset. Never fails the release: npm and Docker hold it,\n * and a missing `gh` only costs the receipt, so the command to make it is printed instead.\n */\n private async publishReceipt(ctx: CommandContext, frameworkRoot: string, version: string, distTag: string, moveLatest: boolean): Promise<void> {\n ctx.log.info('\\n ── receipt: GitHub Release ──');\n const tag = releaseTagName(version);\n try {\n const config = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n const directory = mkdtempSync(join(tmpdir(), `wildo-release-${version}-`));\n const sha256 = (content: Buffer | string): string => createHash('sha256').update(content).digest('hex');\n const installers = INSTALLER_SCRIPTS_RELATIVE.filter((file) => existsSync(join(frameworkRoot, file))).map((file) => {\n const content = readFileSync(join(frameworkRoot, file));\n writeFileSync(join(directory, basename(file)), content);\n return { file: basename(file), sha256: sha256(content) };\n });\n const npm = (config?.publish.npm.packages ?? []).map((name) => {\n const dist = npmRegistryClient.view(`${name}@${version}`, 'dist') as { integrity?: string; shasum?: string } | null;\n return { name, version, integrity: dist?.integrity ?? null, shasum: dist?.shasum ?? null };\n });\n const docker = (await this.platformImages(frameworkRoot, version)).map(({ reference }) => {\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference, '--format', '{{json .Manifest}}'], { encoding: 'utf8' });\n let digest: string | null = null;\n try {\n digest = (JSON.parse(inspected.stdout ?? '') as { digest?: string }).digest ?? null;\n } catch {\n digest = null;\n }\n return { reference, digest };\n });\n const commit = this.git(frameworkRoot, ['rev-parse', `refs/tags/${tag}^{commit}`]).stdout.trim() || this.git(frameworkRoot, ['rev-parse', 'HEAD']).stdout.trim();\n const receipt = {\n name: 'Wildo.ai framework',\n version,\n tag,\n commit,\n repository: config?.publish.npm.repositoryUrl ?? null,\n npmDistTag: moveLatest ? FrameworkNpmDistTag.LATEST : distTag,\n releasedAt: new Date().toISOString(),\n npm,\n docker,\n installers,\n };\n writeFileSync(join(directory, 'release.json'), `${JSON.stringify(receipt, null, 2)}\\n`);\n const assets = ['release.json', ...installers.map((i) => i.file)];\n writeFileSync(join(directory, 'SHA256SUMS'), assets.map((file) => `${sha256(readFileSync(join(directory, file)))} ${file}`).join('\\n') + '\\n');\n const missingIntegrity = npm.filter((p) => !p.integrity).map((p) => p.name);\n const notes = [\n `Wildo.ai framework ${version}, built from ${commit.slice(0, 9)} (tag ${tag}).`,\n '',\n `- npm: ${npm.length} \\`@wildo-ai/*\\` packages at ${version}${moveLatest ? ' (`latest`)' : ` (\\`${distTag}\\`)`}`,\n ...docker.map((d) => `- Docker: \\`${d.reference}\\`${d.digest ? ` (\\`${d.digest}\\`)` : ''}`),\n `- Installed clean before it became the default: ${CLEAN_INSTALL_PROFILES.map((p) => p.name).join(', ')}`,\n '',\n `Install: \\`curl -fsSL https://get.wildo.ai/install.sh | sh -s -- --cli-version=${version}\\``,\n '',\n '`release.json` holds every package\\'s integrity and every image\\'s digest; `SHA256SUMS` covers the assets.',\n ].join('\\n');\n writeFileSync(join(directory, 'NOTES.md'), `${notes}\\n`);\n if (missingIntegrity.length > 0) ctx.log.warn(` npm gave no integrity for ${missingIntegrity.join(', ')}; release.json records null for them.`);\n const args = ['release', 'create', tag, '--verify-tag', '--title', `Wildo.ai framework ${version}`, '--notes-file', join(directory, 'NOTES.md'),\n ...(moveLatest ? ['--latest'] : ['--prerelease', '--latest=false']),\n ...[...assets, 'SHA256SUMS'].map((file) => join(directory, file))];\n const created = spawnSync('gh', args, { cwd: frameworkRoot, encoding: 'utf8' });\n if (created.status === 0) {\n ctx.log.success(` GitHub Release ${tag}: ${(created.stdout ?? '').trim() || 'created'}`);\n } else {\n ctx.log.warn(` No GitHub Release (${(created.stderr ?? '').trim().split('\\n')[0] || `gh exit ${created.status ?? 'signal'}`}). The release stands; make the receipt with:`);\n ctx.log.warn(` gh ${args.map((a) => (/\\s/.test(a) ? `\"${a}\"` : a)).join(' ')}`);\n }\n } catch (error) {\n ctx.log.warn(` No GitHub Release: ${ErrorUtils.extractErrorMessage(error)}. The release stands on npm and Docker Hub.`);\n }\n }\n\n private async confirmRelease(ctx: CommandContext, version: string): Promise<boolean> {\n if (ctx.flags.force === true) return true;\n if (ctx.globalFlags.nonInteractive) {\n ctx.log.error('A real release in non-interactive mode requires --force.');\n return false;\n }\n const proceed = await confirm({ message: `Publish ${version} to npm and Docker Hub? Neither can be taken back.`, default: false });\n if (!proceed) ctx.log.info('Cancelled.');\n return proceed;\n }\n\n private step(ctx: CommandContext, label: string, command: string, args: string[], cwd: string, env: NodeJS.ProcessEnv = process.env): boolean {\n ctx.log.info(`\\n ── ${label} ──`);\n const result = spawnSync(command, args, { cwd, env, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` ${label} failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Bundle the workbench with no `VITE_*` variable in the environment. Vite inlines every `VITE_*` it\n * sees into the bundle — the workbench reads `VITE_COMPANION_URL` and spreads `import.meta.env` over\n * its runtime environment — so a variable set in the publisher's shell would ship in every app\n * creator's workbench. The published bundle must fall back to its own origin, where\n * `wildo-workbench-serve` answers.\n */\n private bundleWorkbench(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── bundle the workbench ──');\n const env = Object.fromEntries(Object.entries(process.env).filter(([name]) => !name.startsWith('VITE_')));\n const result = spawnPackageManager(PackageManagerCommand.PNPM, ['--filter', WORKBENCH_PACKAGE_NAME, 'run', WORKBENCH_BUNDLE_SCRIPT], {\n cwd: frameworkRoot,\n stdio: 'inherit',\n env,\n });\n if (result.status !== 0) {\n ctx.log.error(` Workbench bundle failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Stage `@wildo-ai/assurance-cycle`'s published `dist/` (#2302): the checkout's `scripts/assurance/` and the helpers\n * they import, plus the engine evidence manifest measured for THIS release — the engine facts an application outside\n * the checkout reads, including the outcome of every engine-owned test, which is why this step takes minutes. The npm\n * lane refuses the package when its manifest names another release (`findMismatchedEngineEvidenceManifest`).\n */\n private bundleAssuranceCycle(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── stage the assurance cycle and measure its engine evidence ──');\n const result = spawnPackageManager(PackageManagerCommand.PNPM, ['--filter', ASSURANCE_CYCLE_PACKAGE, 'run', 'bundle'], { cwd: frameworkRoot, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` Assurance cycle staging failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Build the provider simulators' published `dist/` (#3047). They are a published OPT-IN package that keeps its own\n * lockfile outside the root workspace (the isolation `pnpm-workspace.yaml` records), so no dev watcher compiles them\n * and `pnpm --filter` from the root cannot name them. The step therefore runs in their own directory: a frozen install\n * from their own lockfile (which is what puts their compiler there), then their `build`. Skipping it would not ship a\n * stale package silently: the npm lane refuses a `dist/` older than its `src/`. This makes the release produce it.\n */\n private buildProviderSimulators(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── build the provider simulators ──');\n const cwd = join(frameworkRoot, PROVIDER_SIMULATORS_RELATIVE_PATH);\n for (const [label, args] of [\n ['install from their own lockfile', ['install', '--frozen-lockfile']],\n ['build', ['run', 'build']],\n ] as const) {\n const result = spawnPackageManager(PackageManagerCommand.PNPM, [...args], { cwd, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` Provider simulators ${label} failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n }\n return true;\n }\n\n /**\n * Redeploy `get.wildo.ai` only when a release changes what it serves.\n *\n * The installers are not a separate host: the marketing website's image carries them under `/get/`,\n * so the only way to ship them is `wildo-marketing deploy`, which copies `website/`, `contact-api/`\n * and the staged installers from THIS checkout, rebuilds the images on the VM and restarts the whole\n * stack. Doing that on every release (several a day) restarted the marketing site for nothing — the\n * scripts install npm's `latest`, so a new CLI needs no new script — and shipped any uncommitted\n * website edit a parallel session had in the shared checkout.\n *\n * So the release first asks `installers --check-live` whether the live scripts differ from this\n * checkout's, byte for byte, and deploys only on DIFFERENT, or when the site could not be asked (a\n * deploy is how stale installers get fixed, so not knowing leans toward it). `--site` forces a deploy;\n * `--skipSite` (checked by the caller) never deploys. The landing page's version number does not need\n * a redeploy: it reads npm's `latest` at view time (`website/src/scripts/install-version.ts`).\n *\n * This makes shipping someone else's unfinished website edit rarer, not impossible: a deploy that\n * does happen still copies the working tree. The deploy lists every uncommitted change in the trees\n * it ships before it runs (`uncommittedDeployedChanges` in the tooling), even under `--yes`.\n *\n * The deploy itself: `--yes` because the release confirmation already covered it, `--dry-run` in a dry\n * run. Its credentials live in `marketing/tooling/.env`; without that file the site is skipped with a\n * warning, louder when the installers are known to be out of date.\n *\n * @returns `null` when skipped, otherwise whether the deploy succeeded.\n */\n private deploySite(ctx: CommandContext, frameworkRoot: string, dryRun: boolean, forced: boolean): boolean | null {\n const toolingRoot = join(frameworkRoot, MARKETING_TOOLING_RELATIVE);\n let knownOutOfDate = false;\n if (!forced) {\n ctx.log.info('\\n ── installers site: compare with get.wildo.ai ──');\n const check = spawnSync(process.execPath, ['src/cli.ts', 'installers', '--check-live'], { cwd: toolingRoot, stdio: 'inherit' });\n if (check.status === LiveInstallersCheckExit.CURRENT) {\n ctx.log.info(' Installers site left alone: it already serves these installers, and they install npm latest. --site redeploys it anyway.');\n return null;\n }\n knownOutOfDate = check.status === LiveInstallersCheckExit.DIFFERENT;\n if (!knownOutOfDate) {\n ctx.log.warn(' Could not compare the installers with the live site; redeploying so they are current.');\n }\n }\n if (!existsSync(join(toolingRoot, '.env'))) {\n const config = join(MARKETING_TOOLING_RELATIVE, '.env');\n if (knownOutOfDate) ctx.log.warn(` get.wildo.ai serves OUT-OF-DATE installers, and ${config} (the site's deploy config) is missing, so it was not redeployed.`);\n else ctx.log.warn(` Installers site skipped: ${config} (the site's deploy config) is missing.`);\n return null;\n }\n return this.step(ctx, `installers site (get.wildo.ai)${dryRun ? ' (dry run)' : ''}`, process.execPath, ['src/cli.ts', 'deploy', dryRun ? '--dry-run' : '--yes'], toolingRoot);\n }\n\n /** Every configured platform image at `version`: its name, and its full registry reference. */\n private async platformImages(frameworkRoot: string, version: string): Promise<Array<{ imageName: string; reference: string }>> {\n const docker = (await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot))?.publish.docker;\n return (docker?.images ?? []).map((image) => ({\n imageName: image.imageName,\n reference: `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`,\n }));\n }\n\n private async platformImageReferences(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImages(frameworkRoot, version)).map((image) => image.reference);\n }\n\n /** The configured platform images NOT present on the registry at `version` (inspected, never pulled). */\n private async missingPlatformImages(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImageReferences(frameworkRoot, version))\n .filter((reference) => spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' }).status !== 0);\n }\n\n /**\n * Say what a resumed image was built from. `--skipDocker` proves the tag exists, not that it holds the\n * source now being published — a resume hours later ships a CLI naming an image built before other\n * sessions' platform changes. So the operator sees the image's build instant, its source revision\n * (`-dirty` when its inputs held uncommitted edits) and how many commits touched ITS INPUTS since — the\n * paths its own `.dockerignore` sends (`FrameworkDockerPublishService.imageSourcePathspecs`), not the\n * whole shared tree. Informative, not a refusal: a release whose image inputs did not move must be able\n * to resume without a rebuild.\n */\n private reportImageProvenance(ctx: CommandContext, frameworkRoot: string, images: Array<{ imageName: string; reference: string }>): void {\n for (const { imageName, reference } of images) {\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference, '--format', '{{json .Image}}'], { encoding: 'utf8' });\n let config: { created?: string; config?: { Labels?: Record<string, string> } } | undefined;\n try {\n const parsed = JSON.parse(inspected.stdout ?? '') as Record<string, unknown>;\n // A multi-platform image answers one config per platform; they share one build.\n config = ('config' in parsed ? parsed : Object.values(parsed)[0]) as typeof config;\n } catch {\n config = undefined;\n }\n const revision = config?.config?.Labels?.[FRAMEWORK_IMAGE_REVISION_LABEL];\n const built = config?.config?.Labels?.[FRAMEWORK_IMAGE_CREATED_LABEL] ?? config?.created ?? 'unknown';\n if (!revision) {\n ctx.log.warn(` ${reference}: built ${built}; it carries no source revision, so nothing can say whether it matches this checkout.`);\n continue;\n }\n const cleanRevision = revision.replace(/-dirty$/, '');\n const pathspecs = FrameworkDockerPublishService.imageSourcePathspecs(frameworkRoot, imageName) ?? ['.'];\n const since = spawnSync('git', ['rev-list', '--count', `${cleanRevision}..HEAD`, '--', ...pathspecs], { cwd: frameworkRoot, encoding: 'utf8' });\n const commits = since.status === 0 ? Number(since.stdout.trim()) : Number.NaN;\n const detail = `${reference}: built ${built} from ${revision}`;\n if (revision.endsWith('-dirty')) ctx.log.warn(` ${detail} — its inputs held uncommitted edits, so it may not match this checkout.`);\n else if (commits > 0) ctx.log.warn(` ${detail} — ${commits} commit(s) since touched its inputs; run without --skipDocker to rebuild it.`);\n else if (commits === 0) ctx.log.success(` ${detail} — no commit since has touched its inputs.`);\n else ctx.log.warn(` ${detail} — that revision is not in this checkout's history.`);\n }\n }\n\n /** Point every configured image's `latest` alias at `version` — an alias-only step, nothing is rebuilt. */\n private async repointLatest(ctx: CommandContext, frameworkRoot: string, version: string): Promise<boolean> {\n // Its own login: a resume (`--skipDocker`) never ran the push that used to log in (#3063, run 43278280537).\n try {\n await FrameworkDockerPublishService.loginToRegistry(frameworkRoot);\n } catch (error) {\n ctx.log.error(` Docker login before moving the latest alias failed: ${error instanceof Error ? error.message : String(error)}`);\n return false;\n }\n for (const reference of await this.platformImageReferences(frameworkRoot, version)) {\n const alias = reference.replace(/:[^:/]+$/, `:${DEFAULT_NPM_DIST_TAG}`);\n if (!this.step(ctx, `Docker ${alias} → ${version}`, 'docker', ['buildx', 'imagetools', 'create', '-t', alias, reference], frameworkRoot)) return false;\n }\n return true;\n }\n\n /**\n * Read the Docker release back from the registry, over the CONFIGURED images. Reported, not enforced: the push\n * already succeeded. npm needs no read-back here: step 7 does not return until npm serves every package at the\n * version, read past the local cache. (A one-shot check after the last publish used to sit here and warned\n * \"not visible yet\" on nearly every release, because npm takes minutes to make a publish readable everywhere.)\n */\n private async readBack(ctx: CommandContext, frameworkRoot: string, version: string): Promise<void> {\n const config = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n ctx.log.info('\\n ── read back ──');\n const docker = config?.publish.docker;\n for (const image of docker?.images ?? []) {\n const reference = `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`;\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' });\n const platforms = [...new Set((inspected.stdout ?? '').match(/Platform:\\s+linux\\/\\w+/g)?.map((line) => line.replace(/Platform:\\s+/, '')) ?? [])];\n if (inspected.status === 0) ctx.log.success(` Docker: ${reference} (${platforms.join(', ') || 'manifest found'})`);\n else ctx.log.warn(` Docker: could not inspect ${reference}.`);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"publish-all.command.js","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-all.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,y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AAI,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YACjJ,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;gBAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,SAAS,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,gBAAgB,GAAG,CAAC,CAAC;;gBAC/G,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,+BAA+B,SAAS,GAAG,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * `wildo fwk publish all` — release the framework in ONE command: everything an application creator\n * installs, from a framework checkout, in the order that keeps every published artifact installable.\n *\n * wildo fwk publish all # release (bumping the patch first if this version is already out)\n * wildo fwk publish all --bump minor # bump minor first\n * wildo fwk publish all --distTag next # publish under `next`; leaves `latest`, the Docker `latest` alias, the site and the provider modules alone\n * wildo fwk publish all --dryRun # compile, bundle, npm + Docker + site dry runs — nothing published\n *\n * ## The order, and why each step sits where it does\n *\n * 0. A COMMIT (#3059). A real release refuses uncommitted edits to tracked files (`--allowDirty` is the loud escape\n * hatch): what is published must be what a commit holds, or no artifact can say what it was built from. The\n * shared checkout rarely qualifies, which is what `wildo fwk release` is for: it runs this command in a fresh\n * worktree of the branch as GitHub has it (#3064).\n * 1. VERSION. A fresh release needs a version npm has never seen: if the checkout's version is already\n * published it is bumped (`--bump`, default patch) — so repeated releases need no hand edit. A RESUME\n * (`--skipDocker`) never bumps: it finishes the checkout's version, whichever step stopped it, and is\n * also how a version first tried under `next` is made `latest`.\n * \"Could not ask npm\" refuses the release: read as \"not published\" it would skip the bump and push\n * a Docker tag over an image that was already released.\n * 1b. TAG FIRST (#3059). The bump is committed (\"Framework <version>: the version the release lane set …\"), tagged\n * `v<version>` (annotated) and pushed with the tag, atomically, BEFORE anything is built or published. Every\n * artifact then names a commit on GitHub that declares its version: npm's `gitHead` and the image's revision\n * label, never `-dirty`. A push GitHub refuses (the branch moved) stops the release with nothing published.\n * A resume (`--skipDocker`) requires the tag, and publishes from it.\n * 2. `fwk generate-docs`. The compiled framework knowledge is not produced by any package build, and\n * the npm lane refuses knowledge compiled for another version (#1573).\n * 3. BUNDLE the workbench (`vite build`, its `bundle` script). It is one of the two published packages no\n * dev watcher builds, and it is deliberately not a `build` script: turbo's `build` runs on every cold CI\n * VM, where a ~55 s bundle nothing there uses would be pure cost. Built with every `VITE_*` variable\n * removed from the environment, because Vite inlines them into what every app creator downloads.\n * Then BUILD the provider simulators (#3047), the other one: they keep their own lockfile outside the\n * root workspace, so neither a watcher nor `pnpm --filter` reaches them, and the step installs from that\n * lockfile before running their `build` in their own directory.\n * 4. `fwk publish npm --dryRun`. Every npm gate (stale build, stale knowledge, licensing, closure) runs\n * HERE, before anything leaves the machine: npm and Docker publication cannot be taken back.\n * 5. `fwk publish docker`. BEFORE npm, because the published CLI names `wildo-platform:<its version>`:\n * a CLI that reached npm first would send every application creator's `local up` after an image\n * that does not exist yet. The image is built from this checkout's build output, not from npm.\n * It pushes the version tag only; the `latest` alias moves in step 8.\n * 6. `fwk publish npm`. Internally in dependency order, the CLI last. A `latest` release is published\n * under the `release-staging` dist-tag, so nothing a bare `npm install` or `wildo update` resolves\n * moves while the packages go up one at a time.\n * 7. `fwk publish promote`. Waits until npm SERVES every package at the new version (npm takes minutes\n * to make a publish readable everywhere), then, for a `latest` release, points `latest` at it. The\n * staging tag stays (npm refuses its removal with this token; the next release moves it). A package npm\n * holds as a STAGED publish awaiting 2FA approval is named with its stage id while the wait goes on, so an\n * approval given then lets the release finish (#3048). Before this, `latest` was moved package by package as each was published,\n * so `wildo-cli@latest` could name dependency versions npm could not serve yet. A side-channel\n * release (`--distTag next`) only waits.\n * 7b. CLEAN INSTALLS (#3060), between \"npm serves it\" and \"it is the default\": the checkout's own `install.sh\n * --cli-version=<version>` runs in fresh `node:<supported major>` containers, one with only what the installer\n * documents and one with a JDK, and `wildo --version` must answer the version. 1.1.11 became `latest` while a\n * machine without a JDK could not install it (#3055); a failure here stops before `latest` moves.\n * `--skipInstallCheck` is the escape hatch, and says so.\n * 8. The Docker `latest` alias and the installers site (`get.wildo.ai`), `latest` releases only, once\n * npm `latest` has moved. Without the site's deploy config (`marketing/tooling/.env`) the site is\n * skipped with a WARNING and the release still succeeds: npm and Docker hold the release, and the\n * installers install whatever npm's `latest` is.\n * 9. `fwk registry-host upgrade --imageTag <version>` (#3795), `latest` releases only: the registry SERVER moves to\n * the image just published, so it validates the provider modules with this release's manifest schema. A host not\n * configured, or an upgrade that fails, warns; the dry run inspects only.\n * Then `fwk publish providers --registry public` (#2024), `latest` releases only: the provider modules of\n * `providers-registry/` to the public module registry, under the `wildo` domain. The registry is named,\n * because left to its resolver a framework developer's shell (`WILDO_FRAMEWORK_DEVELOPER=1`) answers with the\n * LOCAL registry, and a release has one destination. AFTER npm: an installed module's `@wildo-ai/*` imports\n * resolve from npm, so the engine the modules were checked against is published before they are. Not on a\n * side channel: a stable module version moves the registry's `latest`, so the module would reach applications\n * on npm `latest` having been checked only against a `next` engine.\n * Unlike a failed site deploy, a failure here only WARNS and the release still succeeds: the registry holds versions npm does not\n * depend on, each module is published once per version, and the step is re-run alone with\n * `wildo fwk publish providers --registry public`. The dry run runs it as a dry run.\n *\n * 10. THE RECEIPT (#3061): a GitHub Release `v<version>` holding `release.json` (the commit, every npm package's\n * integrity, every image's digest, the installers' sha256), the installers themselves and `SHA256SUMS`. A\n * missing or failing `gh` only warns and prints the command: npm and Docker already hold the release.\n *\n * Each step runs as a child `wildo` invocation of the command that owns it, so every gate and log line\n * is exactly the one that command already has; this file only sequences them and stops at the first\n * failure. Every failure after the image is pushed prints the resume (`--skipDocker`, never bumps); it\n * re-publishes nothing npm has (the lane skips published packages) and promotion is idempotent.\n *\n * Not included on purpose: a full `pnpm build`. The dev watchers own every package's `dist/`, and the\n * npm lane's freshness gate names any package they left stale — run `pnpm build` then and retry.\n */\nimport { describeCaughtError } from '@wildo-ai/saas-models';\nimport { spawnSync } from 'child_process';\nimport { createHash } from 'crypto';\nimport { existsSync, mkdtempSync, readFileSync, realpathSync, writeFileSync } from 'fs';\nimport { tmpdir } from 'os';\nimport { basename, dirname, join } from 'path';\nimport { confirm } from '@inquirer/prompts';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { forwardedGlobalFlags } from '~wildo-cli/kernel/command-runner';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport {\n FrameworkVersionService,\n parseSemverBumpKind,\n SEMVER_BUMP_KINDS,\n SemverBumpKind,\n} from '~wildo-cli/services/framework/framework-version.service';\nimport {\n npmRegistryClient,\n PackageManagerCommand,\n RegistryVersionStatus,\n spawnPackageManager,\n WILDO_CLI_PACKAGE_NAME,\n WORKBENCH_PACKAGE_NAME,\n} from '~wildo-cli/services/framework/framework-update.service';\nimport {\n FRAMEWORK_IMAGE_CREATED_LABEL,\n FRAMEWORK_IMAGE_REVISION_LABEL,\n FrameworkDockerPublishService,\n} from '~wildo-cli/services/framework/framework-docker-publish.service';\nimport { FrameworkNpmDistTag } from '~wildo-cli/services/framework/framework-npm-dist-tag.service';\nimport { PROVIDER_SIMULATORS_RELATIVE_PATH } from '~wildo-cli/services/application/system-of-record-simulators.service';\nimport { loadRegistryHostConnection } from '~wildo-cli/services/framework/registry-host/registry-host.service';\nimport { SUPPORTED_NODE_MAJOR_VERSION } from '~wildo-cli/services/deployment/host-toolchain-readiness.service';\nimport { describeCliOutsideFrameworkCheckout } from '~wildo-cli/services/framework/framework-publish-cli-origin';\nimport { ASSURANCE_CYCLE_PACKAGE } from '~wildo-cli/services/assurance/assurance-cycle-location.service';\nimport { githubWarningAnnotation, RELEASE_INCOMPLETE_ANNOTATION_TITLE } from '~wildo-cli/services/framework/github-actions-annotation';\n\n/** The dist-tag an unqualified `npm install` resolves — the only tag that moves Docker `latest` and the site. */\nconst DEFAULT_NPM_DIST_TAG = FrameworkNpmDistTag.LATEST;\n\n/** The workbench script that produces its published `dist/` (see step 3 for why it is not `build`). */\nconst WORKBENCH_BUNDLE_SCRIPT = 'bundle';\n\n/** The installers a release ships (`get.wildo.ai` serves them), relative to the framework root. */\nconst INSTALLER_SCRIPTS_RELATIVE = [join('platform', 'factory', 'scripts', 'install.sh'), join('platform', 'factory', 'scripts', 'install.ps1')];\n\n/** The git tag of a release: annotated, pushed with the bump commit before anything is published (#3059). */\nexport function releaseTagName(version: string): string {\n return `v${version}`;\n}\n\n/**\n * The machines a release must install on before it becomes `latest` (#3060): fresh `node:<supported major>`\n * containers with `apt` packages on top. `minimal` is what the installer documents (curl to fetch it, nothing else);\n * the JDK profile is a machine where SAML's XSD validator compiles (#3055).\n */\nexport const CLEAN_INSTALL_PROFILES: ReadonlyArray<{ name: string; aptPackages: string[] }> = [\n { name: 'minimal', aptPackages: ['curl', 'ca-certificates'] },\n { name: 'with a JDK', aptPackages: ['curl', 'ca-certificates', 'default-jdk-headless'] },\n];\n\n/** The installers site's own CLI, relative to the framework root, and the config it deploys with. */\nconst MARKETING_TOOLING_RELATIVE = join('marketing', 'tooling');\n\n/**\n * Exit codes of `wildo-marketing installers --check-live` (`CHECK_LIVE_EXIT` in\n * `marketing/tooling/src/commands/installers.ts`, a standalone project this package cannot import —\n * a test holds the two equal). Anything that is neither CURRENT nor DIFFERENT means \"could not ask\".\n */\nexport enum LiveInstallersCheckExit {\n /** get.wildo.ai serves this checkout's installers byte for byte: redeploying would change nothing users run. */\n CURRENT = 0,\n /** A script differs or is missing on the site: users only get it through a redeploy. */\n DIFFERENT = 10,\n /** The site could not be asked; nothing is known about what it serves. */\n UNREACHABLE = 11,\n}\n\n/**\n * The directory a child `wildo` step must be LAUNCHED from: the CLI's own package directory, found from the\n * entry that started this process (the directory holding the `@wildo-ai/wildo-cli` manifest above it).\n *\n * Run from source (`wildo-dev`), the CLI is started by `tsx`, which reads the `tsconfig.json` of the directory\n * it is LAUNCHED in — the CLI package's, where the `~wildo-cli/*` alias is declared — and only then does\n * `bin/wildo.ts` move into `WILDO_INVOKE_CWD`. A step launched with `cwd: frameworkRoot` got the repository\n * root's tsconfig instead, which declares no such alias, so every step died before running:\n * `Cannot find package '~wildo-cli'`. The compiled CLI resolves nothing from its working directory, which is\n * why only `wildo-dev fwk publish all` failed. Launching every step from here and naming the framework root\n * through `WILDO_INVOKE_CWD` is the same contract `wildo-dev` itself follows, and it holds in both modes.\n *\n * Falls back to this process's working directory when no such manifest is found above the entry.\n */\nexport function resolveCliLaunchDirectory(entryPath: string): string {\n let directory = dirname(realpathSync(entryPath));\n for (;;) {\n const manifestPath = join(directory, 'package.json');\n if (existsSync(manifestPath)) {\n try {\n if ((JSON.parse(readFileSync(manifestPath, 'utf8')) as { name?: string }).name === WILDO_CLI_PACKAGE_NAME) return directory;\n } catch {\n // An unreadable manifest is not the CLI's; keep walking up.\n }\n }\n const parent = dirname(directory);\n if (parent === directory) return process.cwd();\n directory = parent;\n }\n}\n\nexport default class FwkPublishAllCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk publish all',\n description: 'Release the framework in one command: version, knowledge, workbench bundle, provider simulators build, Docker image, npm packages, installers site, provider modules',\n category: CommandCategory.Fwk,\n flags: {\n dryRun: { type: 'boolean', description: 'Plan only: compile knowledge, bundle the workbench, build the provider simulators, run the npm, Docker and site dry runs; publish nothing', default: false },\n bump: { type: 'string', description: `Bump kind when the current version is already published: ${SEMVER_BUMP_KINDS.join(', ')} (default ${SemverBumpKind.PATCH})`, default: undefined },\n distTag: { type: 'string', description: `npm dist-tag to publish under (default ${DEFAULT_NPM_DIST_TAG}); any other tag leaves Docker latest and the site alone`, default: undefined },\n skipSite: { type: 'boolean', description: 'Do not redeploy the installers site (get.wildo.ai), even when its installers are out of date', default: false },\n site: {\n type: 'boolean',\n description: 'Redeploy the installers site even when it already serves this checkout\\'s installers (it is otherwise left alone)',\n default: false,\n },\n skipDocker: {\n type: 'boolean',\n description: 'Resume a release whose platform image for this version is already pushed: skip the Docker step (refused if the image is absent)',\n default: false,\n },\n force: { type: 'boolean', description: 'Skip the confirmation before publishing', default: false },\n allowDirty: {\n type: 'boolean',\n description: 'Release although tracked files hold uncommitted edits (they ship, and every artifact says -dirty). Prefer `wildo fwk release`',\n default: false,\n },\n releaseBranch: {\n type: 'string',\n description: 'The branch the version commit and its tag are pushed to (default: the current branch; required from a detached HEAD)',\n default: undefined,\n },\n skipInstallCheck: {\n type: 'boolean',\n description: 'Make the release latest without installing it in clean containers first (says so loudly)',\n default: false,\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n // A publish, or a dry-run verdict, is only about this checkout when this checkout's own CLI runs it (#2518 review).\n // The root this command publishes from, read where its services read it.\n const cliOutsideCheckout = describeCliOutsideFrameworkCheckout(FrameworkReleaseService.getFrameworkRoot());\n if (cliOutsideCheckout) {\n ctx.log.error(cliOutsideCheckout);\n return { success: false };\n }\n const dryRun = ctx.flags.dryRun === true;\n const distTag = typeof ctx.flags.distTag === 'string' && ctx.flags.distTag.length > 0 ? ctx.flags.distTag : DEFAULT_NPM_DIST_TAG;\n const moveLatest = distTag === DEFAULT_NPM_DIST_TAG;\n const requestedBump = ctx.flags.bump === undefined ? null : parseSemverBumpKind(ctx.flags.bump);\n if (ctx.flags.bump !== undefined && requestedBump === null) {\n ctx.log.error(`--bump ${String(ctx.flags.bump)} is not one of ${SEMVER_BUMP_KINDS.join(', ')}.`);\n return { success: false };\n }\n const frameworkRoot = FrameworkReleaseService.getFrameworkRoot();\n\n try {\n // ── 1. version ──\n const current = (await FrameworkVersionService.loadFrameworkVersionState(frameworkRoot)).config.frameworkVersion;\n const currentStatus = npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, current);\n if (currentStatus === RegistryVersionStatus.UNKNOWN) {\n ctx.log.error(`Could not ask npm whether ${current} is already released (is the registry reachable?). Nothing was changed.`);\n return { success: false };\n }\n // A RESUME (`--skipDocker`) finishes the checkout's version and never bumps: whatever step stopped the release —\n // npm publish, the wait, the promotion, the Docker alias, the site — the run that finishes it must target the\n // SAME version. Whether that version is \"done\" cannot be read off npm: wildo-cli's channel tag moves before the\n // release's last steps (the side channel publishes under it; promotion moves it mid-way), so a gate reading it\n // bumped after exactly the failures it was meant to resume. The operator says it instead, and every remedy this\n // command prints carries the flag. A FRESH run bumps whenever the version is already on npm, so it never\n // re-pushes an image tag a published CLI already names.\n const resume = ctx.flags.skipDocker === true;\n if (resume && requestedBump !== null) {\n ctx.log.error('--skipDocker resumes the checkout\\'s version; it cannot be combined with --bump. Nothing was changed.');\n return { success: false };\n }\n const bumpKind = resume ? null : requestedBump ?? (currentStatus === RegistryVersionStatus.PUBLISHED ? SemverBumpKind.PATCH : null);\n const version = bumpKind ? FrameworkVersionService.bumpSemver(current, bumpKind) : current;\n if (bumpKind && npmRegistryClient.versionStatus(WILDO_CLI_PACKAGE_NAME, version) !== RegistryVersionStatus.NOT_PUBLISHED) {\n ctx.log.error(`${version} is already released, or npm could not say. Pass a larger --bump. Nothing was changed.`);\n return { success: false };\n }\n // Promotion moves `latest` by tag, which the npm lane's own prerelease guard (no dist-tag ⇒ `latest`) no longer\n // sees once the publish carries the staging tag; so the refusal is made here, before anything is published.\n if (moveLatest && version.includes('-')) {\n ctx.log.error(`${version} is a prerelease: it cannot become \"${DEFAULT_NPM_DIST_TAG}\". Pass a channel, for example --distTag next.`);\n return { success: false };\n }\n const bumpNote = bumpKind\n ? ` (${bumpKind} bump from ${current}${currentStatus === RegistryVersionStatus.PUBLISHED ? ', which is already published' : ''})`\n : resume\n ? ` (resuming ${current}: --skipDocker never bumps)`\n : '';\n ctx.log.info(` Release ${version} under npm dist-tag \"${distTag}\"${bumpNote}.`);\n if (dryRun && bumpKind) {\n // A dry run changes nothing, so it validates the checkout AS IT IS; the real run bumps first.\n ctx.log.info(` Dry run: the version stays ${current}, so the steps below validate ${current}; the real run applies the bump first.`);\n }\n\n // ── 0. a commit: what is published is what a commit holds (#3059) ──\n const allowDirty = ctx.flags.allowDirty === true;\n const editsBefore = this.uncommittedTrackedFiles(frameworkRoot);\n if (!dryRun && editsBefore.length > 0) {\n const listed = editsBefore.slice(0, 12).map((file) => ` ${file}`).join('\\n');\n const more = editsBefore.length > 12 ? `\\n … and ${editsBefore.length - 12} more` : '';\n if (!allowDirty) {\n ctx.log.error(` ${editsBefore.length} tracked file(s) hold uncommitted edits, and a release must be what a commit holds:\\n${listed}${more}`);\n ctx.log.error(' Release from the branch as GitHub has it, in a fresh worktree: wildo fwk release');\n ctx.log.error(' (--allowDirty releases these edits anyway, and every artifact will say -dirty.) Nothing was changed.');\n return { success: false };\n }\n ctx.log.warn(` --allowDirty: ${editsBefore.length} uncommitted edit(s) will ship, and the image will say -dirty:\\n${listed}${more}`);\n }\n const releaseBranch = typeof ctx.flags.releaseBranch === 'string' && ctx.flags.releaseBranch.length > 0\n ? ctx.flags.releaseBranch\n : this.git(frameworkRoot, ['branch', '--show-current']).stdout.trim();\n const tag = releaseTagName(version);\n if (!releaseBranch) {\n ctx.log.error(' HEAD is detached: pass --releaseBranch <branch>, the branch the version commit and its tag go to. Nothing was changed.');\n return { success: false };\n }\n if (resume && !dryRun && this.git(frameworkRoot, ['rev-parse', '-q', '--verify', `refs/tags/${tag}`]).status !== 0) {\n ctx.log.error(` --skipDocker resumes a release that was tagged ${tag} when it started, and there is no such tag here. Nothing was changed.`);\n return { success: false };\n }\n if (dryRun) ctx.log.info(` The real run commits the version, tags ${tag} and pushes both to origin/${releaseBranch} before publishing anything.`);\n\n if (!dryRun && !(await this.confirmRelease(ctx, version))) return { success: false };\n if (bumpKind && !dryRun) {\n await FrameworkVersionService.applyFrameworkVersion(version, frameworkRoot);\n ctx.log.success(` Version set to ${version} across the framework manifests.`);\n }\n // ── 1b. tag first: commit, tag and push before anything is built or published ──\n if (!resume && !dryRun && !this.tagRelease(ctx, frameworkRoot, version, releaseBranch, editsBefore)) return { success: false };\n\n // Launched from the CLI's own package directory and told the framework root through WILDO_INVOKE_CWD —\n // see `resolveCliLaunchDirectory` for why the step cannot simply run with `cwd: frameworkRoot`.\n const cliLaunchDirectory = resolveCliLaunchDirectory(process.argv[1]);\n const wildo = (label: string, args: string[]): boolean =>\n this.step(ctx, label, process.execPath, [...process.execArgv, process.argv[1], ...forwardedGlobalFlags({ ...ctx.globalFlags, nonInteractive: true }), ...args], cliLaunchDirectory,\n { ...process.env, WILDO_INVOKE_CWD: frameworkRoot });\n\n // ── 2–4. inputs, then every npm gate before anything leaves the machine ──\n // A dry run builds its inputs too — both are local and reversible, and the gates it runs would\n // otherwise judge whatever knowledge and workbench bundle happened to be lying around.\n if (!wildo('compile framework knowledge', ['fwk', 'generate-docs'])) return { success: false };\n if (!this.bundleWorkbench(ctx, frameworkRoot)) return { success: false };\n if (!this.bundleAssuranceCycle(ctx, frameworkRoot)) return { success: false };\n if (!this.buildProviderSimulators(ctx, frameworkRoot)) return { success: false };\n // A `latest` release is PUBLISHED under the staging tag and promoted once npm serves every package (step 7).\n const publishTag = moveLatest ? FrameworkNpmDistTag.RELEASE_STAGING : distTag;\n if (!wildo('npm gates (dry run)', ['fwk', 'publish', 'npm', '--dryRun', '--distTag', publishTag])) return { success: false };\n if (dryRun) {\n if (!wildo('Docker plan (dry run)', ['fwk', 'publish', 'docker', '--dryRun', ...(moveLatest ? ['--tagLatest'] : [])])) return { success: false };\n // A site config the dry run cannot even plan with is one the real run would fail on.\n if (moveLatest && ctx.flags.skipSite !== true && this.deploySite(ctx, frameworkRoot, true, ctx.flags.site === true) === false) return { success: false };\n if (moveLatest) this.upgradeRegistryServer(ctx, frameworkRoot, version, wildo, true);\n if (moveLatest && !wildo('provider modules (dry run)', ['fwk', 'publish', 'providers', '--dryRun', '--registry', 'public'])) {\n ctx.log.warn(' The provider modules would not all publish (see above); the release does not depend on them.');\n this.annotateIncomplete('The provider modules would not all publish; see the provider step of this run.');\n }\n ctx.log.success(` Planned release ${version}. Nothing was published.`);\n return { success: true };\n }\n\n // ── 5. Docker BEFORE npm: the published CLI names wildo-platform:<version> ──\n if (resume) {\n // Resuming: the image must really be there, or the published CLI would name one that is not.\n const missing = await this.missingPlatformImages(frameworkRoot, version);\n if (missing.length > 0) {\n ctx.log.error(`--skipDocker, but ${missing.join(', ')} is not on the registry: the published CLI would name it. Run without --skipDocker.`);\n return { success: false };\n }\n ctx.log.info(`\\n ── Docker image ── already pushed for ${version}; skipped (--skipDocker).`);\n this.reportImageProvenance(ctx, frameworkRoot, await this.platformImages(frameworkRoot, version));\n } else if (!wildo('Docker image', ['fwk', 'publish', 'docker', '--force'])) {\n // The version tag only: the `latest` alias moves in step 8, once npm `latest` has.\n return { success: false };\n }\n // ── 6. npm ──\n if (!wildo('npm packages', ['fwk', 'publish', 'npm', '--force', '--distTag', publishTag])) {\n // The image is pushed and immutable for this version; a retry must not rebuild it for ten minutes.\n ctx.log.info(` The platform image for ${version} is already pushed. Once the cause is fixed, resume with:`);\n ctx.log.info(` wildo fwk publish all --skipDocker${moveLatest ? '' : ` --distTag ${distTag}`}`);\n return { success: false };\n }\n // ── 7. wait until npm serves every package, install it clean, then make a `latest` release the default ──\n const resumeHint = ` wildo fwk publish all --skipDocker${moveLatest ? '' : ` --distTag ${distTag}`}`;\n if (!wildo(`npm: wait until ${version} is readable`, ['fwk', 'publish', 'promote', '--version', version, '--waitOnly'])) {\n // Everything is published; a resume re-publishes nothing (the npm lane skips what is there) and promotes.\n ctx.log.info(` ${version} is published${moveLatest ? ` under \"${FrameworkNpmDistTag.RELEASE_STAGING}\"` : ''}. Once npm serves it, finish with:`);\n ctx.log.info(resumeHint);\n return { success: false };\n }\n if (!this.verifyCleanInstalls(ctx, frameworkRoot, version, ctx.flags.skipInstallCheck === true)) {\n ctx.log.info(` ${version} is published${moveLatest ? ` under \"${FrameworkNpmDistTag.RELEASE_STAGING}\" and is NOT the default` : ''}. Once a fix is released, or to retry:`);\n ctx.log.info(resumeHint);\n return { success: false };\n }\n if (moveLatest && !wildo(`npm: make ${version} the default`, ['fwk', 'publish', 'promote', '--version', version, '--force'])) {\n ctx.log.info(` ${version} is published under \"${FrameworkNpmDistTag.RELEASE_STAGING}\" and installs clean. Finish with:`);\n ctx.log.info(resumeHint);\n return { success: false };\n }\n // ── 8. Docker `latest` alias and installers site, after npm `latest` ──\n if (moveLatest && !(await this.repointLatest(ctx, frameworkRoot, version))) {\n ctx.log.info(` npm \"${DEFAULT_NPM_DIST_TAG}\" is at ${version}; the Docker alias and the site are not. Once the cause is fixed, finish with:`);\n ctx.log.info(' wildo fwk publish all --skipDocker');\n return { success: false };\n }\n const siteDeployed = moveLatest && ctx.flags.skipSite !== true ? this.deploySite(ctx, frameworkRoot, false, ctx.flags.site === true) : null;\n if (siteDeployed === false) {\n ctx.log.info(` ${version} is released on npm and Docker; the installers site is not. Once the cause is fixed, finish with:`);\n ctx.log.info(' wildo fwk publish all --skipDocker');\n return { success: false };\n }\n // ── 9. the registry SERVER, then the provider modules it validates (#3795) ──\n if (moveLatest) this.upgradeRegistryServer(ctx, frameworkRoot, version, wildo, false);\n // Provider modules after npm `latest` (an installed module's engine imports resolve from npm).\n if (!moveLatest) {\n ctx.log.info(' Provider modules are published only with a release npm installs by default; this side channel leaves them alone.');\n } else if (!wildo('provider modules', ['fwk', 'publish', 'providers', '--registry', 'public'])) {\n ctx.log.warn(' Not every provider module was published (see above). npm and Docker hold the release; once the cause is fixed:');\n ctx.log.warn(' wildo fwk publish providers --registry public');\n this.annotateIncomplete(\n `${version} is on npm and Docker, but not every provider module was published (see the provider step). Once the cause is fixed: wildo fwk publish providers --registry public`,\n );\n }\n\n await this.readBack(ctx, frameworkRoot, version);\n await this.publishReceipt(ctx, frameworkRoot, version, distTag, moveLatest);\n ctx.log.success(` Released ${version}.`);\n ctx.log.info(` Application creators move to it with: wildo update${moveLatest ? '' : ` --tag ${distTag}`}`);\n return { success: true };\n } catch (error) {\n ctx.log.error(`Release failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n private git(cwd: string, args: string[]): { status: number | null; stdout: string; stderr: string } {\n const result = spawnSync('git', args, { cwd, encoding: 'utf8' });\n return { status: result.status, stdout: result.stdout ?? '', stderr: result.stderr ?? '' };\n }\n\n /** Tracked files whose working-tree or staged content differs from HEAD (untracked files never ship from git). */\n private uncommittedTrackedFiles(frameworkRoot: string): string[] {\n return this.git(frameworkRoot, ['status', '--porcelain', '--untracked-files=no'])\n .stdout.split('\\n').filter((line) => line.trim().length > 0).map((line) => line.slice(3));\n }\n\n /**\n * Commit the version, tag it and push both, before anything is built or published (#3059).\n *\n * The commit holds the files the bump changed: everything uncommitted now that was not before the bump. From a\n * clean tree that is the whole bump; with `--allowDirty`, a file that already held an edit is left out (its edit is\n * not the release's to commit) and said. A version set by hand, and not bumped here, tags HEAD as it is.\n * An existing tag is reused only when it already names HEAD: a rerun after a refused push, never another commit.\n * The push is `--atomic`, so GitHub holds both the commit and the tag, or neither.\n */\n private tagRelease(ctx: CommandContext, frameworkRoot: string, version: string, branch: string, editsBefore: string[]): boolean {\n ctx.log.info(`\\n ── commit, tag and push ${releaseTagName(version)} ──`);\n const tag = releaseTagName(version);\n const before = new Set(editsBefore);\n const bumped = this.uncommittedTrackedFiles(frameworkRoot).filter((file) => !before.has(file));\n if (bumped.length > 0) {\n const add = this.git(frameworkRoot, ['add', '--', ...bumped]);\n const commit = add.status === 0\n ? this.git(frameworkRoot, ['commit', '-m', `Framework ${version}: the version the release lane set across the framework manifests`,\n '-m', `Committed and tagged ${tag} before anything was built or published (#3059).`, '--', ...bumped])\n : add;\n if (commit.status !== 0) {\n ctx.log.error(` Could not commit the version: ${commit.stderr.trim()}. Nothing was published.`);\n return false;\n }\n if (editsBefore.length > 0) ctx.log.warn(` Committed the ${bumped.length} file(s) the bump changed; ${editsBefore.length} earlier edit(s) stay uncommitted.`);\n }\n const head = this.git(frameworkRoot, ['rev-parse', 'HEAD']).stdout.trim();\n const existing = this.git(frameworkRoot, ['rev-parse', '-q', '--verify', `refs/tags/${tag}^{commit}`]);\n if (existing.status === 0 && existing.stdout.trim() !== head) {\n ctx.log.error(` ${tag} already exists and names ${existing.stdout.trim().slice(0, 9)}, not HEAD. Nothing was published.`);\n return false;\n }\n if (existing.status !== 0) {\n const tagged = this.git(frameworkRoot, ['tag', '-a', tag, '-m', `Wildo.ai framework ${version}`]);\n if (tagged.status !== 0) {\n ctx.log.error(` Could not tag ${tag}: ${tagged.stderr.trim()}. Nothing was published.`);\n return false;\n }\n }\n const pushed = this.git(frameworkRoot, ['push', '--atomic', 'origin', `HEAD:refs/heads/${branch}`, `refs/tags/${tag}`]);\n if (pushed.status !== 0) {\n ctx.log.error(` GitHub refused the version commit and ${tag} on ${branch}: ${pushed.stderr.trim()}`);\n ctx.log.error(` Nothing was published. If ${branch} moved on GitHub: git pull --rebase, git tag -f ${tag}, then rerun.`);\n return false;\n }\n ctx.log.success(` ${tag} names ${head.slice(0, 9)}, on GitHub (${branch}); every artifact of this release is built from it.`);\n return true;\n }\n\n /**\n * Install the release on fresh machines before it becomes `latest` (#3060). Each profile is a `node:<supported major>`\n * container given only its `apt` packages, running the checkout's own `install.sh --yes --cli-version=<version>`\n * (the script `get.wildo.ai` serves once this release deploys it), then `wildo --version`, which must answer the\n * version. The installer's log is printed on a failure; nothing is kept.\n */\n private verifyCleanInstalls(ctx: CommandContext, frameworkRoot: string, version: string, skip: boolean): boolean {\n if (skip) {\n ctx.log.warn(`\\n ── clean installs ── SKIPPED (--skipInstallCheck): nothing proved that a clean machine installs ${version}.`);\n return true;\n }\n const script = join(frameworkRoot, INSTALLER_SCRIPTS_RELATIVE[0]!);\n const image = `node:${SUPPORTED_NODE_MAJOR_VERSION}-bookworm-slim`;\n for (const profile of CLEAN_INSTALL_PROFILES) {\n ctx.log.info(`\\n ── clean install: ${profile.name} (${image} + ${profile.aptPackages.join(', ')}) ──`);\n const run = [\n 'export DEBIAN_FRONTEND=noninteractive',\n `(apt-get update -qq && apt-get install -y -qq --no-install-recommends ${profile.aptPackages.join(' ')}) >/dev/null 2>&1`,\n `{ sh /tmp/install.sh --yes --cli-version=${version} >/tmp/install.log 2>&1 || { tail -40 /tmp/install.log; exit 1; }; }`,\n '\"$HOME/.local/bin/wildo\" --version',\n ].join(' && ');\n const result = spawnSync('docker', ['run', '--rm', '-v', `${script}:/tmp/install.sh:ro`, image, 'sh', '-c', run], {\n cwd: frameworkRoot,\n encoding: 'utf8',\n timeout: 20 * 60_000,\n });\n const answered = (result.stdout ?? '').trim().split('\\n').at(-1)?.trim() ?? '';\n if (result.status !== 0 || answered !== version) {\n ctx.log.error(` ${version} does not install on a clean machine (${profile.name}): ${result.status === 0 ? `wildo --version answered \"${answered}\"` : `exit ${result.status ?? 'signal'}`}.`);\n const output = `${result.stdout ?? ''}${result.stderr ?? ''}`.trim();\n if (output) ctx.log.error(output.split('\\n').slice(-25).map((line) => ` ${line}`).join('\\n'));\n return false;\n }\n ctx.log.success(` Installed ${version} (${profile.name}).`);\n }\n return true;\n }\n\n /**\n * The public receipt (#3061): a GitHub Release on the tag, holding what the registries now serve. `release.json`\n * names the commit, every npm package's integrity and every image's digest, read back from npm and Docker Hub;\n * the installers ship as assets; `SHA256SUMS` covers every asset. Never fails the release: npm and Docker hold it,\n * and a missing `gh` only costs the receipt, so the command to make it is printed instead.\n */\n private async publishReceipt(ctx: CommandContext, frameworkRoot: string, version: string, distTag: string, moveLatest: boolean): Promise<void> {\n ctx.log.info('\\n ── receipt: GitHub Release ──');\n const tag = releaseTagName(version);\n try {\n const config = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n const directory = mkdtempSync(join(tmpdir(), `wildo-release-${version}-`));\n const sha256 = (content: Buffer | string): string => createHash('sha256').update(content).digest('hex');\n const installers = INSTALLER_SCRIPTS_RELATIVE.filter((file) => existsSync(join(frameworkRoot, file))).map((file) => {\n const content = readFileSync(join(frameworkRoot, file));\n writeFileSync(join(directory, basename(file)), content);\n return { file: basename(file), sha256: sha256(content) };\n });\n const npm = (config?.publish.npm.packages ?? []).map((name) => {\n const dist = npmRegistryClient.view(`${name}@${version}`, 'dist') as { integrity?: string; shasum?: string } | null;\n return { name, version, integrity: dist?.integrity ?? null, shasum: dist?.shasum ?? null };\n });\n const docker = (await this.platformImages(frameworkRoot, version)).map(({ reference }) => {\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference, '--format', '{{json .Manifest}}'], { encoding: 'utf8' });\n let digest: string | null = null;\n try {\n digest = (JSON.parse(inspected.stdout ?? '') as { digest?: string }).digest ?? null;\n } catch {\n digest = null;\n }\n return { reference, digest };\n });\n const commit = this.git(frameworkRoot, ['rev-parse', `refs/tags/${tag}^{commit}`]).stdout.trim() || this.git(frameworkRoot, ['rev-parse', 'HEAD']).stdout.trim();\n const receipt = {\n name: 'Wildo.ai framework',\n version,\n tag,\n commit,\n repository: config?.publish.npm.repositoryUrl ?? null,\n npmDistTag: moveLatest ? FrameworkNpmDistTag.LATEST : distTag,\n releasedAt: new Date().toISOString(),\n npm,\n docker,\n installers,\n };\n writeFileSync(join(directory, 'release.json'), `${JSON.stringify(receipt, null, 2)}\\n`);\n const assets = ['release.json', ...installers.map((i) => i.file)];\n writeFileSync(join(directory, 'SHA256SUMS'), assets.map((file) => `${sha256(readFileSync(join(directory, file)))} ${file}`).join('\\n') + '\\n');\n const missingIntegrity = npm.filter((p) => !p.integrity).map((p) => p.name);\n const notes = [\n `Wildo.ai framework ${version}, built from ${commit.slice(0, 9)} (tag ${tag}).`,\n '',\n `- npm: ${npm.length} \\`@wildo-ai/*\\` packages at ${version}${moveLatest ? ' (`latest`)' : ` (\\`${distTag}\\`)`}`,\n ...docker.map((d) => `- Docker: \\`${d.reference}\\`${d.digest ? ` (\\`${d.digest}\\`)` : ''}`),\n `- Installed clean before it became the default: ${CLEAN_INSTALL_PROFILES.map((p) => p.name).join(', ')}`,\n '',\n `Install: \\`curl -fsSL https://get.wildo.ai/install.sh | sh -s -- --cli-version=${version}\\``,\n '',\n '`release.json` holds every package\\'s integrity and every image\\'s digest; `SHA256SUMS` covers the assets.',\n ].join('\\n');\n writeFileSync(join(directory, 'NOTES.md'), `${notes}\\n`);\n if (missingIntegrity.length > 0) ctx.log.warn(` npm gave no integrity for ${missingIntegrity.join(', ')}; release.json records null for them.`);\n const args = ['release', 'create', tag, '--verify-tag', '--title', `Wildo.ai framework ${version}`, '--notes-file', join(directory, 'NOTES.md'),\n ...(moveLatest ? ['--latest'] : ['--prerelease', '--latest=false']),\n ...[...assets, 'SHA256SUMS'].map((file) => join(directory, file))];\n const created = spawnSync('gh', args, { cwd: frameworkRoot, encoding: 'utf8' });\n if (created.status === 0) {\n ctx.log.success(` GitHub Release ${tag}: ${(created.stdout ?? '').trim() || 'created'}`);\n } else {\n ctx.log.warn(` No GitHub Release (${(created.stderr ?? '').trim().split('\\n')[0] || `gh exit ${created.status ?? 'signal'}`}). The release stands; make the receipt with:`);\n ctx.log.warn(` gh ${args.map((a) => (/\\s/.test(a) ? `\"${a}\"` : a)).join(' ')}`);\n }\n } catch (error) {\n ctx.log.warn(` No GitHub Release: ${ErrorUtils.extractErrorMessage(error)}. The release stands on npm and Docker Hub.`);\n }\n }\n\n private async confirmRelease(ctx: CommandContext, version: string): Promise<boolean> {\n if (ctx.flags.force === true) return true;\n if (ctx.globalFlags.nonInteractive) {\n ctx.log.error('A real release in non-interactive mode requires --force.');\n return false;\n }\n const proceed = await confirm({ message: `Publish ${version} to npm and Docker Hub? Neither can be taken back.`, default: false });\n if (!proceed) ctx.log.info('Cancelled.');\n return proceed;\n }\n\n private step(ctx: CommandContext, label: string, command: string, args: string[], cwd: string, env: NodeJS.ProcessEnv = process.env): boolean {\n ctx.log.info(`\\n ── ${label} ──`);\n const result = spawnSync(command, args, { cwd, env, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` ${label} failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Bundle the workbench with no `VITE_*` variable in the environment. Vite inlines every `VITE_*` it\n * sees into the bundle — the workbench reads `VITE_COMPANION_URL` and spreads `import.meta.env` over\n * its runtime environment — so a variable set in the publisher's shell would ship in every app\n * creator's workbench. The published bundle must fall back to its own origin, where\n * `wildo-workbench-serve` answers.\n */\n private bundleWorkbench(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── bundle the workbench ──');\n const env = Object.fromEntries(Object.entries(process.env).filter(([name]) => !name.startsWith('VITE_')));\n const result = spawnPackageManager(PackageManagerCommand.PNPM, ['--filter', WORKBENCH_PACKAGE_NAME, 'run', WORKBENCH_BUNDLE_SCRIPT], {\n cwd: frameworkRoot,\n stdio: 'inherit',\n env,\n });\n if (result.status !== 0) {\n ctx.log.error(` Workbench bundle failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Stage `@wildo-ai/assurance-cycle`'s published `dist/` (#2302): the checkout's `scripts/assurance/` and the helpers\n * they import, plus the engine evidence manifest measured for THIS release — the engine facts an application outside\n * the checkout reads, including the outcome of every engine-owned test, which is why this step takes minutes. The npm\n * lane refuses the package when its manifest names another release (`findMismatchedEngineEvidenceManifest`).\n */\n private bundleAssuranceCycle(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── stage the assurance cycle and measure its engine evidence ──');\n const result = spawnPackageManager(PackageManagerCommand.PNPM, ['--filter', ASSURANCE_CYCLE_PACKAGE, 'run', 'bundle'], { cwd: frameworkRoot, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` Assurance cycle staging failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n return true;\n }\n\n /**\n * Build the provider simulators' published `dist/` (#3047). They are a published OPT-IN package that keeps its own\n * lockfile outside the root workspace (the isolation `pnpm-workspace.yaml` records), so no dev watcher compiles them\n * and `pnpm --filter` from the root cannot name them. The step therefore runs in their own directory: a frozen install\n * from their own lockfile (which is what puts their compiler there), then their `build`. Skipping it would not ship a\n * stale package silently: the npm lane refuses a `dist/` older than its `src/`. This makes the release produce it.\n */\n /**\n * Move registry.wildo.ai's server to the image this release published, before the provider modules are sent to it\n * (#3795). The server validates each manifest with its own schema, so a module using this release's new manifest\n * vocabulary is refused by an older server: release 1.1.13 met exactly that (`OUTPUT_MODERATION`, 400 from 1.1.11).\n *\n * Like the provider step, the release does not depend on it: npm and Docker already hold the version. A host that is\n * not configured, or an upgrade that fails or needs a full `deploy`, is a warning and a run annotation, and the\n * provider step still runs (each module is judged on its own). A dry run only inspects, and says nothing when the\n * host is not configured, since a dry run holds no credentials.\n */\n private upgradeRegistryServer(ctx: CommandContext, frameworkRoot: string, version: string, wildo: (label: string, args: string[]) => boolean, dryRun: boolean): void {\n let configured: boolean;\n try {\n configured = loadRegistryHostConnection(frameworkRoot) !== null;\n } catch (error) {\n ctx.log.warn(` The registry host's connection in the framework secrets does not read: ${describeCaughtError(error)}`);\n configured = false;\n }\n const byHand = `wildo fwk registry-host upgrade --imageTag ${version}`;\n if (!configured) {\n if (dryRun) {\n ctx.log.info(' The registry host is not configured here; the real release upgrades its server before the provider modules.');\n return;\n }\n ctx.log.warn(` The registry host is not configured (moduleRegistryHost in the framework secrets), so its server keeps its image. Upgrade it with: ${byHand}`);\n this.annotateIncomplete(`The registry server was not upgraded to ${version} (no moduleRegistryHost configured): a provider module using this release's new manifest vocabulary will be refused. Run: ${byHand}`);\n return;\n }\n const args = ['fwk', 'registry-host', 'upgrade', ...(dryRun ? ['--dryRun'] : []), '--imageTag', version];\n if (wildo(`registry server${dryRun ? ' (dry run)' : ''}`, args)) return;\n ctx.log.warn(` The registry server was not ${dryRun ? 'found upgradable' : 'upgraded'} (see above); the provider modules are still sent. Once the cause is fixed: ${byHand}`);\n this.annotateIncomplete(`The registry server ${dryRun ? 'could not be upgraded' : 'was not upgraded'} to ${version} (see the registry server step). Once the cause is fixed: ${byHand}`);\n }\n\n /** Raise `message` as a run annotation under GitHub Actions (see `githubWarningAnnotation`); a no-op elsewhere. */\n private annotateIncomplete(message: string): void {\n const annotation = githubWarningAnnotation(RELEASE_INCOMPLETE_ANNOTATION_TITLE, message);\n if (annotation !== null) process.stdout.write(`${annotation}\\n`);\n }\n\n private buildProviderSimulators(ctx: CommandContext, frameworkRoot: string): boolean {\n ctx.log.info('\\n ── build the provider simulators ──');\n const cwd = join(frameworkRoot, PROVIDER_SIMULATORS_RELATIVE_PATH);\n for (const [label, args] of [\n ['install from their own lockfile', ['install', '--frozen-lockfile']],\n ['build', ['run', 'build']],\n ] as const) {\n const result = spawnPackageManager(PackageManagerCommand.PNPM, [...args], { cwd, stdio: 'inherit' });\n if (result.status !== 0) {\n ctx.log.error(` Provider simulators ${label} failed (exit ${result.status ?? 'signal'}); the release stopped here.`);\n return false;\n }\n }\n return true;\n }\n\n /**\n * Redeploy `get.wildo.ai` only when a release changes what it serves.\n *\n * The installers are not a separate host: the marketing website's image carries them under `/get/`,\n * so the only way to ship them is `wildo-marketing deploy`, which copies `website/`, `contact-api/`\n * and the staged installers from THIS checkout, rebuilds the images on the VM and restarts the whole\n * stack. Doing that on every release (several a day) restarted the marketing site for nothing — the\n * scripts install npm's `latest`, so a new CLI needs no new script — and shipped any uncommitted\n * website edit a parallel session had in the shared checkout.\n *\n * So the release first asks `installers --check-live` whether the live scripts differ from this\n * checkout's, byte for byte, and deploys only on DIFFERENT, or when the site could not be asked (a\n * deploy is how stale installers get fixed, so not knowing leans toward it). `--site` forces a deploy;\n * `--skipSite` (checked by the caller) never deploys. The landing page's version number does not need\n * a redeploy: it reads npm's `latest` at view time (`website/src/scripts/install-version.ts`).\n *\n * This makes shipping someone else's unfinished website edit rarer, not impossible: a deploy that\n * does happen still copies the working tree. The deploy lists every uncommitted change in the trees\n * it ships before it runs (`uncommittedDeployedChanges` in the tooling), even under `--yes`.\n *\n * The deploy itself: `--yes` because the release confirmation already covered it, `--dry-run` in a dry\n * run. Its credentials live in `marketing/tooling/.env`; without that file the site is skipped with a\n * warning, louder when the installers are known to be out of date.\n *\n * @returns `null` when skipped, otherwise whether the deploy succeeded.\n */\n private deploySite(ctx: CommandContext, frameworkRoot: string, dryRun: boolean, forced: boolean): boolean | null {\n const toolingRoot = join(frameworkRoot, MARKETING_TOOLING_RELATIVE);\n let knownOutOfDate = false;\n if (!forced) {\n ctx.log.info('\\n ── installers site: compare with get.wildo.ai ──');\n const check = spawnSync(process.execPath, ['src/cli.ts', 'installers', '--check-live'], { cwd: toolingRoot, stdio: 'inherit' });\n if (check.status === LiveInstallersCheckExit.CURRENT) {\n ctx.log.info(' Installers site left alone: it already serves these installers, and they install npm latest. --site redeploys it anyway.');\n return null;\n }\n knownOutOfDate = check.status === LiveInstallersCheckExit.DIFFERENT;\n if (!knownOutOfDate) {\n ctx.log.warn(' Could not compare the installers with the live site; redeploying so they are current.');\n }\n }\n if (!existsSync(join(toolingRoot, '.env'))) {\n const config = join(MARKETING_TOOLING_RELATIVE, '.env');\n if (knownOutOfDate) ctx.log.warn(` get.wildo.ai serves OUT-OF-DATE installers, and ${config} (the site's deploy config) is missing, so it was not redeployed.`);\n else ctx.log.warn(` Installers site skipped: ${config} (the site's deploy config) is missing.`);\n return null;\n }\n return this.step(ctx, `installers site (get.wildo.ai)${dryRun ? ' (dry run)' : ''}`, process.execPath, ['src/cli.ts', 'deploy', dryRun ? '--dry-run' : '--yes'], toolingRoot);\n }\n\n /** Every configured platform image at `version`: its name, and its full registry reference. */\n private async platformImages(frameworkRoot: string, version: string): Promise<Array<{ imageName: string; reference: string }>> {\n const docker = (await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot))?.publish.docker;\n return (docker?.images ?? []).map((image) => ({\n imageName: image.imageName,\n reference: `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`,\n }));\n }\n\n private async platformImageReferences(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImages(frameworkRoot, version)).map((image) => image.reference);\n }\n\n /** The configured platform images NOT present on the registry at `version` (inspected, never pulled). */\n private async missingPlatformImages(frameworkRoot: string, version: string): Promise<string[]> {\n return (await this.platformImageReferences(frameworkRoot, version))\n .filter((reference) => spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' }).status !== 0);\n }\n\n /**\n * Say what a resumed image was built from. `--skipDocker` proves the tag exists, not that it holds the\n * source now being published — a resume hours later ships a CLI naming an image built before other\n * sessions' platform changes. So the operator sees the image's build instant, its source revision\n * (`-dirty` when its inputs held uncommitted edits) and how many commits touched ITS INPUTS since — the\n * paths its own `.dockerignore` sends (`FrameworkDockerPublishService.imageSourcePathspecs`), not the\n * whole shared tree. Informative, not a refusal: a release whose image inputs did not move must be able\n * to resume without a rebuild.\n */\n private reportImageProvenance(ctx: CommandContext, frameworkRoot: string, images: Array<{ imageName: string; reference: string }>): void {\n for (const { imageName, reference } of images) {\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference, '--format', '{{json .Image}}'], { encoding: 'utf8' });\n let config: { created?: string; config?: { Labels?: Record<string, string> } } | undefined;\n try {\n const parsed = JSON.parse(inspected.stdout ?? '') as Record<string, unknown>;\n // A multi-platform image answers one config per platform; they share one build.\n config = ('config' in parsed ? parsed : Object.values(parsed)[0]) as typeof config;\n } catch {\n config = undefined;\n }\n const revision = config?.config?.Labels?.[FRAMEWORK_IMAGE_REVISION_LABEL];\n const built = config?.config?.Labels?.[FRAMEWORK_IMAGE_CREATED_LABEL] ?? config?.created ?? 'unknown';\n if (!revision) {\n ctx.log.warn(` ${reference}: built ${built}; it carries no source revision, so nothing can say whether it matches this checkout.`);\n continue;\n }\n const cleanRevision = revision.replace(/-dirty$/, '');\n const pathspecs = FrameworkDockerPublishService.imageSourcePathspecs(frameworkRoot, imageName) ?? ['.'];\n const since = spawnSync('git', ['rev-list', '--count', `${cleanRevision}..HEAD`, '--', ...pathspecs], { cwd: frameworkRoot, encoding: 'utf8' });\n const commits = since.status === 0 ? Number(since.stdout.trim()) : Number.NaN;\n const detail = `${reference}: built ${built} from ${revision}`;\n if (revision.endsWith('-dirty')) ctx.log.warn(` ${detail} — its inputs held uncommitted edits, so it may not match this checkout.`);\n else if (commits > 0) ctx.log.warn(` ${detail} — ${commits} commit(s) since touched its inputs; run without --skipDocker to rebuild it.`);\n else if (commits === 0) ctx.log.success(` ${detail} — no commit since has touched its inputs.`);\n else ctx.log.warn(` ${detail} — that revision is not in this checkout's history.`);\n }\n }\n\n /** Point every configured image's `latest` alias at `version` — an alias-only step, nothing is rebuilt. */\n private async repointLatest(ctx: CommandContext, frameworkRoot: string, version: string): Promise<boolean> {\n // Its own login: a resume (`--skipDocker`) never ran the push that used to log in (#3063, run 43278280537).\n try {\n await FrameworkDockerPublishService.loginToRegistry(frameworkRoot);\n } catch (error) {\n ctx.log.error(` Docker login before moving the latest alias failed: ${describeCaughtError(error)}`);\n return false;\n }\n for (const reference of await this.platformImageReferences(frameworkRoot, version)) {\n const alias = reference.replace(/:[^:/]+$/, `:${DEFAULT_NPM_DIST_TAG}`);\n if (!this.step(ctx, `Docker ${alias} → ${version}`, 'docker', ['buildx', 'imagetools', 'create', '-t', alias, reference], frameworkRoot)) return false;\n }\n return true;\n }\n\n /**\n * Read the Docker release back from the registry, over the CONFIGURED images. Reported, not enforced: the push\n * already succeeded. npm needs no read-back here: step 7 does not return until npm serves every package at the\n * version, read past the local cache. (A one-shot check after the last publish used to sit here and warned\n * \"not visible yet\" on nearly every release, because npm takes minutes to make a publish readable everywhere.)\n */\n private async readBack(ctx: CommandContext, frameworkRoot: string, version: string): Promise<void> {\n const config = await FrameworkReleaseService.loadFrameworkConfig(frameworkRoot);\n ctx.log.info('\\n ── read back ──');\n const docker = config?.publish.docker;\n for (const image of docker?.images ?? []) {\n const reference = `${docker?.registryHost}/${docker?.namespace}/${image.imageName}:${version}`;\n const inspected = spawnSync('docker', ['buildx', 'imagetools', 'inspect', reference], { encoding: 'utf8' });\n const platforms = [...new Set((inspected.stdout ?? '').match(/Platform:\\s+linux\\/\\w+/g)?.map((line) => line.replace(/Platform:\\s+/, '')) ?? [])];\n if (inspected.status === 0) ctx.log.success(` Docker: ${reference} (${platforms.join(', ') || 'manifest found'})`);\n else ctx.log.warn(` Docker: could not inspect ${reference}.`);\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"publish-docker.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-docker.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAgB1F,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,WAAW;IAC9D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAYxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;YAsDxC,cAAc;CAqB7B"}
1
+ {"version":3,"file":"publish-docker.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-docker.command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAiB1F,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,WAAW;IAC9D,QAAQ,CAAC,IAAI,EAAE,WAAW,CAYxB;IAEI,GAAG,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;YAiExC,cAAc;CAqB7B"}
@@ -1,7 +1,8 @@
1
1
  import { confirm } from '@inquirer/prompts';
2
2
  import { BaseCommand } from '../../kernel/base-command.js';
3
3
  import { CommandCategory } from '../../kernel/types.js';
4
- import { FrameworkDockerPublishService } from '../../services/framework/framework-docker-publish.service.js';
4
+ import { FrameworkDockerPublishService, FrameworkImageSignatureOutcome } from '../../services/framework/framework-docker-publish.service.js';
5
+ import { githubWarningAnnotation, RELEASE_INCOMPLETE_ANNOTATION_TITLE } from '../../services/framework/github-actions-annotation.js';
5
6
  import { FrameworkReleaseService } from '../../services/framework/framework-release.service.js';
6
7
  import { describeCliOutsideFrameworkCheckout } from '../../services/framework/framework-publish-cli-origin.js';
7
8
  function parseTargets(raw) {
@@ -67,6 +68,20 @@ export default class FwkPublishDockerCommand extends BaseCommand {
67
68
  ctx.log.info(` dockerfile: ${target.dockerfilePath}`);
68
69
  ctx.log.info(` context: ${target.buildContextPath}`);
69
70
  ctx.log.info(` commands: ${target.commands.join(' && ')}`);
71
+ if (target.digest)
72
+ ctx.log.info(` digest: ${target.digest}`);
73
+ // #3063: a signature the environment asked for and could not be made does not stop the release (the image is
74
+ // already public), so it is raised where the release's report reads it: a run annotation, beside the log line.
75
+ if (target.signature?.outcome === FrameworkImageSignatureOutcome.SIGNED) {
76
+ ctx.log.info(' signature: signed and verified (cosign, keyless, by digest, against this workflow\'s identity)');
77
+ }
78
+ else if (target.signature?.outcome === FrameworkImageSignatureOutcome.FAILED) {
79
+ const message = `The image ${target.imageRef} is published UNSIGNED: ${target.signature.reason}`;
80
+ ctx.log.warn(` signature: ${message}`);
81
+ const annotation = githubWarningAnnotation(RELEASE_INCOMPLETE_ANNOTATION_TITLE, message);
82
+ if (annotation !== null)
83
+ process.stdout.write(`${annotation}\n`);
84
+ }
70
85
  }
71
86
  if (dryRun) {
72
87
  ctx.log.success(`Planned Docker publish for ${result.targets.length} image(s).`);
@@ -1 +1 @@
1
- {"version":3,"file":"publish-docker.command.js","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-docker.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,E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mB,CAAC,CAAC;QACzE,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,GAAmB,EAAE,KAAc;QAC9D,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,GAAG,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC;YACnC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YAC/E,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC;YAC5B,OAAO,EAAE,yDAAyD;YAClE,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAC3B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["import { confirm } from '@inquirer/prompts';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { FrameworkDockerPublishService } from '~wildo-cli/services/framework/framework-docker-publish.service';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport { describeCliOutsideFrameworkCheckout } from '~wildo-cli/services/framework/framework-publish-cli-origin';\n\nfunction parseTargets(raw: unknown): string[] | undefined {\n if (typeof raw !== 'string' || raw.trim().length === 0) {\n return undefined;\n }\n\n return raw\n .split(',')\n .map((entry) => entry.trim())\n .filter((entry) => entry.length > 0);\n}\n\nexport default class FwkPublishDockerCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk publish docker',\n description: 'Build and publish framework platform Docker images',\n category: CommandCategory.Fwk,\n flags: {\n dryRun: { type: 'boolean', description: 'Preview Docker publish actions without executing them', default: false },\n target: { type: 'string', description: 'Comma-separated Docker image names to publish', default: undefined },\n tagLatest: { type: 'boolean', description: 'Also repoint the \"latest\" alias at the pushed images (sugar for --aliasTag latest)', default: false },\n aliasTag: { type: 'string', description: 'Comma-separated mutable aliases to repoint after every immutable push succeeds (e.g. test,next)', default: undefined },\n immutableTag: { type: 'string', description: 'Immutable tag to publish under instead of the framework version (e.g. test-<sha>)', default: undefined },\n force: { type: 'boolean', description: 'Skip confirmation before real Docker publish', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n // A publish, or a dry-run verdict, is only about this checkout when this checkout's own CLI runs it (#2518 review).\n // The root this command publishes from, read where its services read it.\n const cliOutsideCheckout = describeCliOutsideFrameworkCheckout(FrameworkReleaseService.getFrameworkRoot());\n if (cliOutsideCheckout) {\n ctx.log.error(cliOutsideCheckout);\n return { success: false };\n }\n const dryRun = ctx.flags.dryRun === true;\n const force = ctx.flags.force === true;\n\n if (!dryRun) {\n const canProceed = await this.confirmPublish(ctx, force);\n if (!canProceed) {\n return { success: false };\n }\n }\n\n const result = await FrameworkDockerPublishService.publishImages({\n dryRun,\n /**\n * `--tagLatest` is CLI sugar that folds into the single `aliasTags`\n * representation, so the service never has two ways to express one alias.\n */\n aliasTags: [\n ...(ctx.flags.tagLatest === true ? ['latest'] : []),\n ...parseTargets(ctx.flags.aliasTag) ?? [],\n ],\n immutableTag: typeof ctx.flags.immutableTag === 'string' ? ctx.flags.immutableTag : undefined,\n targets: parseTargets(ctx.flags.target),\n });\n\n ctx.log.info(`Framework version: ${result.frameworkVersion}`);\n ctx.log.info(`Docker namespace: ${result.namespace}`);\n for (const target of result.targets) {\n ctx.log.info(`- ${target.imageName}`);\n ctx.log.info(` image: ${target.imageRef}`);\n for (const aliasRef of target.aliasImageRefs) {\n ctx.log.info(` alias: ${aliasRef}`);\n }\n ctx.log.info(` dockerfile: ${target.dockerfilePath}`);\n ctx.log.info(` context: ${target.buildContextPath}`);\n ctx.log.info(` commands: ${target.commands.join(' && ')}`);\n }\n\n if (dryRun) {\n ctx.log.success(`Planned Docker publish for ${result.targets.length} image(s).`);\n } else {\n ctx.log.success(`Published ${result.targets.length} Docker image(s).`);\n }\n\n return { success: true };\n }\n\n private async confirmPublish(ctx: CommandContext, force: boolean): Promise<boolean> {\n if (force) {\n return true;\n }\n\n if (ctx.globalFlags.nonInteractive) {\n ctx.log.error('Real Docker publish in non-interactive mode requires --force.');\n return false;\n }\n\n const proceed = await confirm({\n message: 'Build and publish the selected framework Docker images?',\n default: false,\n });\n if (!proceed) {\n ctx.log.info('Cancelled.');\n return false;\n }\n\n return true;\n }\n}\n"]}
1
+ {"version":3,"file":"publish-docker.command.js","sourceRoot":"","sources":["../../../../src/commands/fwk/publish-docker.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAC/I,OAAO,EAAE,uBAAuB,EAAE,mCAAmC,EAAE,MAAM,yDAAyD,CAAC;AACvI,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,4DAA4D,CAAC;AAEjH,SAAS,YAAY,CAAC,GAAY;IAChC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACvD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,GAAG;SACP,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;SAC5B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,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,EAAE,CAAC;YACX,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,8BAA8B,MAAM,CAAC,OAAO,CAAC,MAAM,YAAY,CAAC,CAAC;QACnF,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,aAAa,MAAM,CAAC,OAAO,CAAC,MAAM,mBAAmB,CAAC,CAAC;QACzE,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,cAAc,CAAC,GAAmB,EAAE,KAAc;QAC9D,IAAI,KAAK,EAAE,CAAC;YACV,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,GAAG,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC;YACnC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,+DAA+D,CAAC,CAAC;YAC/E,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC;YAC5B,OAAO,EAAE,yDAAyD;YAClE,OAAO,EAAE,KAAK;SACf,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YAC3B,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF","sourcesContent":["import { confirm } from '@inquirer/prompts';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport { FrameworkDockerPublishService, FrameworkImageSignatureOutcome } from '~wildo-cli/services/framework/framework-docker-publish.service';\nimport { githubWarningAnnotation, RELEASE_INCOMPLETE_ANNOTATION_TITLE } from '~wildo-cli/services/framework/github-actions-annotation';\nimport { FrameworkReleaseService } from '~wildo-cli/services/framework/framework-release.service';\nimport { describeCliOutsideFrameworkCheckout } from '~wildo-cli/services/framework/framework-publish-cli-origin';\n\nfunction parseTargets(raw: unknown): string[] | undefined {\n if (typeof raw !== 'string' || raw.trim().length === 0) {\n return undefined;\n }\n\n return raw\n .split(',')\n .map((entry) => entry.trim())\n .filter((entry) => entry.length > 0);\n}\n\nexport default class FwkPublishDockerCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'fwk publish docker',\n description: 'Build and publish framework platform Docker images',\n category: CommandCategory.Fwk,\n flags: {\n dryRun: { type: 'boolean', description: 'Preview Docker publish actions without executing them', default: false },\n target: { type: 'string', description: 'Comma-separated Docker image names to publish', default: undefined },\n tagLatest: { type: 'boolean', description: 'Also repoint the \"latest\" alias at the pushed images (sugar for --aliasTag latest)', default: false },\n aliasTag: { type: 'string', description: 'Comma-separated mutable aliases to repoint after every immutable push succeeds (e.g. test,next)', default: undefined },\n immutableTag: { type: 'string', description: 'Immutable tag to publish under instead of the framework version (e.g. test-<sha>)', default: undefined },\n force: { type: 'boolean', description: 'Skip confirmation before real Docker publish', default: false },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n // A publish, or a dry-run verdict, is only about this checkout when this checkout's own CLI runs it (#2518 review).\n // The root this command publishes from, read where its services read it.\n const cliOutsideCheckout = describeCliOutsideFrameworkCheckout(FrameworkReleaseService.getFrameworkRoot());\n if (cliOutsideCheckout) {\n ctx.log.error(cliOutsideCheckout);\n return { success: false };\n }\n const dryRun = ctx.flags.dryRun === true;\n const force = ctx.flags.force === true;\n\n if (!dryRun) {\n const canProceed = await this.confirmPublish(ctx, force);\n if (!canProceed) {\n return { success: false };\n }\n }\n\n const result = await FrameworkDockerPublishService.publishImages({\n dryRun,\n /**\n * `--tagLatest` is CLI sugar that folds into the single `aliasTags`\n * representation, so the service never has two ways to express one alias.\n */\n aliasTags: [\n ...(ctx.flags.tagLatest === true ? ['latest'] : []),\n ...parseTargets(ctx.flags.aliasTag) ?? [],\n ],\n immutableTag: typeof ctx.flags.immutableTag === 'string' ? ctx.flags.immutableTag : undefined,\n targets: parseTargets(ctx.flags.target),\n });\n\n ctx.log.info(`Framework version: ${result.frameworkVersion}`);\n ctx.log.info(`Docker namespace: ${result.namespace}`);\n for (const target of result.targets) {\n ctx.log.info(`- ${target.imageName}`);\n ctx.log.info(` image: ${target.imageRef}`);\n for (const aliasRef of target.aliasImageRefs) {\n ctx.log.info(` alias: ${aliasRef}`);\n }\n ctx.log.info(` dockerfile: ${target.dockerfilePath}`);\n ctx.log.info(` context: ${target.buildContextPath}`);\n ctx.log.info(` commands: ${target.commands.join(' && ')}`);\n if (target.digest) ctx.log.info(` digest: ${target.digest}`);\n // #3063: a signature the environment asked for and could not be made does not stop the release (the image is\n // already public), so it is raised where the release's report reads it: a run annotation, beside the log line.\n if (target.signature?.outcome === FrameworkImageSignatureOutcome.SIGNED) {\n ctx.log.info(' signature: signed and verified (cosign, keyless, by digest, against this workflow\\'s identity)');\n } else if (target.signature?.outcome === FrameworkImageSignatureOutcome.FAILED) {\n const message = `The image ${target.imageRef} is published UNSIGNED: ${target.signature.reason}`;\n ctx.log.warn(` signature: ${message}`);\n const annotation = githubWarningAnnotation(RELEASE_INCOMPLETE_ANNOTATION_TITLE, message);\n if (annotation !== null) process.stdout.write(`${annotation}\\n`);\n }\n }\n\n if (dryRun) {\n ctx.log.success(`Planned Docker publish for ${result.targets.length} image(s).`);\n } else {\n ctx.log.success(`Published ${result.targets.length} Docker image(s).`);\n }\n\n return { success: true };\n }\n\n private async confirmPublish(ctx: CommandContext, force: boolean): Promise<boolean> {\n if (force) {\n return true;\n }\n\n if (ctx.globalFlags.nonInteractive) {\n ctx.log.error('Real Docker publish in non-interactive mode requires --force.');\n return false;\n }\n\n const proceed = await confirm({\n message: 'Build and publish the selected framework Docker images?',\n default: false,\n });\n if (!proceed) {\n ctx.log.info('Cancelled.');\n return false;\n }\n\n return true;\n }\n}\n"]}
@@ -6,12 +6,30 @@ export declare enum RegistryHostAction {
6
6
  STATUS = "status",
7
7
  KEY = "key",
8
8
  BACKUP = "backup",
9
- RESTORE_CHECK = "restore-check"
9
+ RESTORE_CHECK = "restore-check",
10
+ /** Move the running platform image, after a backup; the step a release runs before the provider modules (#3795). */
11
+ UPGRADE = "upgrade",
12
+ /** Install (or with `--revoke`, remove) the release's deploy key, restricted to the upgrade script (#3795). */
13
+ AUTHORIZE_CI = "authorize-ci"
10
14
  }
11
15
  export default class FwkRegistryHostCommand extends BaseCommand {
12
16
  readonly meta: CommandMeta;
13
17
  run(ctx: CommandContext): Promise<CommandResult>;
14
18
  private deploy;
19
+ /**
20
+ * Move the running platform image to `--imageTag` (default: this framework version), after a backup taken on the host
21
+ * (#3795). Only the image moves: when this checkout would deploy a different compose file, Caddyfile or upgrade script,
22
+ * or a `.env` variable the host lacks, it refuses and names `deploy`, because the image alone would run against a
23
+ * configuration written for another release. The host does the work in `upgrade-image.sh`, so this runs the same way
24
+ * from an operator's key and from the release's restricted one.
25
+ */
26
+ private upgrade;
27
+ /**
28
+ * Install the release's deploy key, or remove it with `--revoke` (#3795). The key is restricted on the host itself
29
+ * (`command="…upgrade-image.sh",restrict`), so whoever holds it can move the registry to a published release image and
30
+ * do nothing else: no shell, no forwarding, no other file. Authorizing again replaces the key.
31
+ */
32
+ private authorizeCi;
15
33
  /**
16
34
  * Install the nightly backup and ensure its Better Stack monitoring, when both are configured. Without them the
17
35
  * registry still runs, and this says so plainly rather than pretending a backup exists.
@@ -1 +1 @@
1
- {"version":3,"file":"registry-host.command.d.ts","sourceRoot":"","sources":["../../../../src/commands/fwk/registry-host.command.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAuC1F,gDAAgD;AAChD,oBAAY,kBAAkB;IAC5B,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,aAAa,kBAAkB;CA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