@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
@@ -28,11 +28,11 @@ export declare enum AppLibraryType {
28
28
  }
29
29
  /**
30
30
  * How the receiving frontend stores the JWT pair after a cross-frontend
31
- * handoff exchange (`cross-app-jwt-propagation.md` K-4).
31
+ * handoff exchange.
32
32
  *
33
33
  * - `'ephemeral'` (default) → `EphemeralSessionTokenStorage` (in-memory,
34
34
  * dies with the tab). Avoids token poisoning when the source frontend
35
- * already holds a persistent session, and matches the existing W7.3b
35
+ * already holds a persistent session, and matches the existing
36
36
  * `Auth_OneOffSession` guard that refuses non-`Ephemeral` storage.
37
37
  * Correct default for `TECH_DOC`, for secondary `SAAS_APP` surfaces
38
38
  * (e.g., an admin console reached by handoff from a primary app),
@@ -239,26 +239,25 @@ export declare const AppServiceDefinitionSchema: z.ZodObject<{
239
239
  enabled: z.ZodDefault<z.ZodBoolean>;
240
240
  reportOnly: z.ZodDefault<z.ZodBoolean>;
241
241
  mergeStrategy: z.ZodDefault<z.ZodEnum<typeof import("./csp.schemas").CspMergeStrategy>>;
242
- directives: z.ZodDefault<z.ZodObject<Record<"default-src" | "script-src" | "style-src" | "img-src" | "connect-src" | "font-src" | "frame-src" | "frame-ancestors" | "object-src" | "form-action" | "base-uri" | "manifest-src" | "media-src" | "worker-src", z.ZodOptional<z.ZodArray<z.ZodString>>>, z.core.$strict>>;
242
+ directives: z.ZodDefault<z.ZodObject<{
243
+ "default-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
244
+ "script-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
245
+ "style-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
246
+ "img-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
247
+ "connect-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
248
+ "font-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
249
+ "frame-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
250
+ "frame-ancestors": z.ZodOptional<z.ZodArray<z.ZodString>>;
251
+ "object-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
252
+ "form-action": z.ZodOptional<z.ZodArray<z.ZodString>>;
253
+ "base-uri": z.ZodOptional<z.ZodArray<z.ZodString>>;
254
+ "manifest-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
255
+ "media-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
256
+ "worker-src": z.ZodOptional<z.ZodArray<z.ZodString>>;
257
+ }, z.core.$strict>>;
243
258
  reportUri: z.ZodOptional<z.ZodString>;
259
+ reportTo: z.ZodOptional<z.ZodURL>;
244
260
  }, z.core.$strict>>;
245
- /**
246
- * Container isolation — the same contract minions and workers carry, applied to
247
- * the two container kinds that had none: the app backend and each frontend.
248
- *
249
- * `.optional()` here, unlike the minion/worker `.prefault({})`, because the
250
- * correct DEFAULT depends on the kind and the kind is not known until the row
251
- * is read: a backend runs Node as {@link APP_BACKEND_DEFAULT_RUNTIME_UID}, a
252
- * frontend runs nginx as {@link APP_FRONTEND_DEFAULT_RUNTIME_UID}. Emitting one
253
- * number for both would hand half the services a uid their image does not
254
- * define. Callers resolve it through {@link resolveAppServiceIsolation}, which
255
- * is where "authored nothing" becomes a hardened value — never at a renderer,
256
- * so the two renderers cannot disagree.
257
- *
258
- * The floor is absent for the same reason it is absent from the minion and
259
- * worker schemas: it is emitted unconditionally and must not be authorable
260
- * down. See {@link RuntimeIsolationSchema}.
261
- */
262
261
  isolation: z.ZodOptional<z.ZodObject<{
263
262
  runAsUser: z.ZodOptional<z.ZodNumber>;
264
263
  runAsGroup: z.ZodOptional<z.ZodNumber>;
@@ -302,13 +301,12 @@ export type DataAccess = z.infer<typeof DataAccessSchema>;
302
301
  * Minimal "I live at this path" reference for a per-folder app sub-config
303
302
  * (`wildo.minion.config.ts`, `wildo.worker.config.ts`, `wildo.specifications.config.ts`).
304
303
  *
305
- * Tightened to `z.strictObject` (M-3 in
306
- * `.cursor/plans/minions-and-workers-implementation.md`) so authoring an
304
+ * Tightened to `z.strictObject` so authoring an
307
305
  * unknown key — e.g. a typo `pat:` instead of `path:`, or a stray
308
306
  * `resourceAccess` on a `workers` entry where it has no meaning today —
309
307
  * fails fast at parse time rather than being silently dropped. The
310
308
  * minions bucket value schema in `define-saas-config.ts` extends this
311
- * shape (still strict) to add `resourceAccess` per KD-11.
309
+ * shape (still strict) to add `resourceAccess`.
312
310
  */
313
311
  export declare const AppRefSchema: z.ZodObject<{
314
312
  path: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;A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BAA0B;;;;;;;;;;;;;;;;IAOrC;;;;;;;;;;;;;;;;OAgBG;;;;;;;kBAiBH,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF,eAAO,MAAM,0BAA0B;;;kBAG5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY;;kBAEvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OA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;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwCrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEnF,eAAO,MAAM,0BAA0B;;;kBAG5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY;;kBAEvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -30,11 +30,11 @@ export var AppLibraryType;
30
30
  })(AppLibraryType || (AppLibraryType = {}));
31
31
  /**
32
32
  * How the receiving frontend stores the JWT pair after a cross-frontend
33
- * handoff exchange (`cross-app-jwt-propagation.md` K-4).
33
+ * handoff exchange.
34
34
  *
35
35
  * - `'ephemeral'` (default) → `EphemeralSessionTokenStorage` (in-memory,
36
36
  * dies with the tab). Avoids token poisoning when the source frontend
37
- * already holds a persistent session, and matches the existing W7.3b
37
+ * already holds a persistent session, and matches the existing
38
38
  * `Auth_OneOffSession` guard that refuses non-`Ephemeral` storage.
39
39
  * Correct default for `TECH_DOC`, for secondary `SAAS_APP` surfaces
40
40
  * (e.g., an admin console reached by handoff from a primary app),
@@ -332,13 +332,12 @@ export const DataAccessSchema = z.object({
332
332
  * Minimal "I live at this path" reference for a per-folder app sub-config
333
333
  * (`wildo.minion.config.ts`, `wildo.worker.config.ts`, `wildo.specifications.config.ts`).
334
334
  *
335
- * Tightened to `z.strictObject` (M-3 in
336
- * `.cursor/plans/minions-and-workers-implementation.md`) so authoring an
335
+ * Tightened to `z.strictObject` so authoring an
337
336
  * unknown key — e.g. a typo `pat:` instead of `path:`, or a stray
338
337
  * `resourceAccess` on a `workers` entry where it has no meaning today —
339
338
  * fails fast at parse time rather than being silently dropped. The
340
339
  * minions bucket value schema in `define-saas-config.ts` extends this
341
- * shape (still strict) to add `resourceAccess` per KD-11.
340
+ * shape (still strict) to add `resourceAccess`.
342
341
  */
343
342
  export const AppRefSchema = z.strictObject({
344
343
  path: z.string().min(1),
@@ -1 +1 @@
1
- {"version":3,"file":"service-definitions.schemas.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,YAAY,EAAE,WAAW,C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AC,CAAC,MAAM,CAAC;IAC3C,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC;AAGH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { WildoCspConfigSchema } from './csp.schemas';\n\n/**\n * `AppFrontendType` lives in `@wildo-ai/saas-models/public-runtime` so the\n * backend's `FrontendServiceDefinitionSchema` (`@wildo-ai/saas-models`) and\n * client-bundle consumers (website discovery, scaffolding, CSP config,\n * companion services) can read the same enum without booting the heavy\n * decorator-bound schema graph. The atom is imported from the\n * `/public-runtime` subpath (NOT the package root barrel) so this file\n * stays free of `initZodDecorators()` side effects — `import { z } from 'zod'`\n * only, plus one decorator-free public-runtime import.\n *\n * The re-export below preserves every existing\n * `import { AppFrontendType } from '@wildo-ai/platform-config-lib'` call site\n * unchanged. Single source of truth (`@wildo-ai/saas-models`) with the\n * original public surface preserved.\n *\n * For the kind-by-kind taxonomy (`SAAS_APP` / `STATIC_WEBSITE` / `TECH_DOC`)\n * and the locked \"no native variants\" design decision, see the file-level\n * JSDoc in `engine/saas-models/src/config/app-frontend-type.shared.schemas.ts`\n * — that is the canonical home; do NOT duplicate the explanation here.\n */\nimport { AppFrontendType } from '@wildo-ai/saas-models/public-runtime';\n\nexport { AppFrontendType };\n\nexport enum AppLibraryType {\n FULLSTACK = 'fullstack',\n FRONTEND = 'frontend',\n BACKEND = 'backend',\n}\n\n/**\n * How the receiving frontend stores the JWT pair after a cross-frontend\n * handoff exchange (`cross-app-jwt-propagation.md` K-4).\n *\n * - `'ephemeral'` (default) → `EphemeralSessionTokenStorage` (in-memory,\n * dies with the tab). Avoids token poisoning when the source frontend\n * already holds a persistent session, and matches the existing W7.3b\n * `Auth_OneOffSession` guard that refuses non-`Ephemeral` storage.\n * Correct default for `TECH_DOC`, for secondary `SAAS_APP` surfaces\n * (e.g., an admin console reached by handoff from a primary app),\n * and for `STATIC_WEBSITE` (which never stores tokens anyway).\n * - `'persistent'` → `PersistentSessionTokenStorage` (localStorage).\n * Opt-in for the primary `SAAS_APP` surface where the user expects\n * their session to survive a tab close. Each service authors this\n * explicitly; there is no auto-derivation from `frontendType`\n * because a project can have multiple `SAAS_APP` services where\n * only one is \"primary\".\n */\nexport const APP_SESSION_STORAGES = ['persistent', 'ephemeral'] as const;\nexport type AppSessionStorage = (typeof APP_SESSION_STORAGES)[number];\n\n/**\n * The writable mount every containerised app runtime gets, unconditionally.\n *\n * Shared by minions and workers rather than defined twice: it is paired with\n * `readOnlyRootFilesystem: true` in both renderers, and two copies of a path this\n * load-bearing WILL drift. For minions the pairing is acute — the file liveness\n * heartbeat is written here, so separating them restart-loops healthy pods — and\n * while workers probe over HTTP instead, a read-only rootfs with nowhere to write\n * a temp file is its own failure, arriving later and less legibly.\n */\nexport const RUNTIME_MANDATORY_WRITABLE_PATH = '/tmp';\n\n/**\n * Container isolation knobs an app runtime (minion or worker) may author.\n *\n * ## What is deliberately ABSENT\n *\n * The security floor — `runAsNonRoot`, `readOnlyRootFilesystem`,\n * `allowPrivilegeEscalation: false`, `capabilities: drop [ALL]`,\n * `seccompProfile`, `automountServiceAccountToken: false` — is emitted\n * unconditionally by the renderers and cannot be authored down. A config key\n * that turns off root-filesystem protection is a bypass wearing a settings hat;\n * lowering the floor must be a deliberate schema change under review.\n *\n * ## What IS authorable, and why each earns it\n *\n * - `runAsUser` / `runAsGroup` — image-dependent, and demonstrably so: Wonder\n * Todos' Node worker runs as uid 1000 (`USER node`) while its Rust worker uses\n * distroless `nonroot` at uid 65532. No single default is correct, and a wrong\n * uid with `runAsNonRoot: true` means the kubelet refuses to start the\n * container.\n * - `writablePaths` — ADDITIVE only, on top of the always-present\n * {@link RUNTIME_MANDATORY_WRITABLE_PATH}. It can grant writability, never\n * remove it, so it cannot weaken the read-only rootfs.\n * - `pidsLimit` — a fork-bomb ceiling; purely a bound.\n */\nexport const RUNTIME_DEFAULT_PIDS_LIMIT = 512;\n\n/**\n * The field CONSTRAINTS, defined once and shared by the two isolation schemas\n * below so a validation rule cannot hold on one and not the other.\n *\n * `runAsUser`/`runAsGroup` are `.positive()` because 0 is root — the identity\n * the whole floor exists to forbid — and a schema that accepts it would let a\n * config re-enable root while `runAsNonRoot: true` is still emitted, producing a\n * container the kubelet refuses for a reason the config never mentions.\n */\nconst runtimeIsolationFields = {\n runAsUser: z.number().int().positive(),\n runAsGroup: z.number().int().positive(),\n writablePaths: z.array(z.string().min(1).startsWith('/')),\n pidsLimit: z.number().int().positive(),\n};\n\nexport const RuntimeIsolationSchema = z.strictObject({\n runAsUser: runtimeIsolationFields.runAsUser.default(10001),\n runAsGroup: runtimeIsolationFields.runAsGroup.default(10001),\n writablePaths: runtimeIsolationFields.writablePaths.default([]),\n pidsLimit: runtimeIsolationFields.pidsLimit.default(RUNTIME_DEFAULT_PIDS_LIMIT),\n});\n\n/**\n * The AUTHORED form: every knob optional and — critically — carrying NO default.\n *\n * This is not the same thing as `RuntimeIsolationSchema.partial()`, and the\n * difference is a real defect rather than a style point. `.partial()` only makes\n * a field optional; the inner `.default(10001)` still FIRES, so an authored\n * `isolation: { runAsUser: 101 }` parses to a `runAsGroup` of 10001 and the\n * caller can no longer tell \"authored 10001\" from \"authored nothing\". For a\n * service row that difference decides which account the container runs as, and\n * the wrong answer is a pod that never starts.\n *\n * Caught by the pin `honours an authored image-dependent uid…` in\n * `service-definitions.schemas.test.ts`, which was written expecting the kind\n * default and got 10001.\n */\nexport const AuthoredRuntimeIsolationSchema = z.strictObject({\n runAsUser: runtimeIsolationFields.runAsUser.optional(),\n runAsGroup: runtimeIsolationFields.runAsGroup.optional(),\n writablePaths: runtimeIsolationFields.writablePaths.optional(),\n pidsLimit: runtimeIsolationFields.pidsLimit.optional(),\n});\nexport type AuthoredRuntimeIsolation = z.infer<typeof AuthoredRuntimeIsolationSchema>;\nexport type RuntimeIsolation = z.infer<typeof RuntimeIsolationSchema>;\n\n/**\n * Shared `superRefine` body for an authored isolation block.\n *\n * `RUNTIME_MANDATORY_WRITABLE_PATH` is mounted by the renderers, so authoring it\n * again emits two volumeMounts on one mountPath — which Kubernetes rejects at\n * admission, meaning the pod never starts and the error names a duplicate mount\n * rather than the config line that caused it. Caught here, where the message can\n * point at the authored value.\n */\nexport function refineRuntimeIsolation(\n isolation: RuntimeIsolation,\n ctx: z.RefinementCtx,\n path: readonly (string | number)[] = ['isolation'],\n): void {\n const mandatory = isolation.writablePaths.filter(\n (p) => p === RUNTIME_MANDATORY_WRITABLE_PATH || p === `${RUNTIME_MANDATORY_WRITABLE_PATH}/`,\n );\n if (mandatory.length > 0) {\n ctx.addIssue({\n code: 'custom',\n path: [...path, 'writablePaths'],\n message:\n `'${RUNTIME_MANDATORY_WRITABLE_PATH}' is always mounted — remove it from writablePaths, which is `\n + 'for ADDITIONAL scratch mounts only. Authoring it twice emits two volumeMounts on one '\n + 'mountPath and Kubernetes refuses the pod.',\n });\n }\n\n const seen = new Set<string>();\n for (const p of isolation.writablePaths) {\n if (seen.has(p)) {\n ctx.addIssue({\n code: 'custom',\n path: [...path, 'writablePaths'],\n message: `Duplicate writable path '${p}' — same duplicate-mountPath rejection as above.`,\n });\n }\n seen.add(p);\n }\n}\n\n/**\n * The uid/gid an application BACKEND container runs as when nothing is authored.\n *\n * 1001 is not arbitrary and not new: `templates/infra/docker-images/platform/\n * Dockerfile.platform-base` has created `wildo` at 1001 and ended on `USER wildo`\n * since the platform images were written. Reusing it makes the app backend match\n * the convention the framework already ships rather than inventing a third number\n * beside the minion/worker 10001.\n *\n * The paired obligation lives in `Dockerfile.backend-base`: an image whose files\n * are owned by root and whose `USER` is root will be REFUSED by the kubelet under\n * `runAsNonRoot: true`. Schema default and image must move together.\n */\nexport const APP_BACKEND_DEFAULT_RUNTIME_UID = 1001;\n\n/**\n * The uid/gid an application FRONTEND container runs as when nothing is authored.\n *\n * 101 is the `nginx` account in `nginx:1.27-alpine` (verified by running the\n * image, not assumed). Every Wildo frontend is a static bundle served by nginx —\n * the framework mandates that runtime — so defaulting to any other uid would make\n * \"authored nothing\" the broken case, which is exactly the case that must come\n * out working.\n */\nexport const APP_FRONTEND_DEFAULT_RUNTIME_UID = 101;\n\n/**\n * ## Why the frontend container port is NOT changed, measured rather than assumed\n *\n * The obvious reasoning — \"the floor drops ALL capabilities, so a non-root nginx\n * cannot bind :80 without `CAP_NET_BIND_SERVICE`\" — is FALSE in a container, and\n * an earlier revision of this file asserted it in JSDoc before anyone ran it.\n *\n * Docker and containerd both set `net.ipv4.ip_unprivileged_port_start=0` inside\n * the container's network namespace, so ports below 1024 are not privileged there\n * at all. Measured against `nginx:1.27-alpine`: `cat\n * /proc/sys/net/ipv4/ip_unprivileged_port_start` prints `0`, and nginx running as\n * uid 101 with a read-only rootfs and no capabilities serves HTTP 200 on :80.\n *\n * So the frontends keep `listen 80` and the Service keeps `targetPort: 80`. No\n * nginx config, Dockerfile `EXPOSE`, Service or Traefik router changes are part\n * of this floor. What nginx DOES need is\n * {@link APP_FRONTEND_MANDATORY_WRITABLE_PATHS} — see there.\n */\n\n/**\n * Writable mounts an nginx frontend needs BEYOND\n * {@link RUNTIME_MANDATORY_WRITABLE_PATH}, emitted unconditionally rather than\n * authored.\n *\n * They are not additive author choices — they are what the runtime the framework\n * MANDATES cannot start without, measured against `nginx:1.27-alpine`:\n *\n * - `/var/cache/nginx` — the parent of `client_temp`/`proxy_temp`/… . Present in\n * the image but owned by `root:root` 0755, so a non-root master cannot create\n * the temp directories inside it.\n * - `/run` — where the stock `nginx.conf` writes `nginx.pid` (`/var/run` is a\n * symlink to it). Root-owned, so the pid write fails and nginx exits.\n *\n * Mounting them as writable volumes is preferred over `chown`-ing in every\n * application's Dockerfile: it keeps the requirement in the framework's runtime\n * spec, where it is emitted once and cannot be forgotten per app.\n */\nexport const APP_FRONTEND_MANDATORY_WRITABLE_PATHS: readonly string[] = ['/var/cache/nginx', '/run'];\n\n/**\n * Resolve a service row's effective container isolation.\n *\n * THE reason this exists as a function rather than a schema default: the correct\n * default depends on the container KIND, and a Zod field default cannot see its\n * sibling `frontendType`. Two renderers consume this (k8s manifests and the\n * compose app lane) and they must not each apply their own fallback — that is how\n * a k8s pod and a compose container end up running as different users from one\n * config row.\n *\n * Frontend rows additionally receive {@link APP_FRONTEND_MANDATORY_WRITABLE_PATHS}\n * prepended, because nginx cannot start without them. They are prepended rather\n * than appended so an author reading the rendered manifest sees the framework's\n * mounts first, and deduplicated against the authored list so re-authoring one is\n * tolerated here (unlike `/tmp`, these are nginx implementation detail rather\n * than a documented contract, so a duplicate is a mistake worth absorbing instead\n * of a config error worth failing on).\n */\nexport function resolveAppServiceIsolation(\n service: Pick<AppServiceDefinition, 'frontendType'> & { isolation?: Partial<RuntimeIsolation> },\n): RuntimeIsolation {\n const isFrontend = service.frontendType !== undefined;\n const defaultUid = isFrontend ? APP_FRONTEND_DEFAULT_RUNTIME_UID : APP_BACKEND_DEFAULT_RUNTIME_UID;\n const authoredPaths = service.isolation?.writablePaths ?? [];\n const mandatory = isFrontend ? APP_FRONTEND_MANDATORY_WRITABLE_PATHS : [];\n\n return {\n runAsUser: service.isolation?.runAsUser ?? defaultUid,\n runAsGroup: service.isolation?.runAsGroup ?? defaultUid,\n writablePaths: [...mandatory, ...authoredPaths.filter((p) => !mandatory.includes(p))],\n pidsLimit: service.isolation?.pidsLimit ?? RUNTIME_DEFAULT_PIDS_LIMIT,\n };\n}\n\n/**\n * One service inside `wildo.saas.config.ts` `services` map.\n *\n * `sessionStorage` (default `'ephemeral'`) is the per-service explicit\n * opt-in to localStorage; the default matches the non-primary-surface\n * common case. See `APP_SESSION_STORAGES` JSDoc for the rationale.\n *\n * `csp?` lives here only for `frontendType: SAAS_APP`. Unlike\n * `STATIC_WEBSITE` / `TECH_DOC`, the main app currently has no\n * engine-owned per-service config file (`wildo.website.config.ts` /\n * `wildo.tech-doc.config.ts`) — the service row itself is therefore the\n * honest app-static authoring seam for SPA-specific posture such as CSP.\n * Non-app services MUST reject authored `csp` here to preserve the\n * semantic split between the generic service declaration and the\n * website/docs engine-owned config files.\n *\n * No host-binding or public-URL authoring on this schema. The public\n * hostname per service is authored per-environment in\n * `infra.serviceHosts` — that seam is in `define-infra-env-config.ts`\n * and is intentionally decoupled from `frontendType` and from the\n * service key so the app developer can map any service to any host\n * (e.g. `services.docs` published at `dev.example.com`).\n */\nexport const AppServiceDefinitionSchema = z.strictObject({\n path: z.string().min(1),\n serviceName: z.string().min(1),\n defaultPort: z.number().int().positive().optional(),\n frontendType: z.enum(AppFrontendType).optional(),\n sessionStorage: z.enum(APP_SESSION_STORAGES).default('ephemeral'),\n csp: WildoCspConfigSchema.optional(),\n /**\n * Container isolation — the same contract minions and workers carry, applied to\n * the two container kinds that had none: the app backend and each frontend.\n *\n * `.optional()` here, unlike the minion/worker `.prefault({})`, because the\n * correct DEFAULT depends on the kind and the kind is not known until the row\n * is read: a backend runs Node as {@link APP_BACKEND_DEFAULT_RUNTIME_UID}, a\n * frontend runs nginx as {@link APP_FRONTEND_DEFAULT_RUNTIME_UID}. Emitting one\n * number for both would hand half the services a uid their image does not\n * define. Callers resolve it through {@link resolveAppServiceIsolation}, which\n * is where \"authored nothing\" becomes a hardened value — never at a renderer,\n * so the two renderers cannot disagree.\n *\n * The floor is absent for the same reason it is absent from the minion and\n * worker schemas: it is emitted unconditionally and must not be authorable\n * down. See {@link RuntimeIsolationSchema}.\n */\n isolation: AuthoredRuntimeIsolationSchema.optional(),\n}).superRefine((service, ctx) => {\n if (service.isolation) {\n refineRuntimeIsolation(resolveAppServiceIsolation(service), ctx);\n }\n if (service.csp !== undefined && service.frontendType !== AppFrontendType.SAAS_APP) {\n ctx.addIssue({\n code: 'custom',\n path: ['csp'],\n message:\n 'services.<key>.csp is only supported for `frontendType: SAAS_APP`. '\n + 'STATIC_WEBSITE and TECH_DOC services must author CSP in their per-service '\n + '`wildo.website.config.ts` / `wildo.tech-doc.config.ts` files, and '\n + 'non-frontend services cannot ship a document CSP.',\n });\n }\n});\nexport type AppServiceDefinition = z.infer<typeof AppServiceDefinitionSchema>;\nexport type AppServiceDefinitionInput = z.input<typeof AppServiceDefinitionSchema>;\n\nexport const AppLibraryDefinitionSchema = z.object({\n path: z.string().min(1),\n type: z.enum(AppLibraryType),\n}).strict();\nexport type AppLibraryDefinition = z.infer<typeof AppLibraryDefinitionSchema>;\n\nexport const WorkerRuntimeSchema = z.object({\n type: z.string().min(1),\n language: z.string().min(1),\n});\nexport type WorkerRuntime = z.infer<typeof WorkerRuntimeSchema>;\n\nexport const ResourceLimitsSchema = z.object({\n cpu: z.string().min(1).optional(),\n memory: z.string().min(1).optional(),\n});\nexport type ResourceLimits = z.infer<typeof ResourceLimitsSchema>;\n\nexport const DataAccessSchema = z.object({\n database: z.enum(['read-only', 'read-write', 'none']).optional(),\n cache: z.boolean().optional(),\n queue: z.enum(['consumer', 'producer', 'both', 'none']).optional(),\n});\nexport type DataAccess = z.infer<typeof DataAccessSchema>;\n\n/**\n * Minimal \"I live at this path\" reference for a per-folder app sub-config\n * (`wildo.minion.config.ts`, `wildo.worker.config.ts`, `wildo.specifications.config.ts`).\n *\n * Tightened to `z.strictObject` (M-3 in\n * `.cursor/plans/minions-and-workers-implementation.md`) so authoring an\n * unknown key — e.g. a typo `pat:` instead of `path:`, or a stray\n * `resourceAccess` on a `workers` entry where it has no meaning today —\n * fails fast at parse time rather than being silently dropped. The\n * minions bucket value schema in `define-saas-config.ts` extends this\n * shape (still strict) to add `resourceAccess` per KD-11.\n */\nexport const AppRefSchema = z.strictObject({\n path: z.string().min(1),\n});\nexport type AppRef = z.infer<typeof AppRefSchema>;\n"]}
1
+ {"version":3,"file":"service-definitions.schemas.js","sourceRoot":"","sources":["../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,YAAY,EAAE,WAAW,CAAU,CAAC;AAGzE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAC;AAE9C;;;;;;;;GAQG;AACH,MAAM,sBAAsB,GAAG;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EA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Q,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;IAChE,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC;AAGH;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,YAAY,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACxB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { WildoCspConfigSchema } from './csp.schemas';\n\n/**\n * `AppFrontendType` lives in `@wildo-ai/saas-models/public-runtime` so the\n * backend's `FrontendServiceDefinitionSchema` (`@wildo-ai/saas-models`) and\n * client-bundle consumers (website discovery, scaffolding, CSP config,\n * companion services) can read the same enum without booting the heavy\n * decorator-bound schema graph. The atom is imported from the\n * `/public-runtime` subpath (NOT the package root barrel) so this file\n * stays free of `initZodDecorators()` side effects — `import { z } from 'zod'`\n * only, plus one decorator-free public-runtime import.\n *\n * The re-export below preserves every existing\n * `import { AppFrontendType } from '@wildo-ai/platform-config-lib'` call site\n * unchanged. Single source of truth (`@wildo-ai/saas-models`) with the\n * original public surface preserved.\n *\n * For the kind-by-kind taxonomy (`SAAS_APP` / `STATIC_WEBSITE` / `TECH_DOC`)\n * and the locked \"no native variants\" design decision, see the file-level\n * JSDoc in `engine/saas-models/src/config/app-frontend-type.shared.schemas.ts`\n * — that is the canonical home; do NOT duplicate the explanation here.\n */\nimport { AppFrontendType } from '@wildo-ai/saas-models/public-runtime';\n\nexport { AppFrontendType };\n\nexport enum AppLibraryType {\n FULLSTACK = 'fullstack',\n FRONTEND = 'frontend',\n BACKEND = 'backend',\n}\n\n/**\n * How the receiving frontend stores the JWT pair after a cross-frontend\n * handoff exchange.\n *\n * - `'ephemeral'` (default) → `EphemeralSessionTokenStorage` (in-memory,\n * dies with the tab). Avoids token poisoning when the source frontend\n * already holds a persistent session, and matches the existing\n * `Auth_OneOffSession` guard that refuses non-`Ephemeral` storage.\n * Correct default for `TECH_DOC`, for secondary `SAAS_APP` surfaces\n * (e.g., an admin console reached by handoff from a primary app),\n * and for `STATIC_WEBSITE` (which never stores tokens anyway).\n * - `'persistent'` → `PersistentSessionTokenStorage` (localStorage).\n * Opt-in for the primary `SAAS_APP` surface where the user expects\n * their session to survive a tab close. Each service authors this\n * explicitly; there is no auto-derivation from `frontendType`\n * because a project can have multiple `SAAS_APP` services where\n * only one is \"primary\".\n */\nexport const APP_SESSION_STORAGES = ['persistent', 'ephemeral'] as const;\nexport type AppSessionStorage = (typeof APP_SESSION_STORAGES)[number];\n\n/**\n * The writable mount every containerised app runtime gets, unconditionally.\n *\n * Shared by minions and workers rather than defined twice: it is paired with\n * `readOnlyRootFilesystem: true` in both renderers, and two copies of a path this\n * load-bearing WILL drift. For minions the pairing is acute — the file liveness\n * heartbeat is written here, so separating them restart-loops healthy pods — and\n * while workers probe over HTTP instead, a read-only rootfs with nowhere to write\n * a temp file is its own failure, arriving later and less legibly.\n */\nexport const RUNTIME_MANDATORY_WRITABLE_PATH = '/tmp';\n\n/**\n * Container isolation knobs an app runtime (minion or worker) may author.\n *\n * ## What is deliberately ABSENT\n *\n * The security floor — `runAsNonRoot`, `readOnlyRootFilesystem`,\n * `allowPrivilegeEscalation: false`, `capabilities: drop [ALL]`,\n * `seccompProfile`, `automountServiceAccountToken: false` — is emitted\n * unconditionally by the renderers and cannot be authored down. A config key\n * that turns off root-filesystem protection is a bypass wearing a settings hat;\n * lowering the floor must be a deliberate schema change under review.\n *\n * ## What IS authorable, and why each earns it\n *\n * - `runAsUser` / `runAsGroup` — image-dependent, and demonstrably so: Wonder\n * Todos' Node worker runs as uid 1000 (`USER node`) while its Rust worker uses\n * distroless `nonroot` at uid 65532. No single default is correct, and a wrong\n * uid with `runAsNonRoot: true` means the kubelet refuses to start the\n * container.\n * - `writablePaths` — ADDITIVE only, on top of the always-present\n * {@link RUNTIME_MANDATORY_WRITABLE_PATH}. It can grant writability, never\n * remove it, so it cannot weaken the read-only rootfs.\n * - `pidsLimit` — a fork-bomb ceiling; purely a bound.\n */\nexport const RUNTIME_DEFAULT_PIDS_LIMIT = 512;\n\n/**\n * The field CONSTRAINTS, defined once and shared by the two isolation schemas\n * below so a validation rule cannot hold on one and not the other.\n *\n * `runAsUser`/`runAsGroup` are `.positive()` because 0 is root — the identity\n * the whole floor exists to forbid — and a schema that accepts it would let a\n * config re-enable root while `runAsNonRoot: true` is still emitted, producing a\n * container the kubelet refuses for a reason the config never mentions.\n */\nconst runtimeIsolationFields = {\n runAsUser: z.number().int().positive(),\n runAsGroup: z.number().int().positive(),\n writablePaths: z.array(z.string().min(1).startsWith('/')),\n pidsLimit: z.number().int().positive(),\n};\n\nexport const RuntimeIsolationSchema = z.strictObject({\n runAsUser: runtimeIsolationFields.runAsUser.default(10001),\n runAsGroup: runtimeIsolationFields.runAsGroup.default(10001),\n writablePaths: runtimeIsolationFields.writablePaths.default([]),\n pidsLimit: runtimeIsolationFields.pidsLimit.default(RUNTIME_DEFAULT_PIDS_LIMIT),\n});\n\n/**\n * The AUTHORED form: every knob optional and — critically — carrying NO default.\n *\n * This is not the same thing as `RuntimeIsolationSchema.partial()`, and the\n * difference is a real defect rather than a style point. `.partial()` only makes\n * a field optional; the inner `.default(10001)` still FIRES, so an authored\n * `isolation: { runAsUser: 101 }` parses to a `runAsGroup` of 10001 and the\n * caller can no longer tell \"authored 10001\" from \"authored nothing\". For a\n * service row that difference decides which account the container runs as, and\n * the wrong answer is a pod that never starts.\n *\n * Caught by the pin `honours an authored image-dependent uid…` in\n * `service-definitions.schemas.test.ts`, which was written expecting the kind\n * default and got 10001.\n */\nexport const AuthoredRuntimeIsolationSchema = z.strictObject({\n runAsUser: runtimeIsolationFields.runAsUser.optional(),\n runAsGroup: runtimeIsolationFields.runAsGroup.optional(),\n writablePaths: runtimeIsolationFields.writablePaths.optional(),\n pidsLimit: runtimeIsolationFields.pidsLimit.optional(),\n});\nexport type AuthoredRuntimeIsolation = z.infer<typeof AuthoredRuntimeIsolationSchema>;\nexport type RuntimeIsolation = z.infer<typeof RuntimeIsolationSchema>;\n\n/**\n * Shared `superRefine` body for an authored isolation block.\n *\n * `RUNTIME_MANDATORY_WRITABLE_PATH` is mounted by the renderers, so authoring it\n * again emits two volumeMounts on one mountPath — which Kubernetes rejects at\n * admission, meaning the pod never starts and the error names a duplicate mount\n * rather than the config line that caused it. Caught here, where the message can\n * point at the authored value.\n */\nexport function refineRuntimeIsolation(\n isolation: RuntimeIsolation,\n ctx: z.RefinementCtx,\n path: readonly (string | number)[] = ['isolation'],\n): void {\n const mandatory = isolation.writablePaths.filter(\n (p) => p === RUNTIME_MANDATORY_WRITABLE_PATH || p === `${RUNTIME_MANDATORY_WRITABLE_PATH}/`,\n );\n if (mandatory.length > 0) {\n ctx.addIssue({\n code: 'custom',\n path: [...path, 'writablePaths'],\n message:\n `'${RUNTIME_MANDATORY_WRITABLE_PATH}' is always mounted — remove it from writablePaths, which is `\n + 'for ADDITIONAL scratch mounts only. Authoring it twice emits two volumeMounts on one '\n + 'mountPath and Kubernetes refuses the pod.',\n });\n }\n\n const seen = new Set<string>();\n for (const p of isolation.writablePaths) {\n if (seen.has(p)) {\n ctx.addIssue({\n code: 'custom',\n path: [...path, 'writablePaths'],\n message: `Duplicate writable path '${p}' — same duplicate-mountPath rejection as above.`,\n });\n }\n seen.add(p);\n }\n}\n\n/**\n * The uid/gid an application BACKEND container runs as when nothing is authored.\n *\n * 1001 is not arbitrary and not new: `templates/infra/docker-images/platform/\n * Dockerfile.platform-base` has created `wildo` at 1001 and ended on `USER wildo`\n * since the platform images were written. Reusing it makes the app backend match\n * the convention the framework already ships rather than inventing a third number\n * beside the minion/worker 10001.\n *\n * The paired obligation lives in `Dockerfile.backend-base`: an image whose files\n * are owned by root and whose `USER` is root will be REFUSED by the kubelet under\n * `runAsNonRoot: true`. Schema default and image must move together.\n */\nexport const APP_BACKEND_DEFAULT_RUNTIME_UID = 1001;\n\n/**\n * The uid/gid an application FRONTEND container runs as when nothing is authored.\n *\n * 101 is the `nginx` account in `nginx:1.27-alpine` (verified by running the\n * image, not assumed). Every Wildo frontend is a static bundle served by nginx —\n * the framework mandates that runtime — so defaulting to any other uid would make\n * \"authored nothing\" the broken case, which is exactly the case that must come\n * out working.\n */\nexport const APP_FRONTEND_DEFAULT_RUNTIME_UID = 101;\n\n/**\n * ## Why the frontend container port is NOT changed, measured rather than assumed\n *\n * The obvious reasoning — \"the floor drops ALL capabilities, so a non-root nginx\n * cannot bind :80 without `CAP_NET_BIND_SERVICE`\" — is FALSE in a container, and\n * an earlier revision of this file asserted it in JSDoc before anyone ran it.\n *\n * Docker and containerd both set `net.ipv4.ip_unprivileged_port_start=0` inside\n * the container's network namespace, so ports below 1024 are not privileged there\n * at all. Measured against `nginx:1.27-alpine`: `cat\n * /proc/sys/net/ipv4/ip_unprivileged_port_start` prints `0`, and nginx running as\n * uid 101 with a read-only rootfs and no capabilities serves HTTP 200 on :80.\n *\n * So the frontends keep `listen 80` and the Service keeps `targetPort: 80`. No\n * nginx config, Dockerfile `EXPOSE`, Service or Traefik router changes are part\n * of this floor. What nginx DOES need is\n * {@link APP_FRONTEND_MANDATORY_WRITABLE_PATHS} — see there.\n */\n\n/**\n * Writable mounts an nginx frontend needs BEYOND\n * {@link RUNTIME_MANDATORY_WRITABLE_PATH}, emitted unconditionally rather than\n * authored.\n *\n * They are not additive author choices — they are what the runtime the framework\n * MANDATES cannot start without, measured against `nginx:1.27-alpine`:\n *\n * - `/var/cache/nginx` — the parent of `client_temp`/`proxy_temp`/… . Present in\n * the image but owned by `root:root` 0755, so a non-root master cannot create\n * the temp directories inside it.\n * - `/run` — where the stock `nginx.conf` writes `nginx.pid` (`/var/run` is a\n * symlink to it). Root-owned, so the pid write fails and nginx exits.\n *\n * Mounting them as writable volumes is preferred over `chown`-ing in every\n * application's Dockerfile: it keeps the requirement in the framework's runtime\n * spec, where it is emitted once and cannot be forgotten per app.\n */\nexport const APP_FRONTEND_MANDATORY_WRITABLE_PATHS: readonly string[] = ['/var/cache/nginx', '/run'];\n\n/**\n * Resolve a service row's effective container isolation.\n *\n * THE reason this exists as a function rather than a schema default: the correct\n * default depends on the container KIND, and a Zod field default cannot see its\n * sibling `frontendType`. Two renderers consume this (k8s manifests and the\n * compose app lane) and they must not each apply their own fallback — that is how\n * a k8s pod and a compose container end up running as different users from one\n * config row.\n *\n * Frontend rows additionally receive {@link APP_FRONTEND_MANDATORY_WRITABLE_PATHS}\n * prepended, because nginx cannot start without them. They are prepended rather\n * than appended so an author reading the rendered manifest sees the framework's\n * mounts first, and deduplicated against the authored list so re-authoring one is\n * tolerated here (unlike `/tmp`, these are nginx implementation detail rather\n * than a documented contract, so a duplicate is a mistake worth absorbing instead\n * of a config error worth failing on).\n */\nexport function resolveAppServiceIsolation(\n service: Pick<AppServiceDefinition, 'frontendType'> & { isolation?: Partial<RuntimeIsolation> },\n): RuntimeIsolation {\n const isFrontend = service.frontendType !== undefined;\n const defaultUid = isFrontend ? APP_FRONTEND_DEFAULT_RUNTIME_UID : APP_BACKEND_DEFAULT_RUNTIME_UID;\n const authoredPaths = service.isolation?.writablePaths ?? [];\n const mandatory = isFrontend ? APP_FRONTEND_MANDATORY_WRITABLE_PATHS : [];\n\n return {\n runAsUser: service.isolation?.runAsUser ?? defaultUid,\n runAsGroup: service.isolation?.runAsGroup ?? defaultUid,\n writablePaths: [...mandatory, ...authoredPaths.filter((p) => !mandatory.includes(p))],\n pidsLimit: service.isolation?.pidsLimit ?? RUNTIME_DEFAULT_PIDS_LIMIT,\n };\n}\n\n/**\n * One service inside `wildo.saas.config.ts` `services` map.\n *\n * `sessionStorage` (default `'ephemeral'`) is the per-service explicit\n * opt-in to localStorage; the default matches the non-primary-surface\n * common case. See `APP_SESSION_STORAGES` JSDoc for the rationale.\n *\n * `csp?` lives here only for `frontendType: SAAS_APP`. Unlike\n * `STATIC_WEBSITE` / `TECH_DOC`, the main app currently has no\n * engine-owned per-service config file (`wildo.website.config.ts` /\n * `wildo.tech-doc.config.ts`) — the service row itself is therefore the\n * honest app-static authoring seam for SPA-specific posture such as CSP.\n * Non-app services MUST reject authored `csp` here to preserve the\n * semantic split between the generic service declaration and the\n * website/docs engine-owned config files.\n *\n * No host-binding or public-URL authoring on this schema. The public\n * hostname per service is authored per-environment in\n * `infra.serviceHosts` — that seam is in `define-infra-env-config.ts`\n * and is intentionally decoupled from `frontendType` and from the\n * service key so the app developer can map any service to any host\n * (e.g. `services.docs` published at `dev.example.com`).\n */\nexport const AppServiceDefinitionSchema = z.strictObject({\n path: z.string().min(1),\n serviceName: z.string().min(1),\n defaultPort: z.number().int().positive().optional(),\n frontendType: z.enum(AppFrontendType).optional(),\n sessionStorage: z.enum(APP_SESSION_STORAGES).default('ephemeral'),\n csp: WildoCspConfigSchema.optional(),\n /**\n * Container isolation — the same contract minions and workers carry, applied to\n * the two container kinds that had none: the app backend and each frontend.\n *\n * `.optional()` here, unlike the minion/worker `.prefault({})`, because the\n * correct DEFAULT depends on the kind and the kind is not known until the row\n * is read: a backend runs Node as {@link APP_BACKEND_DEFAULT_RUNTIME_UID}, a\n * frontend runs nginx as {@link APP_FRONTEND_DEFAULT_RUNTIME_UID}. Emitting one\n * number for both would hand half the services a uid their image does not\n * define. Callers resolve it through {@link resolveAppServiceIsolation}, which\n * is where \"authored nothing\" becomes a hardened value — never at a renderer,\n * so the two renderers cannot disagree.\n *\n * The floor is absent for the same reason it is absent from the minion and\n * worker schemas: it is emitted unconditionally and must not be authorable\n * down. See {@link RuntimeIsolationSchema}.\n */\n isolation: AuthoredRuntimeIsolationSchema.optional(),\n}).superRefine((service, ctx) => {\n if (service.isolation) {\n refineRuntimeIsolation(resolveAppServiceIsolation(service), ctx);\n }\n if (service.csp !== undefined && service.frontendType !== AppFrontendType.SAAS_APP) {\n ctx.addIssue({\n code: 'custom',\n path: ['csp'],\n message:\n 'services.<key>.csp is only supported for `frontendType: SAAS_APP`. '\n + 'STATIC_WEBSITE and TECH_DOC services must author CSP in their per-service '\n + '`wildo.website.config.ts` / `wildo.tech-doc.config.ts` files, and '\n + 'non-frontend services cannot ship a document CSP.',\n });\n }\n});\nexport type AppServiceDefinition = z.infer<typeof AppServiceDefinitionSchema>;\nexport type AppServiceDefinitionInput = z.input<typeof AppServiceDefinitionSchema>;\n\nexport const AppLibraryDefinitionSchema = z.object({\n path: z.string().min(1),\n type: z.enum(AppLibraryType),\n}).strict();\nexport type AppLibraryDefinition = z.infer<typeof AppLibraryDefinitionSchema>;\n\nexport const WorkerRuntimeSchema = z.object({\n type: z.string().min(1),\n language: z.string().min(1),\n});\nexport type WorkerRuntime = z.infer<typeof WorkerRuntimeSchema>;\n\nexport const ResourceLimitsSchema = z.object({\n cpu: z.string().min(1).optional(),\n memory: z.string().min(1).optional(),\n});\nexport type ResourceLimits = z.infer<typeof ResourceLimitsSchema>;\n\nexport const DataAccessSchema = z.object({\n database: z.enum(['read-only', 'read-write', 'none']).optional(),\n cache: z.boolean().optional(),\n queue: z.enum(['consumer', 'producer', 'both', 'none']).optional(),\n});\nexport type DataAccess = z.infer<typeof DataAccessSchema>;\n\n/**\n * Minimal \"I live at this path\" reference for a per-folder app sub-config\n * (`wildo.minion.config.ts`, `wildo.worker.config.ts`, `wildo.specifications.config.ts`).\n *\n * Tightened to `z.strictObject` so authoring an\n * unknown key — e.g. a typo `pat:` instead of `path:`, or a stray\n * `resourceAccess` on a `workers` entry where it has no meaning today —\n * fails fast at parse time rather than being silently dropped. The\n * minions bucket value schema in `define-saas-config.ts` extends this\n * shape (still strict) to add `resourceAccess`.\n */\nexport const AppRefSchema = z.strictObject({\n path: z.string().min(1),\n});\nexport type AppRef = z.infer<typeof AppRefSchema>;\n"]}
@@ -48,33 +48,15 @@ import { z } from 'zod';
48
48
  * once and neither can be half-written: an entry is either an address or a declaration of absence.
49
49
  */
50
50
  export declare const WildoSystemOfRecordEnvSchema: z.ZodUnion<readonly [z.ZodObject<{
51
- /**
52
- * This environment has NO access to the instance. Reads on a bound resource refuse with a stable
53
- * code, a scheduled pipeline is not dispatched, and the backend still boots — an application
54
- * whose ERP is simply not present in staging must still run.
55
- */
56
51
  enabled: z.ZodLiteral<false>;
57
52
  }, z.core.$strict>, z.ZodObject<{
58
- /**
59
- * The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,
60
- * `login`). Whether the set is COMPLETE is the seam's question, not this schema's.
61
- */
62
53
  address: z.ZodRecord<z.ZodString, z.ZodString>;
63
54
  }, z.core.$strict>]>;
64
55
  export type WildoSystemOfRecordEnv = z.infer<typeof WildoSystemOfRecordEnvSchema>;
65
56
  /** Every instance's address in this environment, keyed by the instance name the saas config declares. */
66
57
  export declare const WildoSystemsOfRecordEnvConfigSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
67
- /**
68
- * This environment has NO access to the instance. Reads on a bound resource refuse with a stable
69
- * code, a scheduled pipeline is not dispatched, and the backend still boots — an application
70
- * whose ERP is simply not present in staging must still run.
71
- */
72
58
  enabled: z.ZodLiteral<false>;
73
59
  }, z.core.$strict>, z.ZodObject<{
74
- /**
75
- * The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,
76
- * `login`). Whether the set is COMPLETE is the seam's question, not this schema's.
77
- */
78
60
  address: z.ZodRecord<z.ZodString, z.ZodString>;
79
61
  }, z.core.$strict>]>>;
80
62
  export type WildoSystemsOfRecordEnvConfig = z.infer<typeof WildoSystemsOfRecordEnvConfigSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"systems-of-record-env.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;IAErC;;;;OAIG;;;IAIH;;;OAGG;;oBAUL,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,yGAAyG;AACzG,eAAO,MAAM,mCAAmC;IAzB5C;;;;OAIG;;;IAIH;;;OAGG;;qBAcqG,CAAC;AAC7G,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"systems-of-record-env.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;;;;oBAuBvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,yGAAyG;AACzG,eAAO,MAAM,mCAAmC;;;;qBAA4D,CAAC;AAC7G,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"systems-of-record-env.schemas.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC;IAClD,CAAC,CAAC,YAAY,CAAC;QACb;;;;WAIG;QACH,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;KAC1B,CAAC;IACF,CAAC,CAAC,YAAY,CAAC;QACb;;;WAGG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kCAAkC,EAAE,mDAAmD,CAAC,EACzG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAClB;aACA,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACpD,KAAK,EAAE,qGAAqG;SAC7G,CAAC;KACL,CAAC;CACH,CAAC,CAAC;AAGH,yGAAyG;AACzG,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,4BAA4B,CAAC,CAAC","sourcesContent":["/**\n * WHERE each declared system of record lives, per ENVIRONMENT (#1055 §2).\n *\n * The saas config says WHAT the application reads (`systemsOfRecord.<name>`: a vendor, a dialect);\n * this says WHERE that instance is in THIS environment, and `secrets.json` says with what. The same\n * split `applicationDatabase` already makes between selection and substrate, for the same reason: an\n * address is environment-specific and a declaration is not.\n *\n * ## Two authored shapes, and the second one is the point\n *\n * ```ts\n * systemsOfRecord: {\n * odoo: { address: { baseUrl: 'https://acme.odoo.com', database: 'acme', login: 'bot@acme.com' } },\n * }\n * ```\n *\n * ```ts\n * systemsOfRecord: {\n * odoo: { enabled: false }, // this environment has no access to the ERP\n * }\n * ```\n *\n * A developer laptop and a staging with no ERP are the ordinary case, not an edge (#1055 E3), and\n * they need a way to SAY so. Without one, \"no access here\" and \"somebody forgot to author the\n * address\" are the same observation — and they need opposite behaviours: the first boots and refuses\n * reads with a clear code, the second refuses at `wildo config sync` and again at boot. So silence is\n * never a declaration: an instance the saas config declares and this file omits entirely is refused.\n *\n * ## What this file deliberately does NOT know\n *\n * Which slots a vendor NEEDS. That is the facet's, and the facet is not in scope here — the saas\n * config and the infra env config parse independently. Completeness is therefore checked at the\n * SEAMS where both are visible: `wildo config sync` and the backend startup validator. What is\n * checked here is only the shape and the slot-slug charset, because a slug outside it could not\n * derive a parseable variable name.\n *\n * ## Addresses are not secrets\n *\n * A base URL is registration-scoped, and a database name and a login identify WHICH deployment and\n * WHICH user rather than proving anything. They belong in the authored infra file, where they are\n * diffable and reviewable. The credential lives in `secrets.json`, keyed by the same derived name.\n */\nimport { z } from 'zod';\nimport { SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN } from '@wildo-ai/saas-models';\n\n/**\n * One instance's address in one environment.\n *\n * A union rather than one object with two optional halves, so the two states cannot be authored at\n * once and neither can be half-written: an entry is either an address or a declaration of absence.\n */\nexport const WildoSystemOfRecordEnvSchema = z.union([\n z.strictObject({\n /**\n * This environment has NO access to the instance. Reads on a bound resource refuse with a stable\n * code, a scheduled pipeline is not dispatched, and the backend still boots — an application\n * whose ERP is simply not present in staging must still run.\n */\n enabled: z.literal(false),\n }),\n z.strictObject({\n /**\n * The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,\n * `login`). Whether the set is COMPLETE is the seam's question, not this schema's.\n */\n address: z\n .record(\n z.string().regex(SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN, 'A slot slug is lowerCamelCase with no separators.'),\n z.string().min(1),\n )\n .refine((address) => Object.keys(address).length > 0, {\n error: 'An address with no slots says nothing. Author the vendor\\'s slots, or declare `{ enabled: false }`.',\n }),\n }),\n]);\nexport type WildoSystemOfRecordEnv = z.infer<typeof WildoSystemOfRecordEnvSchema>;\n\n/** Every instance's address in this environment, keyed by the instance name the saas config declares. */\nexport const WildoSystemsOfRecordEnvConfigSchema = z.record(z.string().min(1), WildoSystemOfRecordEnvSchema);\nexport type WildoSystemsOfRecordEnvConfig = z.infer<typeof WildoSystemsOfRecordEnvConfigSchema>;\n"]}
1
+ {"version":3,"file":"systems-of-record-env.schemas.js","sourceRoot":"","sources":["../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC;IAClD,CAAC,CAAC,YAAY,CAAC;QACb;;;;WAIG;QACH,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;KAC1B,CAAC;IACF,CAAC,CAAC,YAAY,CAAC;QACb;;;WAGG;QACH,OAAO,EAAE,CAAC;aACP,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,kCAAkC,EAAE,mDAAmD,CAAC,EACzG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAClB;aACA,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACpD,KAAK,EAAE,qGAAqG;SAC7G,CAAC;KACL,CAAC;CACH,CAAC,CAAC;AAGH,yGAAyG;AACzG,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,4BAA4B,CAAC,CAAC","sourcesContent":["/**\n * WHERE each declared system of record lives, per ENVIRONMENT (#1055 §2).\n *\n * The saas config says WHAT the application reads (`systemsOfRecord.<name>`: a vendor, a dialect);\n * this says WHERE that instance is in THIS environment, and `secrets.json` says with what. The same\n * split `applicationDatabase` already makes between selection and substrate, for the same reason: an\n * address is environment-specific and a declaration is not.\n *\n * ## Two authored shapes, and the second one is the point\n *\n * ```ts\n * systemsOfRecord: {\n * odoo: { address: { baseUrl: 'https://acme.odoo.com', database: 'acme', login: 'bot@acme.com' } },\n * }\n * ```\n *\n * ```ts\n * systemsOfRecord: {\n * odoo: { enabled: false }, // this environment has no access to the ERP\n * }\n * ```\n *\n * A developer laptop and a staging with no ERP are the ordinary case, not an edge (#1055 E3), and\n * they need a way to SAY so. Without one, \"no access here\" and \"somebody forgot to author the\n * address\" are the same observation — and they need opposite behaviours: the first boots and refuses\n * reads with a clear code, the second refuses at `wildo config sync` and again at boot. So silence is\n * never a declaration: an instance the saas config declares and this file omits entirely is refused.\n *\n * ## What this file deliberately does NOT know\n *\n * Which slots a vendor NEEDS. That is the facet's, and the facet is not in scope here — the saas\n * config and the infra env config parse independently. Completeness is therefore checked at the\n * SEAMS where both are visible: `wildo config sync` and the backend startup validator. What is\n * checked here is only the shape and the slot-slug charset, because a slug outside it could not\n * derive a parseable variable name.\n *\n * ## Addresses are not secrets\n *\n * A base URL is registration-scoped, and a database name and a login identify WHICH deployment and\n * WHICH user rather than proving anything. They belong in the authored infra file, where they are\n * diffable and reviewable. The credential lives in `secrets.json`, keyed by the same derived name.\n */\nimport { z } from 'zod';\nimport { SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN } from '@wildo-ai/saas-models';\n\n/**\n * One instance's address in one environment.\n *\n * A union rather than one object with two optional halves, so the two states cannot be authored at\n * once and neither can be half-written: an entry is either an address or a declaration of absence.\n */\nexport const WildoSystemOfRecordEnvSchema = z.union([\n z.strictObject({\n /**\n * This environment has NO access to the instance. Reads on a bound resource refuse with a stable\n * code, a scheduled pipeline is not dispatched, and the backend still boots — an application\n * whose ERP is simply not present in staging must still run.\n */\n enabled: z.literal(false),\n }),\n z.strictObject({\n /**\n * The vendor's non-secret address slots, keyed by the facet's slug (Odoo: `baseUrl`, `database`,\n * `login`). Whether the set is COMPLETE is the seam's question, not this schema's.\n */\n address: z\n .record(\n z.string().regex(SYSTEM_OF_RECORD_SLOT_SLUG_PATTERN, 'A slot slug is lowerCamelCase with no separators.'),\n z.string().min(1),\n )\n .refine((address) => Object.keys(address).length > 0, {\n error: 'An address with no slots says nothing. Author the vendor\\'s slots, or declare `{ enabled: false }`.',\n }),\n }),\n]);\nexport type WildoSystemOfRecordEnv = z.infer<typeof WildoSystemOfRecordEnvSchema>;\n\n/** Every instance's address in this environment, keyed by the instance name the saas config declares. */\nexport const WildoSystemsOfRecordEnvConfigSchema = z.record(z.string().min(1), WildoSystemOfRecordEnvSchema);\nexport type WildoSystemsOfRecordEnvConfig = z.infer<typeof WildoSystemsOfRecordEnvConfigSchema>;\n"]}
@@ -18,9 +18,26 @@ export declare const STATIC_ASSET_IMPORT_PATTERN_SOURCE = "\\.(css|scss|less|sas
18
18
  * — two in the dev companion and two in the CLI — each with its own regex; the next asset type
19
19
  * added to one would have loaded in one tool and failed in another. One copy remains by necessity:
20
20
  * the dev companion's introspection subprocess registers a hooks MODULE by path
21
- * (`asset-noop-hooks.ts`), and loader hooks run on their own thread before anything else loads, so
22
- * that module must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion
23
- * holds its pattern equal to this one.
21
+ * (`asset-noop-hooks.ts`) through `--import`, before any package can be resolved, so that module
22
+ * must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion holds its
23
+ * pattern equal to this one.
24
+ *
25
+ * ## In-thread (`registerHooks`), never `module.register` — measured, #3208
26
+ *
27
+ * Until 2026-11-03 this registered the hooks with `module.register`, which runs them on a separate
28
+ * loader thread. Once ANY such hook exists, every module resolution and load in the process — not
29
+ * only a stylesheet's — becomes a synchronous round trip to that thread (`makeSyncRequest`). The
30
+ * dev companion calls this before every specifications evaluation and re-imports application
31
+ * packages for the life of the process, so that tax was paid continuously on its HTTP event loop.
32
+ * Profiled on app-creation-test-007 (15 resources, 96 landed build tasks): `makeSyncRequest` was
33
+ * 29 % of the main thread's time across warm re-evaluations and 42 % across the first one, and a
34
+ * child importing the companion's introspection handlers spent 14.2 s of user CPU with the
35
+ * off-thread hook against 8.7 s with the same hook in-thread.
36
+ *
37
+ * `registerHooks` runs the same two synchronous hooks on the calling thread, so a non-asset import
38
+ * pays one regex test and nothing else. Node 26 deprecates `module.register` (DEP0205) in favour of
39
+ * it. The hooks also apply to `require()`, which is the same answer for a CommonJS module that
40
+ * requires a stylesheet.
24
41
  */
25
42
  export declare function registerStaticAssetImportNoop(): void;
26
43
  //# sourceMappingURL=static-asset-import-noop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"static-asset-import-noop.d.ts","sourceRoot":"","sources":["../../../../src/project-config/static-asset-import-noop.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,eAAO,MAAM,kCAAkC,wFAAwF,CAAC;AAIxI;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAqBpD"}
1
+ {"version":3,"file":"static-asset-import-noop.d.ts","sourceRoot":"","sources":["../../../src/project-config/static-asset-import-noop.ts"],"names":[],"mappings":"AAEA,gGAAgG;AAChG,eAAO,MAAM,kCAAkC,wFAAwF,CAAC;AAIxI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,6BAA6B,IAAI,IAAI,CAoBpD"}
@@ -1,4 +1,4 @@
1
- import { register } from 'node:module';
1
+ import { registerHooks } from 'node:module';
2
2
  /** The static-asset extensions a TypeScript module graph may import and Node cannot execute. */
3
3
  export const STATIC_ASSET_IMPORT_PATTERN_SOURCE = '\\.(css|scss|less|sass|svg|png|jpe?g|gif|webp|ico|avif|woff2?|eot|ttf|otf)(\\?.*)?$';
4
4
  let staticAssetImportNoopRegistered = false;
@@ -20,30 +20,46 @@ let staticAssetImportNoopRegistered = false;
20
20
  * — two in the dev companion and two in the CLI — each with its own regex; the next asset type
21
21
  * added to one would have loaded in one tool and failed in another. One copy remains by necessity:
22
22
  * the dev companion's introspection subprocess registers a hooks MODULE by path
23
- * (`asset-noop-hooks.ts`), and loader hooks run on their own thread before anything else loads, so
24
- * that module must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion
25
- * holds its pattern equal to this one.
23
+ * (`asset-noop-hooks.ts`) through `--import`, before any package can be resolved, so that module
24
+ * must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion holds its
25
+ * pattern equal to this one.
26
+ *
27
+ * ## In-thread (`registerHooks`), never `module.register` — measured, #3208
28
+ *
29
+ * Until 2026-11-03 this registered the hooks with `module.register`, which runs them on a separate
30
+ * loader thread. Once ANY such hook exists, every module resolution and load in the process — not
31
+ * only a stylesheet's — becomes a synchronous round trip to that thread (`makeSyncRequest`). The
32
+ * dev companion calls this before every specifications evaluation and re-imports application
33
+ * packages for the life of the process, so that tax was paid continuously on its HTTP event loop.
34
+ * Profiled on app-creation-test-007 (15 resources, 96 landed build tasks): `makeSyncRequest` was
35
+ * 29 % of the main thread's time across warm re-evaluations and 42 % across the first one, and a
36
+ * child importing the companion's introspection handlers spent 14.2 s of user CPU with the
37
+ * off-thread hook against 8.7 s with the same hook in-thread.
38
+ *
39
+ * `registerHooks` runs the same two synchronous hooks on the calling thread, so a non-asset import
40
+ * pays one regex test and nothing else. Node 26 deprecates `module.register` (DEP0205) in favour of
41
+ * it. The hooks also apply to `require()`, which is the same answer for a CommonJS module that
42
+ * requires a stylesheet.
26
43
  */
27
44
  export function registerStaticAssetImportNoop() {
28
45
  if (staticAssetImportNoopRegistered) {
29
46
  return;
30
47
  }
31
- const hookSource = `
32
- const ASSET_RE = /${STATIC_ASSET_IMPORT_PATTERN_SOURCE}/;
33
- export function resolve(specifier, context, nextResolve) {
34
- if (ASSET_RE.test(specifier)) {
35
- return { shortCircuit: true, url: new URL(specifier, context.parentURL ?? 'file:///').href };
36
- }
37
- return nextResolve(specifier, context);
38
- }
39
- export function load(url, context, nextLoad) {
40
- if (ASSET_RE.test(url)) {
41
- return { shortCircuit: true, format: 'module', source: 'export default "";\\n' };
42
- }
43
- return nextLoad(url, context);
44
- }
45
- `;
46
- register(`data:text/javascript,${encodeURIComponent(hookSource)}`);
48
+ const assetPattern = new RegExp(STATIC_ASSET_IMPORT_PATTERN_SOURCE);
49
+ registerHooks({
50
+ resolve(specifier, context, nextResolve) {
51
+ if (assetPattern.test(specifier)) {
52
+ return { shortCircuit: true, url: new URL(specifier, context.parentURL ?? 'file:///').href };
53
+ }
54
+ return nextResolve(specifier, context);
55
+ },
56
+ load(url, context, nextLoad) {
57
+ if (assetPattern.test(url)) {
58
+ return { shortCircuit: true, format: 'module', source: 'export default "";\n' };
59
+ }
60
+ return nextLoad(url, context);
61
+ },
62
+ });
47
63
  staticAssetImportNoopRegistered = true;
48
64
  }
49
65
  //# sourceMappingURL=static-asset-import-noop.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static-asset-import-noop.js","sourceRoot":"","sources":["../../../../src/project-config/static-asset-import-noop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,gGAAgG;AAChG,MAAM,CAAC,MAAM,kCAAkC,GAAG,qFAAqF,CAAC;AAExI,IAAI,+BAA+B,GAAG,KAAK,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,6BAA6B;IAC3C,IAAI,+BAA+B,EAAE,CAAC;QACpC,OAAO;IACT,CAAC;IACD,MAAM,UAAU,GAAG;wBACG,kCAAkC;;;;;;;;;;;;;GAavD,CAAC;IACF,QAAQ,CAAC,wBAAwB,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IACnE,+BAA+B,GAAG,IAAI,CAAC;AACzC,CAAC","sourcesContent":["import { register } from 'node:module';\n\n/** The static-asset extensions a TypeScript module graph may import and Node cannot execute. */\nexport const STATIC_ASSET_IMPORT_PATTERN_SOURCE = '\\\\.(css|scss|less|sass|svg|png|jpe?g|gif|webp|ico|avif|woff2?|eot|ttf|otf)(\\\\?.*)?$';\n\nlet staticAssetImportNoopRegistered = false;\n\n/**\n * Make static-asset imports (`.css`, images, fonts) resolve to empty modules for the rest of the\n * process, so a Node-side loader can evaluate an application-authored TypeScript graph that\n * reaches browser code.\n *\n * Why this is needed at all: an application's specifications and website sources import enums\n * from `@wildo-ai/saas-specifications`, whose root transitively reaches frontend component\n * modules that import their stylesheets. Node's ESM loader cannot execute a `.css`, so without\n * this hook an otherwise valid module fails to load solely because a library imports a stylesheet.\n * Static assets carry no meaning for a Node-side reader, so they load as `export default \"\"`.\n *\n * Process-wide, idempotent, and inert for any graph that imports no static asset. It never touches\n * JavaScript or TypeScript resolution.\n *\n * This is the one copy for in-process callers. Four hand-copied versions existed until 2026-09-25\n * — two in the dev companion and two in the CLI — each with its own regex; the next asset type\n * added to one would have loaded in one tool and failed in another. One copy remains by necessity:\n * the dev companion's introspection subprocess registers a hooks MODULE by path\n * (`asset-noop-hooks.ts`), and loader hooks run on their own thread before anything else loads, so\n * that module must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion\n * holds its pattern equal to this one.\n */\nexport function registerStaticAssetImportNoop(): void {\n if (staticAssetImportNoopRegistered) {\n return;\n }\n const hookSource = `\n const ASSET_RE = /${STATIC_ASSET_IMPORT_PATTERN_SOURCE}/;\n export function resolve(specifier, context, nextResolve) {\n if (ASSET_RE.test(specifier)) {\n return { shortCircuit: true, url: new URL(specifier, context.parentURL ?? 'file:///').href };\n }\n return nextResolve(specifier, context);\n }\n export function load(url, context, nextLoad) {\n if (ASSET_RE.test(url)) {\n return { shortCircuit: true, format: 'module', source: 'export default \"\";\\\\n' };\n }\n return nextLoad(url, context);\n }\n `;\n register(`data:text/javascript,${encodeURIComponent(hookSource)}`);\n staticAssetImportNoopRegistered = true;\n}\n"]}
1
+ {"version":3,"file":"static-asset-import-noop.js","sourceRoot":"","sources":["../../../src/project-config/static-asset-import-noop.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,gGAAgG;AAChG,MAAM,CAAC,MAAM,kCAAkC,GAAG,qFAAqF,CAAC;AAExI,IAAI,+BAA+B,GAAG,KAAK,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,UAAU,6BAA6B;IAC3C,IAAI,+BAA+B,EAAE,CAAC;QACpC,OAAO;IACT,CAAC;IACD,MAAM,YAAY,GAAG,IAAI,MAAM,CAAC,kCAAkC,CAAC,CAAC;IACpE,aAAa,CAAC;QACZ,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW;YACrC,IAAI,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;gBACjC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,UAAU,CAAC,CAAC,IAAI,EAAE,CAAC;YAC/F,CAAC;YACD,OAAO,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACzC,CAAC;QACD,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,QAAQ;YACzB,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC3B,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC;YAClF,CAAC;YACD,OAAO,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;QAChC,CAAC;KACF,CAAC,CAAC;IACH,+BAA+B,GAAG,IAAI,CAAC;AACzC,CAAC","sourcesContent":["import { registerHooks } from 'node:module';\n\n/** The static-asset extensions a TypeScript module graph may import and Node cannot execute. */\nexport const STATIC_ASSET_IMPORT_PATTERN_SOURCE = '\\\\.(css|scss|less|sass|svg|png|jpe?g|gif|webp|ico|avif|woff2?|eot|ttf|otf)(\\\\?.*)?$';\n\nlet staticAssetImportNoopRegistered = false;\n\n/**\n * Make static-asset imports (`.css`, images, fonts) resolve to empty modules for the rest of the\n * process, so a Node-side loader can evaluate an application-authored TypeScript graph that\n * reaches browser code.\n *\n * Why this is needed at all: an application's specifications and website sources import enums\n * from `@wildo-ai/saas-specifications`, whose root transitively reaches frontend component\n * modules that import their stylesheets. Node's ESM loader cannot execute a `.css`, so without\n * this hook an otherwise valid module fails to load solely because a library imports a stylesheet.\n * Static assets carry no meaning for a Node-side reader, so they load as `export default \"\"`.\n *\n * Process-wide, idempotent, and inert for any graph that imports no static asset. It never touches\n * JavaScript or TypeScript resolution.\n *\n * This is the one copy for in-process callers. Four hand-copied versions existed until 2026-09-25\n * — two in the dev companion and two in the CLI — each with its own regex; the next asset type\n * added to one would have loaded in one tool and failed in another. One copy remains by necessity:\n * the dev companion's introspection subprocess registers a hooks MODULE by path\n * (`asset-noop-hooks.ts`) through `--import`, before any package can be resolved, so that module\n * must stay dependency-free. `static-asset-pattern-parity.test.ts` in the companion holds its\n * pattern equal to this one.\n *\n * ## In-thread (`registerHooks`), never `module.register` — measured, #3208\n *\n * Until 2026-11-03 this registered the hooks with `module.register`, which runs them on a separate\n * loader thread. Once ANY such hook exists, every module resolution and load in the process — not\n * only a stylesheet's — becomes a synchronous round trip to that thread (`makeSyncRequest`). The\n * dev companion calls this before every specifications evaluation and re-imports application\n * packages for the life of the process, so that tax was paid continuously on its HTTP event loop.\n * Profiled on app-creation-test-007 (15 resources, 96 landed build tasks): `makeSyncRequest` was\n * 29 % of the main thread's time across warm re-evaluations and 42 % across the first one, and a\n * child importing the companion's introspection handlers spent 14.2 s of user CPU with the\n * off-thread hook against 8.7 s with the same hook in-thread.\n *\n * `registerHooks` runs the same two synchronous hooks on the calling thread, so a non-asset import\n * pays one regex test and nothing else. Node 26 deprecates `module.register` (DEP0205) in favour of\n * it. The hooks also apply to `require()`, which is the same answer for a CommonJS module that\n * requires a stylesheet.\n */\nexport function registerStaticAssetImportNoop(): void {\n if (staticAssetImportNoopRegistered) {\n return;\n }\n const assetPattern = new RegExp(STATIC_ASSET_IMPORT_PATTERN_SOURCE);\n registerHooks({\n resolve(specifier, context, nextResolve) {\n if (assetPattern.test(specifier)) {\n return { shortCircuit: true, url: new URL(specifier, context.parentURL ?? 'file:///').href };\n }\n return nextResolve(specifier, context);\n },\n load(url, context, nextLoad) {\n if (assetPattern.test(url)) {\n return { shortCircuit: true, format: 'module', source: 'export default \"\";\\n' };\n }\n return nextLoad(url, context);\n },\n });\n staticAssetImportNoopRegistered = true;\n}\n"]}
@@ -38,15 +38,10 @@ export type RegistryApiKeyScope = (typeof REGISTRY_API_KEY_SCOPE_VALUES)[number]
38
38
  * `wildo registry info`.
39
39
  */
40
40
  export declare const RegistryDomainAccessPolicySchema: z.ZodObject<{
41
- /** Default visibility for newly-published modules in this domain. */
42
41
  defaultVisibility: z.ZodEnum<{
43
42
  PUBLIC: "PUBLIC";
44
43
  RESTRICTED: "RESTRICTED";
45
44
  }>;
46
- /**
47
- * Email of the first-admin / domain owner. Recovery anchor per
48
- * KD-11 / Security model.
49
- */
50
45
  ownerEmail: z.ZodEmail;
51
46
  }, z.core.$strict>;
52
47
  export type RegistryDomainAccessPolicy = z.infer<typeof RegistryDomainAccessPolicySchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-domain.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,mCAAmC,mCAAoC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;IACrC,yDAAyD;;IAEzD,wCAAwC;;CAEhC,CAAC;AACX,eAAO,MAAM,gCAAgC;;;EAA8C,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,QAAA,MAAM,6BAA6B,uCAAwC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,eAAO,MAAM,yBAAyB;;;;EAAwC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;IAC3C,qEAAqE;;;;;IAErE;;;OAGG;;kBAEH,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
1
+ {"version":3,"file":"artifact-domain.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,mCAAmC,mCAAoC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;IACrC,yDAAyD;;IAEzD,wCAAwC;;CAEhC,CAAC;AACX,eAAO,MAAM,gCAAgC;;;EAA8C,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,QAAA,MAAM,6BAA6B,uCAAwC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,eAAO,MAAM,yBAAyB;;;;EAAwC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;;;;;;kBAQ3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-domain.schemas.js","sourceRoot":"","sources":["../../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,mCAAmC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAU,CAAC;AAE9E,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,yDAAyD;IACzD,MAAM,EAAE,QAAQ;IAChB,wCAAwC;IACxC,UAAU,EAAE,YAAY;CAChB,CAAC;AACX,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;AAI5F,MAAM,6BAA6B,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAE5E,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AACX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAG/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,qEAAqE;IACrE,iBAAiB,EAAE,gCAAgC;IACnD;;;OAGG;IACH,UAAU,EAAE,CAAC,CAAC,KAAK,EAAE;CACtB,CAAC,CAAC","sourcesContent":["/**\n * Artifact-domain access schemas — public vs restricted retrieval.\n *\n * Phase 1 surfaces the access vocabulary so Phase 3 (registry\n * server) and Phase 5 (CLI install) speak the same dialect. The\n * library does NOT implement authorization here — that's\n * gateway-side middleware (KD-7 / Security model). These schemas\n * pin the contract.\n */\n\nimport { z } from 'zod';\n\nconst REGISTRY_ARTIFACT_VISIBILITY_VALUES = ['PUBLIC', 'RESTRICTED'] as const;\n\nexport const RegistryArtifactVisibility = {\n /** Anonymous read allowed; integrity always verified. */\n PUBLIC: 'PUBLIC',\n /** Requires a domain `read` API key. */\n RESTRICTED: 'RESTRICTED',\n} as const;\nexport const RegistryArtifactVisibilitySchema = z.enum(REGISTRY_ARTIFACT_VISIBILITY_VALUES);\nexport type RegistryArtifactVisibility =\n (typeof REGISTRY_ARTIFACT_VISIBILITY_VALUES)[number];\n\nconst REGISTRY_API_KEY_SCOPE_VALUES = ['read', 'publish', 'admin'] as const;\n\nexport const RegistryApiKeyScope = {\n READ: 'read',\n PUBLISH: 'publish',\n ADMIN: 'admin',\n} as const;\nexport const RegistryApiKeyScopeSchema = z.enum(REGISTRY_API_KEY_SCOPE_VALUES);\nexport type RegistryApiKeyScope = (typeof REGISTRY_API_KEY_SCOPE_VALUES)[number];\n\n/**\n * Per-domain access policy. Held alongside `RegistryDomain` rows on\n * the server; the CLI receives a redacted projection via\n * `wildo registry info`.\n */\nexport const RegistryDomainAccessPolicySchema = z.strictObject({\n /** Default visibility for newly-published modules in this domain. */\n defaultVisibility: RegistryArtifactVisibilitySchema,\n /**\n * Email of the first-admin / domain owner. Recovery anchor per\n * KD-11 / Security model.\n */\n ownerEmail: z.email(),\n});\nexport type RegistryDomainAccessPolicy = z.infer<typeof RegistryDomainAccessPolicySchema>;\n"]}
1
+ {"version":3,"file":"artifact-domain.schemas.js","sourceRoot":"","sources":["../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,mCAAmC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAU,CAAC;AAE9E,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,yDAAyD;IACzD,MAAM,EAAE,QAAQ;IAChB,wCAAwC;IACxC,UAAU,EAAE,YAAY;CAChB,CAAC;AACX,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;AAI5F,MAAM,6BAA6B,GAAG,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAU,CAAC;AAE5E,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;CACN,CAAC;AACX,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;AAG/E;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,qEAAqE;IACrE,iBAAiB,EAAE,gCAAgC;IACnD;;;OAGG;IACH,UAAU,EAAE,CAAC,CAAC,KAAK,EAAE;CACtB,CAAC,CAAC","sourcesContent":["/**\n * Artifact-domain access schemas — public vs restricted retrieval.\n *\n * Phase 1 surfaces the access vocabulary so Phase 3 (registry\n * server) and Phase 5 (CLI install) speak the same dialect. The\n * library does NOT implement authorization here — that's\n * gateway-side middleware (KD-7 / Security model). These schemas\n * pin the contract.\n */\n\nimport { z } from 'zod';\n\nconst REGISTRY_ARTIFACT_VISIBILITY_VALUES = ['PUBLIC', 'RESTRICTED'] as const;\n\nexport const RegistryArtifactVisibility = {\n /** Anonymous read allowed; integrity always verified. */\n PUBLIC: 'PUBLIC',\n /** Requires a domain `read` API key. */\n RESTRICTED: 'RESTRICTED',\n} as const;\nexport const RegistryArtifactVisibilitySchema = z.enum(REGISTRY_ARTIFACT_VISIBILITY_VALUES);\nexport type RegistryArtifactVisibility =\n (typeof REGISTRY_ARTIFACT_VISIBILITY_VALUES)[number];\n\nconst REGISTRY_API_KEY_SCOPE_VALUES = ['read', 'publish', 'admin'] as const;\n\nexport const RegistryApiKeyScope = {\n READ: 'read',\n PUBLISH: 'publish',\n ADMIN: 'admin',\n} as const;\nexport const RegistryApiKeyScopeSchema = z.enum(REGISTRY_API_KEY_SCOPE_VALUES);\nexport type RegistryApiKeyScope = (typeof REGISTRY_API_KEY_SCOPE_VALUES)[number];\n\n/**\n * Per-domain access policy. Held alongside `RegistryDomain` rows on\n * the server; the CLI receives a redacted projection via\n * `wildo registry info`.\n */\nexport const RegistryDomainAccessPolicySchema = z.strictObject({\n /** Default visibility for newly-published modules in this domain. */\n defaultVisibility: RegistryArtifactVisibilitySchema,\n /**\n * Email of the first-admin / domain owner. Recovery anchor per\n * KD-11 / Security model.\n */\n ownerEmail: z.email(),\n});\nexport type RegistryDomainAccessPolicy = z.infer<typeof RegistryDomainAccessPolicySchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"digest.schemas.js","sourceRoot":"","sources":["../../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,uBAAuB,EAAE,sCAAsC,CAAC,CAAC","sourcesContent":["/**\n * Cryptographic-digest field schemas — single source of truth for\n * artifact integrity references across the module-registry surface.\n *\n * Both the durable lockfile entry (`RegistryModulesLockEntry.\n * artifactDigest`) and the registry-server published-version row\n * (`ModuleVersionRecord.integrity`) carry the same artifact's\n * digest. They MUST agree on format — drift between the two means\n * Phase 5 install verification fails non-deterministically. Hoisted\n * here so any addition (e.g. sha512) lands in one place.\n */\n\nimport { z } from 'zod';\n\n/**\n * `sha256:<64-hex>` content digest. The hex must be lowercase\n * (npm + most registries normalize to lowercase; uppercase makes\n * direct string comparison brittle).\n */\nexport const Sha256DigestSchema = z\n .string()\n .regex(/^sha256:[0-9a-f]{64}$/, 'expected `sha256:<64-hex-lowercase>`');\nexport type Sha256Digest = z.infer<typeof Sha256DigestSchema>;\n"]}
1
+ {"version":3,"file":"digest.schemas.js","sourceRoot":"","sources":["../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,EAAE;KACR,KAAK,CAAC,uBAAuB,EAAE,sCAAsC,CAAC,CAAC","sourcesContent":["/**\n * Cryptographic-digest field schemas — single source of truth for\n * artifact integrity references across the module-registry surface.\n *\n * Both the durable lockfile entry (`RegistryModulesLockEntry.\n * artifactDigest`) and the registry-server published-version row\n * (`ModuleVersionRecord.integrity`) carry the same artifact's\n * digest. They MUST agree on format — drift between the two means\n * Phase 5 install verification fails non-deterministically. Hoisted\n * here so any addition (e.g. sha512) lands in one place.\n */\n\nimport { z } from 'zod';\n\n/**\n * `sha256:<64-hex>` content digest. The hex must be lowercase\n * (npm + most registries normalize to lowercase; uppercase makes\n * direct string comparison brittle).\n */\nexport const Sha256DigestSchema = z\n .string()\n .regex(/^sha256:[0-9a-f]{64}$/, 'expected `sha256:<64-hex-lowercase>`');\nexport type Sha256Digest = z.infer<typeof Sha256DigestSchema>;\n"]}
@@ -1,6 +1,5 @@
1
1
  /**
2
- * Module-registry subpackage barrel
3
- * (per `.claude/plans/module-registry-analysis.md`).
2
+ * Module-registry subpackage barrel.
4
3
  *
5
4
  * Surface:
6
5
  * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.
@@ -8,7 +7,7 @@
8
7
  * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /
9
8
  * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.
10
9
  * - `ModuleManifestSchema` — `wildo.module.json` contract
11
- * (engine compat, boundaries, dependsOn buckets per KD-12 + KD-13).
10
+ * (engine compat, boundaries, dependsOn buckets).
12
11
  * - `ModuleVersionRecordSchema` — registry-server published-version row.
13
12
  * - `Sha256DigestSchema` — single-source digest field used by
14
13
  * both lockfile entries and registry-server records.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
@@ -1,6 +1,5 @@
1
1
  /**
2
- * Module-registry subpackage barrel
3
- * (per `.claude/plans/module-registry-analysis.md`).
2
+ * Module-registry subpackage barrel.
4
3
  *
5
4
  * Surface:
6
5
  * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.
@@ -8,7 +7,7 @@
8
7
  * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /
9
8
  * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.
10
9
  * - `ModuleManifestSchema` — `wildo.module.json` contract
11
- * (engine compat, boundaries, dependsOn buckets per KD-12 + KD-13).
10
+ * (engine compat, boundaries, dependsOn buckets).
12
11
  * - `ModuleVersionRecordSchema` — registry-server published-version row.
13
12
  * - `Sha256DigestSchema` — single-source digest field used by
14
13
  * both lockfile entries and registry-server records.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC","sourcesContent":["/**\n * Module-registry subpackage barrel\n * (per `.claude/plans/module-registry-analysis.md`).\n *\n * Surface:\n * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.\n * - `DEFAULT_REGISTRY_SECTION_SCHEMAS` — CLI default lockfile-section map.\n * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /\n * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.\n * - `ModuleManifestSchema` — `wildo.module.json` contract\n * (engine compat, boundaries, dependsOn buckets per KD-12 + KD-13).\n * - `ModuleVersionRecordSchema` — registry-server published-version row.\n * - `Sha256DigestSchema` — single-source digest field used by\n * both lockfile entries and registry-server records.\n * - `RegistryConfigSchema` — `wildo.saas.config.ts > moduleRegistries`.\n * - `RegistryArtifactVisibility` / `RegistryApiKeyScope` /\n * `RegistryDomainAccessPolicy` — access-control vocabulary.\n * - `RegistryError` family — typed-error vocabulary with\n * stable `code` strings.\n *\n * Phase 2+ adds artifact-staging + companion-mutation contracts.\n */\n\nexport * from './digest.schemas';\nexport * from './lockfile-modules-section.schemas';\nexport * from './module-manifest.schemas';\nexport * from './module-search.schemas';\nexport * from './module-artifact.schemas';\nexport * from './artifact-domain.schemas';\nexport * from './registry-config.schemas';\nexport * from './registry-defaults.constants';\nexport * from './registry-errors';\nexport * from './registry-section-schemas.constants';\nexport * from './registry-keys.schemas';\nexport * from './local-checkout-source';\nexport * from './registry-url-resolution';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC","sourcesContent":["/**\n * Module-registry subpackage barrel.\n *\n * Surface:\n * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.\n * - `DEFAULT_REGISTRY_SECTION_SCHEMAS` — CLI default lockfile-section map.\n * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /\n * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.\n * - `ModuleManifestSchema` — `wildo.module.json` contract\n * (engine compat, boundaries, dependsOn buckets).\n * - `ModuleVersionRecordSchema` — registry-server published-version row.\n * - `Sha256DigestSchema` — single-source digest field used by\n * both lockfile entries and registry-server records.\n * - `RegistryConfigSchema` — `wildo.saas.config.ts > moduleRegistries`.\n * - `RegistryArtifactVisibility` / `RegistryApiKeyScope` /\n * `RegistryDomainAccessPolicy` — access-control vocabulary.\n * - `RegistryError` family — typed-error vocabulary with\n * stable `code` strings.\n *\n * Phase 2+ adds artifact-staging + companion-mutation contracts.\n */\n\nexport * from './digest.schemas';\nexport * from './lockfile-modules-section.schemas';\nexport * from './module-manifest.schemas';\nexport * from './module-search.schemas';\nexport * from './module-artifact.schemas';\nexport * from './artifact-domain.schemas';\nexport * from './registry-config.schemas';\nexport * from './registry-defaults.constants';\nexport * from './registry-errors';\nexport * from './registry-section-schemas.constants';\nexport * from './registry-keys.schemas';\nexport * from './local-checkout-source';\nexport * from './registry-url-resolution';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"local-checkout-source.d.ts","sourceRoot":"","sources":["../../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAA+D,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE7H;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B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