@wildo-ai/wildo-cli 1.1.13 → 1.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (589) hide show
  1. package/dist/src/commands/build/approve.command.d.ts +4 -0
  2. package/dist/src/commands/build/approve.command.d.ts.map +1 -1
  3. package/dist/src/commands/build/approve.command.js +14 -3
  4. package/dist/src/commands/build/approve.command.js.map +1 -1
  5. package/dist/src/commands/build/close.command.d.ts +4 -0
  6. package/dist/src/commands/build/close.command.d.ts.map +1 -1
  7. package/dist/src/commands/build/close.command.js +17 -3
  8. package/dist/src/commands/build/close.command.js.map +1 -1
  9. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  10. package/dist/src/commands/config/sync.command.js +21 -1
  11. package/dist/src/commands/config/sync.command.js.map +1 -1
  12. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  13. package/dist/src/commands/creation/feed.command.js +6 -3
  14. package/dist/src/commands/creation/feed.command.js.map +1 -1
  15. package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
  16. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  17. package/dist/src/commands/fwk/publish-all.command.js +57 -3
  18. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  19. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  20. package/dist/src/commands/fwk/publish-docker.command.js +16 -1
  21. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  22. package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
  23. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  24. package/dist/src/commands/fwk/registry-host.command.js +78 -3
  25. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  26. package/dist/src/commands/generate/email-command.utils.d.ts +2 -0
  27. package/dist/src/commands/generate/email-command.utils.d.ts.map +1 -1
  28. package/dist/src/commands/generate/email-command.utils.js +5 -0
  29. package/dist/src/commands/generate/email-command.utils.js.map +1 -1
  30. package/dist/src/commands/init.command.d.ts +14 -0
  31. package/dist/src/commands/init.command.d.ts.map +1 -1
  32. package/dist/src/commands/init.command.js +36 -5
  33. package/dist/src/commands/init.command.js.map +1 -1
  34. package/dist/src/commands/local/deregister.command.d.ts.map +1 -1
  35. package/dist/src/commands/local/deregister.command.js +4 -0
  36. package/dist/src/commands/local/deregister.command.js.map +1 -1
  37. package/dist/src/commands/local/dev.command.d.ts +6 -0
  38. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  39. package/dist/src/commands/local/dev.command.js +72 -0
  40. package/dist/src/commands/local/dev.command.js.map +1 -1
  41. package/dist/src/commands/local/jobs-command.utils.d.ts +24 -0
  42. package/dist/src/commands/local/jobs-command.utils.d.ts.map +1 -0
  43. package/dist/src/commands/local/jobs-command.utils.js +44 -0
  44. package/dist/src/commands/local/jobs-command.utils.js.map +1 -0
  45. package/dist/src/commands/local/jobs-run.command.d.ts +7 -0
  46. package/dist/src/commands/local/jobs-run.command.d.ts.map +1 -0
  47. package/dist/src/commands/local/jobs-run.command.js +92 -0
  48. package/dist/src/commands/local/jobs-run.command.js.map +1 -0
  49. package/dist/src/commands/local/jobs.command.d.ts +7 -0
  50. package/dist/src/commands/local/jobs.command.d.ts.map +1 -0
  51. package/dist/src/commands/local/jobs.command.js +59 -0
  52. package/dist/src/commands/local/jobs.command.js.map +1 -0
  53. package/dist/src/commands/local/tunnel.command.d.ts +84 -0
  54. package/dist/src/commands/local/tunnel.command.d.ts.map +1 -0
  55. package/dist/src/commands/local/tunnel.command.js +274 -0
  56. package/dist/src/commands/local/tunnel.command.js.map +1 -0
  57. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  58. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  59. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  60. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  61. package/dist/src/commands/registry/update.command.js +1 -0
  62. package/dist/src/commands/registry/update.command.js.map +1 -1
  63. package/dist/src/commands/seal/verify.command.d.ts +18 -0
  64. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  65. package/dist/src/commands/seal/verify.command.js +62 -1
  66. package/dist/src/commands/seal/verify.command.js.map +1 -1
  67. package/dist/src/services/application/app-bootstrap.service.d.ts +41 -1
  68. package/dist/src/services/application/app-bootstrap.service.d.ts.map +1 -1
  69. package/dist/src/services/application/app-bootstrap.service.js +49 -3
  70. package/dist/src/services/application/app-bootstrap.service.js.map +1 -1
  71. package/dist/src/services/application/app-runtime-targets.service.d.ts.map +1 -1
  72. package/dist/src/services/application/app-runtime-targets.service.js +9 -1
  73. package/dist/src/services/application/app-runtime-targets.service.js.map +1 -1
  74. package/dist/src/services/application/application-dependency-alignment.service.d.ts +20 -0
  75. package/dist/src/services/application/application-dependency-alignment.service.d.ts.map +1 -1
  76. package/dist/src/services/application/application-dependency-alignment.service.js +32 -2
  77. package/dist/src/services/application/application-dependency-alignment.service.js.map +1 -1
  78. package/dist/src/services/application/local-tunnel.service.d.ts +153 -0
  79. package/dist/src/services/application/local-tunnel.service.d.ts.map +1 -0
  80. package/dist/src/services/application/local-tunnel.service.js +294 -0
  81. package/dist/src/services/application/local-tunnel.service.js.map +1 -0
  82. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  83. package/dist/src/services/application/provider-runtime-sync.service.js +29 -1
  84. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  85. package/dist/src/services/application/saas-skeleton.service.d.ts +7 -0
  86. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  87. package/dist/src/services/application/saas-skeleton.service.js +26 -2
  88. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  89. package/dist/src/services/catalog/service-address-resolver.service.d.ts +7 -1
  90. package/dist/src/services/catalog/service-address-resolver.service.d.ts.map +1 -1
  91. package/dist/src/services/catalog/service-address-resolver.service.js +6 -3
  92. package/dist/src/services/catalog/service-address-resolver.service.js.map +1 -1
  93. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  94. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  95. package/dist/src/services/companion/build-console.service.js +54 -4
  96. package/dist/src/services/companion/build-console.service.js.map +1 -1
  97. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  98. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  99. package/dist/src/services/companion/creation-console.service.js +14 -2
  100. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  101. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  102. package/dist/src/services/companion/creation-drive.service.js +5 -2
  103. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  104. package/dist/src/services/credentials/application-secrets.service.d.ts +6 -0
  105. package/dist/src/services/credentials/application-secrets.service.d.ts.map +1 -1
  106. package/dist/src/services/credentials/application-secrets.service.js +1 -1
  107. package/dist/src/services/credentials/application-secrets.service.js.map +1 -1
  108. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  109. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  110. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  111. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  112. package/dist/src/services/credentials/provider-env-vars.utils.js +3 -1
  113. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  114. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  115. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  116. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  117. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  118. package/dist/src/services/credentials/secrets-writer.service.d.ts +11 -2
  119. package/dist/src/services/credentials/secrets-writer.service.d.ts.map +1 -1
  120. package/dist/src/services/credentials/secrets-writer.service.js +12 -3
  121. package/dist/src/services/credentials/secrets-writer.service.js.map +1 -1
  122. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  123. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  124. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  125. package/dist/src/services/deployment/ci-deploy-generator.service.d.ts.map +1 -1
  126. package/dist/src/services/deployment/ci-deploy-generator.service.js +3 -3
  127. package/dist/src/services/deployment/ci-deploy-generator.service.js.map +1 -1
  128. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts +3 -3
  129. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  130. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +24 -14
  131. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  132. package/dist/src/services/deployment/framework-pod-network-membership.d.ts +6 -0
  133. package/dist/src/services/deployment/framework-pod-network-membership.d.ts.map +1 -1
  134. package/dist/src/services/deployment/framework-pod-network-membership.js +12 -3
  135. package/dist/src/services/deployment/framework-pod-network-membership.js.map +1 -1
  136. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  137. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  138. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  139. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts +4 -1
  140. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  141. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +20 -8
  142. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  143. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts +7 -0
  144. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.d.ts.map +1 -1
  145. package/dist/src/services/deployment/k8s/k8s-manifest.schemas.js.map +1 -1
  146. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.d.ts.map +1 -1
  147. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js +15 -9
  148. package/dist/src/services/deployment/k8s/k8s-secrets-generator.service.js.map +1 -1
  149. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts +43 -0
  150. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.d.ts.map +1 -0
  151. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js +12 -0
  152. package/dist/src/services/deployment/k8s/kind-pod-host-gateway.js.map +1 -0
  153. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts +3 -1
  154. package/dist/src/services/deployment/k8s/off-cluster-backing-services.d.ts.map +1 -1
  155. package/dist/src/services/deployment/k8s/off-cluster-backing-services.js.map +1 -1
  156. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts +124 -0
  157. package/dist/src/services/deployment/local-dev-late-workspace-members.service.d.ts.map +1 -0
  158. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js +249 -0
  159. package/dist/src/services/deployment/local-dev-late-workspace-members.service.js.map +1 -0
  160. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  161. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  162. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  163. package/dist/src/services/environment/authored-infra-config.utils.d.ts +9 -0
  164. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  165. package/dist/src/services/environment/authored-infra-config.utils.js +20 -1
  166. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  167. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts +6 -0
  168. package/dist/src/services/environment/container-host-gateway-listen-host.d.ts.map +1 -1
  169. package/dist/src/services/environment/container-host-gateway-listen-host.js +6 -0
  170. package/dist/src/services/environment/container-host-gateway-listen-host.js.map +1 -1
  171. package/dist/src/services/environment/env-configuration-generator.service.d.ts +12 -0
  172. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  173. package/dist/src/services/environment/env-configuration-generator.service.js +45 -8
  174. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  175. package/dist/src/services/environment/env-vars-builder.service.d.ts +2 -1
  176. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  177. package/dist/src/services/environment/env-vars-builder.service.js +47 -32
  178. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  179. package/dist/src/services/environment/environment-lifecycle.service.d.ts +7 -4
  180. package/dist/src/services/environment/environment-lifecycle.service.d.ts.map +1 -1
  181. package/dist/src/services/environment/environment-lifecycle.service.js +14 -18
  182. package/dist/src/services/environment/environment-lifecycle.service.js.map +1 -1
  183. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  184. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  185. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  186. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  187. package/dist/src/services/environment/environment-setup.service.d.ts.map +1 -1
  188. package/dist/src/services/environment/environment-setup.service.js +17 -6
  189. package/dist/src/services/environment/environment-setup.service.js.map +1 -1
  190. package/dist/src/services/environment/environment.service.d.ts +4 -3
  191. package/dist/src/services/environment/environment.service.d.ts.map +1 -1
  192. package/dist/src/services/environment/environment.service.js +0 -1
  193. package/dist/src/services/environment/environment.service.js.map +1 -1
  194. package/dist/src/services/framework/framework-docker-publish.service.d.ts +129 -0
  195. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  196. package/dist/src/services/framework/framework-docker-publish.service.js +271 -19
  197. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  198. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  199. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  200. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  201. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  202. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  203. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  204. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  205. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  206. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  207. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  208. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  209. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  210. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  211. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  212. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  213. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  214. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  215. package/dist/src/services/registry/module-install.service.js +1 -0
  216. package/dist/src/services/registry/module-install.service.js.map +1 -1
  217. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  218. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  219. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  220. package/dist/src/services/security/csp-sync.service.d.ts.map +1 -1
  221. package/dist/src/services/security/csp-sync.service.js +21 -2
  222. package/dist/src/services/security/csp-sync.service.js.map +1 -1
  223. package/dist/tsconfig.build.tsbuildinfo +1 -1
  224. package/framework-root-package.json +3 -3
  225. package/package.json +23 -23
  226. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +1 -1
  227. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +31 -9
  228. package/templates/infra/k8s/platform/platform-crontabs-batches-manager/deployment.yaml.hbs +13 -0
  229. package/templates/infra/registry-host/docker-compose.yml +9 -2
  230. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  231. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  232. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  233. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  234. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  235. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  236. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  237. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  238. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  239. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  240. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  241. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  242. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  243. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  244. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  245. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  246. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  247. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  248. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  249. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  250. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  251. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  252. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  253. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  254. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  255. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  256. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  257. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  258. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  259. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  260. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  261. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  262. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  263. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  264. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  265. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  266. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  267. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  268. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  269. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  270. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  271. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  272. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  273. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  274. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  275. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  276. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  277. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  278. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  279. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  280. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  281. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  282. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  283. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  284. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  285. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  286. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  287. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  288. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  289. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  290. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  291. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  292. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  293. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  294. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  295. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  296. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  297. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  298. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  299. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  300. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  301. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  302. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  303. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  304. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  305. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  306. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  307. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  308. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  309. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  310. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  311. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  312. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  313. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  314. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  315. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  316. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  317. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  318. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  319. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  320. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  321. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  322. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  323. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  324. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  325. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  326. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  327. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  328. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  329. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  330. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  331. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  332. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  333. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  334. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  335. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  336. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  337. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  338. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  339. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  340. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  341. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  342. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  343. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  344. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  345. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  346. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  347. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  348. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  349. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  350. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  351. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  352. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  353. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  354. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  355. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  356. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  357. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  358. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  359. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  360. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  361. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  362. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  363. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  364. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  365. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  366. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  367. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  368. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  369. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  370. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  371. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  372. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  373. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  374. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  375. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  376. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  377. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  378. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  379. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  380. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  381. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  382. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  383. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  384. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  385. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  386. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  387. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  388. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  389. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  390. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  391. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  392. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  393. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  394. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  395. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  396. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  397. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  398. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  399. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  400. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  401. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  402. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  403. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  404. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  405. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  406. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  407. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  408. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  409. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  410. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  411. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  412. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  413. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  414. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  415. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  416. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  417. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  418. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  419. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  420. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  421. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  422. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  423. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  424. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  425. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  426. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  427. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  428. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  429. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  430. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  431. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  432. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  433. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  434. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  435. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  436. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  437. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  438. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  439. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  440. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  441. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  442. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  443. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  444. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  445. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  446. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  447. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  448. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  449. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  450. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  451. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  452. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  453. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  454. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  455. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  456. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  457. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  458. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  459. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  460. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  461. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  462. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  463. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  464. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  465. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  466. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  467. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  468. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  469. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  470. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  471. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  472. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  473. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  474. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  475. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  476. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  477. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  478. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  479. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  480. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  481. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  482. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  483. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  484. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  485. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  486. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  487. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  488. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  489. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  490. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  491. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  492. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  493. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  494. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  495. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  496. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  497. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  498. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  499. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  500. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  501. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  502. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  503. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  504. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  505. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  506. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  507. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  508. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  509. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  510. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  511. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  512. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  513. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  514. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  515. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  516. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  517. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  518. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  519. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  520. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  521. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  522. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  523. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  524. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  525. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  526. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  527. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  528. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  529. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  530. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  531. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  532. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  533. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  534. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  535. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  536. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  537. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  538. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  539. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  540. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  541. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  542. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  543. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  544. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  545. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  546. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  547. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  548. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  549. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  550. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  551. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  552. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  553. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  554. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  555. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  556. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  557. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  558. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  559. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  560. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  561. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  562. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  563. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  564. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  565. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  566. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  567. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  568. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  569. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  570. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  571. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  572. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  573. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  574. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  575. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  576. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  577. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  578. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  579. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  580. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  581. package/templates/saas/skeleton/.wildo-saas/wildo-dev-companion/scripts/dev-supervised.sh +18 -4
  582. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  583. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  584. package/templates/saas/skeleton/frontend/nginx-config/default.conf.hbs +1 -1
  585. package/templates/saas/skeleton/frontend/src/generated/csp.generated.json.hbs +4 -4
  586. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  587. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  588. package/templates/saas/skeleton/infrastructure/local/wildo.infra.local.config.ts.hbs +2 -0
  589. package/wildo-framework.info.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"app-runtime-targets.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-runtime-targets.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAE3B,KAAK,0BAA0B,EAE/B,KAAK,0CAA0C,EAC/C,KAAK,gBAAgB,EACrB,KAAK,eAAe,EAErB,MAAM,+BAA+B,CAAC;AAIvC,MAAM,WAAW,4BAA4B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CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IAC/D,2DAA2D;IAC3D,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,4DAA4D;IAC5D,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,wDAAwD;IACxD,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,qBAAa,wBAAwB;mBACd,mBAAmB;mBAiHnB,4BAA4B;IAiCjD;;;;;;;;;;;;;;OAcG;WACU,OAAO,CAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;KACjD,GACA,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC;WAgC9B,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQ1F"}
1
+ {"version":3,"file":"app-runtime-targets.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/app-runtime-targets.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAE3B,KAAK,0BAA0B,EAE/B,KAAK,0CAA0C,EAC/C,KAAK,gBAAgB,EACrB,KAAK,eAAe,EAErB,MAAM,+BAA+B,CAAC;AAIvC,MAAM,WAAW,4BAA4B;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;;;OAIG;IACH,SAAS,EAAE,gBAAgB,CAAC;CAC7B;AAED,MAAM,WAAW,6BAA6B;IAC5C,GAAG,EAAE,MAAM,CAAC;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,CAAC;CACrB;AAED,qBAAa,wBAAwB;mBACd,mBAAmB;mBAiHnB,4BAA4B;IAiCjD;;;;;;;;;;;;;;OAcG;WACU,OAAO,CAClB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE;QACP,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACtC,sBAAsB,CAAC,EAAE,sBAAsB,CAAC;KACjD,GACA,OAAO,CAAC,wBAAwB,GAAG,IAAI,CAAC;WAwC9B,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAQ1F"}
@@ -145,7 +145,15 @@ export class AppRuntimeTargetsService {
145
145
  if (!existsSync(saasConfigPath)) {
146
146
  return null;
147
147
  }
148
- const loadOptions = options.configModuleResolution === undefined ? undefined : { moduleResolution: options.configModuleResolution };
148
+ /*
149
+ * A FRESH read (#3985): `wildo local dev` resolves the targets again while it runs, when the declared topology changes,
150
+ * and jiti's module cache is process-wide, so a cached read would project the topology the stack STARTED with and
151
+ * regenerate the very env files that are missing the new service.
152
+ */
153
+ const loadOptions = {
154
+ freshModuleCache: true,
155
+ ...(options.configModuleResolution === undefined ? {} : { moduleResolution: options.configModuleResolution }),
156
+ };
149
157
  const saasConfig = await loadSaasConfig(saasConfigPath, loadOptions);
150
158
  if (!saasConfig) {
151
159
  return null;
@@ -1 +1 @@
1
- {"version":3,"file":"app-runtime-targets.service.js","sourceRoot":"","sources":["../../../../src/services/application/app-runtime-targets.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EAKd,8BAA8B,EAI9B,sBAAsB,GACvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE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AsB,EAAE,CAAC;QACpI,MAAM,UAAU,GAAG,MAAM,cAAc,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;QACrE,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,YAAY,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,IAAI,CAAC;QACxD,IAAI,OAAO,CAAC,gBAAgB,IAAI,YAAY,KAAK,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC1E,MAAM,IAAI,KAAK,CAAC,QAAQ,OAAO,CAAC,gBAAgB,wCAAwC,QAAQ,EAAE,CAAC,CAAC;QACtG,CAAC;QAED,MAAM,sBAAsB,GAAG,MAAM,wCAAwC,CAAC;YAC5E,QAAQ;YACR,iCAAiC,EAAE,UAAU,CAAC,sBAAsB;YACpE,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QAEH,OAAO,wBAAwB,CAAC,mBAAmB,CACjD,QAAQ,EACR,UAAU,EACV,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,EACzC,sBAAsB,EACtB,WAAW,CACZ,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,QAAgB,EAAE,gBAAyB;QACrE,uDAAuD;QACvD,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC;QAC7G,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;QACnG,CAAC;QACD,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;CACF","sourcesContent":["import { existsSync } from 'fs';\nimport { join } from 'path';\nimport {\n loadWorkerConfigs,\n loadMinionConfigs,\n loadSaasConfig,\n type AppBootstrapFirstAdminSeed,\n type ConfigModuleResolution,\n type LoadConfigOptions,\n type AdminAppManagedDeclaration,\n normalizeSaasRuntimeDescriptor,\n type NormalizedLocalServiceAddressingDescriptor,\n type RuntimeIsolation,\n type WildoSaasConfig,\n WORKSPACE_CONFIG_NAMES,\n} from '@wildo-ai/platform-config-lib';\nimport { loadAppLocalRuntimeServiceAddresses } from './app-local-runtime-addresses.service';\nimport { resolveEnvironmentProviderConfigurations } from './environment-provider-configurations.service';\n\nexport interface ResolvedBackendServiceTarget {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n /**\n * Effective container isolation, resolved at the config boundary by\n * `resolveAppServiceIsolation` (see the normalized descriptor). Passed through\n * unchanged to both deploy renderers.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface ResolvedFrontendServiceTarget {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n frontendType: string;\n /**\n * Effective container isolation, resolved at the config boundary by\n * `resolveAppServiceIsolation` (see the normalized descriptor). Passed through\n * unchanged to both deploy renderers.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface ResolvedAppRuntimeTarget {\n appSlug: string;\n appDisplayName: string;\n appRoot: string;\n saasConfigPath: string;\n appDatabaseName?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.redis.keyPrefix` (Slice 3.6).\n * Threaded through to per-app `.env` as `REDIS_KEY_PREFIX`.\n */\n redisKeyPrefix?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.s3.bucketPrefix` (Slice 3.6).\n * Threaded through to per-app `.env` as `STORAGE_BUCKET_PREFIX`.\n */\n storageBucketPrefix?: string | undefined;\n requiresJavaBackendBase: boolean;\n backendServices: ResolvedBackendServiceTarget[];\n frontendServices: ResolvedFrontendServiceTarget[];\n managedDeclaration: AdminAppManagedDeclaration;\n firstAdminSeed?: AppBootstrapFirstAdminSeed | undefined;\n localServiceAddresses?: Record<string, NormalizedLocalServiceAddressingDescriptor> | undefined;\n /**\n * Provider refs the BACKEND declares (`providers.scopes.backend.providers`).\n *\n * Resolved here, where the saas config is already parsed, rather than by a\n * second `loadConfig` in the env-target builder — one read, one source, and no\n * new filesystem requirement on callers that construct this target in tests.\n */\n backendScopedProviderRefs: readonly string[];\n /** Global library declarations from wildo.saas.config.ts */\n libraries: NonNullable<WildoSaasConfig['libraries']>;\n /** App specifications package declaration from wildo.saas.config.ts */\n specifications?: WildoSaasConfig['specifications'] | undefined;\n /** Declarative domain modules from wildo.saas.config.ts */\n declaredModules: NonNullable<WildoSaasConfig['modules']>;\n /** Derived module ids keyed by declared SaaS service key */\n moduleIdsByService: Record<string, string[]>;\n /** All declared module ids from wildo.saas.config.ts */\n moduleIds: string[];\n}\n\nexport class AppRuntimeTargetsService {\n private static async buildResolvedTarget(\n appRoot: string,\n saasConfig: WildoSaasConfig,\n declaredServiceKeys: Set<string>,\n /** The application's provider configuration with the target environment's values laid over it. */\n providerConfigurations: WildoSaasConfig['providerConfigurations'],\n /** How every per-folder and infra configuration read here is evaluated: the one `resolve` was asked for. */\n loadOptions: Pick<LoadConfigOptions, 'moduleResolution'> | undefined,\n ): Promise<ResolvedAppRuntimeTarget> {\n const workerConfigs = await loadWorkerConfigs(appRoot, saasConfig, loadOptions);\n const minionConfigs = await loadMinionConfigs(appRoot, saasConfig, loadOptions);\n // Merge per-folder `wildo.minion.config.ts` (`mode` + `schedule`) into\n // the runtime declaration alongside the saas-config-level\n // `resourceAccess`. KD-12 cron-tick path (Phase 3 closeout): the\n // backend-api's `cron-job-sync.backend.service.ts` reads these to\n // register `mode: 'cron'` minions as CronJob records on\n // platform-crontabs-batches-manager.\n const minionConfigByKey = new Map(\n minionConfigs.map((entry) => [entry.key, entry.config] as const),\n );\n const minionsWithRuntime = saasConfig.minions\n ? Object.fromEntries(\n Object.entries(saasConfig.minions).map(([key, saasEntry]) => {\n const folderConfig = minionConfigByKey.get(key);\n return [\n key,\n {\n ...saasEntry,\n ...(folderConfig\n ? {\n mode: folderConfig.mode,\n schedule: folderConfig.schedule,\n }\n : {}),\n },\n ];\n }),\n )\n : undefined;\n const normalized = normalizeSaasRuntimeDescriptor({\n name: saasConfig.name,\n slug: saasConfig.slug,\n displayName: saasConfig.displayName,\n description: saasConfig.description,\n type: saasConfig.type,\n services: saasConfig.services,\n minions: minionsWithRuntime,\n workers: Object.fromEntries(\n workerConfigs.map((entry) => [\n entry.key,\n {\n name: entry.config.name,\n displayName: entry.config.displayName,\n description: entry.config.description,\n runtime: entry.config.runtime,\n http: entry.config.http,\n auth: entry.config.auth,\n replicas: entry.config.replicas,\n resources: entry.config.resources,\n dataAccess: entry.config.dataAccess,\n },\n ]),\n ),\n engineCapabilities: saasConfig.engineCapabilities,\n providers: saasConfig.providers,\n providerConfigurations,\n // Carried to apps-manager so it can derive the type of the organization it seeds for the first\n // administrator (#1032).\n organizationTypes: saasConfig.organizationTypes,\n // Carried for the same reason one line up: apps-manager stores the declaration, and the CLI and\n // the backend both derive each instance's environment-variable names from it (#1055).\n systemsOfRecord: saasConfig.systemsOfRecord,\n // Carried with the types it is a statement about (#2722).\n organizationRelationships: saasConfig.organizationRelationships,\n // Carried with the people it is a statement about (#2967): a decision may require one of these kinds.\n professionalQualificationKinds: saasConfig.professionalQualificationKinds,\n // Carried to apps-manager, which signs with the keys these bindings name (#2891).\n keyManagement: saasConfig.keyManagement,\n dataServices: saasConfig.dataServices,\n modules: saasConfig.modules,\n libraries: saasConfig.libraries,\n specifications: saasConfig.specifications,\n bootstrap: saasConfig.bootstrap,\n });\n const localServiceAddresses = await AppRuntimeTargetsService.resolveLocalServiceAddresses(\n appRoot,\n declaredServiceKeys,\n loadOptions,\n );\n\n return {\n appSlug: normalized.appSlug,\n appDisplayName: normalized.appDisplayName,\n appRoot,\n saasConfigPath: join(appRoot, WORKSPACE_CONFIG_NAMES.SAAS),\n appDatabaseName: normalized.appDatabaseName,\n redisKeyPrefix: normalized.redisKeyPrefix,\n storageBucketPrefix: normalized.storageBucketPrefix,\n requiresJavaBackendBase: normalized.requiresJavaBackendBase,\n backendServices: normalized.backendServices,\n frontendServices: normalized.frontendServices,\n managedDeclaration: normalized.managedDeclaration,\n firstAdminSeed: normalized.firstAdminSeed,\n localServiceAddresses,\n backendScopedProviderRefs: Object.keys(saasConfig.providers?.scopes?.backend?.providers ?? {}),\n libraries: normalized.libraries,\n specifications: normalized.specifications,\n declaredModules: normalized.declaredModules,\n moduleIdsByService: normalized.moduleIdsByService,\n moduleIds: normalized.moduleIds,\n };\n }\n\n private static async resolveLocalServiceAddresses(\n appRoot: string,\n declaredServiceKeys: Set<string>,\n loadOptions: Pick<LoadConfigOptions, 'moduleResolution'> | undefined,\n ): Promise<Record<string, NormalizedLocalServiceAddressingDescriptor> | undefined> {\n const serviceAddresses = await loadAppLocalRuntimeServiceAddresses(appRoot, { loadOptions });\n if (!serviceAddresses) {\n return undefined;\n }\n\n // Local infra descriptors may contain executor-only services that are not\n // part of the SaaS runtime descriptor (for example the nested dev companion).\n // When a service key is already declared in `wildo.saas.config.ts`, the SaaS\n // descriptor remains the single source of truth for local backend/frontend\n // topology and we ignore the duplicate infra entry here.\n const localServiceAddresses = Object.fromEntries(\n Object.entries(serviceAddresses)\n .filter(([serviceKey]) => !declaredServiceKeys.has(serviceKey))\n .map(([serviceKey, service]) => [\n serviceKey,\n {\n host: service.host,\n port: service.port,\n url: service.url,\n } satisfies NormalizedLocalServiceAddressingDescriptor,\n ]),\n );\n\n return Object.keys(localServiceAddresses).length > 0\n ? localServiceAddresses\n : undefined;\n }\n\n /**\n * Resolve the application target, with its managed declaration bound to ONE environment.\n *\n * `environmentName` is required, and `null` is an answer rather than a default: the declaration carries the\n * application's provider configuration, and an environment's `wildo.infra.<env>.config.ts` lays its own values over\n * it (an OAuth client ID registered for that deployment). A caller that SENDS the declaration to an environment's\n * apps-manager — registration, reapply, the doctor's dry-run comparison — must name that environment, or it would\n * store (or compare against) another environment's values. A caller that only reads the services list passes `null`.\n *\n * `configModuleResolution` is how the framework packages are resolved while `wildo.saas.config.ts`, the per-folder\n * worker and minion configurations and the local infra configuration are evaluated ({@link ConfigModuleResolution});\n * omitted, the loader infers it. A caller that reads only what the\n * declaration states, inside a process that already runs the framework, passes `LOADER_INSTANCES`, so the evaluation\n * reuses this CLI's own framework modules instead of loading a second copy from source (#3440).\n */\n static async resolve(\n saasRoot: string,\n options: {\n environmentName: string | null;\n requestedAppSlug?: string | undefined;\n configModuleResolution?: ConfigModuleResolution;\n },\n ): Promise<ResolvedAppRuntimeTarget | null> {\n const saasConfigPath = join(saasRoot, WORKSPACE_CONFIG_NAMES.SAAS);\n if (!existsSync(saasConfigPath)) {\n return null;\n }\n\n const loadOptions = options.configModuleResolution === undefined ? undefined : { moduleResolution: options.configModuleResolution };\n const saasConfig = await loadSaasConfig(saasConfigPath, loadOptions);\n if (!saasConfig) {\n return null;\n }\n\n const authoredSlug = saasConfig.slug ?? saasConfig.name;\n if (options.requestedAppSlug && authoredSlug !== options.requestedAppSlug) {\n throw new Error(`App '${options.requestedAppSlug}' does not match the targeted app at ${saasRoot}`);\n }\n\n const providerConfigurations = await resolveEnvironmentProviderConfigurations({\n saasRoot,\n applicationProviderConfigurations: saasConfig.providerConfigurations,\n environmentName: options.environmentName,\n });\n\n return AppRuntimeTargetsService.buildResolvedTarget(\n saasRoot,\n saasConfig,\n new Set(Object.keys(saasConfig.services)),\n providerConfigurations,\n loadOptions,\n );\n }\n\n static async resolveRunRoot(saasRoot: string, requestedAppSlug?: string): Promise<string> {\n // Only the root is read, which no environment changes.\n const target = await AppRuntimeTargetsService.resolve(saasRoot, { environmentName: null, requestedAppSlug });\n if (!target) {\n throw new Error('No runnable SaaS application target found from the current targeted-app root.');\n }\n return target.appRoot;\n }\n}\n"]}
1
+ {"version":3,"file":"app-runtime-targets.service.js","sourceRoot":"","sources":["../../../../src/services/application/app-runtime-targets.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC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,CAAC,CAAC;QACnG,CAAC;QACD,OAAO,MAAM,CAAC,OAAO,CAAC;IACxB,CAAC;CACF","sourcesContent":["import { existsSync } from 'fs';\nimport { join } from 'path';\nimport {\n loadWorkerConfigs,\n loadMinionConfigs,\n loadSaasConfig,\n type AppBootstrapFirstAdminSeed,\n type ConfigModuleResolution,\n type LoadConfigOptions,\n type AdminAppManagedDeclaration,\n normalizeSaasRuntimeDescriptor,\n type NormalizedLocalServiceAddressingDescriptor,\n type RuntimeIsolation,\n type WildoSaasConfig,\n WORKSPACE_CONFIG_NAMES,\n} from '@wildo-ai/platform-config-lib';\nimport { loadAppLocalRuntimeServiceAddresses } from './app-local-runtime-addresses.service';\nimport { resolveEnvironmentProviderConfigurations } from './environment-provider-configurations.service';\n\nexport interface ResolvedBackendServiceTarget {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n /**\n * Effective container isolation, resolved at the config boundary by\n * `resolveAppServiceIsolation` (see the normalized descriptor). Passed through\n * unchanged to both deploy renderers.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface ResolvedFrontendServiceTarget {\n key: string;\n path: string;\n serviceName: string;\n defaultPort?: number | undefined;\n frontendType: string;\n /**\n * Effective container isolation, resolved at the config boundary by\n * `resolveAppServiceIsolation` (see the normalized descriptor). Passed through\n * unchanged to both deploy renderers.\n */\n isolation: RuntimeIsolation;\n}\n\nexport interface ResolvedAppRuntimeTarget {\n appSlug: string;\n appDisplayName: string;\n appRoot: string;\n saasConfigPath: string;\n appDatabaseName?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.redis.keyPrefix` (Slice 3.6).\n * Threaded through to per-app `.env` as `REDIS_KEY_PREFIX`.\n */\n redisKeyPrefix?: string | undefined;\n /**\n * Authored `wildo.saas.config.dataServices.s3.bucketPrefix` (Slice 3.6).\n * Threaded through to per-app `.env` as `STORAGE_BUCKET_PREFIX`.\n */\n storageBucketPrefix?: string | undefined;\n requiresJavaBackendBase: boolean;\n backendServices: ResolvedBackendServiceTarget[];\n frontendServices: ResolvedFrontendServiceTarget[];\n managedDeclaration: AdminAppManagedDeclaration;\n firstAdminSeed?: AppBootstrapFirstAdminSeed | undefined;\n localServiceAddresses?: Record<string, NormalizedLocalServiceAddressingDescriptor> | undefined;\n /**\n * Provider refs the BACKEND declares (`providers.scopes.backend.providers`).\n *\n * Resolved here, where the saas config is already parsed, rather than by a\n * second `loadConfig` in the env-target builder — one read, one source, and no\n * new filesystem requirement on callers that construct this target in tests.\n */\n backendScopedProviderRefs: readonly string[];\n /** Global library declarations from wildo.saas.config.ts */\n libraries: NonNullable<WildoSaasConfig['libraries']>;\n /** App specifications package declaration from wildo.saas.config.ts */\n specifications?: WildoSaasConfig['specifications'] | undefined;\n /** Declarative domain modules from wildo.saas.config.ts */\n declaredModules: NonNullable<WildoSaasConfig['modules']>;\n /** Derived module ids keyed by declared SaaS service key */\n moduleIdsByService: Record<string, string[]>;\n /** All declared module ids from wildo.saas.config.ts */\n moduleIds: string[];\n}\n\nexport class AppRuntimeTargetsService {\n private static async buildResolvedTarget(\n appRoot: string,\n saasConfig: WildoSaasConfig,\n declaredServiceKeys: Set<string>,\n /** The application's provider configuration with the target environment's values laid over it. */\n providerConfigurations: WildoSaasConfig['providerConfigurations'],\n /** How every per-folder and infra configuration read here is evaluated: the one `resolve` was asked for. */\n loadOptions: Pick<LoadConfigOptions, 'moduleResolution'> | undefined,\n ): Promise<ResolvedAppRuntimeTarget> {\n const workerConfigs = await loadWorkerConfigs(appRoot, saasConfig, loadOptions);\n const minionConfigs = await loadMinionConfigs(appRoot, saasConfig, loadOptions);\n // Merge per-folder `wildo.minion.config.ts` (`mode` + `schedule`) into\n // the runtime declaration alongside the saas-config-level\n // `resourceAccess`. KD-12 cron-tick path (Phase 3 closeout): the\n // backend-api's `cron-job-sync.backend.service.ts` reads these to\n // register `mode: 'cron'` minions as CronJob records on\n // platform-crontabs-batches-manager.\n const minionConfigByKey = new Map(\n minionConfigs.map((entry) => [entry.key, entry.config] as const),\n );\n const minionsWithRuntime = saasConfig.minions\n ? Object.fromEntries(\n Object.entries(saasConfig.minions).map(([key, saasEntry]) => {\n const folderConfig = minionConfigByKey.get(key);\n return [\n key,\n {\n ...saasEntry,\n ...(folderConfig\n ? {\n mode: folderConfig.mode,\n schedule: folderConfig.schedule,\n }\n : {}),\n },\n ];\n }),\n )\n : undefined;\n const normalized = normalizeSaasRuntimeDescriptor({\n name: saasConfig.name,\n slug: saasConfig.slug,\n displayName: saasConfig.displayName,\n description: saasConfig.description,\n type: saasConfig.type,\n services: saasConfig.services,\n minions: minionsWithRuntime,\n workers: Object.fromEntries(\n workerConfigs.map((entry) => [\n entry.key,\n {\n name: entry.config.name,\n displayName: entry.config.displayName,\n description: entry.config.description,\n runtime: entry.config.runtime,\n http: entry.config.http,\n auth: entry.config.auth,\n replicas: entry.config.replicas,\n resources: entry.config.resources,\n dataAccess: entry.config.dataAccess,\n },\n ]),\n ),\n engineCapabilities: saasConfig.engineCapabilities,\n providers: saasConfig.providers,\n providerConfigurations,\n // Carried to apps-manager so it can derive the type of the organization it seeds for the first\n // administrator (#1032).\n organizationTypes: saasConfig.organizationTypes,\n // Carried for the same reason one line up: apps-manager stores the declaration, and the CLI and\n // the backend both derive each instance's environment-variable names from it (#1055).\n systemsOfRecord: saasConfig.systemsOfRecord,\n // Carried with the types it is a statement about (#2722).\n organizationRelationships: saasConfig.organizationRelationships,\n // Carried with the people it is a statement about (#2967): a decision may require one of these kinds.\n professionalQualificationKinds: saasConfig.professionalQualificationKinds,\n // Carried to apps-manager, which signs with the keys these bindings name (#2891).\n keyManagement: saasConfig.keyManagement,\n dataServices: saasConfig.dataServices,\n modules: saasConfig.modules,\n libraries: saasConfig.libraries,\n specifications: saasConfig.specifications,\n bootstrap: saasConfig.bootstrap,\n });\n const localServiceAddresses = await AppRuntimeTargetsService.resolveLocalServiceAddresses(\n appRoot,\n declaredServiceKeys,\n loadOptions,\n );\n\n return {\n appSlug: normalized.appSlug,\n appDisplayName: normalized.appDisplayName,\n appRoot,\n saasConfigPath: join(appRoot, WORKSPACE_CONFIG_NAMES.SAAS),\n appDatabaseName: normalized.appDatabaseName,\n redisKeyPrefix: normalized.redisKeyPrefix,\n storageBucketPrefix: normalized.storageBucketPrefix,\n requiresJavaBackendBase: normalized.requiresJavaBackendBase,\n backendServices: normalized.backendServices,\n frontendServices: normalized.frontendServices,\n managedDeclaration: normalized.managedDeclaration,\n firstAdminSeed: normalized.firstAdminSeed,\n localServiceAddresses,\n backendScopedProviderRefs: Object.keys(saasConfig.providers?.scopes?.backend?.providers ?? {}),\n libraries: normalized.libraries,\n specifications: normalized.specifications,\n declaredModules: normalized.declaredModules,\n moduleIdsByService: normalized.moduleIdsByService,\n moduleIds: normalized.moduleIds,\n };\n }\n\n private static async resolveLocalServiceAddresses(\n appRoot: string,\n declaredServiceKeys: Set<string>,\n loadOptions: Pick<LoadConfigOptions, 'moduleResolution'> | undefined,\n ): Promise<Record<string, NormalizedLocalServiceAddressingDescriptor> | undefined> {\n const serviceAddresses = await loadAppLocalRuntimeServiceAddresses(appRoot, { loadOptions });\n if (!serviceAddresses) {\n return undefined;\n }\n\n // Local infra descriptors may contain executor-only services that are not\n // part of the SaaS runtime descriptor (for example the nested dev companion).\n // When a service key is already declared in `wildo.saas.config.ts`, the SaaS\n // descriptor remains the single source of truth for local backend/frontend\n // topology and we ignore the duplicate infra entry here.\n const localServiceAddresses = Object.fromEntries(\n Object.entries(serviceAddresses)\n .filter(([serviceKey]) => !declaredServiceKeys.has(serviceKey))\n .map(([serviceKey, service]) => [\n serviceKey,\n {\n host: service.host,\n port: service.port,\n url: service.url,\n } satisfies NormalizedLocalServiceAddressingDescriptor,\n ]),\n );\n\n return Object.keys(localServiceAddresses).length > 0\n ? localServiceAddresses\n : undefined;\n }\n\n /**\n * Resolve the application target, with its managed declaration bound to ONE environment.\n *\n * `environmentName` is required, and `null` is an answer rather than a default: the declaration carries the\n * application's provider configuration, and an environment's `wildo.infra.<env>.config.ts` lays its own values over\n * it (an OAuth client ID registered for that deployment). A caller that SENDS the declaration to an environment's\n * apps-manager — registration, reapply, the doctor's dry-run comparison — must name that environment, or it would\n * store (or compare against) another environment's values. A caller that only reads the services list passes `null`.\n *\n * `configModuleResolution` is how the framework packages are resolved while `wildo.saas.config.ts`, the per-folder\n * worker and minion configurations and the local infra configuration are evaluated ({@link ConfigModuleResolution});\n * omitted, the loader infers it. A caller that reads only what the\n * declaration states, inside a process that already runs the framework, passes `LOADER_INSTANCES`, so the evaluation\n * reuses this CLI's own framework modules instead of loading a second copy from source (#3440).\n */\n static async resolve(\n saasRoot: string,\n options: {\n environmentName: string | null;\n requestedAppSlug?: string | undefined;\n configModuleResolution?: ConfigModuleResolution;\n },\n ): Promise<ResolvedAppRuntimeTarget | null> {\n const saasConfigPath = join(saasRoot, WORKSPACE_CONFIG_NAMES.SAAS);\n if (!existsSync(saasConfigPath)) {\n return null;\n }\n\n /*\n * A FRESH read (#3985): `wildo local dev` resolves the targets again while it runs, when the declared topology changes,\n * and jiti's module cache is process-wide, so a cached read would project the topology the stack STARTED with and\n * regenerate the very env files that are missing the new service.\n */\n const loadOptions = {\n freshModuleCache: true,\n ...(options.configModuleResolution === undefined ? {} : { moduleResolution: options.configModuleResolution }),\n };\n const saasConfig = await loadSaasConfig(saasConfigPath, loadOptions);\n if (!saasConfig) {\n return null;\n }\n\n const authoredSlug = saasConfig.slug ?? saasConfig.name;\n if (options.requestedAppSlug && authoredSlug !== options.requestedAppSlug) {\n throw new Error(`App '${options.requestedAppSlug}' does not match the targeted app at ${saasRoot}`);\n }\n\n const providerConfigurations = await resolveEnvironmentProviderConfigurations({\n saasRoot,\n applicationProviderConfigurations: saasConfig.providerConfigurations,\n environmentName: options.environmentName,\n });\n\n return AppRuntimeTargetsService.buildResolvedTarget(\n saasRoot,\n saasConfig,\n new Set(Object.keys(saasConfig.services)),\n providerConfigurations,\n loadOptions,\n );\n }\n\n static async resolveRunRoot(saasRoot: string, requestedAppSlug?: string): Promise<string> {\n // Only the root is read, which no environment changes.\n const target = await AppRuntimeTargetsService.resolve(saasRoot, { environmentName: null, requestedAppSlug });\n if (!target) {\n throw new Error('No runnable SaaS application target found from the current targeted-app root.');\n }\n return target.appRoot;\n }\n}\n"]}
@@ -119,6 +119,11 @@ export declare class ApplicationDependencyAlignmentService {
119
119
  static align(input: {
120
120
  applicationRoot: string;
121
121
  write: boolean;
122
+ /**
123
+ * The framework-assets root whose alignment manifest names the pins `wildo init` writes (#3994). Defaults to the
124
+ * running CLI's; `null` when there is none, and the orphan report then knows only the derived pins.
125
+ */
126
+ frameworkAssetsRoot?: string | null;
122
127
  }): ApplicationAlignmentResult;
123
128
  /**
124
129
  * The application's own workspace members, plus its root (`.`).
@@ -210,6 +215,21 @@ export declare class ApplicationDependencyAlignmentService {
210
215
  private static reconcileRootOverrides;
211
216
  private static reconcileMemberPeers;
212
217
  private static readManifest;
218
+ /**
219
+ * The override keys `wildo init` writes into every application (#3994): `propagatedOverrideKeys` and
220
+ * `additionalPropagatedOverrideKeys` of the alignment manifest that travels with the CLI.
221
+ *
222
+ * The orphan report needs them because derivation cannot see two kinds of pin the framework writes on purpose:
223
+ * a name NO framework manifest declares (`stripe`: the engine lazily `require`s the SDK, #239), and a peer of a
224
+ * framework package this application has not installed (`@mdx-js/react`, a peer of `saas-website`, in an
225
+ * application with no website). Both were reported as "no authority writes it — remove it", which told the
226
+ * operator to undo the framework's own pin. The manifest IS that authority. Opt-in package pins are not
227
+ * included: they are written only beside the package, so once it is gone they really do pin nothing.
228
+ *
229
+ * Returns `[]` when no manifest is reachable: the report then falls back to the derived pins alone, which can
230
+ * only over-report a warning, never hide one.
231
+ */
232
+ static readFrameworkWrittenOverrideKeys(frameworkAssetsRoot: string | null): string[];
213
233
  /** Exposed for the scaffolder's exclusion seeding, which reads the framework's own list. */
214
234
  static readFrameworkExclusions(frameworkPath: string): Record<string, string>;
215
235
  }
@@ -1 +1 @@
1
- {"version":3,"file":"application-dependency-alignment.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-dependency-alignment.service.ts"],"names":[],"mappings":"AAqDA,8FAA8F;AAC9F,eAAO,MAAM,0CAA0C,2CAA2C,CAAC;AAKnG,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC9D,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED;;;;;;;;GAQG;AACH,oBAAY,+BAA+B;IACzC,mHAAmH;IACnH,gBAAgB,qBAAqB;IACrC,6FAA6F;IAC7F,cAAc,mBAAmB;IACjC,sGAAsG;IACtG,YAAY,iBAAiB;IAC7B,uFAAuF;IACvF,oBAAoB,yBAAyB;IAC7C;;;OAGG;IACH,uBAAuB,4BAA4B;CACpD;AAED,MAAM,WAAW,2BAA2B;IAC1C,4EAA4E;IAC5E,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,+BAA+B,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,oBAAY,8BAA8B;IACxC,qHAAqH;IACrH,eAAe,oBAAoB;IACnC,wGAAwG;IACxG,oBAAoB,yBAAyB;CAC9C;AAED,MAAM,WAAW,0BAA0B;IACzC,oBAAoB,EAAE,MAAM,CAAC;IAC7B,IAAI,EAAE,8BAA8B,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb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AM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO;IAIjE,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAwCrC,OAAO,CAAC,MAAM,CAAC,oBAAoB;IA8CnC,OAAO,CAAC,MAAM,CAAC,YAAY;IAK3B,4FAA4F;IAC5F,MAAM,CAAC,uBAAuB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;CAO9E;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,qBAAqB,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBpF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,mBAAmB,EAAE,MAAM,EAAE,CAAA;CAAE,CA8BtD"}
1
+ {"version":3,"file":"application-dependency-alignment.service.d.ts","sourceRoot":"","sources":["../../../../src/services/application/application-dependency-alignment.service.ts"],"names":[],"mappings":"AAwDA,8FAA8F;AAC9F,eAAO,MAAM,0CAA0C,2CAA2C,CAAC;AAKnG,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAC9D,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C;AAED;;;;;;;;GAQG;AACH,o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AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,6BAA6B,CAC3C,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,mBAAmB,EAAE,MAAM,EAAE,CAAA;CAAE,CA8BtD"}
@@ -43,6 +43,8 @@
43
43
  import { existsSync, readdirSync, readFileSync, writeFileSync } from 'fs';
44
44
  import { dirname, join, relative } from 'path';
45
45
  import { migrateApplicationPnpmSettings, PNPM_OWNED_SETTINGS, PnpmSettingsSource, readApplicationPnpmSettings, WILDO_SAAS_LOCK_RELATIVE_PATH, writeApplicationPnpmSettings, } from '@wildo-ai/platform-config-lib';
46
+ import { FRAMEWORK_OVERRIDES_MANIFEST_RELATIVE } from '@wildo-ai/application-creation-runtime';
47
+ import { resolveInstalledFrameworkAssetsRoot } from '../../services/framework/installed-framework-assets.service.js';
46
48
  /** Where an application declares the names its own toolchain owns. Seeded by `wildo init`. */
47
49
  export const APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE = '.wildo-saas/dependency-exclusions.json';
48
50
  const FRAMEWORK_SCOPE_PREFIX = '@wildo-ai/';
@@ -181,7 +183,10 @@ export class ApplicationDependencyAlignmentService {
181
183
  const reports = findDependencyOrphans({
182
184
  appOverrides: settingsAfterWrite.overrides ?? {},
183
185
  overridesRelativePath: settingsAfterWrite.sources.overrides,
184
- authoredKeys: new Set(Object.keys(derivedOverrides)),
186
+ authoredKeys: new Set([
187
+ ...Object.keys(derivedOverrides),
188
+ ...ApplicationDependencyAlignmentService.readFrameworkWrittenOverrideKeys(input.frameworkAssetsRoot === undefined ? resolveInstalledFrameworkAssetsRoot() : input.frameworkAssetsRoot),
189
+ ]),
185
190
  adoptedVendorPins: readAdoptedVendorPins(input.applicationRoot),
186
191
  manifests: workspaceMembers.map((member) => ({ member, manifest: readJsonObject(join(input.applicationRoot, member, 'package.json')) })),
187
192
  resolvedNames: readResolvedPackageNames(existsSync(lockPath) ? readFileSync(lockPath, 'utf8') : undefined),
@@ -498,9 +503,34 @@ export class ApplicationDependencyAlignmentService {
498
503
  return null;
499
504
  return JSON.parse(readFileSync(path, 'utf8'));
500
505
  }
506
+ /**
507
+ * The override keys `wildo init` writes into every application (#3994): `propagatedOverrideKeys` and
508
+ * `additionalPropagatedOverrideKeys` of the alignment manifest that travels with the CLI.
509
+ *
510
+ * The orphan report needs them because derivation cannot see two kinds of pin the framework writes on purpose:
511
+ * a name NO framework manifest declares (`stripe`: the engine lazily `require`s the SDK, #239), and a peer of a
512
+ * framework package this application has not installed (`@mdx-js/react`, a peer of `saas-website`, in an
513
+ * application with no website). Both were reported as "no authority writes it — remove it", which told the
514
+ * operator to undo the framework's own pin. The manifest IS that authority. Opt-in package pins are not
515
+ * included: they are written only beside the package, so once it is gone they really do pin nothing.
516
+ *
517
+ * Returns `[]` when no manifest is reachable: the report then falls back to the derived pins alone, which can
518
+ * only over-report a warning, never hide one.
519
+ */
520
+ static readFrameworkWrittenOverrideKeys(frameworkAssetsRoot) {
521
+ if (frameworkAssetsRoot === null)
522
+ return [];
523
+ const path = join(frameworkAssetsRoot, FRAMEWORK_OVERRIDES_MANIFEST_RELATIVE);
524
+ if (!existsSync(path))
525
+ return [];
526
+ const parsed = JSON.parse(readFileSync(path, 'utf8'));
527
+ return [parsed.propagatedOverrideKeys, parsed.additionalPropagatedOverrideKeys]
528
+ .flatMap((keys) => (Array.isArray(keys) ? keys : []))
529
+ .filter((key) => typeof key === 'string');
530
+ }
501
531
  /** Exposed for the scaffolder's exclusion seeding, which reads the framework's own list. */
502
532
  static readFrameworkExclusions(frameworkPath) {
503
- const path = join(frameworkPath, 'scripts', 'app-dependency-alignment', 'propagated-engine-overrides.json');
533
+ const path = join(frameworkPath, FRAMEWORK_OVERRIDES_MANIFEST_RELATIVE);
504
534
  if (!existsSync(path))
505
535
  return {};
506
536
  const parsed = JSON.parse(readFileSync(path, 'utf8'));
@@ -1 +1 @@
1
- {"version":3,"file":"application-dependency-alignment.service.js","sourceRoot":"","sources":["../../../../src/services/application/application-dependency-alignment.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AAC1E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EACL,8BAA8B,EAC9B,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,+BAA+B,CAAC;AAEvC,8FAA8F;AAC9F,MAAM,CAAC,MAAM,0CAA0C,GAAG,wCAAwC,CAAC;AAEnG,MAAM,sBAAsB,GAAG,YAAY,CAAC;AAC5C,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;AAW/C;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,+BAcX;AAdD,WAAY,+BAA+B;IACzC,mHAAmH;IACnH,wEAAqC,CAAA;IACrC,6FAA6F;IAC7F,oEAAiC,CAAA;IACjC,sGAAsG;IACtG,gEAA6B,CAAA;IAC7B,uFAAuF;IACvF,gFAA6C,CAAA;IAC7C;;;OAGG;IACH,sFAAmD,CAAA;AACrD,CAAC,EAdW,+BAA+B,KAA/B,+BAA+B,QAc1C;AAWD;;;;GAIG;AACH,MAAM,CAAN,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACxC,qHAAqH;IACrH,qEAAmC,CAAA;IACnC,wGAAwG;IACxG,+EAA6C,CAAA;AAC/C,CAAC,EALW,8BAA8B,KAA9B,8BAA8B,QAKzC;AA6BD,8EAA8E;AAC9E,MAAM,UAAU,kBAAkB,CAAC,GAAW;IAC5C,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,C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,CAAC,YAAY,EAAE,cAAc,EAAE,UAAU,IAAI,EAAE,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC1J,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * ApplicationDependencyAlignmentService — align a STANDALONE application's dependency pins and\n * engine peer declarations against the `@wildo-ai/*` packages it actually has installed (issue #222).\n *\n * ## The problem this closes\n *\n * `wildo init` bakes three derived things into an application: the `@wildo-ai/*` version pins, the\n * third-party pins propagated from the framework's root `pnpm.overrides`, and the engine peer\n * declarations every workspace package must carry. All three are computed from the framework\n * CHECKOUT, at scaffold time. A standalone application has no checkout afterwards, so nothing\n * re-derives them: an application moved to a newer framework keeps the OLD third-party versions and\n * the OLD peer obligations — and the peer half cannot be corrected by reinstalling, because an\n * undeclared peer's resolution is sticky (issue #167).\n *\n * ## Why nothing new has to be published\n *\n * The publish lane already substitutes the framework's root override into every published manifest —\n * exact for `dependencies`, caret-widened for `peerDependencies`. So the pin set and the peer closure\n * are recoverable from the installed packages themselves. Measured against the real 1.1.1 packages in\n * a scaffolded application: of 150 recoverable propagated names, **143 reproduce the framework's own\n * root override exactly**; 5 differ only exact-vs-caret (names that appear ONLY as peers, where the\n * caret is the publish lane's deliberate widening for a consumer); and 2 differ by a major because\n * the framework's root moved AFTER 1.1.1 shipped — which is the point, not a defect. An application\n * aligns to the framework version it HAS, the only contract it can honour.\n *\n * That is why this service reads `node_modules` rather than a published manifest of pins: the data\n * cannot drift from the packages it describes, because it IS them.\n *\n * ## What it deliberately does NOT do\n *\n * It never changes a `@wildo-ai/*` version. Which framework release to adopt is the operator's\n * decision; everything else follows mechanically from it. The flow is:\n *\n * 1. bump the `@wildo-ai/*` entries in the application's overrides (pnpm-workspace.yaml)\n * 2. `pnpm install` (the new pin set cannot be read until the new version is on disk)\n * 3. `wildo align-deps --write`\n * 4. `pnpm install`\n *\n * `wildo update` runs that flow for a release upgrade (`update.command.ts`): the operator's decision\n * is its `--to <version>` / `--tag`, its step 1 is the bump, and its step 3 is the install → this\n * service → install. Use `align-deps` on its own only for the first alignment after `wildo init`.\n */\nimport { existsSync, readdirSync, readFileSync, writeFileSync } from 'fs';\nimport { dirname, join, relative } from 'path';\nimport {\n migrateApplicationPnpmSettings,\n PNPM_OWNED_SETTINGS,\n PnpmSettingsSource,\n readApplicationPnpmSettings,\n WILDO_SAAS_LOCK_RELATIVE_PATH,\n writeApplicationPnpmSettings,\n} from '@wildo-ai/platform-config-lib';\n\n/** Where an application declares the names its own toolchain owns. Seeded by `wildo init`. */\nexport const APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE = '.wildo-saas/dependency-exclusions.json';\n\nconst FRAMEWORK_SCOPE_PREFIX = '@wildo-ai/';\nconst EXACT_SEMVER_PATTERN = /^\\d+\\.\\d+\\.\\d+$/;\n\ninterface PackageManifest {\n name?: string;\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n peerDependenciesMeta?: Record<string, { optional?: boolean }>;\n optionalDependencies?: Record<string, string>;\n}\n\n/**\n * What is wrong with one manifest entry, and therefore what `--write` will do about it.\n *\n * The four are not degrees of the same thing — they split on TWO axes that need different repairs:\n * whether the name belongs in overrides (pnpm-workspace.yaml) or in the importer's own dependency list, and whether\n * it is ABSENT or present-and-wrong. `peer-pinned-in-place` is the one that reads oddly and matters\n * most: the peer IS declared, but at a concrete version rather than `\"*\"`, so the framework's override\n * cannot reach it and a later pin bump silently will not land.\n */\nexport enum ApplicationAlignmentFindingKind {\n /** The framework pins this name and the application's overrides (pnpm-workspace.yaml) does not carry it at all. */\n OVERRIDE_MISSING = 'override-missing',\n /** The application overrides the name, at a version the installed framework does not pin. */\n OVERRIDE_DRIFT = 'override-drift',\n /** A required engine peer the importer never declares, so `autoInstallPeers` resolves it unpinned. */\n PEER_MISSING = 'peer-missing',\n /** The peer is declared with a concrete version, which the override cannot rewrite. */\n PEER_PINNED_IN_PLACE = 'peer-pinned-in-place',\n /**\n * A pnpm setting Wildo owns (`overrides`, `onlyBuiltDependencies`, `neverBuiltDependencies`) still in `package.json` →\n * `pnpm`, which pnpm 11 does not read (#2808). `--write` moves it, value unchanged, into `pnpm-workspace.yaml`.\n */\n SETTING_IN_PACKAGE_JSON = 'setting-in-package-json',\n}\n\nexport interface ApplicationAlignmentFinding {\n /** Application-root-relative path of the manifest that needs the change. */\n manifestRelativePath: string;\n kind: ApplicationAlignmentFindingKind;\n name: string;\n current?: string;\n desired: string;\n}\n\n/**\n * What alignment REPORTS and never changes (#2789): removing a pin or a dependency needs to know who wrote it, and\n * nothing records that for these. The twin of `findDependencyOrphans` in the framework's alignment script, which this\n * published CLI cannot import.\n */\nexport enum ApplicationAlignmentReportKind {\n /** A root override no authority writes, no manifest declares, and the lockfile resolves nowhere: it pins nothing. */\n ORPHAN_OVERRIDE = 'orphan-override',\n /** An adopted provider module's vendor package, declared by a manifest outside that module's facets. */\n MISPLACED_DEPENDENCY = 'misplaced-dependency',\n}\n\nexport interface ApplicationAlignmentReport {\n manifestRelativePath: string;\n kind: ApplicationAlignmentReportKind;\n name: string;\n /** The override's value (orphan) or the module that owns the package (misplaced). */\n detail: string;\n}\n\nexport interface ApplicationAlignmentResult {\n /** `@wildo-ai/*` packages whose installed manifest was read, with the version found. */\n installedFrameworkPackages: Array<{ name: string; version: string }>;\n /** Third-party names the installed engine pins, after exclusions. */\n derivedOverrides: Record<string, string>;\n /** Per framework package, the transitive REQUIRED peers a consumer must declare. */\n enginePeerClosure: Record<string, string[]>;\n excludedNames: string[];\n findings: ApplicationAlignmentFinding[];\n /**\n * Workspace member patterns this reader cannot expand (`dir/**`, an interior `*`, a `!exclusion`).\n * The packages they cover were NOT aligned; a caller reports them rather than calling the run clean.\n */\n unsupportedWorkspacePatterns: string[];\n /** Report-only defects (#2789): never part of `findings`, never written. */\n reports: ApplicationAlignmentReport[];\n written: boolean;\n}\n\n/** The package an override key governs: `x>y@2` → `y`, `@s/n@^1` → `@s/n`. */\nexport function overrideTargetName(key: string): string {\n const target = key.includes('>') ? key.slice(key.lastIndexOf('>') + 1) : key;\n const at = target.lastIndexOf('@');\n return at > 0 ? target.slice(0, at) : target;\n}\n\n/**\n * Every package name a pnpm lockfile resolves. Only the `packages:` and `snapshots:` blocks are read: the lockfile's own\n * `overrides:` block carries keys like `foo@1`, which would count an orphan override as resolved (#2789 review F7).\n */\nexport function readResolvedPackageNames(lockText: string | undefined): Set<string> {\n const names = new Set<string>();\n if (lockText === undefined) return names;\n let inResolved = false;\n for (const line of lockText.split(/\\r?\\n/)) {\n if (/^\\S/.test(line)) {\n inResolved = /^(packages|snapshots):\\s*$/.test(line);\n continue;\n }\n if (!inResolved) continue;\n const match = /^ {2}'?((?:@[^/'\\s]+\\/)?[^@'\\s/]+)@/.exec(line);\n if (match) names.add(match[1]!);\n }\n return names;\n}\n\nconst DEPENDENCY_FIELDS = ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies'] as const;\n\n/**\n * The two report-only defects of ONE application (#2789), with the semantics of the framework script's twin:\n * an ORPHAN override (no authority writes it, no manifest declares it, the lockfile resolves it nowhere; a deliberate\n * pin on a transitive dependency is resolved, so it is never one) and a MISPLACED dependency (an adopted module's vendor\n * package declared outside that module's facets).\n */\nexport function findDependencyOrphans(input: {\n appOverrides: Record<string, unknown>;\n /** The application-root file the overrides were read from (#2808); `pnpm-workspace.yaml` when not given. */\n overridesRelativePath?: string;\n authoredKeys: ReadonlySet<string>;\n adoptedVendorPins: ReadonlyMap<string, { moduleId: string; ref?: string }>;\n manifests: ReadonlyArray<{ member: string; manifest: Record<string, unknown> | undefined }>;\n resolvedNames: ReadonlySet<string>;\n}): ApplicationAlignmentReport[] {\n const fieldsOf = (manifest: Record<string, unknown> | undefined) => DEPENDENCY_FIELDS\n .map((field) => manifest?.[field])\n .filter((value): value is Record<string, unknown> => value !== null && typeof value === 'object' && !Array.isArray(value));\n const declared = new Set(input.manifests.flatMap(({ manifest }) => fieldsOf(manifest).flatMap((field) => Object.keys(field))));\n const reports: ApplicationAlignmentReport[] = Object.keys(input.appOverrides)\n .filter((key) => !input.authoredKeys.has(key))\n .filter((key) => !overrideTargetName(key).startsWith('@wildo-ai/'))\n .filter((key) => !input.adoptedVendorPins.has(overrideTargetName(key)))\n .filter((key) => !declared.has(overrideTargetName(key)))\n .filter((key) => !input.resolvedNames.has(overrideTargetName(key)))\n .sort()\n .map((key) => ({ manifestRelativePath: input.overridesRelativePath ?? PnpmSettingsSource.WORKSPACE_FILE, kind: ApplicationAlignmentReportKind.ORPHAN_OVERRIDE, name: key, detail: String(input.appOverrides[key]) }));\n const misplaced: ApplicationAlignmentReport[] = [];\n for (const { member, manifest } of input.manifests) {\n for (const [name, owner] of input.adoptedVendorPins) {\n if (owner.ref !== undefined && member.startsWith(`providers/${owner.ref}/`)) continue;\n if (fieldsOf(manifest).some((field) => field[name] !== undefined)) {\n misplaced.push({ manifestRelativePath: join(member, 'package.json'), kind: ApplicationAlignmentReportKind.MISPLACED_DEPENDENCY, name, detail: owner.moduleId });\n }\n }\n }\n // Ordered like the framework script's report: by member, then name.\n return [...reports, ...misplaced.sort((a, b) => `${a.manifestRelativePath}/${a.name}`.localeCompare(`${b.manifestRelativePath}/${b.name}`))];\n}\n\nexport class ApplicationDependencyAlignmentService {\n /**\n * Compute (and optionally apply) the alignment for one application root.\n *\n * Reading is total and writing is per-manifest: a `--check` run touches nothing, and a `--write`\n * run rewrites only the manifests that actually have findings.\n */\n static align(input: { applicationRoot: string; write: boolean }): ApplicationAlignmentResult {\n const { members: workspaceMembers, unsupportedPatterns: unsupportedWorkspacePatterns } =\n ApplicationDependencyAlignmentService.discoverWorkspaceMembers(input.applicationRoot);\n const installed = ApplicationDependencyAlignmentService.readInstalledFrameworkManifests({\n applicationRoot: input.applicationRoot,\n workspaceMembers,\n });\n if (installed.size === 0) {\n throw new Error(\n 'No @wildo-ai/* package could be resolved from this application — run `pnpm install` first. '\n + 'Alignment derives every pin from the framework packages the application HAS installed, so '\n + 'an empty node_modules would silently produce an empty pin set.',\n );\n }\n\n const excludedNames = ApplicationDependencyAlignmentService.readExclusions(input.applicationRoot);\n const derivedOverrides = ApplicationDependencyAlignmentService.deriveOverrides({ installed, excludedNames });\n const enginePeerClosure = ApplicationDependencyAlignmentService.deriveEnginePeerClosure({ installed, excludedNames });\n\n const findings: ApplicationAlignmentFinding[] = [];\n findings.push(...ApplicationDependencyAlignmentService.reconcileRootOverrides({\n applicationRoot: input.applicationRoot, derivedOverrides, write: input.write,\n }));\n for (const member of workspaceMembers) {\n findings.push(...ApplicationDependencyAlignmentService.reconcileMemberPeers({\n applicationRoot: input.applicationRoot, member, enginePeerClosure, write: input.write,\n }));\n }\n\n // #2789: report-only. Read after the writes above, so a run that just added a pin does not report it.\n const lockPath = join(input.applicationRoot, 'pnpm-lock.yaml');\n const settingsAfterWrite = readApplicationPnpmSettings(input.applicationRoot);\n const reports = findDependencyOrphans({\n appOverrides: settingsAfterWrite.overrides ?? {},\n overridesRelativePath: settingsAfterWrite.sources.overrides,\n authoredKeys: new Set(Object.keys(derivedOverrides)),\n adoptedVendorPins: readAdoptedVendorPins(input.applicationRoot),\n manifests: workspaceMembers.map((member) => ({ member, manifest: readJsonObject(join(input.applicationRoot, member, 'package.json')) })),\n resolvedNames: readResolvedPackageNames(existsSync(lockPath) ? readFileSync(lockPath, 'utf8') : undefined),\n });\n\n return {\n reports,\n installedFrameworkPackages: [...installed.entries()]\n .map(([name, manifest]) => ({ name, version: (manifest as { version?: string }).version ?? 'unknown' }))\n .sort((a, b) => a.name.localeCompare(b.name)),\n derivedOverrides,\n enginePeerClosure,\n excludedNames,\n findings,\n unsupportedWorkspacePatterns,\n written: input.write && findings.length > 0,\n };\n }\n\n /**\n * The application's own workspace members, plus its root (`.`).\n *\n * GENERATED drops are skipped: `.wildo-saas/wildo-dev-companion` has its manifest written by the\n * companion delivery on every start, so a declaration reconciled into it is erased.\n *\n * A member may be a GLOB, and one kind always is: `wildo registry add` wires a provider module as\n * `providers/<ref>/*`, one member per facet package. Reading members as literal paths dropped every\n * glob (no directory is literally named `*`), so an installed provider package was never aligned\n * (#2019 review). {@link expandWorkspaceMemberPatterns} expands them with the framework reader's semantics.\n */\n static discoverWorkspaceMembers(applicationRoot: string): { members: string[]; unsupportedPatterns: string[] } {\n const { members, unsupportedPatterns } = expandWorkspaceMemberPatterns(\n applicationRoot,\n readWorkspacePackagePatterns(join(applicationRoot, 'pnpm-workspace.yaml')),\n );\n return {\n members: [...new Set(['.', ...members])]\n .filter((member) => !member.startsWith('.wildo-saas/'))\n .filter((member) => existsSync(join(applicationRoot, member, 'package.json'))),\n unsupportedPatterns,\n };\n }\n\n /**\n * Every `@wildo-ai/*` manifest the application can resolve, keyed by package name.\n *\n * Resolution goes through `createRequire` from each workspace member rather than by walking\n * `node_modules/.pnpm`: the virtual store's directory naming is a pnpm implementation detail, while\n * `require.resolve` is the contract every runtime in the application already uses. A member that\n * cannot resolve a name simply contributes nothing — under pnpm's isolated layout only a package's\n * own declared dependencies are reachable from it, and that is exactly the set that matters.\n */\n static readInstalledFrameworkManifests(input: {\n applicationRoot: string;\n workspaceMembers: string[];\n }): Map<string, PackageManifest> {\n const found = new Map<string, PackageManifest>();\n const candidateNames = new Set<string>();\n\n for (const member of input.workspaceMembers) {\n const manifest = ApplicationDependencyAlignmentService.readManifest(\n join(input.applicationRoot, member, 'package.json'),\n );\n if (!manifest) continue;\n for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const name of Object.keys(manifest[field] ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) candidateNames.add(name);\n }\n }\n }\n // The root `pnpm.overrides` names every framework package the scaffolder pinned, including ones\n // no member declares directly — they are still installed, and their peers still land on the app.\n for (const name of Object.keys(readApplicationPnpmSettings(input.applicationRoot).overrides ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) candidateNames.add(name);\n }\n\n // A framework package's own `@wildo-ai/*` dependencies are followed too: the closure is\n // transitive, and an application need never name `presets-components` to inherit its peers.\n const pending = [...candidateNames];\n while (pending.length > 0) {\n const name = pending.pop() as string;\n if (found.has(name)) continue;\n const manifest = ApplicationDependencyAlignmentService.resolveFrameworkManifest({\n applicationRoot: input.applicationRoot,\n workspaceMembers: input.workspaceMembers,\n name,\n });\n if (!manifest) continue;\n found.set(name, manifest);\n for (const field of ['dependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const dependencyName of Object.keys(manifest[field] ?? {})) {\n if (dependencyName.startsWith(FRAMEWORK_SCOPE_PREFIX) && !found.has(dependencyName)) pending.push(dependencyName);\n }\n }\n }\n return found;\n }\n\n /**\n * Find a framework package's manifest by walking `node_modules` upward from each workspace member,\n * which is Node's own package-DIRECTORY lookup.\n *\n * NOT `require.resolve('<name>/package.json')`, which was the first attempt and does not work: a\n * published `@wildo-ai/*` package declares an `exports` map, and an exports map that does not list\n * `./package.json` makes that specifier unresolvable. Measured on a freshly scaffolded application —\n * every one of the twenty packages was installed and every resolve threw, so the service reported\n * \"no framework package installed\" on a perfectly healthy tree. A directory walk asks the question\n * actually being asked (where does this package LIVE) and is unaffected by what a package exports.\n */\n private static resolveFrameworkManifest(input: {\n applicationRoot: string;\n workspaceMembers: string[];\n name: string;\n }): PackageManifest | null {\n for (const member of input.workspaceMembers) {\n let directory = join(input.applicationRoot, member);\n for (;;) {\n const candidate = join(directory, 'node_modules', input.name, 'package.json');\n if (existsSync(candidate)) return JSON.parse(readFileSync(candidate, 'utf8')) as PackageManifest;\n const parent = dirname(directory);\n if (parent === directory || !parent.startsWith(input.applicationRoot)) break;\n directory = parent;\n }\n }\n return null;\n }\n\n /**\n * The third-party pin set the installed engine implies.\n *\n * When a name appears with several specifiers the EXACT one wins. That is not arbitrary: the\n * publish lane writes the tested version exactly into `dependencies` and widens it to a caret in\n * `peerDependencies`, so both describe the same version and the exact form is the one the framework\n * actually ran. Measured, it reproduces the framework's own root override for 143 of 150 names.\n *\n * ## Only a name the framework's ROOT pins is pinned — never a package's own private dependency\n *\n * The propagation contract (`toolchain-installation-baseline.md`) moves exactly the names the framework\n * root pins, and a manifest says which those are: the publish lane writes a root pin EXACT into\n * `dependencies` and as a caret into `peerDependencies`, and source form writes it `*`. A dependency\n * the root does NOT pin keeps the range its package authored — `platform-config-lib`'s `jiti ^2.6.1`.\n * This used to pin every such range application-wide, and an override reaches every edge that names\n * the package: on 2026-09-24 it forced jiti 2 onto Docusaurus (which loads its config through jiti 1),\n * the documentation site could no longer read `export default config`, and the failed service tore the\n * whole dev stack down on start. So a name is pinned when some framework package declares it exact,\n * `*`, or as a peer; a name only ever declared as a private range stays that package's business.\n */\n static deriveOverrides(input: { installed: Map<string, PackageManifest>; excludedNames: string[] }): Record<string, string> {\n const candidates = new Map<string, Set<string>>();\n const rootPinned = new Set<string>();\n for (const manifest of input.installed.values()) {\n for (const field of ['dependencies', 'peerDependencies'] as const) {\n for (const [name, specifier] of Object.entries(manifest[field] ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n if (ApplicationDependencyAlignmentService.isExcluded(name, input.excludedNames)) continue;\n if (!candidates.has(name)) candidates.set(name, new Set());\n (candidates.get(name) as Set<string>).add(specifier);\n if (field === 'peerDependencies' || specifier === '*' || EXACT_SEMVER_PATTERN.test(specifier)) rootPinned.add(name);\n }\n }\n }\n const overrides: Record<string, string> = {};\n for (const [name, specifiers] of candidates) {\n if (!rootPinned.has(name)) continue;\n const exact = [...specifiers].find((specifier) => EXACT_SEMVER_PATTERN.test(specifier));\n overrides[name] = exact ?? [...specifiers][0];\n }\n return Object.fromEntries(Object.keys(overrides).sort().map((name) => [name, overrides[name]]));\n }\n\n /**\n * Per framework package, the transitive REQUIRED peers a consumer must declare.\n *\n * Optional peers (`peerDependenciesMeta`) are excluded — an optional peer is not an obligation, and\n * `saas-technical-doc` / `saas-website` use that field to say exactly this.\n */\n static deriveEnginePeerClosure(input: {\n installed: Map<string, PackageManifest>;\n excludedNames: string[];\n }): Record<string, string[]> {\n const closureOf = new Map<string, Set<string>>();\n\n const walk = (packageName: string, visiting: Set<string>): Set<string> => {\n const cached = closureOf.get(packageName);\n if (cached) return cached;\n const manifest = input.installed.get(packageName);\n if (!manifest || visiting.has(packageName)) return new Set();\n visiting.add(packageName);\n\n const peers = new Set<string>();\n const optional = manifest.peerDependenciesMeta ?? {};\n for (const name of Object.keys(manifest.peerDependencies ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n if (optional[name]?.optional) continue;\n if (ApplicationDependencyAlignmentService.isExcluded(name, input.excludedNames)) continue;\n peers.add(name);\n }\n for (const field of ['dependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const dependencyName of Object.keys(manifest[field] ?? {})) {\n if (!dependencyName.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n for (const inherited of walk(dependencyName, visiting)) peers.add(inherited);\n }\n }\n visiting.delete(packageName);\n closureOf.set(packageName, peers);\n return peers;\n };\n\n const result: Record<string, string[]> = {};\n for (const packageName of [...input.installed.keys()].sort()) {\n result[packageName] = [...walk(packageName, new Set())].sort();\n }\n return result;\n }\n\n /**\n * Names this application's own toolchain owns, which alignment must never pin.\n *\n * APPLICATION-owned on purpose. The framework's equivalent list is a judgement about a typical\n * application's stack — `esbuild` follows vite, `express` follows webpack-dev-server, `mime`\n * follows express — and pinning those names was measured to break the docs toolchain. A real\n * application knows its own stack better than the framework does, so the list is seeded at\n * `wildo init` and owned from there. An absent file means no exclusions, which is honest for an\n * application that has never declared any.\n */\n static readExclusions(applicationRoot: string): string[] {\n const path = join(applicationRoot, APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE);\n if (!existsSync(path)) return [];\n const parsed = JSON.parse(readFileSync(path, 'utf8')) as { excludedNames?: Record<string, string> | string[] };\n const names = Array.isArray(parsed.excludedNames) ? parsed.excludedNames : Object.keys(parsed.excludedNames ?? {});\n return [...names].sort();\n }\n\n /** A key ending in `*` is a prefix match (`@astrojs/*`); anything else is exact. */\n static isExcluded(name: string, excludedNames: string[]): boolean {\n return excludedNames.some((key) => (key.endsWith('*') ? name.startsWith(key.slice(0, -1)) : key === name));\n }\n\n private static reconcileRootOverrides(input: {\n applicationRoot: string;\n derivedOverrides: Record<string, string>;\n write: boolean;\n }): ApplicationAlignmentFinding[] {\n if (!ApplicationDependencyAlignmentService.readManifest(join(input.applicationRoot, 'package.json'))) return [];\n // #2808: the effective settings, wherever pnpm 10 reads them; every write lands in pnpm-workspace.yaml.\n const settings = readApplicationPnpmSettings(input.applicationRoot);\n const current = settings.overrides ?? {};\n\n const findings: ApplicationAlignmentFinding[] = [];\n for (const setting of PNPM_OWNED_SETTINGS) {\n if (settings.sources[setting] !== PnpmSettingsSource.PACKAGE_JSON) continue;\n findings.push({\n manifestRelativePath: PnpmSettingsSource.PACKAGE_JSON,\n kind: ApplicationAlignmentFindingKind.SETTING_IN_PACKAGE_JSON,\n name: `pnpm.${setting}`,\n desired: PnpmSettingsSource.WORKSPACE_FILE,\n });\n }\n for (const [name, desired] of Object.entries(input.derivedOverrides)) {\n const existing = current[name];\n if (existing === desired) continue;\n findings.push({\n manifestRelativePath: PnpmSettingsSource.WORKSPACE_FILE,\n kind: existing === undefined ? ApplicationAlignmentFindingKind.OVERRIDE_MISSING : ApplicationAlignmentFindingKind.OVERRIDE_DRIFT,\n name,\n current: existing,\n desired,\n });\n }\n if (!findings.length || !input.write) return findings;\n\n // MERGE, never replace: the application's `@wildo-ai/*` pins, and any pin it authored itself,\n // are not this service's to decide — only the names the installed engine implies are.\n writeApplicationPnpmSettings(input.applicationRoot, { overrides: { ...current, ...input.derivedOverrides } });\n migrateApplicationPnpmSettings(input.applicationRoot);\n return findings;\n }\n\n private static reconcileMemberPeers(input: {\n applicationRoot: string;\n member: string;\n enginePeerClosure: Record<string, string[]>;\n write: boolean;\n }): ApplicationAlignmentFinding[] {\n const manifestPath = join(input.applicationRoot, input.member, 'package.json');\n const manifest = ApplicationDependencyAlignmentService.readManifest(manifestPath);\n if (!manifest) return [];\n\n const required = new Set<string>();\n for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const name of Object.keys(manifest[field] ?? {})) {\n if (!name.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n for (const peerName of input.enginePeerClosure[name] ?? []) required.add(peerName);\n }\n }\n // A name already declared as a real dependency needs no peer entry — the override reaches it there.\n for (const field of ['dependencies', 'devDependencies', 'optionalDependencies'] as const) {\n for (const name of Object.keys(manifest[field] ?? {})) required.delete(name);\n }\n\n const peers = { ...(manifest.peerDependencies ?? {}) };\n const findings: ApplicationAlignmentFinding[] = [];\n const relativePath = input.member === '.' ? 'package.json' : `${relative('.', join(input.member, 'package.json'))}`;\n for (const name of [...required].sort()) {\n if (peers[name] === '*') continue;\n findings.push({\n manifestRelativePath: relativePath,\n kind: name in peers ? ApplicationAlignmentFindingKind.PEER_PINNED_IN_PLACE : ApplicationAlignmentFindingKind.PEER_MISSING,\n name,\n current: peers[name],\n desired: '*',\n });\n }\n if (!findings.length || !input.write) return findings;\n\n // `\"*\"` and never a version: the pin lives in overrides (pnpm-workspace.yaml), so a later framework bump reaches\n // the application without touching this block. Nothing is removed — a name the closure does not\n // require may still be the application's own.\n for (const finding of findings) peers[finding.name] = '*';\n manifest.peerDependencies = Object.fromEntries(Object.keys(peers).sort().map((name) => [name, peers[name]]));\n writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 2)}\\n`, 'utf8');\n return findings;\n }\n\n private static readManifest(path: string): PackageManifest | null {\n if (!existsSync(path)) return null;\n return JSON.parse(readFileSync(path, 'utf8')) as PackageManifest;\n }\n\n /** Exposed for the scaffolder's exclusion seeding, which reads the framework's own list. */\n static readFrameworkExclusions(frameworkPath: string): Record<string, string> {\n const path = join(frameworkPath, 'scripts', 'app-dependency-alignment', 'propagated-engine-overrides.json');\n if (!existsSync(path)) return {};\n const parsed = JSON.parse(readFileSync(path, 'utf8')) as { deliberatelyExcluded?: Record<string, string> };\n return parsed.deliberatelyExcluded ?? {};\n }\n\n}\n\n/**\n * The raw member patterns of a workspace file's `packages:` block, in authored order; `[]` when the file\n * is absent. Scoped to that block, as `scripts/pnpm-workspace-members.mjs` is: a scan of every `- ` line\n * also reads `onlyBuiltDependencies:` and the other list blocks as members.\n */\nexport function readWorkspacePackagePatterns(workspaceManifestPath: string): string[] {\n if (!existsSync(workspaceManifestPath)) return [];\n const patterns: string[] = [];\n let inPackages = false;\n for (const rawLine of readFileSync(workspaceManifestPath, 'utf8').split(/\\r?\\n/)) {\n if (/^packages:\\s*$/.test(rawLine)) {\n inPackages = true;\n continue;\n }\n // A new top-level key ends the block; comments and list items do not.\n if (inPackages && /^\\S/.test(rawLine)) break;\n if (!inPackages) continue;\n const item = rawLine.match(/^\\s*-\\s*['\"]?([^'\"#]+?)['\"]?\\s*(#.*)?$/);\n const pattern = item?.[1]?.trim();\n if (pattern) patterns.push(pattern);\n }\n return patterns;\n}\n\n/**\n * Expand `pnpm-workspace.yaml` member patterns into member directories, relative to the root.\n *\n * The same semantics as the framework's one reader, `scripts/pnpm-workspace-members.mjs` (#362),\n * which this published CLI cannot import (it ships without the framework's `scripts/`): a LITERAL\n * path, and a pattern with exactly ONE path segment that is `*` (a trailing `dir/*`, or an interior\n * one followed by a fixed tail, as in the providers-registry workspace's facet members, #2788), whose\n * matches count only when they hold a `package.json` (pnpm's own rule, and what keeps `dist/` and\n * `node_modules/` out). Anything else, such as `dir/**`, a `*` inside a segment, two wildcard\n * segments or a `!exclusion`, comes back in `unsupportedPatterns` for the caller to report, because a\n * member silently dropped makes every package it covers look aligned.\n */\nexport function expandWorkspaceMemberPatterns(\n root: string,\n patterns: readonly string[],\n): { members: string[]; unsupportedPatterns: string[] } {\n const members: string[] = [];\n const unsupportedPatterns: string[] = [];\n for (const raw of patterns) {\n const pattern = raw.replace(/^\\.\\//, '').replace(/\\/+$/, '');\n if (!pattern.includes('*') && !pattern.startsWith('!')) {\n members.push(pattern === '' ? '.' : pattern);\n continue;\n }\n const segments = pattern.split('/');\n const wildcardIndex = segments.indexOf('*');\n if (pattern.startsWith('!') || wildcardIndex === -1 || segments.some((segment, index) => index !== wildcardIndex && segment.includes('*'))) {\n unsupportedPatterns.push(raw);\n continue;\n }\n const parent = segments.slice(0, wildcardIndex).join('/');\n const tail = segments.slice(wildcardIndex + 1).join('/');\n let children: string[] = [];\n try {\n children = readdirSync(join(root, parent), { withFileTypes: true })\n .filter((entry) => entry.isDirectory())\n .map((entry) => (tail === '' ? entry.name : `${entry.name}/${tail}`))\n .filter((member) => existsSync(join(root, parent, member, 'package.json')))\n .sort();\n } catch {\n // An absent parent directory expands to no members, as in pnpm.\n }\n members.push(...children.map((name) => (parent === '' ? name : `${parent}/${name}`)));\n }\n return { members, unsupportedPatterns };\n}\n\nfunction readJsonObject(path: string): Record<string, unknown> | undefined {\n try {\n const parsed: unknown = JSON.parse(readFileSync(path, 'utf8'));\n return parsed !== null && typeof parsed === 'object' && !Array.isArray(parsed) ? (parsed as Record<string, unknown>) : undefined;\n } catch {\n return undefined;\n }\n}\n\n/** Each vendor pin an adopted provider module's recorded wiring wrote (#2789): name → its module, from the app lockfile. */\nfunction readAdoptedVendorPins(applicationRoot: string): Map<string, { moduleId: string; ref?: string }> {\n const owners = new Map<string, { moduleId: string; ref?: string }>();\n const lock = readJsonObject(join(applicationRoot, WILDO_SAAS_LOCK_RELATIVE_PATH)) as\n | { sections?: { modules?: { installed?: Record<string, { registration?: { moduleId?: string; providerWiring?: { vendorPins?: Record<string, string> } } }> } } }\n | undefined;\n for (const [moduleId, entry] of Object.entries(lock?.sections?.modules?.installed ?? {})) {\n for (const name of Object.keys(entry.registration?.providerWiring?.vendorPins ?? {})) owners.set(name, { moduleId, ref: entry.registration?.moduleId });\n }\n return owners;\n}\n"]}
1
+ {"version":3,"file":"application-dependency-alignment.service.js","sourceRoot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AM,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IACxF,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC1C,CAAC;AAED,SAAS,cAAc,CAAC,IAAY;IAClC,IAAI,CAAC;QACH,MAAM,MAAM,GAAY,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;QAC/D,OAAO,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAE,MAAkC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnI,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC;AAED,4HAA4H;AAC5H,SAAS,qBAAqB,CAAC,eAAuB;IACpD,MAAM,MAAM,GAAG,IAAI,GAAG,EAA8C,CAAC;IACrE,MAAM,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,eAAe,EAAE,6BAA6B,CAAC,CAEnE,CAAC;IACd,KAAK,MAAM,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC,EAAE,CAAC;QACzF,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,cAAc,EAAE,UAAU,IAAI,EAAE,CAAC;YAAE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,CAAC,YAAY,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC1J,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["/**\n * ApplicationDependencyAlignmentService — align a STANDALONE application's dependency pins and\n * engine peer declarations against the `@wildo-ai/*` packages it actually has installed (issue #222).\n *\n * ## The problem this closes\n *\n * `wildo init` bakes three derived things into an application: the `@wildo-ai/*` version pins, the\n * third-party pins propagated from the framework's root `pnpm.overrides`, and the engine peer\n * declarations every workspace package must carry. All three are computed from the framework\n * CHECKOUT, at scaffold time. A standalone application has no checkout afterwards, so nothing\n * re-derives them: an application moved to a newer framework keeps the OLD third-party versions and\n * the OLD peer obligations — and the peer half cannot be corrected by reinstalling, because an\n * undeclared peer's resolution is sticky (issue #167).\n *\n * ## Why nothing new has to be published\n *\n * The publish lane already substitutes the framework's root override into every published manifest —\n * exact for `dependencies`, caret-widened for `peerDependencies`. So the pin set and the peer closure\n * are recoverable from the installed packages themselves. Measured against the real 1.1.1 packages in\n * a scaffolded application: of 150 recoverable propagated names, **143 reproduce the framework's own\n * root override exactly**; 5 differ only exact-vs-caret (names that appear ONLY as peers, where the\n * caret is the publish lane's deliberate widening for a consumer); and 2 differ by a major because\n * the framework's root moved AFTER 1.1.1 shipped — which is the point, not a defect. An application\n * aligns to the framework version it HAS, the only contract it can honour.\n *\n * That is why this service reads `node_modules` rather than a published manifest of pins: the data\n * cannot drift from the packages it describes, because it IS them.\n *\n * ## What it deliberately does NOT do\n *\n * It never changes a `@wildo-ai/*` version. Which framework release to adopt is the operator's\n * decision; everything else follows mechanically from it. The flow is:\n *\n * 1. bump the `@wildo-ai/*` entries in the application's overrides (pnpm-workspace.yaml)\n * 2. `pnpm install` (the new pin set cannot be read until the new version is on disk)\n * 3. `wildo align-deps --write`\n * 4. `pnpm install`\n *\n * `wildo update` runs that flow for a release upgrade (`update.command.ts`): the operator's decision\n * is its `--to <version>` / `--tag`, its step 1 is the bump, and its step 3 is the install → this\n * service → install. Use `align-deps` on its own only for the first alignment after `wildo init`.\n */\nimport { existsSync, readdirSync, readFileSync, writeFileSync } from 'fs';\nimport { dirname, join, relative } from 'path';\nimport {\n migrateApplicationPnpmSettings,\n PNPM_OWNED_SETTINGS,\n PnpmSettingsSource,\n readApplicationPnpmSettings,\n WILDO_SAAS_LOCK_RELATIVE_PATH,\n writeApplicationPnpmSettings,\n} from '@wildo-ai/platform-config-lib';\nimport { FRAMEWORK_OVERRIDES_MANIFEST_RELATIVE } from '@wildo-ai/application-creation-runtime';\n\nimport { resolveInstalledFrameworkAssetsRoot } from '~wildo-cli/services/framework/installed-framework-assets.service';\n\n/** Where an application declares the names its own toolchain owns. Seeded by `wildo init`. */\nexport const APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE = '.wildo-saas/dependency-exclusions.json';\n\nconst FRAMEWORK_SCOPE_PREFIX = '@wildo-ai/';\nconst EXACT_SEMVER_PATTERN = /^\\d+\\.\\d+\\.\\d+$/;\n\ninterface PackageManifest {\n name?: string;\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n peerDependenciesMeta?: Record<string, { optional?: boolean }>;\n optionalDependencies?: Record<string, string>;\n}\n\n/**\n * What is wrong with one manifest entry, and therefore what `--write` will do about it.\n *\n * The four are not degrees of the same thing — they split on TWO axes that need different repairs:\n * whether the name belongs in overrides (pnpm-workspace.yaml) or in the importer's own dependency list, and whether\n * it is ABSENT or present-and-wrong. `peer-pinned-in-place` is the one that reads oddly and matters\n * most: the peer IS declared, but at a concrete version rather than `\"*\"`, so the framework's override\n * cannot reach it and a later pin bump silently will not land.\n */\nexport enum ApplicationAlignmentFindingKind {\n /** The framework pins this name and the application's overrides (pnpm-workspace.yaml) does not carry it at all. */\n OVERRIDE_MISSING = 'override-missing',\n /** The application overrides the name, at a version the installed framework does not pin. */\n OVERRIDE_DRIFT = 'override-drift',\n /** A required engine peer the importer never declares, so `autoInstallPeers` resolves it unpinned. */\n PEER_MISSING = 'peer-missing',\n /** The peer is declared with a concrete version, which the override cannot rewrite. */\n PEER_PINNED_IN_PLACE = 'peer-pinned-in-place',\n /**\n * A pnpm setting Wildo owns (`overrides`, `onlyBuiltDependencies`, `neverBuiltDependencies`) still in `package.json` →\n * `pnpm`, which pnpm 11 does not read (#2808). `--write` moves it, value unchanged, into `pnpm-workspace.yaml`.\n */\n SETTING_IN_PACKAGE_JSON = 'setting-in-package-json',\n}\n\nexport interface ApplicationAlignmentFinding {\n /** Application-root-relative path of the manifest that needs the change. */\n manifestRelativePath: string;\n kind: ApplicationAlignmentFindingKind;\n name: string;\n current?: string;\n desired: string;\n}\n\n/**\n * What alignment REPORTS and never changes (#2789): removing a pin or a dependency needs to know who wrote it, and\n * nothing records that for these. The twin of `findDependencyOrphans` in the framework's alignment script, which this\n * published CLI cannot import.\n */\nexport enum ApplicationAlignmentReportKind {\n /** A root override no authority writes, no manifest declares, and the lockfile resolves nowhere: it pins nothing. */\n ORPHAN_OVERRIDE = 'orphan-override',\n /** An adopted provider module's vendor package, declared by a manifest outside that module's facets. */\n MISPLACED_DEPENDENCY = 'misplaced-dependency',\n}\n\nexport interface ApplicationAlignmentReport {\n manifestRelativePath: string;\n kind: ApplicationAlignmentReportKind;\n name: string;\n /** The override's value (orphan) or the module that owns the package (misplaced). */\n detail: string;\n}\n\nexport interface ApplicationAlignmentResult {\n /** `@wildo-ai/*` packages whose installed manifest was read, with the version found. */\n installedFrameworkPackages: Array<{ name: string; version: string }>;\n /** Third-party names the installed engine pins, after exclusions. */\n derivedOverrides: Record<string, string>;\n /** Per framework package, the transitive REQUIRED peers a consumer must declare. */\n enginePeerClosure: Record<string, string[]>;\n excludedNames: string[];\n findings: ApplicationAlignmentFinding[];\n /**\n * Workspace member patterns this reader cannot expand (`dir/**`, an interior `*`, a `!exclusion`).\n * The packages they cover were NOT aligned; a caller reports them rather than calling the run clean.\n */\n unsupportedWorkspacePatterns: string[];\n /** Report-only defects (#2789): never part of `findings`, never written. */\n reports: ApplicationAlignmentReport[];\n written: boolean;\n}\n\n/** The package an override key governs: `x>y@2` → `y`, `@s/n@^1` → `@s/n`. */\nexport function overrideTargetName(key: string): string {\n const target = key.includes('>') ? key.slice(key.lastIndexOf('>') + 1) : key;\n const at = target.lastIndexOf('@');\n return at > 0 ? target.slice(0, at) : target;\n}\n\n/**\n * Every package name a pnpm lockfile resolves. Only the `packages:` and `snapshots:` blocks are read: the lockfile's own\n * `overrides:` block carries keys like `foo@1`, which would count an orphan override as resolved (#2789 review F7).\n */\nexport function readResolvedPackageNames(lockText: string | undefined): Set<string> {\n const names = new Set<string>();\n if (lockText === undefined) return names;\n let inResolved = false;\n for (const line of lockText.split(/\\r?\\n/)) {\n if (/^\\S/.test(line)) {\n inResolved = /^(packages|snapshots):\\s*$/.test(line);\n continue;\n }\n if (!inResolved) continue;\n const match = /^ {2}'?((?:@[^/'\\s]+\\/)?[^@'\\s/]+)@/.exec(line);\n if (match) names.add(match[1]!);\n }\n return names;\n}\n\nconst DEPENDENCY_FIELDS = ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies'] as const;\n\n/**\n * The two report-only defects of ONE application (#2789), with the semantics of the framework script's twin:\n * an ORPHAN override (no authority writes it, no manifest declares it, the lockfile resolves it nowhere; a deliberate\n * pin on a transitive dependency is resolved, so it is never one) and a MISPLACED dependency (an adopted module's vendor\n * package declared outside that module's facets).\n */\nexport function findDependencyOrphans(input: {\n appOverrides: Record<string, unknown>;\n /** The application-root file the overrides were read from (#2808); `pnpm-workspace.yaml` when not given. */\n overridesRelativePath?: string;\n authoredKeys: ReadonlySet<string>;\n adoptedVendorPins: ReadonlyMap<string, { moduleId: string; ref?: string }>;\n manifests: ReadonlyArray<{ member: string; manifest: Record<string, unknown> | undefined }>;\n resolvedNames: ReadonlySet<string>;\n}): ApplicationAlignmentReport[] {\n const fieldsOf = (manifest: Record<string, unknown> | undefined) => DEPENDENCY_FIELDS\n .map((field) => manifest?.[field])\n .filter((value): value is Record<string, unknown> => value !== null && typeof value === 'object' && !Array.isArray(value));\n const declared = new Set(input.manifests.flatMap(({ manifest }) => fieldsOf(manifest).flatMap((field) => Object.keys(field))));\n const reports: ApplicationAlignmentReport[] = Object.keys(input.appOverrides)\n .filter((key) => !input.authoredKeys.has(key))\n .filter((key) => !overrideTargetName(key).startsWith('@wildo-ai/'))\n .filter((key) => !input.adoptedVendorPins.has(overrideTargetName(key)))\n .filter((key) => !declared.has(overrideTargetName(key)))\n .filter((key) => !input.resolvedNames.has(overrideTargetName(key)))\n .sort()\n .map((key) => ({ manifestRelativePath: input.overridesRelativePath ?? PnpmSettingsSource.WORKSPACE_FILE, kind: ApplicationAlignmentReportKind.ORPHAN_OVERRIDE, name: key, detail: String(input.appOverrides[key]) }));\n const misplaced: ApplicationAlignmentReport[] = [];\n for (const { member, manifest } of input.manifests) {\n for (const [name, owner] of input.adoptedVendorPins) {\n if (owner.ref !== undefined && member.startsWith(`providers/${owner.ref}/`)) continue;\n if (fieldsOf(manifest).some((field) => field[name] !== undefined)) {\n misplaced.push({ manifestRelativePath: join(member, 'package.json'), kind: ApplicationAlignmentReportKind.MISPLACED_DEPENDENCY, name, detail: owner.moduleId });\n }\n }\n }\n // Ordered like the framework script's report: by member, then name.\n return [...reports, ...misplaced.sort((a, b) => `${a.manifestRelativePath}/${a.name}`.localeCompare(`${b.manifestRelativePath}/${b.name}`))];\n}\n\nexport class ApplicationDependencyAlignmentService {\n /**\n * Compute (and optionally apply) the alignment for one application root.\n *\n * Reading is total and writing is per-manifest: a `--check` run touches nothing, and a `--write`\n * run rewrites only the manifests that actually have findings.\n */\n static align(input: {\n applicationRoot: string;\n write: boolean;\n /**\n * The framework-assets root whose alignment manifest names the pins `wildo init` writes (#3994). Defaults to the\n * running CLI's; `null` when there is none, and the orphan report then knows only the derived pins.\n */\n frameworkAssetsRoot?: string | null;\n }): ApplicationAlignmentResult {\n const { members: workspaceMembers, unsupportedPatterns: unsupportedWorkspacePatterns } =\n ApplicationDependencyAlignmentService.discoverWorkspaceMembers(input.applicationRoot);\n const installed = ApplicationDependencyAlignmentService.readInstalledFrameworkManifests({\n applicationRoot: input.applicationRoot,\n workspaceMembers,\n });\n if (installed.size === 0) {\n throw new Error(\n 'No @wildo-ai/* package could be resolved from this application — run `pnpm install` first. '\n + 'Alignment derives every pin from the framework packages the application HAS installed, so '\n + 'an empty node_modules would silently produce an empty pin set.',\n );\n }\n\n const excludedNames = ApplicationDependencyAlignmentService.readExclusions(input.applicationRoot);\n const derivedOverrides = ApplicationDependencyAlignmentService.deriveOverrides({ installed, excludedNames });\n const enginePeerClosure = ApplicationDependencyAlignmentService.deriveEnginePeerClosure({ installed, excludedNames });\n\n const findings: ApplicationAlignmentFinding[] = [];\n findings.push(...ApplicationDependencyAlignmentService.reconcileRootOverrides({\n applicationRoot: input.applicationRoot, derivedOverrides, write: input.write,\n }));\n for (const member of workspaceMembers) {\n findings.push(...ApplicationDependencyAlignmentService.reconcileMemberPeers({\n applicationRoot: input.applicationRoot, member, enginePeerClosure, write: input.write,\n }));\n }\n\n // #2789: report-only. Read after the writes above, so a run that just added a pin does not report it.\n const lockPath = join(input.applicationRoot, 'pnpm-lock.yaml');\n const settingsAfterWrite = readApplicationPnpmSettings(input.applicationRoot);\n const reports = findDependencyOrphans({\n appOverrides: settingsAfterWrite.overrides ?? {},\n overridesRelativePath: settingsAfterWrite.sources.overrides,\n authoredKeys: new Set([\n ...Object.keys(derivedOverrides),\n ...ApplicationDependencyAlignmentService.readFrameworkWrittenOverrideKeys(\n input.frameworkAssetsRoot === undefined ? resolveInstalledFrameworkAssetsRoot() : input.frameworkAssetsRoot,\n ),\n ]),\n adoptedVendorPins: readAdoptedVendorPins(input.applicationRoot),\n manifests: workspaceMembers.map((member) => ({ member, manifest: readJsonObject(join(input.applicationRoot, member, 'package.json')) })),\n resolvedNames: readResolvedPackageNames(existsSync(lockPath) ? readFileSync(lockPath, 'utf8') : undefined),\n });\n\n return {\n reports,\n installedFrameworkPackages: [...installed.entries()]\n .map(([name, manifest]) => ({ name, version: (manifest as { version?: string }).version ?? 'unknown' }))\n .sort((a, b) => a.name.localeCompare(b.name)),\n derivedOverrides,\n enginePeerClosure,\n excludedNames,\n findings,\n unsupportedWorkspacePatterns,\n written: input.write && findings.length > 0,\n };\n }\n\n /**\n * The application's own workspace members, plus its root (`.`).\n *\n * GENERATED drops are skipped: `.wildo-saas/wildo-dev-companion` has its manifest written by the\n * companion delivery on every start, so a declaration reconciled into it is erased.\n *\n * A member may be a GLOB, and one kind always is: `wildo registry add` wires a provider module as\n * `providers/<ref>/*`, one member per facet package. Reading members as literal paths dropped every\n * glob (no directory is literally named `*`), so an installed provider package was never aligned\n * (#2019 review). {@link expandWorkspaceMemberPatterns} expands them with the framework reader's semantics.\n */\n static discoverWorkspaceMembers(applicationRoot: string): { members: string[]; unsupportedPatterns: string[] } {\n const { members, unsupportedPatterns } = expandWorkspaceMemberPatterns(\n applicationRoot,\n readWorkspacePackagePatterns(join(applicationRoot, 'pnpm-workspace.yaml')),\n );\n return {\n members: [...new Set(['.', ...members])]\n .filter((member) => !member.startsWith('.wildo-saas/'))\n .filter((member) => existsSync(join(applicationRoot, member, 'package.json'))),\n unsupportedPatterns,\n };\n }\n\n /**\n * Every `@wildo-ai/*` manifest the application can resolve, keyed by package name.\n *\n * Resolution goes through `createRequire` from each workspace member rather than by walking\n * `node_modules/.pnpm`: the virtual store's directory naming is a pnpm implementation detail, while\n * `require.resolve` is the contract every runtime in the application already uses. A member that\n * cannot resolve a name simply contributes nothing — under pnpm's isolated layout only a package's\n * own declared dependencies are reachable from it, and that is exactly the set that matters.\n */\n static readInstalledFrameworkManifests(input: {\n applicationRoot: string;\n workspaceMembers: string[];\n }): Map<string, PackageManifest> {\n const found = new Map<string, PackageManifest>();\n const candidateNames = new Set<string>();\n\n for (const member of input.workspaceMembers) {\n const manifest = ApplicationDependencyAlignmentService.readManifest(\n join(input.applicationRoot, member, 'package.json'),\n );\n if (!manifest) continue;\n for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const name of Object.keys(manifest[field] ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) candidateNames.add(name);\n }\n }\n }\n // The root `pnpm.overrides` names every framework package the scaffolder pinned, including ones\n // no member declares directly — they are still installed, and their peers still land on the app.\n for (const name of Object.keys(readApplicationPnpmSettings(input.applicationRoot).overrides ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) candidateNames.add(name);\n }\n\n // A framework package's own `@wildo-ai/*` dependencies are followed too: the closure is\n // transitive, and an application need never name `presets-components` to inherit its peers.\n const pending = [...candidateNames];\n while (pending.length > 0) {\n const name = pending.pop() as string;\n if (found.has(name)) continue;\n const manifest = ApplicationDependencyAlignmentService.resolveFrameworkManifest({\n applicationRoot: input.applicationRoot,\n workspaceMembers: input.workspaceMembers,\n name,\n });\n if (!manifest) continue;\n found.set(name, manifest);\n for (const field of ['dependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const dependencyName of Object.keys(manifest[field] ?? {})) {\n if (dependencyName.startsWith(FRAMEWORK_SCOPE_PREFIX) && !found.has(dependencyName)) pending.push(dependencyName);\n }\n }\n }\n return found;\n }\n\n /**\n * Find a framework package's manifest by walking `node_modules` upward from each workspace member,\n * which is Node's own package-DIRECTORY lookup.\n *\n * NOT `require.resolve('<name>/package.json')`, which was the first attempt and does not work: a\n * published `@wildo-ai/*` package declares an `exports` map, and an exports map that does not list\n * `./package.json` makes that specifier unresolvable. Measured on a freshly scaffolded application —\n * every one of the twenty packages was installed and every resolve threw, so the service reported\n * \"no framework package installed\" on a perfectly healthy tree. A directory walk asks the question\n * actually being asked (where does this package LIVE) and is unaffected by what a package exports.\n */\n private static resolveFrameworkManifest(input: {\n applicationRoot: string;\n workspaceMembers: string[];\n name: string;\n }): PackageManifest | null {\n for (const member of input.workspaceMembers) {\n let directory = join(input.applicationRoot, member);\n for (;;) {\n const candidate = join(directory, 'node_modules', input.name, 'package.json');\n if (existsSync(candidate)) return JSON.parse(readFileSync(candidate, 'utf8')) as PackageManifest;\n const parent = dirname(directory);\n if (parent === directory || !parent.startsWith(input.applicationRoot)) break;\n directory = parent;\n }\n }\n return null;\n }\n\n /**\n * The third-party pin set the installed engine implies.\n *\n * When a name appears with several specifiers the EXACT one wins. That is not arbitrary: the\n * publish lane writes the tested version exactly into `dependencies` and widens it to a caret in\n * `peerDependencies`, so both describe the same version and the exact form is the one the framework\n * actually ran. Measured, it reproduces the framework's own root override for 143 of 150 names.\n *\n * ## Only a name the framework's ROOT pins is pinned — never a package's own private dependency\n *\n * The propagation contract (`toolchain-installation-baseline.md`) moves exactly the names the framework\n * root pins, and a manifest says which those are: the publish lane writes a root pin EXACT into\n * `dependencies` and as a caret into `peerDependencies`, and source form writes it `*`. A dependency\n * the root does NOT pin keeps the range its package authored — `platform-config-lib`'s `jiti ^2.6.1`.\n * This used to pin every such range application-wide, and an override reaches every edge that names\n * the package: on 2026-09-24 it forced jiti 2 onto Docusaurus (which loads its config through jiti 1),\n * the documentation site could no longer read `export default config`, and the failed service tore the\n * whole dev stack down on start. So a name is pinned when some framework package declares it exact,\n * `*`, or as a peer; a name only ever declared as a private range stays that package's business.\n */\n static deriveOverrides(input: { installed: Map<string, PackageManifest>; excludedNames: string[] }): Record<string, string> {\n const candidates = new Map<string, Set<string>>();\n const rootPinned = new Set<string>();\n for (const manifest of input.installed.values()) {\n for (const field of ['dependencies', 'peerDependencies'] as const) {\n for (const [name, specifier] of Object.entries(manifest[field] ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n if (ApplicationDependencyAlignmentService.isExcluded(name, input.excludedNames)) continue;\n if (!candidates.has(name)) candidates.set(name, new Set());\n (candidates.get(name) as Set<string>).add(specifier);\n if (field === 'peerDependencies' || specifier === '*' || EXACT_SEMVER_PATTERN.test(specifier)) rootPinned.add(name);\n }\n }\n }\n const overrides: Record<string, string> = {};\n for (const [name, specifiers] of candidates) {\n if (!rootPinned.has(name)) continue;\n const exact = [...specifiers].find((specifier) => EXACT_SEMVER_PATTERN.test(specifier));\n overrides[name] = exact ?? [...specifiers][0];\n }\n return Object.fromEntries(Object.keys(overrides).sort().map((name) => [name, overrides[name]]));\n }\n\n /**\n * Per framework package, the transitive REQUIRED peers a consumer must declare.\n *\n * Optional peers (`peerDependenciesMeta`) are excluded — an optional peer is not an obligation, and\n * `saas-technical-doc` / `saas-website` use that field to say exactly this.\n */\n static deriveEnginePeerClosure(input: {\n installed: Map<string, PackageManifest>;\n excludedNames: string[];\n }): Record<string, string[]> {\n const closureOf = new Map<string, Set<string>>();\n\n const walk = (packageName: string, visiting: Set<string>): Set<string> => {\n const cached = closureOf.get(packageName);\n if (cached) return cached;\n const manifest = input.installed.get(packageName);\n if (!manifest || visiting.has(packageName)) return new Set();\n visiting.add(packageName);\n\n const peers = new Set<string>();\n const optional = manifest.peerDependenciesMeta ?? {};\n for (const name of Object.keys(manifest.peerDependencies ?? {})) {\n if (name.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n if (optional[name]?.optional) continue;\n if (ApplicationDependencyAlignmentService.isExcluded(name, input.excludedNames)) continue;\n peers.add(name);\n }\n for (const field of ['dependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const dependencyName of Object.keys(manifest[field] ?? {})) {\n if (!dependencyName.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n for (const inherited of walk(dependencyName, visiting)) peers.add(inherited);\n }\n }\n visiting.delete(packageName);\n closureOf.set(packageName, peers);\n return peers;\n };\n\n const result: Record<string, string[]> = {};\n for (const packageName of [...input.installed.keys()].sort()) {\n result[packageName] = [...walk(packageName, new Set())].sort();\n }\n return result;\n }\n\n /**\n * Names this application's own toolchain owns, which alignment must never pin.\n *\n * APPLICATION-owned on purpose. The framework's equivalent list is a judgement about a typical\n * application's stack — `esbuild` follows vite, `express` follows webpack-dev-server, `mime`\n * follows express — and pinning those names was measured to break the docs toolchain. A real\n * application knows its own stack better than the framework does, so the list is seeded at\n * `wildo init` and owned from there. An absent file means no exclusions, which is honest for an\n * application that has never declared any.\n */\n static readExclusions(applicationRoot: string): string[] {\n const path = join(applicationRoot, APPLICATION_DEPENDENCY_EXCLUSIONS_RELATIVE);\n if (!existsSync(path)) return [];\n const parsed = JSON.parse(readFileSync(path, 'utf8')) as { excludedNames?: Record<string, string> | string[] };\n const names = Array.isArray(parsed.excludedNames) ? parsed.excludedNames : Object.keys(parsed.excludedNames ?? {});\n return [...names].sort();\n }\n\n /** A key ending in `*` is a prefix match (`@astrojs/*`); anything else is exact. */\n static isExcluded(name: string, excludedNames: string[]): boolean {\n return excludedNames.some((key) => (key.endsWith('*') ? name.startsWith(key.slice(0, -1)) : key === name));\n }\n\n private static reconcileRootOverrides(input: {\n applicationRoot: string;\n derivedOverrides: Record<string, string>;\n write: boolean;\n }): ApplicationAlignmentFinding[] {\n if (!ApplicationDependencyAlignmentService.readManifest(join(input.applicationRoot, 'package.json'))) return [];\n // #2808: the effective settings, wherever pnpm 10 reads them; every write lands in pnpm-workspace.yaml.\n const settings = readApplicationPnpmSettings(input.applicationRoot);\n const current = settings.overrides ?? {};\n\n const findings: ApplicationAlignmentFinding[] = [];\n for (const setting of PNPM_OWNED_SETTINGS) {\n if (settings.sources[setting] !== PnpmSettingsSource.PACKAGE_JSON) continue;\n findings.push({\n manifestRelativePath: PnpmSettingsSource.PACKAGE_JSON,\n kind: ApplicationAlignmentFindingKind.SETTING_IN_PACKAGE_JSON,\n name: `pnpm.${setting}`,\n desired: PnpmSettingsSource.WORKSPACE_FILE,\n });\n }\n for (const [name, desired] of Object.entries(input.derivedOverrides)) {\n const existing = current[name];\n if (existing === desired) continue;\n findings.push({\n manifestRelativePath: PnpmSettingsSource.WORKSPACE_FILE,\n kind: existing === undefined ? ApplicationAlignmentFindingKind.OVERRIDE_MISSING : ApplicationAlignmentFindingKind.OVERRIDE_DRIFT,\n name,\n current: existing,\n desired,\n });\n }\n if (!findings.length || !input.write) return findings;\n\n // MERGE, never replace: the application's `@wildo-ai/*` pins, and any pin it authored itself,\n // are not this service's to decide — only the names the installed engine implies are.\n writeApplicationPnpmSettings(input.applicationRoot, { overrides: { ...current, ...input.derivedOverrides } });\n migrateApplicationPnpmSettings(input.applicationRoot);\n return findings;\n }\n\n private static reconcileMemberPeers(input: {\n applicationRoot: string;\n member: string;\n enginePeerClosure: Record<string, string[]>;\n write: boolean;\n }): ApplicationAlignmentFinding[] {\n const manifestPath = join(input.applicationRoot, input.member, 'package.json');\n const manifest = ApplicationDependencyAlignmentService.readManifest(manifestPath);\n if (!manifest) return [];\n\n const required = new Set<string>();\n for (const field of ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'] as const) {\n for (const name of Object.keys(manifest[field] ?? {})) {\n if (!name.startsWith(FRAMEWORK_SCOPE_PREFIX)) continue;\n for (const peerName of input.enginePeerClosure[name] ?? []) required.add(peerName);\n }\n }\n // A name already declared as a real dependency needs no peer entry — the override reaches it there.\n for (const field of ['dependencies', 'devDependencies', 'optionalDependencies'] as const) {\n for (const name of Object.keys(manifest[field] ?? {})) required.delete(name);\n }\n\n const peers = { ...(manifest.peerDependencies ?? {}) };\n const findings: ApplicationAlignmentFinding[] = [];\n const relativePath = input.member === '.' ? 'package.json' : `${relative('.', join(input.member, 'package.json'))}`;\n for (const name of [...required].sort()) {\n if (peers[name] === '*') continue;\n findings.push({\n manifestRelativePath: relativePath,\n kind: name in peers ? ApplicationAlignmentFindingKind.PEER_PINNED_IN_PLACE : ApplicationAlignmentFindingKind.PEER_MISSING,\n name,\n current: peers[name],\n desired: '*',\n });\n }\n if (!findings.length || !input.write) return findings;\n\n // `\"*\"` and never a version: the pin lives in overrides (pnpm-workspace.yaml), so a later framework bump reaches\n // the application without touching this block. Nothing is removed — a name the closure does not\n // require may still be the application's own.\n for (const finding of findings) peers[finding.name] = '*';\n manifest.peerDependencies = Object.fromEntries(Object.keys(peers).sort().map((name) => [name, peers[name]]));\n writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 2)}\\n`, 'utf8');\n return findings;\n }\n\n private static readManifest(path: string): PackageManifest | null {\n if (!existsSync(path)) return null;\n return JSON.parse(readFileSync(path, 'utf8')) as PackageManifest;\n }\n\n /**\n * The override keys `wildo init` writes into every application (#3994): `propagatedOverrideKeys` and\n * `additionalPropagatedOverrideKeys` of the alignment manifest that travels with the CLI.\n *\n * The orphan report needs them because derivation cannot see two kinds of pin the framework writes on purpose:\n * a name NO framework manifest declares (`stripe`: the engine lazily `require`s the SDK, #239), and a peer of a\n * framework package this application has not installed (`@mdx-js/react`, a peer of `saas-website`, in an\n * application with no website). Both were reported as \"no authority writes it — remove it\", which told the\n * operator to undo the framework's own pin. The manifest IS that authority. Opt-in package pins are not\n * included: they are written only beside the package, so once it is gone they really do pin nothing.\n *\n * Returns `[]` when no manifest is reachable: the report then falls back to the derived pins alone, which can\n * only over-report a warning, never hide one.\n */\n static readFrameworkWrittenOverrideKeys(frameworkAssetsRoot: string | null): string[] {\n if (frameworkAssetsRoot === null) return [];\n const path = join(frameworkAssetsRoot, FRAMEWORK_OVERRIDES_MANIFEST_RELATIVE);\n if (!existsSync(path)) return [];\n const parsed = JSON.parse(readFileSync(path, 'utf8')) as { propagatedOverrideKeys?: unknown; additionalPropagatedOverrideKeys?: unknown };\n return [parsed.propagatedOverrideKeys, parsed.additionalPropagatedOverrideKeys]\n .flatMap((keys) => (Array.isArray(keys) ? keys : []))\n .filter((key): key is string => typeof key === 'string');\n }\n\n /** Exposed for the scaffolder's exclusion seeding, which reads the framework's own list. */\n static readFrameworkExclusions(frameworkPath: string): Record<string, string> {\n const path = join(frameworkPath, FRAMEWORK_OVERRIDES_MANIFEST_RELATIVE);\n if (!existsSync(path)) return {};\n const parsed = JSON.parse(readFileSync(path, 'utf8')) as { deliberatelyExcluded?: Record<string, string> };\n return parsed.deliberatelyExcluded ?? {};\n }\n\n}\n\n/**\n * The raw member patterns of a workspace file's `packages:` block, in authored order; `[]` when the file\n * is absent. Scoped to that block, as `scripts/pnpm-workspace-members.mjs` is: a scan of every `- ` line\n * also reads `onlyBuiltDependencies:` and the other list blocks as members.\n */\nexport function readWorkspacePackagePatterns(workspaceManifestPath: string): string[] {\n if (!existsSync(workspaceManifestPath)) return [];\n const patterns: string[] = [];\n let inPackages = false;\n for (const rawLine of readFileSync(workspaceManifestPath, 'utf8').split(/\\r?\\n/)) {\n if (/^packages:\\s*$/.test(rawLine)) {\n inPackages = true;\n continue;\n }\n // A new top-level key ends the block; comments and list items do not.\n if (inPackages && /^\\S/.test(rawLine)) break;\n if (!inPackages) continue;\n const item = rawLine.match(/^\\s*-\\s*['\"]?([^'\"#]+?)['\"]?\\s*(#.*)?$/);\n const pattern = item?.[1]?.trim();\n if (pattern) patterns.push(pattern);\n }\n return patterns;\n}\n\n/**\n * Expand `pnpm-workspace.yaml` member patterns into member directories, relative to the root.\n *\n * The same semantics as the framework's one reader, `scripts/pnpm-workspace-members.mjs` (#362),\n * which this published CLI cannot import (it ships without the framework's `scripts/`): a LITERAL\n * path, and a pattern with exactly ONE path segment that is `*` (a trailing `dir/*`, or an interior\n * one followed by a fixed tail, as in the providers-registry workspace's facet members, #2788), whose\n * matches count only when they hold a `package.json` (pnpm's own rule, and what keeps `dist/` and\n * `node_modules/` out). Anything else, such as `dir/**`, a `*` inside a segment, two wildcard\n * segments or a `!exclusion`, comes back in `unsupportedPatterns` for the caller to report, because a\n * member silently dropped makes every package it covers look aligned.\n */\nexport function expandWorkspaceMemberPatterns(\n root: string,\n patterns: readonly string[],\n): { members: string[]; unsupportedPatterns: string[] } {\n const members: string[] = [];\n const unsupportedPatterns: string[] = [];\n for (const raw of patterns) {\n const pattern = raw.replace(/^\\.\\//, '').replace(/\\/+$/, '');\n if (!pattern.includes('*') && !pattern.startsWith('!')) {\n members.push(pattern === '' ? '.' : pattern);\n continue;\n }\n const segments = pattern.split('/');\n const wildcardIndex = segments.indexOf('*');\n if (pattern.startsWith('!') || wildcardIndex === -1 || segments.some((segment, index) => index !== wildcardIndex && segment.includes('*'))) {\n unsupportedPatterns.push(raw);\n continue;\n }\n const parent = segments.slice(0, wildcardIndex).join('/');\n const tail = segments.slice(wildcardIndex + 1).join('/');\n let children: string[] = [];\n try {\n children = readdirSync(join(root, parent), { withFileTypes: true })\n .filter((entry) => entry.isDirectory())\n .map((entry) => (tail === '' ? entry.name : `${entry.name}/${tail}`))\n .filter((member) => existsSync(join(root, parent, member, 'package.json')))\n .sort();\n } catch {\n // An absent parent directory expands to no members, as in pnpm.\n }\n members.push(...children.map((name) => (parent === '' ? name : `${parent}/${name}`)));\n }\n return { members, unsupportedPatterns };\n}\n\nfunction readJsonObject(path: string): Record<string, unknown> | undefined {\n try {\n const parsed: unknown = JSON.parse(readFileSync(path, 'utf8'));\n return parsed !== null && typeof parsed === 'object' && !Array.isArray(parsed) ? (parsed as Record<string, unknown>) : undefined;\n } catch {\n return undefined;\n }\n}\n\n/** Each vendor pin an adopted provider module's recorded wiring wrote (#2789): name → its module, from the app lockfile. */\nfunction readAdoptedVendorPins(applicationRoot: string): Map<string, { moduleId: string; ref?: string }> {\n const owners = new Map<string, { moduleId: string; ref?: string }>();\n const lock = readJsonObject(join(applicationRoot, WILDO_SAAS_LOCK_RELATIVE_PATH)) as\n | { sections?: { modules?: { installed?: Record<string, { registration?: { moduleId?: string; providerWiring?: { vendorPins?: Record<string, string> } } }> } } }\n | undefined;\n for (const [moduleId, entry] of Object.entries(lock?.sections?.modules?.installed ?? {})) {\n for (const name of Object.keys(entry.registration?.providerWiring?.vendorPins ?? {})) owners.set(name, { moduleId, ref: entry.registration?.moduleId });\n }\n return owners;\n}\n"]}