@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":"init.command.js","sourceRoot":"","sources":["../../../src/commands/init.command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,2BAA2B,EAAiC,MAAM,kEAAkE,CAAC;AAC9I,OAAO,EAAE,kCAAkC,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAChJ,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EA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AAgC,CACnC,CAAC;YACF,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * init — Create a new Wildo targeted app (`wildo.saas.config.ts`).\n *\n * Uses prompt() for interactive flow with automatic flag resolution:\n * --name, --runtime, --database skip the corresponding prompts.\n *\n * Side effects:\n * 1. Writes `wildo.saas.config.ts` via `SaasScaffoldService`\n * 2. Registers a default 'local' environment in EnvironmentRegistry\n * with the chosen runtime + database\n * 3. Provisions that environment's `secrets.json` (issue #155)\n *\n * On (3): `secrets.json` is PER-APPLICATION, and before #155 nothing on the app-creator\n * path ever wrote one — `wildo setup` was the sole minter and it fail-closes without a\n * framework checkout, which an app created outside the monorepo does not have. The result\n * was `wildo config sync` failing its `env-files` phase with \"No secrets for 'local'. Run\n * 'wildo init' first.\" at the end of a run of `wildo init`, and the companion then dying on\n * a NaN `PORT`. Init now mints them, so that message is true.\n *\n * It is IDEMPOTENT, deliberately: minting routes through the same additive\n * `provisionFrameworkManagedSecrets` registry that the self-heal paths use, so re-running\n * `wildo init` over an existing app backfills any newly-declared material and rotates\n * NOTHING — re-minting a live credential would orphan the Mongo/Valkey data it protects.\n * A re-run also never re-asks for the administrator: the identity is already on disk.\n *\n * Supports --check to verify tools only (profile-aware: K8s tools\n * checked only when the active environment uses a K8s runtime).\n */\n\nimport { establishCreationEssentials, type CreationEssentialsResult } from '~wildo-cli/modules/domain/credentials/creation-essentials.module';\nimport { readLocalApplicationSecretPresence, updateLocalApplicationSecrets } from '~wildo-cli/services/credentials/local-secrets-store.service';\nimport chalk from 'chalk';\nimport { execFileSync } from 'child_process';\nimport { existsSync, mkdtempSync, realpathSync, rmSync } from 'fs';\nimport { tmpdir } from 'os';\nimport { basename, dirname, join, relative, resolve as resolvePath } from 'path';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport {\n InitFlag,\n SCAFFOLD_LOCK_SECTION_KEY,\n ScaffoldLockSectionSchema,\n WORKSPACE_CONFIG_NAMES,\n withLockfileSectionMutate,\n type BlueprintDeclarationTarget,\n type BlueprintParameterValue,\n} from '@wildo-ai/platform-config-lib';\nimport { readBlueprintArtifact, type LoadedBlueprintArtifact } from '~wildo-cli/services/blueprint/blueprint-artifact.service';\nimport { acquireRegistryBlueprint, isRegistryBlueprintSpec } from '~wildo-cli/services/blueprint/blueprint-registry.service';\nimport { acquireBlueprintModuleReferences, installBlueprintModuleReferences } from '~wildo-cli/services/blueprint/blueprint-module-references.service';\nimport { assertBlueprintLine, recordBlueprintLineAnswer, resolveBlueprintLine, type ResolvedBlueprintLine } from '~wildo-cli/services/blueprint/blueprint-line.service';\nimport { frameworkBlueprintId, resolveFrameworkBlueprint } from '~wildo-cli/services/blueprint/framework-blueprint-catalog.service';\nimport { ApplicationLine } from '@wildo-ai/saas-specifications/application-creation';\nimport type { AcquiredModule } from '~wildo-cli/services/registry/module-install.service';\nimport { RegistryCredentialsService } from '~wildo-cli/services/registry/registry-credentials.service';\nimport { resolveRegistryUrlForCommand } from '~wildo-cli/services/registry/registry-command.utils';\nimport {\n applyBlueprintLayer,\n buildScaffoldRecord,\n parseBlueprintParamAssignments,\n resolveBlueprintChain,\n resolveBlueprintInitFlags,\n resolveBlueprintParameters,\n type ResolvedBlueprintInitFlags,\n} from '~wildo-cli/services/blueprint/blueprint-apply.service';\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\nimport { parseSchemaPlanLockfile } from '@wildo-ai/saas-backend-lib';\nimport { computeCurrentLockfileJson } from '~wildo-cli/commands/db/db-schema-plan.utils';\nimport { writeSchemaPlanMigration } from '~wildo-cli/commands/db/db-schema-plan-migration.utils';\nimport { SaasScaffoldService } from '~wildo-cli/services/application/saas-scaffold.service';\nimport { SaasSkeletonService, SkeletonMode } from '~wildo-cli/services/application/saas-skeleton.service';\nimport type { SaasSkeletonMaterializedContext, SaasSkeletonOptions, SaasSkeletonResult } from '~wildo-cli/services/application/saas-skeleton.service';\nimport { installValidationWorkflow } from '~wildo-cli/services/deployment/ci-workflow-generator.service';\nimport { SUPPORTED_NODE_MAJOR_VERSION } from '~wildo-cli/services/deployment/host-toolchain-readiness.service';\nimport { CspSyncService } from '~wildo-cli/services/security/csp-sync.service';\nimport { VersionChecker } from '~wildo-cli/services/tools/utility-tools.service';\nimport {\n PlatformEnv_Utility_Tools,\n ToolProfile,\n} from '~wildo-cli/services/environment/environment.schemas';\nimport {\n BackingServiceSource,\n DatabaseEngine,\n DEFAULT_APPLICATION_DATABASE_ENGINE,\n WildoDeploymentRuntime,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { SetupStatus } from '~wildo-cli/services/environment/environment.schemas';\nimport {\n SecretsProvisioning,\n SecretsProvisioningStatus,\n} from '~wildo-cli/services/credentials/secrets-provisioning.service';\nimport type { SecretsProvisioningOutcome } from '~wildo-cli/services/credentials/secrets-provisioning.service';\nimport type { WildoLocalDefaults } from '~wildo-cli/services/credentials/local-defaults.service';\nimport {\n applyProviderKeyDefaults,\n applySharedLocalDefaults,\n DEFAULT_PROVIDER_KEY_DEFAULTS_MODE,\n describeSharedLocalDefaults,\n LocalDefaultsMode,\n resolveInfrastructureHostFor,\n resolveLocalDefaultsAdoption,\n resolveProviderKeyDefaultsAdoption,\n} from '~wildo-cli/services/credentials/local-defaults.service';\nimport {\n platformAdminUserModule,\n resolveAdminUserFromEnvSeeds,\n} from '~wildo-cli/modules/domain/credentials/admin-user.module';\nimport { resolveApproverIdentity } from '~wildo-cli/modules/domain/credentials/approver-user.module';\nimport type { AdminUserInput } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { WildoCliInitAdminEnvKeys } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { ApplicationAssetsDeliveryService, ApplicationAssetsLaneStatus } from '~wildo-cli/services/application/application-assets-delivery.service';\nimport {\n FRAMEWORK_LABEL_BASE_TEMPLATES_RELATIVE,\n seedEngineComponentLabelBaseForBackend,\n} from '~wildo-cli/services/application/engine-label-base-seeding.service';\nimport { assessApplicationAiUseDeclarations, describeAiUseDeclarationReport } from '~wildo-cli/services/application/ai-use-declarations.service';\n\nconst MINIMUM_VERSIONS: Record<string, string> = {\n /*\n * DERIVED from the framework's named authority (#421). It was a literal `'20.0.0'`, which let a\n * developer start an application on a major two behind the one the framework supports — and it\n * disagreed with `engines.node`, with the generated CI workflows and with\n * `SUPPORTED_NODE_MAJOR_VERSION` itself, four declarations of one requirement. The floor for\n * STARTING an application is the major the framework is tested on; anything lower fails later,\n * further from the cause.\n */\n [PlatformEnv_Utility_Tools.NODE]: `${SUPPORTED_NODE_MAJOR_VERSION}.0.0`,\n [PlatformEnv_Utility_Tools.PNPM]: '9.0.0',\n [PlatformEnv_Utility_Tools.DOCKER]: '20.0.0',\n [PlatformEnv_Utility_Tools.DOCKER_COMPOSE]: '2.0.0',\n [PlatformEnv_Utility_Tools.KUBECTL]: '1.25.0',\n [PlatformEnv_Utility_Tools.KIND]: '0.17.0',\n [PlatformEnv_Utility_Tools.HELM]: '3.10.0',\n // Framework-dev only: redis-memory-server (engine real-Redis integration tests) compiles redis from\n // source and needs GNU Make ≥4 (macOS ships 3.81). Optional in every profile — reported, never blocking.\n [PlatformEnv_Utility_Tools.MAKE]: '4.0.0',\n};\n\n/**\n * Renders a single tool check result as a formatted console line.\n */\nfunction renderToolCheck(\n ctx: CommandContext,\n label: string,\n check: import('~wildo-cli/services/environment/environment.schemas').ToolCheck,\n isOptional: boolean,\n): boolean {\n const paddedLabel = label.padEnd(20);\n\n if (check.installed && check.meetsMinimum) {\n const suffix = check.running === false\n ? chalk.yellow(' (not running)')\n : '';\n ctx.log.info(` ${chalk.green('✓')} ${paddedLabel} ${chalk.dim(`v${check.version}`)}${suffix}`);\n return check.running !== false;\n }\n\n if (check.installed && !check.meetsMinimum) {\n ctx.log.info(\n ` ${chalk.yellow('⚠')} ${paddedLabel} ${chalk.yellow(`v${check.version} (minimum: ${check.minimumVersion})`)}`,\n );\n return false;\n }\n\n if (isOptional) {\n ctx.log.info(` ${chalk.dim('○')} ${paddedLabel} ${chalk.dim('not found (optional)')}`);\n return true;\n }\n\n const os = VersionChecker.detectOS();\n const installHint = VersionChecker.getInstallCommand(check.name, os);\n ctx.log.info(` ${chalk.red('✗')} ${paddedLabel} ${chalk.dim('not found')}`);\n ctx.log.info(` ${chalk.dim(`Install: ${installHint}`)}`);\n return false;\n}\n\n/**\n * Profile-aware tool check. Resolves the profile from:\n * 1. --runtime flag (if passed explicitly)\n * 2. Active environment's runtime (if one exists)\n * 3. Default: DOCKER_COMPOSE\n */\nfunction runToolsCheck(ctx: CommandContext): CommandResult {\n ctx.log.info('');\n ctx.log.info(chalk.bold(' Wildo Tools Check'));\n ctx.log.info(chalk.dim(' ──────────────────'));\n\n VersionChecker.registerBuiltinCheckers();\n\n const runtimeFlag = ctx.flags.runtime as string | undefined;\n if (runtimeFlag && !Object.values(WildoDeploymentRuntime).includes(runtimeFlag as WildoDeploymentRuntime)) {\n ctx.log.warn(`Unknown runtime \"${runtimeFlag}\", defaulting to docker-compose profile.`);\n }\n const effectiveRuntime = (runtimeFlag as WildoDeploymentRuntime | undefined) ?? ctx.activeEnv?.runtime;\n const effectiveLocationType = ctx.activeEnv?.locationType;\n const profile = VersionChecker.profileFromRuntime(effectiveRuntime, effectiveLocationType);\n const profileDef = VersionChecker.PROFILE_TOOLS[profile];\n\n ctx.log.info('');\n ctx.log.info(chalk.dim(` Profile: ${profile}`));\n ctx.log.info('');\n\n let allPassed = true;\n const requiredSet = new Set(profileDef.required);\n const allTools = [...profileDef.required, ...profileDef.optional];\n\n for (const tool of allTools) {\n const minVersion = MINIMUM_VERSIONS[tool] ?? '0.0.0';\n const check = VersionChecker.checkTool(tool, minVersion);\n const isOptional = !requiredSet.has(tool);\n const passed = renderToolCheck(ctx, tool, check, isOptional);\n if (!passed && !isOptional) {\n allPassed = false;\n }\n }\n\n ctx.log.info('');\n if (allPassed) {\n ctx.log.info(chalk.green(' All required tools OK.'));\n } else {\n ctx.log.info(chalk.red(' Some required tools missing or outdated. Fix the issues above and retry.'));\n }\n ctx.log.info('');\n\n return { success: allPassed };\n}\n\n\n/**\n * The `--line` answer that leaves the application line to the creation journey (the vision step's first question), as\n * every application was created before the line could be chosen at `wildo init`. Not an `ApplicationLine`: it is the\n * absence of a choice, so it lives beside the vocabulary rather than in it.\n */\nconst INIT_LINE_DECIDE_LATER = 'later';\n\n/** What `wildo init` shows for each line. Total over the vocabulary, so a line added tomorrow is offered here too. */\nconst INIT_LINE_LABELS: Readonly<Record<ApplicationLine, string>> = {\n [ApplicationLine.B2B_SAAS]: 'B2B SaaS: a software product sold to other businesses',\n [ApplicationLine.INTERNAL_TOOL]: 'Internal tool: software a company builds for its own people (one owner organization, no billing)',\n [ApplicationLine.SERVICE_FIRM]: 'Service firm platform: a firm serves its clients, who sign up, through its agents and qualified reviewers',\n};\n\n/** What `wildo init --blueprint` applies: the layers in order, each one's resolved parameters, and the registry modules they reference, fetched. */\ninterface BlueprintInitPlan {\n readonly layers: readonly LoadedBlueprintArtifact[];\n readonly parameters: ReadonlyArray<Record<string, BlueprintParameterValue>>;\n readonly references: ReadonlyMap<string, AcquiredModule>;\n /** The application line the stack makes, when a layer names one (#2863): recorded as the dossier's answer by the layer that names it. */\n readonly line: ResolvedBlueprintLine | undefined;\n}\n\n/**\n * What `wildo init --line` (or its prompt) does to the blueprint plan (#1605). Returns the plan that layers the\n * framework's `wildo/<line>` when a line is chosen and no blueprint is given; `undefined` when nothing changes (`later`,\n * no answer, or blueprints whose stack already names the same line). An explicit line is never dropped silently: with\n * `--config-only`, with blueprints naming no line, or with blueprints naming another line, it refuses, naming the\n * command that would apply it.\n */\nexport function planInitLine(input: {\n readonly lineChoice: string | undefined;\n readonly configOnly: boolean;\n readonly blueprintPlan: (BlueprintInitPlan & { init: ResolvedBlueprintInitFlags }) | null;\n readonly blueprintEntries: readonly string[];\n readonly frameworkRoot: string | null;\n readonly database: string | undefined;\n}): (BlueprintInitPlan & { init: ResolvedBlueprintInitFlags }) | undefined {\n if (input.lineChoice === undefined || input.lineChoice === INIT_LINE_DECIDE_LATER) return undefined;\n const line = assertBlueprintLine(input.lineChoice, '--line');\n const shippedId = frameworkBlueprintId(line);\n if (input.configOnly) throw new Error('--line layers the framework blueprint on the full skeleton; it cannot be combined with --config-only.');\n if (input.blueprintPlan !== null) {\n const stackLine = input.blueprintPlan.line;\n if (stackLine === undefined) {\n throw new Error(`--line ${line} was given with blueprints that name no line. Layer the line's blueprint first instead: --blueprint ${shippedId} ${input.blueprintEntries.join(' ')}.`);\n }\n if (stackLine.line !== line) {\n throw new Error(`--line ${line} contradicts the blueprints, which make a '${stackLine.line}' application (decided by ${stackLine.declaredBy.manifest.id}).`);\n }\n return undefined;\n }\n const shipped = resolveFrameworkBlueprint(shippedId, input.frameworkRoot)!;\n const layers = [shipped];\n return {\n layers,\n init: resolveBlueprintInitFlags(layers, { [InitFlag.DATABASE]: input.database }),\n parameters: resolveBlueprintParameters(layers, {}),\n references: new Map(),\n line: resolveBlueprintLine(layers),\n };\n}\n\nexport default class InitCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'init',\n description: 'Create a new Wildo targeted app',\n category: CommandCategory.Core,\n flags: {\n name: {\n type: 'string',\n description: 'App name',\n },\n runtime: {\n type: 'string',\n description: 'Infrastructure runtime (docker-compose | kubernetes)',\n },\n database: {\n type: 'string',\n description: 'Database engine (mongodb | postgresql)',\n },\n check: {\n type: 'boolean',\n description: 'Verify tools (Docker, Node, pnpm) without scaffolding',\n default: false,\n },\n 'config-only': {\n type: 'boolean',\n description: 'Write only wildo.saas.config.ts (the pre-#51 behavior) instead of the full application skeleton',\n default: false,\n },\n 'port-base': {\n type: 'string',\n description: 'Base port for the app\\'s allocated port block (backend=base, app=base+1, companion=base+100). Default: scan sibling apps and pick the next free block',\n },\n // Platform-administrator identity for the app's `local` secrets.json. Supplying all\n // three skips the prompt, which is what makes `wildo init` scriptable end to end.\n // `WILDO_INIT_ADMIN_*` env seeds are the equivalent; flags win over seeds.\n 'admin-email': {\n type: 'string',\n description: `Platform administrator email for the local environment (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL})`,\n },\n 'admin-first-name': {\n type: 'string',\n description: `Platform administrator first name (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME})`,\n },\n 'admin-last-name': {\n type: 'string',\n description: `Platform administrator last name (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME})`,\n },\n 'admin-password': {\n type: 'string',\n description: `Initial platform administrator password (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD}). Auto-generated when omitted`,\n },\n 'skip-install': {\n type: 'boolean',\n description: 'Skip pnpm install and the initial specifications/backend builds after scaffolding',\n default: false,\n },\n /*\n * A CLOSED vocabulary rather than a boolean pair, deliberately.\n *\n * The honest shape is tri-state — adopt, skip, or ask — and `--adopt` / `--no-adopt` cannot\n * express \"ask\" without relying on Commander's `--no-` magic, which sets a DIFFERENT key from\n * the one the flag declares. A named value says what it means and reads the same in a script.\n */\n /*\n * Join an existing platform's storage instead of writing beneath this application.\n *\n * The same choice `wildo setup` step 1 offers (\"a sibling repo / a custom location\"), exposed\n * on the command that CREATES the application — which is the moment it is actually decided.\n *\n * Note what this is NOT: adopting `~/.wildo/local-defaults.json` copies the shared tier while\n * keeping `application.adminSecret` per-application, whereas pointing two applications at ONE\n * secrets file gives them one operator door. Prefer `--local-defaults`; reach for this when a\n * team genuinely shares a secrets repository.\n */\n 'secrets-path': {\n type: 'string',\n description: 'Directory holding this environment\\'s secrets (e.g. a shared wildo-secrets repo). Default: <app>/infrastructure',\n },\n 'local-defaults': {\n type: 'string',\n description: `How to treat ~/.wildo/local-defaults.json when it exists (${Object.values(LocalDefaultsMode).join(' | ')}). `\n + '`adopt` is the auto-confirm: take the machine\\'s shared platform credentials, joining its platform, without asking. '\n + 'Provider keys are a separate decision (--provider-key-defaults). '\n + `Defaults to \\`defaults.localDefaults\\` in ~/.wildo/preferences.json, else ${LocalDefaultsMode.ASK}`,\n /*\n * NO declared default, deliberately. A flag default is indistinguishable from an explicitly\n * passed flag by the time it reaches `ctx.flags`, so declaring one here would mask the\n * machine preference permanently — the preference could never win, and the operator's stated\n * posture would be silently ignored. The fallback lives at the read site instead.\n */\n },\n /*\n * Blueprint layers (epic #2856): packed blueprints applied ON the base, in the order given, before install —\n * one git commit per layer. A blueprint may lock or default `--database`; every other flag stays the operator's.\n */\n blueprint: {\n type: 'string[]',\n description: 'Blueprints to layer on the base, lowest first: a packed directory (`wildo blueprint pack`), a blueprint the framework ships (`wildo/b2b-saas`, `wildo/internal-tool`, `wildo/service-firm`: the application line and its posture), or a registry blueprint <domain>/<scope>/<name>@<range>',\n },\n 'blueprint-param': {\n type: 'string[]',\n description: 'Blueprint parameter values, name=value (e.g. --blueprint-param erpVendor=odoo region=eu)',\n },\n 'blueprint-registry': {\n type: 'string',\n description: 'Registry alias or URL that `--blueprint <domain>/<scope>/<name>@<range>` entries, and the registry modules any blueprint references, are fetched from. Default: the machine\\'s registry',\n },\n line: {\n type: 'string',\n description: 'The kind of application (b2b_saas | internal_tool | service_firm | later): layers the framework blueprint wildo/<line>, so the line question is answered and the line\\'s posture (an internal tool\\'s owner organization; a service firm\\'s firm and client organization types and the service relationship between them) is in place before the first boot. Asked when no --blueprint is given; `later` leaves it to the creation journey.',\n },\n 'provider-key-defaults': {\n type: 'string',\n description: `Whether to seed the provider API keys in ~/.wildo/local-defaults.json (${Object.values(LocalDefaultsMode).join(' | ')}), `\n + 'independently of --local-defaults: an application that owns its platform still gets them. '\n + `Defaults to \\`defaults.providerKeyDefaults\\` in ~/.wildo/preferences.json, else ${DEFAULT_PROVIDER_KEY_DEFAULTS_MODE}`,\n // No declared default, for the reason given on `local-defaults` above.\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n if (ctx.flags.check === true) {\n return runToolsCheck(ctx);\n }\n\n // INTENTIONAL: `wildo init` scaffolds a brand-new SaaS app at the operator's\n // current working directory. Unlike every other command (which must trust\n // `ctx.cliContext.resolvedHomes.app.declarationRoot`), this one has no\n // existing app root to anchor against — the whole purpose is to create a\n // `wildo.saas.config.ts` where none exists. `process.cwd()` is the correct\n // source here; the resolved-homes snapshot is still consulted immediately\n // below to detect and refuse operation inside a pre-existing scope.\n const cwd = process.cwd();\n const existingConfigPath = ctx.cliContext.resolvedHomes.app.saasConfigPath;\n\n // Re-running `wildo init` IN THE APP IT CREATED is a repair, not a mistake, and the two\n // cases must not share a verdict:\n //\n // - the resolved scope is THIS directory -> RE-RUN. Skip the scaffold (the files are\n // already there and may carry operator edits) and re-assert everything that is safe to\n // assert: the environment registration, `secrets.json`, the CI workflow. Each of those\n // steps is idempotent, so this converges instead of churning.\n // - the resolved scope is a PARENT directory -> still REFUSE. Scaffolding an application\n // inside another application is the footgun this guard was written for, and it stays shut.\n //\n // Before this split the command refused BOTH, which made `wildo init` a strictly\n // once-per-app operation — so an app that missed a step (issue #155: no `secrets.json`)\n // had no way to acquire it, and the advice printed everywhere, \"Run 'wildo init' first\",\n // was unfollowable for the very apps that needed it most.\n const isReRunInOwnApp = Boolean(existingConfigPath)\n && resolvePath(dirname(existingConfigPath!)) === resolvePath(cwd);\n\n if (existingConfigPath && !isReRunInOwnApp) {\n ctx.log.error(\n `Already in a scoped Wildo workspace (${existingConfigPath}).`,\n );\n return { success: false };\n }\n\n if (isReRunInOwnApp) {\n const rerunLine = ctx.flags.line as string | undefined;\n if (rerunLine !== undefined && rerunLine !== INIT_LINE_DECIDE_LATER) {\n ctx.log.error(`--line applies only when an application is created. This one exists: answer the line question in its creation journey instead (\\`wildo creation answer\\`), and the foundation declares what the line implies.`);\n return { success: false };\n }\n return this.rerunInExistingApp(ctx, cwd);\n }\n\n const configPath = `${cwd}/${WORKSPACE_CONFIG_NAMES.SAAS}`;\n if (existsSync(configPath)) {\n ctx.log.error(`${WORKSPACE_CONFIG_NAMES.SAAS} already exists in current directory.`);\n return { success: false };\n }\n\n // ── Gather app options (flag → answer file → machine preference → interactive → default) ──\n\n /*\n * The DIRECTORY names the application, and is not a question.\n *\n * An operator reaches `wildo init` by creating a directory and entering it, so by the time the\n * command runs they have already named the thing — twice, if it also asks. The prompt's default\n * was `basename(cwd)` all along, which is the same admission one keypress short of acting on it.\n *\n * `--name` still overrides, for the case the directory genuinely is not the name (a checkout\n * folder, a temporary path). What is gone is being asked to confirm a decision already made.\n * Refuses rather than mangling when the directory is not a usable name: silently scaffolding\n * `app` into a directory called `my app (copy)` produces an application whose slug matches\n * nothing the operator will look for.\n */\n const flagName = ctx.flags.name === undefined || ctx.flags.name === null\n ? undefined\n : String(ctx.flags.name).trim();\n const directoryName = basename(cwd).trim();\n const name = flagName !== undefined && flagName.length > 0 ? flagName : directoryName;\n\n /*\n * Blueprint layers (epic #2856) resolve BEFORE any prompt and before anything is written: the chain, the\n * application-shape flags a layer locks or defaults, and every layer's parameters. A wrong blueprint therefore\n * refuses here, in an untouched directory. What can only be checked against a materialized base (collisions,\n * declaration targets, registrations) is rehearsed on a throwaway base just before the real scaffold.\n */\n /** Where registry blueprints are extracted; removed when the command ends. */\n let blueprintScratch: string | undefined;\n let blueprintPlan: (BlueprintInitPlan & { init: ResolvedBlueprintInitFlags }) | null = null;\n const blueprintRegistryFlag = (ctx.flags.blueprintRegistry ?? ctx.flags['blueprint-registry']) as string | undefined;\n const blueprintDirectories = ((ctx.flags.blueprint as string[] | undefined) ?? []).filter((entry) => entry.trim() !== '');\n const blueprintParamAssignments = ((ctx.flags.blueprintParam ?? ctx.flags['blueprint-param']) as string[] | undefined) ?? [];\n if (blueprintDirectories.length === 0 && blueprintParamAssignments.length > 0) {\n ctx.log.error('--blueprint-param was given without --blueprint.');\n return { success: false };\n }\n if (blueprintDirectories.length > 0) {\n if (ctx.flags.configOnly === true || ctx.flags['config-only'] === true) {\n ctx.log.error('--blueprint layers a blueprint on the full skeleton; it cannot be combined with --config-only.');\n return { success: false };\n }\n try {\n const layers: LoadedBlueprintArtifact[] = [];\n for (const entry of blueprintDirectories) {\n // A path on disk is a packed directory, whatever it looks like; `wildo/<name>` is a blueprint the framework\n // ships (#2863); anything else naming `<domain>/<scope>/<name>[@range]` is fetched from the registry (#2861).\n const onDisk = existsSync(resolvePath(process.cwd(), entry));\n const shipped = onDisk ? undefined : resolveFrameworkBlueprint(entry, ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null);\n if (shipped !== undefined) {\n layers.push(shipped);\n continue;\n }\n if (!isRegistryBlueprintSpec(entry, (candidate) => existsSync(resolvePath(process.cwd(), candidate)))) {\n layers.push(readBlueprintArtifact(resolvePath(process.cwd(), entry)));\n continue;\n }\n if (blueprintScratch === undefined) {\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-init-blueprints-'));\n blueprintScratch = scratch;\n // Every exit path, refusals included: the extracted artifacts are read during the scaffold and never after.\n process.once('exit', () => rmSync(scratch, { recursive: true, force: true }));\n }\n const registry = await resolveRegistryUrlForCommand(ctx, { ...(blueprintRegistryFlag === undefined ? {} : { flag: blueprintRegistryFlag }) });\n const credential = await RegistryCredentialsService.get(registry.url);\n const acquired = await acquireRegistryBlueprint({ spec: entry, registryUrl: registry.url, authToken: credential?.rawToken, scratchDirectory: blueprintScratch });\n if (acquired.yanked) ctx.log.warn(` ${acquired.parsed.moduleId}@${acquired.version} is YANKED; applying the pinned release.`);\n ctx.log.info(chalk.dim(` Blueprint ${acquired.parsed.moduleId}@${acquired.version} fetched from ${registry.url}`));\n layers.push(acquired.artifact);\n }\n resolveBlueprintChain(layers);\n const init = resolveBlueprintInitFlags(layers, { [InitFlag.DATABASE]: ctx.flags.database as string | undefined });\n const parameters = resolveBlueprintParameters(layers, parseBlueprintParamAssignments(blueprintParamAssignments));\n // Every registry module the layers reference, resolved and fetched now (#2879): one that does not resolve\n // refuses here, before a prompt and before a file is written. The same bytes are installed twice, into the\n // rehearsal and into the application.\n const references = await acquireBlueprintModuleReferences(ctx, layers, { registryFlag: blueprintRegistryFlag });\n // One line per stack, refused here when two layers disagree, before a prompt or a file.\n const line = resolveBlueprintLine(layers);\n if (line !== undefined) ctx.log.info(chalk.dim(` Application line: ${line.line} — decided by blueprint ${line.declaredBy.manifest.id}`));\n blueprintPlan = { layers, init, parameters, references, line };\n } catch (error) {\n ctx.log.error(`Blueprint refused: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n /*\n * ── The application line, asked at creation (#1605) ──\n *\n * Without a blueprint, init asks what kind of application this is and layers the framework's `wildo/<line>`: the line\n * question is then answered in the dossier and the line's posture (an internal tool's owner organization and\n * ORGANIZATIONS) is in the configuration BEFORE the first boot, which an organization type needs because an\n * organization's type is fixed when it is created. With blueprints, the stack names its own line, or none.\n */\n const configOnly = ctx.flags.configOnly === true || ctx.flags['config-only'] === true;\n // Asked only when nothing else decides it: no blueprint (the stack names its own line) and the full skeleton.\n const lineChoice = blueprintDirectories.length === 0 && !configOnly\n ? String(await this.prompt<string>(ctx, {\n id: 'line',\n type: 'select',\n message: 'What kind of application is this?',\n choices: [\n ...Object.values(ApplicationLine).map((line) => ({ value: line, label: INIT_LINE_LABELS[line] })),\n { value: INIT_LINE_DECIDE_LATER, label: 'Decide later, in the creation journey' },\n ],\n default: INIT_LINE_DECIDE_LATER,\n }))\n : (ctx.flags.line as string | undefined);\n try {\n const linePlan = planInitLine({\n lineChoice,\n configOnly,\n blueprintPlan,\n blueprintEntries: blueprintDirectories,\n frameworkRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null,\n database: ctx.flags.database as string | undefined,\n });\n if (linePlan !== undefined) {\n blueprintPlan = linePlan;\n const shipped = linePlan.layers[0]!;\n ctx.log.info(chalk.dim(` Application line: ${linePlan.line!.line} — layering ${shipped.manifest.id}@${shipped.manifest.version}`));\n }\n } catch (error) {\n ctx.log.error(`Application line refused: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n const runtime = await this.prompt<WildoDeploymentRuntime>(ctx, {\n id: 'runtime',\n type: 'select',\n message: 'Infrastructure runtime:',\n preference: 'runtime',\n choices: [\n { value: WildoDeploymentRuntime.DOCKER_COMPOSE, label: 'Docker Compose (recommended)' },\n { value: WildoDeploymentRuntime.KUBERNETES, label: 'Kubernetes (local Kind cluster)' },\n ],\n default: WildoDeploymentRuntime.DOCKER_COMPOSE,\n });\n\n const blueprintDatabase = blueprintPlan?.init.values[InitFlag.DATABASE] as DatabaseEngine | undefined;\n if (blueprintDatabase !== undefined) {\n ctx.log.info(chalk.dim(` Database: ${blueprintDatabase} — decided by blueprint ${blueprintPlan?.init.decidedBy[InitFlag.DATABASE] ?? ''}`));\n }\n const requestedDatabase = blueprintDatabase ?? await this.prompt<DatabaseEngine>(ctx, {\n id: 'database',\n type: 'select',\n message: 'Database:',\n preference: 'database',\n /*\n * PostgreSQL first and default (Paul, 2026-09-24): it is what an application that declares nothing\n * persists to (`DEFAULT_APPLICATION_DATABASE_ENGINE`, #1571), and both dogfood applications run on\n * it. Offering the other store as the recommendation would make the prompt and the silence disagree.\n */\n choices: [\n { value: DatabaseEngine.POSTGRESQL, label: 'PostgreSQL (recommended)' },\n { value: DatabaseEngine.MONGODB, label: 'MongoDB' },\n ],\n default: DEFAULT_APPLICATION_DATABASE_ENGINE,\n });\n\n /**\n * The operator's choice is honoured as authored.\n *\n * This used to silently rewrite a PostgreSQL answer to MongoDB whenever\n * `preferences.isFrameworkDeveloper` was set, warning only after the fact. That is the second\n * of the two sites that made a PostgreSQL platform unreachable in the framework repository —\n * see the JSDoc on `platformDatabaseInitializationModule.prompt` for the full reasoning. The\n * default above is PostgreSQL since #1571; the platform-database prompt module keeps its own\n * experimental-ness signal for environments that author no `database`.\n */\n const database = requestedDatabase;\n\n const trimmedName = String(name).trim();\n if (!trimmedName) {\n ctx.log.error(\n `Cannot name the application after this directory ('${basename(cwd)}'), and no --name was given.`,\n );\n ctx.log.info(chalk.dim(' Create it in a directory named after the application, or pass --name <value>.'));\n return { success: false };\n }\n\n const validRuntimes = Object.values(WildoDeploymentRuntime);\n if (!validRuntimes.includes(runtime)) {\n ctx.log.error(`Invalid runtime \"${runtime}\". Valid: ${validRuntimes.join(', ')}`);\n return { success: false };\n }\n\n const validDatabases = Object.values(DatabaseEngine);\n if (!validDatabases.includes(database)) {\n ctx.log.error(`Invalid database \"${database}\". Valid: ${validDatabases.join(', ')}`);\n return { success: false };\n }\n\n // ── 1. Scaffold: full application skeleton by default (issue #51 D2);\n // `--config-only` keeps the historical one-file behavior. ──\n\n const frameworkPath = ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null;\n // The mode signal is CONTAINMENT, not the operator preference: `file:` framework links are\n // only valid when the app root lives INSIDE the framework checkout (and the env-projection\n // guard later enforces exactly that for the companion). A framework developer scaffolding an\n // app OUTSIDE the checkout gets — correctly — an app-creator skeleton; an in-checkout scaffold\n // is framework-dev regardless of the stored preference flag.\n const appInsideFramework = frameworkPath !== null && !relative(frameworkPath, cwd).startsWith('..');\n const skeletonMode: SkeletonMode = appInsideFramework ? SkeletonMode.FRAMEWORK_DEV : SkeletonMode.APP_CREATOR;\n /*\n * Resolved against the operator's CWD, not the app root: they typed it before the app existed,\n * and a relative path meant \"from here\" at that moment. Refused when absent, because a secrets\n * directory that does not exist is a typo far more often than an intention — and the failure it\n * would otherwise produce arrives much later, as an empty secrets read during `config sync`.\n */\n const secretsPathFlag = (ctx.flags.secretsPath ?? ctx.flags['secrets-path']) as string | undefined;\n const secretsPath = secretsPathFlag === undefined ? undefined : resolvePath(process.cwd(), secretsPathFlag);\n if (secretsPath !== undefined && !existsSync(secretsPath)) {\n ctx.log.error(`--secrets-path \"${secretsPathFlag}\" does not exist (resolved to ${secretsPath}).`);\n return { success: false };\n }\n\n const portBaseFlag = (ctx.flags.portBase ?? ctx.flags['port-base']) as string | undefined;\n const portBase = portBaseFlag !== undefined ? Number.parseInt(portBaseFlag, 10) : undefined;\n if (portBaseFlag !== undefined && (!Number.isInteger(portBase) || (portBase as number) < 1024 || (portBase as number) > 65000)) {\n ctx.log.error(`Invalid --port-base \"${portBaseFlag}\" — expected an integer port between 1024 and 65000.`);\n return { success: false };\n }\n\n /*\n * WHOSE PLATFORM does this application run on — its own, or one already on this machine?\n *\n * Asked HERE, before the scaffold, because the answer decides what the environment descriptor\n * says, and a descriptor is authored once. It is not a new question: it is the local-defaults\n * decision, resolved early and reused by the secrets step, because adopting another application's\n * shared credentials and declaring its platform as this one's host are the same decision. Those\n * credentials authenticate to ITS containers and to no others.\n *\n * Until 2026-09-18 the skeleton had no hosted branch at all, so EVERY application `wildo init`\n * created declared itself the owner of the local environment — the first one rightly, and every\n * one after it wrongly. The operator met that as a `wildo config sync` offering to rewrite the\n * shared platform generation, and the apparent remedy was to stop the running application, which\n * is precisely the move that cannot be made in remote, where it is live traffic.\n */\n const localDefaults = await this.resolveLocalDefaultsOnce(ctx);\n // Decided up front with the shared half, so a refused mode or a declined prompt comes before anything is written.\n await this.resolveProviderKeyDefaultsOnce(ctx);\n const infrastructureHost = localDefaults === null ? null : resolveInfrastructureHostFor(cwd, localDefaults);\n if (infrastructureHost !== null) {\n ctx.log.info('');\n ctx.log.info(chalk.cyan(` This application will run on the infrastructure of ${infrastructureHost}`));\n ctx.log.info(chalk.dim(' (declared as `infrastructureHost`: it registers against that platform and never starts, recreates'));\n ctx.log.info(chalk.dim(' or stops anything shared — so the host keeps running while this application is created).'));\n }\n\n let path: string;\n let skeletonResult: SaasSkeletonResult | null = null;\n /** The repository arm the blueprint apply ran, or null when no blueprint was layered (the repository comes later). */\n let blueprintRepository: ReturnType<InitCommand['initializeApplicationRepository']> | null = null;\n if (ctx.flags.configOnly === true || ctx.flags['config-only'] === true) {\n path = SaasScaffoldService.scaffold(cwd, { name: trimmedName });\n } else {\n /*\n * Rehearse the layers on a throwaway copy of the base first. Collisions with base files, a declaration the\n * base does not have, a registration that refuses — those can only be found against a materialized base, and\n * finding them only while applying for real would leave this directory holding a committed base and the layers that\n * succeeded, with no scaffold record and no environment. Rehearsed here, the operator's directory is untouched\n * when a layer refuses.\n */\n if (blueprintPlan !== null) {\n try {\n await this.rehearseBlueprintLayers(blueprintPlan, {\n name: trimmedName,\n frameworkPath,\n mode: skeletonMode,\n database,\n ...(infrastructureHost !== null ? { infrastructureHost } : {}),\n });\n } catch (error) {\n ctx.log.error(`Blueprint refused (nothing was written): ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n try {\n const scaffoldOptions = {\n name: trimmedName,\n frameworkPath,\n mode: skeletonMode,\n database,\n ...(infrastructureHost !== null ? { infrastructureHost } : {}),\n ...(portBase !== undefined ? { portBase } : {}),\n skipInstall: ctx.flags.skipInstall === true || ctx.flags['skip-install'] === true,\n log: ctx.log,\n };\n if (blueprintPlan === null) {\n skeletonResult = SaasSkeletonService.scaffold(cwd, scaffoldOptions);\n } else {\n // The layers go between the materialized base and `pnpm install`, so the install, the initial builds and the\n // initial migration all see the layered application. Installing a referenced registry module is\n // asynchronous, so init runs the scaffold's two halves itself.\n const materialized = SaasSkeletonService.materialize(cwd, scaffoldOptions);\n blueprintRepository = await this.applyBlueprintLayers(ctx, materialized, blueprintPlan, frameworkPath);\n // Seeded again after the layers (#3230): the base seeded the component labels for the locales IT declared,\n // and a layer may declare more. Never overwrites, so the base's files are untouched; the closing commit\n // carries what this adds.\n if (frameworkPath !== null) {\n seedEngineComponentLabelBaseForBackend({\n labelBaseRoot: join(frameworkPath, FRAMEWORK_LABEL_BASE_TEMPLATES_RELATIVE),\n backendRoot: join(materialized.appRoot, 'backend-api'),\n });\n }\n skeletonResult = {\n slug: materialized.slug,\n displayName: materialized.displayName,\n ports: materialized.ports,\n filesWritten: materialized.filesWritten,\n companionDelivered: materialized.companionDelivered,\n ...SaasSkeletonService.installAndBuild(materialized, scaffoldOptions),\n };\n // As `wildo registry add` does after an install: a credential that fetched an installed module was used. Book-\n // keeping only, so a failure to record it warns and never decides whether init succeeded.\n for (const credentialUrl of new Set([...blueprintPlan.references.values()].flatMap((acquired) => (acquired.credentialUrl === undefined ? [] : [acquired.credentialUrl])))) {\n await RegistryCredentialsService.touch(credentialUrl).catch((error: unknown) => ctx.log.warn(` Could not record that the ${credentialUrl} credential was used: ${ErrorUtils.extractErrorMessage(error)}`));\n }\n }\n path = `${cwd}/${WORKSPACE_CONFIG_NAMES.SAAS}`;\n } catch (error) {\n ctx.log.error(`Skeleton scaffold failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n // ── 1b. Record how the application was scaffolded (#2859) ──\n //\n // Every scaffold, blueprint or not: `wildo blueprint pack` rebuilds a defining application's base from it.\n if (skeletonResult) {\n const record = buildScaffoldRecord({ database, layers: blueprintPlan?.layers ?? [], parameters: blueprintPlan?.parameters ?? [] });\n await withLockfileSectionMutate({\n saasRoot: cwd,\n sectionKey: SCAFFOLD_LOCK_SECTION_KEY,\n sectionSchema: ScaffoldLockSectionSchema,\n initialSection: () => record,\n }, () => record);\n }\n\n // ── 2. Register default local environment ──\n //\n // Under an explicit saas-root override: the CLI resolved its workspace scope at STARTUP, before\n // step 1 scaffolded `wildo.saas.config.ts`, so on the first run the registry sees no app root and\n // `EnvironmentPaths` throws \"No targeted app root detected\" — the command that CREATES the root\n // was the one command that could not register against it (measured on the first scratch-app\n // bootstrap, 2026-08-25). The scaffold just made `cwd` the app root; say so.\n await EnvironmentRegistry.withSaasRootOverride(cwd, () => {\n EnvironmentLifecycle.initializeLocal({\n runtime,\n database: {\n engine: database,\n source: BackingServiceSource.SELF,\n },\n // Absent means \"beneath this application\", which is what the registration already defaults to.\n ...(secretsPath === undefined ? {} : { secretsPath }),\n });\n });\n\n // ── 2b. Provision that environment's `secrets.json` (issue #155) ──\n //\n // Runs under the SAME saas-root override as the registration above, and for the same\n // reason: `ConfigSecretsUtils.writeSecretsJson` resolves its directory through\n // `EnvironmentPaths.resolveSecretsDir`, which reads the registry's app root. Outside the\n // override that is still the pre-scaffold scope, so the file would land in the wrong app\n // (or nowhere).\n const secretsOutcome = await EnvironmentRegistry.withSaasRootOverride(\n cwd,\n () => this.provisionLocalSecrets(ctx),\n );\n\n // ── 3. Materialize the per-PR validation workflow (Slice 6.8 / F-48) ──\n //\n // Every freshly-scaffolded app gets `.github/workflows/wildo-config-validation.yml`\n // by default so a config drift, a broken K8s template render, or a\n // missing `wildo config validate --domain cicd` workflow itself\n // fails the PR before reaching a deploy branch. Best-effort —\n // installer failure must NOT block scaffold success because the\n // operator can re-run `wildo setup` to back-fill it.\n const validationWorkflowResult = this.materializeValidationWorkflow(\n ctx, cwd, trimmedName,\n );\n\n // ── 3a. The application's own GIT REPOSITORY (#1273) ──\n //\n // Acceptance in this framework IS a git commit, and the creation lane reads landing through git: a\n // specification family lands when its file is committed, and a build task when its product is in the\n // working tree as git sees it (#3204), recorded by the companion's build checkpoints. So an application\n // with no repository can never accept anything — measured on a scratch application during the first\n // end-to-end journey run, where every build task parked against a directory git could not see.\n // With blueprints the repository was created before the layers, so the base and each layer are their own commits.\n // Bound in both arms: the CLOSING commit below needs to know whether this init created the repository.\n const repository = skeletonResult\n ? (blueprintRepository ?? this.initializeApplicationRepository(ctx, cwd))\n : null;\n /*\n * App-creator mode delivers the framework-owned asset homes HERE, from the packages the\n * scaffold just installed (the framework-developer lane gets them from the checkout on every\n * orchestrator tick instead). With `--skip-install` the knowledge lanes wait for\n * `pnpm install` + `wildo assets sync`; the templates lane needs no install and lands now.\n */\n const assetsResult = skeletonResult && skeletonMode === SkeletonMode.APP_CREATOR\n ? ApplicationAssetsDeliveryService.deliver({\n applicationRoot: cwd,\n frameworkAssetsRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot,\n })\n : null;\n\n // Resolved here rather than left to the first `wildo dev start`, so the scaffold's generated\n // artifact is OUTPUT rather than a hand-written file that looks like output (#417).\n const cspResult = skeletonResult ? await this.resolveInitialCspArtifact(ctx, cwd, skeletonResult.installed) : null;\n\n // ── 3b. A PostgreSQL application's INITIAL migration ──\n const initialMigration = skeletonResult && database === DatabaseEngine.POSTGRESQL\n ? await this.generateInitialApplicationSchema(ctx, cwd, skeletonResult.built)\n : null;\n\n // ── 3c. What development needs: the coding agent's login and the companion's LLM key (#1637) ──\n //\n // After install, because which LLM the application uses is read from the providers it DISCOVERS,\n // and discovery needs the installed packages. Everything else is asked when first needed.\n if (skeletonResult?.installed) await this.establishCreationEssentials(ctx, cwd);\n\n // ── 3d. The closing commit, AFTER every step that writes into the tree (#3234) ──\n //\n // It used to run before the asset delivery (`.claude/`, the rule imports in `CLAUDE.md`), the CSP artifact, the\n // initial migration and the creation essentials (the provider lockfile section and generated provider files), so a\n // fresh application's first state was uncommitted, and the first build task that touched `CLAUDE.md` committed\n // init's edit with its own (app-creation-test-007). Nothing after this line writes into the tree.\n if (repository === 'created') {\n this.commitEverything(\n ctx,\n cwd,\n blueprintRepository === null\n ? 'Completed wildo init: framework knowledge, CSP, initial schema and provider configuration'\n : 'Completed wildo init: environment registration, CI workflow, scaffold record, framework knowledge, CSP, initial schema and provider configuration',\n );\n this.reportUncommittedInitLeftovers(ctx, cwd);\n }\n\n // ── 4. Output summary and next steps ──\n\n ctx.log.info('');\n ctx.log.success(` Created ${path}`);\n ctx.log.info('');\n ctx.log.info(chalk.dim(` Runtime: ${runtime}`));\n ctx.log.info(chalk.dim(` Database: ${database}`));\n if (skeletonResult) {\n ctx.log.info(chalk.dim(` Skeleton: ${skeletonResult.filesWritten} files (mode: ${skeletonMode})`));\n ctx.log.info(chalk.dim(\n ` Ports: backend ${skeletonResult.ports.backend} · app ${skeletonResult.ports.app} · companion ${skeletonResult.ports.companion}`,\n ));\n ctx.log.info(chalk.dim(\n ` Companion: ${skeletonResult.companionDelivered ? 'dist delivered' : 'NOT delivered (see warning above)'}`,\n ));\n if (!skeletonResult.built && ctx.flags.skipInstall !== true && ctx.flags['skip-install'] !== true) {\n ctx.log.warn(' Initial build incomplete — run `pnpm install && pnpm build` in the app before `wildo setup`.');\n }\n if (initialMigration !== null) {\n ctx.log.info(chalk.dim(` Schema: ${initialMigration}`));\n }\n }\n for (const layer of blueprintPlan?.layers ?? []) {\n ctx.log.info(chalk.dim(` Blueprint: ${layer.manifest.id}@${layer.manifest.version}`));\n }\n ctx.log.info(chalk.dim(` Environment 'local' registered under .wildo-saas`));\n this.reportSecretsOutcome(ctx, secretsOutcome);\n if (validationWorkflowResult) {\n ctx.log.info(chalk.dim(` CI gate: ${validationWorkflowResult}`));\n }\n if (cspResult) {\n ctx.log.info(chalk.dim(` CSP: ${cspResult}`));\n }\n if (assetsResult) {\n const describe = (lane: { status: string; detail: string }): string =>\n lane.status === ApplicationAssetsLaneStatus.DELIVERED ? lane.detail : `NOT delivered (${lane.detail})`;\n ctx.log.info(chalk.dim(` Templates: ${describe(assetsResult.templates)}`));\n ctx.log.info(chalk.dim(` Docs: ${describe(assetsResult.docs)}`));\n ctx.log.info(chalk.dim(` Skills: ${describe(assetsResult.skills)}`));\n // Installed is not connected: a lane that could not wire its guidance says so here (#886).\n for (const lane of [assetsResult.templates, assetsResult.docs, assetsResult.skills]) {\n if (lane.warning !== undefined) ctx.log.warn(` ${lane.warning}`);\n }\n if ([assetsResult.docs, assetsResult.skills].some((lane) => lane.status === ApplicationAssetsLaneStatus.SKIPPED)) {\n ctx.log.warn(' Run `pnpm install && wildo assets sync` to deliver the framework knowledge into .claude/ and .wildo-saas/docs.');\n }\n }\n ctx.log.info('');\n ctx.log.info(' Next steps:');\n ctx.log.info('');\n ctx.log.info(` ${chalk.bold('wildo init --check')} Verify your development tools`);\n // Named right after install because the pins written above come from the framework CHECKOUT,\n // while the application installs the PUBLISHED @wildo-ai/* version — the two disagree whenever\n // the checkout is ahead of the last release, which between releases is always. `align-deps`\n // reads what was actually installed and makes them exact (issue #222).\n ctx.log.info(` ${chalk.bold('wildo align-deps --write')} Align pins with the framework version you installed`);\n ctx.log.info(` ${chalk.bold('wildo update')} Move the CLI and this application to the latest framework release`);\n ctx.log.info(` ${chalk.bold('wildo secrets list')} See which secrets this application needs; set each when a feature asks`);\n // No `wildo config sync` here (#3204): on a machine where no platform has run, its env-files phase cannot reach\n // apps-manager and it exits 1. `local dev` brings the infrastructure and platform up, registers the application and\n // writes every env file and provider-runtime module itself, and a hosted application attaches to its host's platform.\n // `local dev`, not `dev start`: only `local dev` starts the dev companion, which the console drives (#1655).\n ctx.log.info(` ${chalk.bold('wildo local dev')} Start the local stack, register the application, write its configuration, and start it with its dev companion`);\n ctx.log.info('');\n ctx.log.info(` Then create the application from Claude Code: open ${chalk.bold('claude')} in this directory and type ${chalk.bold('/wildo:start')}.`);\n ctx.log.info(chalk.dim(' The /wildo:* commands drive the dev companion; the workbench shows where creation stands.'));\n ctx.log.info('');\n await this.reportAiUseDeclarations(ctx, cwd);\n // Said in the next steps because it is the one rule the creation lane cannot infer for the operator:\n // every family it lands and every build task it dispatches is ACCEPTED by a commit in this repository,\n // and an unaccepted task parks the queue behind it.\n ctx.log.info(chalk.dim(' Acceptance is a git commit in this application: the creation journey lands'));\n ctx.log.info(chalk.dim(' files and dispatches build tasks, and committing them is what accepts them.'));\n ctx.log.info('');\n // Said because `config sync` is the command a creator reaches for after editing configuration, and it registers\n // the application with apps-manager: with no platform running it exits 1 (#3204). Its deploy-artifact half skips\n // with a named reason until the application is registered (#279).\n ctx.log.info(chalk.dim(' After you change configuration, run `wildo config sync` while the platform is up'));\n ctx.log.info(chalk.dim(' (`wildo local dev`, or the host\\'s for a hosted application): it registers this'));\n ctx.log.info(chalk.dim(' application with the platform, and fails when none is running.'));\n ctx.log.info('');\n /*\n * WHICH CREDENTIAL SIGNS IN, said here because it is the first thing the operator does next and\n * the first place they can be wrong.\n *\n * An environment has ONE platform administrator, seeded from the application that OWNS its\n * platform. A hosted application mints an `admin.password` of its own — the material is declared\n * unconditionally, since the same application may own its platform in another environment — and\n * that value seeds nothing here. An operator who reaches for the file this command just wrote is\n * refused, with nothing in the refusal pointing at the host. Naming it costs two lines.\n */\n if (infrastructureHost !== null) {\n ctx.log.info(chalk.dim(` Signing in: this application's administrator is the one ${infrastructureHost} seeded, because`));\n ctx.log.info(chalk.dim(' that application owns the platform. Its credential — not the `admin.password` written above —'));\n ctx.log.info(chalk.dim(' is what authenticates here.'));\n ctx.log.info('');\n }\n\n return { success: true };\n }\n\n /**\n * The AI uses that still owe a declaration, in the next steps (#2848).\n *\n * Reported, never defaulted and never refused: an undeclared use is listed as outstanding by the privacy notice, which\n * is safer than a default that would claim the use decides nothing. Only the capabilities that reach the application's\n * users count (the engine's contracted-service rule), so the scaffold's build-time AI — the companion's models and the\n * coding agent — owes nothing and the line says so. The agents are not read here: the scaffold is not built yet.\n */\n private async reportAiUseDeclarations(ctx: CommandContext, cwd: string): Promise<void> {\n const report = await assessApplicationAiUseDeclarations({ saasRoot: cwd, agents: undefined }).catch(() => null);\n if (report === null) {\n ctx.log.info(chalk.dim(' AI use: the configuration could not be read yet; `wildo local doctor` lists what is owed after install.'));\n ctx.log.info('');\n return;\n }\n ctx.log.info(' AI use:');\n for (const line of describeAiUseDeclarationReport(report)) ctx.log.info(chalk.dim(` ${line}`));\n ctx.log.info(chalk.dim(' Each agent declares `aiUse` (skill `ai-use-declaration`); `wildo local doctor` re-checks it.'));\n ctx.log.info('');\n }\n\n /**\n * Run the creation essentials against the local environment just provisioned, and record a typed\n * LLM key in its `secrets.json`. Reports rather than refuses: see `creation-essentials.module.ts`.\n */\n private async establishCreationEssentials(ctx: CommandContext, cwd: string): Promise<CreationEssentialsResult | null> {\n ctx.log.info('');\n ctx.log.info(chalk.cyan(' Coding agent and LLM'));\n try {\n const envName = WildoLocationType.LOCAL;\n const result = await establishCreationEssentials({\n log: ctx.log,\n interactive: process.stdin.isTTY === true && ctx.globalFlags.nonInteractive !== true,\n saasRoot: cwd,\n storedProviderEnvNames: readLocalApplicationSecretPresence(envName, ApplicationSecretKind.PROVIDER).stored,\n codingAgentPreference: ctx.preferences?.defaults?.codingAgent,\n });\n if (Object.keys(result.providerEnv).length > 0) updateLocalApplicationSecrets(envName, ApplicationSecretKind.PROVIDER, { set: result.providerEnv });\n return result;\n } catch (error) {\n ctx.log.warn(` Could not check the coding agent and LLM: ${ErrorUtils.extractErrorMessage(error)}. Run \\`wildo local doctor\\`.`);\n return null;\n }\n }\n\n /**\n * `wildo init` re-run inside the application it already created.\n *\n * Deliberately does NOT re-scaffold. The 286 skeleton files are on disk and may carry\n * operator edits; `SaasSkeletonService` refuses a non-empty directory for exactly that\n * reason. What a re-run is FOR is re-asserting the machine-local, non-source state that a\n * scaffold alone does not guarantee — and every step here is idempotent, so running it\n * repeatedly converges rather than churning:\n *\n * - the `local` environment registration (`initializeEnvironment` returns an existing\n * registration untouched);\n * - `secrets.json` — created when absent, otherwise BACKFILLED with any framework-managed\n * material declared since the app was created, rotating nothing (issue #155);\n * - the per-PR validation workflow, which leaves an existing file in place.\n *\n * No prompts for name / runtime / database: those are already answered by the registration\n * and by `wildo.saas.config.ts`, and re-asking would invite an answer that contradicts what\n * is on disk. The administrator is asked for only when there is no `secrets.json` to read\n * one from.\n */\n private async rerunInExistingApp(ctx: CommandContext, cwd: string): Promise<CommandResult> {\n ctx.log.info('');\n ctx.log.info(chalk.dim(` Existing Wildo application detected at ${cwd}`));\n ctx.log.info(chalk.dim(' Re-running init: skeleton left untouched, machine-local state re-asserted.'));\n\n const secretsReport = await EnvironmentRegistry.withSaasRootOverride(\n cwd,\n () => this.provisionLocalSecrets(ctx),\n );\n\n const appName = basename(cwd) || 'app';\n const validationWorkflowResult = this.materializeValidationWorkflow(ctx, cwd, appName);\n /*\n * The RE-RUN path back-fills the repository too, which is the arm that matters most: an application\n * scaffolded before this existed has no repository and cannot accept its journey's output, and\n * `wildo init` in place is exactly what an operator reaches for. Idempotent — an application that\n * already has one is reported, never re-initialized.\n */\n this.initializeApplicationRepository(ctx, cwd);\n\n ctx.log.info('');\n this.reportSecretsOutcome(ctx, secretsReport);\n if (validationWorkflowResult) {\n ctx.log.info(chalk.dim(` CI gate: ${validationWorkflowResult}`));\n }\n ctx.log.info('');\n ctx.log.info(' Next steps:');\n ctx.log.info('');\n ctx.log.info(` ${chalk.bold('wildo align-deps --write')} Align pins with the framework version you installed`);\n ctx.log.info(` ${chalk.bold('wildo update')} Move the CLI and this application to the latest framework release`);\n ctx.log.info(` ${chalk.bold('wildo secrets list')} See which secrets this application needs; set each when a feature asks`);\n // No `wildo config sync` here (#3204): on a machine where no platform has run, its env-files phase cannot reach\n // apps-manager and it exits 1. `local dev` brings the infrastructure and platform up, registers the application and\n // writes every env file and provider-runtime module itself, and a hosted application attaches to its host's platform.\n // `local dev`, not `dev start`: only `local dev` starts the dev companion, which the console drives (#1655).\n ctx.log.info(` ${chalk.bold('wildo local dev')} Start the local stack, register the application, write its configuration, and start it with its dev companion`);\n ctx.log.info('');\n ctx.log.info(` Then create the application from Claude Code: open ${chalk.bold('claude')} in this directory and type ${chalk.bold('/wildo:start')}.`);\n ctx.log.info(chalk.dim(' The /wildo:* commands drive the dev companion; the workbench shows where creation stands.'));\n ctx.log.info('');\n\n // A re-run that could not resolve an administrator has NOT delivered secrets, and the\n // whole point of the re-run was to deliver them — so unlike the scaffold path (where a\n // warning rides alongside 286 files that were genuinely written), there is nothing else\n // to report success about.\n return { success: Boolean(secretsReport.outcome) };\n }\n\n /**\n * Ensure the freshly-registered `local` environment has a complete `secrets.json`.\n *\n * Two branches, and the split is what makes `wildo init` safe to re-run (issue #155):\n *\n * - **A file already exists** — the administrator identity is on disk, so we never\n * re-ask for it, and we hand the EXISTING secrets to the additive provisioner. That\n * backfills any material the framework has declared since the app was created and\n * rotates nothing. A credential a running deployment already holds is never rewritten;\n * re-minting one would orphan the Mongo/Valkey data it protects.\n * - **No file** — resolve the operator-typed half (the administrator) and CREATE it.\n *\n * Returns `blockedReason` instead of throwing when the administrator cannot be resolved.\n * The scaffold has already been written to disk at this point, so failing the whole\n * command would be a confusing lie about what happened; the summary reports the gap and\n * names the exact remedy instead, and a re-run is idempotent.\n */\n /**\n * Write the INITIAL migration of a PostgreSQL application, beside its schema-plan lockfile.\n *\n * On PostgreSQL a resource's table is built by a migration and by NOTHING else, and the first thing\n * that happens to a new application is provisioning: the platform creates its database, the CLI\n * applies its migrations, and apps-manager then SEEDS that database. With no migration to apply the\n * seed meets an empty database and fails on `relation \"applications\" does not exist` — measured\n * 2026-09-16 on a freshly scaffolded application, which is why every PostgreSQL application here had\n * its first migration written by hand before it could be registered at all.\n *\n * So the scaffold writes it, in the same run that built the model it plans from. This is only the\n * FIRST one: `wildo local dev` reconciles later drift, and the build loop derives its own migration\n * step from this same declaration (#1144).\n *\n * Advisory: a scaffold that produced an application is not undone by a migration that could not be\n * planned, so every refusal WARNS and names `wildo db generate`. A MongoDB application never reaches\n * here — its collections exist on first write.\n */\n private async generateInitialApplicationSchema(ctx: CommandContext, saasRoot: string, built: boolean): Promise<string | null> {\n if (!built) {\n ctx.log.warn(\n ' Initial migration NOT generated: the application was not built, so its model cannot be planned. '\n + 'Build it, then run `wildo db generate --name initial-application-schema`.',\n );\n return null;\n }\n const currentJson = await computeCurrentLockfileJson(ctx, saasRoot);\n if (currentJson === undefined) {\n // `computeCurrentLockfileJson` has already said which artifact it refused and why.\n ctx.log.warn(' Initial migration NOT generated — run `wildo db generate --name initial-application-schema` once the model plans.');\n return null;\n }\n const current = parseSchemaPlanLockfile(currentJson);\n try {\n const written = writeSchemaPlanMigration({\n saasRoot,\n name: 'initial-application-schema',\n // The empty model: every table of a new application is an ADD_TABLE, which is why this\n // migration is SAFE by construction and needs no review gate.\n accepted: { lockfileFormatVersion: current.lockfileFormatVersion, plannerContractVersion: current.plannerContractVersion, tables: {} },\n current,\n currentJson,\n });\n if (written === null) {\n ctx.log.warn(' Initial migration NOT generated: the model plans no tables.');\n return null;\n }\n return `${written.folderName} (${written.changes.length} table(s)) + schema-plan.lock.json`;\n } catch (error) {\n ctx.log.warn(` Initial migration NOT generated: ${ErrorUtils.extractErrorMessage(error)}`);\n return null;\n }\n }\n\n private async provisionLocalSecrets(\n ctx: CommandContext,\n ): Promise<{ outcome: SecretsProvisioningOutcome | null; blockedReason?: string }> {\n const envName = WildoLocationType.LOCAL;\n\n if (EnvironmentUtils.loadSecretsJson(envName)) {\n return { outcome: SecretsProvisioning.ensureForEnvironment(envName) };\n }\n\n let admin: AdminUserInput;\n try {\n admin = await this.resolveAdministratorIdentity(ctx);\n } catch (error) {\n return { outcome: null, blockedReason: ErrorUtils.extractErrorMessage(error) };\n }\n\n /*\n * The SECOND administrator, minted in the same breath as the first (#575).\n *\n * `applicationAccessGrantApproverIsDistinct` refuses an approver who is the requester and\n * refuses an absent one, and the application-scoped grant has no auto-approval branch — so a\n * platform provisioned with one administrator cannot authorize classified grant-controlled application-wide reads.\n * Provisioning one and leaving the second to a runbook is what makes that control unusable in\n * practice, so both are created here or neither is.\n *\n * `isLocalEnvironment: true` is a STATEMENT, not an inference: this function creates the app's\n * `local` secrets and nothing else (`envName` above is `WildoLocationType.LOCAL`). It is what\n * licenses the sub-addressed derivation, and it is the only thing that does — a remote\n * environment reaching `resolveApproverIdentity` without the seeds is refused.\n */\n let approver: AdminUserInput;\n try {\n approver = resolveApproverIdentity({ admin, isLocalEnvironment: true, log: ctx.log }).approver;\n } catch (error) {\n return { outcome: null, blockedReason: ErrorUtils.extractErrorMessage(error) };\n }\n\n /*\n * ADOPT this machine's shared platform credentials before minting anything.\n *\n * `provisionFrameworkManagedSecrets` is ADDITIVE — it mints only what is absent — so seeding the\n * draft is the whole mechanism: every adopted value is simply already provisioned, and everything\n * per-application is minted exactly as before. Nothing is overwritten, because the draft's own\n * entries (the administrator the operator just supplied) win.\n *\n * Without this, a new application on a machine already running a platform mints a fresh,\n * internally-consistent set that authenticates to NOTHING — 16 of 25 shared secrets diverged when\n * this was measured, and the operator saw one line naming `PLATFORM_ADMIN_SECRET`, which was one\n * of the sixteen.\n */\n const draft: Record<string, unknown> = {};\n await this.adoptLocalDefaults(ctx, draft);\n\n const outcome = SecretsProvisioning.ensureForEnvironment(envName, {\n createWith: {\n // Whatever was adopted. Empty when there is no local-defaults file, or the operator declined.\n ...(draft as object),\n admin: {\n email: admin.email,\n firstName: admin.firstName,\n lastName: admin.lastName,\n // OMITTED rather than passed as `undefined` when the operator gave no password:\n // the ADMIN_PASSWORD framework-managed material mints a 16-char one, which keeps\n // the \"who minted this?\" answer in a single registry.\n ...(admin.password ? { password: admin.password } : {}),\n },\n approver: {\n email: approver.email,\n firstName: approver.firstName,\n lastName: approver.lastName,\n // Same omission rule, and it is what makes \"the same password as the administrator\" true\n // rather than approximately true: when the operator typed none, BOTH are left for the\n // framework-managed materials to mint, and the ADMIN_PASSWORD material copies the\n // administrator's rather than generating a second one.\n ...(approver.password ? { password: approver.password } : {}),\n },\n },\n });\n\n // Mark the environment set up so a later noninteractive setup remains a no-op rather than\n // unnecessarily regenerating infrastructure. Setup reconfiguration itself now preserves existing\n // credentials; force requests configuration re-authoring, never credential rotation.\n EnvironmentLifecycle.setSetupStatus(SetupStatus.COMPLETED, envName);\n\n return { outcome };\n }\n\n /**\n * The resolved local-defaults decision, memoized for the RUN rather than for the call.\n *\n * `undefined` = not asked yet; `null` = nothing to adopt, or the operator declined.\n *\n * It is read at two moments that must not disagree — the scaffold, which authors whether this\n * application owns its environment's infrastructure, and the secrets step, which seeds the draft —\n * and asking twice would put the same confirm prompt in front of the operator twice and let the two\n * answers differ. One decision, two consequences.\n */\n private localDefaultsDecision: WildoLocalDefaults | null | undefined = undefined;\n\n /** {@link localDefaultsDecision}, resolving it on first call. */\n private async resolveLocalDefaultsOnce(ctx: CommandContext): Promise<WildoLocalDefaults | null> {\n if (this.localDefaultsDecision !== undefined) return this.localDefaultsDecision;\n // The decision itself lives in the service, so `wildo setup` reaches it the same way and the\n // no-TTY fallback cannot differ between the two commands.\n this.localDefaultsDecision = await resolveLocalDefaultsAdoption({\n mode: String(\n ctx.flags.localDefaults\n ?? ctx.flags['local-defaults']\n ?? ctx.cliContext.preferences?.defaults?.localDefaults\n ?? LocalDefaultsMode.ASK,\n ),\n canAsk: process.stdin.isTTY === true && ctx.globalFlags.nonInteractive !== true,\n confirm: async (found) => {\n ctx.log.info('');\n ctx.log.info(chalk.cyan(` Machine local defaults found: ${describeSharedLocalDefaults(found)}`));\n return this.prompt<boolean>(ctx, {\n id: 'adopt-local-defaults',\n type: 'confirm',\n message: 'Adopt them, so this application joins the platform already running on this machine?',\n default: true,\n });\n },\n });\n return this.localDefaultsDecision;\n }\n\n /** The provider-key decision, taken once: the keys to seed, or `null`. */\n private providerKeyDefaultsDecision: Readonly<Record<string, string>> | null | undefined = undefined;\n\n /** {@link providerKeyDefaultsDecision}, resolving it on first call. */\n private async resolveProviderKeyDefaultsOnce(ctx: CommandContext): Promise<Readonly<Record<string, string>> | null> {\n if (this.providerKeyDefaultsDecision !== undefined) return this.providerKeyDefaultsDecision;\n this.providerKeyDefaultsDecision = await resolveProviderKeyDefaultsAdoption({\n mode: String(\n ctx.flags.providerKeyDefaults\n ?? ctx.flags['provider-key-defaults']\n ?? ctx.cliContext.preferences?.defaults?.providerKeyDefaults\n ?? DEFAULT_PROVIDER_KEY_DEFAULTS_MODE,\n ),\n canAsk: process.stdin.isTTY === true && ctx.globalFlags.nonInteractive !== true,\n confirm: (names) => this.prompt<boolean>(ctx, {\n id: 'adopt-provider-key-defaults',\n type: 'confirm',\n message: `Seed this application with the provider keys captured on this machine (${names.join(', ')})?`,\n default: true,\n }),\n });\n return this.providerKeyDefaultsDecision;\n }\n\n /**\n * Seed the secrets draft from `~/.wildo/local-defaults.json`: the shared half under `--local-defaults`,\n * the provider keys under `--provider-key-defaults`.\n *\n * Returns what was adopted, or `null` when there was nothing to adopt or the operator declined.\n *\n * ASK falls back to ADOPT with no TTY rather than to SKIP, and that direction is deliberate: a\n * headless run that silently MINTS produces an application which cannot reach the running platform,\n * and the failure surfaces much later as an authentication error naming one secret out of sixteen.\n * Adopting is both the recoverable choice and the one the operator meant by capturing the file.\n */\n private async adoptLocalDefaults(\n ctx: CommandContext,\n draft: Record<string, unknown>,\n ): Promise<{ sharedKeys: readonly string[]; providerKeys: readonly string[] } | null> {\n const defaults = await this.resolveLocalDefaultsOnce(ctx);\n const sharedKeys = defaults ? applySharedLocalDefaults(draft, defaults) : [];\n /*\n * The provider keys are their OWN decision (`--provider-key-defaults`), taken even when the shared\n * half was skipped or declined: an application that owns its platform still wants the OpenAI key\n * this machine captured. See \"Two halves, two decisions\" in local-defaults.service.ts.\n */\n const providerEnv = await this.resolveProviderKeyDefaultsOnce(ctx);\n const providerKeys = providerEnv ? applyProviderKeyDefaults(draft, providerEnv) : [];\n if (sharedKeys.length === 0 && providerKeys.length === 0) return null;\n ctx.log.info(chalk.dim(\n ` Adopted ${sharedKeys.length} shared infrastructure value(s) and `\n + `${providerKeys.length} provider key(s) from ~/.wildo/local-defaults.json`,\n ));\n return { sharedKeys, providerKeys };\n }\n\n /**\n * Resolve the platform-administrator identity for the app's local `secrets.json`.\n *\n * Four doors, in order — flags, env seeds, prompt, refusal:\n *\n * 1. `--admin-email` + `--admin-first-name` + `--admin-last-name` (all three, together).\n * 2. `--non-interactive` -> the `WILDO_INIT_ADMIN_*` seeds, fail-closed when absent.\n * 3. interactive -> the shared `wildo setup` prompt, with the seeds as prefilled defaults.\n *\n * No door substitutes a placeholder, and that is deliberate rather than strict. A literal\n * 'Admin' / 'User' / `noreply@example.com` silently seeds the platform-admin USER RECORD\n * with non-meaningful identity, which regresses audit trails, password-reset email and the\n * bootstrap email-confirm flow — and apps-manager requires `ADMIN_FIRST_NAME` /\n * `ADMIN_LAST_NAME` fail-closed anyway. See `platformAdminUserModule`, which owns that\n * doctrine and which door 3 reuses rather than re-implementing.\n *\n * Only the PASSWORD may be omitted; the secrets writer generates one.\n */\n private async resolveAdministratorIdentity(ctx: CommandContext): Promise<AdminUserInput> {\n /*\n * Flag first, then the MACHINE's stated identity — who the operator is does not change between\n * two applications created an hour apart, and re-typing it is the operator restating something\n * `~/.wildo/preferences.json` already holds. A flag still overrides per run, so one application\n * can carry a different administrator without the file being edited.\n *\n * The PASSWORD is deliberately absent from that file and stays flag/env-only. `preferences.json`\n * is ordinary-permission machine config holding ANSWERS; credential MATERIAL lives in\n * `local-defaults.json` beside it, which is written `0600` — and an omitted password is minted\n * by the framework-managed materials anyway, which is the better answer than storing one.\n */\n const machine = ctx.cliContext.preferences?.defaults;\n const email = this.readAdminFlag(ctx, 'admin-email', 'adminEmail') ?? machine?.adminEmail;\n const firstName = this.readAdminFlag(ctx, 'admin-first-name', 'adminFirstName') ?? machine?.adminFirstName;\n const lastName = this.readAdminFlag(ctx, 'admin-last-name', 'adminLastName') ?? machine?.adminLastName;\n const password = this.readAdminFlag(ctx, 'admin-password', 'adminPassword');\n\n const missing = [\n !email && '--admin-email',\n !firstName && '--admin-first-name',\n !lastName && '--admin-last-name',\n ].filter((flag): flag is string => Boolean(flag));\n\n if (missing.length === 0) {\n if (!(email!.includes('@') && email!.includes('.'))) {\n throw new Error(`--admin-email is not a valid email address: \"${email}\".`);\n }\n return { email: email!, firstName: firstName!, lastName: lastName!, password };\n }\n\n // A PARTIAL set of flags is an operator mistake, not a request to fall back. Falling\n // through to a prompt here would silently discard the values that WERE supplied.\n if (missing.length < 3) {\n throw new Error(\n 'Partial platform-administrator identity: --admin-email, --admin-first-name and '\n + `--admin-last-name must resolve together. Missing: ${missing.join(', ')}. `\n + 'Supply them as flags, or state them once on this machine under `defaults` in '\n + '~/.wildo/preferences.json (`wildo prefs set --admin-email … --admin-first-name … '\n + '--admin-last-name …`).',\n );\n }\n\n /*\n * NO TTY is the same situation as `--non-interactive`, and treating it differently cost real\n * secrets.\n *\n * The seeds were reachable only behind the explicit flag; the interactive door uses them as\n * PREFILLED DEFAULTS. So a scripted run without the flag — a CI step, a backgrounded shell, any\n * pipeline with stdin closed — reached the prompt, the prompt was force-closed by EOF, and init\n * completed with a WARNING that secrets were not provisioned. Measured 2026-09-17: the run looked\n * successful, `secrets.json` was absent, and the failure surfaced later as `config sync` refusing\n * its env-files phase.\n *\n * Asking whether a person can answer is what the two branches actually differ on, so ask that\n * rather than requiring the operator to have declared it in advance.\n */\n if (ctx.globalFlags.nonInteractive === true || process.stdin.isTTY !== true) {\n return resolveAdminUserFromEnvSeeds(ctx.log);\n }\n\n return platformAdminUserModule.prompt({ log: ctx.log });\n }\n\n /**\n * Read one administrator flag in both spellings the kernel may expose it under, mirroring\n * how `--config-only` / `--port-base` are read elsewhere in this command. Blank strings\n * are treated as absent so a stray `--admin-email=` cannot install an empty identity.\n */\n private readAdminFlag(ctx: CommandContext, kebab: string, camel: string): string | undefined {\n const raw = (ctx.flags[camel] ?? ctx.flags[kebab]) as string | undefined;\n if (typeof raw !== 'string') return undefined;\n const trimmed = raw.trim();\n return trimmed === '' ? undefined : trimmed;\n }\n\n /** Render the secrets step's result as one line of the scaffold summary. */\n private reportSecretsOutcome(\n ctx: CommandContext,\n report: { outcome: SecretsProvisioningOutcome | null; blockedReason?: string },\n ): void {\n if (!report.outcome) {\n ctx.log.warn(` Secrets: NOT provisioned — ${report.blockedReason}`);\n ctx.log.warn(\n \" `wildo config sync` will fail its env-files phase until they exist. \"\n + 'Re-run `wildo init` with --admin-email / --admin-first-name / --admin-last-name '\n + `(or set ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL}, `\n + `${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME}, `\n + `${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME}) — it is idempotent and `\n + 'leaves everything already scaffolded untouched.',\n );\n return;\n }\n\n switch (report.outcome.status) {\n case SecretsProvisioningStatus.CREATED:\n ctx.log.info(chalk.dim(\n ` Secrets: secrets.json minted (${report.outcome.mintedRefs.length} framework-managed materials)`,\n ));\n break;\n case SecretsProvisioningStatus.PROVISIONED:\n ctx.log.info(chalk.dim(\n ` Secrets: secrets.json backfilled (${report.outcome.mintedRefs.length} newly-declared material(s), nothing rotated)`,\n ));\n break;\n case SecretsProvisioningStatus.ALREADY_COMPLETE:\n ctx.log.info(chalk.dim(' Secrets: secrets.json already complete — nothing minted'));\n break;\n case SecretsProvisioningStatus.NO_SECRETS_FILE:\n // Unreachable: the create branch above always supplies `createWith`. Reported rather\n // than ignored so a future refactor that drops the draft cannot fail silently.\n ctx.log.warn(' Secrets: not provisioned — no operator draft reached the provisioner.');\n break;\n }\n }\n\n /**\n * Best-effort install of the per-PR validation workflow. Returns a\n * one-line human-readable status the caller can render in the\n * scaffold summary, or `null` if the framework path could not be\n * resolved (e.g. operator is running a globally-installed CLI without\n * the framework checkout — rare, but the scaffold must still succeed).\n *\n * Slice 6.8 / F-48 — kept in `init` so a brand-new app gets the gate\n * by default, and mirrored in `wildo setup` so existing pre-Slice-6.8\n * apps can back-fill it idempotently.\n */\n /**\n * Resolve `src/generated/csp.generated.json` FOR REAL, right after the scaffold installs (#417).\n *\n * The skeleton ships a hand-written `csp.generated.json.hbs` — a generated-LOOKING artifact that\n * no resolution produced. It exists because the frontend imports the file at build time, so\n * something has to be there before the first `wildo dev start` runs the sync. Keeping it is fine;\n * shipping it as the ONLY thing that ever wrote that path was not.\n *\n * BEST-EFFORT by design, the same posture this command already takes for the validation workflow\n * and the asset homes: a scaffold that produced 286 correct files must not fail because one\n * derived artifact could not be resolved. The next `wildo dev start` resolves it anyway, so the\n * cost of a miss is that the placeholder survives one step longer.\n *\n * Skipped without install, because resolving loads the application's own TypeScript config\n * through its `node_modules`.\n */\n private async resolveInitialCspArtifact(\n ctx: CommandContext,\n appRoot: string,\n installed: boolean,\n ): Promise<string | null> {\n if (!installed) {\n return null;\n }\n try {\n const result = await CspSyncService.sync({\n saasRoot: appRoot,\n envName: 'local',\n // No `serviceKey`: every CSP-capable frontend the scaffold produced is resolved, so a\n // scenario that added a website or a docs portal is covered without naming them here.\n env: process.env,\n });\n const written = result.services.filter((service) => service.wroteChanges).length;\n return written > 0 ? `resolved ${written} CSP artifact(s)` : null;\n } catch (error) {\n ctx.log.warn(\n `Could not resolve the initial CSP artifact: ${ErrorUtils.extractErrorMessage(error)}. `\n + 'The scaffold placeholder is still in place; `wildo dev sync-csp` resolves it.',\n );\n return null;\n }\n }\n\n /**\n * Apply the planned layers onto a materialized base at `appRoot`: for each layer, the registry modules it references\n * (#2879), installed through the `wildo registry add` pipeline from the bytes fetched up front, then its own content,\n * which may import them. `afterLayer` runs once per layer, after both.\n */\n private async applyBlueprintLayersOnto(input: {\n readonly appRoot: string;\n readonly identity: { readonly slug: string; readonly displayName: string };\n readonly plan: BlueprintInitPlan;\n readonly frameworkPath: string | null;\n readonly log?: CommandContext['log'];\n readonly afterLayer?: (layer: LoadedBlueprintArtifact, parameters: Readonly<Record<string, BlueprintParameterValue>>, lines: readonly string[]) => void;\n }): Promise<void> {\n const lowerLayerFiles = new Set<string>();\n const lowerLayerDeclarations: BlueprintDeclarationTarget[] = [];\n for (const [index, layer] of input.plan.layers.entries()) {\n const parameters = input.plan.parameters[index] ?? {};\n const referenceLines = await installBlueprintModuleReferences({\n applicationRoot: input.appRoot,\n frameworkRoot: input.frameworkPath,\n layer,\n acquired: input.plan.references,\n ...(input.log === undefined ? {} : { log: input.log }),\n });\n const outcome = applyBlueprintLayer({\n applicationRoot: input.appRoot,\n frameworkRoot: input.frameworkPath,\n layer,\n parameters,\n identity: input.identity,\n lowerLayerFiles,\n lowerLayerDeclarations,\n });\n for (const written of outcome.written) lowerLayerFiles.add(written);\n lowerLayerDeclarations.push(...outcome.declared);\n /*\n * The line is answered in the step of the layer that names it (#2863), so the rehearsal checks it and that\n * layer's commit carries the dossier. After the layer's own files: a dossier one of them carried is read first.\n */\n const lineLines = input.plan.line?.declaredBy === layer\n ? [await recordBlueprintLineAnswer({ applicationRoot: input.appRoot, resolved: input.plan.line, answeredAt: new Date().toISOString() })]\n : [];\n input.afterLayer?.(layer, parameters, [...referenceLines, ...outcome.lines, ...lineLines]);\n }\n }\n\n private async rehearseBlueprintLayers(\n plan: BlueprintInitPlan,\n scaffold: Pick<SaasSkeletonOptions, 'name' | 'frameworkPath' | 'mode' | 'database' | 'infrastructureHost'>,\n ): Promise<void> {\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-init-blueprint-rehearsal-'));\n try {\n // A fixed directory name: the application's NAME is not a path segment, and `--name ../x` must not leave the\n // scratch directory. The skeleton takes the name from `scaffold.name`, not from the directory.\n const materialized = SaasSkeletonService.materialize(join(scratch, 'application'), {\n ...scaffold,\n deliverCompanion: false,\n log: { info: () => undefined, warn: () => undefined },\n });\n await this.applyBlueprintLayersOnto({\n appRoot: materialized.appRoot,\n identity: { slug: materialized.slug, displayName: materialized.displayName },\n plan,\n frameworkPath: scaffold.frameworkPath,\n });\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n }\n\n /**\n * Apply the blueprint layers on the materialized base, before install (epic #2856, #2859).\n *\n * The repository is created FIRST, so the base is its own commit and every layer is one more — git is how a layer\n * is reviewed and undone (`git revert`), and acceptance in Wildo is a commit. When the application sits inside\n * a repository that tracks it, that repository's commits are the acceptance and no commit is made here.\n */\n private async applyBlueprintLayers(\n ctx: CommandContext,\n context: SaasSkeletonMaterializedContext,\n plan: BlueprintInitPlan,\n frameworkPath: string | null,\n ): Promise<ReturnType<InitCommand['initializeApplicationRepository']>> {\n const repository = this.initializeApplicationRepository(ctx, context.appRoot);\n await this.applyBlueprintLayersOnto({\n appRoot: context.appRoot,\n identity: { slug: context.slug, displayName: context.displayName },\n plan,\n frameworkPath,\n log: ctx.log,\n afterLayer: (layer, parameters, lines) => {\n ctx.log.info(` Blueprint ${layer.manifest.id}@${layer.manifest.version}: ${lines.join('; ') || 'nothing to apply'}`);\n if (repository !== 'created') return;\n const parameterLines = Object.entries(parameters).map(([name, value]) => `- ${name} = ${String(value)}`);\n const referenceLines = lines.filter((line) => line.startsWith('registry module ')).map((line) => `- ${line.slice('registry module '.length)}`);\n this.commitEverything(ctx, context.appRoot, [\n `Applied blueprint ${layer.manifest.id}@${layer.manifest.version}`,\n '',\n layer.manifest.description,\n ...(parameterLines.length > 0 ? ['', 'Parameters:', ...parameterLines] : []),\n ...(referenceLines.length > 0 ? ['', 'Registry modules installed:', ...referenceLines] : []),\n ].join('\\n'));\n },\n });\n return repository;\n }\n\n /**\n * After the closing commit, say what init left uncommitted, if anything (#3234).\n *\n * The tree should be clean: every step that writes ran before the commit, and what they write is either committed or\n * git-ignored. A path listed here is a writer that escaped that ordering (or a commit git refused), and saying so is\n * the difference between a known leftover and one the first build task silently folds into its own commit.\n */\n private reportUncommittedInitLeftovers(ctx: CommandContext, appRoot: string): void {\n let porcelain: string;\n try {\n porcelain = execFileSync('git', ['status', '--porcelain'], { cwd: appRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n } catch {\n return;\n }\n if (porcelain === '') return;\n const paths = porcelain.split('\\n');\n ctx.log.warn(` wildo init left ${paths.length} uncommitted path(s); commit them before the journey starts, since acceptance is a commit:`);\n for (const line of paths.slice(0, 10)) ctx.log.warn(` ${line}`);\n if (paths.length > 10) ctx.log.warn(` … and ${paths.length - 10} more (\\`git status\\`).`);\n }\n\n /** Stage everything and commit it, best-effort: a refused commit is reported, never fatal. */\n private commitEverything(ctx: CommandContext, appRoot: string, message: string): void {\n try {\n execFileSync('git', ['add', '-A'], { cwd: appRoot, stdio: ['ignore', 'pipe', 'ignore'] });\n const staged = execFileSync('git', ['diff', '--cached', '--name-only'], { cwd: appRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n if (staged === '') return;\n execFileSync('git', ['commit', '-m', message], { cwd: appRoot, stdio: ['ignore', 'pipe', 'ignore'] });\n } catch {\n ctx.log.warn(` Could not commit \"${message.split('\\n')[0]}\" (is \\`user.email\\` configured?). Commit it before running the journey: acceptance is a commit.`);\n }\n }\n\n /**\n * Give the scaffolded application its own git repository, and commit the scaffold into it.\n *\n * ## Why the scaffold owns this\n *\n * `one-source-of-truth.md`: git is the accepted state, and acceptance is a commit. The creation lane\n * reads landing from git — a specification family is accepted when its file is committed, a build task\n * has landed when every artifact it `produces` is in the working tree as git sees it (#3204), and the\n * companion's build checkpoints commit it. An application with no repository therefore cannot accept its\n * own journey's output: git sees no product, no checkpoint can be made, and the build queue parks.\n *\n * The skeleton already ships a `.gitignore` written for a STANDALONE application (\"an app scaffolded\n * OUTSIDE the framework monorepo has no parent .gitignore\"), so the repository is the half that was\n * missing rather than a new idea.\n *\n * ## When it does NOT create one, which is the part that needs the rule\n *\n * A destination already tracked by a repository belongs to that repository — a monorepo scaffolding an\n * application into `apps/`, most obviously — and nesting a second one there would split its history for\n * no reason. So:\n *\n * | destination | what happens |\n * |---|---|\n * | inside no repository at all | initialize one here |\n * | inside a repository that IGNORES it (the framework's own `examples/scratch-*`) | initialize one here: the container will never track it, so it can never accept anything |\n * | inside a repository that tracks it | leave it alone — that repository's commits are the acceptance |\n * | already its own repository root | leave it alone |\n *\n * Best-effort in every arm: a machine with no `git`, or a repository that refuses, must not fail a\n * scaffold that otherwise succeeded. What it must not do is stay SILENT — the operator is told which\n * arm ran, because \"acceptance is a commit\" is unusable knowledge without knowing where the commits go.\n */\n private initializeApplicationRepository(ctx: CommandContext, appRoot: string): 'created' | 'existing' | 'container' | 'unavailable' {\n const git = (args: readonly string[], cwd: string): string | null => {\n try {\n return execFileSync('git', [...args], { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n } catch {\n return null;\n }\n };\n\n /*\n * REAL paths on both sides. `git rev-parse --show-toplevel` answers the resolved path, while the\n * scaffold's `cwd` can carry a symlink — on macOS every temporary directory does (`/var` → `/private/var`)\n * — so comparing them as written makes an application that IS its own repository read as one nested in a\n * container of the same name. Found by the test driving real repositories rather than a stubbed `git`.\n */\n const real = (candidate: string): string => {\n try {\n return realpathSync(candidate);\n } catch {\n return resolvePath(candidate);\n }\n };\n const containerRoot = git(['rev-parse', '--show-toplevel'], appRoot);\n if (containerRoot !== null && real(containerRoot) === real(appRoot)) {\n ctx.log.info(' This application is already a git repository; its commits are how the journey accepts what it produces.');\n return 'existing';\n }\n if (containerRoot !== null) {\n // `check-ignore` exits non-zero (→ null here) when the path is NOT ignored, which is the tracked case.\n const ignored = git(['check-ignore', appRoot], containerRoot) !== null;\n if (!ignored) {\n ctx.log.info(` This application lives inside the git repository at ${containerRoot}; its commits are how the journey accepts what it produces.`);\n return 'container';\n }\n }\n\n if (git(['init'], appRoot) === null) {\n ctx.log.warn(\n ' Could not initialize a git repository for this application. Acceptance in Wildo is a git commit — '\n + 'the creation lane reads whether an artifact or a build task has landed from git — so run `git init` '\n + 'here before running the journey, or its build tasks will never land.',\n );\n return 'unavailable';\n }\n git(['add', '-A'], appRoot);\n const committed = git(['commit', '-m', 'Scaffolded by wildo init'], appRoot);\n ctx.log.info(` Initialized a git repository for this application${committed === null ? '' : ' and committed the scaffold'}.`);\n if (committed === null) {\n ctx.log.warn(' The scaffold could not be committed (is `user.email` configured?). Commit it before running the journey: acceptance is a commit.');\n }\n return 'created';\n }\n\n private materializeValidationWorkflow(\n ctx: CommandContext,\n appRoot: string,\n appName: string,\n ): string | null {\n const frameworkPath = ctx.cliContext.resolvedHomes.framework.repositoryRoot;\n if (!frameworkPath) {\n ctx.log.warn(\n 'Skipping `.github/workflows/wildo-config-validation.yml` install: framework path not resolved. '\n + 'Re-run `wildo setup` from this app once the framework is on PATH.',\n );\n return null;\n }\n try {\n const result = installValidationWorkflow(appRoot, frameworkPath, { appName });\n if (result.created) {\n return `installed ${result.path.replace(`${appRoot}/`, '')}`;\n }\n if (result.skipped) {\n return `${result.path.replace(`${appRoot}/`, '')} already present (left in place)`;\n }\n return result.path;\n } catch (error) {\n ctx.log.warn(\n `Could not install per-PR validation workflow: ${ErrorUtils.extractErrorMessage(error)}. `\n + 'Re-run `wildo setup` to retry.',\n );\n return null;\n }\n }\n}\n"]}
1
+ {"version":3,"file":"init.command.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AAe,EACf,OAAe;QAEf,MAAM,aAAa,GAAG,GAAG,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,cAAc,CAAC;QAC5E,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,GAAG,CAAC,GAAG,CAAC,IAAI,CACV,iGAAiG;kBAC/F,mEAAmE,CACtE,CAAC;YACF,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,yBAAyB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;YAC9E,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACnB,OAAO,aAAa,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC;YAC/D,CAAC;YACD,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACnB,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,GAAG,EAAE,EAAE,CAAC,kCAAkC,CAAC;YACrF,CAAC;YACD,OAAO,MAAM,CAAC,IAAI,CAAC;QACrB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,GAAG,CAAC,GAAG,CAAC,IAAI,CACV,iDAAiD,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,IAAI;kBACxF,gCAAgC,CACnC,CAAC;YACF,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF","sourcesContent":["/**\n * init — Create a new Wildo targeted app (`wildo.saas.config.ts`).\n *\n * Uses prompt() for interactive flow with automatic flag resolution:\n * --name, --runtime, --database skip the corresponding prompts.\n *\n * Side effects:\n * 1. Writes `wildo.saas.config.ts` via `SaasScaffoldService`\n * 2. Registers a default 'local' environment in EnvironmentRegistry\n * with the chosen runtime + database\n * 3. Provisions that environment's `secrets.json` (issue #155)\n *\n * On (3): `secrets.json` is PER-APPLICATION, and before #155 nothing on the app-creator\n * path ever wrote one — `wildo setup` was the sole minter and it fail-closes without a\n * framework checkout, which an app created outside the monorepo does not have. The result\n * was `wildo config sync` failing its `env-files` phase with \"No secrets for 'local'. Run\n * 'wildo init' first.\" at the end of a run of `wildo init`, and the companion then dying on\n * a NaN `PORT`. Init now mints them, so that message is true.\n *\n * It is IDEMPOTENT, deliberately: minting routes through the same additive\n * `provisionFrameworkManagedSecrets` registry that the self-heal paths use, so re-running\n * `wildo init` over an existing app backfills any newly-declared material and rotates\n * NOTHING — re-minting a live credential would orphan the Mongo/Valkey data it protects.\n * A re-run also never re-asks for the administrator: the identity is already on disk.\n *\n * Supports --check to verify tools only (profile-aware: K8s tools\n * checked only when the active environment uses a K8s runtime).\n */\n\nimport { establishCreationEssentials, type CreationEssentialsResult } from '~wildo-cli/modules/domain/credentials/creation-essentials.module';\nimport { readLocalApplicationSecretPresence, updateLocalApplicationSecrets } from '~wildo-cli/services/credentials/local-secrets-store.service';\nimport chalk from 'chalk';\nimport { execFileSync } from 'child_process';\nimport { existsSync, mkdtempSync, realpathSync, rmSync } from 'fs';\nimport { tmpdir } from 'os';\nimport { basename, dirname, join, resolve as resolvePath } from 'path';\nimport { linkableFrameworkCheckout } from '@wildo-ai/application-creation-runtime';\nimport { BaseCommand } from '~wildo-cli/kernel/base-command';\nimport { CommandCategory } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport type { CommandMeta, CommandContext, CommandResult } from '~wildo-cli/kernel/types';\nimport {\n InitFlag,\n SCAFFOLD_LOCK_SECTION_KEY,\n ScaffoldLockSectionSchema,\n WORKSPACE_CONFIG_NAMES,\n withLockfileSectionMutate,\n type BlueprintDeclarationTarget,\n type BlueprintParameterValue,\n} from '@wildo-ai/platform-config-lib';\nimport { readBlueprintArtifact, type LoadedBlueprintArtifact } from '~wildo-cli/services/blueprint/blueprint-artifact.service';\nimport { acquireRegistryBlueprint, isRegistryBlueprintSpec } from '~wildo-cli/services/blueprint/blueprint-registry.service';\nimport { acquireBlueprintModuleReferences, installBlueprintModuleReferences } from '~wildo-cli/services/blueprint/blueprint-module-references.service';\nimport { assertBlueprintLine, recordBlueprintLineAnswer, resolveBlueprintLine, type ResolvedBlueprintLine } from '~wildo-cli/services/blueprint/blueprint-line.service';\nimport { frameworkBlueprintId, resolveFrameworkBlueprint } from '~wildo-cli/services/blueprint/framework-blueprint-catalog.service';\nimport { ApplicationLine } from '@wildo-ai/saas-specifications/application-creation';\nimport type { AcquiredModule } from '~wildo-cli/services/registry/module-install.service';\nimport { RegistryCredentialsService } from '~wildo-cli/services/registry/registry-credentials.service';\nimport { resolveRegistryUrlForCommand } from '~wildo-cli/services/registry/registry-command.utils';\nimport {\n applyBlueprintLayer,\n buildScaffoldRecord,\n parseBlueprintParamAssignments,\n resolveBlueprintChain,\n resolveBlueprintInitFlags,\n resolveBlueprintParameters,\n type ResolvedBlueprintInitFlags,\n} from '~wildo-cli/services/blueprint/blueprint-apply.service';\nimport { ApplicationSecretKind } from '@wildo-ai/platform-core-shared';\nimport { parseSchemaPlanLockfile } from '@wildo-ai/saas-backend-lib';\nimport { computeCurrentLockfileJson } from '~wildo-cli/commands/db/db-schema-plan.utils';\nimport { writeSchemaPlanMigration } from '~wildo-cli/commands/db/db-schema-plan-migration.utils';\nimport { SaasScaffoldService } from '~wildo-cli/services/application/saas-scaffold.service';\nimport { SaasSkeletonService, SkeletonMode } from '~wildo-cli/services/application/saas-skeleton.service';\nimport type { SaasSkeletonMaterializedContext, SaasSkeletonOptions, SaasSkeletonResult } from '~wildo-cli/services/application/saas-skeleton.service';\nimport { installValidationWorkflow } from '~wildo-cli/services/deployment/ci-workflow-generator.service';\nimport { SUPPORTED_NODE_MAJOR_VERSION } from '~wildo-cli/services/deployment/host-toolchain-readiness.service';\nimport { CspSyncService } from '~wildo-cli/services/security/csp-sync.service';\nimport { VersionChecker } from '~wildo-cli/services/tools/utility-tools.service';\nimport {\n PlatformEnv_Utility_Tools,\n ToolProfile,\n} from '~wildo-cli/services/environment/environment.schemas';\nimport {\n BackingServiceSource,\n DatabaseEngine,\n DEFAULT_APPLICATION_DATABASE_ENGINE,\n WildoDeploymentRuntime,\n WildoLocationType,\n} from '@wildo-ai/platform-config-lib';\nimport { EnvironmentLifecycle } from '~wildo-cli/services/environment/environment-lifecycle.service';\nimport { EnvironmentRegistry } from '~wildo-cli/services/environment/environment-registry.service';\nimport { EnvironmentUtils } from '~wildo-cli/services/environment/environment.service';\nimport { SetupStatus } from '~wildo-cli/services/environment/environment.schemas';\nimport {\n SecretsProvisioning,\n SecretsProvisioningStatus,\n} from '~wildo-cli/services/credentials/secrets-provisioning.service';\nimport type { SecretsProvisioningOutcome } from '~wildo-cli/services/credentials/secrets-provisioning.service';\nimport type { WildoLocalDefaults } from '~wildo-cli/services/credentials/local-defaults.service';\nimport {\n applyProviderKeyDefaults,\n applySharedLocalDefaults,\n DEFAULT_PROVIDER_KEY_DEFAULTS_MODE,\n describeSharedLocalDefaults,\n LocalDefaultsMode,\n resolveInfrastructureHostFor,\n resolveLocalDefaultsAdoption,\n resolveProviderKeyDefaultsAdoption,\n} from '~wildo-cli/services/credentials/local-defaults.service';\nimport {\n platformAdminUserModule,\n resolveAdminUserFromEnvSeeds,\n} from '~wildo-cli/modules/domain/credentials/admin-user.module';\nimport { resolveApproverIdentity } from '~wildo-cli/modules/domain/credentials/approver-user.module';\nimport type { AdminUserInput } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { WildoCliInitAdminEnvKeys } from '~wildo-cli/services/credentials/credentials.schemas';\nimport { ApplicationAssetsDeliveryService, ApplicationAssetsLaneStatus } from '~wildo-cli/services/application/application-assets-delivery.service';\nimport {\n FRAMEWORK_LABEL_BASE_TEMPLATES_RELATIVE,\n seedEngineComponentLabelBaseForBackend,\n} from '~wildo-cli/services/application/engine-label-base-seeding.service';\nimport { assessApplicationAiUseDeclarations, describeAiUseDeclarationReport } from '~wildo-cli/services/application/ai-use-declarations.service';\n\nconst MINIMUM_VERSIONS: Record<string, string> = {\n /*\n * DERIVED from the framework's named authority (#421). It was a literal `'20.0.0'`, which let a\n * developer start an application on a major two behind the one the framework supports — and it\n * disagreed with `engines.node`, with the generated CI workflows and with\n * `SUPPORTED_NODE_MAJOR_VERSION` itself, four declarations of one requirement. The floor for\n * STARTING an application is the major the framework is tested on; anything lower fails later,\n * further from the cause.\n */\n [PlatformEnv_Utility_Tools.NODE]: `${SUPPORTED_NODE_MAJOR_VERSION}.0.0`,\n [PlatformEnv_Utility_Tools.PNPM]: '9.0.0',\n [PlatformEnv_Utility_Tools.DOCKER]: '20.0.0',\n [PlatformEnv_Utility_Tools.DOCKER_COMPOSE]: '2.0.0',\n [PlatformEnv_Utility_Tools.KUBECTL]: '1.25.0',\n [PlatformEnv_Utility_Tools.KIND]: '0.17.0',\n [PlatformEnv_Utility_Tools.HELM]: '3.10.0',\n // Framework-dev only: redis-memory-server (engine real-Redis integration tests) compiles redis from\n // source and needs GNU Make ≥4 (macOS ships 3.81). Optional in every profile — reported, never blocking.\n [PlatformEnv_Utility_Tools.MAKE]: '4.0.0',\n};\n\n/**\n * Renders a single tool check result as a formatted console line.\n */\nfunction renderToolCheck(\n ctx: CommandContext,\n label: string,\n check: import('~wildo-cli/services/environment/environment.schemas').ToolCheck,\n isOptional: boolean,\n): boolean {\n const paddedLabel = label.padEnd(20);\n\n if (check.installed && check.meetsMinimum) {\n const suffix = check.running === false\n ? chalk.yellow(' (not running)')\n : '';\n ctx.log.info(` ${chalk.green('✓')} ${paddedLabel} ${chalk.dim(`v${check.version}`)}${suffix}`);\n return check.running !== false;\n }\n\n if (check.installed && !check.meetsMinimum) {\n ctx.log.info(\n ` ${chalk.yellow('⚠')} ${paddedLabel} ${chalk.yellow(`v${check.version} (minimum: ${check.minimumVersion})`)}`,\n );\n return false;\n }\n\n if (isOptional) {\n ctx.log.info(` ${chalk.dim('○')} ${paddedLabel} ${chalk.dim('not found (optional)')}`);\n return true;\n }\n\n const os = VersionChecker.detectOS();\n const installHint = VersionChecker.getInstallCommand(check.name, os);\n ctx.log.info(` ${chalk.red('✗')} ${paddedLabel} ${chalk.dim('not found')}`);\n ctx.log.info(` ${chalk.dim(`Install: ${installHint}`)}`);\n return false;\n}\n\n/**\n * Profile-aware tool check. Resolves the profile from:\n * 1. --runtime flag (if passed explicitly)\n * 2. Active environment's runtime (if one exists)\n * 3. Default: DOCKER_COMPOSE\n */\nfunction runToolsCheck(ctx: CommandContext): CommandResult {\n ctx.log.info('');\n ctx.log.info(chalk.bold(' Wildo Tools Check'));\n ctx.log.info(chalk.dim(' ──────────────────'));\n\n VersionChecker.registerBuiltinCheckers();\n\n const runtimeFlag = ctx.flags.runtime as string | undefined;\n if (runtimeFlag && !Object.values(WildoDeploymentRuntime).includes(runtimeFlag as WildoDeploymentRuntime)) {\n ctx.log.warn(`Unknown runtime \"${runtimeFlag}\", defaulting to docker-compose profile.`);\n }\n const effectiveRuntime = (runtimeFlag as WildoDeploymentRuntime | undefined) ?? ctx.activeEnv?.runtime;\n const effectiveLocationType = ctx.activeEnv?.locationType;\n const profile = VersionChecker.profileFromRuntime(effectiveRuntime, effectiveLocationType);\n const profileDef = VersionChecker.PROFILE_TOOLS[profile];\n\n ctx.log.info('');\n ctx.log.info(chalk.dim(` Profile: ${profile}`));\n ctx.log.info('');\n\n let allPassed = true;\n const requiredSet = new Set(profileDef.required);\n const allTools = [...profileDef.required, ...profileDef.optional];\n\n for (const tool of allTools) {\n const minVersion = MINIMUM_VERSIONS[tool] ?? '0.0.0';\n const check = VersionChecker.checkTool(tool, minVersion);\n const isOptional = !requiredSet.has(tool);\n const passed = renderToolCheck(ctx, tool, check, isOptional);\n if (!passed && !isOptional) {\n allPassed = false;\n }\n }\n\n ctx.log.info('');\n if (allPassed) {\n ctx.log.info(chalk.green(' All required tools OK.'));\n } else {\n ctx.log.info(chalk.red(' Some required tools missing or outdated. Fix the issues above and retry.'));\n }\n ctx.log.info('');\n\n return { success: allPassed };\n}\n\n\n/**\n * The `--line` answer that leaves the application line to the creation journey (the vision step's first question), as\n * every application was created before the line could be chosen at `wildo init`. Not an `ApplicationLine`: it is the\n * absence of a choice, so it lives beside the vocabulary rather than in it.\n */\nconst INIT_LINE_DECIDE_LATER = 'later';\n\n/** What `wildo init` shows for each line. Total over the vocabulary, so a line added tomorrow is offered here too. */\nconst INIT_LINE_LABELS: Readonly<Record<ApplicationLine, string>> = {\n [ApplicationLine.B2B_SAAS]: 'B2B SaaS: a software product sold to other businesses',\n [ApplicationLine.INTERNAL_TOOL]: 'Internal tool: software a company builds for its own people (one owner organization, no billing)',\n [ApplicationLine.SERVICE_FIRM]: 'Service firm platform: a firm serves its clients, who sign up, through its agents and qualified reviewers',\n};\n\n/** What `wildo init --blueprint` applies: the layers in order, each one's resolved parameters, and the registry modules they reference, fetched. */\ninterface BlueprintInitPlan {\n readonly layers: readonly LoadedBlueprintArtifact[];\n readonly parameters: ReadonlyArray<Record<string, BlueprintParameterValue>>;\n readonly references: ReadonlyMap<string, AcquiredModule>;\n /** The application line the stack makes, when a layer names one (#2863): recorded as the dossier's answer by the layer that names it. */\n readonly line: ResolvedBlueprintLine | undefined;\n}\n\n/**\n * What `wildo init --line` (or its prompt) does to the blueprint plan (#1605). Returns the plan that layers the\n * framework's `wildo/<line>` when a line is chosen and no blueprint is given; `undefined` when nothing changes (`later`,\n * no answer, or blueprints whose stack already names the same line). An explicit line is never dropped silently: with\n * `--config-only`, with blueprints naming no line, or with blueprints naming another line, it refuses, naming the\n * command that would apply it.\n */\nexport function planInitLine(input: {\n readonly lineChoice: string | undefined;\n readonly configOnly: boolean;\n readonly blueprintPlan: (BlueprintInitPlan & { init: ResolvedBlueprintInitFlags }) | null;\n readonly blueprintEntries: readonly string[];\n readonly frameworkRoot: string | null;\n readonly database: string | undefined;\n}): (BlueprintInitPlan & { init: ResolvedBlueprintInitFlags }) | undefined {\n if (input.lineChoice === undefined || input.lineChoice === INIT_LINE_DECIDE_LATER) return undefined;\n const line = assertBlueprintLine(input.lineChoice, '--line');\n const shippedId = frameworkBlueprintId(line);\n if (input.configOnly) throw new Error('--line layers the framework blueprint on the full skeleton; it cannot be combined with --config-only.');\n if (input.blueprintPlan !== null) {\n const stackLine = input.blueprintPlan.line;\n if (stackLine === undefined) {\n throw new Error(`--line ${line} was given with blueprints that name no line. Layer the line's blueprint first instead: --blueprint ${shippedId} ${input.blueprintEntries.join(' ')}.`);\n }\n if (stackLine.line !== line) {\n throw new Error(`--line ${line} contradicts the blueprints, which make a '${stackLine.line}' application (decided by ${stackLine.declaredBy.manifest.id}).`);\n }\n return undefined;\n }\n const shipped = resolveFrameworkBlueprint(shippedId, input.frameworkRoot)!;\n const layers = [shipped];\n return {\n layers,\n init: resolveBlueprintInitFlags(layers, { [InitFlag.DATABASE]: input.database }),\n parameters: resolveBlueprintParameters(layers, {}),\n references: new Map(),\n line: resolveBlueprintLine(layers),\n };\n}\n\n/**\n * Why `wildo init` must not report success: the scaffold's dependencies did not install (#3934). `null` when they did,\n * when nothing was scaffolded, or when the operator asked init not to install (`--skip-install`).\n *\n * An application whose dependencies did not install has no framework package and no framework knowledge delivered, so\n * nothing the next step runs can work. Init used to end \"init completed\", exit 0, there (measured on a customer install\n * from get.wildo.ai that had no pnpm), and every script driving init carried on into a broken application. The scaffold\n * stays on disk; the message names how to finish it.\n */\nexport function uninstalledScaffoldFailure(skeleton: { readonly installed: boolean } | null, installSkipped: boolean): string | null {\n if (skeleton === null || skeleton.installed || installSkipped) return null;\n return 'the application was scaffolded, but its dependencies did not install. Install pnpm if it is missing (re-run '\n + '`curl -fsSL https://get.wildo.ai/install.sh | sh`, which installs the release\\'s pinned pnpm), then run '\n + '`pnpm install && wildo assets sync` in the application.';\n}\n\nexport default class InitCommand extends BaseCommand {\n readonly meta: CommandMeta = {\n name: 'init',\n description: 'Create a new Wildo targeted app',\n category: CommandCategory.Core,\n flags: {\n name: {\n type: 'string',\n description: 'App name',\n },\n runtime: {\n type: 'string',\n description: 'Infrastructure runtime (docker-compose | kubernetes)',\n },\n database: {\n type: 'string',\n description: 'Database engine (mongodb | postgresql)',\n },\n check: {\n type: 'boolean',\n description: 'Verify tools (Docker, Node, pnpm) without scaffolding',\n default: false,\n },\n 'config-only': {\n type: 'boolean',\n description: 'Write only wildo.saas.config.ts (the pre-#51 behavior) instead of the full application skeleton',\n default: false,\n },\n 'port-base': {\n type: 'string',\n description: 'Base port for the app\\'s allocated port block (backend=base, app=base+1, companion=base+100). Default: scan sibling apps and pick the next free block',\n },\n // Platform-administrator identity for the app's `local` secrets.json. Supplying all\n // three skips the prompt, which is what makes `wildo init` scriptable end to end.\n // `WILDO_INIT_ADMIN_*` env seeds are the equivalent; flags win over seeds.\n 'admin-email': {\n type: 'string',\n description: `Platform administrator email for the local environment (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL})`,\n },\n 'admin-first-name': {\n type: 'string',\n description: `Platform administrator first name (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME})`,\n },\n 'admin-last-name': {\n type: 'string',\n description: `Platform administrator last name (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME})`,\n },\n 'admin-password': {\n type: 'string',\n description: `Initial platform administrator password (env: ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_PASSWORD}). Auto-generated when omitted`,\n },\n 'skip-install': {\n type: 'boolean',\n description: 'Skip pnpm install and the initial specifications/backend builds after scaffolding',\n default: false,\n },\n /*\n * A CLOSED vocabulary rather than a boolean pair, deliberately.\n *\n * The honest shape is tri-state — adopt, skip, or ask — and `--adopt` / `--no-adopt` cannot\n * express \"ask\" without relying on Commander's `--no-` magic, which sets a DIFFERENT key from\n * the one the flag declares. A named value says what it means and reads the same in a script.\n */\n /*\n * Join an existing platform's storage instead of writing beneath this application.\n *\n * The same choice `wildo setup` step 1 offers (\"a sibling repo / a custom location\"), exposed\n * on the command that CREATES the application — which is the moment it is actually decided.\n *\n * Note what this is NOT: adopting `~/.wildo/local-defaults.json` copies the shared tier while\n * keeping `application.adminSecret` per-application, whereas pointing two applications at ONE\n * secrets file gives them one operator door. Prefer `--local-defaults`; reach for this when a\n * team genuinely shares a secrets repository.\n */\n 'secrets-path': {\n type: 'string',\n description: 'Directory holding this environment\\'s secrets (e.g. a shared wildo-secrets repo). Default: <app>/infrastructure',\n },\n 'local-defaults': {\n type: 'string',\n description: `How to treat ~/.wildo/local-defaults.json when it exists (${Object.values(LocalDefaultsMode).join(' | ')}). `\n + '`adopt` is the auto-confirm: take the machine\\'s shared platform credentials, joining its platform, without asking. '\n + 'Provider keys are a separate decision (--provider-key-defaults). '\n + `Defaults to \\`defaults.localDefaults\\` in ~/.wildo/preferences.json, else ${LocalDefaultsMode.ASK}`,\n /*\n * NO declared default, deliberately. A flag default is indistinguishable from an explicitly\n * passed flag by the time it reaches `ctx.flags`, so declaring one here would mask the\n * machine preference permanently — the preference could never win, and the operator's stated\n * posture would be silently ignored. The fallback lives at the read site instead.\n */\n },\n /*\n * Blueprint layers (epic #2856): packed blueprints applied ON the base, in the order given, before install —\n * one git commit per layer. A blueprint may lock or default `--database`; every other flag stays the operator's.\n */\n blueprint: {\n type: 'string[]',\n description: 'Blueprints to layer on the base, lowest first: a packed directory (`wildo blueprint pack`), a blueprint the framework ships (`wildo/b2b-saas`, `wildo/internal-tool`, `wildo/service-firm`: the application line and its posture), or a registry blueprint <domain>/<scope>/<name>@<range>',\n },\n 'blueprint-param': {\n type: 'string[]',\n description: 'Blueprint parameter values, name=value (e.g. --blueprint-param erpVendor=odoo region=eu)',\n },\n 'blueprint-registry': {\n type: 'string',\n description: 'Registry alias or URL that `--blueprint <domain>/<scope>/<name>@<range>` entries, and the registry modules any blueprint references, are fetched from. Default: the machine\\'s registry',\n },\n line: {\n type: 'string',\n description: 'The kind of application (b2b_saas | internal_tool | service_firm | later): layers the framework blueprint wildo/<line>, so the line question is answered and the line\\'s posture (an internal tool\\'s owner organization; a service firm\\'s firm and client organization types and the service relationship between them) is in place before the first boot. Asked when no --blueprint is given; `later` leaves it to the creation journey.',\n },\n 'provider-key-defaults': {\n type: 'string',\n description: `Whether to seed the provider API keys in ~/.wildo/local-defaults.json (${Object.values(LocalDefaultsMode).join(' | ')}), `\n + 'independently of --local-defaults: an application that owns its platform still gets them. '\n + `Defaults to \\`defaults.providerKeyDefaults\\` in ~/.wildo/preferences.json, else ${DEFAULT_PROVIDER_KEY_DEFAULTS_MODE}`,\n // No declared default, for the reason given on `local-defaults` above.\n },\n },\n };\n\n async run(ctx: CommandContext): Promise<CommandResult> {\n if (ctx.flags.check === true) {\n return runToolsCheck(ctx);\n }\n\n // INTENTIONAL: `wildo init` scaffolds a brand-new SaaS app at the operator's\n // current working directory. Unlike every other command (which must trust\n // `ctx.cliContext.resolvedHomes.app.declarationRoot`), this one has no\n // existing app root to anchor against — the whole purpose is to create a\n // `wildo.saas.config.ts` where none exists. `process.cwd()` is the correct\n // source here; the resolved-homes snapshot is still consulted immediately\n // below to detect and refuse operation inside a pre-existing scope.\n const cwd = process.cwd();\n const existingConfigPath = ctx.cliContext.resolvedHomes.app.saasConfigPath;\n\n // Re-running `wildo init` IN THE APP IT CREATED is a repair, not a mistake, and the two\n // cases must not share a verdict:\n //\n // - the resolved scope is THIS directory -> RE-RUN. Skip the scaffold (the files are\n // already there and may carry operator edits) and re-assert everything that is safe to\n // assert: the environment registration, `secrets.json`, the CI workflow. Each of those\n // steps is idempotent, so this converges instead of churning.\n // - the resolved scope is a PARENT directory -> still REFUSE. Scaffolding an application\n // inside another application is the footgun this guard was written for, and it stays shut.\n //\n // Before this split the command refused BOTH, which made `wildo init` a strictly\n // once-per-app operation — so an app that missed a step (issue #155: no `secrets.json`)\n // had no way to acquire it, and the advice printed everywhere, \"Run 'wildo init' first\",\n // was unfollowable for the very apps that needed it most.\n const isReRunInOwnApp = Boolean(existingConfigPath)\n && resolvePath(dirname(existingConfigPath!)) === resolvePath(cwd);\n\n if (existingConfigPath && !isReRunInOwnApp) {\n ctx.log.error(\n `Already in a scoped Wildo workspace (${existingConfigPath}).`,\n );\n return { success: false };\n }\n\n if (isReRunInOwnApp) {\n const rerunLine = ctx.flags.line as string | undefined;\n if (rerunLine !== undefined && rerunLine !== INIT_LINE_DECIDE_LATER) {\n ctx.log.error(`--line applies only when an application is created. This one exists: answer the line question in its creation journey instead (\\`wildo creation answer\\`), and the foundation declares what the line implies.`);\n return { success: false };\n }\n return this.rerunInExistingApp(ctx, cwd);\n }\n\n const configPath = `${cwd}/${WORKSPACE_CONFIG_NAMES.SAAS}`;\n if (existsSync(configPath)) {\n ctx.log.error(`${WORKSPACE_CONFIG_NAMES.SAAS} already exists in current directory.`);\n return { success: false };\n }\n\n // ── Gather app options (flag → answer file → machine preference → interactive → default) ──\n\n /*\n * The DIRECTORY names the application, and is not a question.\n *\n * An operator reaches `wildo init` by creating a directory and entering it, so by the time the\n * command runs they have already named the thing — twice, if it also asks. The prompt's default\n * was `basename(cwd)` all along, which is the same admission one keypress short of acting on it.\n *\n * `--name` still overrides, for the case the directory genuinely is not the name (a checkout\n * folder, a temporary path). What is gone is being asked to confirm a decision already made.\n * Refuses rather than mangling when the directory is not a usable name: silently scaffolding\n * `app` into a directory called `my app (copy)` produces an application whose slug matches\n * nothing the operator will look for.\n */\n const flagName = ctx.flags.name === undefined || ctx.flags.name === null\n ? undefined\n : String(ctx.flags.name).trim();\n const directoryName = basename(cwd).trim();\n const name = flagName !== undefined && flagName.length > 0 ? flagName : directoryName;\n\n /*\n * Blueprint layers (epic #2856) resolve BEFORE any prompt and before anything is written: the chain, the\n * application-shape flags a layer locks or defaults, and every layer's parameters. A wrong blueprint therefore\n * refuses here, in an untouched directory. What can only be checked against a materialized base (collisions,\n * declaration targets, registrations) is rehearsed on a throwaway base just before the real scaffold.\n */\n /** Where registry blueprints are extracted; removed when the command ends. */\n let blueprintScratch: string | undefined;\n let blueprintPlan: (BlueprintInitPlan & { init: ResolvedBlueprintInitFlags }) | null = null;\n const blueprintRegistryFlag = (ctx.flags.blueprintRegistry ?? ctx.flags['blueprint-registry']) as string | undefined;\n const blueprintDirectories = ((ctx.flags.blueprint as string[] | undefined) ?? []).filter((entry) => entry.trim() !== '');\n const blueprintParamAssignments = ((ctx.flags.blueprintParam ?? ctx.flags['blueprint-param']) as string[] | undefined) ?? [];\n if (blueprintDirectories.length === 0 && blueprintParamAssignments.length > 0) {\n ctx.log.error('--blueprint-param was given without --blueprint.');\n return { success: false };\n }\n if (blueprintDirectories.length > 0) {\n if (ctx.flags.configOnly === true || ctx.flags['config-only'] === true) {\n ctx.log.error('--blueprint layers a blueprint on the full skeleton; it cannot be combined with --config-only.');\n return { success: false };\n }\n try {\n const layers: LoadedBlueprintArtifact[] = [];\n for (const entry of blueprintDirectories) {\n // A path on disk is a packed directory, whatever it looks like; `wildo/<name>` is a blueprint the framework\n // ships (#2863); anything else naming `<domain>/<scope>/<name>[@range]` is fetched from the registry (#2861).\n const onDisk = existsSync(resolvePath(process.cwd(), entry));\n const shipped = onDisk ? undefined : resolveFrameworkBlueprint(entry, ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null);\n if (shipped !== undefined) {\n layers.push(shipped);\n continue;\n }\n if (!isRegistryBlueprintSpec(entry, (candidate) => existsSync(resolvePath(process.cwd(), candidate)))) {\n layers.push(readBlueprintArtifact(resolvePath(process.cwd(), entry)));\n continue;\n }\n if (blueprintScratch === undefined) {\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-init-blueprints-'));\n blueprintScratch = scratch;\n // Every exit path, refusals included: the extracted artifacts are read during the scaffold and never after.\n process.once('exit', () => rmSync(scratch, { recursive: true, force: true }));\n }\n const registry = await resolveRegistryUrlForCommand(ctx, { ...(blueprintRegistryFlag === undefined ? {} : { flag: blueprintRegistryFlag }) });\n const credential = await RegistryCredentialsService.get(registry.url);\n const acquired = await acquireRegistryBlueprint({ spec: entry, registryUrl: registry.url, authToken: credential?.rawToken, scratchDirectory: blueprintScratch });\n if (acquired.yanked) ctx.log.warn(` ${acquired.parsed.moduleId}@${acquired.version} is YANKED; applying the pinned release.`);\n ctx.log.info(chalk.dim(` Blueprint ${acquired.parsed.moduleId}@${acquired.version} fetched from ${registry.url}`));\n layers.push(acquired.artifact);\n }\n resolveBlueprintChain(layers);\n const init = resolveBlueprintInitFlags(layers, { [InitFlag.DATABASE]: ctx.flags.database as string | undefined });\n const parameters = resolveBlueprintParameters(layers, parseBlueprintParamAssignments(blueprintParamAssignments));\n // Every registry module the layers reference, resolved and fetched now (#2879): one that does not resolve\n // refuses here, before a prompt and before a file is written. The same bytes are installed twice, into the\n // rehearsal and into the application.\n const references = await acquireBlueprintModuleReferences(ctx, layers, { registryFlag: blueprintRegistryFlag });\n // One line per stack, refused here when two layers disagree, before a prompt or a file.\n const line = resolveBlueprintLine(layers);\n if (line !== undefined) ctx.log.info(chalk.dim(` Application line: ${line.line} — decided by blueprint ${line.declaredBy.manifest.id}`));\n blueprintPlan = { layers, init, parameters, references, line };\n } catch (error) {\n ctx.log.error(`Blueprint refused: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n /*\n * ── The application line, asked at creation (#1605) ──\n *\n * Without a blueprint, init asks what kind of application this is and layers the framework's `wildo/<line>`: the line\n * question is then answered in the dossier and the line's posture (an internal tool's owner organization and\n * ORGANIZATIONS) is in the configuration BEFORE the first boot, which an organization type needs because an\n * organization's type is fixed when it is created. With blueprints, the stack names its own line, or none.\n */\n const configOnly = ctx.flags.configOnly === true || ctx.flags['config-only'] === true;\n // Asked only when nothing else decides it: no blueprint (the stack names its own line) and the full skeleton.\n const lineChoice = blueprintDirectories.length === 0 && !configOnly\n ? String(await this.prompt<string>(ctx, {\n id: 'line',\n type: 'select',\n message: 'What kind of application is this?',\n choices: [\n ...Object.values(ApplicationLine).map((line) => ({ value: line, label: INIT_LINE_LABELS[line] })),\n { value: INIT_LINE_DECIDE_LATER, label: 'Decide later, in the creation journey' },\n ],\n default: INIT_LINE_DECIDE_LATER,\n }))\n : (ctx.flags.line as string | undefined);\n try {\n const linePlan = planInitLine({\n lineChoice,\n configOnly,\n blueprintPlan,\n blueprintEntries: blueprintDirectories,\n frameworkRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null,\n database: ctx.flags.database as string | undefined,\n });\n if (linePlan !== undefined) {\n blueprintPlan = linePlan;\n const shipped = linePlan.layers[0]!;\n ctx.log.info(chalk.dim(` Application line: ${linePlan.line!.line} — layering ${shipped.manifest.id}@${shipped.manifest.version}`));\n }\n } catch (error) {\n ctx.log.error(`Application line refused: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n\n const runtime = await this.prompt<WildoDeploymentRuntime>(ctx, {\n id: 'runtime',\n type: 'select',\n message: 'Infrastructure runtime:',\n preference: 'runtime',\n choices: [\n { value: WildoDeploymentRuntime.DOCKER_COMPOSE, label: 'Docker Compose (recommended)' },\n { value: WildoDeploymentRuntime.KUBERNETES, label: 'Kubernetes (local Kind cluster)' },\n ],\n default: WildoDeploymentRuntime.DOCKER_COMPOSE,\n });\n\n const blueprintDatabase = blueprintPlan?.init.values[InitFlag.DATABASE] as DatabaseEngine | undefined;\n if (blueprintDatabase !== undefined) {\n ctx.log.info(chalk.dim(` Database: ${blueprintDatabase} — decided by blueprint ${blueprintPlan?.init.decidedBy[InitFlag.DATABASE] ?? ''}`));\n }\n const requestedDatabase = blueprintDatabase ?? await this.prompt<DatabaseEngine>(ctx, {\n id: 'database',\n type: 'select',\n message: 'Database:',\n preference: 'database',\n /*\n * PostgreSQL first and default (Paul, 2026-09-24): it is what an application that declares nothing\n * persists to (`DEFAULT_APPLICATION_DATABASE_ENGINE`, #1571), and both dogfood applications run on\n * it. Offering the other store as the recommendation would make the prompt and the silence disagree.\n */\n choices: [\n { value: DatabaseEngine.POSTGRESQL, label: 'PostgreSQL (recommended)' },\n { value: DatabaseEngine.MONGODB, label: 'MongoDB' },\n ],\n default: DEFAULT_APPLICATION_DATABASE_ENGINE,\n });\n\n /**\n * The operator's choice is honoured as authored.\n *\n * This used to silently rewrite a PostgreSQL answer to MongoDB whenever\n * `preferences.isFrameworkDeveloper` was set, warning only after the fact. That is the second\n * of the two sites that made a PostgreSQL platform unreachable in the framework repository —\n * see the JSDoc on `platformDatabaseInitializationModule.prompt` for the full reasoning. The\n * default above is PostgreSQL since #1571; the platform-database prompt module keeps its own\n * experimental-ness signal for environments that author no `database`.\n */\n const database = requestedDatabase;\n\n const trimmedName = String(name).trim();\n if (!trimmedName) {\n ctx.log.error(\n `Cannot name the application after this directory ('${basename(cwd)}'), and no --name was given.`,\n );\n ctx.log.info(chalk.dim(' Create it in a directory named after the application, or pass --name <value>.'));\n return { success: false };\n }\n\n const validRuntimes = Object.values(WildoDeploymentRuntime);\n if (!validRuntimes.includes(runtime)) {\n ctx.log.error(`Invalid runtime \"${runtime}\". Valid: ${validRuntimes.join(', ')}`);\n return { success: false };\n }\n\n const validDatabases = Object.values(DatabaseEngine);\n if (!validDatabases.includes(database)) {\n ctx.log.error(`Invalid database \"${database}\". Valid: ${validDatabases.join(', ')}`);\n return { success: false };\n }\n\n // ── 1. Scaffold: full application skeleton by default (issue #51 D2);\n // `--config-only` keeps the historical one-file behavior. ──\n\n const frameworkPath = ctx.cliContext.resolvedHomes.framework.repositoryRoot ?? null;\n // The mode signal is CONTAINMENT, not the operator preference: `file:` framework links are\n // only valid when the app root lives INSIDE the framework checkout (and the env-projection\n // guard later enforces exactly that for the companion). A framework developer scaffolding an\n // app OUTSIDE the checkout gets — correctly — an app-creator skeleton; an in-checkout scaffold\n // is framework-dev regardless of the stored preference flag.\n // One rule with every later provider link (`linkableFrameworkCheckout`, #3903), so `wildo compose` agrees with the scaffold.\n const appInsideFramework = linkableFrameworkCheckout(cwd, frameworkPath) !== null;\n const skeletonMode: SkeletonMode = appInsideFramework ? SkeletonMode.FRAMEWORK_DEV : SkeletonMode.APP_CREATOR;\n /*\n * Resolved against the operator's CWD, not the app root: they typed it before the app existed,\n * and a relative path meant \"from here\" at that moment. Refused when absent, because a secrets\n * directory that does not exist is a typo far more often than an intention — and the failure it\n * would otherwise produce arrives much later, as an empty secrets read during `config sync`.\n */\n const secretsPathFlag = (ctx.flags.secretsPath ?? ctx.flags['secrets-path']) as string | undefined;\n const secretsPath = secretsPathFlag === undefined ? undefined : resolvePath(process.cwd(), secretsPathFlag);\n if (secretsPath !== undefined && !existsSync(secretsPath)) {\n ctx.log.error(`--secrets-path \"${secretsPathFlag}\" does not exist (resolved to ${secretsPath}).`);\n return { success: false };\n }\n\n const portBaseFlag = (ctx.flags.portBase ?? ctx.flags['port-base']) as string | undefined;\n const portBase = portBaseFlag !== undefined ? Number.parseInt(portBaseFlag, 10) : undefined;\n if (portBaseFlag !== undefined && (!Number.isInteger(portBase) || (portBase as number) < 1024 || (portBase as number) > 65000)) {\n ctx.log.error(`Invalid --port-base \"${portBaseFlag}\" — expected an integer port between 1024 and 65000.`);\n return { success: false };\n }\n\n /*\n * WHOSE PLATFORM does this application run on — its own, or one already on this machine?\n *\n * Asked HERE, before the scaffold, because the answer decides what the environment descriptor\n * says, and a descriptor is authored once. It is not a new question: it is the local-defaults\n * decision, resolved early and reused by the secrets step, because adopting another application's\n * shared credentials and declaring its platform as this one's host are the same decision. Those\n * credentials authenticate to ITS containers and to no others.\n *\n * Until 2026-09-18 the skeleton had no hosted branch at all, so EVERY application `wildo init`\n * created declared itself the owner of the local environment — the first one rightly, and every\n * one after it wrongly. The operator met that as a `wildo config sync` offering to rewrite the\n * shared platform generation, and the apparent remedy was to stop the running application, which\n * is precisely the move that cannot be made in remote, where it is live traffic.\n */\n const localDefaults = await this.resolveLocalDefaultsOnce(ctx);\n // Decided up front with the shared half, so a refused mode or a declined prompt comes before anything is written.\n await this.resolveProviderKeyDefaultsOnce(ctx);\n const infrastructureHost = localDefaults === null ? null : resolveInfrastructureHostFor(cwd, localDefaults);\n if (infrastructureHost !== null) {\n ctx.log.info('');\n ctx.log.info(chalk.cyan(` This application will run on the infrastructure of ${infrastructureHost}`));\n ctx.log.info(chalk.dim(' (declared as `infrastructureHost`: it registers against that platform and never starts, recreates'));\n ctx.log.info(chalk.dim(' or stops anything shared — so the host keeps running while this application is created).'));\n }\n\n let path: string;\n let skeletonResult: SaasSkeletonResult | null = null;\n /** The repository arm the blueprint apply ran, or null when no blueprint was layered (the repository comes later). */\n let blueprintRepository: ReturnType<InitCommand['initializeApplicationRepository']> | null = null;\n if (ctx.flags.configOnly === true || ctx.flags['config-only'] === true) {\n path = SaasScaffoldService.scaffold(cwd, { name: trimmedName });\n } else {\n /*\n * Rehearse the layers on a throwaway copy of the base first. Collisions with base files, a declaration the\n * base does not have, a registration that refuses — those can only be found against a materialized base, and\n * finding them only while applying for real would leave this directory holding a committed base and the layers that\n * succeeded, with no scaffold record and no environment. Rehearsed here, the operator's directory is untouched\n * when a layer refuses.\n */\n if (blueprintPlan !== null) {\n try {\n await this.rehearseBlueprintLayers(blueprintPlan, {\n name: trimmedName,\n frameworkPath,\n mode: skeletonMode,\n database,\n ...(infrastructureHost !== null ? { infrastructureHost } : {}),\n });\n } catch (error) {\n ctx.log.error(`Blueprint refused (nothing was written): ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n try {\n const scaffoldOptions = {\n name: trimmedName,\n frameworkPath,\n mode: skeletonMode,\n database,\n ...(infrastructureHost !== null ? { infrastructureHost } : {}),\n ...(portBase !== undefined ? { portBase } : {}),\n skipInstall: ctx.flags.skipInstall === true || ctx.flags['skip-install'] === true,\n log: ctx.log,\n };\n if (blueprintPlan === null) {\n skeletonResult = SaasSkeletonService.scaffold(cwd, scaffoldOptions);\n } else {\n // The layers go between the materialized base and `pnpm install`, so the install, the initial builds and the\n // initial migration all see the layered application. Installing a referenced registry module is\n // asynchronous, so init runs the scaffold's two halves itself.\n const materialized = SaasSkeletonService.materialize(cwd, scaffoldOptions);\n blueprintRepository = await this.applyBlueprintLayers(ctx, materialized, blueprintPlan, frameworkPath);\n // Seeded again after the layers (#3230): the base seeded the component labels for the locales IT declared,\n // and a layer may declare more. Never overwrites, so the base's files are untouched; the closing commit\n // carries what this adds.\n if (frameworkPath !== null) {\n seedEngineComponentLabelBaseForBackend({\n labelBaseRoot: join(frameworkPath, FRAMEWORK_LABEL_BASE_TEMPLATES_RELATIVE),\n backendRoot: join(materialized.appRoot, 'backend-api'),\n });\n }\n skeletonResult = {\n slug: materialized.slug,\n displayName: materialized.displayName,\n ports: materialized.ports,\n filesWritten: materialized.filesWritten,\n companionDelivered: materialized.companionDelivered,\n ...SaasSkeletonService.installAndBuild(materialized, scaffoldOptions),\n };\n // As `wildo registry add` does after an install: a credential that fetched an installed module was used. Book-\n // keeping only, so a failure to record it warns and never decides whether init succeeded.\n for (const credentialUrl of new Set([...blueprintPlan.references.values()].flatMap((acquired) => (acquired.credentialUrl === undefined ? [] : [acquired.credentialUrl])))) {\n await RegistryCredentialsService.touch(credentialUrl).catch((error: unknown) => ctx.log.warn(` Could not record that the ${credentialUrl} credential was used: ${ErrorUtils.extractErrorMessage(error)}`));\n }\n }\n path = `${cwd}/${WORKSPACE_CONFIG_NAMES.SAAS}`;\n } catch (error) {\n ctx.log.error(`Skeleton scaffold failed: ${ErrorUtils.extractErrorMessage(error)}`);\n return { success: false };\n }\n }\n\n // ── 1b. Record how the application was scaffolded (#2859) ──\n //\n // Every scaffold, blueprint or not: `wildo blueprint pack` rebuilds a defining application's base from it.\n if (skeletonResult) {\n const record = buildScaffoldRecord({ database, layers: blueprintPlan?.layers ?? [], parameters: blueprintPlan?.parameters ?? [] });\n await withLockfileSectionMutate({\n saasRoot: cwd,\n sectionKey: SCAFFOLD_LOCK_SECTION_KEY,\n sectionSchema: ScaffoldLockSectionSchema,\n initialSection: () => record,\n }, () => record);\n }\n\n // ── 2. Register default local environment ──\n //\n // Under an explicit saas-root override: the CLI resolved its workspace scope at STARTUP, before\n // step 1 scaffolded `wildo.saas.config.ts`, so on the first run the registry sees no app root and\n // `EnvironmentPaths` throws \"No targeted app root detected\" — the command that CREATES the root\n // was the one command that could not register against it (measured on the first scratch-app\n // bootstrap, 2026-08-25). The scaffold just made `cwd` the app root; say so.\n await EnvironmentRegistry.withSaasRootOverride(cwd, () => {\n EnvironmentLifecycle.initializeLocal({\n runtime,\n database: {\n engine: database,\n source: BackingServiceSource.SELF,\n },\n // Absent means \"beneath this application\", which is what the registration already defaults to.\n ...(secretsPath === undefined ? {} : { secretsPath }),\n });\n });\n\n // ── 2b. Provision that environment's `secrets.json` (issue #155) ──\n //\n // Runs under the SAME saas-root override as the registration above, and for the same\n // reason: `ConfigSecretsUtils.writeSecretsJson` resolves its directory through\n // `EnvironmentPaths.resolveSecretsDir`, which reads the registry's app root. Outside the\n // override that is still the pre-scaffold scope, so the file would land in the wrong app\n // (or nowhere).\n const secretsOutcome = await EnvironmentRegistry.withSaasRootOverride(\n cwd,\n () => this.provisionLocalSecrets(ctx),\n );\n\n // ── 3. Materialize the per-PR validation workflow (Slice 6.8 / F-48) ──\n //\n // Every freshly-scaffolded app gets `.github/workflows/wildo-config-validation.yml`\n // by default so a config drift, a broken K8s template render, or a\n // missing `wildo config validate --domain cicd` workflow itself\n // fails the PR before reaching a deploy branch. Best-effort —\n // installer failure must NOT block scaffold success because the\n // operator can re-run `wildo setup` to back-fill it.\n const validationWorkflowResult = this.materializeValidationWorkflow(\n ctx, cwd, trimmedName,\n );\n\n // ── 3a. The application's own GIT REPOSITORY (#1273) ──\n //\n // Acceptance in this framework IS a git commit, and the creation lane reads landing through git: a\n // specification family lands when its file is committed, and a build task when its product is in the\n // working tree as git sees it (#3204), recorded by the companion's build checkpoints. So an application\n // with no repository can never accept anything — measured on a scratch application during the first\n // end-to-end journey run, where every build task parked against a directory git could not see.\n // With blueprints the repository was created before the layers, so the base and each layer are their own commits.\n // Bound in both arms: the CLOSING commit below needs to know whether this init created the repository.\n const repository = skeletonResult\n ? (blueprintRepository ?? this.initializeApplicationRepository(ctx, cwd))\n : null;\n /*\n * App-creator mode delivers the framework-owned asset homes HERE, from the packages the\n * scaffold just installed (the framework-developer lane gets them from the checkout on every\n * orchestrator tick instead). With `--skip-install` the knowledge lanes wait for\n * `pnpm install` + `wildo assets sync`; the templates lane needs no install and lands now.\n */\n const assetsResult = skeletonResult && skeletonMode === SkeletonMode.APP_CREATOR\n ? ApplicationAssetsDeliveryService.deliver({\n applicationRoot: cwd,\n frameworkAssetsRoot: ctx.cliContext.resolvedHomes.framework.repositoryRoot,\n })\n : null;\n\n // Resolved here rather than left to the first `wildo dev start`, so the scaffold's generated\n // artifact is OUTPUT rather than a hand-written file that looks like output (#417).\n const cspResult = skeletonResult ? await this.resolveInitialCspArtifact(ctx, cwd, skeletonResult.installed) : null;\n\n // ── 3b. A PostgreSQL application's INITIAL migration ──\n const initialMigration = skeletonResult && database === DatabaseEngine.POSTGRESQL\n ? await this.generateInitialApplicationSchema(ctx, cwd, skeletonResult.built)\n : null;\n\n // ── 3c. What development needs: the coding agent's login and the companion's LLM key (#1637) ──\n //\n // After install, because which LLM the application uses is read from the providers it DISCOVERS,\n // and discovery needs the installed packages. Everything else is asked when first needed.\n if (skeletonResult?.installed) await this.establishCreationEssentials(ctx, cwd);\n\n // ── 3d. The closing commit, AFTER every step that writes into the tree (#3234) ──\n //\n // It used to run before the asset delivery (`.claude/`, the rule imports in `CLAUDE.md`), the CSP artifact, the\n // initial migration and the creation essentials (the provider lockfile section and generated provider files), so a\n // fresh application's first state was uncommitted, and the first build task that touched `CLAUDE.md` committed\n // init's edit with its own (app-creation-test-007). Nothing after this line writes into the tree.\n if (repository === 'created') {\n this.commitEverything(\n ctx,\n cwd,\n blueprintRepository === null\n ? 'Completed wildo init: framework knowledge, CSP, initial schema and provider configuration'\n : 'Completed wildo init: environment registration, CI workflow, scaffold record, framework knowledge, CSP, initial schema and provider configuration',\n );\n this.reportUncommittedInitLeftovers(ctx, cwd);\n }\n\n // ── 4. Output summary and next steps ──\n\n ctx.log.info('');\n ctx.log.success(` Created ${path}`);\n ctx.log.info('');\n ctx.log.info(chalk.dim(` Runtime: ${runtime}`));\n ctx.log.info(chalk.dim(` Database: ${database}`));\n if (skeletonResult) {\n ctx.log.info(chalk.dim(` Skeleton: ${skeletonResult.filesWritten} files (mode: ${skeletonMode})`));\n ctx.log.info(chalk.dim(\n ` Ports: backend ${skeletonResult.ports.backend} · app ${skeletonResult.ports.app} · companion ${skeletonResult.ports.companion}`,\n ));\n ctx.log.info(chalk.dim(\n ` Companion: ${skeletonResult.companionDelivered ? 'dist delivered' : 'NOT delivered (see warning above)'}`,\n ));\n if (!skeletonResult.built && !this.installSkipped(ctx)) {\n ctx.log.warn(' Initial build incomplete — run `pnpm install && pnpm build` in the app before `wildo setup`.');\n }\n if (initialMigration !== null) {\n ctx.log.info(chalk.dim(` Schema: ${initialMigration}`));\n }\n }\n for (const layer of blueprintPlan?.layers ?? []) {\n ctx.log.info(chalk.dim(` Blueprint: ${layer.manifest.id}@${layer.manifest.version}`));\n }\n ctx.log.info(chalk.dim(` Environment 'local' registered under .wildo-saas`));\n this.reportSecretsOutcome(ctx, secretsOutcome);\n if (validationWorkflowResult) {\n ctx.log.info(chalk.dim(` CI gate: ${validationWorkflowResult}`));\n }\n if (cspResult) {\n ctx.log.info(chalk.dim(` CSP: ${cspResult}`));\n }\n if (assetsResult) {\n const describe = (lane: { status: string; detail: string }): string =>\n lane.status === ApplicationAssetsLaneStatus.DELIVERED ? lane.detail : `NOT delivered (${lane.detail})`;\n ctx.log.info(chalk.dim(` Templates: ${describe(assetsResult.templates)}`));\n ctx.log.info(chalk.dim(` Docs: ${describe(assetsResult.docs)}`));\n ctx.log.info(chalk.dim(` Skills: ${describe(assetsResult.skills)}`));\n // Installed is not connected: a lane that could not wire its guidance says so here (#886).\n for (const lane of [assetsResult.templates, assetsResult.docs, assetsResult.skills]) {\n if (lane.warning !== undefined) ctx.log.warn(` ${lane.warning}`);\n }\n if ([assetsResult.docs, assetsResult.skills].some((lane) => lane.status === ApplicationAssetsLaneStatus.SKIPPED)) {\n ctx.log.warn(' Run `pnpm install && wildo assets sync` to deliver the framework knowledge into .claude/ and .wildo-saas/docs.');\n }\n }\n ctx.log.info('');\n ctx.log.info(' Next steps:');\n ctx.log.info('');\n ctx.log.info(` ${chalk.bold('wildo init --check')} Verify your development tools`);\n // Named right after install because the pins written above come from the framework CHECKOUT,\n // while the application installs the PUBLISHED @wildo-ai/* version — the two disagree whenever\n // the checkout is ahead of the last release, which between releases is always. `align-deps`\n // reads what was actually installed and makes them exact (issue #222).\n ctx.log.info(` ${chalk.bold('wildo align-deps --write')} Align pins with the framework version you installed`);\n ctx.log.info(` ${chalk.bold('wildo update')} Move the CLI and this application to the latest framework release`);\n ctx.log.info(` ${chalk.bold('wildo secrets list')} See which secrets this application needs; set each when a feature asks`);\n // No `wildo config sync` here (#3204): on a machine where no platform has run, its env-files phase cannot reach\n // apps-manager and it exits 1. `local dev` brings the infrastructure and platform up, registers the application and\n // writes every env file and provider-runtime module itself, and a hosted application attaches to its host's platform.\n // `local dev`, not `dev start`: only `local dev` starts the dev companion, which the console drives (#1655).\n ctx.log.info(` ${chalk.bold('wildo local dev')} Start the local stack, register the application, write its configuration, and start it with its dev companion`);\n ctx.log.info('');\n ctx.log.info(` Then create the application from Claude Code: open ${chalk.bold('claude')} in this directory and type ${chalk.bold('/wildo:start')}.`);\n ctx.log.info(chalk.dim(' The /wildo:* commands drive the dev companion; the workbench shows where creation stands.'));\n ctx.log.info('');\n await this.reportAiUseDeclarations(ctx, cwd);\n // Said in the next steps because it is the one rule the creation lane cannot infer for the operator:\n // every family it lands and every build task it dispatches is ACCEPTED by a commit in this repository,\n // and an unaccepted task parks the queue behind it.\n ctx.log.info(chalk.dim(' Acceptance is a git commit in this application: the creation journey lands'));\n ctx.log.info(chalk.dim(' files and dispatches build tasks, and committing them is what accepts them.'));\n ctx.log.info('');\n // Said because `config sync` is the command a creator reaches for after editing configuration, and it registers\n // the application with apps-manager: with no platform running it exits 1 (#3204). Its deploy-artifact half skips\n // with a named reason until the application is registered (#279).\n ctx.log.info(chalk.dim(' After you change configuration, run `wildo config sync` while the platform is up'));\n ctx.log.info(chalk.dim(' (`wildo local dev`, or the host\\'s for a hosted application): it registers this'));\n ctx.log.info(chalk.dim(' application with the platform, and fails when none is running.'));\n ctx.log.info('');\n /*\n * WHICH CREDENTIAL SIGNS IN, said here because it is the first thing the operator does next and\n * the first place they can be wrong.\n *\n * An environment has ONE platform administrator, seeded from the application that OWNS its\n * platform. A hosted application mints an `admin.password` of its own — the material is declared\n * unconditionally, since the same application may own its platform in another environment — and\n * that value seeds nothing here. An operator who reaches for the file this command just wrote is\n * refused, with nothing in the refusal pointing at the host. Naming it costs two lines.\n */\n if (infrastructureHost !== null) {\n ctx.log.info(chalk.dim(` Signing in: this application's administrator is the one ${infrastructureHost} seeded, because`));\n ctx.log.info(chalk.dim(' that application owns the platform. Its credential — not the `admin.password` written above —'));\n ctx.log.info(chalk.dim(' is what authenticates here.'));\n ctx.log.info('');\n }\n\n // An application whose dependencies did not install is not initialized (#3934).\n const uninstalled = uninstalledScaffoldFailure(skeletonResult, this.installSkipped(ctx));\n if (uninstalled !== null) return { success: false, message: uninstalled };\n\n return { success: true };\n }\n\n /** Did the operator ask init not to install (`--skip-install`)? Then an uninstalled scaffold is what was asked for. */\n private installSkipped(ctx: { flags: Record<string, unknown> }): boolean {\n return ctx.flags.skipInstall === true || ctx.flags['skip-install'] === true;\n }\n\n /**\n * The AI uses that still owe a declaration, in the next steps (#2848).\n *\n * Reported, never defaulted and never refused: an undeclared use is listed as outstanding by the privacy notice, which\n * is safer than a default that would claim the use decides nothing. Only the capabilities that reach the application's\n * users count (the engine's contracted-service rule), so the scaffold's build-time AI — the companion's models and the\n * coding agent — owes nothing and the line says so. The agents are not read here: the scaffold is not built yet.\n */\n private async reportAiUseDeclarations(ctx: CommandContext, cwd: string): Promise<void> {\n const report = await assessApplicationAiUseDeclarations({ saasRoot: cwd, agents: undefined }).catch(() => null);\n if (report === null) {\n ctx.log.info(chalk.dim(' AI use: the configuration could not be read yet; `wildo local doctor` lists what is owed after install.'));\n ctx.log.info('');\n return;\n }\n ctx.log.info(' AI use:');\n for (const line of describeAiUseDeclarationReport(report)) ctx.log.info(chalk.dim(` ${line}`));\n ctx.log.info(chalk.dim(' Each agent declares `aiUse` (skill `ai-use-declaration`); `wildo local doctor` re-checks it.'));\n ctx.log.info('');\n }\n\n /**\n * Run the creation essentials against the local environment just provisioned, and record a typed\n * LLM key in its `secrets.json`. Reports rather than refuses: see `creation-essentials.module.ts`.\n */\n private async establishCreationEssentials(ctx: CommandContext, cwd: string): Promise<CreationEssentialsResult | null> {\n ctx.log.info('');\n ctx.log.info(chalk.cyan(' Coding agent and LLM'));\n try {\n const envName = WildoLocationType.LOCAL;\n const result = await establishCreationEssentials({\n log: ctx.log,\n interactive: process.stdin.isTTY === true && ctx.globalFlags.nonInteractive !== true,\n saasRoot: cwd,\n storedProviderEnvNames: readLocalApplicationSecretPresence(envName, ApplicationSecretKind.PROVIDER).stored,\n codingAgentPreference: ctx.preferences?.defaults?.codingAgent,\n });\n if (Object.keys(result.providerEnv).length > 0) updateLocalApplicationSecrets(envName, ApplicationSecretKind.PROVIDER, { set: result.providerEnv });\n return result;\n } catch (error) {\n ctx.log.warn(` Could not check the coding agent and LLM: ${ErrorUtils.extractErrorMessage(error)}. Run \\`wildo local doctor\\`.`);\n return null;\n }\n }\n\n /**\n * `wildo init` re-run inside the application it already created.\n *\n * Deliberately does NOT re-scaffold. The 286 skeleton files are on disk and may carry\n * operator edits; `SaasSkeletonService` refuses a non-empty directory for exactly that\n * reason. What a re-run is FOR is re-asserting the machine-local, non-source state that a\n * scaffold alone does not guarantee — and every step here is idempotent, so running it\n * repeatedly converges rather than churning:\n *\n * - the `local` environment registration (`initializeEnvironment` returns an existing\n * registration untouched);\n * - `secrets.json` — created when absent, otherwise BACKFILLED with any framework-managed\n * material declared since the app was created, rotating nothing (issue #155);\n * - the per-PR validation workflow, which leaves an existing file in place.\n *\n * No prompts for name / runtime / database: those are already answered by the registration\n * and by `wildo.saas.config.ts`, and re-asking would invite an answer that contradicts what\n * is on disk. The administrator is asked for only when there is no `secrets.json` to read\n * one from.\n */\n private async rerunInExistingApp(ctx: CommandContext, cwd: string): Promise<CommandResult> {\n ctx.log.info('');\n ctx.log.info(chalk.dim(` Existing Wildo application detected at ${cwd}`));\n ctx.log.info(chalk.dim(' Re-running init: skeleton left untouched, machine-local state re-asserted.'));\n\n const secretsReport = await EnvironmentRegistry.withSaasRootOverride(\n cwd,\n () => this.provisionLocalSecrets(ctx),\n );\n\n const appName = basename(cwd) || 'app';\n const validationWorkflowResult = this.materializeValidationWorkflow(ctx, cwd, appName);\n /*\n * The RE-RUN path back-fills the repository too, which is the arm that matters most: an application\n * scaffolded before this existed has no repository and cannot accept its journey's output, and\n * `wildo init` in place is exactly what an operator reaches for. Idempotent — an application that\n * already has one is reported, never re-initialized.\n */\n this.initializeApplicationRepository(ctx, cwd);\n\n ctx.log.info('');\n this.reportSecretsOutcome(ctx, secretsReport);\n if (validationWorkflowResult) {\n ctx.log.info(chalk.dim(` CI gate: ${validationWorkflowResult}`));\n }\n ctx.log.info('');\n ctx.log.info(' Next steps:');\n ctx.log.info('');\n ctx.log.info(` ${chalk.bold('wildo align-deps --write')} Align pins with the framework version you installed`);\n ctx.log.info(` ${chalk.bold('wildo update')} Move the CLI and this application to the latest framework release`);\n ctx.log.info(` ${chalk.bold('wildo secrets list')} See which secrets this application needs; set each when a feature asks`);\n // No `wildo config sync` here (#3204): on a machine where no platform has run, its env-files phase cannot reach\n // apps-manager and it exits 1. `local dev` brings the infrastructure and platform up, registers the application and\n // writes every env file and provider-runtime module itself, and a hosted application attaches to its host's platform.\n // `local dev`, not `dev start`: only `local dev` starts the dev companion, which the console drives (#1655).\n ctx.log.info(` ${chalk.bold('wildo local dev')} Start the local stack, register the application, write its configuration, and start it with its dev companion`);\n ctx.log.info('');\n ctx.log.info(` Then create the application from Claude Code: open ${chalk.bold('claude')} in this directory and type ${chalk.bold('/wildo:start')}.`);\n ctx.log.info(chalk.dim(' The /wildo:* commands drive the dev companion; the workbench shows where creation stands.'));\n ctx.log.info('');\n\n // A re-run that could not resolve an administrator has NOT delivered secrets, and the\n // whole point of the re-run was to deliver them — so unlike the scaffold path (where a\n // warning rides alongside 286 files that were genuinely written), there is nothing else\n // to report success about.\n return { success: Boolean(secretsReport.outcome) };\n }\n\n /**\n * Ensure the freshly-registered `local` environment has a complete `secrets.json`.\n *\n * Two branches, and the split is what makes `wildo init` safe to re-run (issue #155):\n *\n * - **A file already exists** — the administrator identity is on disk, so we never\n * re-ask for it, and we hand the EXISTING secrets to the additive provisioner. That\n * backfills any material the framework has declared since the app was created and\n * rotates nothing. A credential a running deployment already holds is never rewritten;\n * re-minting one would orphan the Mongo/Valkey data it protects.\n * - **No file** — resolve the operator-typed half (the administrator) and CREATE it.\n *\n * Returns `blockedReason` instead of throwing when the administrator cannot be resolved.\n * The scaffold has already been written to disk at this point, so failing the whole\n * command would be a confusing lie about what happened; the summary reports the gap and\n * names the exact remedy instead, and a re-run is idempotent.\n */\n /**\n * Write the INITIAL migration of a PostgreSQL application, beside its schema-plan lockfile.\n *\n * On PostgreSQL a resource's table is built by a migration and by NOTHING else, and the first thing\n * that happens to a new application is provisioning: the platform creates its database, the CLI\n * applies its migrations, and apps-manager then SEEDS that database. With no migration to apply the\n * seed meets an empty database and fails on `relation \"applications\" does not exist` — measured\n * 2026-09-16 on a freshly scaffolded application, which is why every PostgreSQL application here had\n * its first migration written by hand before it could be registered at all.\n *\n * So the scaffold writes it, in the same run that built the model it plans from. This is only the\n * FIRST one: `wildo local dev` reconciles later drift, and the build loop derives its own migration\n * step from this same declaration (#1144).\n *\n * Advisory: a scaffold that produced an application is not undone by a migration that could not be\n * planned, so every refusal WARNS and names `wildo db generate`. A MongoDB application never reaches\n * here — its collections exist on first write.\n */\n private async generateInitialApplicationSchema(ctx: CommandContext, saasRoot: string, built: boolean): Promise<string | null> {\n if (!built) {\n ctx.log.warn(\n ' Initial migration NOT generated: the application was not built, so its model cannot be planned. '\n + 'Build it, then run `wildo db generate --name initial-application-schema`.',\n );\n return null;\n }\n const currentJson = await computeCurrentLockfileJson(ctx, saasRoot);\n if (currentJson === undefined) {\n // `computeCurrentLockfileJson` has already said which artifact it refused and why.\n ctx.log.warn(' Initial migration NOT generated — run `wildo db generate --name initial-application-schema` once the model plans.');\n return null;\n }\n const current = parseSchemaPlanLockfile(currentJson);\n try {\n const written = writeSchemaPlanMigration({\n saasRoot,\n name: 'initial-application-schema',\n // The empty model: every table of a new application is an ADD_TABLE, which is why this\n // migration is SAFE by construction and needs no review gate.\n accepted: { lockfileFormatVersion: current.lockfileFormatVersion, plannerContractVersion: current.plannerContractVersion, tables: {} },\n current,\n currentJson,\n });\n if (written === null) {\n ctx.log.warn(' Initial migration NOT generated: the model plans no tables.');\n return null;\n }\n return `${written.folderName} (${written.changes.length} table(s)) + schema-plan.lock.json`;\n } catch (error) {\n ctx.log.warn(` Initial migration NOT generated: ${ErrorUtils.extractErrorMessage(error)}`);\n return null;\n }\n }\n\n private async provisionLocalSecrets(\n ctx: CommandContext,\n ): Promise<{ outcome: SecretsProvisioningOutcome | null; blockedReason?: string }> {\n const envName = WildoLocationType.LOCAL;\n\n if (EnvironmentUtils.loadSecretsJson(envName)) {\n return { outcome: SecretsProvisioning.ensureForEnvironment(envName) };\n }\n\n let admin: AdminUserInput;\n try {\n admin = await this.resolveAdministratorIdentity(ctx);\n } catch (error) {\n return { outcome: null, blockedReason: ErrorUtils.extractErrorMessage(error) };\n }\n\n /*\n * The SECOND administrator, minted in the same breath as the first (#575).\n *\n * `applicationAccessGrantApproverIsDistinct` refuses an approver who is the requester and\n * refuses an absent one, and the application-scoped grant has no auto-approval branch — so a\n * platform provisioned with one administrator cannot authorize classified grant-controlled application-wide reads.\n * Provisioning one and leaving the second to a runbook is what makes that control unusable in\n * practice, so both are created here or neither is.\n *\n * `isLocalEnvironment: true` is a STATEMENT, not an inference: this function creates the app's\n * `local` secrets and nothing else (`envName` above is `WildoLocationType.LOCAL`). It is what\n * licenses the sub-addressed derivation, and it is the only thing that does — a remote\n * environment reaching `resolveApproverIdentity` without the seeds is refused.\n */\n let approver: AdminUserInput;\n try {\n approver = resolveApproverIdentity({ admin, isLocalEnvironment: true, log: ctx.log }).approver;\n } catch (error) {\n return { outcome: null, blockedReason: ErrorUtils.extractErrorMessage(error) };\n }\n\n /*\n * ADOPT this machine's shared platform credentials before minting anything.\n *\n * `provisionFrameworkManagedSecrets` is ADDITIVE — it mints only what is absent — so seeding the\n * draft is the whole mechanism: every adopted value is simply already provisioned, and everything\n * per-application is minted exactly as before. Nothing is overwritten, because the draft's own\n * entries (the administrator the operator just supplied) win.\n *\n * Without this, a new application on a machine already running a platform mints a fresh,\n * internally-consistent set that authenticates to NOTHING — 16 of 25 shared secrets diverged when\n * this was measured, and the operator saw one line naming `PLATFORM_ADMIN_SECRET`, which was one\n * of the sixteen.\n */\n const draft: Record<string, unknown> = {};\n await this.adoptLocalDefaults(ctx, draft);\n\n const outcome = SecretsProvisioning.ensureForEnvironment(envName, {\n createWith: {\n // Whatever was adopted. Empty when there is no local-defaults file, or the operator declined.\n ...(draft as object),\n admin: {\n email: admin.email,\n firstName: admin.firstName,\n lastName: admin.lastName,\n // OMITTED rather than passed as `undefined` when the operator gave no password:\n // the ADMIN_PASSWORD framework-managed material mints a 16-char one, which keeps\n // the \"who minted this?\" answer in a single registry.\n ...(admin.password ? { password: admin.password } : {}),\n },\n approver: {\n email: approver.email,\n firstName: approver.firstName,\n lastName: approver.lastName,\n // Same omission rule, and it is what makes \"the same password as the administrator\" true\n // rather than approximately true: when the operator typed none, BOTH are left for the\n // framework-managed materials to mint, and the ADMIN_PASSWORD material copies the\n // administrator's rather than generating a second one.\n ...(approver.password ? { password: approver.password } : {}),\n },\n },\n });\n\n // Mark the environment set up so a later noninteractive setup remains a no-op rather than\n // unnecessarily regenerating infrastructure. Setup reconfiguration itself now preserves existing\n // credentials; force requests configuration re-authoring, never credential rotation.\n EnvironmentLifecycle.setSetupStatus(SetupStatus.COMPLETED, envName);\n\n return { outcome };\n }\n\n /**\n * The resolved local-defaults decision, memoized for the RUN rather than for the call.\n *\n * `undefined` = not asked yet; `null` = nothing to adopt, or the operator declined.\n *\n * It is read at two moments that must not disagree — the scaffold, which authors whether this\n * application owns its environment's infrastructure, and the secrets step, which seeds the draft —\n * and asking twice would put the same confirm prompt in front of the operator twice and let the two\n * answers differ. One decision, two consequences.\n */\n private localDefaultsDecision: WildoLocalDefaults | null | undefined = undefined;\n\n /** {@link localDefaultsDecision}, resolving it on first call. */\n private async resolveLocalDefaultsOnce(ctx: CommandContext): Promise<WildoLocalDefaults | null> {\n if (this.localDefaultsDecision !== undefined) return this.localDefaultsDecision;\n // The decision itself lives in the service, so `wildo setup` reaches it the same way and the\n // no-TTY fallback cannot differ between the two commands.\n this.localDefaultsDecision = await resolveLocalDefaultsAdoption({\n mode: String(\n ctx.flags.localDefaults\n ?? ctx.flags['local-defaults']\n ?? ctx.cliContext.preferences?.defaults?.localDefaults\n ?? LocalDefaultsMode.ASK,\n ),\n canAsk: process.stdin.isTTY === true && ctx.globalFlags.nonInteractive !== true,\n confirm: async (found) => {\n ctx.log.info('');\n ctx.log.info(chalk.cyan(` Machine local defaults found: ${describeSharedLocalDefaults(found)}`));\n return this.prompt<boolean>(ctx, {\n id: 'adopt-local-defaults',\n type: 'confirm',\n message: 'Adopt them, so this application joins the platform already running on this machine?',\n default: true,\n });\n },\n });\n return this.localDefaultsDecision;\n }\n\n /** The provider-key decision, taken once: the keys to seed, or `null`. */\n private providerKeyDefaultsDecision: Readonly<Record<string, string>> | null | undefined = undefined;\n\n /** {@link providerKeyDefaultsDecision}, resolving it on first call. */\n private async resolveProviderKeyDefaultsOnce(ctx: CommandContext): Promise<Readonly<Record<string, string>> | null> {\n if (this.providerKeyDefaultsDecision !== undefined) return this.providerKeyDefaultsDecision;\n this.providerKeyDefaultsDecision = await resolveProviderKeyDefaultsAdoption({\n mode: String(\n ctx.flags.providerKeyDefaults\n ?? ctx.flags['provider-key-defaults']\n ?? ctx.cliContext.preferences?.defaults?.providerKeyDefaults\n ?? DEFAULT_PROVIDER_KEY_DEFAULTS_MODE,\n ),\n canAsk: process.stdin.isTTY === true && ctx.globalFlags.nonInteractive !== true,\n confirm: (names) => this.prompt<boolean>(ctx, {\n id: 'adopt-provider-key-defaults',\n type: 'confirm',\n message: `Seed this application with the provider keys captured on this machine (${names.join(', ')})?`,\n default: true,\n }),\n });\n return this.providerKeyDefaultsDecision;\n }\n\n /**\n * Seed the secrets draft from `~/.wildo/local-defaults.json`: the shared half under `--local-defaults`,\n * the provider keys under `--provider-key-defaults`.\n *\n * Returns what was adopted, or `null` when there was nothing to adopt or the operator declined.\n *\n * ASK falls back to ADOPT with no TTY rather than to SKIP, and that direction is deliberate: a\n * headless run that silently MINTS produces an application which cannot reach the running platform,\n * and the failure surfaces much later as an authentication error naming one secret out of sixteen.\n * Adopting is both the recoverable choice and the one the operator meant by capturing the file.\n */\n private async adoptLocalDefaults(\n ctx: CommandContext,\n draft: Record<string, unknown>,\n ): Promise<{ sharedKeys: readonly string[]; providerKeys: readonly string[] } | null> {\n const defaults = await this.resolveLocalDefaultsOnce(ctx);\n const sharedKeys = defaults ? applySharedLocalDefaults(draft, defaults) : [];\n /*\n * The provider keys are their OWN decision (`--provider-key-defaults`), taken even when the shared\n * half was skipped or declined: an application that owns its platform still wants the OpenAI key\n * this machine captured. See \"Two halves, two decisions\" in local-defaults.service.ts.\n */\n const providerEnv = await this.resolveProviderKeyDefaultsOnce(ctx);\n const providerKeys = providerEnv ? applyProviderKeyDefaults(draft, providerEnv) : [];\n if (sharedKeys.length === 0 && providerKeys.length === 0) return null;\n ctx.log.info(chalk.dim(\n ` Adopted ${sharedKeys.length} shared infrastructure value(s) and `\n + `${providerKeys.length} provider key(s) from ~/.wildo/local-defaults.json`,\n ));\n return { sharedKeys, providerKeys };\n }\n\n /**\n * Resolve the platform-administrator identity for the app's local `secrets.json`.\n *\n * Four doors, in order — flags, env seeds, prompt, refusal:\n *\n * 1. `--admin-email` + `--admin-first-name` + `--admin-last-name` (all three, together).\n * 2. `--non-interactive` -> the `WILDO_INIT_ADMIN_*` seeds, fail-closed when absent.\n * 3. interactive -> the shared `wildo setup` prompt, with the seeds as prefilled defaults.\n *\n * No door substitutes a placeholder, and that is deliberate rather than strict. A literal\n * 'Admin' / 'User' / `noreply@example.com` silently seeds the platform-admin USER RECORD\n * with non-meaningful identity, which regresses audit trails, password-reset email and the\n * bootstrap email-confirm flow — and apps-manager requires `ADMIN_FIRST_NAME` /\n * `ADMIN_LAST_NAME` fail-closed anyway. See `platformAdminUserModule`, which owns that\n * doctrine and which door 3 reuses rather than re-implementing.\n *\n * Only the PASSWORD may be omitted; the secrets writer generates one.\n */\n private async resolveAdministratorIdentity(ctx: CommandContext): Promise<AdminUserInput> {\n /*\n * Flag first, then the MACHINE's stated identity — who the operator is does not change between\n * two applications created an hour apart, and re-typing it is the operator restating something\n * `~/.wildo/preferences.json` already holds. A flag still overrides per run, so one application\n * can carry a different administrator without the file being edited.\n *\n * The PASSWORD is deliberately absent from that file and stays flag/env-only. `preferences.json`\n * is ordinary-permission machine config holding ANSWERS; credential MATERIAL lives in\n * `local-defaults.json` beside it, which is written `0600` — and an omitted password is minted\n * by the framework-managed materials anyway, which is the better answer than storing one.\n */\n const machine = ctx.cliContext.preferences?.defaults;\n const email = this.readAdminFlag(ctx, 'admin-email', 'adminEmail') ?? machine?.adminEmail;\n const firstName = this.readAdminFlag(ctx, 'admin-first-name', 'adminFirstName') ?? machine?.adminFirstName;\n const lastName = this.readAdminFlag(ctx, 'admin-last-name', 'adminLastName') ?? machine?.adminLastName;\n const password = this.readAdminFlag(ctx, 'admin-password', 'adminPassword');\n\n const missing = [\n !email && '--admin-email',\n !firstName && '--admin-first-name',\n !lastName && '--admin-last-name',\n ].filter((flag): flag is string => Boolean(flag));\n\n if (missing.length === 0) {\n if (!(email!.includes('@') && email!.includes('.'))) {\n throw new Error(`--admin-email is not a valid email address: \"${email}\".`);\n }\n return { email: email!, firstName: firstName!, lastName: lastName!, password };\n }\n\n // A PARTIAL set of flags is an operator mistake, not a request to fall back. Falling\n // through to a prompt here would silently discard the values that WERE supplied.\n if (missing.length < 3) {\n throw new Error(\n 'Partial platform-administrator identity: --admin-email, --admin-first-name and '\n + `--admin-last-name must resolve together. Missing: ${missing.join(', ')}. `\n + 'Supply them as flags, or state them once on this machine under `defaults` in '\n + '~/.wildo/preferences.json (`wildo prefs set --admin-email … --admin-first-name … '\n + '--admin-last-name …`).',\n );\n }\n\n /*\n * NO TTY is the same situation as `--non-interactive`, and treating it differently cost real\n * secrets.\n *\n * The seeds were reachable only behind the explicit flag; the interactive door uses them as\n * PREFILLED DEFAULTS. So a scripted run without the flag — a CI step, a backgrounded shell, any\n * pipeline with stdin closed — reached the prompt, the prompt was force-closed by EOF, and init\n * completed with a WARNING that secrets were not provisioned. Measured 2026-09-17: the run looked\n * successful, `secrets.json` was absent, and the failure surfaced later as `config sync` refusing\n * its env-files phase.\n *\n * Asking whether a person can answer is what the two branches actually differ on, so ask that\n * rather than requiring the operator to have declared it in advance.\n */\n if (ctx.globalFlags.nonInteractive === true || process.stdin.isTTY !== true) {\n return resolveAdminUserFromEnvSeeds(ctx.log);\n }\n\n return platformAdminUserModule.prompt({ log: ctx.log });\n }\n\n /**\n * Read one administrator flag in both spellings the kernel may expose it under, mirroring\n * how `--config-only` / `--port-base` are read elsewhere in this command. Blank strings\n * are treated as absent so a stray `--admin-email=` cannot install an empty identity.\n */\n private readAdminFlag(ctx: CommandContext, kebab: string, camel: string): string | undefined {\n const raw = (ctx.flags[camel] ?? ctx.flags[kebab]) as string | undefined;\n if (typeof raw !== 'string') return undefined;\n const trimmed = raw.trim();\n return trimmed === '' ? undefined : trimmed;\n }\n\n /** Render the secrets step's result as one line of the scaffold summary. */\n private reportSecretsOutcome(\n ctx: CommandContext,\n report: { outcome: SecretsProvisioningOutcome | null; blockedReason?: string },\n ): void {\n if (!report.outcome) {\n ctx.log.warn(` Secrets: NOT provisioned — ${report.blockedReason}`);\n ctx.log.warn(\n \" `wildo config sync` will fail its env-files phase until they exist. \"\n + 'Re-run `wildo init` with --admin-email / --admin-first-name / --admin-last-name '\n + `(or set ${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_EMAIL}, `\n + `${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_FIRSTNAME}, `\n + `${WildoCliInitAdminEnvKeys.WILDO_INIT_ADMIN_LASTNAME}) — it is idempotent and `\n + 'leaves everything already scaffolded untouched.',\n );\n return;\n }\n\n switch (report.outcome.status) {\n case SecretsProvisioningStatus.CREATED:\n ctx.log.info(chalk.dim(\n ` Secrets: secrets.json minted (${report.outcome.mintedRefs.length} framework-managed materials)`,\n ));\n break;\n case SecretsProvisioningStatus.PROVISIONED:\n ctx.log.info(chalk.dim(\n ` Secrets: secrets.json backfilled (${report.outcome.mintedRefs.length} newly-declared material(s), nothing rotated)`,\n ));\n break;\n case SecretsProvisioningStatus.ALREADY_COMPLETE:\n ctx.log.info(chalk.dim(' Secrets: secrets.json already complete — nothing minted'));\n break;\n case SecretsProvisioningStatus.NO_SECRETS_FILE:\n // Unreachable: the create branch above always supplies `createWith`. Reported rather\n // than ignored so a future refactor that drops the draft cannot fail silently.\n ctx.log.warn(' Secrets: not provisioned — no operator draft reached the provisioner.');\n break;\n }\n }\n\n /**\n * Best-effort install of the per-PR validation workflow. Returns a\n * one-line human-readable status the caller can render in the\n * scaffold summary, or `null` if the framework path could not be\n * resolved (e.g. operator is running a globally-installed CLI without\n * the framework checkout — rare, but the scaffold must still succeed).\n *\n * Slice 6.8 / F-48 — kept in `init` so a brand-new app gets the gate\n * by default, and mirrored in `wildo setup` so existing pre-Slice-6.8\n * apps can back-fill it idempotently.\n */\n /**\n * Resolve `src/generated/csp.generated.json` FOR REAL, right after the scaffold installs (#417).\n *\n * The skeleton ships a hand-written `csp.generated.json.hbs` — a generated-LOOKING artifact that\n * no resolution produced. It exists because the frontend imports the file at build time, so\n * something has to be there before the first `wildo dev start` runs the sync. Keeping it is fine;\n * shipping it as the ONLY thing that ever wrote that path was not.\n *\n * BEST-EFFORT by design, the same posture this command already takes for the validation workflow\n * and the asset homes: a scaffold that produced 286 correct files must not fail because one\n * derived artifact could not be resolved. The next `wildo dev start` resolves it anyway, so the\n * cost of a miss is that the placeholder survives one step longer.\n *\n * Skipped without install, because resolving loads the application's own TypeScript config\n * through its `node_modules`.\n */\n private async resolveInitialCspArtifact(\n ctx: CommandContext,\n appRoot: string,\n installed: boolean,\n ): Promise<string | null> {\n if (!installed) {\n return null;\n }\n try {\n const result = await CspSyncService.sync({\n saasRoot: appRoot,\n envName: 'local',\n // No `serviceKey`: every CSP-capable frontend the scaffold produced is resolved, so a\n // scenario that added a website or a docs portal is covered without naming them here.\n env: process.env,\n });\n const written = result.services.filter((service) => service.wroteChanges).length;\n return written > 0 ? `resolved ${written} CSP artifact(s)` : null;\n } catch (error) {\n ctx.log.warn(\n `Could not resolve the initial CSP artifact: ${ErrorUtils.extractErrorMessage(error)}. `\n + 'The scaffold placeholder is still in place; `wildo dev sync-csp` resolves it.',\n );\n return null;\n }\n }\n\n /**\n * Apply the planned layers onto a materialized base at `appRoot`: for each layer, the registry modules it references\n * (#2879), installed through the `wildo registry add` pipeline from the bytes fetched up front, then its own content,\n * which may import them. `afterLayer` runs once per layer, after both.\n */\n private async applyBlueprintLayersOnto(input: {\n readonly appRoot: string;\n readonly identity: { readonly slug: string; readonly displayName: string };\n readonly plan: BlueprintInitPlan;\n readonly frameworkPath: string | null;\n readonly log?: CommandContext['log'];\n readonly afterLayer?: (layer: LoadedBlueprintArtifact, parameters: Readonly<Record<string, BlueprintParameterValue>>, lines: readonly string[]) => void;\n }): Promise<void> {\n const lowerLayerFiles = new Set<string>();\n const lowerLayerDeclarations: BlueprintDeclarationTarget[] = [];\n for (const [index, layer] of input.plan.layers.entries()) {\n const parameters = input.plan.parameters[index] ?? {};\n const referenceLines = await installBlueprintModuleReferences({\n applicationRoot: input.appRoot,\n frameworkRoot: input.frameworkPath,\n layer,\n acquired: input.plan.references,\n ...(input.log === undefined ? {} : { log: input.log }),\n });\n const outcome = applyBlueprintLayer({\n applicationRoot: input.appRoot,\n frameworkRoot: input.frameworkPath,\n layer,\n parameters,\n identity: input.identity,\n lowerLayerFiles,\n lowerLayerDeclarations,\n });\n for (const written of outcome.written) lowerLayerFiles.add(written);\n lowerLayerDeclarations.push(...outcome.declared);\n /*\n * The line is answered in the step of the layer that names it (#2863), so the rehearsal checks it and that\n * layer's commit carries the dossier. After the layer's own files: a dossier one of them carried is read first.\n */\n const lineLines = input.plan.line?.declaredBy === layer\n ? [await recordBlueprintLineAnswer({ applicationRoot: input.appRoot, resolved: input.plan.line, answeredAt: new Date().toISOString() })]\n : [];\n input.afterLayer?.(layer, parameters, [...referenceLines, ...outcome.lines, ...lineLines]);\n }\n }\n\n private async rehearseBlueprintLayers(\n plan: BlueprintInitPlan,\n scaffold: Pick<SaasSkeletonOptions, 'name' | 'frameworkPath' | 'mode' | 'database' | 'infrastructureHost'>,\n ): Promise<void> {\n const scratch = mkdtempSync(join(tmpdir(), 'wildo-init-blueprint-rehearsal-'));\n try {\n // A fixed directory name: the application's NAME is not a path segment, and `--name ../x` must not leave the\n // scratch directory. The skeleton takes the name from `scaffold.name`, not from the directory.\n const materialized = SaasSkeletonService.materialize(join(scratch, 'application'), {\n ...scaffold,\n deliverCompanion: false,\n log: { info: () => undefined, warn: () => undefined },\n });\n await this.applyBlueprintLayersOnto({\n appRoot: materialized.appRoot,\n identity: { slug: materialized.slug, displayName: materialized.displayName },\n plan,\n frameworkPath: scaffold.frameworkPath,\n });\n } finally {\n rmSync(scratch, { recursive: true, force: true });\n }\n }\n\n /**\n * Apply the blueprint layers on the materialized base, before install (epic #2856, #2859).\n *\n * The repository is created FIRST, so the base is its own commit and every layer is one more — git is how a layer\n * is reviewed and undone (`git revert`), and acceptance in Wildo is a commit. When the application sits inside\n * a repository that tracks it, that repository's commits are the acceptance and no commit is made here.\n */\n private async applyBlueprintLayers(\n ctx: CommandContext,\n context: SaasSkeletonMaterializedContext,\n plan: BlueprintInitPlan,\n frameworkPath: string | null,\n ): Promise<ReturnType<InitCommand['initializeApplicationRepository']>> {\n const repository = this.initializeApplicationRepository(ctx, context.appRoot);\n await this.applyBlueprintLayersOnto({\n appRoot: context.appRoot,\n identity: { slug: context.slug, displayName: context.displayName },\n plan,\n frameworkPath,\n log: ctx.log,\n afterLayer: (layer, parameters, lines) => {\n ctx.log.info(` Blueprint ${layer.manifest.id}@${layer.manifest.version}: ${lines.join('; ') || 'nothing to apply'}`);\n if (repository !== 'created') return;\n const parameterLines = Object.entries(parameters).map(([name, value]) => `- ${name} = ${String(value)}`);\n const referenceLines = lines.filter((line) => line.startsWith('registry module ')).map((line) => `- ${line.slice('registry module '.length)}`);\n this.commitEverything(ctx, context.appRoot, [\n `Applied blueprint ${layer.manifest.id}@${layer.manifest.version}`,\n '',\n layer.manifest.description,\n ...(parameterLines.length > 0 ? ['', 'Parameters:', ...parameterLines] : []),\n ...(referenceLines.length > 0 ? ['', 'Registry modules installed:', ...referenceLines] : []),\n ].join('\\n'));\n },\n });\n return repository;\n }\n\n /**\n * After the closing commit, say what init left uncommitted, if anything (#3234).\n *\n * The tree should be clean: every step that writes ran before the commit, and what they write is either committed or\n * git-ignored. A path listed here is a writer that escaped that ordering (or a commit git refused), and saying so is\n * the difference between a known leftover and one the first build task silently folds into its own commit.\n */\n private reportUncommittedInitLeftovers(ctx: CommandContext, appRoot: string): void {\n let porcelain: string;\n try {\n porcelain = execFileSync('git', ['status', '--porcelain'], { cwd: appRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n } catch {\n return;\n }\n if (porcelain === '') return;\n const paths = porcelain.split('\\n');\n ctx.log.warn(` wildo init left ${paths.length} uncommitted path(s); commit them before the journey starts, since acceptance is a commit:`);\n for (const line of paths.slice(0, 10)) ctx.log.warn(` ${line}`);\n if (paths.length > 10) ctx.log.warn(` … and ${paths.length - 10} more (\\`git status\\`).`);\n }\n\n /** Stage everything and commit it, best-effort: a refused commit is reported, never fatal. */\n private commitEverything(ctx: CommandContext, appRoot: string, message: string): void {\n try {\n execFileSync('git', ['add', '-A'], { cwd: appRoot, stdio: ['ignore', 'pipe', 'ignore'] });\n const staged = execFileSync('git', ['diff', '--cached', '--name-only'], { cwd: appRoot, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n if (staged === '') return;\n execFileSync('git', ['commit', '-m', message], { cwd: appRoot, stdio: ['ignore', 'pipe', 'ignore'] });\n } catch {\n ctx.log.warn(` Could not commit \"${message.split('\\n')[0]}\" (is \\`user.email\\` configured?). Commit it before running the journey: acceptance is a commit.`);\n }\n }\n\n /**\n * Give the scaffolded application its own git repository, and commit the scaffold into it.\n *\n * ## Why the scaffold owns this\n *\n * `one-source-of-truth.md`: git is the accepted state, and acceptance is a commit. The creation lane\n * reads landing from git — a specification family is accepted when its file is committed, a build task\n * has landed when every artifact it `produces` is in the working tree as git sees it (#3204), and the\n * companion's build checkpoints commit it. An application with no repository therefore cannot accept its\n * own journey's output: git sees no product, no checkpoint can be made, and the build queue parks.\n *\n * The skeleton already ships a `.gitignore` written for a STANDALONE application (\"an app scaffolded\n * OUTSIDE the framework monorepo has no parent .gitignore\"), so the repository is the half that was\n * missing rather than a new idea.\n *\n * ## When it does NOT create one, which is the part that needs the rule\n *\n * A destination already tracked by a repository belongs to that repository — a monorepo scaffolding an\n * application into `apps/`, most obviously — and nesting a second one there would split its history for\n * no reason. So:\n *\n * | destination | what happens |\n * |---|---|\n * | inside no repository at all | initialize one here |\n * | inside a repository that IGNORES it (the framework's own `examples/scratch-*`) | initialize one here: the container will never track it, so it can never accept anything |\n * | inside a repository that tracks it | leave it alone — that repository's commits are the acceptance |\n * | already its own repository root | leave it alone |\n *\n * Best-effort in every arm: a machine with no `git`, or a repository that refuses, must not fail a\n * scaffold that otherwise succeeded. What it must not do is stay SILENT — the operator is told which\n * arm ran, because \"acceptance is a commit\" is unusable knowledge without knowing where the commits go.\n */\n private initializeApplicationRepository(ctx: CommandContext, appRoot: string): 'created' | 'existing' | 'container' | 'unavailable' {\n const git = (args: readonly string[], cwd: string): string | null => {\n try {\n return execFileSync('git', [...args], { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim();\n } catch {\n return null;\n }\n };\n\n /*\n * REAL paths on both sides. `git rev-parse --show-toplevel` answers the resolved path, while the\n * scaffold's `cwd` can carry a symlink — on macOS every temporary directory does (`/var` → `/private/var`)\n * — so comparing them as written makes an application that IS its own repository read as one nested in a\n * container of the same name. Found by the test driving real repositories rather than a stubbed `git`.\n */\n const real = (candidate: string): string => {\n try {\n return realpathSync(candidate);\n } catch {\n return resolvePath(candidate);\n }\n };\n const containerRoot = git(['rev-parse', '--show-toplevel'], appRoot);\n if (containerRoot !== null && real(containerRoot) === real(appRoot)) {\n ctx.log.info(' This application is already a git repository; its commits are how the journey accepts what it produces.');\n return 'existing';\n }\n if (containerRoot !== null) {\n // `check-ignore` exits non-zero (→ null here) when the path is NOT ignored, which is the tracked case.\n const ignored = git(['check-ignore', appRoot], containerRoot) !== null;\n if (!ignored) {\n ctx.log.info(` This application lives inside the git repository at ${containerRoot}; its commits are how the journey accepts what it produces.`);\n return 'container';\n }\n }\n\n if (git(['init'], appRoot) === null) {\n ctx.log.warn(\n ' Could not initialize a git repository for this application. Acceptance in Wildo is a git commit — '\n + 'the creation lane reads whether an artifact or a build task has landed from git — so run `git init` '\n + 'here before running the journey, or its build tasks will never land.',\n );\n return 'unavailable';\n }\n git(['add', '-A'], appRoot);\n const committed = git(['commit', '-m', 'Scaffolded by wildo init'], appRoot);\n ctx.log.info(` Initialized a git repository for this application${committed === null ? '' : ' and committed the scaffold'}.`);\n if (committed === null) {\n ctx.log.warn(' The scaffold could not be committed (is `user.email` configured?). Commit it before running the journey: acceptance is a commit.');\n }\n return 'created';\n }\n\n private materializeValidationWorkflow(\n ctx: CommandContext,\n appRoot: string,\n appName: string,\n ): string | null {\n const frameworkPath = ctx.cliContext.resolvedHomes.framework.repositoryRoot;\n if (!frameworkPath) {\n ctx.log.warn(\n 'Skipping `.github/workflows/wildo-config-validation.yml` install: framework path not resolved. '\n + 'Re-run `wildo setup` from this app once the framework is on PATH.',\n );\n return null;\n }\n try {\n const result = installValidationWorkflow(appRoot, frameworkPath, { appName });\n if (result.created) {\n return `installed ${result.path.replace(`${appRoot}/`, '')}`;\n }\n if (result.skipped) {\n return `${result.path.replace(`${appRoot}/`, '')} already present (left in place)`;\n }\n return result.path;\n } catch (error) {\n ctx.log.warn(\n `Could not install per-PR validation workflow: ${ErrorUtils.extractErrorMessage(error)}. `\n + 'Re-run `wildo setup` to retry.',\n );\n return null;\n }\n }\n}\n"]}