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

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 +114 -40
  84. package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -1
  85. package/dist/esm/key-management/approval-seal-verifier.js +143 -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 +146 -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 +124 -71
  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 +2 -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 +67 -38
  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 +113 -5
  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
@@ -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,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQxH;AAED,qGAAqG;AACrG,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAyB1H;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAsBtI"}
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,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQxH;AAED,qGAAqG;AACrG,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAyB1H;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAsBtI"}
@@ -1 +1 @@
1
- {"version":3,"file":"local-checkout-source.js","sourceRoot":"","sources":["../../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AAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC3G,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC","sourcesContent":["/**\n * Local-checkout source for registry modules (#2015, epic #2012).\n *\n * Paul, 2026-09-29: in framework development the registry is fetched LOCALLY, from the checkout, with no\n * server and no publish step. Wildo's own providers are authored in the monorepo under\n * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an\n * application anywhere else installs them from the public registry (#2024).\n *\n * This file owns the LAYOUT (which domain the checkout answers for, and where one of its modules lives) and\n * READING a module's manifest, which two runtimes need: the CLI's registry commands, and the dev companion,\n * which lists the checkout's providers for an application-creation brief (#2025). STAGING a module is the\n * CLI's job (`local-checkout-module-source.service.ts`).\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { isModuleId, MODULE_MANIFEST_FILE_NAME, ModuleManifestSchema, type ModuleManifest } from './module-manifest.schemas';\n\n/**\n * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework\n * checkout the same domain is answered by the checkout itself, so one install spec\n * (`wildo/providers/asana`) means the same module in both places.\n */\nexport const WILDO_REGISTRY_DOMAIN = 'wildo';\n\n/**\n * Where each module-id SCOPE of the `wildo` domain is authored in the framework checkout.\n *\n * A module `<scope>/<name>` lives at `<frameworkRoot>/<root>/<name>/`, holding its `wildo.module.json` and\n * the content of its single boundary directory: for a provider (`providers/<ref>`) that is one folder per\n * facet (`backend/`, `frontend/`). A scope absent from this table has no local source.\n */\nexport const LOCAL_CHECKOUT_MODULE_ROOTS: Readonly<Record<string, string>> = {\n providers: 'providers-registry',\n};\n\n/**\n * The checkout directory of `<domain>/<moduleId>`, or `undefined` when the checkout does not author it\n * (another domain, or a scope with no local root). Never resolves outside its scope root.\n */\nexport function localCheckoutModuleDirectory(frameworkRoot: string, domain: string, moduleId: string): string | undefined {\n if (domain !== WILDO_REGISTRY_DOMAIN || !isModuleId(moduleId)) return undefined;\n const [scope, name] = moduleId.split('/') as [string, string];\n const rootName = LOCAL_CHECKOUT_MODULE_ROOTS[scope];\n if (rootName === undefined) return undefined;\n const scopeRoot = path.resolve(frameworkRoot, rootName);\n const directory = path.resolve(scopeRoot, name);\n return directory.startsWith(scopeRoot + path.sep) ? directory : undefined;\n}\n\n/** One module the checkout serves, as `wildo registry search` / `info` and the companion list it. */\nexport interface LocalCheckoutModuleListing {\n moduleId: string;\n version: string;\n manifest: ModuleManifest;\n}\n\n/**\n * Every module the checkout serves whose id contains `query` (case-insensitive), sorted by id. A\n * directory without a manifest is not a module and is skipped; a manifest that does not parse is\n * reported, because silently hiding a broken provider is how it goes unnoticed.\n */\nexport async function listLocalCheckoutModules(frameworkRoot: string, query: string): Promise<LocalCheckoutModuleListing[]> {\n const listings: LocalCheckoutModuleListing[] = [];\n for (const [scope, rootName] of Object.entries(LOCAL_CHECKOUT_MODULE_ROOTS)) {\n let names: string[];\n try {\n names = (await fs.readdir(path.join(frameworkRoot, rootName), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n for (const name of names) {\n const moduleId = `${scope}/${name}`;\n if (!moduleId.toLowerCase().includes(query.toLowerCase())) continue;\n const sourceDir = localCheckoutModuleDirectory(frameworkRoot, WILDO_REGISTRY_DOMAIN, moduleId);\n if (sourceDir === undefined) continue;\n try {\n await fs.access(path.join(sourceDir, MODULE_MANIFEST_FILE_NAME));\n } catch {\n continue;\n }\n const manifest = await readLocalCheckoutModuleManifest(sourceDir, `${WILDO_REGISTRY_DOMAIN}/${moduleId}`, frameworkRoot);\n listings.push({ moduleId, version: manifest.version, manifest });\n }\n }\n return listings.sort((a, b) => a.moduleId.localeCompare(b.moduleId));\n}\n\n/**\n * The parsed `wildo.module.json` of a checkout module. Refuses, naming the file: a missing manifest (naming\n * `--registry public` for the published module) or one that does not parse.\n */\nexport async function readLocalCheckoutModuleManifest(sourceDir: string, label: string, frameworkRoot: string): Promise<ModuleManifest> {\n const manifestPath = path.join(sourceDir, MODULE_MANIFEST_FILE_NAME);\n let raw: string;\n try {\n raw = await fs.readFile(manifestPath, 'utf8');\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n throw new Error(\n `The framework checkout has no module \"${label}\" (${path.relative(frameworkRoot, manifestPath)} does not exist). `\n + 'Pass `--registry public` to install a published module instead.',\n );\n }\n throw error;\n }\n const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));\n if (!parsed.success) {\n throw new Error(\n `${path.relative(frameworkRoot, manifestPath)} is not a valid module manifest: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; '),\n );\n }\n return parsed.data;\n}\n"]}
1
+ {"version":3,"file":"local-checkout-source.js","sourceRoot":"","sources":["../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,oBAAoB,EAAuB,MAAM,2BAA2B,CAAC;AAE7H;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAqC;IAC3E,SAAS,EAAE,oBAAoB;CAChC,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAAC,aAAqB,EAAE,MAAc,EAAE,QAAgB;IAClG,IAAI,MAAM,KAAK,qBAAqB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAChF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;IAC9D,MAAM,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,MAAM,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,oBAAoB;kBAC9G,iEAAiE,CACtE,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,oBAAoB,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,mCAAmC;cAC5E,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC3G,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC","sourcesContent":["/**\n * Local-checkout source for registry modules (#2015, epic #2012).\n *\n * Paul, 2026-09-29: in framework development the registry is fetched LOCALLY, from the checkout, with no\n * server and no publish step. Wildo's own providers are authored in the monorepo under\n * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an\n * application anywhere else installs them from the public registry (#2024).\n *\n * This file owns the LAYOUT (which domain the checkout answers for, and where one of its modules lives) and\n * READING a module's manifest, which two runtimes need: the CLI's registry commands, and the dev companion,\n * which lists the checkout's providers for an application-creation brief (#2025). STAGING a module is the\n * CLI's job (`local-checkout-module-source.service.ts`).\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { isModuleId, MODULE_MANIFEST_FILE_NAME, ModuleManifestSchema, type ModuleManifest } from './module-manifest.schemas';\n\n/**\n * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework\n * checkout the same domain is answered by the checkout itself, so one install spec\n * (`wildo/providers/asana`) means the same module in both places.\n */\nexport const WILDO_REGISTRY_DOMAIN = 'wildo';\n\n/**\n * Where each module-id SCOPE of the `wildo` domain is authored in the framework checkout.\n *\n * A module `<scope>/<name>` lives at `<frameworkRoot>/<root>/<name>/`, holding its `wildo.module.json` and\n * the content of its single boundary directory: for a provider (`providers/<ref>`) that is one folder per\n * facet (`backend/`, `frontend/`). A scope absent from this table has no local source.\n */\nexport const LOCAL_CHECKOUT_MODULE_ROOTS: Readonly<Record<string, string>> = {\n providers: 'providers-registry',\n};\n\n/**\n * The checkout directory of `<domain>/<moduleId>`, or `undefined` when the checkout does not author it\n * (another domain, or a scope with no local root). Never resolves outside its scope root.\n */\nexport function localCheckoutModuleDirectory(frameworkRoot: string, domain: string, moduleId: string): string | undefined {\n if (domain !== WILDO_REGISTRY_DOMAIN || !isModuleId(moduleId)) return undefined;\n const [scope, name] = moduleId.split('/') as [string, string];\n const rootName = LOCAL_CHECKOUT_MODULE_ROOTS[scope];\n if (rootName === undefined) return undefined;\n const scopeRoot = path.resolve(frameworkRoot, rootName);\n const directory = path.resolve(scopeRoot, name);\n return directory.startsWith(scopeRoot + path.sep) ? directory : undefined;\n}\n\n/** One module the checkout serves, as `wildo registry search` / `info` and the companion list it. */\nexport interface LocalCheckoutModuleListing {\n moduleId: string;\n version: string;\n manifest: ModuleManifest;\n}\n\n/**\n * Every module the checkout serves whose id contains `query` (case-insensitive), sorted by id. A\n * directory without a manifest is not a module and is skipped; a manifest that does not parse is\n * reported, because silently hiding a broken provider is how it goes unnoticed.\n */\nexport async function listLocalCheckoutModules(frameworkRoot: string, query: string): Promise<LocalCheckoutModuleListing[]> {\n const listings: LocalCheckoutModuleListing[] = [];\n for (const [scope, rootName] of Object.entries(LOCAL_CHECKOUT_MODULE_ROOTS)) {\n let names: string[];\n try {\n names = (await fs.readdir(path.join(frameworkRoot, rootName), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n for (const name of names) {\n const moduleId = `${scope}/${name}`;\n if (!moduleId.toLowerCase().includes(query.toLowerCase())) continue;\n const sourceDir = localCheckoutModuleDirectory(frameworkRoot, WILDO_REGISTRY_DOMAIN, moduleId);\n if (sourceDir === undefined) continue;\n try {\n await fs.access(path.join(sourceDir, MODULE_MANIFEST_FILE_NAME));\n } catch {\n continue;\n }\n const manifest = await readLocalCheckoutModuleManifest(sourceDir, `${WILDO_REGISTRY_DOMAIN}/${moduleId}`, frameworkRoot);\n listings.push({ moduleId, version: manifest.version, manifest });\n }\n }\n return listings.sort((a, b) => a.moduleId.localeCompare(b.moduleId));\n}\n\n/**\n * The parsed `wildo.module.json` of a checkout module. Refuses, naming the file: a missing manifest (naming\n * `--registry public` for the published module) or one that does not parse.\n */\nexport async function readLocalCheckoutModuleManifest(sourceDir: string, label: string, frameworkRoot: string): Promise<ModuleManifest> {\n const manifestPath = path.join(sourceDir, MODULE_MANIFEST_FILE_NAME);\n let raw: string;\n try {\n raw = await fs.readFile(manifestPath, 'utf8');\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n throw new Error(\n `The framework checkout has no module \"${label}\" (${path.relative(frameworkRoot, manifestPath)} does not exist). `\n + 'Pass `--registry public` to install a published module instead.',\n );\n }\n throw error;\n }\n const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));\n if (!parsed.success) {\n throw new Error(\n `${path.relative(frameworkRoot, manifestPath)} is not a valid module manifest: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; '),\n );\n }\n return parsed.data;\n}\n"]}
@@ -9,8 +9,7 @@
9
9
  * `wildo-saas.lock.json` envelope and are NEVER touched by code that
10
10
  * mutates `sections.modules`.
11
11
  *
12
- * The shape mirrors `module-registry-analysis.md` KD-4 / "Lockfile
13
- * Shape". Fields are intentionally minimal at Phase 0.5 — additional
12
+ * Fields are intentionally minimal — additional
14
13
  * fields must be justified by install/update behavior rather than
15
14
  * added preemptively.
16
15
  */
@@ -57,72 +56,24 @@ export declare enum ModuleDistribution {
57
56
  * {@link localCheckoutProvenanceOf}, which refuse the other kind rather than returning `undefined`.
58
57
  */
59
58
  export declare const RegistryModulesLockEntrySchema: z.ZodObject<{
60
- /** Module id, mirrors the manifest's `id` (e.g. `acme/billing`). */
61
59
  moduleId: z.ZodString;
62
- /** Where the module came from. Absent reads as REGISTRY (every entry before #2015). */
63
60
  distribution: z.ZodDefault<z.ZodEnum<typeof ModuleDistribution>>;
64
- /** REGISTRY only. Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */
65
61
  registryId: z.ZodOptional<z.ZodString>;
66
- /** REGISTRY only. Resolved registry URL at install time. Stored for audit + repair. */
67
62
  registryUrl: z.ZodOptional<z.ZodString>;
68
- /** LOCAL_CHECKOUT only. The framework checkout's commit when the module was staged. */
69
63
  checkoutCommit: z.ZodOptional<z.ZodString>;
70
- /** LOCAL_CHECKOUT only. Whether the module's source had uncommitted changes when it was staged. */
71
64
  checkoutDirty: z.ZodOptional<z.ZodBoolean>;
72
- /** Domain segment under the registry (e.g. `acme`). */
73
65
  domain: z.ZodString;
74
- /** Concrete resolved semver — never a range. */
75
66
  version: z.ZodString;
76
- /** Original CLI input (e.g. `^1.2.0`), kept for diff visibility. */
77
67
  requestedRange: z.ZodOptional<z.ZodString>;
78
- /**
79
- * REGISTRY only. Artifact integrity digest, format `sha256:<64-hex-lowercase>`.
80
- * Must match `ModuleVersionRecord.integrity` for the same artifact
81
- * — both fields share `Sha256DigestSchema` so a Phase 5 install
82
- * compares like-for-like (M-2.5).
83
- */
84
68
  artifactDigest: z.ZodOptional<z.ZodString>;
85
- /** ISO datetime of install for audit-log purposes. */
86
69
  installedAt: z.ZodISODateTime;
87
- /**
88
- * File paths copied into app source, relative to saas-root (POSIX separators).
89
- *
90
- * Each entry must be a file a module can own ({@link isModuleOwnedFilePath}): below a layer root,
91
- * with no dot-segment or `node_modules`. `wildo registry remove` and `update` DELETE these paths.
92
- * The lockfile is committed, merged and hand-edited, so an unconstrained string here — `"."`,
93
- * `".."`, `"/"`, `"wildo.saas.config.ts"` — was a delete of the application's own files waiting for
94
- * one bad merge. Refusing at parse time means a poisoned entry stops every registry command before
95
- * any file is touched.
96
- */
97
70
  files: z.ZodDefault<z.ZodArray<z.ZodString>>;
98
- /**
99
- * The SHA-256 of each file as the installer last WROTE it (#2016), keyed by the paths in `files`.
100
- *
101
- * A copied module is the application's to edit (the shadcn model), so `update`, `remove` and `repair`
102
- * must know which files the user changed before they overwrite or delete one: equal to this hash
103
- * means untouched and safe to replace; different means edited and kept, with a warning.
104
- *
105
- * Deliberately a separate map beside `files` rather than a reshape of it. `files` is OWNERSHIP, a
106
- * security rule (`remove` deletes those paths), and stays strictly validated; this is a fingerprint,
107
- * and is read TOLERANTLY: a malformed map reads as absent, and a path with no valid hash is treated as
108
- * edited. A bad fingerprint can only make a command more careful, never unable to run.
109
- *
110
- * Not a ledger in the one-source-of-truth sense: it lives in the committed lockfile, so it branches
111
- * and merges with the files it describes, and it never gates boot, `config sync` or a build.
112
- * Precedent: Debian and RPM conffile handling.
113
- */
114
71
  installedFileHashes: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
115
- /** Provenance flag — install vs update vs adopt. */
116
72
  source: z.ZodOptional<z.ZodEnum<{
117
73
  install: "install";
118
74
  update: "update";
119
75
  adopt: "adopt";
120
76
  }>>;
121
- /**
122
- * The registration the install APPLIED to the host's registries, so `remove` reverses exactly those
123
- * edits and `update` can tell whether it changed. Absent = nothing was registered (the module has no
124
- * registration, or it was installed before registration existed).
125
- */
126
77
  registration: z.ZodOptional<z.ZodObject<{
127
78
  scenario: z.ZodEnum<typeof import("./module-manifest.schemas").ModuleRegistrationScenario>;
128
79
  moduleId: z.ZodString;
@@ -182,72 +133,24 @@ export declare function localCheckoutProvenanceOf(entry: RegistryModulesLockEntr
182
133
  */
183
134
  export declare const RegistryModulesLockSectionSchema: z.ZodObject<{
184
135
  installed: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
185
- /** Module id, mirrors the manifest's `id` (e.g. `acme/billing`). */
186
136
  moduleId: z.ZodString;
187
- /** Where the module came from. Absent reads as REGISTRY (every entry before #2015). */
188
137
  distribution: z.ZodDefault<z.ZodEnum<typeof ModuleDistribution>>;
189
- /** REGISTRY only. Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */
190
138
  registryId: z.ZodOptional<z.ZodString>;
191
- /** REGISTRY only. Resolved registry URL at install time. Stored for audit + repair. */
192
139
  registryUrl: z.ZodOptional<z.ZodString>;
193
- /** LOCAL_CHECKOUT only. The framework checkout's commit when the module was staged. */
194
140
  checkoutCommit: z.ZodOptional<z.ZodString>;
195
- /** LOCAL_CHECKOUT only. Whether the module's source had uncommitted changes when it was staged. */
196
141
  checkoutDirty: z.ZodOptional<z.ZodBoolean>;
197
- /** Domain segment under the registry (e.g. `acme`). */
198
142
  domain: z.ZodString;
199
- /** Concrete resolved semver — never a range. */
200
143
  version: z.ZodString;
201
- /** Original CLI input (e.g. `^1.2.0`), kept for diff visibility. */
202
144
  requestedRange: z.ZodOptional<z.ZodString>;
203
- /**
204
- * REGISTRY only. Artifact integrity digest, format `sha256:<64-hex-lowercase>`.
205
- * Must match `ModuleVersionRecord.integrity` for the same artifact
206
- * — both fields share `Sha256DigestSchema` so a Phase 5 install
207
- * compares like-for-like (M-2.5).
208
- */
209
145
  artifactDigest: z.ZodOptional<z.ZodString>;
210
- /** ISO datetime of install for audit-log purposes. */
211
146
  installedAt: z.ZodISODateTime;
212
- /**
213
- * File paths copied into app source, relative to saas-root (POSIX separators).
214
- *
215
- * Each entry must be a file a module can own ({@link isModuleOwnedFilePath}): below a layer root,
216
- * with no dot-segment or `node_modules`. `wildo registry remove` and `update` DELETE these paths.
217
- * The lockfile is committed, merged and hand-edited, so an unconstrained string here — `"."`,
218
- * `".."`, `"/"`, `"wildo.saas.config.ts"` — was a delete of the application's own files waiting for
219
- * one bad merge. Refusing at parse time means a poisoned entry stops every registry command before
220
- * any file is touched.
221
- */
222
147
  files: z.ZodDefault<z.ZodArray<z.ZodString>>;
223
- /**
224
- * The SHA-256 of each file as the installer last WROTE it (#2016), keyed by the paths in `files`.
225
- *
226
- * A copied module is the application's to edit (the shadcn model), so `update`, `remove` and `repair`
227
- * must know which files the user changed before they overwrite or delete one: equal to this hash
228
- * means untouched and safe to replace; different means edited and kept, with a warning.
229
- *
230
- * Deliberately a separate map beside `files` rather than a reshape of it. `files` is OWNERSHIP, a
231
- * security rule (`remove` deletes those paths), and stays strictly validated; this is a fingerprint,
232
- * and is read TOLERANTLY: a malformed map reads as absent, and a path with no valid hash is treated as
233
- * edited. A bad fingerprint can only make a command more careful, never unable to run.
234
- *
235
- * Not a ledger in the one-source-of-truth sense: it lives in the committed lockfile, so it branches
236
- * and merges with the files it describes, and it never gates boot, `config sync` or a build.
237
- * Precedent: Debian and RPM conffile handling.
238
- */
239
148
  installedFileHashes: z.ZodCatch<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
240
- /** Provenance flag — install vs update vs adopt. */
241
149
  source: z.ZodOptional<z.ZodEnum<{
242
150
  install: "install";
243
151
  update: "update";
244
152
  adopt: "adopt";
245
153
  }>>;
246
- /**
247
- * The registration the install APPLIED to the host's registries, so `remove` reverses exactly those
248
- * edits and `update` can tell whether it changed. Absent = nothing was registered (the module has no
249
- * registration, or it was installed before registration existed).
250
- */
251
154
  registration: z.ZodOptional<z.ZodObject<{
252
155
  scenario: z.ZodEnum<typeof import("./module-manifest.schemas").ModuleRegistrationScenario>;
253
156
  moduleId: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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AMG;AACH,eAAO,MAAM,gCAAgC;;QAnI3C,oEAAoE;;QAEpE,uFAAuF;;QAEvF,sFAAsF;;QAEtF,uFAAuF;;QAEvF,uFAAuF;;QAEvF,mGAAmG;;QAEnG,uDAAuD;;QAEvD,gDAAgD;;QAEhD,oEAAoE;;QAEpE;;;;;WAKG;;QAEH,sDAAsD;;QAEtD;;;;;;;;;WASG;;QAIH;;;;;;;;;;;;;;;WAeG;;QAEH,oDAAoD;;;;;;QAEpD;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;kBA2EJ,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
1
+ {"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC;;;;EAAyC,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;;GAIG;AACH,oBAAY,kBAAkB;IAC5B;;;;OAIG;IACH,QAAQ,aAAa;IACrB;;;;;OAKG;IACH,cAAc,mBAAmB;CAClC;AAKD;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAgFzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE3F,0CAA0C;AAC1C,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,gDAAgD;AAChD,MAAM,WAAW,6BAA6B;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wBAAwB,GAAG,wBAAwB,CAQ9F;AAED,sGAAsG;AACtG,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,wBAAwB,GAAG,6BAA6B,CAKxG;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAO5C,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -9,8 +9,7 @@
9
9
  * `wildo-saas.lock.json` envelope and are NEVER touched by code that
10
10
  * mutates `sections.modules`.
11
11
  *
12
- * The shape mirrors `module-registry-analysis.md` KD-4 / "Lockfile
13
- * Shape". Fields are intentionally minimal at Phase 0.5 — additional
12
+ * Fields are intentionally minimal — additional
14
13
  * fields must be justified by install/update behavior rather than
15
14
  * added preemptively.
16
15
  */
@@ -1 +1 @@
1
- {"version":3,"file":"lockfile-modules-section.schemas.js","sourceRoot":"","sources":["../../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE9I;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,O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W,EAAE,KAAK,CAAC,WAAW,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE,CAAC;AAChH,CAAC;AAED,sGAAsG;AACtG,MAAM,UAAU,yBAAyB,CAAC,KAA+B;IACvE,IAAI,KAAK,CAAC,YAAY,KAAK,kBAAkB,CAAC,cAAc,IAAI,KAAK,CAAC,cAAc,KAAK,SAAS,IAAI,KAAK,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QACxI,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,oCAAoC,KAAK,CAAC,YAAY,qCAAqC,CAAC,CAAC;IACjI,CAAC;IACD,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC;AACtF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,8BAA8B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACnF,CAAC,CAAC,MAAM;AACP,kGAAkG;AAClG,iFAAiF;AACjF,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,KAAK,CAAC,QAAQ,CAAC,EAC9F,EAAE,KAAK,EAAE,uEAAuE,EAAE,CACnF,CAAC","sourcesContent":["/**\n * `sections.modules` lockfile section — installed-code state for the\n * Wildo module registry.\n *\n * Owns the durable record of which modules a SaaS app has installed,\n * which exact version + artifact digest is on disk, and which files\n * the registry copied in. Sibling lockfile sections (`providers`,\n * `i18n`) live next to this one under the canonical\n * `wildo-saas.lock.json` envelope and are NEVER touched by code that\n * mutates `sections.modules`.\n *\n * The shape mirrors `module-registry-analysis.md` KD-4 / \"Lockfile\n * Shape\". Fields are intentionally minimal at Phase 0.5 — additional\n * fields must be justified by install/update behavior rather than\n * added preemptively.\n */\n\nimport { z } from 'zod';\nimport { Sha256DigestSchema } from './digest.schemas';\nimport { isModuleOwnedFilePath, ModuleIdSchema, ModuleManifestRegistrationSchema, RegistryDomainSlugSchema } from './module-manifest.schemas';\n\n/**\n * Source label recorded with each lockfile entry. Distinguishes\n * registry-installed code from `adopt`-promoted local code; lets the\n * `update`/`remove` flows decide whether overwriting is a safe\n * round-trip or a destructive operation.\n */\nexport const RegistryModulesInstallSourceSchema = z.enum(['install', 'update', 'adopt']);\nexport type RegistryModulesInstallSource = z.infer<typeof RegistryModulesInstallSourceSchema>;\n\n/**\n * Where an installed module's bytes came from (#2015). Distinct from `source` (install | update | adopt),\n * which records the ACTION that wrote the entry; this records the ORIGIN, and each origin carries\n * different provenance.\n */\nexport enum ModuleDistribution {\n /**\n * Downloaded from a registry server. Provenance: `registryId`, `registryUrl` and `artifactDigest` (the\n * pinned artifact, whose bytes never change for a version). The kind of every entry written before\n * #2015, which is why an entry that omits `distribution` reads as REGISTRY.\n */\n REGISTRY = 'registry',\n /**\n * Staged from the framework checkout's own source (`providers-registry/<ref>/`, see\n * `local-checkout-source.ts`) in framework development. There is no artifact and no digest: the\n * provenance is the checkout commit, plus whether the module's source had uncommitted changes when it\n * was staged, because then the commit alone does not describe the bytes.\n */\n LOCAL_CHECKOUT = 'local-checkout',\n}\n\n/** A full git commit id, as `git rev-parse HEAD` prints it. */\nconst GIT_COMMIT_REGEX = /^[0-9a-f]{40}$/;\n\n/**\n * One installed-module record. Keyed by module id in\n * `RegistryModulesLockSectionSchema.installed`.\n *\n * The provenance fields depend on {@link ModuleDistribution}: a REGISTRY entry carries `registryId`,\n * `registryUrl` and `artifactDigest`; a LOCAL_CHECKOUT entry carries `checkoutCommit` and\n * `checkoutDirty` and none of the registry fields. Read them through {@link registryProvenanceOf} /\n * {@link localCheckoutProvenanceOf}, which refuse the other kind rather than returning `undefined`.\n */\nexport const RegistryModulesLockEntrySchema = z.strictObject({\n /** Module id, mirrors the manifest's `id` (e.g. `acme/billing`). */\n moduleId: ModuleIdSchema,\n /** Where the module came from. Absent reads as REGISTRY (every entry before #2015). */\n distribution: z.enum(ModuleDistribution).default(ModuleDistribution.REGISTRY),\n /** REGISTRY only. Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */\n registryId: z.string().min(1).optional(),\n /** REGISTRY only. Resolved registry URL at install time. Stored for audit + repair. */\n registryUrl: z.string().min(1).optional(),\n /** LOCAL_CHECKOUT only. The framework checkout's commit when the module was staged. */\n checkoutCommit: z.string().regex(GIT_COMMIT_REGEX).optional(),\n /** LOCAL_CHECKOUT only. Whether the module's source had uncommitted changes when it was staged. */\n checkoutDirty: z.boolean().optional(),\n /** Domain segment under the registry (e.g. `acme`). */\n domain: RegistryDomainSlugSchema,\n /** Concrete resolved semver — never a range. */\n version: z.string().min(1),\n /** Original CLI input (e.g. `^1.2.0`), kept for diff visibility. */\n requestedRange: z.string().min(1).optional(),\n /**\n * REGISTRY only. Artifact integrity digest, format `sha256:<64-hex-lowercase>`.\n * Must match `ModuleVersionRecord.integrity` for the same artifact\n * — both fields share `Sha256DigestSchema` so a Phase 5 install\n * compares like-for-like (M-2.5).\n */\n artifactDigest: Sha256DigestSchema.optional(),\n /** ISO datetime of install for audit-log purposes. */\n installedAt: z.iso.datetime({ offset: true }),\n /**\n * File paths copied into app source, relative to saas-root (POSIX separators).\n *\n * Each entry must be a file a module can own ({@link isModuleOwnedFilePath}): below a layer root,\n * with no dot-segment or `node_modules`. `wildo registry remove` and `update` DELETE these paths.\n * The lockfile is committed, merged and hand-edited, so an unconstrained string here — `\".\"`,\n * `\"..\"`, `\"/\"`, `\"wildo.saas.config.ts\"` — was a delete of the application's own files waiting for\n * one bad merge. Refusing at parse time means a poisoned entry stops every registry command before\n * any file is touched.\n */\n files: z.array(z.string().min(1).refine(isModuleOwnedFilePath, {\n error: 'module file entries must be application-relative POSIX paths below a module layer root, with no segment that starts with `.` or is `node_modules`',\n })).default([]),\n /**\n * The SHA-256 of each file as the installer last WROTE it (#2016), keyed by the paths in `files`.\n *\n * A copied module is the application's to edit (the shadcn model), so `update`, `remove` and `repair`\n * must know which files the user changed before they overwrite or delete one: equal to this hash\n * means untouched and safe to replace; different means edited and kept, with a warning.\n *\n * Deliberately a separate map beside `files` rather than a reshape of it. `files` is OWNERSHIP, a\n * security rule (`remove` deletes those paths), and stays strictly validated; this is a fingerprint,\n * and is read TOLERANTLY: a malformed map reads as absent, and a path with no valid hash is treated as\n * edited. A bad fingerprint can only make a command more careful, never unable to run.\n *\n * Not a ledger in the one-source-of-truth sense: it lives in the committed lockfile, so it branches\n * and merges with the files it describes, and it never gates boot, `config sync` or a build.\n * Precedent: Debian and RPM conffile handling.\n */\n installedFileHashes: z.record(z.string(), z.string()).optional().catch(undefined),\n /** Provenance flag — install vs update vs adopt. */\n source: RegistryModulesInstallSourceSchema.optional(),\n /**\n * The registration the install APPLIED to the host's registries, so `remove` reverses exactly those\n * edits and `update` can tell whether it changed. Absent = nothing was registered (the module has no\n * registration, or it was installed before registration existed).\n */\n registration: ModuleManifestRegistrationSchema.optional(),\n}).superRefine((entry, context) => {\n const registryFields = (['registryId', 'registryUrl', 'artifactDigest'] as const).filter((field) => entry[field] !== undefined);\n const checkoutFields = (['checkoutCommit', 'checkoutDirty'] as const).filter((field) => entry[field] !== undefined);\n if (entry.distribution === ModuleDistribution.REGISTRY) {\n for (const field of ['registryId', 'registryUrl', 'artifactDigest'] as const) {\n if (entry[field] === undefined) context.addIssue({ code: 'custom', path: [field], message: `a registry-distributed entry records its ${field}` });\n }\n for (const field of checkoutFields) context.addIssue({ code: 'custom', path: [field], message: `${field} belongs to a local-checkout entry` });\n return;\n }\n for (const field of ['checkoutCommit', 'checkoutDirty'] as const) {\n if (entry[field] === undefined) context.addIssue({ code: 'custom', path: [field], message: `a local-checkout entry records its ${field}` });\n }\n for (const field of registryFields) context.addIssue({ code: 'custom', path: [field], message: `${field} belongs to a registry-distributed entry` });\n});\nexport type RegistryModulesLockEntry = z.infer<typeof RegistryModulesLockEntrySchema>;\n/**\n * What a writer supplies: the entry BEFORE parsing, where defaulted fields (`distribution`, `files`) may\n * be omitted. Writers go through `RegistryLockfileService.upsertEntry`, which parses it, so a default is\n * applied in one place rather than restated at every call site.\n */\nexport type RegistryModulesLockEntryInput = z.input<typeof RegistryModulesLockEntrySchema>;\n\n/** The provenance of a REGISTRY entry. */\nexport interface RegistryModuleProvenance {\n registryId: string;\n registryUrl: string;\n artifactDigest: string;\n}\n\n/** The provenance of a LOCAL_CHECKOUT entry. */\nexport interface LocalCheckoutModuleProvenance {\n checkoutCommit: string;\n checkoutDirty: boolean;\n}\n\n/**\n * The registry an entry was downloaded from, or a refusal naming the entry's real origin. The one way\n * a command reads the registry fields: a local-checkout entry has none, and silently treating it as a\n * registry install would send `update` or `repair` to a server that never served it.\n */\nexport function registryProvenanceOf(entry: RegistryModulesLockEntry): RegistryModuleProvenance {\n if (entry.distribution !== ModuleDistribution.REGISTRY || !entry.registryId || !entry.registryUrl || !entry.artifactDigest) {\n throw new Error(\n `\"${entry.moduleId}\" was installed from the framework checkout (${entry.distribution}), not from a registry, `\n + 'so it has no registry to return to. Run the command inside the framework checkout, or remove it and add it from a registry.',\n );\n }\n return { registryId: entry.registryId, registryUrl: entry.registryUrl, artifactDigest: entry.artifactDigest };\n}\n\n/** The checkout provenance of a LOCAL_CHECKOUT entry, or a refusal naming the entry's real origin. */\nexport function localCheckoutProvenanceOf(entry: RegistryModulesLockEntry): LocalCheckoutModuleProvenance {\n if (entry.distribution !== ModuleDistribution.LOCAL_CHECKOUT || entry.checkoutCommit === undefined || entry.checkoutDirty === undefined) {\n throw new Error(`\"${entry.moduleId}\" was installed from a registry (${entry.distribution}), not from the framework checkout.`);\n }\n return { checkoutCommit: entry.checkoutCommit, checkoutDirty: entry.checkoutDirty };\n}\n\n/**\n * `sections.modules` payload. `installed` is keyed by module id.\n *\n * Wrapper kept as a `z.strictObject` so reviewers can find every\n * place that adds a new top-level field; future extensions stay\n * explicit.\n */\nexport const RegistryModulesLockSectionSchema = z.strictObject({\n installed: z.record(z.string().min(1), RegistryModulesLockEntrySchema).default({}),\n}).refine(\n // Commands look an entry up by its KEY and then build paths from it, so a key that disagrees with\n // the validated `moduleId` inside would smuggle an unvalidated name into a path.\n (section) => Object.entries(section.installed).every(([key, entry]) => key === entry.moduleId),\n { error: 'every sections.modules.installed key must equal its entry\\'s moduleId' },\n);\nexport type RegistryModulesLockSection = z.infer<typeof RegistryModulesLockSectionSchema>;\n"]}
1
+ {"version":3,"file":"lockfile-modules-section.schemas.js","sourceRoot":"","sources":["../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE9I;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAGzF;;;;GAIG;AACH,MAAM,CAAN,IAAY,kBAcX;AAdD,WAAY,kBAAkB;IAC5B;;;;OAIG;IACH,2CAAqB,CAAA;IACrB;;;;;OAKG;IACH,uDAAiC,CAAA;AACnC,CAAC,EAdW,kBAAkB,KAAlB,kBAAkB,QAc7B;AAED,+DAA+D;AAC/D,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAE1C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,oEAAoE;IACpE,QAA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,CAAC;IACjI,CAAC;IACD,OAAO,EAAE,cAAc,EAAE,KAAK,CAAC,cAAc,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC;AACtF,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,8BAA8B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACnF,CAAC,CAAC,MAAM;AACP,kGAAkG;AAClG,iFAAiF;AACjF,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,KAAK,CAAC,QAAQ,CAAC,EAC9F,EAAE,KAAK,EAAE,uEAAuE,EAAE,CACnF,CAAC","sourcesContent":["/**\n * `sections.modules` lockfile section — installed-code state for the\n * Wildo module registry.\n *\n * Owns the durable record of which modules a SaaS app has installed,\n * which exact version + artifact digest is on disk, and which files\n * the registry copied in. Sibling lockfile sections (`providers`,\n * `i18n`) live next to this one under the canonical\n * `wildo-saas.lock.json` envelope and are NEVER touched by code that\n * mutates `sections.modules`.\n *\n * Fields are intentionally minimal — additional\n * fields must be justified by install/update behavior rather than\n * added preemptively.\n */\n\nimport { z } from 'zod';\nimport { Sha256DigestSchema } from './digest.schemas';\nimport { isModuleOwnedFilePath, ModuleIdSchema, ModuleManifestRegistrationSchema, RegistryDomainSlugSchema } from './module-manifest.schemas';\n\n/**\n * Source label recorded with each lockfile entry. Distinguishes\n * registry-installed code from `adopt`-promoted local code; lets the\n * `update`/`remove` flows decide whether overwriting is a safe\n * round-trip or a destructive operation.\n */\nexport const RegistryModulesInstallSourceSchema = z.enum(['install', 'update', 'adopt']);\nexport type RegistryModulesInstallSource = z.infer<typeof RegistryModulesInstallSourceSchema>;\n\n/**\n * Where an installed module's bytes came from (#2015). Distinct from `source` (install | update | adopt),\n * which records the ACTION that wrote the entry; this records the ORIGIN, and each origin carries\n * different provenance.\n */\nexport enum ModuleDistribution {\n /**\n * Downloaded from a registry server. Provenance: `registryId`, `registryUrl` and `artifactDigest` (the\n * pinned artifact, whose bytes never change for a version). The kind of every entry written before\n * #2015, which is why an entry that omits `distribution` reads as REGISTRY.\n */\n REGISTRY = 'registry',\n /**\n * Staged from the framework checkout's own source (`providers-registry/<ref>/`, see\n * `local-checkout-source.ts`) in framework development. There is no artifact and no digest: the\n * provenance is the checkout commit, plus whether the module's source had uncommitted changes when it\n * was staged, because then the commit alone does not describe the bytes.\n */\n LOCAL_CHECKOUT = 'local-checkout',\n}\n\n/** A full git commit id, as `git rev-parse HEAD` prints it. */\nconst GIT_COMMIT_REGEX = /^[0-9a-f]{40}$/;\n\n/**\n * One installed-module record. Keyed by module id in\n * `RegistryModulesLockSectionSchema.installed`.\n *\n * The provenance fields depend on {@link ModuleDistribution}: a REGISTRY entry carries `registryId`,\n * `registryUrl` and `artifactDigest`; a LOCAL_CHECKOUT entry carries `checkoutCommit` and\n * `checkoutDirty` and none of the registry fields. Read them through {@link registryProvenanceOf} /\n * {@link localCheckoutProvenanceOf}, which refuse the other kind rather than returning `undefined`.\n */\nexport const RegistryModulesLockEntrySchema = z.strictObject({\n /** Module id, mirrors the manifest's `id` (e.g. `acme/billing`). */\n moduleId: ModuleIdSchema,\n /** Where the module came from. Absent reads as REGISTRY (every entry before #2015). */\n distribution: z.enum(ModuleDistribution).default(ModuleDistribution.REGISTRY),\n /** REGISTRY only. Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */\n registryId: z.string().min(1).optional(),\n /** REGISTRY only. Resolved registry URL at install time. Stored for audit + repair. */\n registryUrl: z.string().min(1).optional(),\n /** LOCAL_CHECKOUT only. The framework checkout's commit when the module was staged. */\n checkoutCommit: z.string().regex(GIT_COMMIT_REGEX).optional(),\n /** LOCAL_CHECKOUT only. Whether the module's source had uncommitted changes when it was staged. */\n checkoutDirty: z.boolean().optional(),\n /** Domain segment under the registry (e.g. `acme`). */\n domain: RegistryDomainSlugSchema,\n /** Concrete resolved semver — never a range. */\n version: z.string().min(1),\n /** Original CLI input (e.g. `^1.2.0`), kept for diff visibility. */\n requestedRange: z.string().min(1).optional(),\n /**\n * REGISTRY only. Artifact integrity digest, format `sha256:<64-hex-lowercase>`.\n * Must match `ModuleVersionRecord.integrity` for the same artifact\n * — both fields share `Sha256DigestSchema` so a Phase 5 install\n * compares like-for-like (M-2.5).\n */\n artifactDigest: Sha256DigestSchema.optional(),\n /** ISO datetime of install for audit-log purposes. */\n installedAt: z.iso.datetime({ offset: true }),\n /**\n * File paths copied into app source, relative to saas-root (POSIX separators).\n *\n * Each entry must be a file a module can own ({@link isModuleOwnedFilePath}): below a layer root,\n * with no dot-segment or `node_modules`. `wildo registry remove` and `update` DELETE these paths.\n * The lockfile is committed, merged and hand-edited, so an unconstrained string here — `\".\"`,\n * `\"..\"`, `\"/\"`, `\"wildo.saas.config.ts\"` — was a delete of the application's own files waiting for\n * one bad merge. Refusing at parse time means a poisoned entry stops every registry command before\n * any file is touched.\n */\n files: z.array(z.string().min(1).refine(isModuleOwnedFilePath, {\n error: 'module file entries must be application-relative POSIX paths below a module layer root, with no segment that starts with `.` or is `node_modules`',\n })).default([]),\n /**\n * The SHA-256 of each file as the installer last WROTE it (#2016), keyed by the paths in `files`.\n *\n * A copied module is the application's to edit (the shadcn model), so `update`, `remove` and `repair`\n * must know which files the user changed before they overwrite or delete one: equal to this hash\n * means untouched and safe to replace; different means edited and kept, with a warning.\n *\n * Deliberately a separate map beside `files` rather than a reshape of it. `files` is OWNERSHIP, a\n * security rule (`remove` deletes those paths), and stays strictly validated; this is a fingerprint,\n * and is read TOLERANTLY: a malformed map reads as absent, and a path with no valid hash is treated as\n * edited. A bad fingerprint can only make a command more careful, never unable to run.\n *\n * Not a ledger in the one-source-of-truth sense: it lives in the committed lockfile, so it branches\n * and merges with the files it describes, and it never gates boot, `config sync` or a build.\n * Precedent: Debian and RPM conffile handling.\n */\n installedFileHashes: z.record(z.string(), z.string()).optional().catch(undefined),\n /** Provenance flag — install vs update vs adopt. */\n source: RegistryModulesInstallSourceSchema.optional(),\n /**\n * The registration the install APPLIED to the host's registries, so `remove` reverses exactly those\n * edits and `update` can tell whether it changed. Absent = nothing was registered (the module has no\n * registration, or it was installed before registration existed).\n */\n registration: ModuleManifestRegistrationSchema.optional(),\n}).superRefine((entry, context) => {\n const registryFields = (['registryId', 'registryUrl', 'artifactDigest'] as const).filter((field) => entry[field] !== undefined);\n const checkoutFields = (['checkoutCommit', 'checkoutDirty'] as const).filter((field) => entry[field] !== undefined);\n if (entry.distribution === ModuleDistribution.REGISTRY) {\n for (const field of ['registryId', 'registryUrl', 'artifactDigest'] as const) {\n if (entry[field] === undefined) context.addIssue({ code: 'custom', path: [field], message: `a registry-distributed entry records its ${field}` });\n }\n for (const field of checkoutFields) context.addIssue({ code: 'custom', path: [field], message: `${field} belongs to a local-checkout entry` });\n return;\n }\n for (const field of ['checkoutCommit', 'checkoutDirty'] as const) {\n if (entry[field] === undefined) context.addIssue({ code: 'custom', path: [field], message: `a local-checkout entry records its ${field}` });\n }\n for (const field of registryFields) context.addIssue({ code: 'custom', path: [field], message: `${field} belongs to a registry-distributed entry` });\n});\nexport type RegistryModulesLockEntry = z.infer<typeof RegistryModulesLockEntrySchema>;\n/**\n * What a writer supplies: the entry BEFORE parsing, where defaulted fields (`distribution`, `files`) may\n * be omitted. Writers go through `RegistryLockfileService.upsertEntry`, which parses it, so a default is\n * applied in one place rather than restated at every call site.\n */\nexport type RegistryModulesLockEntryInput = z.input<typeof RegistryModulesLockEntrySchema>;\n\n/** The provenance of a REGISTRY entry. */\nexport interface RegistryModuleProvenance {\n registryId: string;\n registryUrl: string;\n artifactDigest: string;\n}\n\n/** The provenance of a LOCAL_CHECKOUT entry. */\nexport interface LocalCheckoutModuleProvenance {\n checkoutCommit: string;\n checkoutDirty: boolean;\n}\n\n/**\n * The registry an entry was downloaded from, or a refusal naming the entry's real origin. The one way\n * a command reads the registry fields: a local-checkout entry has none, and silently treating it as a\n * registry install would send `update` or `repair` to a server that never served it.\n */\nexport function registryProvenanceOf(entry: RegistryModulesLockEntry): RegistryModuleProvenance {\n if (entry.distribution !== ModuleDistribution.REGISTRY || !entry.registryId || !entry.registryUrl || !entry.artifactDigest) {\n throw new Error(\n `\"${entry.moduleId}\" was installed from the framework checkout (${entry.distribution}), not from a registry, `\n + 'so it has no registry to return to. Run the command inside the framework checkout, or remove it and add it from a registry.',\n );\n }\n return { registryId: entry.registryId, registryUrl: entry.registryUrl, artifactDigest: entry.artifactDigest };\n}\n\n/** The checkout provenance of a LOCAL_CHECKOUT entry, or a refusal naming the entry's real origin. */\nexport function localCheckoutProvenanceOf(entry: RegistryModulesLockEntry): LocalCheckoutModuleProvenance {\n if (entry.distribution !== ModuleDistribution.LOCAL_CHECKOUT || entry.checkoutCommit === undefined || entry.checkoutDirty === undefined) {\n throw new Error(`\"${entry.moduleId}\" was installed from a registry (${entry.distribution}), not from the framework checkout.`);\n }\n return { checkoutCommit: entry.checkoutCommit, checkoutDirty: entry.checkoutDirty };\n}\n\n/**\n * `sections.modules` payload. `installed` is keyed by module id.\n *\n * Wrapper kept as a `z.strictObject` so reviewers can find every\n * place that adds a new top-level field; future extensions stay\n * explicit.\n */\nexport const RegistryModulesLockSectionSchema = z.strictObject({\n installed: z.record(z.string().min(1), RegistryModulesLockEntrySchema).default({}),\n}).refine(\n // Commands look an entry up by its KEY and then build paths from it, so a key that disagrees with\n // the validated `moduleId` inside would smuggle an unvalidated name into a path.\n (section) => Object.entries(section.installed).every(([key, entry]) => key === entry.moduleId),\n { error: 'every sections.modules.installed key must equal its entry\\'s moduleId' },\n);\nexport type RegistryModulesLockSection = z.infer<typeof RegistryModulesLockSectionSchema>;\n"]}
@@ -50,6 +50,14 @@ export declare const ModuleVersionRecordSchema: z.ZodObject<{
50
50
  openApi: z.ZodOptional<z.ZodObject<{
51
51
  url: z.ZodURL;
52
52
  revision: z.ZodString;
53
+ additionalDocuments: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ url: z.ZodURL;
55
+ revision: z.ZodString;
56
+ }, z.core.$strict>>>;
57
+ serverMappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ descriptionServer: z.ZodString;
59
+ moduleUrl: z.ZodURL;
60
+ }, z.core.$strict>>>;
53
61
  deviations: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
62
  operationId: z.ZodString;
55
63
  finding: z.ZodEnum<typeof import("./module-manifest.schemas").ProviderOpenApiFindingKind>;
@@ -57,6 +65,15 @@ export declare const ModuleVersionRecordSchema: z.ZodObject<{
57
65
  reason: z.ZodString;
58
66
  }, z.core.$strict>>>;
59
67
  }, z.core.$strict>>;
68
+ graphqlSchema: z.ZodOptional<z.ZodObject<{
69
+ url: z.ZodURL;
70
+ revision: z.ZodString;
71
+ }, z.core.$strict>>;
72
+ monitoring: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
+ kind: z.ZodEnum<typeof import("./module-manifest.schemas").ProviderVendorChangeWatchKind>;
74
+ target: z.ZodURL;
75
+ observed: z.ZodString;
76
+ }, z.core.$strict>>>;
60
77
  seed: z.ZodOptional<z.ZodObject<{
61
78
  source: z.ZodEnum<typeof import("@wildo-ai/saas-models").ProviderCatalogueSource>;
62
79
  sourceRef: z.ZodString;
@@ -113,30 +130,13 @@ export declare const ModuleVersionRecordSchema: z.ZodObject<{
113
130
  }, z.core.$strict>>;
114
131
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
115
132
  }, z.core.$catchall<z.ZodUnknown>>;
116
- /** Engine-`FILES`-resource id of the artifact zip in storage. */
117
133
  artifactFileId: z.ZodString;
118
- /** Required `sha256:<hex>` digest of the artifact bytes. */
119
134
  integrity: z.ZodString;
120
- /** Total artifact size in bytes (informational + DoS clamp). */
121
135
  sizeBytes: z.ZodNumber;
122
136
  publishedAt: z.ZodISODateTime;
123
- /**
124
- * `ApiKeyOrganization._id` of the api-key used at publish time.
125
- * The framework's `ApiKeyOrganization` is org-scoped and has no
126
- * `email` / `userId` field, so the wire identity tracks the
127
- * api-key only — readers who want richer publisher attribution
128
- * resolve the api-key against the framework's `ORG_API_KEYS`
129
- * resource separately.
130
- */
131
137
  publishedByOrgApiKeyId: z.ZodString;
132
- /** ISO datetime when the version was yanked. Soft-yank by default (KD-9). */
133
138
  yankedAt: z.ZodOptional<z.ZodISODateTime>;
134
139
  yankReason: z.ZodOptional<z.ZodString>;
135
- /**
136
- * Reserved for future signing implementations. Format intentionally
137
- * left open until the signing decision is taken (deferred per the
138
- * "Deferred / Out Of Scope" section of the plan).
139
- */
140
140
  signatures: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
141
141
  }, z.core.$strict>;
142
142
  export type ModuleVersionRecord = z.infer<typeof ModuleVersionRecordSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpC,iEAAiE;;IAEjE,4DAA4D;;IAE5D,gEAAgE;;;IAGhE;;;;;;;OAOG;;IAEH,6EAA6E;;;IAG7E;;;;OAIG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AA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C,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC","sourcesContent":["/**\n * Module-artifact schemas — metadata that travels alongside the zip\n * artifact bytes (server-stored ledger rows + CLI `info` payloads\n * + lockfile audit refs).\n *\n * Phase 1 landed the published-version row + integrity descriptor.\n * Phase 3.1-bis aligned the registry server's resource model with the\n * framework's user/org/api-key identity layer: the publish-time\n * identity is now `ApiKeyOrganization._id` only — `ApiKeyOrganization`\n * has no `email` field, and api-keys are typically used by automation\n * (CI/CD), not interactively by a user. The wire schema reflects that\n * decision: `publishedByOrgApiKeyId` replaces the old\n * `publishedBy: { keyId, email }` envelope.\n *\n * Phase 5 install/update verifies `integrity` before unzipping.\n */\n\nimport { z } from 'zod';\nimport { Sha256DigestSchema } from './digest.schemas';\nimport { ModuleManifestSchema } from './module-manifest.schemas';\n\n/**\n * One immutable published version row. Mirrors `RegistryModuleVersion`\n * fields documented in the analysis plan's \"Registry Server Data\n * Model\" section.\n */\nexport const ModuleVersionRecordSchema = z.strictObject({\n moduleId: z.string().min(1),\n version: z.string().min(1),\n manifest: ModuleManifestSchema,\n /** Engine-`FILES`-resource id of the artifact zip in storage. */\n artifactFileId: z.string().min(1),\n /** Required `sha256:<hex>` digest of the artifact bytes. */\n integrity: Sha256DigestSchema,\n /** Total artifact size in bytes (informational + DoS clamp). */\n sizeBytes: z.number().int().nonnegative(),\n publishedAt: z.iso.datetime({ offset: true }),\n /**\n * `ApiKeyOrganization._id` of the api-key used at publish time.\n * The framework's `ApiKeyOrganization` is org-scoped and has no\n * `email` / `userId` field, so the wire identity tracks the\n * api-key only — readers who want richer publisher attribution\n * resolve the api-key against the framework's `ORG_API_KEYS`\n * resource separately.\n */\n publishedByOrgApiKeyId: z.string().min(1),\n /** ISO datetime when the version was yanked. Soft-yank by default (KD-9). */\n yankedAt: z.iso.datetime({ offset: true }).optional(),\n yankReason: z.string().optional(),\n /**\n * Reserved for future signing implementations. Format intentionally\n * left open until the signing decision is taken (deferred per the\n * \"Deferred / Out Of Scope\" section of the plan).\n */\n signatures: z.array(z.unknown()).optional(),\n});\nexport type ModuleVersionRecord = z.infer<typeof ModuleVersionRecordSchema>;\n\n/**\n * A yanked release is still served by EXACT version (#1758): an application whose lockfile pins it\n * must be able to reinstall. The artifact download then carries the yank in these two headers, and the\n * resolve response carries it as {@link RegistryYankNoticeSchema}, so a client can warn.\n * The reason is free text, so it travels percent-encoded (`encodeURIComponent`) — never raw in a header.\n */\nexport const REGISTRY_YANKED_AT_HEADER = 'x-wildo-yanked-at';\nexport const REGISTRY_YANK_REASON_HEADER = 'x-wildo-yank-reason';\n\nexport const RegistryYankNoticeSchema = z.object({\n yankedAt: z.iso.datetime({ offset: true }),\n reason: z.string().optional(),\n});\nexport type RegistryYankNotice = z.infer<typeof RegistryYankNoticeSchema>;\n\n/**\n * 7th-pass S-M3: wire schema for the `PUT /v1/registry/:domain/modules/:moduleId/tags/:tag`\n * response. Documented so future CLI consumers can Zod-parse it\n * without guessing the shape.\n *\n * `noChange: true` signals that the requested `(tag, version)` mapping\n * was already in place — the registry short-circuited the repo write\n * + audit emission to keep SIEM counts honest. Optional so successful\n * mutations omit it. Consumers should treat absence as `false`.\n */\nexport const SetTagResponseSchema = z.object({\n ok: z.boolean(),\n noChange: z.boolean().optional(),\n});\nexport type SetTagResponse = z.infer<typeof SetTagResponseSchema>;\n\n/**\n * `GET /v1/auth/whoami` on the REGISTRY SERVER — the identity a bearer key resolves to, read by\n * `wildo registry login` and `whoami --verify`. The CLI Zod-parses every required field so a misconfigured registry\n * that omits `organizationId` cannot persist a credential with `org=?`.\n *\n * `roles` is optional because not every registry deployment models\n * roles today; when supplied it lands on the per-machine credential\n * blob for staleness UX.\n *\n * 4th-pass review M5: the schema is `.object({...})` (NOT `.strictObject`)\n * so the registry server can add new optional response fields\n * (`tokenIssuedAt`, `lastUsedAt`, etc.) WITHOUT every existing CLI\n * version refusing to authenticate. The CLI still fails-closed on\n * missing required fields; only unknown additional fields are\n * silently dropped on the client side. Forward-compat is the priority\n * here since CLI versions cannot be flushed in lockstep with server\n * deployments.\n */\nexport const RegistryWhoamiResponseSchema = z.object({\n organizationId: z.string().min(1),\n apiKeyId: z.string().min(1),\n apiKeyName: z.string().min(1).optional(),\n roles: z.array(z.string().min(1)).optional(),\n});\nexport type RegistryWhoamiResponse = z.infer<typeof RegistryWhoamiResponseSchema>;\n"]}
1
+ {"version":3,"file":"module-artifact.schemas.js","sourceRoot":"","sources":["../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,QAAQ,EAAE,oBAAoB;IAC9B,iEAAiE;IACjE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,4DAA4D;IAC5D,SAAS,EAAE,kBAAkB;IAC7B,gEAAgE;IAChE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7C;;;;;;;OAOG;IACH,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,6EAA6E;IAC7E,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ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,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC","sourcesContent":["/**\n * Module-artifact schemas — metadata that travels alongside the zip\n * artifact bytes (server-stored ledger rows + CLI `info` payloads\n * + lockfile audit refs).\n *\n * Phase 1 landed the published-version row + integrity descriptor.\n * Phase 3.1-bis aligned the registry server's resource model with the\n * framework's user/org/api-key identity layer: the publish-time\n * identity is now `ApiKeyOrganization._id` only — `ApiKeyOrganization`\n * has no `email` field, and api-keys are typically used by automation\n * (CI/CD), not interactively by a user. The wire schema reflects that\n * decision: `publishedByOrgApiKeyId` replaces the old\n * `publishedBy: { keyId, email }` envelope.\n *\n * Phase 5 install/update verifies `integrity` before unzipping.\n */\n\nimport { z } from 'zod';\nimport { Sha256DigestSchema } from './digest.schemas';\nimport { ModuleManifestSchema } from './module-manifest.schemas';\n\n/**\n * One immutable published version row. Mirrors `RegistryModuleVersion`\n * fields documented in the analysis plan's \"Registry Server Data\n * Model\" section.\n */\nexport const ModuleVersionRecordSchema = z.strictObject({\n moduleId: z.string().min(1),\n version: z.string().min(1),\n manifest: ModuleManifestSchema,\n /** Engine-`FILES`-resource id of the artifact zip in storage. */\n artifactFileId: z.string().min(1),\n /** Required `sha256:<hex>` digest of the artifact bytes. */\n integrity: Sha256DigestSchema,\n /** Total artifact size in bytes (informational + DoS clamp). */\n sizeBytes: z.number().int().nonnegative(),\n publishedAt: z.iso.datetime({ offset: true }),\n /**\n * `ApiKeyOrganization._id` of the api-key used at publish time.\n * The framework's `ApiKeyOrganization` is org-scoped and has no\n * `email` / `userId` field, so the wire identity tracks the\n * api-key only — readers who want richer publisher attribution\n * resolve the api-key against the framework's `ORG_API_KEYS`\n * resource separately.\n */\n publishedByOrgApiKeyId: z.string().min(1),\n /** ISO datetime when the version was yanked. Soft-yank by default (KD-9). */\n yankedAt: z.iso.datetime({ offset: true }).optional(),\n yankReason: z.string().optional(),\n /**\n * Reserved for future signing implementations. Format intentionally\n * left open until the signing decision is taken (deferred per the\n * \"Deferred / Out Of Scope\" section of the plan).\n */\n signatures: z.array(z.unknown()).optional(),\n});\nexport type ModuleVersionRecord = z.infer<typeof ModuleVersionRecordSchema>;\n\n/**\n * A yanked release is still served by EXACT version (#1758): an application whose lockfile pins it\n * must be able to reinstall. The artifact download then carries the yank in these two headers, and the\n * resolve response carries it as {@link RegistryYankNoticeSchema}, so a client can warn.\n * The reason is free text, so it travels percent-encoded (`encodeURIComponent`) — never raw in a header.\n */\nexport const REGISTRY_YANKED_AT_HEADER = 'x-wildo-yanked-at';\nexport const REGISTRY_YANK_REASON_HEADER = 'x-wildo-yank-reason';\n\nexport const RegistryYankNoticeSchema = z.object({\n yankedAt: z.iso.datetime({ offset: true }),\n reason: z.string().optional(),\n});\nexport type RegistryYankNotice = z.infer<typeof RegistryYankNoticeSchema>;\n\n/**\n * 7th-pass S-M3: wire schema for the `PUT /v1/registry/:domain/modules/:moduleId/tags/:tag`\n * response. Documented so future CLI consumers can Zod-parse it\n * without guessing the shape.\n *\n * `noChange: true` signals that the requested `(tag, version)` mapping\n * was already in place — the registry short-circuited the repo write\n * + audit emission to keep SIEM counts honest. Optional so successful\n * mutations omit it. Consumers should treat absence as `false`.\n */\nexport const SetTagResponseSchema = z.object({\n ok: z.boolean(),\n noChange: z.boolean().optional(),\n});\nexport type SetTagResponse = z.infer<typeof SetTagResponseSchema>;\n\n/**\n * `GET /v1/auth/whoami` on the REGISTRY SERVER — the identity a bearer key resolves to, read by\n * `wildo registry login` and `whoami --verify`. The CLI Zod-parses every required field so a misconfigured registry\n * that omits `organizationId` cannot persist a credential with `org=?`.\n *\n * `roles` is optional because not every registry deployment models\n * roles today; when supplied it lands on the per-machine credential\n * blob for staleness UX.\n *\n * 4th-pass review M5: the schema is `.object({...})` (NOT `.strictObject`)\n * so the registry server can add new optional response fields\n * (`tokenIssuedAt`, `lastUsedAt`, etc.) WITHOUT every existing CLI\n * version refusing to authenticate. The CLI still fails-closed on\n * missing required fields; only unknown additional fields are\n * silently dropped on the client side. Forward-compat is the priority\n * here since CLI versions cannot be flushed in lockstep with server\n * deployments.\n */\nexport const RegistryWhoamiResponseSchema = z.object({\n organizationId: z.string().min(1),\n apiKeyId: z.string().min(1),\n apiKeyName: z.string().min(1).optional(),\n roles: z.array(z.string().min(1)).optional(),\n});\nexport type RegistryWhoamiResponse = z.infer<typeof RegistryWhoamiResponseSchema>;\n"]}