@wildo-ai/platform-config-lib 1.1.11 → 1.1.12

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 (389) hide show
  1. package/dist/esm/_unimplemented/soft-warn.d.ts +24 -49
  2. package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
  3. package/dist/esm/_unimplemented/soft-warn.js +24 -49
  4. package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
  5. package/dist/esm/blueprint/anchored-region.d.ts.map +1 -1
  6. package/dist/esm/blueprint/anchored-region.js.map +1 -1
  7. package/dist/esm/blueprint/blueprint.schemas.d.ts +0 -89
  8. package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -1
  9. package/dist/esm/blueprint/blueprint.schemas.js.map +1 -1
  10. package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
  11. package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
  12. package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
  13. package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
  14. package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
  15. package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
  16. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  17. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  18. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +8 -1
  19. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  20. package/dist/esm/bootstrap/bootstrap.schemas.js +15 -1
  21. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  22. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +10 -2
  23. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  24. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +10 -2
  25. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  26. package/dist/esm/bootstrap/platform-store-preconnect.d.ts +21 -0
  27. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
  28. package/dist/esm/bootstrap/platform-store-preconnect.js +25 -0
  29. package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
  30. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts +80 -0
  31. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts.map +1 -0
  32. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js +81 -0
  33. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js.map +1 -0
  34. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +41 -9
  35. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  36. package/dist/esm/bootstrap/runtime-backing-service-access.js +77 -28
  37. package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
  38. package/dist/esm/bootstrap/runtime-network-policy.d.ts +117 -12
  39. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  40. package/dist/esm/bootstrap/runtime-network-policy.js +222 -23
  41. package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
  42. package/dist/esm/bootstrap/runtime-network-topology.d.ts +31 -4
  43. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  44. package/dist/esm/bootstrap/runtime-network-topology.js +43 -2
  45. package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
  46. package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
  47. package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
  48. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +40 -2
  49. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  50. package/dist/esm/bootstrap/runtime-principal.contracts.js +66 -3
  51. package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
  52. package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -1
  53. package/dist/esm/bootstrap/runtime-response-integrity.js +3 -3
  54. package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -1
  55. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -1
  56. package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -1
  57. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  58. package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
  59. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
  60. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
  61. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -1
  62. package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -1
  63. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  64. package/dist/esm/config-authoring.entry.js.map +1 -1
  65. package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
  66. package/dist/esm/credentials/credential-generator.service.js.map +1 -1
  67. package/dist/esm/index.d.ts +5 -1
  68. package/dist/esm/index.d.ts.map +1 -1
  69. package/dist/esm/index.js +5 -1
  70. package/dist/esm/index.js.map +1 -1
  71. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts +119 -0
  72. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts.map +1 -0
  73. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js +109 -0
  74. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js.map +1 -0
  75. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts +182 -0
  76. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts.map +1 -0
  77. package/dist/esm/key-management/application-signing-key-rotation.contracts.js +145 -0
  78. package/dist/esm/key-management/application-signing-key-rotation.contracts.js.map +1 -0
  79. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts +156 -0
  80. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts.map +1 -0
  81. package/dist/esm/key-management/approval-seal-manifested-copy.js +617 -0
  82. package/dist/esm/key-management/approval-seal-manifested-copy.js.map +1 -0
  83. package/dist/esm/key-management/approval-seal-verifier.d.ts +101 -39
  84. package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -1
  85. package/dist/esm/key-management/approval-seal-verifier.js +134 -12
  86. package/dist/esm/key-management/approval-seal-verifier.js.map +1 -1
  87. package/dist/esm/key-management/approval-seal.contracts.d.ts +12 -15
  88. package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -1
  89. package/dist/esm/key-management/approval-seal.contracts.js +20 -0
  90. package/dist/esm/key-management/approval-seal.contracts.js.map +1 -1
  91. package/dist/esm/key-management/data-key.contracts.d.ts +0 -2
  92. package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -1
  93. package/dist/esm/key-management/data-key.contracts.js.map +1 -1
  94. package/dist/esm/key-management/es256-jws.d.ts.map +1 -1
  95. package/dist/esm/key-management/es256-jws.js.map +1 -1
  96. package/dist/esm/key-management/key-provider.spi.d.ts +8 -1
  97. package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -1
  98. package/dist/esm/key-management/key-provider.spi.js.map +1 -1
  99. package/dist/esm/key-management/keyring-rotation.contracts.d.ts +2 -12
  100. package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -1
  101. package/dist/esm/key-management/keyring-rotation.contracts.js +3 -3
  102. package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -1
  103. package/dist/esm/key-management/keyring-status.contracts.d.ts +0 -7
  104. package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -1
  105. package/dist/esm/key-management/keyring-status.contracts.js.map +1 -1
  106. package/dist/esm/key-management/pdf-incremental-update.d.ts +158 -0
  107. package/dist/esm/key-management/pdf-incremental-update.d.ts.map +1 -0
  108. package/dist/esm/key-management/pdf-incremental-update.js +730 -0
  109. package/dist/esm/key-management/pdf-incremental-update.js.map +1 -0
  110. package/dist/esm/key-management/pdf-truetype-font.d.ts +35 -0
  111. package/dist/esm/key-management/pdf-truetype-font.d.ts.map +1 -0
  112. package/dist/esm/key-management/pdf-truetype-font.js +152 -0
  113. package/dist/esm/key-management/pdf-truetype-font.js.map +1 -0
  114. package/dist/esm/key-management/qr-code.d.ts +38 -0
  115. package/dist/esm/key-management/qr-code.d.ts.map +1 -0
  116. package/dist/esm/key-management/qr-code.js +325 -0
  117. package/dist/esm/key-management/qr-code.js.map +1 -0
  118. package/dist/esm/key-management/signature-request.contracts.d.ts +0 -4
  119. package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -1
  120. package/dist/esm/key-management/signature-request.contracts.js.map +1 -1
  121. package/dist/esm/key-management/signing-log-export.contracts.d.ts +0 -1
  122. package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -1
  123. package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -1
  124. package/dist/esm/key-management/vault-custody.contracts.d.ts +43 -0
  125. package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -1
  126. package/dist/esm/key-management/vault-custody.contracts.js +66 -0
  127. package/dist/esm/key-management/vault-custody.contracts.js.map +1 -1
  128. package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
  129. package/dist/esm/lockfile/build-parallelism.js.map +1 -1
  130. package/dist/esm/lockfile/canonical-json.d.ts +1 -1
  131. package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
  132. package/dist/esm/lockfile/canonical-json.js +1 -1
  133. package/dist/esm/lockfile/canonical-json.js.map +1 -1
  134. package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
  135. package/dist/esm/lockfile/file-lock-hold.js +2 -1
  136. package/dist/esm/lockfile/file-lock-hold.js.map +1 -1
  137. package/dist/esm/lockfile/lockfile-io.d.ts +6 -8
  138. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  139. package/dist/esm/lockfile/lockfile-io.js +6 -8
  140. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  141. package/dist/esm/lockfile/materialize-infra-section.d.ts +5 -6
  142. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  143. package/dist/esm/lockfile/materialize-infra-section.js +4 -5
  144. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  145. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +1 -247
  146. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  147. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +1 -1
  148. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  149. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts +146 -0
  150. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts.map +1 -0
  151. package/dist/esm/pnpm-settings/application-pnpm-settings.js +573 -0
  152. package/dist/esm/pnpm-settings/application-pnpm-settings.js.map +1 -0
  153. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
  154. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +15 -3
  155. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
  156. package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -1
  157. package/dist/esm/project-config/application-served-public-documents.loader.js +16 -8
  158. package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -1
  159. package/dist/esm/project-config/backend-compliance-section.reader.d.ts +35 -0
  160. package/dist/esm/project-config/backend-compliance-section.reader.d.ts.map +1 -0
  161. package/dist/esm/project-config/backend-compliance-section.reader.js +123 -0
  162. package/dist/esm/project-config/backend-compliance-section.reader.js.map +1 -0
  163. package/dist/esm/project-config/backend-compliance-section.worker.d.ts +20 -0
  164. package/dist/esm/project-config/backend-compliance-section.worker.d.ts.map +1 -0
  165. package/dist/esm/project-config/backend-compliance-section.worker.js +78 -0
  166. package/dist/esm/project-config/backend-compliance-section.worker.js.map +1 -0
  167. package/dist/esm/project-config/config-module-resolution.d.ts +32 -0
  168. package/dist/esm/project-config/config-module-resolution.d.ts.map +1 -0
  169. package/dist/esm/project-config/config-module-resolution.js +33 -0
  170. package/dist/esm/project-config/config-module-resolution.js.map +1 -0
  171. package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
  172. package/dist/esm/project-config/define-framework-config.js.map +1 -1
  173. package/dist/esm/project-config/define-infra-env-config.d.ts +109 -55
  174. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  175. package/dist/esm/project-config/define-infra-env-config.js +108 -70
  176. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  177. package/dist/esm/project-config/define-minion-config.d.ts +26 -36
  178. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  179. package/dist/esm/project-config/define-minion-config.js +64 -25
  180. package/dist/esm/project-config/define-minion-config.js.map +1 -1
  181. package/dist/esm/project-config/define-saas-config.d.ts +41 -437
  182. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  183. package/dist/esm/project-config/define-saas-config.js +102 -94
  184. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  185. package/dist/esm/project-config/define-worker-config.d.ts +10 -20
  186. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  187. package/dist/esm/project-config/define-worker-config.js +10 -12
  188. package/dist/esm/project-config/define-worker-config.js.map +1 -1
  189. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
  190. package/dist/esm/project-config/hosted-infra-env-config.js +1 -1
  191. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
  192. package/dist/esm/project-config/index.d.ts +2 -0
  193. package/dist/esm/project-config/index.d.ts.map +1 -1
  194. package/dist/esm/project-config/index.js +2 -0
  195. package/dist/esm/project-config/index.js.map +1 -1
  196. package/dist/esm/project-config/loader-instances-zod.d.ts +19 -0
  197. package/dist/esm/project-config/loader-instances-zod.d.ts.map +1 -0
  198. package/dist/esm/project-config/loader-instances-zod.js +40 -0
  199. package/dist/esm/project-config/loader-instances-zod.js.map +1 -0
  200. package/dist/esm/project-config/loader.d.ts +131 -14
  201. package/dist/esm/project-config/loader.d.ts.map +1 -1
  202. package/dist/esm/project-config/loader.js +226 -12
  203. package/dist/esm/project-config/loader.js.map +1 -1
  204. package/dist/esm/project-config/minion-liveness.contracts.d.ts +131 -0
  205. package/dist/esm/project-config/minion-liveness.contracts.d.ts.map +1 -0
  206. package/dist/esm/project-config/minion-liveness.contracts.js +167 -0
  207. package/dist/esm/project-config/minion-liveness.contracts.js.map +1 -0
  208. package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
  209. package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -1
  210. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
  211. package/dist/esm/project-config/npm-version-range.js.map +1 -1
  212. package/dist/esm/project-config/owning-package-tsconfig.d.ts +7 -7
  213. package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -1
  214. package/dist/esm/project-config/owning-package-tsconfig.js +7 -7
  215. package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -1
  216. package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
  217. package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
  218. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  219. package/dist/esm/project-config/provider-companion-discovery.js +3 -1
  220. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  221. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +71 -46
  222. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  223. package/dist/esm/project-config/provider-runtime-artifacts.js +150 -4
  224. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  225. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +0 -2
  226. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  227. package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -1
  228. package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
  229. package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
  230. package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
  231. package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
  232. package/dist/esm/project-config/shared/auth.schemas.d.ts +0 -17
  233. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  234. package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
  235. package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -1
  236. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
  237. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +9 -10
  238. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  239. package/dist/esm/project-config/shared/backing-services.schemas.js +13 -15
  240. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  241. package/dist/esm/project-config/shared/cdn.schemas.d.ts +0 -51
  242. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  243. package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
  244. package/dist/esm/project-config/shared/csp-defaults.d.ts +34 -6
  245. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  246. package/dist/esm/project-config/shared/csp-defaults.js +52 -8
  247. package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
  248. package/dist/esm/project-config/shared/csp-emit.d.ts +60 -13
  249. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  250. package/dist/esm/project-config/shared/csp-emit.js +77 -24
  251. package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
  252. package/dist/esm/project-config/shared/csp.schemas.d.ts +72 -84
  253. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  254. package/dist/esm/project-config/shared/csp.schemas.js +40 -12
  255. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  256. package/dist/esm/project-config/shared/data-services.schemas.d.ts +0 -8
  257. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  258. package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
  259. package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
  260. package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
  261. package/dist/esm/project-config/shared/environment.schemas.d.ts +95 -8
  262. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  263. package/dist/esm/project-config/shared/environment.schemas.js +122 -10
  264. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  265. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +10 -4
  266. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  267. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  268. package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
  269. package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
  270. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +1 -1
  271. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  272. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +1 -1
  273. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  274. package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
  275. package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
  276. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
  277. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
  278. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +20 -0
  279. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  280. package/dist/esm/project-config/shared/minion-resource-access.validation.js +21 -2
  281. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  282. package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
  283. package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
  284. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +62 -36
  285. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -1
  286. package/dist/esm/project-config/shared/platform-key-management.schemas.js +105 -3
  287. package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -1
  288. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  289. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  290. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +2 -2
  291. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
  292. package/dist/esm/project-config/shared/platform-storage.schemas.js +16 -2
  293. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
  294. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +21 -23
  295. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  296. package/dist/esm/project-config/shared/service-definitions.schemas.js +4 -5
  297. package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
  298. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +0 -18
  299. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
  300. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
  301. package/dist/esm/project-config/static-asset-import-noop.d.ts +20 -3
  302. package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
  303. package/dist/esm/project-config/static-asset-import-noop.js +36 -20
  304. package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
  305. package/dist/esm/registry/artifact-domain.schemas.d.ts +0 -5
  306. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  307. package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
  308. package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
  309. package/dist/esm/registry/digest.schemas.js.map +1 -1
  310. package/dist/esm/registry/index.d.ts +2 -3
  311. package/dist/esm/registry/index.d.ts.map +1 -1
  312. package/dist/esm/registry/index.js +2 -3
  313. package/dist/esm/registry/index.js.map +1 -1
  314. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
  315. package/dist/esm/registry/local-checkout-source.js.map +1 -1
  316. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +1 -98
  317. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  318. package/dist/esm/registry/lockfile-modules-section.schemas.js +1 -2
  319. package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
  320. package/dist/esm/registry/module-artifact.schemas.d.ts +17 -17
  321. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  322. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  323. package/dist/esm/registry/module-manifest.schemas.d.ts +151 -219
  324. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  325. package/dist/esm/registry/module-manifest.schemas.js +145 -13
  326. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  327. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
  328. package/dist/esm/registry/module-search.schemas.js.map +1 -1
  329. package/dist/esm/registry/registry-config.schemas.d.ts +0 -18
  330. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  331. package/dist/esm/registry/registry-config.schemas.js.map +1 -1
  332. package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
  333. package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
  334. package/dist/esm/registry/registry-errors.d.ts +81 -3
  335. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  336. package/dist/esm/registry/registry-errors.js +185 -4
  337. package/dist/esm/registry/registry-errors.js.map +1 -1
  338. package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -1
  339. package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
  340. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  341. package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
  342. package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -1
  343. package/dist/esm/registry/registry-url-resolution.js.map +1 -1
  344. package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
  345. package/dist/esm/release/framework-release.constants.js.map +1 -1
  346. package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
  347. package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
  348. package/dist/esm/schemas/framework-secrets.schemas.d.ts +0 -7
  349. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  350. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  351. package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
  352. package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
  353. package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
  354. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +1 -1
  355. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
  356. package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
  357. package/dist/esm/schemas/platform-config.schemas.d.ts +2 -2
  358. package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
  359. package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
  360. package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
  361. package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
  362. package/dist/esm/workspace-scope/index.d.ts.map +1 -1
  363. package/dist/esm/workspace-scope/index.js.map +1 -1
  364. package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
  365. package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
  366. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  367. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  368. package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
  369. package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
  370. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
  371. package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
  372. package/dist/tsconfig.build.tsbuildinfo +1 -1
  373. package/package.json +12 -12
  374. package/dist/esm/_unimplemented/index.d.ts +0 -3
  375. package/dist/esm/_unimplemented/index.d.ts.map +0 -1
  376. package/dist/esm/_unimplemented/index.js +0 -3
  377. package/dist/esm/_unimplemented/index.js.map +0 -1
  378. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +0 -137
  379. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +0 -1
  380. package/dist/esm/_unimplemented/unimplemented-field-warning.js +0 -153
  381. package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +0 -1
  382. package/dist/esm/project-config/shared/cdn.example.d.ts +0 -14
  383. package/dist/esm/project-config/shared/cdn.example.d.ts.map +0 -1
  384. package/dist/esm/project-config/shared/cdn.example.js +0 -38
  385. package/dist/esm/project-config/shared/cdn.example.js.map +0 -1
  386. package/dist/esm/project-config/shared/schema-version.schemas.d.ts +0 -15
  387. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +0 -1
  388. package/dist/esm/project-config/shared/schema-version.schemas.js +0 -40
  389. package/dist/esm/project-config/shared/schema-version.schemas.js.map +0 -1
@@ -147,11 +147,8 @@ export declare const BlueprintParameterSchema: z.ZodObject<{
147
147
  description: z.ZodString;
148
148
  kind: z.ZodEnum<typeof BlueprintParameterKind>;
149
149
  required: z.ZodBoolean;
150
- /** Serialized default, parsed per `kind`. Only on an optional parameter. */
151
150
  default: z.ZodOptional<z.ZodString>;
152
- /** RegExp source a STRING value must fully match. */
153
151
  pattern: z.ZodOptional<z.ZodString>;
154
- /** ENUM only: the allowed values. */
155
152
  members: z.ZodOptional<z.ZodArray<z.ZodString>>;
156
153
  }, z.core.$strict>;
157
154
  export type BlueprintParameter = z.infer<typeof BlueprintParameterSchema>;
@@ -169,11 +166,8 @@ export declare const BlueprintDefinitionParameterSchema: z.ZodObject<{
169
166
  description: z.ZodString;
170
167
  kind: z.ZodEnum<typeof BlueprintParameterKind>;
171
168
  required: z.ZodBoolean;
172
- /** Serialized default, parsed per `kind`. Only on an optional parameter. */
173
169
  default: z.ZodOptional<z.ZodString>;
174
- /** RegExp source a STRING value must fully match. */
175
170
  pattern: z.ZodOptional<z.ZodString>;
176
- /** ENUM only: the allowed values. */
177
171
  members: z.ZodOptional<z.ZodArray<z.ZodString>>;
178
172
  }, z.core.$strict>;
179
173
  export type BlueprintDefinitionParameter = z.infer<typeof BlueprintDefinitionParameterSchema>;
@@ -181,9 +175,7 @@ export type BlueprintDefinitionParameter = z.infer<typeof BlueprintDefinitionPar
181
175
  /** A lower blueprint this one is layered on, with the values it binds for that layer's parameters. */
182
176
  export declare const BlueprintLayerReferenceSchema: z.ZodObject<{
183
177
  id: z.ZodString;
184
- /** npm-style semver range the lower layer's version must satisfy. */
185
178
  range: z.ZodString;
186
- /** Values this layer binds for the lower layer's parameters; the operator is not asked for them. */
187
179
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
188
180
  }, z.core.$strict>;
189
181
  export type BlueprintLayerReference = z.infer<typeof BlueprintLayerReferenceSchema>;
@@ -233,28 +225,18 @@ export declare function describeBlueprintDeclarationTarget(target: {
233
225
  }): string;
234
226
  /** What a definition selects in a declaration file. */
235
227
  export declare const BlueprintDefinitionDeclarationSelectionSchema: z.ZodObject<{
236
- /**
237
- * The value as a template over the parameters, when the value depends on one. Rendered with each parameter's
238
- * `appValue`, it must equal the defining application's value text exactly, or the pack refuses.
239
- */
240
228
  valueTemplate: z.ZodOptional<z.ZodString>;
241
229
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
242
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
243
230
  declaration: z.ZodOptional<z.ZodString>;
244
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
245
231
  path: z.ZodArray<z.ZodString>;
246
232
  }, z.core.$strict>;
247
233
  export type BlueprintDefinitionDeclarationSelection = z.infer<typeof BlueprintDefinitionDeclarationSelectionSchema>;
248
234
  /** One declaration a blueprint sets: the value at the target, creating the final property when absent. */
249
235
  export declare const BlueprintDeclarationOperationSchema: z.ZodObject<{
250
- /** The value's expression text, verbatim; may read `{{parameter}}`. */
251
236
  valueText: z.ZodString;
252
- /** Import statements the value needs that the base file does not have (`import { X } from 'pkg';`). */
253
237
  imports: z.ZodDefault<z.ZodArray<z.ZodString>>;
254
238
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
255
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
256
239
  declaration: z.ZodOptional<z.ZodString>;
257
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
258
240
  path: z.ZodArray<z.ZodString>;
259
241
  }, z.core.$strict>;
260
242
  export type BlueprintDeclarationOperation = z.infer<typeof BlueprintDeclarationOperationSchema>;
@@ -304,16 +286,13 @@ export declare enum BlueprintSlotFile {
304
286
  export declare const BlueprintSlotContributionSchema: z.ZodObject<{
305
287
  file: z.ZodEnum<typeof BlueprintSlotFile>;
306
288
  slot: z.ZodString;
307
- /** The text this layer adds inside the slot, without its markers; may read `{{parameter}}`. */
308
289
  body: z.ZodString;
309
290
  }, z.core.$strict>;
310
291
  export type BlueprintSlotContribution = z.infer<typeof BlueprintSlotContributionSchema>;
311
292
  /** A declaration target with no value: what `overrides.declarations` names. */
312
293
  export declare const BlueprintDeclarationTargetSchema: z.ZodObject<{
313
294
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
314
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
315
295
  declaration: z.ZodOptional<z.ZodString>;
316
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
317
296
  path: z.ZodArray<z.ZodString>;
318
297
  }, z.core.$strict>;
319
298
  export type BlueprintDeclarationTarget = z.infer<typeof BlueprintDeclarationTargetSchema>;
@@ -358,16 +337,11 @@ export declare const BlueprintModuleReferenceSchema: z.ZodObject<{
358
337
  export type BlueprintModuleReference = z.infer<typeof BlueprintModuleReferenceSchema>;
359
338
  /** What an upper layer deliberately replaces from a lower one. Never anything of the base (D3). */
360
339
  export declare const BlueprintOverridesSchema: z.ZodObject<{
361
- /** App-relative files a lower layer wrote that this layer writes again. */
362
340
  files: z.ZodDefault<z.ZodArray<z.ZodString>>;
363
- /** Init flags a lower layer locked that this layer sets differently. */
364
341
  init: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof InitFlag>>>;
365
- /** Declarations a lower layer set that this layer sets again. */
366
342
  declarations: z.ZodDefault<z.ZodArray<z.ZodObject<{
367
343
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
368
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
369
344
  declaration: z.ZodOptional<z.ZodString>;
370
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
371
345
  path: z.ZodArray<z.ZodString>;
372
346
  }, z.core.$strict>>>;
373
347
  }, z.core.$strict>;
@@ -389,12 +363,9 @@ export declare const BlueprintDefinitionSchema: z.ZodObject<{
389
363
  description: z.ZodString;
390
364
  extends: z.ZodDefault<z.ZodArray<z.ZodObject<{
391
365
  id: z.ZodString;
392
- /** npm-style semver range the lower layer's version must satisfy. */
393
366
  range: z.ZodString;
394
- /** Values this layer binds for the lower layer's parameters; the operator is not asked for them. */
395
367
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
396
368
  }, z.core.$strict>>>;
397
- /** Per application-shape init flag: lock or default it to the defining application's value. */
398
369
  init: z.ZodDefault<z.ZodArray<z.ZodObject<{
399
370
  flag: z.ZodEnum<typeof InitFlag>;
400
371
  mode: z.ZodEnum<typeof BlueprintInitConstraintMode>;
@@ -405,67 +376,36 @@ export declare const BlueprintDefinitionSchema: z.ZodObject<{
405
376
  description: z.ZodString;
406
377
  kind: z.ZodEnum<typeof BlueprintParameterKind>;
407
378
  required: z.ZodBoolean;
408
- /** Serialized default, parsed per `kind`. Only on an optional parameter. */
409
379
  default: z.ZodOptional<z.ZodString>;
410
- /** RegExp source a STRING value must fully match. */
411
380
  pattern: z.ZodOptional<z.ZodString>;
412
- /** ENUM only: the allowed values. */
413
381
  members: z.ZodOptional<z.ZodArray<z.ZodString>>;
414
382
  }, z.core.$strict>>>;
415
383
  include: z.ZodObject<{
416
- /** App-relative globs of NEW files (specifications, assets, documentation, …). */
417
384
  files: z.ZodDefault<z.ZodArray<z.ZodString>>;
418
- /** Domain module directories (`shared-lib/src/modules/<dir>` and its sibling layers). */
419
385
  modules: z.ZodDefault<z.ZodArray<z.ZodString>>;
420
- /** Minion package directories (`minions/<dir>`). */
421
386
  minions: z.ZodDefault<z.ZodArray<z.ZodString>>;
422
- /** Worker package directories (`workers/<dir>`). */
423
387
  workers: z.ZodDefault<z.ZodArray<z.ZodString>>;
424
- /**
425
- * Modules this application installed from the module registry, by module id (`acme/billing`,
426
- * `providers/asana`): carried as references and installed by `wildo init`, never copied (#2879).
427
- */
428
388
  registryModules: z.ZodDefault<z.ZodArray<z.ZodString>>;
429
389
  declarations: z.ZodDefault<z.ZodArray<z.ZodObject<{
430
- /**
431
- * The value as a template over the parameters, when the value depends on one. Rendered with each parameter's
432
- * `appValue`, it must equal the defining application's value text exactly, or the pack refuses.
433
- */
434
390
  valueTemplate: z.ZodOptional<z.ZodString>;
435
391
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
436
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
437
392
  declaration: z.ZodOptional<z.ZodString>;
438
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
439
393
  path: z.ZodArray<z.ZodString>;
440
394
  }, z.core.$strict>>>;
441
- /** Barrels whose `export` lines (beyond the base's and the modules' own) the blueprint carries. */
442
395
  barrelExports: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof BlueprintBarrelFile>>>;
443
- /** Runtime dependencies, by package name, carried with the specifier each workspace manifest declares. */
444
396
  dependencies: z.ZodDefault<z.ZodArray<z.ZodString>>;
445
- /** Anchor slots whose content the blueprint carries. */
446
397
  slots: z.ZodDefault<z.ZodArray<z.ZodObject<{
447
398
  file: z.ZodEnum<typeof BlueprintSlotFile>;
448
399
  slot: z.ZodString;
449
400
  }, z.core.$strict>>>;
450
- /**
451
- * Carry the defining application's APPLICATION LINE (#2863): `wildo blueprint pack` reads it from the defining
452
- * application's dossier (its answer to the line question) and refuses when none is declared; `wildo init` answers
453
- * that question for the new application, so it is not asked again. Selected, never written: the value is the
454
- * defining application's, like every other value a blueprint carries.
455
- */
456
401
  line: z.ZodDefault<z.ZodBoolean>;
457
402
  }, z.core.$strict>;
458
403
  overrides: z.ZodDefault<z.ZodObject<{
459
- /** App-relative files a lower layer wrote that this layer writes again. */
460
404
  files: z.ZodDefault<z.ZodArray<z.ZodString>>;
461
- /** Init flags a lower layer locked that this layer sets differently. */
462
405
  init: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof InitFlag>>>;
463
- /** Declarations a lower layer set that this layer sets again. */
464
406
  declarations: z.ZodDefault<z.ZodArray<z.ZodObject<{
465
407
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
466
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
467
408
  declaration: z.ZodOptional<z.ZodString>;
468
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
469
409
  path: z.ZodArray<z.ZodString>;
470
410
  }, z.core.$strict>>>;
471
411
  }, z.core.$strict>>;
@@ -528,21 +468,14 @@ export declare const BlueprintManifestSchema: z.ZodObject<{
528
468
  id: z.ZodString;
529
469
  version: z.ZodString;
530
470
  description: z.ZodString;
531
- /** The framework version the defining application ran when it was packed. */
532
471
  frameworkVersion: z.ZodString;
533
- /**
534
- * The DEFINING application's identity. Text files carrying these values have them replaced by the new
535
- * application's own on apply — a module that imports `@<slug>/shared-lib` imports the new application's.
536
- */
537
472
  identity: z.ZodObject<{
538
473
  slug: z.ZodString;
539
474
  displayName: z.ZodString;
540
475
  }, z.core.$strict>;
541
476
  extends: z.ZodDefault<z.ZodArray<z.ZodObject<{
542
477
  id: z.ZodString;
543
- /** npm-style semver range the lower layer's version must satisfy. */
544
478
  range: z.ZodString;
545
- /** Values this layer binds for the lower layer's parameters; the operator is not asked for them. */
546
479
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
547
480
  }, z.core.$strict>>>;
548
481
  init: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -555,11 +488,8 @@ export declare const BlueprintManifestSchema: z.ZodObject<{
555
488
  description: z.ZodString;
556
489
  kind: z.ZodEnum<typeof BlueprintParameterKind>;
557
490
  required: z.ZodBoolean;
558
- /** Serialized default, parsed per `kind`. Only on an optional parameter. */
559
491
  default: z.ZodOptional<z.ZodString>;
560
- /** RegExp source a STRING value must fully match. */
561
492
  pattern: z.ZodOptional<z.ZodString>;
562
- /** ENUM only: the allowed values. */
563
493
  members: z.ZodOptional<z.ZodArray<z.ZodString>>;
564
494
  }, z.core.$strict>>>;
565
495
  modules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -596,29 +526,17 @@ export declare const BlueprintManifestSchema: z.ZodObject<{
596
526
  }, z.core.$strict>>;
597
527
  }, z.core.$strict>;
598
528
  }, z.core.$strict>>>;
599
- /** Registry modules installed by `wildo init` before this layer's own content, in order (#2879). */
600
529
  moduleReferences: z.ZodDefault<z.ZodArray<z.ZodObject<{
601
530
  domain: z.ZodString;
602
531
  moduleId: z.ZodString;
603
532
  range: z.ZodString;
604
533
  }, z.core.$strict>>>;
605
- /**
606
- * The application line this blueprint makes (#2863): `wildo init` records it as the new application's answer to
607
- * the line question. A value of `ApplicationLine` from `@wildo-ai/saas-specifications/application-creation`, which
608
- * this contracts package cannot import (it does not depend on saas-specifications, and must not: that package sits
609
- * above it). It is a string here and checked against that vocabulary by the CLI, which depends on both, when it
610
- * packs a blueprint and when it reads one. A stack of layers names at most one line.
611
- */
612
534
  line: z.ZodOptional<z.ZodString>;
613
535
  declarationOperations: z.ZodDefault<z.ZodArray<z.ZodObject<{
614
- /** The value's expression text, verbatim; may read `{{parameter}}`. */
615
536
  valueText: z.ZodString;
616
- /** Import statements the value needs that the base file does not have (`import { X } from 'pkg';`). */
617
537
  imports: z.ZodDefault<z.ZodArray<z.ZodString>>;
618
538
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
619
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
620
539
  declaration: z.ZodOptional<z.ZodString>;
621
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
622
540
  path: z.ZodArray<z.ZodString>;
623
541
  }, z.core.$strict>>>;
624
542
  barrelExports: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -633,20 +551,14 @@ export declare const BlueprintManifestSchema: z.ZodObject<{
633
551
  slotContributions: z.ZodDefault<z.ZodArray<z.ZodObject<{
634
552
  file: z.ZodEnum<typeof BlueprintSlotFile>;
635
553
  slot: z.ZodString;
636
- /** The text this layer adds inside the slot, without its markers; may read `{{parameter}}`. */
637
554
  body: z.ZodString;
638
555
  }, z.core.$strict>>>;
639
556
  overrides: z.ZodDefault<z.ZodObject<{
640
- /** App-relative files a lower layer wrote that this layer writes again. */
641
557
  files: z.ZodDefault<z.ZodArray<z.ZodString>>;
642
- /** Init flags a lower layer locked that this layer sets differently. */
643
558
  init: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof InitFlag>>>;
644
- /** Declarations a lower layer set that this layer sets again. */
645
559
  declarations: z.ZodDefault<z.ZodArray<z.ZodObject<{
646
560
  file: z.ZodEnum<typeof BlueprintDeclarationFile>;
647
- /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */
648
561
  declaration: z.ZodOptional<z.ZodString>;
649
- /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */
650
562
  path: z.ZodArray<z.ZodString>;
651
563
  }, z.core.$strict>>>;
652
564
  }, z.core.$strict>>;
@@ -677,7 +589,6 @@ export declare const SCAFFOLD_LOCK_SECTION_KEY = "scaffold";
677
589
  * git already holds what each layer wrote — one commit per layer.
678
590
  */
679
591
  export declare const ScaffoldLockSectionSchema: z.ZodObject<{
680
- /** Only APPLICATION_SHAPE flags: a machine or identity value is not how the application was shaped. */
681
592
  applicationShape: z.ZodDefault<z.ZodRecord<z.ZodEnum<typeof InitFlag> & z.core.$partial, z.ZodString>>;
682
593
  blueprints: z.ZodDefault<z.ZodArray<z.ZodObject<{
683
594
  id: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"blueprint.schemas.d.ts","sourceRoot":"","sources":["../../../../src/blueprint/blueprint.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAOL,0BAA0B,EAE3B,MAAM,qCAAqC,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,6GAA6G;AAG7G;;;;GAIG;AACH,oBAAY,QAAQ;IAClB,iEAAiE;IACjE,IAAI,SAAS;IACb,+EAA+E;IAC/E,OAAO,YAAY;IACnB,2GAA2G;IAC3G,QAAQ,aAAa;IACrB,2DAA2D;IAC3D,KAAK,UAAU;IACf,yCAAyC;IACzC,WAAW,gBAAgB;IAC3B,gEAAgE;IAChE,SAAS,cAAc;IACvB,gDAAgD;IAChD,WAAW,gBAAgB;IAC3B,qDAAqD;IACrD,gBAAgB,qBAAqB;IACrC,oDAAoD;IACpD,eAAe,oBAAoB;IACnC,2DAA2D;IAC3D,cAAc,mBAAmB;IACjC,kDAAkD;IAClD,YAAY,iBAAiB;IAC7B,6DAA6D;IAC7D,YAAY,iBAAiB;IAC7B,8DAA8D;IAC9D,cAAc,mBAAmB;IACjC,uDAAuD;IACvD,qBAAqB,0BAA0B;IAC/C,wEAAwE;IACxE,SAAS,cAAc;IACvB,iDAAiD;IACjD,eAAe,oBAAoB;IACnC,0FAA0F;IAC1F,k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EAAE,EAAE;QAChH,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAe,EAAE,CAAC;YACpD,IAAI,iBAAiB,CAAC,IAAI,CAAC,KAAK,aAAa,CAAC,iBAAiB,EAAE,CAAC;gBAChE,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,IAAI,wCAAwC,EAAE,CAAC,CAAC;YACjH,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IACF,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC;QACjC,EAAE,EAAE,cAAc;QAClB,OAAO,EAAE,iBAAiB;QAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;KAC7F,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAChB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { DatabaseEngine } from '../project-config/shared/environment.schemas';\nimport {\n isModuleArtifactPathAllowed,\n ModuleIdSchema,\n RegistryDomainSlugSchema,\n ModuleManifestBoundariesSchema,\n ModuleManifestRegistrationSchema,\n MODULE_REGISTRATION_MODULE_ID_PATTERN,\n ModuleRegistrationScenario,\n SemverExactSchema,\n} from '../registry/module-manifest.schemas';\n\n/**\n * Application BLUEPRINTS (epic #2856) — the contracts.\n *\n * A blueprint is a LAYER UPON the base `wildo init` skeleton, never a replacement of it (decision D3): it may\n * pre-configure the application-shape init flags, add new files, bring modules (their files plus the registration\n * that makes the application know them), set the values of named declarations in base files, append barrel exports,\n * add runtime dependencies, and contribute text inside anchor slots. It never overwrites a\n * file of the base or of a lower layer, unless an upper layer names that file in `overrides`.\n *\n * Two halves, deliberately separate:\n *\n * - the **definition** ({@link BlueprintDefinitionSchema}) lives ONLY in the application that defines the blueprint,\n * at `blueprints/<name>/blueprint.definition.ts`. It SELECTS what belongs to the blueprint and declares its\n * parameters. It never carries a value the application already holds: the exporter reads every byte and every\n * config value from the application, and proves the export reproduces it (`wildo blueprint pack`);\n * - the **manifest** ({@link BlueprintManifestSchema}) is what an export writes beside the artifact's `files/` tree,\n * and what `wildo init --blueprint` reads. It is a compiled output, never authored.\n *\n * The split is the `playbook.definition.ts` → `playbook.json` split, for the same reason: the authored form is\n * TypeScript a person can comment, the compiled form is JSON a machine validates.\n */\n\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n// ── Init flags ────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Every flag `wildo init` accepts, as a closed vocabulary so each one is CLASSIFIED once\n * ({@link INIT_FLAG_CLASSES}). A flag added to the command tomorrow must be added here and given a class, or the\n * pinning test fails: a blueprint can then never start setting it by accident.\n */\nexport enum InitFlag {\n /** The application's name; the directory names it by default. */\n NAME = 'name',\n /** The local infrastructure runtime (Docker Compose or a local Kubernetes). */\n RUNTIME = 'runtime',\n /** The application's own database engine. Decides what the scaffold AUTHORS (`isPostgreSql` templates). */\n DATABASE = 'database',\n /** Verify the developer's tools instead of scaffolding. */\n CHECK = 'check',\n /** Write only `wildo.saas.config.ts`. */\n CONFIG_ONLY = 'config-only',\n /** The base of the application's port block on this machine. */\n PORT_BASE = 'port-base',\n /** The local platform administrator's email. */\n ADMIN_EMAIL = 'admin-email',\n /** The local platform administrator's first name. */\n ADMIN_FIRST_NAME = 'admin-first-name',\n /** The local platform administrator's last name. */\n ADMIN_LAST_NAME = 'admin-last-name',\n /** The local platform administrator's initial password. */\n ADMIN_PASSWORD = 'admin-password',\n /** Skip `pnpm install` and the initial builds. */\n SKIP_INSTALL = 'skip-install',\n /** Where this environment's secrets live on this machine. */\n SECRETS_PATH = 'secrets-path',\n /** How to treat the machine's shared platform credentials. */\n LOCAL_DEFAULTS = 'local-defaults',\n /** Whether to seed the machine's provider API keys. */\n PROVIDER_KEY_DEFAULTS = 'provider-key-defaults',\n /** The blueprint layers to apply on the base, in order (epic #2856). */\n BLUEPRINT = 'blueprint',\n /** A blueprint parameter value, `name=value`. */\n BLUEPRINT_PARAM = 'blueprint-param',\n /** The registry a `--blueprint <domain>/<scope>/<name>@<range>` entry is fetched from. */\n BLUEPRINT_REGISTRY = 'blueprint-registry',\n /**\n * The application line, when no blueprint is given (#1605): shorthand for `--blueprint wildo/<line>`, or `later`.\n * A command mode, not application shape: a blueprint carries its line through `include.line`, never by setting a flag.\n */\n LINE = 'line',\n}\n\n/**\n * What kind of decision an init flag carries — and therefore whether a blueprint may make it.\n */\nexport enum InitFlagClass {\n /**\n * A decision about what the APPLICATION is, the same on every machine. The only class a blueprint may lock or\n * default: a corporate blueprint that targets PostgreSQL states it once, for every application made from it.\n */\n APPLICATION_SHAPE = 'application-shape',\n /**\n * A decision about THIS MACHINE — ports, local runtime, where secrets live, whether to install now. A blueprint\n * never touches one: it is applied on machines it has never seen.\n */\n MACHINE = 'machine',\n /**\n * WHO the application or its local administrator is. Never a blueprint's: an application made from a blueprint is\n * a new application with its own name and its own operator.\n */\n IDENTITY = 'identity',\n /** How the command runs (check only, config only, which blueprints). Not a property of the application at all. */\n COMMAND_MODE = 'command-mode',\n}\n\n/** The class of every init flag. Total over {@link InitFlag} by its type. */\nexport const INIT_FLAG_CLASSES: Readonly<Record<InitFlag, InitFlagClass>> = {\n [InitFlag.NAME]: InitFlagClass.IDENTITY,\n [InitFlag.RUNTIME]: InitFlagClass.MACHINE,\n [InitFlag.DATABASE]: InitFlagClass.APPLICATION_SHAPE,\n [InitFlag.CHECK]: InitFlagClass.COMMAND_MODE,\n [InitFlag.CONFIG_ONLY]: InitFlagClass.COMMAND_MODE,\n [InitFlag.PORT_BASE]: InitFlagClass.MACHINE,\n [InitFlag.ADMIN_EMAIL]: InitFlagClass.IDENTITY,\n [InitFlag.ADMIN_FIRST_NAME]: InitFlagClass.IDENTITY,\n [InitFlag.ADMIN_LAST_NAME]: InitFlagClass.IDENTITY,\n [InitFlag.ADMIN_PASSWORD]: InitFlagClass.IDENTITY,\n [InitFlag.SKIP_INSTALL]: InitFlagClass.MACHINE,\n [InitFlag.SECRETS_PATH]: InitFlagClass.MACHINE,\n [InitFlag.LOCAL_DEFAULTS]: InitFlagClass.MACHINE,\n [InitFlag.PROVIDER_KEY_DEFAULTS]: InitFlagClass.MACHINE,\n [InitFlag.BLUEPRINT]: InitFlagClass.COMMAND_MODE,\n [InitFlag.BLUEPRINT_PARAM]: InitFlagClass.COMMAND_MODE,\n [InitFlag.BLUEPRINT_REGISTRY]: InitFlagClass.COMMAND_MODE,\n [InitFlag.LINE]: InitFlagClass.COMMAND_MODE,\n};\n\n/** The values an APPLICATION_SHAPE flag accepts. Total over the shape flags, checked by the pinning test. */\nexport const APPLICATION_SHAPE_INIT_FLAG_VALUES: Readonly<Partial<Record<InitFlag, readonly string[]>>> = {\n [InitFlag.DATABASE]: Object.values(DatabaseEngine),\n};\n\n/** Whether a blueprint may lock or default `flag`. */\nexport function isBlueprintSettableInitFlag(flag: InitFlag): boolean {\n return INIT_FLAG_CLASSES[flag] === InitFlagClass.APPLICATION_SHAPE;\n}\n\n/** How a blueprint pre-configures an application-shape init flag. */\nexport enum BlueprintInitConstraintMode {\n /** The flag takes this value; `wildo init` refuses a flag that contradicts it. */\n LOCK = 'lock',\n /** The flag takes this value unless the operator passes the flag. */\n DEFAULT = 'default',\n}\n/** @wildo_source:part:end blueprint.definition-contract */\n\nconst BlueprintSettableInitFlagSchema = z.enum(InitFlag).refine(isBlueprintSettableInitFlag, {\n error: 'a blueprint may set only an application-shape init flag (today: `database`)',\n});\n\n// ── Parameters ────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Why this is not `CompositionScenarioVariableKind` (#2857 asked not to fork the scenario pieces): a blueprint\n * parameter is chosen by the person creating an application, so it needs a CLOSED choice (`ENUM`, with members the\n * apply refuses outside of), which a scenario variable has no use for; and a scenario variable can be DERIVED from\n * another (#2810), which a blueprint parameter must never be, since its value is the operator's or a lower layer\n * binding's. The three shared members keep the scenario's wire values, so a value moves between the two unchanged.\n * The scenario vocabulary also lives in `application-creation-runtime`, which this contracts package cannot import.\n */\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n/** The value kinds a blueprint parameter may declare. */\nexport enum BlueprintParameterKind {\n STRING = 'string',\n NUMBER = 'number',\n BOOLEAN = 'boolean',\n /** One of `members`: a closed choice (an ERP vendor, a region), named so the choice is explained once. */\n ENUM = 'enum',\n}\n\nexport type BlueprintParameterValue = string | number | boolean;\n\n/** camelCase, so the name reads the same in `{{name}}` templates, `__name__` paths and `--blueprint-param`. */\nconst BLUEPRINT_PARAMETER_NAME_PATTERN = /^[a-z][a-zA-Z0-9]*$/;\n\n/**\n * Parameter names a blueprint cannot declare, because the applier supplies them from the new application's\n * identity. A template reads `{{slug}}` or `{{displayName}}` and gets the application being created.\n */\nexport const BLUEPRINT_IDENTITY_VARIABLES = ['slug', 'displayName'] as const;\n\nconst BlueprintParameterFields = {\n name: z.string().regex(BLUEPRINT_PARAMETER_NAME_PATTERN, 'parameter names are camelCase identifiers').refine(\n (name) => !(BLUEPRINT_IDENTITY_VARIABLES as readonly string[]).includes(name),\n { error: `${BLUEPRINT_IDENTITY_VARIABLES.join(' and ')} are supplied from the new application's identity` },\n ),\n description: z.string().min(1),\n kind: z.enum(BlueprintParameterKind),\n required: z.boolean(),\n /** Serialized default, parsed per `kind`. Only on an optional parameter. */\n default: z.string().optional(),\n /** RegExp source a STRING value must fully match. */\n pattern: z.string().optional(),\n /** ENUM only: the allowed values. */\n members: z.array(z.string().min(1)).min(1).optional(),\n};\n/** @wildo_source:part:end blueprint.definition-contract */\n\n/**\n * Parse one serialized value per the parameter's declaration, or explain why it is not a value of it. Shared by the\n * schema (a declared default) and the applier (a value passed on the command line), so both refuse the same values.\n */\nexport function parseBlueprintParameterValue(\n parameter: { readonly name: string; readonly kind: BlueprintParameterKind; readonly pattern?: string | undefined; readonly members?: readonly string[] | undefined },\n raw: BlueprintParameterValue,\n): { value: BlueprintParameterValue } | { reason: string } {\n switch (parameter.kind) {\n case BlueprintParameterKind.STRING: {\n const value = String(raw);\n if (parameter.pattern !== undefined && !new RegExp(`^(?:${parameter.pattern})$`).test(value)) {\n return { reason: `'${parameter.name}' value '${value}' does not match /${parameter.pattern}/` };\n }\n return { value };\n }\n case BlueprintParameterKind.NUMBER: {\n const value = typeof raw === 'number' ? raw : Number(raw);\n return Number.isNaN(value) || String(raw).trim() === '' ? { reason: `'${parameter.name}' expects a number, got '${String(raw)}'` } : { value };\n }\n case BlueprintParameterKind.BOOLEAN: {\n if (typeof raw === 'boolean') return { value: raw };\n if (raw === 'true' || raw === 'false') return { value: raw === 'true' };\n return { reason: `'${parameter.name}' expects true or false, got '${String(raw)}'` };\n }\n case BlueprintParameterKind.ENUM: {\n const value = String(raw);\n return (parameter.members ?? []).includes(value)\n ? { value }\n : { reason: `'${parameter.name}' must be one of ${(parameter.members ?? []).join(', ')}, got '${value}'` };\n }\n }\n}\n\nfunction refineParameter(\n parameter: { name: string; kind: BlueprintParameterKind; required: boolean; default?: string | undefined; pattern?: string | undefined; members?: string[] | undefined },\n context: z.RefinementCtx,\n): void {\n if (parameter.kind === BlueprintParameterKind.ENUM && parameter.members === undefined) {\n context.addIssue({ code: 'custom', path: ['members'], message: `'${parameter.name}' is an enum, so it declares its members` });\n }\n if (parameter.kind !== BlueprintParameterKind.ENUM && parameter.members !== undefined) {\n context.addIssue({ code: 'custom', path: ['members'], message: `'${parameter.name}' is not an enum, so it declares no members` });\n }\n if (parameter.pattern !== undefined && parameter.kind !== BlueprintParameterKind.STRING) {\n context.addIssue({ code: 'custom', path: ['pattern'], message: `'${parameter.name}' is not a string, so it declares no pattern` });\n }\n if (parameter.required && parameter.default !== undefined) {\n context.addIssue({ code: 'custom', path: ['default'], message: `'${parameter.name}' is required, so a default would never be used` });\n }\n if (parameter.default !== undefined) {\n const parsed = parseBlueprintParameterValue(parameter, parameter.default);\n if ('reason' in parsed) context.addIssue({ code: 'custom', path: ['default'], message: `the default is not a value of it: ${parsed.reason}` });\n }\n}\n\n/** One declared blueprint parameter, as the published manifest carries it. */\nexport const BlueprintParameterSchema = z.strictObject(BlueprintParameterFields).superRefine(refineParameter);\nexport type BlueprintParameter = z.infer<typeof BlueprintParameterSchema>;\n\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n/**\n * One declared parameter, as the DEFINITION carries it: the declaration plus the defining application's own value.\n *\n * `appValue` is the reproduction WITNESS, not a value the blueprint ships: the export renders every template with it\n * and requires the result to equal the defining application's bytes. A wrong `appValue` therefore fails the pack\n * instead of producing a blueprint that silently renders something else. It is never written into the manifest.\n */\nexport const BlueprintDefinitionParameterSchema = z\n .strictObject({ ...BlueprintParameterFields, appValue: z.union([z.string(), z.number(), z.boolean()]) })\n .superRefine((parameter, context) => {\n refineParameter(parameter, context);\n const parsed = parseBlueprintParameterValue(parameter, parameter.appValue);\n if ('reason' in parsed) context.addIssue({ code: 'custom', path: ['appValue'], message: `the application's value is not a value of it: ${parsed.reason}` });\n });\nexport type BlueprintDefinitionParameter = z.infer<typeof BlueprintDefinitionParameterSchema>;\n/** @wildo_source:part:end blueprint.definition-contract */\n\nfunction refineUniqueParameterNames(parameters: ReadonlyArray<{ name: string }>, context: z.RefinementCtx, path: Array<string | number>): void {\n const seen = new Set<string>();\n parameters.forEach((parameter, index) => {\n if (seen.has(parameter.name)) context.addIssue({ code: 'custom', path: [...path, index, 'name'], message: `parameter '${parameter.name}' is declared twice` });\n seen.add(parameter.name);\n });\n}\n\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n// ── Layers and configuration ──────────────────────────────────────────────────────────────────────────\n\n/** A lower blueprint this one is layered on, with the values it binds for that layer's parameters. */\nexport const BlueprintLayerReferenceSchema = z.strictObject({\n id: ModuleIdSchema,\n /** npm-style semver range the lower layer's version must satisfy. */\n range: z.string().min(1),\n /** Values this layer binds for the lower layer's parameters; the operator is not asked for them. */\n parameters: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).optional(),\n});\nexport type BlueprintLayerReference = z.infer<typeof BlueprintLayerReferenceSchema>;\n\n/**\n * The base files whose named DECLARATIONS a blueprint may set — the blueprint customization API (decision D3).\n *\n * A blueprint never replaces a base file; it sets values the base declares. Each member is a file the `wildo init`\n * skeleton authors as a set of named declarations with an application-owned VALUE (an empty registry, a default\n * profile, a theme), so setting one is a replacement at a path the config walker resolves, never a text edit.\n * Measured on Wonder Procurement (#2860): every change it made to a base TypeScript file was the value of one of\n * these declarations. A closed set, because a declaration operation is only safe on a file whose shape the framework\n * owns: adding a member is deciding that the base will keep that declaration stable.\n */\nexport enum BlueprintDeclarationFile {\n /** `wildo.saas.config.ts`: modules, services, capabilities, organization types, providers, systems of record. */\n SAAS_CONFIG = 'wildo.saas.config.ts',\n /** The backend-authored configuration: authentication posture, user types, registration, email. */\n BACKEND_CONFIG = 'backend-api/src/saas-config.backend.ts',\n /** App-wide backend assembly: resource-server instances, organization-unit narrowing, own rows. */\n BACKEND_BOOTSTRAP = 'backend-api/src/bootstrap-config.ts',\n /** The application's own roles (`CUSTOM_ROLES_CONFIGURATION`). */\n ROLES = 'shared-lib/src/engine/roles.ts',\n /** Features, feature profiles and unavailability policy. */\n FEATURES = 'shared-lib/src/engine/features.ts',\n /** Milestone definitions. */\n MILESTONES = 'shared-lib/src/engine/milestones.ts',\n /** The product catalogue. */\n PRODUCT = 'shared-lib/src/engine/product.ts',\n /** The frontend module list, whose ORDER is the sidebar's (`applicationFrontendModules`). */\n FRONTEND_MODULES = 'frontend/src/modules/index.ts',\n /** The design system: theme, colours, surfaces. */\n FRONTEND_DESIGN_SYSTEM = 'frontend/src/config/design-system.config.ts',\n /** Navigation zones and transitions. */\n FRONTEND_NAVIGATION = 'frontend/src/config/navigation.config.ts',\n /** The application shell: menubar, sidebar, command menu. */\n FRONTEND_APP_SHELL = 'frontend/src/config/app-shell.config.ts',\n /** The settings rail. */\n FRONTEND_SETTINGS_HUB = 'frontend/src/config/settings-hub.config.ts',\n /** Application-level views. */\n FRONTEND_GLOBAL_VIEWS = 'frontend/src/config/global-views.config.ts',\n}\n\n/** A config path segment: an identifier, a quoted key's text, or a computed key's expression (`EngineCapability.BILLING`). */\nconst BlueprintDeclarationPathSchema = z.array(z.string().min(1));\n\n/**\n * Where a declaration operation lands: from the file's `export default` along `path`, or from the top-level variable\n * `declaration` along `path` — the whole variable when `path` is empty.\n */\nconst BlueprintDeclarationTargetFields = {\n file: z.enum(BlueprintDeclarationFile),\n /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */\n declaration: z.string().regex(/^[A-Za-z_$][\\w$]*$/, 'a declaration is a top-level variable name').optional(),\n /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */\n path: BlueprintDeclarationPathSchema,\n};\n\nfunction refineDeclarationTarget(target: { declaration?: string | undefined; path: string[] }, context: z.RefinementCtx): void {\n if (target.declaration === undefined && target.path.length === 0) {\n context.addIssue({ code: 'custom', path: ['path'], message: 'a path is required unless a declaration is named (an empty path sets the declaration as a whole)' });\n }\n}\n\n/** The label a declaration target is reported under: `<file> <declaration>.<path>`. */\nexport function describeBlueprintDeclarationTarget(target: { file: string; declaration?: string | undefined; path: readonly string[] }): string {\n return `${target.file} ${[target.declaration ?? 'export default', ...target.path].join('.')}`;\n}\n\n/** What a definition selects in a declaration file. */\nexport const BlueprintDefinitionDeclarationSelectionSchema = z\n .strictObject({\n ...BlueprintDeclarationTargetFields,\n /**\n * The value as a template over the parameters, when the value depends on one. Rendered with each parameter's\n * `appValue`, it must equal the defining application's value text exactly, or the pack refuses.\n */\n valueTemplate: z.string().min(1).optional(),\n })\n .superRefine(refineDeclarationTarget);\nexport type BlueprintDefinitionDeclarationSelection = z.infer<typeof BlueprintDefinitionDeclarationSelectionSchema>;\n\n/** One declaration a blueprint sets: the value at the target, creating the final property when absent. */\nexport const BlueprintDeclarationOperationSchema = z\n .strictObject({\n ...BlueprintDeclarationTargetFields,\n /** The value's expression text, verbatim; may read `{{parameter}}`. */\n valueText: z.string().min(1),\n /** Import statements the value needs that the base file does not have (`import { X } from 'pkg';`). */\n imports: z.array(z.string().min(1)).default([]),\n })\n .superRefine(refineDeclarationTarget);\nexport type BlueprintDeclarationOperation = z.infer<typeof BlueprintDeclarationOperationSchema>;\n\n/**\n * The barrels a blueprint may append `export` lines to — the package entry files every module's `add-module`\n * registration already appends to. A blueprint carrying a new file (`shared-lib/src/system-of-record/…`) that the\n * package must export appends its line here.\n */\nexport enum BlueprintBarrelFile {\n SHARED_LIB = 'shared-lib/src/index.ts',\n SPECIFICATIONS = 'specifications/src/index.ts',\n}\n\n/** One `export … from '…';` line appended to a barrel. */\nexport const BlueprintBarrelExportSchema = z.strictObject({\n file: z.enum(BlueprintBarrelFile),\n line: z.string().regex(/^export\\s.+\\sfrom\\s+['\"][^'\"]+['\"];?$/, 'a barrel line is one `export … from \\'…\\';` statement'),\n});\nexport type BlueprintBarrelExport = z.infer<typeof BlueprintBarrelExportSchema>;\n\n/**\n * The workspace manifests a blueprint may add a runtime dependency to: the packages every `wildo init` base has.\n * A carried minion's or worker's own `package.json` travels with its files instead.\n */\nexport enum BlueprintWorkspaceManifest {\n ROOT = 'package.json',\n SHARED_LIB = 'shared-lib/package.json',\n SPECIFICATIONS = 'specifications/package.json',\n BACKEND_API = 'backend-api/package.json',\n FRONTEND = 'frontend/package.json',\n}\n\n/** One runtime dependency a blueprint adds to a workspace manifest (`dependencies` only). */\nexport const BlueprintDependencySchema = z.strictObject({\n manifest: z.enum(BlueprintWorkspaceManifest),\n name: z.string().min(1),\n specifier: z.string().min(1),\n});\nexport type BlueprintDependency = z.infer<typeof BlueprintDependencySchema>;\n\n/**\n * The base files that declare anchor SLOTS — the free-text extension points (`@wildo_anchor:slot`), for the few\n * files that are not TypeScript declarations. Measured on Wonder Procurement (#2860), the one such need was the\n * application's agent guide. Adding a member is deciding where free text may be extended; keep it small.\n */\nexport enum BlueprintSlotFile {\n /** The application's `CLAUDE.md`, read by every coding-agent session in it. */\n APPLICATION_AGENT_GUIDE = 'CLAUDE.md',\n}\n\n/** One slot a blueprint contributes to, and what it writes there. */\nexport const BlueprintSlotContributionSchema = z.strictObject({\n file: z.enum(BlueprintSlotFile),\n slot: z.string().regex(/^[a-z][a-z0-9.-]*$/, 'a slot id is lowercase, dot- or dash-separated'),\n /** The text this layer adds inside the slot, without its markers; may read `{{parameter}}`. */\n body: z.string(),\n});\nexport type BlueprintSlotContribution = z.infer<typeof BlueprintSlotContributionSchema>;\n\n/** A declaration target with no value: what `overrides.declarations` names. */\nexport const BlueprintDeclarationTargetSchema = z.strictObject(BlueprintDeclarationTargetFields).superRefine(refineDeclarationTarget);\nexport type BlueprintDeclarationTarget = z.infer<typeof BlueprintDeclarationTargetSchema>;\n\n/** Whether two declaration targets address the same value. */\nexport function isSameBlueprintDeclarationTarget(\n a: { file: string; declaration?: string | undefined; path: readonly string[] },\n b: { file: string; declaration?: string | undefined; path: readonly string[] },\n): boolean {\n return describeBlueprintDeclarationTarget(a) === describeBlueprintDeclarationTarget(b);\n}\n\n/**\n * Whether two declaration targets address overlapping values: the same file and start, and one path a prefix of the\n * other (`engineCapabilities` and `engineCapabilities.EngineCapability.BILLING`). Setting either replaces part of what\n * the other set, so stacked layers treat an overlap as a collision exactly like an identical target.\n */\nexport function blueprintDeclarationTargetsOverlap(\n a: { file: string; declaration?: string | undefined; path: readonly string[] },\n b: { file: string; declaration?: string | undefined; path: readonly string[] },\n): boolean {\n if (a.file !== b.file || a.declaration !== b.declaration) return false;\n const shorter = a.path.length <= b.path.length ? a.path : b.path;\n const longer = shorter === a.path ? b.path : a.path;\n return shorter.every((segment, index) => longer[index] === segment);\n}\n\n/**\n * A registry module a blueprint REFERENCES (#2879): installed into the new application from the registry by\n * `wildo init`, through the same pipeline as `wildo registry add`, rather than copied. Its files are never carried —\n * the lockfile records them with their install hashes, and `wildo registry update` / `remove` act on them, which a copy\n * would silently defeat.\n *\n * The range is the one the defining application asked for (its lockfile `requestedRange`), so the new application\n * resolves the same way the defining one did; the version it gets is whatever that range resolves to on the day.\n */\nexport const BlueprintModuleReferenceSchema = z.strictObject({\n domain: RegistryDomainSlugSchema,\n moduleId: ModuleIdSchema,\n range: z.string().min(1),\n});\nexport type BlueprintModuleReference = z.infer<typeof BlueprintModuleReferenceSchema>;\n\n/** What an upper layer deliberately replaces from a lower one. Never anything of the base (D3). */\nexport const BlueprintOverridesSchema = z.strictObject({\n /** App-relative files a lower layer wrote that this layer writes again. */\n files: z.array(z.string().min(1)).default([]),\n /** Init flags a lower layer locked that this layer sets differently. */\n init: z.array(BlueprintSettableInitFlagSchema).default([]),\n /** Declarations a lower layer set that this layer sets again. */\n declarations: z.array(BlueprintDeclarationTargetSchema).default([]),\n});\nexport type BlueprintOverrides = z.infer<typeof BlueprintOverridesSchema>;\n\n/** A module, minion or worker DIRECTORY name — the same alphabet a registration's `moduleId` uses. */\nconst BlueprintModuleDirectorySchema = z.string().regex(MODULE_REGISTRATION_MODULE_ID_PATTERN, 'a module directory is kebab-case');\n\nfunction refineUniqueStrings(values: readonly string[], context: z.RefinementCtx, path: Array<string | number>, label: string): void {\n const seen = new Set<string>();\n values.forEach((value, index) => {\n if (seen.has(value)) context.addIssue({ code: 'custom', path: [...path, index], message: `${label} '${value}' is listed twice` });\n seen.add(value);\n });\n}\n\n// ── The definition ────────────────────────────────────────────────────────────────────────────────────\n\n/** Where definitions live in the application that defines them; `<name>` is the folder. */\nexport const BLUEPRINT_DEFINITIONS_DIRECTORY = 'blueprints';\nexport const BLUEPRINT_DEFINITION_FILE_NAME = 'blueprint.definition.ts';\n/** The exported constant a definition file declares. */\nexport const BLUEPRINT_DEFINITION_EXPORT_NAME = 'blueprintDefinition';\n/** `.hbs` sources beside the definition, for exported files that read a parameter. */\nexport const BLUEPRINT_TEMPLATES_DIRECTORY = 'templates';\n\n/**\n * The authored blueprint definition (`blueprints/<name>/blueprint.definition.ts`, exporting\n * {@link BLUEPRINT_DEFINITION_EXPORT_NAME}). It SELECTS; it never carries a value the application holds.\n */\nexport const BlueprintDefinitionSchema = z\n .strictObject({\n id: ModuleIdSchema,\n version: SemverExactSchema,\n description: z.string().min(1),\n extends: z.array(BlueprintLayerReferenceSchema).default([]),\n /** Per application-shape init flag: lock or default it to the defining application's value. */\n init: z.array(z.strictObject({ flag: BlueprintSettableInitFlagSchema, mode: z.enum(BlueprintInitConstraintMode) })).default([]),\n parameters: z.array(BlueprintDefinitionParameterSchema).default([]),\n include: z.strictObject({\n /** App-relative globs of NEW files (specifications, assets, documentation, …). */\n files: z.array(z.string().min(1)).default([]),\n /** Domain module directories (`shared-lib/src/modules/<dir>` and its sibling layers). */\n modules: z.array(BlueprintModuleDirectorySchema).default([]),\n /** Minion package directories (`minions/<dir>`). */\n minions: z.array(BlueprintModuleDirectorySchema).default([]),\n /** Worker package directories (`workers/<dir>`). */\n workers: z.array(BlueprintModuleDirectorySchema).default([]),\n /**\n * Modules this application installed from the module registry, by module id (`acme/billing`,\n * `providers/asana`): carried as references and installed by `wildo init`, never copied (#2879).\n */\n registryModules: z.array(ModuleIdSchema).default([]),\n declarations: z.array(BlueprintDefinitionDeclarationSelectionSchema).default([]),\n /** Barrels whose `export` lines (beyond the base's and the modules' own) the blueprint carries. */\n barrelExports: z.array(z.enum(BlueprintBarrelFile)).default([]),\n /** Runtime dependencies, by package name, carried with the specifier each workspace manifest declares. */\n dependencies: z.array(z.string().min(1)).default([]),\n /** Anchor slots whose content the blueprint carries. */\n slots: z.array(z.strictObject({ file: z.enum(BlueprintSlotFile), slot: z.string().min(1) })).default([]),\n /**\n * Carry the defining application's APPLICATION LINE (#2863): `wildo blueprint pack` reads it from the defining\n * application's dossier (its answer to the line question) and refuses when none is declared; `wildo init` answers\n * that question for the new application, so it is not asked again. Selected, never written: the value is the\n * defining application's, like every other value a blueprint carries.\n */\n line: z.boolean().default(false),\n }),\n overrides: BlueprintOverridesSchema.default({ files: [], init: [], declarations: [] }),\n })\n .superRefine((definition, context) => {\n refineUniqueParameterNames(definition.parameters, context, ['parameters']);\n refineUniqueStrings(definition.init.map((entry) => entry.flag), context, ['init'], 'init flag');\n refineUniqueStrings(definition.include.modules, context, ['include', 'modules'], 'module');\n refineUniqueStrings(definition.include.minions, context, ['include', 'minions'], 'minion');\n refineUniqueStrings(definition.include.workers, context, ['include', 'workers'], 'worker');\n refineUniqueStrings(definition.include.registryModules, context, ['include', 'registryModules'], 'registry module');\n refineUniqueStrings(definition.include.declarations.map((entry) => describeBlueprintDeclarationTarget(entry)), context, ['include', 'declarations'], 'declaration');\n refineUniqueStrings(definition.include.barrelExports, context, ['include', 'barrelExports'], 'barrel');\n refineUniqueStrings(definition.include.dependencies, context, ['include', 'dependencies'], 'dependency');\n refineUniqueStrings(definition.include.slots.map((entry) => `${entry.file}#${entry.slot}`), context, ['include', 'slots'], 'slot');\n if (definition.extends.length === 0 && (definition.overrides.files.length > 0 || definition.overrides.init.length > 0 || definition.overrides.declarations.length > 0)) {\n context.addIssue({ code: 'custom', path: ['overrides'], message: 'a blueprint layered on no other has nothing to override; the base itself is never overridden' });\n }\n });\nexport type BlueprintDefinition = z.infer<typeof BlueprintDefinitionSchema>;\n/** The authoring shape, before defaults: what a `blueprint.definition.ts` writes `satisfies` against. */\nexport type BlueprintDefinitionInput = z.input<typeof BlueprintDefinitionSchema>;\n/** @wildo_source:part:end blueprint.definition-contract */\n\n// ── The published manifest ────────────────────────────────────────────────────────────────────────────\n\n/** The manifest at the root of a packed blueprint, beside {@link BLUEPRINT_FILES_DIRECTORY}. */\nexport const BLUEPRINT_MANIFEST_FILE_NAME = 'blueprint.json';\n/** The packed files, laid out as they land in the application (`.hbs` rendered, `__param__` segments interpolated). */\nexport const BLUEPRINT_FILES_DIRECTORY = 'files';\n\n/**\n * An embedded module: its directories and the registration that makes the application know it. A domain module, a\n * minion or a worker. Never a PROVIDER: a provider module is one vendor's package, distributed and versioned by the\n * registry, and wired by each installing application from its own declarations — copying it into a blueprint would\n * freeze one application's wiring into every application made from it.\n */\nexport const BlueprintEmbeddedModuleSchema = z\n .strictObject({\n boundaries: ModuleManifestBoundariesSchema,\n registration: ModuleManifestRegistrationSchema,\n })\n .superRefine((module, context) => {\n if ((module.boundaries.providers ?? []).length > 0 || module.registration.scenario === ModuleRegistrationScenario.ADD_PROVIDER_PACKAGE) {\n context.addIssue({ code: 'custom', path: ['registration'], message: 'a blueprint embeds no provider module; a provider comes from the registry' });\n }\n });\nexport type BlueprintEmbeddedModule = z.infer<typeof BlueprintEmbeddedModuleSchema>;\n\n/**\n * The packed blueprint manifest (`blueprint.json`). Compiled by `wildo blueprint pack`, read by\n * `wildo init --blueprint`. Never authored.\n */\nexport const BlueprintManifestSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n id: ModuleIdSchema,\n version: SemverExactSchema,\n description: z.string().min(1),\n /** The framework version the defining application ran when it was packed. */\n frameworkVersion: z.string().min(1),\n /**\n * The DEFINING application's identity. Text files carrying these values have them replaced by the new\n * application's own on apply — a module that imports `@<slug>/shared-lib` imports the new application's.\n */\n identity: z.strictObject({ slug: z.string().min(1), displayName: z.string().min(1) }),\n extends: z.array(BlueprintLayerReferenceSchema).default([]),\n init: z.array(z.strictObject({ flag: BlueprintSettableInitFlagSchema, mode: z.enum(BlueprintInitConstraintMode), value: z.string().min(1) })).default([]),\n parameters: z.array(BlueprintParameterSchema).default([]),\n modules: z.array(BlueprintEmbeddedModuleSchema).default([]),\n /** Registry modules installed by `wildo init` before this layer's own content, in order (#2879). */\n moduleReferences: z.array(BlueprintModuleReferenceSchema).default([]),\n /**\n * The application line this blueprint makes (#2863): `wildo init` records it as the new application's answer to\n * the line question. A value of `ApplicationLine` from `@wildo-ai/saas-specifications/application-creation`, which\n * this contracts package cannot import (it does not depend on saas-specifications, and must not: that package sits\n * above it). It is a string here and checked against that vocabulary by the CLI, which depends on both, when it\n * packs a blueprint and when it reads one. A stack of layers names at most one line.\n */\n line: z.string().min(1).optional(),\n declarationOperations: z.array(BlueprintDeclarationOperationSchema).default([]),\n barrelExports: z.array(BlueprintBarrelExportSchema).default([]),\n dependencies: z.array(BlueprintDependencySchema).default([]),\n slotContributions: z.array(BlueprintSlotContributionSchema).default([]),\n overrides: BlueprintOverridesSchema.default({ files: [], init: [], declarations: [] }),\n })\n .superRefine((manifest, context) => {\n refineUniqueParameterNames(manifest.parameters, context, ['parameters']);\n refineUniqueStrings(manifest.moduleReferences.map((reference) => reference.moduleId), context, ['moduleReferences'], 'module reference');\n manifest.init.forEach((entry, index) => {\n const allowed = APPLICATION_SHAPE_INIT_FLAG_VALUES[entry.flag];\n if (allowed !== undefined && !allowed.includes(entry.value)) {\n context.addIssue({ code: 'custom', path: ['init', index, 'value'], message: `'${entry.value}' is not a value of --${entry.flag} (${allowed.join(', ')})` });\n }\n });\n });\nexport type BlueprintManifest = z.infer<typeof BlueprintManifestSchema>;\n\n// ── Paths ─────────────────────────────────────────────────────────────────────────────────────────────\n\n/** Path segments a blueprint never packs: build output and installed dependencies are not application source. */\nconst BLUEPRINT_FORBIDDEN_SEGMENTS: ReadonlySet<string> = new Set(['dist', 'node_modules']);\n/** File and directory names that hold secrets; never packed, at any depth. */\nconst BLUEPRINT_SECRET_SEGMENT_PATTERN = /^(secrets?(\\..*)?|.*\\.(pem|key|p12|pfx))$/i;\n\n/**\n * Whether `appRelativePath` (POSIX, relative to the application root) may be carried by a blueprint, in its\n * `files/` tree or as a module file. Checked when a blueprint is packed AND when it is applied, so a hand-made\n * artifact cannot plant what pack would never have written.\n *\n * On top of the module rule (no dot segment — `.git`, `.env`, `.wildo-saas`, traversal — and no `node_modules`):\n * - nothing under `blueprints/`: a definition lives only in the application that defines it (decision D5);\n * - no `dist/` build output;\n * - no secret-shaped file or directory (`secrets.json`, `secrets/`, `*.pem`, `*.key`, …), at any depth.\n *\n * Names compare case-insensitively: on a case-insensitive filesystem (macOS, Windows) `Node_Modules/` and\n * `Blueprints/` ARE those directories.\n */\nexport function isBlueprintArtifactPathAllowed(appRelativePath: string): boolean {\n if (!isModuleArtifactPathAllowed(appRelativePath)) return false;\n const segments = appRelativePath.split('/').map((segment) => segment.toLowerCase());\n if (segments[0] === BLUEPRINT_DEFINITIONS_DIRECTORY) return false;\n if (segments.some((segment) => BLUEPRINT_FORBIDDEN_SEGMENTS.has(segment))) return false;\n return !segments.some((segment) => BLUEPRINT_SECRET_SEGMENT_PATTERN.test(segment));\n}\n\n// ── The lockfile record ───────────────────────────────────────────────────────────────────────────────\n\n/** The `wildo-saas.lock.json` section `wildo init` records how the application was scaffolded in. */\nexport const SCAFFOLD_LOCK_SECTION_KEY = 'scaffold';\n\n/**\n * `sections.scaffold`: the application-shape init flags the application was created with, and the blueprint\n * layers applied on its base, in order. Written by every `wildo init`, with or without a blueprint, because an export\n * rebuilds the defining application's base from it.\n *\n * It records no file hashes and no digests on purpose: an init-time apply has nothing to upgrade or remove (D2), and\n * git already holds what each layer wrote — one commit per layer.\n */\nexport const ScaffoldLockSectionSchema = z.strictObject({\n /** Only APPLICATION_SHAPE flags: a machine or identity value is not how the application was shaped. */\n applicationShape: z.partialRecord(z.enum(InitFlag), z.string().min(1)).default({}).superRefine((shape, context) => {\n for (const flag of Object.keys(shape) as InitFlag[]) {\n if (INIT_FLAG_CLASSES[flag] !== InitFlagClass.APPLICATION_SHAPE) {\n context.addIssue({ code: 'custom', path: [flag], message: `--${flag} is not an application-shape init flag` });\n }\n }\n }),\n blueprints: z.array(z.strictObject({\n id: ModuleIdSchema,\n version: SemverExactSchema,\n parameters: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).default({}),\n })).default([]),\n});\nexport type ScaffoldLockSection = z.infer<typeof ScaffoldLockSectionSchema>;\n"]}
1
+ {"version":3,"file":"blueprint.schem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C,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;KAC7F,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAChB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { DatabaseEngine } from '../project-config/shared/environment.schemas';\nimport {\n isModuleArtifactPathAllowed,\n ModuleIdSchema,\n RegistryDomainSlugSchema,\n ModuleManifestBoundariesSchema,\n ModuleManifestRegistrationSchema,\n MODULE_REGISTRATION_MODULE_ID_PATTERN,\n ModuleRegistrationScenario,\n SemverExactSchema,\n} from '../registry/module-manifest.schemas';\n\n/**\n * Application BLUEPRINTS (epic #2856) — the contracts.\n *\n * A blueprint is a LAYER UPON the base `wildo init` skeleton, never a replacement of it (decision D3): it may\n * pre-configure the application-shape init flags, add new files, bring modules (their files plus the registration\n * that makes the application know them), set the values of named declarations in base files, append barrel exports,\n * add runtime dependencies, and contribute text inside anchor slots. It never overwrites a\n * file of the base or of a lower layer, unless an upper layer names that file in `overrides`.\n *\n * Two halves, deliberately separate:\n *\n * - the **definition** ({@link BlueprintDefinitionSchema}) lives ONLY in the application that defines the blueprint,\n * at `blueprints/<name>/blueprint.definition.ts`. It SELECTS what belongs to the blueprint and declares its\n * parameters. It never carries a value the application already holds: the exporter reads every byte and every\n * config value from the application, and proves the export reproduces it (`wildo blueprint pack`);\n * - the **manifest** ({@link BlueprintManifestSchema}) is what an export writes beside the artifact's `files/` tree,\n * and what `wildo init --blueprint` reads. It is a compiled output, never authored.\n *\n * The split is the `playbook.definition.ts` → `playbook.json` split, for the same reason: the authored form is\n * TypeScript a person can comment, the compiled form is JSON a machine validates.\n */\n\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n// ── Init flags ────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Every flag `wildo init` accepts, as a closed vocabulary so each one is CLASSIFIED once\n * ({@link INIT_FLAG_CLASSES}). A flag added to the command tomorrow must be added here and given a class, or the\n * pinning test fails: a blueprint can then never start setting it by accident.\n */\nexport enum InitFlag {\n /** The application's name; the directory names it by default. */\n NAME = 'name',\n /** The local infrastructure runtime (Docker Compose or a local Kubernetes). */\n RUNTIME = 'runtime',\n /** The application's own database engine. Decides what the scaffold AUTHORS (`isPostgreSql` templates). */\n DATABASE = 'database',\n /** Verify the developer's tools instead of scaffolding. */\n CHECK = 'check',\n /** Write only `wildo.saas.config.ts`. */\n CONFIG_ONLY = 'config-only',\n /** The base of the application's port block on this machine. */\n PORT_BASE = 'port-base',\n /** The local platform administrator's email. */\n ADMIN_EMAIL = 'admin-email',\n /** The local platform administrator's first name. */\n ADMIN_FIRST_NAME = 'admin-first-name',\n /** The local platform administrator's last name. */\n ADMIN_LAST_NAME = 'admin-last-name',\n /** The local platform administrator's initial password. */\n ADMIN_PASSWORD = 'admin-password',\n /** Skip `pnpm install` and the initial builds. */\n SKIP_INSTALL = 'skip-install',\n /** Where this environment's secrets live on this machine. */\n SECRETS_PATH = 'secrets-path',\n /** How to treat the machine's shared platform credentials. */\n LOCAL_DEFAULTS = 'local-defaults',\n /** Whether to seed the machine's provider API keys. */\n PROVIDER_KEY_DEFAULTS = 'provider-key-defaults',\n /** The blueprint layers to apply on the base, in order (epic #2856). */\n BLUEPRINT = 'blueprint',\n /** A blueprint parameter value, `name=value`. */\n BLUEPRINT_PARAM = 'blueprint-param',\n /** The registry a `--blueprint <domain>/<scope>/<name>@<range>` entry is fetched from. */\n BLUEPRINT_REGISTRY = 'blueprint-registry',\n /**\n * The application line, when no blueprint is given (#1605): shorthand for `--blueprint wildo/<line>`, or `later`.\n * A command mode, not application shape: a blueprint carries its line through `include.line`, never by setting a flag.\n */\n LINE = 'line',\n}\n\n/**\n * What kind of decision an init flag carries — and therefore whether a blueprint may make it.\n */\nexport enum InitFlagClass {\n /**\n * A decision about what the APPLICATION is, the same on every machine. The only class a blueprint may lock or\n * default: a corporate blueprint that targets PostgreSQL states it once, for every application made from it.\n */\n APPLICATION_SHAPE = 'application-shape',\n /**\n * A decision about THIS MACHINE — ports, local runtime, where secrets live, whether to install now. A blueprint\n * never touches one: it is applied on machines it has never seen.\n */\n MACHINE = 'machine',\n /**\n * WHO the application or its local administrator is. Never a blueprint's: an application made from a blueprint is\n * a new application with its own name and its own operator.\n */\n IDENTITY = 'identity',\n /** How the command runs (check only, config only, which blueprints). Not a property of the application at all. */\n COMMAND_MODE = 'command-mode',\n}\n\n/** The class of every init flag. Total over {@link InitFlag} by its type. */\nexport const INIT_FLAG_CLASSES: Readonly<Record<InitFlag, InitFlagClass>> = {\n [InitFlag.NAME]: InitFlagClass.IDENTITY,\n [InitFlag.RUNTIME]: InitFlagClass.MACHINE,\n [InitFlag.DATABASE]: InitFlagClass.APPLICATION_SHAPE,\n [InitFlag.CHECK]: InitFlagClass.COMMAND_MODE,\n [InitFlag.CONFIG_ONLY]: InitFlagClass.COMMAND_MODE,\n [InitFlag.PORT_BASE]: InitFlagClass.MACHINE,\n [InitFlag.ADMIN_EMAIL]: InitFlagClass.IDENTITY,\n [InitFlag.ADMIN_FIRST_NAME]: InitFlagClass.IDENTITY,\n [InitFlag.ADMIN_LAST_NAME]: InitFlagClass.IDENTITY,\n [InitFlag.ADMIN_PASSWORD]: InitFlagClass.IDENTITY,\n [InitFlag.SKIP_INSTALL]: InitFlagClass.MACHINE,\n [InitFlag.SECRETS_PATH]: InitFlagClass.MACHINE,\n [InitFlag.LOCAL_DEFAULTS]: InitFlagClass.MACHINE,\n [InitFlag.PROVIDER_KEY_DEFAULTS]: InitFlagClass.MACHINE,\n [InitFlag.BLUEPRINT]: InitFlagClass.COMMAND_MODE,\n [InitFlag.BLUEPRINT_PARAM]: InitFlagClass.COMMAND_MODE,\n [InitFlag.BLUEPRINT_REGISTRY]: InitFlagClass.COMMAND_MODE,\n [InitFlag.LINE]: InitFlagClass.COMMAND_MODE,\n};\n\n/** The values an APPLICATION_SHAPE flag accepts. Total over the shape flags, checked by the pinning test. */\nexport const APPLICATION_SHAPE_INIT_FLAG_VALUES: Readonly<Partial<Record<InitFlag, readonly string[]>>> = {\n [InitFlag.DATABASE]: Object.values(DatabaseEngine),\n};\n\n/** Whether a blueprint may lock or default `flag`. */\nexport function isBlueprintSettableInitFlag(flag: InitFlag): boolean {\n return INIT_FLAG_CLASSES[flag] === InitFlagClass.APPLICATION_SHAPE;\n}\n\n/** How a blueprint pre-configures an application-shape init flag. */\nexport enum BlueprintInitConstraintMode {\n /** The flag takes this value; `wildo init` refuses a flag that contradicts it. */\n LOCK = 'lock',\n /** The flag takes this value unless the operator passes the flag. */\n DEFAULT = 'default',\n}\n/** @wildo_source:part:end blueprint.definition-contract */\n\nconst BlueprintSettableInitFlagSchema = z.enum(InitFlag).refine(isBlueprintSettableInitFlag, {\n error: 'a blueprint may set only an application-shape init flag (today: `database`)',\n});\n\n// ── Parameters ────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Why this is not `CompositionScenarioVariableKind` (#2857 asked not to fork the scenario pieces): a blueprint\n * parameter is chosen by the person creating an application, so it needs a CLOSED choice (`ENUM`, with members the\n * apply refuses outside of), which a scenario variable has no use for; and a scenario variable can be DERIVED from\n * another (#2810), which a blueprint parameter must never be, since its value is the operator's or a lower layer\n * binding's. The three shared members keep the scenario's wire values, so a value moves between the two unchanged.\n * The scenario vocabulary also lives in `application-creation-runtime`, which this contracts package cannot import.\n */\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n/** The value kinds a blueprint parameter may declare. */\nexport enum BlueprintParameterKind {\n STRING = 'string',\n NUMBER = 'number',\n BOOLEAN = 'boolean',\n /** One of `members`: a closed choice (an ERP vendor, a region), named so the choice is explained once. */\n ENUM = 'enum',\n}\n\nexport type BlueprintParameterValue = string | number | boolean;\n\n/** camelCase, so the name reads the same in `{{name}}` templates, `__name__` paths and `--blueprint-param`. */\nconst BLUEPRINT_PARAMETER_NAME_PATTERN = /^[a-z][a-zA-Z0-9]*$/;\n\n/**\n * Parameter names a blueprint cannot declare, because the applier supplies them from the new application's\n * identity. A template reads `{{slug}}` or `{{displayName}}` and gets the application being created.\n */\nexport const BLUEPRINT_IDENTITY_VARIABLES = ['slug', 'displayName'] as const;\n\nconst BlueprintParameterFields = {\n name: z.string().regex(BLUEPRINT_PARAMETER_NAME_PATTERN, 'parameter names are camelCase identifiers').refine(\n (name) => !(BLUEPRINT_IDENTITY_VARIABLES as readonly string[]).includes(name),\n { error: `${BLUEPRINT_IDENTITY_VARIABLES.join(' and ')} are supplied from the new application's identity` },\n ),\n description: z.string().min(1),\n kind: z.enum(BlueprintParameterKind),\n required: z.boolean(),\n /** Serialized default, parsed per `kind`. Only on an optional parameter. */\n default: z.string().optional(),\n /** RegExp source a STRING value must fully match. */\n pattern: z.string().optional(),\n /** ENUM only: the allowed values. */\n members: z.array(z.string().min(1)).min(1).optional(),\n};\n/** @wildo_source:part:end blueprint.definition-contract */\n\n/**\n * Parse one serialized value per the parameter's declaration, or explain why it is not a value of it. Shared by the\n * schema (a declared default) and the applier (a value passed on the command line), so both refuse the same values.\n */\nexport function parseBlueprintParameterValue(\n parameter: { readonly name: string; readonly kind: BlueprintParameterKind; readonly pattern?: string | undefined; readonly members?: readonly string[] | undefined },\n raw: BlueprintParameterValue,\n): { value: BlueprintParameterValue } | { reason: string } {\n switch (parameter.kind) {\n case BlueprintParameterKind.STRING: {\n const value = String(raw);\n if (parameter.pattern !== undefined && !new RegExp(`^(?:${parameter.pattern})$`).test(value)) {\n return { reason: `'${parameter.name}' value '${value}' does not match /${parameter.pattern}/` };\n }\n return { value };\n }\n case BlueprintParameterKind.NUMBER: {\n const value = typeof raw === 'number' ? raw : Number(raw);\n return Number.isNaN(value) || String(raw).trim() === '' ? { reason: `'${parameter.name}' expects a number, got '${String(raw)}'` } : { value };\n }\n case BlueprintParameterKind.BOOLEAN: {\n if (typeof raw === 'boolean') return { value: raw };\n if (raw === 'true' || raw === 'false') return { value: raw === 'true' };\n return { reason: `'${parameter.name}' expects true or false, got '${String(raw)}'` };\n }\n case BlueprintParameterKind.ENUM: {\n const value = String(raw);\n return (parameter.members ?? []).includes(value)\n ? { value }\n : { reason: `'${parameter.name}' must be one of ${(parameter.members ?? []).join(', ')}, got '${value}'` };\n }\n }\n}\n\nfunction refineParameter(\n parameter: { name: string; kind: BlueprintParameterKind; required: boolean; default?: string | undefined; pattern?: string | undefined; members?: string[] | undefined },\n context: z.RefinementCtx,\n): void {\n if (parameter.kind === BlueprintParameterKind.ENUM && parameter.members === undefined) {\n context.addIssue({ code: 'custom', path: ['members'], message: `'${parameter.name}' is an enum, so it declares its members` });\n }\n if (parameter.kind !== BlueprintParameterKind.ENUM && parameter.members !== undefined) {\n context.addIssue({ code: 'custom', path: ['members'], message: `'${parameter.name}' is not an enum, so it declares no members` });\n }\n if (parameter.pattern !== undefined && parameter.kind !== BlueprintParameterKind.STRING) {\n context.addIssue({ code: 'custom', path: ['pattern'], message: `'${parameter.name}' is not a string, so it declares no pattern` });\n }\n if (parameter.required && parameter.default !== undefined) {\n context.addIssue({ code: 'custom', path: ['default'], message: `'${parameter.name}' is required, so a default would never be used` });\n }\n if (parameter.default !== undefined) {\n const parsed = parseBlueprintParameterValue(parameter, parameter.default);\n if ('reason' in parsed) context.addIssue({ code: 'custom', path: ['default'], message: `the default is not a value of it: ${parsed.reason}` });\n }\n}\n\n/** One declared blueprint parameter, as the published manifest carries it. */\nexport const BlueprintParameterSchema = z.strictObject(BlueprintParameterFields).superRefine(refineParameter);\nexport type BlueprintParameter = z.infer<typeof BlueprintParameterSchema>;\n\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n/**\n * One declared parameter, as the DEFINITION carries it: the declaration plus the defining application's own value.\n *\n * `appValue` is the reproduction WITNESS, not a value the blueprint ships: the export renders every template with it\n * and requires the result to equal the defining application's bytes. A wrong `appValue` therefore fails the pack\n * instead of producing a blueprint that silently renders something else. It is never written into the manifest.\n */\nexport const BlueprintDefinitionParameterSchema = z\n .strictObject({ ...BlueprintParameterFields, appValue: z.union([z.string(), z.number(), z.boolean()]) })\n .superRefine((parameter, context) => {\n refineParameter(parameter, context);\n const parsed = parseBlueprintParameterValue(parameter, parameter.appValue);\n if ('reason' in parsed) context.addIssue({ code: 'custom', path: ['appValue'], message: `the application's value is not a value of it: ${parsed.reason}` });\n });\nexport type BlueprintDefinitionParameter = z.infer<typeof BlueprintDefinitionParameterSchema>;\n/** @wildo_source:part:end blueprint.definition-contract */\n\nfunction refineUniqueParameterNames(parameters: ReadonlyArray<{ name: string }>, context: z.RefinementCtx, path: Array<string | number>): void {\n const seen = new Set<string>();\n parameters.forEach((parameter, index) => {\n if (seen.has(parameter.name)) context.addIssue({ code: 'custom', path: [...path, index, 'name'], message: `parameter '${parameter.name}' is declared twice` });\n seen.add(parameter.name);\n });\n}\n\n/** @wildo_source:part:start blueprint.definition-contract facet:layer:shared facet:audience:app-developer */\n// ── Layers and configuration ──────────────────────────────────────────────────────────────────────────\n\n/** A lower blueprint this one is layered on, with the values it binds for that layer's parameters. */\nexport const BlueprintLayerReferenceSchema = z.strictObject({\n id: ModuleIdSchema,\n /** npm-style semver range the lower layer's version must satisfy. */\n range: z.string().min(1),\n /** Values this layer binds for the lower layer's parameters; the operator is not asked for them. */\n parameters: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).optional(),\n});\nexport type BlueprintLayerReference = z.infer<typeof BlueprintLayerReferenceSchema>;\n\n/**\n * The base files whose named DECLARATIONS a blueprint may set — the blueprint customization API (decision D3).\n *\n * A blueprint never replaces a base file; it sets values the base declares. Each member is a file the `wildo init`\n * skeleton authors as a set of named declarations with an application-owned VALUE (an empty registry, a default\n * profile, a theme), so setting one is a replacement at a path the config walker resolves, never a text edit.\n * Measured on Wonder Procurement (#2860): every change it made to a base TypeScript file was the value of one of\n * these declarations. A closed set, because a declaration operation is only safe on a file whose shape the framework\n * owns: adding a member is deciding that the base will keep that declaration stable.\n */\nexport enum BlueprintDeclarationFile {\n /** `wildo.saas.config.ts`: modules, services, capabilities, organization types, providers, systems of record. */\n SAAS_CONFIG = 'wildo.saas.config.ts',\n /** The backend-authored configuration: authentication posture, user types, registration, email. */\n BACKEND_CONFIG = 'backend-api/src/saas-config.backend.ts',\n /** App-wide backend assembly: resource-server instances, organization-unit narrowing, own rows. */\n BACKEND_BOOTSTRAP = 'backend-api/src/bootstrap-config.ts',\n /** The application's own roles (`CUSTOM_ROLES_CONFIGURATION`). */\n ROLES = 'shared-lib/src/engine/roles.ts',\n /** Features, feature profiles and unavailability policy. */\n FEATURES = 'shared-lib/src/engine/features.ts',\n /** Milestone definitions. */\n MILESTONES = 'shared-lib/src/engine/milestones.ts',\n /** The product catalogue. */\n PRODUCT = 'shared-lib/src/engine/product.ts',\n /** The frontend module list, whose ORDER is the sidebar's (`applicationFrontendModules`). */\n FRONTEND_MODULES = 'frontend/src/modules/index.ts',\n /** The design system: theme, colours, surfaces. */\n FRONTEND_DESIGN_SYSTEM = 'frontend/src/config/design-system.config.ts',\n /** Navigation zones and transitions. */\n FRONTEND_NAVIGATION = 'frontend/src/config/navigation.config.ts',\n /** The application shell: menubar, sidebar, command menu. */\n FRONTEND_APP_SHELL = 'frontend/src/config/app-shell.config.ts',\n /** The settings rail. */\n FRONTEND_SETTINGS_HUB = 'frontend/src/config/settings-hub.config.ts',\n /** Application-level views. */\n FRONTEND_GLOBAL_VIEWS = 'frontend/src/config/global-views.config.ts',\n}\n\n/** A config path segment: an identifier, a quoted key's text, or a computed key's expression (`EngineCapability.BILLING`). */\nconst BlueprintDeclarationPathSchema = z.array(z.string().min(1));\n\n/**\n * Where a declaration operation lands: from the file's `export default` along `path`, or from the top-level variable\n * `declaration` along `path` — the whole variable when `path` is empty.\n */\nconst BlueprintDeclarationTargetFields = {\n file: z.enum(BlueprintDeclarationFile),\n /** A top-level variable of the file (`CUSTOM_ROLES_CONFIGURATION`). Absent: start at the file's `export default`. */\n declaration: z.string().regex(/^[A-Za-z_$][\\w$]*$/, 'a declaration is a top-level variable name').optional(),\n /** Property segments below the start; empty only with `declaration`, to set the variable as a whole. */\n path: BlueprintDeclarationPathSchema,\n};\n\nfunction refineDeclarationTarget(target: { declaration?: string | undefined; path: string[] }, context: z.RefinementCtx): void {\n if (target.declaration === undefined && target.path.length === 0) {\n context.addIssue({ code: 'custom', path: ['path'], message: 'a path is required unless a declaration is named (an empty path sets the declaration as a whole)' });\n }\n}\n\n/** The label a declaration target is reported under: `<file> <declaration>.<path>`. */\nexport function describeBlueprintDeclarationTarget(target: { file: string; declaration?: string | undefined; path: readonly string[] }): string {\n return `${target.file} ${[target.declaration ?? 'export default', ...target.path].join('.')}`;\n}\n\n/** What a definition selects in a declaration file. */\nexport const BlueprintDefinitionDeclarationSelectionSchema = z\n .strictObject({\n ...BlueprintDeclarationTargetFields,\n /**\n * The value as a template over the parameters, when the value depends on one. Rendered with each parameter's\n * `appValue`, it must equal the defining application's value text exactly, or the pack refuses.\n */\n valueTemplate: z.string().min(1).optional(),\n })\n .superRefine(refineDeclarationTarget);\nexport type BlueprintDefinitionDeclarationSelection = z.infer<typeof BlueprintDefinitionDeclarationSelectionSchema>;\n\n/** One declaration a blueprint sets: the value at the target, creating the final property when absent. */\nexport const BlueprintDeclarationOperationSchema = z\n .strictObject({\n ...BlueprintDeclarationTargetFields,\n /** The value's expression text, verbatim; may read `{{parameter}}`. */\n valueText: z.string().min(1),\n /** Import statements the value needs that the base file does not have (`import { X } from 'pkg';`). */\n imports: z.array(z.string().min(1)).default([]),\n })\n .superRefine(refineDeclarationTarget);\nexport type BlueprintDeclarationOperation = z.infer<typeof BlueprintDeclarationOperationSchema>;\n\n/**\n * The barrels a blueprint may append `export` lines to — the package entry files every module's `add-module`\n * registration already appends to. A blueprint carrying a new file (`shared-lib/src/system-of-record/…`) that the\n * package must export appends its line here.\n */\nexport enum BlueprintBarrelFile {\n SHARED_LIB = 'shared-lib/src/index.ts',\n SPECIFICATIONS = 'specifications/src/index.ts',\n}\n\n/** One `export … from '…';` line appended to a barrel. */\nexport const BlueprintBarrelExportSchema = z.strictObject({\n file: z.enum(BlueprintBarrelFile),\n line: z.string().regex(/^export\\s.+\\sfrom\\s+['\"][^'\"]+['\"];?$/, 'a barrel line is one `export … from \\'…\\';` statement'),\n});\nexport type BlueprintBarrelExport = z.infer<typeof BlueprintBarrelExportSchema>;\n\n/**\n * The workspace manifests a blueprint may add a runtime dependency to: the packages every `wildo init` base has.\n * A carried minion's or worker's own `package.json` travels with its files instead.\n */\nexport enum BlueprintWorkspaceManifest {\n ROOT = 'package.json',\n SHARED_LIB = 'shared-lib/package.json',\n SPECIFICATIONS = 'specifications/package.json',\n BACKEND_API = 'backend-api/package.json',\n FRONTEND = 'frontend/package.json',\n}\n\n/** One runtime dependency a blueprint adds to a workspace manifest (`dependencies` only). */\nexport const BlueprintDependencySchema = z.strictObject({\n manifest: z.enum(BlueprintWorkspaceManifest),\n name: z.string().min(1),\n specifier: z.string().min(1),\n});\nexport type BlueprintDependency = z.infer<typeof BlueprintDependencySchema>;\n\n/**\n * The base files that declare anchor SLOTS — the free-text extension points (`@wildo_anchor:slot`), for the few\n * files that are not TypeScript declarations. Measured on Wonder Procurement (#2860), the one such need was the\n * application's agent guide. Adding a member is deciding where free text may be extended; keep it small.\n */\nexport enum BlueprintSlotFile {\n /** The application's `CLAUDE.md`, read by every coding-agent session in it. */\n APPLICATION_AGENT_GUIDE = 'CLAUDE.md',\n}\n\n/** One slot a blueprint contributes to, and what it writes there. */\nexport const BlueprintSlotContributionSchema = z.strictObject({\n file: z.enum(BlueprintSlotFile),\n slot: z.string().regex(/^[a-z][a-z0-9.-]*$/, 'a slot id is lowercase, dot- or dash-separated'),\n /** The text this layer adds inside the slot, without its markers; may read `{{parameter}}`. */\n body: z.string(),\n});\nexport type BlueprintSlotContribution = z.infer<typeof BlueprintSlotContributionSchema>;\n\n/** A declaration target with no value: what `overrides.declarations` names. */\nexport const BlueprintDeclarationTargetSchema = z.strictObject(BlueprintDeclarationTargetFields).superRefine(refineDeclarationTarget);\nexport type BlueprintDeclarationTarget = z.infer<typeof BlueprintDeclarationTargetSchema>;\n\n/** Whether two declaration targets address the same value. */\nexport function isSameBlueprintDeclarationTarget(\n a: { file: string; declaration?: string | undefined; path: readonly string[] },\n b: { file: string; declaration?: string | undefined; path: readonly string[] },\n): boolean {\n return describeBlueprintDeclarationTarget(a) === describeBlueprintDeclarationTarget(b);\n}\n\n/**\n * Whether two declaration targets address overlapping values: the same file and start, and one path a prefix of the\n * other (`engineCapabilities` and `engineCapabilities.EngineCapability.BILLING`). Setting either replaces part of what\n * the other set, so stacked layers treat an overlap as a collision exactly like an identical target.\n */\nexport function blueprintDeclarationTargetsOverlap(\n a: { file: string; declaration?: string | undefined; path: readonly string[] },\n b: { file: string; declaration?: string | undefined; path: readonly string[] },\n): boolean {\n if (a.file !== b.file || a.declaration !== b.declaration) return false;\n const shorter = a.path.length <= b.path.length ? a.path : b.path;\n const longer = shorter === a.path ? b.path : a.path;\n return shorter.every((segment, index) => longer[index] === segment);\n}\n\n/**\n * A registry module a blueprint REFERENCES (#2879): installed into the new application from the registry by\n * `wildo init`, through the same pipeline as `wildo registry add`, rather than copied. Its files are never carried —\n * the lockfile records them with their install hashes, and `wildo registry update` / `remove` act on them, which a copy\n * would silently defeat.\n *\n * The range is the one the defining application asked for (its lockfile `requestedRange`), so the new application\n * resolves the same way the defining one did; the version it gets is whatever that range resolves to on the day.\n */\nexport const BlueprintModuleReferenceSchema = z.strictObject({\n domain: RegistryDomainSlugSchema,\n moduleId: ModuleIdSchema,\n range: z.string().min(1),\n});\nexport type BlueprintModuleReference = z.infer<typeof BlueprintModuleReferenceSchema>;\n\n/** What an upper layer deliberately replaces from a lower one. Never anything of the base (D3). */\nexport const BlueprintOverridesSchema = z.strictObject({\n /** App-relative files a lower layer wrote that this layer writes again. */\n files: z.array(z.string().min(1)).default([]),\n /** Init flags a lower layer locked that this layer sets differently. */\n init: z.array(BlueprintSettableInitFlagSchema).default([]),\n /** Declarations a lower layer set that this layer sets again. */\n declarations: z.array(BlueprintDeclarationTargetSchema).default([]),\n});\nexport type BlueprintOverrides = z.infer<typeof BlueprintOverridesSchema>;\n\n/** A module, minion or worker DIRECTORY name — the same alphabet a registration's `moduleId` uses. */\nconst BlueprintModuleDirectorySchema = z.string().regex(MODULE_REGISTRATION_MODULE_ID_PATTERN, 'a module directory is kebab-case');\n\nfunction refineUniqueStrings(values: readonly string[], context: z.RefinementCtx, path: Array<string | number>, label: string): void {\n const seen = new Set<string>();\n values.forEach((value, index) => {\n if (seen.has(value)) context.addIssue({ code: 'custom', path: [...path, index], message: `${label} '${value}' is listed twice` });\n seen.add(value);\n });\n}\n\n// ── The definition ────────────────────────────────────────────────────────────────────────────────────\n\n/** Where definitions live in the application that defines them; `<name>` is the folder. */\nexport const BLUEPRINT_DEFINITIONS_DIRECTORY = 'blueprints';\nexport const BLUEPRINT_DEFINITION_FILE_NAME = 'blueprint.definition.ts';\n/** The exported constant a definition file declares. */\nexport const BLUEPRINT_DEFINITION_EXPORT_NAME = 'blueprintDefinition';\n/** `.hbs` sources beside the definition, for exported files that read a parameter. */\nexport const BLUEPRINT_TEMPLATES_DIRECTORY = 'templates';\n\n/**\n * The authored blueprint definition (`blueprints/<name>/blueprint.definition.ts`, exporting\n * {@link BLUEPRINT_DEFINITION_EXPORT_NAME}). It SELECTS; it never carries a value the application holds.\n */\nexport const BlueprintDefinitionSchema = z\n .strictObject({\n id: ModuleIdSchema,\n version: SemverExactSchema,\n description: z.string().min(1),\n extends: z.array(BlueprintLayerReferenceSchema).default([]),\n /** Per application-shape init flag: lock or default it to the defining application's value. */\n init: z.array(z.strictObject({ flag: BlueprintSettableInitFlagSchema, mode: z.enum(BlueprintInitConstraintMode) })).default([]),\n parameters: z.array(BlueprintDefinitionParameterSchema).default([]),\n include: z.strictObject({\n /** App-relative globs of NEW files (specifications, assets, documentation, …). */\n files: z.array(z.string().min(1)).default([]),\n /** Domain module directories (`shared-lib/src/modules/<dir>` and its sibling layers). */\n modules: z.array(BlueprintModuleDirectorySchema).default([]),\n /** Minion package directories (`minions/<dir>`). */\n minions: z.array(BlueprintModuleDirectorySchema).default([]),\n /** Worker package directories (`workers/<dir>`). */\n workers: z.array(BlueprintModuleDirectorySchema).default([]),\n /**\n * Modules this application installed from the module registry, by module id (`acme/billing`,\n * `providers/asana`): carried as references and installed by `wildo init`, never copied (#2879).\n */\n registryModules: z.array(ModuleIdSchema).default([]),\n declarations: z.array(BlueprintDefinitionDeclarationSelectionSchema).default([]),\n /** Barrels whose `export` lines (beyond the base's and the modules' own) the blueprint carries. */\n barrelExports: z.array(z.enum(BlueprintBarrelFile)).default([]),\n /** Runtime dependencies, by package name, carried with the specifier each workspace manifest declares. */\n dependencies: z.array(z.string().min(1)).default([]),\n /** Anchor slots whose content the blueprint carries. */\n slots: z.array(z.strictObject({ file: z.enum(BlueprintSlotFile), slot: z.string().min(1) })).default([]),\n /**\n * Carry the defining application's APPLICATION LINE (#2863): `wildo blueprint pack` reads it from the defining\n * application's dossier (its answer to the line question) and refuses when none is declared; `wildo init` answers\n * that question for the new application, so it is not asked again. Selected, never written: the value is the\n * defining application's, like every other value a blueprint carries.\n */\n line: z.boolean().default(false),\n }),\n overrides: BlueprintOverridesSchema.default({ files: [], init: [], declarations: [] }),\n })\n .superRefine((definition, context) => {\n refineUniqueParameterNames(definition.parameters, context, ['parameters']);\n refineUniqueStrings(definition.init.map((entry) => entry.flag), context, ['init'], 'init flag');\n refineUniqueStrings(definition.include.modules, context, ['include', 'modules'], 'module');\n refineUniqueStrings(definition.include.minions, context, ['include', 'minions'], 'minion');\n refineUniqueStrings(definition.include.workers, context, ['include', 'workers'], 'worker');\n refineUniqueStrings(definition.include.registryModules, context, ['include', 'registryModules'], 'registry module');\n refineUniqueStrings(definition.include.declarations.map((entry) => describeBlueprintDeclarationTarget(entry)), context, ['include', 'declarations'], 'declaration');\n refineUniqueStrings(definition.include.barrelExports, context, ['include', 'barrelExports'], 'barrel');\n refineUniqueStrings(definition.include.dependencies, context, ['include', 'dependencies'], 'dependency');\n refineUniqueStrings(definition.include.slots.map((entry) => `${entry.file}#${entry.slot}`), context, ['include', 'slots'], 'slot');\n if (definition.extends.length === 0 && (definition.overrides.files.length > 0 || definition.overrides.init.length > 0 || definition.overrides.declarations.length > 0)) {\n context.addIssue({ code: 'custom', path: ['overrides'], message: 'a blueprint layered on no other has nothing to override; the base itself is never overridden' });\n }\n });\nexport type BlueprintDefinition = z.infer<typeof BlueprintDefinitionSchema>;\n/** The authoring shape, before defaults: what a `blueprint.definition.ts` writes `satisfies` against. */\nexport type BlueprintDefinitionInput = z.input<typeof BlueprintDefinitionSchema>;\n/** @wildo_source:part:end blueprint.definition-contract */\n\n// ── The published manifest ────────────────────────────────────────────────────────────────────────────\n\n/** The manifest at the root of a packed blueprint, beside {@link BLUEPRINT_FILES_DIRECTORY}. */\nexport const BLUEPRINT_MANIFEST_FILE_NAME = 'blueprint.json';\n/** The packed files, laid out as they land in the application (`.hbs` rendered, `__param__` segments interpolated). */\nexport const BLUEPRINT_FILES_DIRECTORY = 'files';\n\n/**\n * An embedded module: its directories and the registration that makes the application know it. A domain module, a\n * minion or a worker. Never a PROVIDER: a provider module is one vendor's package, distributed and versioned by the\n * registry, and wired by each installing application from its own declarations — copying it into a blueprint would\n * freeze one application's wiring into every application made from it.\n */\nexport const BlueprintEmbeddedModuleSchema = z\n .strictObject({\n boundaries: ModuleManifestBoundariesSchema,\n registration: ModuleManifestRegistrationSchema,\n })\n .superRefine((module, context) => {\n if ((module.boundaries.providers ?? []).length > 0 || module.registration.scenario === ModuleRegistrationScenario.ADD_PROVIDER_PACKAGE) {\n context.addIssue({ code: 'custom', path: ['registration'], message: 'a blueprint embeds no provider module; a provider comes from the registry' });\n }\n });\nexport type BlueprintEmbeddedModule = z.infer<typeof BlueprintEmbeddedModuleSchema>;\n\n/**\n * The packed blueprint manifest (`blueprint.json`). Compiled by `wildo blueprint pack`, read by\n * `wildo init --blueprint`. Never authored.\n */\nexport const BlueprintManifestSchema = z\n .strictObject({\n schemaVersion: z.literal(1),\n id: ModuleIdSchema,\n version: SemverExactSchema,\n description: z.string().min(1),\n /** The framework version the defining application ran when it was packed. */\n frameworkVersion: z.string().min(1),\n /**\n * The DEFINING application's identity. Text files carrying these values have them replaced by the new\n * application's own on apply — a module that imports `@<slug>/shared-lib` imports the new application's.\n */\n identity: z.strictObject({ slug: z.string().min(1), displayName: z.string().min(1) }),\n extends: z.array(BlueprintLayerReferenceSchema).default([]),\n init: z.array(z.strictObject({ flag: BlueprintSettableInitFlagSchema, mode: z.enum(BlueprintInitConstraintMode), value: z.string().min(1) })).default([]),\n parameters: z.array(BlueprintParameterSchema).default([]),\n modules: z.array(BlueprintEmbeddedModuleSchema).default([]),\n /** Registry modules installed by `wildo init` before this layer's own content, in order (#2879). */\n moduleReferences: z.array(BlueprintModuleReferenceSchema).default([]),\n /**\n * The application line this blueprint makes (#2863): `wildo init` records it as the new application's answer to\n * the line question. A value of `ApplicationLine` from `@wildo-ai/saas-specifications/application-creation`, which\n * this contracts package cannot import (it does not depend on saas-specifications, and must not: that package sits\n * above it). It is a string here and checked against that vocabulary by the CLI, which depends on both, when it\n * packs a blueprint and when it reads one. A stack of layers names at most one line.\n */\n line: z.string().min(1).optional(),\n declarationOperations: z.array(BlueprintDeclarationOperationSchema).default([]),\n barrelExports: z.array(BlueprintBarrelExportSchema).default([]),\n dependencies: z.array(BlueprintDependencySchema).default([]),\n slotContributions: z.array(BlueprintSlotContributionSchema).default([]),\n overrides: BlueprintOverridesSchema.default({ files: [], init: [], declarations: [] }),\n })\n .superRefine((manifest, context) => {\n refineUniqueParameterNames(manifest.parameters, context, ['parameters']);\n refineUniqueStrings(manifest.moduleReferences.map((reference) => reference.moduleId), context, ['moduleReferences'], 'module reference');\n manifest.init.forEach((entry, index) => {\n const allowed = APPLICATION_SHAPE_INIT_FLAG_VALUES[entry.flag];\n if (allowed !== undefined && !allowed.includes(entry.value)) {\n context.addIssue({ code: 'custom', path: ['init', index, 'value'], message: `'${entry.value}' is not a value of --${entry.flag} (${allowed.join(', ')})` });\n }\n });\n });\nexport type BlueprintManifest = z.infer<typeof BlueprintManifestSchema>;\n\n// ── Paths ─────────────────────────────────────────────────────────────────────────────────────────────\n\n/** Path segments a blueprint never packs: build output and installed dependencies are not application source. */\nconst BLUEPRINT_FORBIDDEN_SEGMENTS: ReadonlySet<string> = new Set(['dist', 'node_modules']);\n/** File and directory names that hold secrets; never packed, at any depth. */\nconst BLUEPRINT_SECRET_SEGMENT_PATTERN = /^(secrets?(\\..*)?|.*\\.(pem|key|p12|pfx))$/i;\n\n/**\n * Whether `appRelativePath` (POSIX, relative to the application root) may be carried by a blueprint, in its\n * `files/` tree or as a module file. Checked when a blueprint is packed AND when it is applied, so a hand-made\n * artifact cannot plant what pack would never have written.\n *\n * On top of the module rule (no dot segment — `.git`, `.env`, `.wildo-saas`, traversal — and no `node_modules`):\n * - nothing under `blueprints/`: a definition lives only in the application that defines it (decision D5);\n * - no `dist/` build output;\n * - no secret-shaped file or directory (`secrets.json`, `secrets/`, `*.pem`, `*.key`, …), at any depth.\n *\n * Names compare case-insensitively: on a case-insensitive filesystem (macOS, Windows) `Node_Modules/` and\n * `Blueprints/` ARE those directories.\n */\nexport function isBlueprintArtifactPathAllowed(appRelativePath: string): boolean {\n if (!isModuleArtifactPathAllowed(appRelativePath)) return false;\n const segments = appRelativePath.split('/').map((segment) => segment.toLowerCase());\n if (segments[0] === BLUEPRINT_DEFINITIONS_DIRECTORY) return false;\n if (segments.some((segment) => BLUEPRINT_FORBIDDEN_SEGMENTS.has(segment))) return false;\n return !segments.some((segment) => BLUEPRINT_SECRET_SEGMENT_PATTERN.test(segment));\n}\n\n// ── The lockfile record ───────────────────────────────────────────────────────────────────────────────\n\n/** The `wildo-saas.lock.json` section `wildo init` records how the application was scaffolded in. */\nexport const SCAFFOLD_LOCK_SECTION_KEY = 'scaffold';\n\n/**\n * `sections.scaffold`: the application-shape init flags the application was created with, and the blueprint\n * layers applied on its base, in order. Written by every `wildo init`, with or without a blueprint, because an export\n * rebuilds the defining application's base from it.\n *\n * It records no file hashes and no digests on purpose: an init-time apply has nothing to upgrade or remove (D2), and\n * git already holds what each layer wrote — one commit per layer.\n */\nexport const ScaffoldLockSectionSchema = z.strictObject({\n /** Only APPLICATION_SHAPE flags: a machine or identity value is not how the application was shaped. */\n applicationShape: z.partialRecord(z.enum(InitFlag), z.string().min(1)).default({}).superRefine((shape, context) => {\n for (const flag of Object.keys(shape) as InitFlag[]) {\n if (INIT_FLAG_CLASSES[flag] !== InitFlagClass.APPLICATION_SHAPE) {\n context.addIssue({ code: 'custom', path: [flag], message: `--${flag} is not an application-shape init flag` });\n }\n }\n }),\n blueprints: z.array(z.strictObject({\n id: ModuleIdSchema,\n version: SemverExactSchema,\n parameters: z.record(z.string(), z.union([z.string(), z.number(), z.boolean()])).default({}),\n })).default([]),\n});\nexport type ScaffoldLockSection = z.infer<typeof ScaffoldLockSectionSchema>;\n"]}