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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/dist/esm/_unimplemented/soft-warn.d.ts +24 -49
  2. package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
  3. package/dist/esm/_unimplemented/soft-warn.js +24 -49
  4. package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
  5. package/dist/esm/blueprint/anchored-region.d.ts.map +1 -1
  6. package/dist/esm/blueprint/anchored-region.js.map +1 -1
  7. package/dist/esm/blueprint/blueprint.schemas.d.ts +0 -89
  8. package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -1
  9. package/dist/esm/blueprint/blueprint.schemas.js.map +1 -1
  10. package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
  11. package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
  12. package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
  13. package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
  14. package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
  15. package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
  16. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  17. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  18. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +8 -1
  19. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  20. package/dist/esm/bootstrap/bootstrap.schemas.js +15 -1
  21. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  22. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +10 -2
  23. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  24. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +10 -2
  25. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  26. package/dist/esm/bootstrap/platform-store-preconnect.d.ts +21 -0
  27. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
  28. package/dist/esm/bootstrap/platform-store-preconnect.js +25 -0
  29. package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
  30. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts +80 -0
  31. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts.map +1 -0
  32. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js +81 -0
  33. package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js.map +1 -0
  34. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +41 -9
  35. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  36. package/dist/esm/bootstrap/runtime-backing-service-access.js +77 -28
  37. package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
  38. package/dist/esm/bootstrap/runtime-network-policy.d.ts +117 -12
  39. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  40. package/dist/esm/bootstrap/runtime-network-policy.js +222 -23
  41. package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
  42. package/dist/esm/bootstrap/runtime-network-topology.d.ts +31 -4
  43. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  44. package/dist/esm/bootstrap/runtime-network-topology.js +43 -2
  45. package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
  46. package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
  47. package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
  48. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +40 -2
  49. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  50. package/dist/esm/bootstrap/runtime-principal.contracts.js +66 -3
  51. package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
  52. package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -1
  53. package/dist/esm/bootstrap/runtime-response-integrity.js +3 -3
  54. package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -1
  55. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -1
  56. package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -1
  57. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  58. package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
  59. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
  60. package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
  61. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -1
  62. package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -1
  63. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  64. package/dist/esm/config-authoring.entry.js.map +1 -1
  65. package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
  66. package/dist/esm/credentials/credential-generator.service.js.map +1 -1
  67. package/dist/esm/index.d.ts +5 -1
  68. package/dist/esm/index.d.ts.map +1 -1
  69. package/dist/esm/index.js +5 -1
  70. package/dist/esm/index.js.map +1 -1
  71. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts +119 -0
  72. package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts.map +1 -0
  73. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js +109 -0
  74. package/dist/esm/key-management/application-legacy-envelope-key.contracts.js.map +1 -0
  75. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts +182 -0
  76. package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts.map +1 -0
  77. package/dist/esm/key-management/application-signing-key-rotation.contracts.js +145 -0
  78. package/dist/esm/key-management/application-signing-key-rotation.contracts.js.map +1 -0
  79. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts +156 -0
  80. package/dist/esm/key-management/approval-seal-manifested-copy.d.ts.map +1 -0
  81. package/dist/esm/key-management/approval-seal-manifested-copy.js +617 -0
  82. package/dist/esm/key-management/approval-seal-manifested-copy.js.map +1 -0
  83. package/dist/esm/key-management/approval-seal-verifier.d.ts +101 -39
  84. package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -1
  85. package/dist/esm/key-management/approval-seal-verifier.js +134 -12
  86. package/dist/esm/key-management/approval-seal-verifier.js.map +1 -1
  87. package/dist/esm/key-management/approval-seal.contracts.d.ts +12 -15
  88. package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -1
  89. package/dist/esm/key-management/approval-seal.contracts.js +20 -0
  90. package/dist/esm/key-management/approval-seal.contracts.js.map +1 -1
  91. package/dist/esm/key-management/data-key.contracts.d.ts +0 -2
  92. package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -1
  93. package/dist/esm/key-management/data-key.contracts.js.map +1 -1
  94. package/dist/esm/key-management/es256-jws.d.ts.map +1 -1
  95. package/dist/esm/key-management/es256-jws.js.map +1 -1
  96. package/dist/esm/key-management/key-provider.spi.d.ts +8 -1
  97. package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -1
  98. package/dist/esm/key-management/key-provider.spi.js.map +1 -1
  99. package/dist/esm/key-management/keyring-rotation.contracts.d.ts +2 -12
  100. package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -1
  101. package/dist/esm/key-management/keyring-rotation.contracts.js +3 -3
  102. package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -1
  103. package/dist/esm/key-management/keyring-status.contracts.d.ts +0 -7
  104. package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -1
  105. package/dist/esm/key-management/keyring-status.contracts.js.map +1 -1
  106. package/dist/esm/key-management/pdf-incremental-update.d.ts +158 -0
  107. package/dist/esm/key-management/pdf-incremental-update.d.ts.map +1 -0
  108. package/dist/esm/key-management/pdf-incremental-update.js +730 -0
  109. package/dist/esm/key-management/pdf-incremental-update.js.map +1 -0
  110. package/dist/esm/key-management/pdf-truetype-font.d.ts +35 -0
  111. package/dist/esm/key-management/pdf-truetype-font.d.ts.map +1 -0
  112. package/dist/esm/key-management/pdf-truetype-font.js +152 -0
  113. package/dist/esm/key-management/pdf-truetype-font.js.map +1 -0
  114. package/dist/esm/key-management/qr-code.d.ts +38 -0
  115. package/dist/esm/key-management/qr-code.d.ts.map +1 -0
  116. package/dist/esm/key-management/qr-code.js +325 -0
  117. package/dist/esm/key-management/qr-code.js.map +1 -0
  118. package/dist/esm/key-management/signature-request.contracts.d.ts +0 -4
  119. package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -1
  120. package/dist/esm/key-management/signature-request.contracts.js.map +1 -1
  121. package/dist/esm/key-management/signing-log-export.contracts.d.ts +0 -1
  122. package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -1
  123. package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -1
  124. package/dist/esm/key-management/vault-custody.contracts.d.ts +43 -0
  125. package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -1
  126. package/dist/esm/key-management/vault-custody.contracts.js +66 -0
  127. package/dist/esm/key-management/vault-custody.contracts.js.map +1 -1
  128. package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
  129. package/dist/esm/lockfile/build-parallelism.js.map +1 -1
  130. package/dist/esm/lockfile/canonical-json.d.ts +1 -1
  131. package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
  132. package/dist/esm/lockfile/canonical-json.js +1 -1
  133. package/dist/esm/lockfile/canonical-json.js.map +1 -1
  134. package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
  135. package/dist/esm/lockfile/file-lock-hold.js +2 -1
  136. package/dist/esm/lockfile/file-lock-hold.js.map +1 -1
  137. package/dist/esm/lockfile/lockfile-io.d.ts +6 -8
  138. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  139. package/dist/esm/lockfile/lockfile-io.js +6 -8
  140. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  141. package/dist/esm/lockfile/materialize-infra-section.d.ts +5 -6
  142. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  143. package/dist/esm/lockfile/materialize-infra-section.js +4 -5
  144. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  145. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +1 -247
  146. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  147. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +1 -1
  148. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  149. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts +146 -0
  150. package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts.map +1 -0
  151. package/dist/esm/pnpm-settings/application-pnpm-settings.js +573 -0
  152. package/dist/esm/pnpm-settings/application-pnpm-settings.js.map +1 -0
  153. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
  154. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +15 -3
  155. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
  156. package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -1
  157. package/dist/esm/project-config/application-served-public-documents.loader.js +16 -8
  158. package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -1
  159. package/dist/esm/project-config/backend-compliance-section.reader.d.ts +35 -0
  160. package/dist/esm/project-config/backend-compliance-section.reader.d.ts.map +1 -0
  161. package/dist/esm/project-config/backend-compliance-section.reader.js +123 -0
  162. package/dist/esm/project-config/backend-compliance-section.reader.js.map +1 -0
  163. package/dist/esm/project-config/backend-compliance-section.worker.d.ts +20 -0
  164. package/dist/esm/project-config/backend-compliance-section.worker.d.ts.map +1 -0
  165. package/dist/esm/project-config/backend-compliance-section.worker.js +78 -0
  166. package/dist/esm/project-config/backend-compliance-section.worker.js.map +1 -0
  167. package/dist/esm/project-config/config-module-resolution.d.ts +32 -0
  168. package/dist/esm/project-config/config-module-resolution.d.ts.map +1 -0
  169. package/dist/esm/project-config/config-module-resolution.js +33 -0
  170. package/dist/esm/project-config/config-module-resolution.js.map +1 -0
  171. package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
  172. package/dist/esm/project-config/define-framework-config.js.map +1 -1
  173. package/dist/esm/project-config/define-infra-env-config.d.ts +109 -55
  174. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  175. package/dist/esm/project-config/define-infra-env-config.js +108 -70
  176. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  177. package/dist/esm/project-config/define-minion-config.d.ts +26 -36
  178. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  179. package/dist/esm/project-config/define-minion-config.js +64 -25
  180. package/dist/esm/project-config/define-minion-config.js.map +1 -1
  181. package/dist/esm/project-config/define-saas-config.d.ts +41 -437
  182. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  183. package/dist/esm/project-config/define-saas-config.js +102 -94
  184. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  185. package/dist/esm/project-config/define-worker-config.d.ts +10 -20
  186. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  187. package/dist/esm/project-config/define-worker-config.js +10 -12
  188. package/dist/esm/project-config/define-worker-config.js.map +1 -1
  189. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
  190. package/dist/esm/project-config/hosted-infra-env-config.js +1 -1
  191. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
  192. package/dist/esm/project-config/index.d.ts +2 -0
  193. package/dist/esm/project-config/index.d.ts.map +1 -1
  194. package/dist/esm/project-config/index.js +2 -0
  195. package/dist/esm/project-config/index.js.map +1 -1
  196. package/dist/esm/project-config/loader-instances-zod.d.ts +19 -0
  197. package/dist/esm/project-config/loader-instances-zod.d.ts.map +1 -0
  198. package/dist/esm/project-config/loader-instances-zod.js +40 -0
  199. package/dist/esm/project-config/loader-instances-zod.js.map +1 -0
  200. package/dist/esm/project-config/loader.d.ts +131 -14
  201. package/dist/esm/project-config/loader.d.ts.map +1 -1
  202. package/dist/esm/project-config/loader.js +226 -12
  203. package/dist/esm/project-config/loader.js.map +1 -1
  204. package/dist/esm/project-config/minion-liveness.contracts.d.ts +131 -0
  205. package/dist/esm/project-config/minion-liveness.contracts.d.ts.map +1 -0
  206. package/dist/esm/project-config/minion-liveness.contracts.js +167 -0
  207. package/dist/esm/project-config/minion-liveness.contracts.js.map +1 -0
  208. package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
  209. package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -1
  210. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
  211. package/dist/esm/project-config/npm-version-range.js.map +1 -1
  212. package/dist/esm/project-config/owning-package-tsconfig.d.ts +7 -7
  213. package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -1
  214. package/dist/esm/project-config/owning-package-tsconfig.js +7 -7
  215. package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -1
  216. package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
  217. package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
  218. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  219. package/dist/esm/project-config/provider-companion-discovery.js +3 -1
  220. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  221. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +71 -46
  222. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  223. package/dist/esm/project-config/provider-runtime-artifacts.js +150 -4
  224. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  225. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +0 -2
  226. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  227. package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -1
  228. package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
  229. package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
  230. package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
  231. package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
  232. package/dist/esm/project-config/shared/auth.schemas.d.ts +0 -17
  233. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  234. package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
  235. package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -1
  236. package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
  237. package/dist/esm/project-config/shared/backing-services.schemas.d.ts +9 -10
  238. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  239. package/dist/esm/project-config/shared/backing-services.schemas.js +13 -15
  240. package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
  241. package/dist/esm/project-config/shared/cdn.schemas.d.ts +0 -51
  242. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  243. package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
  244. package/dist/esm/project-config/shared/csp-defaults.d.ts +34 -6
  245. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  246. package/dist/esm/project-config/shared/csp-defaults.js +52 -8
  247. package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
  248. package/dist/esm/project-config/shared/csp-emit.d.ts +60 -13
  249. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  250. package/dist/esm/project-config/shared/csp-emit.js +77 -24
  251. package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
  252. package/dist/esm/project-config/shared/csp.schemas.d.ts +72 -84
  253. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  254. package/dist/esm/project-config/shared/csp.schemas.js +40 -12
  255. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  256. package/dist/esm/project-config/shared/data-services.schemas.d.ts +0 -8
  257. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  258. package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
  259. package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
  260. package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
  261. package/dist/esm/project-config/shared/environment.schemas.d.ts +95 -8
  262. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  263. package/dist/esm/project-config/shared/environment.schemas.js +122 -10
  264. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  265. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +10 -4
  266. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  267. package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
  268. package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
  269. package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
  270. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +1 -1
  271. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  272. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +1 -1
  273. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  274. package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
  275. package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
  276. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
  277. package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
  278. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +20 -0
  279. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  280. package/dist/esm/project-config/shared/minion-resource-access.validation.js +21 -2
  281. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  282. package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
  283. package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
  284. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +62 -36
  285. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -1
  286. package/dist/esm/project-config/shared/platform-key-management.schemas.js +105 -3
  287. package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -1
  288. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  289. package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
  290. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +2 -2
  291. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
  292. package/dist/esm/project-config/shared/platform-storage.schemas.js +16 -2
  293. package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
  294. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +21 -23
  295. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  296. package/dist/esm/project-config/shared/service-definitions.schemas.js +4 -5
  297. package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
  298. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +0 -18
  299. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
  300. package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
  301. package/dist/esm/project-config/static-asset-import-noop.d.ts +20 -3
  302. package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
  303. package/dist/esm/project-config/static-asset-import-noop.js +36 -20
  304. package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
  305. package/dist/esm/registry/artifact-domain.schemas.d.ts +0 -5
  306. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  307. package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
  308. package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
  309. package/dist/esm/registry/digest.schemas.js.map +1 -1
  310. package/dist/esm/registry/index.d.ts +2 -3
  311. package/dist/esm/registry/index.d.ts.map +1 -1
  312. package/dist/esm/registry/index.js +2 -3
  313. package/dist/esm/registry/index.js.map +1 -1
  314. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
  315. package/dist/esm/registry/local-checkout-source.js.map +1 -1
  316. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +1 -98
  317. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  318. package/dist/esm/registry/lockfile-modules-section.schemas.js +1 -2
  319. package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
  320. package/dist/esm/registry/module-artifact.schemas.d.ts +17 -17
  321. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  322. package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
  323. package/dist/esm/registry/module-manifest.schemas.d.ts +151 -219
  324. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  325. package/dist/esm/registry/module-manifest.schemas.js +145 -13
  326. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  327. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
  328. package/dist/esm/registry/module-search.schemas.js.map +1 -1
  329. package/dist/esm/registry/registry-config.schemas.d.ts +0 -18
  330. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  331. package/dist/esm/registry/registry-config.schemas.js.map +1 -1
  332. package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
  333. package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
  334. package/dist/esm/registry/registry-errors.d.ts +81 -3
  335. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  336. package/dist/esm/registry/registry-errors.js +185 -4
  337. package/dist/esm/registry/registry-errors.js.map +1 -1
  338. package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -1
  339. package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
  340. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  341. package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
  342. package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -1
  343. package/dist/esm/registry/registry-url-resolution.js.map +1 -1
  344. package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
  345. package/dist/esm/release/framework-release.constants.js.map +1 -1
  346. package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
  347. package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
  348. package/dist/esm/schemas/framework-secrets.schemas.d.ts +0 -7
  349. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  350. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  351. package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
  352. package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
  353. package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
  354. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +1 -1
  355. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
  356. package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
  357. package/dist/esm/schemas/platform-config.schemas.d.ts +2 -2
  358. package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
  359. package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
  360. package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
  361. package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
  362. package/dist/esm/workspace-scope/index.d.ts.map +1 -1
  363. package/dist/esm/workspace-scope/index.js.map +1 -1
  364. package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
  365. package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
  366. package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
  367. package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
  368. package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
  369. package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
  370. package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
  371. package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
  372. package/dist/tsconfig.build.tsbuildinfo +1 -1
  373. package/package.json +12 -12
  374. package/dist/esm/_unimplemented/index.d.ts +0 -3
  375. package/dist/esm/_unimplemented/index.d.ts.map +0 -1
  376. package/dist/esm/_unimplemented/index.js +0 -3
  377. package/dist/esm/_unimplemented/index.js.map +0 -1
  378. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +0 -137
  379. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +0 -1
  380. package/dist/esm/_unimplemented/unimplemented-field-warning.js +0 -153
  381. package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +0 -1
  382. package/dist/esm/project-config/shared/cdn.example.d.ts +0 -14
  383. package/dist/esm/project-config/shared/cdn.example.d.ts.map +0 -1
  384. package/dist/esm/project-config/shared/cdn.example.js +0 -38
  385. package/dist/esm/project-config/shared/cdn.example.js.map +0 -1
  386. package/dist/esm/project-config/shared/schema-version.schemas.d.ts +0 -15
  387. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +0 -1
  388. package/dist/esm/project-config/shared/schema-version.schemas.js +0 -40
  389. package/dist/esm/project-config/shared/schema-version.schemas.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"module-search.schemas.js","sourceRoot":"","sources":["../../../../src/registry/module-search.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,sBAAsB,EACtB,wCAAwC,GAEzC,MAAM,2BAA2B,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,YAAY,CAAC;IACrD,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IACnC,gBAAgB,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;IACrD,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAGH,w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,CAAC;AACJ,CAAC","sourcesContent":["/**\n * What a registry search may filter on, and what a hit says about the module (#2014, epic #2012).\n *\n * Once providers are distributed through the registry, \"find me a module\" becomes \"find me a provider that fills\n * this engine capability\". The three filters are the manifest's own axes: its KIND, the ENGINE CAPABILITY a provider\n * fills (derived from its provider capabilities, never declared twice), and a provider's MATURITY.\n *\n * One predicate, {@link moduleManifestMatchesSearchFilter}, answers the question for every source a search reads —\n * the registry server's stored manifests and a framework checkout's `providers-registry/` (#2015) — so the two\n * cannot disagree about what a filter means.\n */\nimport { z } from 'zod';\nimport { EngineCapability } from '@wildo-ai/saas-models';\nimport {\n ModuleKind,\n ProviderModuleMaturity,\n engineCapabilitiesFilledByProviderModule,\n type ModuleManifest,\n} from './module-manifest.schemas';\n\n/**\n * The filters a search accepts. Each absent filter matches everything.\n *\n * `engineCapability` and `maturity` are provider axes, so either one excludes every FEATURE module: a feature module\n * fills no engine capability and has no maturity.\n */\nexport const ModuleSearchFilterSchema = z.strictObject({\n kind: z.enum(ModuleKind).optional(),\n engineCapability: z.enum(EngineCapability).optional(),\n maturity: z.enum(ProviderModuleMaturity).optional(),\n});\nexport type ModuleSearchFilter = z.infer<typeof ModuleSearchFilterSchema>;\n\n/** The query-string keys, in the order a client writes them. One list, so the server and the client name them alike. */\nexport const MODULE_SEARCH_FILTER_KEYS = ['kind', 'engineCapability', 'maturity'] as const satisfies readonly (keyof ModuleSearchFilter)[];\n\n/** Whether a manifest passes every filter given. */\nexport function moduleManifestMatchesSearchFilter(manifest: ModuleManifest, filter: ModuleSearchFilter): boolean {\n const kind = manifest.kind ?? ModuleKind.FEATURE;\n if (filter.kind !== undefined && kind !== filter.kind) return false;\n if (filter.engineCapability === undefined && filter.maturity === undefined) return true;\n const provider = manifest.provider;\n if (kind !== ModuleKind.PROVIDER || provider === undefined) return false;\n if (filter.maturity !== undefined && provider.maturity !== filter.maturity) return false;\n if (filter.engineCapability !== undefined && !engineCapabilitiesFilledByProviderModule(provider).includes(filter.engineCapability)) return false;\n return true;\n}\n\n/**\n * A search's filters as query-string pairs, only for the filters given. The client writes them; the server reads them\n * back through {@link ModuleSearchFilterSchema}, which refuses an unknown value rather than ignoring it: a filter that\n * silently matched everything would answer \"every module\" to a question about one kind.\n */\nexport function moduleSearchFilterQueryPairs(filter: ModuleSearchFilter): Array<[string, string]> {\n return MODULE_SEARCH_FILTER_KEYS.flatMap((key) => (filter[key] === undefined ? [] : [[key, String(filter[key])] as [string, string]]));\n}\n\nconst KNOWN_ENGINE_CAPABILITIES: ReadonlySet<string> = new Set(Object.values(EngineCapability));\n\n/**\n * What a search hit says about a provider module, so a list can be read without an `info` per hit.\n *\n * `engineCapabilities` is read as strings and narrowed to the members THIS client knows (#2014 re-review I1): a\n * registry newer than the client may name a capability added since, and refusing the whole search over it would turn\n * a vocabulary step into an outage. A member the client does not know is dropped from the hit, which is also the only\n * thing the client could do with it: no filter it can express names that member.\n *\n * Known limit, kept deliberately: `kind` and `maturity` stay strict. An unknown member there is not a detail to drop\n * but a module the client cannot classify at all (a kind it would install how? a maturity it would rank where?), so a\n * newer registry adding one still fails the search, and the remedy is updating the CLI.\n */\nexport const ModuleSearchHitProviderSchema = z.object({\n ref: z.string().min(1),\n maturity: z.enum(ProviderModuleMaturity),\n engineCapabilities: z.array(z.string()).transform((values) => values.filter((value): value is EngineCapability => KNOWN_ENGINE_CAPABILITIES.has(value))),\n /**\n * The provider an AUGMENTATION adds its operations to (#1672, #2022), so a reader can tell from the hit that the\n * module owns no connection and is bound as that base ref. Optional on the wire: a registry deployed before #2025\n * sends none, and the hit then reads like any provider's.\n */\n augments: z.string().min(1).optional(),\n});\nexport type ModuleSearchHitProvider = z.infer<typeof ModuleSearchHitProviderSchema>;\n\n/**\n * One search hit on the wire. `kind` and `provider` are optional because a registry deployed before #2014 sends\n * neither; a client reads an absent `kind` as FEATURE, as the manifest does.\n */\nexport const ModuleSearchHitSchema = z.object({\n moduleId: z.string().min(1),\n description: z.string().optional(),\n latestVersion: z.string(),\n kind: z.enum(ModuleKind).optional(),\n provider: ModuleSearchHitProviderSchema.optional(),\n});\nexport type ModuleSearchHit = z.infer<typeof ModuleSearchHitSchema>;\n\n/**\n * Whether a HIT passes the filters, read from the facts the hit carries. The client re-applies it to what a server\n * answers (#2014 review F9): a registry deployed before #2014 ignores the filter parameters and answers every module,\n * and a filtered search must not then fail open. A hit with no `kind` is a FEATURE module, and one with no `provider`\n * facts matches no provider filter, so an old server's answer to a provider search is empty rather than everything.\n */\nexport function moduleSearchHitMatchesFilter(hit: Pick<ModuleSearchHit, 'kind' | 'provider'>, filter: ModuleSearchFilter): boolean {\n const kind = hit.kind ?? ModuleKind.FEATURE;\n if (filter.kind !== undefined && kind !== filter.kind) return false;\n if (filter.engineCapability === undefined && filter.maturity === undefined) return true;\n if (kind !== ModuleKind.PROVIDER || hit.provider === undefined) return false;\n if (filter.maturity !== undefined && hit.provider.maturity !== filter.maturity) return false;\n if (filter.engineCapability !== undefined && !hit.provider.engineCapabilities.includes(filter.engineCapability)) return false;\n return true;\n}\n\n/** The `kind` and `provider` fields of a hit, from the module's manifest. */\nexport function moduleSearchHitFacts(manifest: ModuleManifest): Pick<ModuleSearchHit, 'kind' | 'provider'> {\n const kind = manifest.kind ?? ModuleKind.FEATURE;\n const provider = manifest.provider;\n return {\n kind,\n ...(kind === ModuleKind.PROVIDER && provider !== undefined\n ? {\n provider: {\n ref: provider.ref,\n maturity: provider.maturity,\n engineCapabilities: engineCapabilitiesFilledByProviderModule(provider),\n ...(provider.augments !== undefined ? { augments: provider.augments } : {}),\n },\n }\n : {}),\n };\n}\n"]}
1
+ {"version":3,"file":"module-search.schemas.js","sourceRoot":"","sources":["../../../src/registry/module-search.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EACL,UAAU,EACV,sBAAsB,EACt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,KAAK,SAAS;YACxD,CAAC,CAAC;gBACE,QAAQ,EAAE;oBACR,GAAG,EAAE,QAAQ,CAAC,GAAG;oBACjB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;oBAC3B,kBAAkB,EAAE,wCAAwC,CAAC,QAAQ,CAAC;oBACtE,GAAG,CAAC,QAAQ,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC5E;aACF;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC","sourcesContent":["/**\n * What a registry search may filter on, and what a hit says about the module (#2014, epic #2012).\n *\n * Once providers are distributed through the registry, \"find me a module\" becomes \"find me a provider that fills\n * this engine capability\". The three filters are the manifest's own axes: its KIND, the ENGINE CAPABILITY a provider\n * fills (derived from its provider capabilities, never declared twice), and a provider's MATURITY.\n *\n * One predicate, {@link moduleManifestMatchesSearchFilter}, answers the question for every source a search reads —\n * the registry server's stored manifests and a framework checkout's `providers-registry/` (#2015) — so the two\n * cannot disagree about what a filter means.\n */\nimport { z } from 'zod';\nimport { EngineCapability } from '@wildo-ai/saas-models';\nimport {\n ModuleKind,\n ProviderModuleMaturity,\n engineCapabilitiesFilledByProviderModule,\n type ModuleManifest,\n} from './module-manifest.schemas';\n\n/**\n * The filters a search accepts. Each absent filter matches everything.\n *\n * `engineCapability` and `maturity` are provider axes, so either one excludes every FEATURE module: a feature module\n * fills no engine capability and has no maturity.\n */\nexport const ModuleSearchFilterSchema = z.strictObject({\n kind: z.enum(ModuleKind).optional(),\n engineCapability: z.enum(EngineCapability).optional(),\n maturity: z.enum(ProviderModuleMaturity).optional(),\n});\nexport type ModuleSearchFilter = z.infer<typeof ModuleSearchFilterSchema>;\n\n/** The query-string keys, in the order a client writes them. One list, so the server and the client name them alike. */\nexport const MODULE_SEARCH_FILTER_KEYS = ['kind', 'engineCapability', 'maturity'] as const satisfies readonly (keyof ModuleSearchFilter)[];\n\n/** Whether a manifest passes every filter given. */\nexport function moduleManifestMatchesSearchFilter(manifest: ModuleManifest, filter: ModuleSearchFilter): boolean {\n const kind = manifest.kind ?? ModuleKind.FEATURE;\n if (filter.kind !== undefined && kind !== filter.kind) return false;\n if (filter.engineCapability === undefined && filter.maturity === undefined) return true;\n const provider = manifest.provider;\n if (kind !== ModuleKind.PROVIDER || provider === undefined) return false;\n if (filter.maturity !== undefined && provider.maturity !== filter.maturity) return false;\n if (filter.engineCapability !== undefined && !engineCapabilitiesFilledByProviderModule(provider).includes(filter.engineCapability)) return false;\n return true;\n}\n\n/**\n * A search's filters as query-string pairs, only for the filters given. The client writes them; the server reads them\n * back through {@link ModuleSearchFilterSchema}, which refuses an unknown value rather than ignoring it: a filter that\n * silently matched everything would answer \"every module\" to a question about one kind.\n */\nexport function moduleSearchFilterQueryPairs(filter: ModuleSearchFilter): Array<[string, string]> {\n return MODULE_SEARCH_FILTER_KEYS.flatMap((key) => (filter[key] === undefined ? [] : [[key, String(filter[key])] as [string, string]]));\n}\n\nconst KNOWN_ENGINE_CAPABILITIES: ReadonlySet<string> = new Set(Object.values(EngineCapability));\n\n/**\n * What a search hit says about a provider module, so a list can be read without an `info` per hit.\n *\n * `engineCapabilities` is read as strings and narrowed to the members THIS client knows (#2014 re-review I1): a\n * registry newer than the client may name a capability added since, and refusing the whole search over it would turn\n * a vocabulary step into an outage. A member the client does not know is dropped from the hit, which is also the only\n * thing the client could do with it: no filter it can express names that member.\n *\n * Known limit, kept deliberately: `kind` and `maturity` stay strict. An unknown member there is not a detail to drop\n * but a module the client cannot classify at all (a kind it would install how? a maturity it would rank where?), so a\n * newer registry adding one still fails the search, and the remedy is updating the CLI.\n */\nexport const ModuleSearchHitProviderSchema = z.object({\n ref: z.string().min(1),\n maturity: z.enum(ProviderModuleMaturity),\n engineCapabilities: z.array(z.string()).transform((values) => values.filter((value): value is EngineCapability => KNOWN_ENGINE_CAPABILITIES.has(value))),\n /**\n * The provider an AUGMENTATION adds its operations to (#1672, #2022), so a reader can tell from the hit that the\n * module owns no connection and is bound as that base ref. Optional on the wire: a registry deployed before #2025\n * sends none, and the hit then reads like any provider's.\n */\n augments: z.string().min(1).optional(),\n});\nexport type ModuleSearchHitProvider = z.infer<typeof ModuleSearchHitProviderSchema>;\n\n/**\n * One search hit on the wire. `kind` and `provider` are optional because a registry deployed before #2014 sends\n * neither; a client reads an absent `kind` as FEATURE, as the manifest does.\n */\nexport const ModuleSearchHitSchema = z.object({\n moduleId: z.string().min(1),\n description: z.string().optional(),\n latestVersion: z.string(),\n kind: z.enum(ModuleKind).optional(),\n provider: ModuleSearchHitProviderSchema.optional(),\n});\nexport type ModuleSearchHit = z.infer<typeof ModuleSearchHitSchema>;\n\n/**\n * Whether a HIT passes the filters, read from the facts the hit carries. The client re-applies it to what a server\n * answers (#2014 review F9): a registry deployed before #2014 ignores the filter parameters and answers every module,\n * and a filtered search must not then fail open. A hit with no `kind` is a FEATURE module, and one with no `provider`\n * facts matches no provider filter, so an old server's answer to a provider search is empty rather than everything.\n */\nexport function moduleSearchHitMatchesFilter(hit: Pick<ModuleSearchHit, 'kind' | 'provider'>, filter: ModuleSearchFilter): boolean {\n const kind = hit.kind ?? ModuleKind.FEATURE;\n if (filter.kind !== undefined && kind !== filter.kind) return false;\n if (filter.engineCapability === undefined && filter.maturity === undefined) return true;\n if (kind !== ModuleKind.PROVIDER || hit.provider === undefined) return false;\n if (filter.maturity !== undefined && hit.provider.maturity !== filter.maturity) return false;\n if (filter.engineCapability !== undefined && !hit.provider.engineCapabilities.includes(filter.engineCapability)) return false;\n return true;\n}\n\n/** The `kind` and `provider` fields of a hit, from the module's manifest. */\nexport function moduleSearchHitFacts(manifest: ModuleManifest): Pick<ModuleSearchHit, 'kind' | 'provider'> {\n const kind = manifest.kind ?? ModuleKind.FEATURE;\n const provider = manifest.provider;\n return {\n kind,\n ...(kind === ModuleKind.PROVIDER && provider !== undefined\n ? {\n provider: {\n ref: provider.ref,\n maturity: provider.maturity,\n engineCapabilities: engineCapabilitiesFilledByProviderModule(provider),\n ...(provider.augments !== undefined ? { augments: provider.augments } : {}),\n },\n }\n : {}),\n };\n}\n"]}
@@ -15,32 +15,14 @@
15
15
  */
16
16
  import { z } from 'zod';
17
17
  export declare const RegistryConfigEntrySchema: z.ZodObject<{
18
- /** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */
19
18
  id: z.ZodString;
20
- /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
21
19
  url: z.ZodURL;
22
- /**
23
- * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI
24
- * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and
25
- * the artifact digest cannot help, because the server that serves the bytes also reports the digest.
26
- * Named per registry on purpose, so the exception is visible in review and reaches no other registry.
27
- * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.
28
- */
29
20
  allowInsecureHttp: z.ZodOptional<z.ZodBoolean>;
30
21
  }, z.core.$strict>;
31
22
  export type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;
32
23
  export declare const RegistryConfigSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
33
- /** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */
34
24
  id: z.ZodString;
35
- /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
36
25
  url: z.ZodURL;
37
- /**
38
- * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI
39
- * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and
40
- * the artifact digest cannot help, because the server that serves the bytes also reports the digest.
41
- * Named per registry on purpose, so the exception is visible in review and reaches no other registry.
42
- * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.
43
- */
44
26
  allowInsecureHttp: z.ZodOptional<z.ZodBoolean>;
45
27
  }, z.core.$strict>>>;
46
28
  export type RegistryConfig = z.infer<typeof RegistryConfigSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+DAA+D;;IAE/D;;;;;;OAMG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;IAf/B,qEAAqE;;IAErE,+DAA+D;;IAE/D;;;;;;OAMG;;oBAK6E,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;;;;kBAapC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;;;oBAAiD,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-config.schemas.js","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,qEAAqE;IACrE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,+DAA+D;IAC/D,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE;IACZ;;;;;;OAMG;IACH,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC","sourcesContent":["/**\n * App-level registry configuration — the\n * `wildo.saas.config.ts > moduleRegistries` array.\n *\n * Phase 0.5 lands the schema only. The actual `defineSaasConfig`\n * extension (KD-16) lands in Phase 4 alongside `wildo registry\n * login`/`whoami` so that authoring + auth-config land in the same\n * pass. Phase 1 may also add per-entry policy fields (e.g. default\n * resolution behavior, scope, secret refs) — keep this surface\n * minimal until those flows are designed.\n *\n * Credentials are intentionally NOT recorded here — they live in\n * per-machine CLI storage (KD-11). The app-level config only points\n * at registry endpoints.\n */\n\nimport { z } from 'zod';\n\nexport const RegistryConfigEntrySchema = z.strictObject({\n /** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */\n id: z.string().min(1),\n /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */\n url: z.url(),\n /**\n * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI\n * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and\n * the artifact digest cannot help, because the server that serves the bytes also reports the digest.\n * Named per registry on purpose, so the exception is visible in review and reaches no other registry.\n * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.\n */\n allowInsecureHttp: z.boolean().optional(),\n});\nexport type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;\n\nexport const RegistryConfigSchema = z.array(RegistryConfigEntrySchema).default([]);\nexport type RegistryConfig = z.infer<typeof RegistryConfigSchema>;\n"]}
1
+ {"version":3,"file":"registry-config.schemas.js","sourceRoot":"","sources":["../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,qEAAqE;IACrE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,+DAA+D;IAC/D,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE;IACZ;;;;;;OAMG;IACH,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC","sourcesContent":["/**\n * App-level registry configuration — the\n * `wildo.saas.config.ts > moduleRegistries` array.\n *\n * Phase 0.5 lands the schema only. The actual `defineSaasConfig`\n * extension (KD-16) lands in Phase 4 alongside `wildo registry\n * login`/`whoami` so that authoring + auth-config land in the same\n * pass. Phase 1 may also add per-entry policy fields (e.g. default\n * resolution behavior, scope, secret refs) — keep this surface\n * minimal until those flows are designed.\n *\n * Credentials are intentionally NOT recorded here — they live in\n * per-machine CLI storage (KD-11). The app-level config only points\n * at registry endpoints.\n */\n\nimport { z } from 'zod';\n\nexport const RegistryConfigEntrySchema = z.strictObject({\n /** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */\n id: z.string().min(1),\n /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */\n url: z.url(),\n /**\n * Allow plain `http://` to this registry although it is not on a loopback host (#1764). The CLI\n * otherwise refuses: over plain HTTP the bearer key and the module source travel in cleartext, and\n * the artifact digest cannot help, because the server that serves the bytes also reports the digest.\n * Named per registry on purpose, so the exception is visible in review and reaches no other registry.\n * Loopback (`localhost`, `127.0.0.0/8`, `::1`) never needs it.\n */\n allowInsecureHttp: z.boolean().optional(),\n});\nexport type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;\n\nexport const RegistryConfigSchema = z.array(RegistryConfigEntrySchema).default([]);\nexport type RegistryConfig = z.infer<typeof RegistryConfigSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-defaults.constants.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-defaults.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,8BAA8B,CAAC;AAEvE;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,UAAU,CAAC"}
1
+ {"version":3,"file":"registry-defaults.constants.d.ts","sourceRoot":"","sources":["../../../src/registry/registry-defaults.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,8BAA8B,CAAC;AAEvE;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAAO,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,UAAU,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-defaults.constants.js","sourceRoot":"","sources":["../../../../src/registry/registry-defaults.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,2BAA2B,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC","sourcesContent":["/**\n * Single-source-of-truth constants for module-registry defaults.\n *\n * Phase 0.5 lands the constants used by every registry consumer\n * (`wildo-cli`, `wildo-module-client`, the future\n * `platform-module-registry` server, and the dev companion). Adding\n * new defaults here keeps the CLI, server, and lockfile readers in\n * agreement without forcing a third package.\n */\n\n/**\n * Default registry URL when the user is NOT inside a Wildo framework\n * checkout. Public Wildo registry — equivalent of npm's\n * `https://registry.npmjs.org` for module-registry artifacts.\n */\nexport const DEFAULT_PUBLIC_REGISTRY_URL = 'https://registry.wildo.ai';\n\n/**\n * Default registry URL when running inside a Wildo framework\n * checkout (framework-developer mode). Points at the local\n * `platform-module-registry` service. The pinned port mirrors\n * KD-7 / Review-pass-4 MEDIUM-GG: `5154` is the next free slot\n * after the `5151`/`5152` platform services in\n * `templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs`.\n */\nexport const DEFAULT_LOCAL_REGISTRY_URL = 'http://localhost:5154';\n\n/**\n * Pinned port for the local registry service. Surfaced separately so\n * docker-compose templates and CLI default-flags can stay aligned\n * with the URL constant above.\n */\nexport const DEFAULT_LOCAL_REGISTRY_PORT = 5154;\n\n/**\n * Default registry id used by `wildo registry init` and the CLI's\n * default flags when the user does not explicitly pick a registry.\n * Matches `wildo.saas.config.ts > moduleRegistries[].id` convention.\n */\nexport const DEFAULT_REGISTRY_ID = 'wildo';\n"]}
1
+ {"version":3,"file":"registry-defaults.constants.js","sourceRoot":"","sources":["../../../src/registry/registry-defaults.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,2BAA2B,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAC;AAEhD;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,CAAC","sourcesContent":["/**\n * Single-source-of-truth constants for module-registry defaults.\n *\n * Phase 0.5 lands the constants used by every registry consumer\n * (`wildo-cli`, `wildo-module-client`, the future\n * `platform-module-registry` server, and the dev companion). Adding\n * new defaults here keeps the CLI, server, and lockfile readers in\n * agreement without forcing a third package.\n */\n\n/**\n * Default registry URL when the user is NOT inside a Wildo framework\n * checkout. Public Wildo registry — equivalent of npm's\n * `https://registry.npmjs.org` for module-registry artifacts.\n */\nexport const DEFAULT_PUBLIC_REGISTRY_URL = 'https://registry.wildo.ai';\n\n/**\n * Default registry URL when running inside a Wildo framework\n * checkout (framework-developer mode). Points at the local\n * `platform-module-registry` service. The pinned port mirrors\n * KD-7 / Review-pass-4 MEDIUM-GG: `5154` is the next free slot\n * after the `5151`/`5152` platform services in\n * `templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs`.\n */\nexport const DEFAULT_LOCAL_REGISTRY_URL = 'http://localhost:5154';\n\n/**\n * Pinned port for the local registry service. Surfaced separately so\n * docker-compose templates and CLI default-flags can stay aligned\n * with the URL constant above.\n */\nexport const DEFAULT_LOCAL_REGISTRY_PORT = 5154;\n\n/**\n * Default registry id used by `wildo registry init` and the CLI's\n * default flags when the user does not explicitly pick a registry.\n * Matches `wildo.saas.config.ts > moduleRegistries[].id` convention.\n */\nexport const DEFAULT_REGISTRY_ID = 'wildo';\n"]}
@@ -181,8 +181,7 @@ export declare class RegistryLockfileRepairableError extends RegistryError {
181
181
  * materialization fails after the source mutation succeeded. The
182
182
  * companion-export discovery and `runtimeImport` reachability
183
183
  * failure modes are both surfaced via this error so module-registry
184
- * callers report them as first-class repairable integration errors
185
- * (`module-registry-analysis.md` / Provider Migration WIP Seams §1).
184
+ * callers report them as first-class repairable integration errors.
186
185
  */
187
186
  export declare class RegistryProviderSyncFailedError extends RegistryError {
188
187
  readonly failureKind: 'companion-discovery' | 'runtime-import-reachability' | 'invalid-scope' | 'timeout' | 'unknown';
@@ -203,8 +202,87 @@ export declare class RegistryUnexpectedStatusError extends RegistryError {
203
202
  readonly status: number;
204
203
  readonly statusText: string;
205
204
  readonly action: string;
206
- constructor(registryUrl: string, status: number, statusText: string, action: string);
205
+ /** What the refusal's body said (#3388), read with {@link readRegistryRefusalBody}; absent for an empty body. */
206
+ readonly refusal?: RegistryRefusal;
207
+ constructor(registryUrl: string, status: number, statusText: string, action: string,
208
+ /** What the refusal's body said (#3388), read with {@link readRegistryRefusalBody}; absent for an empty body. */
209
+ refusal?: RegistryRefusal);
207
210
  }
211
+ /** One field a registry refusal names, as its error envelope lists it: the path into the request and what is wrong there. */
212
+ export interface RegistryRefusalIssue {
213
+ path: string;
214
+ message: string;
215
+ }
216
+ /**
217
+ * What a registry refusal SAID, read from its body (#3388). Until then every client of the registry reported a refusal
218
+ * as its HTTP status alone: `wildo fwk publish providers` printed `400 Bad Request at <url>` for a manifest the
219
+ * registry's schema refused, and the cause had to be inferred from the server's uptime and the schema's history.
220
+ *
221
+ * The registry answers through the engine's error envelope (`{ error: { type, message, code?, details?,
222
+ * validationErrors?, correlationId? } }`), sanitized at the wire: `error.message` is only the engine's generic
223
+ * reference (`validation`, `conflict`), the registry's own reason travels in `details.message` (the context key the
224
+ * sanitizer admits for a VALIDATION or CONFLICT refusal), and a schema refusal lists its paths in `validationErrors`.
225
+ * Every field is optional because a refusal may come from something that is not the registry: a proxy's HTML page
226
+ * becomes an {@link RegistryRefusal.excerpt}.
227
+ */
228
+ export interface RegistryRefusal {
229
+ /** The engine's error type (`VALIDATION`, `CONFLICT`, …). */
230
+ type?: string;
231
+ /** The registry's stable refusal code, when it set one (`error.code`, or `error.details.code`). */
232
+ code?: string;
233
+ /** The registry's reason (`error.details.message`). */
234
+ reason?: string;
235
+ /** The engine's generic reference (`error.message`), shown only when no reason came with it. */
236
+ reference?: string;
237
+ /** The fields a schema refusal names. */
238
+ issues: RegistryRefusalIssue[];
239
+ /** The id the registry logged this request under; quote it to find the server's own record. */
240
+ correlationId?: string;
241
+ /** A body that is not the error envelope, whitespace collapsed and cut to {@link REGISTRY_REFUSAL_EXCERPT_LENGTH}. */
242
+ excerpt?: string;
243
+ }
244
+ /** How much of a body that is not the error envelope a refusal quotes. */
245
+ export declare const REGISTRY_REFUSAL_EXCERPT_LENGTH = 300;
246
+ /**
247
+ * How long a refusal's body may take to arrive once its headers have, when the caller supplies no deadline (#3388). A
248
+ * caller holding a request budget passes it instead (`RegistryServerClient` does, at every read). Either way the read
249
+ * HAS a deadline, which matters most for an artifact download: it clears its response timer when the headers arrive
250
+ * and arms its idle timer only when the transfer is read (#1763), so its refusal body would otherwise have none.
251
+ */
252
+ export declare const REGISTRY_REFUSAL_BODY_TIMEOUT_MS = 10000;
253
+ /** How much of a refusal's body is read. An error envelope is a few hundred bytes; anything longer is quoted, not parsed. */
254
+ export declare const REGISTRY_REFUSAL_BODY_MAX_BYTES: number;
255
+ /**
256
+ * Read a refusal's body ONCE, bounded, and never fail doing so: its JSON value, else its text, else `undefined` (an
257
+ * empty body, one that could not be read, or one that did not arrive within the deadline). The status is already a
258
+ * failure, so a body that cannot be read must not replace it with a second error; the caller reports the status alone.
259
+ *
260
+ * Every refusal that carries no typed meaning is read through this function: `RegistryServerClient`'s unexpected
261
+ * statuses and its 409s that are not the registry's own code, the CLI's publish request, and `wildo registry login` /
262
+ * `whoami`. A refusal a client maps to a typed error (401, 403, 404, 429) names its remedy already and is not read: the
263
+ * engine strips the context of an authentication, authorization or not-found refusal at the wire.
264
+ */
265
+ export declare function readRegistryRefusalBody(res: Response, bounds?: {
266
+ timeoutMs?: number;
267
+ maxBytes?: number;
268
+ }): Promise<unknown>;
269
+ /**
270
+ * What a refusal body says, from what {@link readRegistryRefusalBody} returned: the error envelope's fields, or an
271
+ * excerpt of a body that is not one. `undefined` when there was no body, so the caller reports the status alone
272
+ * rather than an empty reason.
273
+ */
274
+ export declare function parseRegistryRefusalBody(body: unknown): RegistryRefusal | undefined;
275
+ /** {@link readRegistryRefusalBody} then {@link parseRegistryRefusalBody}, for a caller that branches on nothing in the body. */
276
+ export declare function readRegistryRefusal(res: Response, bounds?: {
277
+ timeoutMs?: number;
278
+ maxBytes?: number;
279
+ }): Promise<RegistryRefusal | undefined>;
280
+ /**
281
+ * One line for a person: the reason (or the generic reference when the registry gave none), the fields it names, then
282
+ * the code and the correlation id. E.g. `invalid manifest; provider: Unrecognized key: "openApi" (VALIDATION,
283
+ * correlation id 7f3a…)`.
284
+ */
285
+ export declare function describeRegistryRefusal(refusal: RegistryRefusal): string;
208
286
  /**
209
287
  * Raised by `RegistryServerClient` when
210
288
  * a 2xx response carries a payload the canonical Zod schema can't parse.
@@ -1 +1 @@
1
- {"version":3,"file":"registry-errors.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,oBAAY,iBAAiB;IAC3B,wEAAwE;IACxE,2BAA2B,+CAA+C;IAC1E,4CAA4C;IAC5C,gBAAgB,oCAAoC;IACpD,uDAAuD;IACvD,iBAAiB,qCAAqC;IACtD,uCAAuC;IACvC,cAAc,kCAAkC;IAChD,uEAAuE;IACvE,sBAAsB,0CAA0C;IAChE,4DAA4D;IAC5D,kBAAkB,sCAAsC;IACxD,uEAAuE;IACvE,mBAAmB,uCAAuC;IAC1D,yDAAyD;IACzD,aAAa,iCAAiC;IAC9C;;;;OAIG;IACH,mBAAmB,uCAAuC;IAC1D;;;OAGG;IACH,YAAY,gCAAgC;IAC5C,4GAA4G;IAC5G,mBAAmB,uCAAuC;IAC1D,kEAAkE;IAClE,cAAc,kCAAkC;IAChD,8FAA8F;IAC9F,mBAAmB,uCAAuC;IAC1D,8GAA8G;IAC9G,oBAAoB,wCAAwC;IAC5D,+EAA+E;IAC/E,iBAAiB,qCAAqC;IACtD,kEAAkE;IAClE,iBAAiB,qCAAqC;IACtD,+EAA+E;IAC/E,eAAe,mCAAmC;IAClD,2GAA2G;IAC3G,YAAY,gCAAgC;CAC7C;AAED,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;gBAErB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KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE"}
@@ -268,8 +268,7 @@ export class RegistryLockfileRepairableError extends RegistryError {
268
268
  * materialization fails after the source mutation succeeded. The
269
269
  * companion-export discovery and `runtimeImport` reachability
270
270
  * failure modes are both surfaced via this error so module-registry
271
- * callers report them as first-class repairable integration errors
272
- * (`module-registry-analysis.md` / Provider Migration WIP Seams §1).
271
+ * callers report them as first-class repairable integration errors.
273
272
  */
274
273
  export class RegistryProviderSyncFailedError extends RegistryError {
275
274
  failureKind;
@@ -295,15 +294,197 @@ export class RegistryUnexpectedStatusError extends RegistryError {
295
294
  status;
296
295
  statusText;
297
296
  action;
298
- constructor(registryUrl, status, statusText, action) {
299
- super(RegistryErrorCode.UNEXPECTED_STATUS, `Registry "${action}" failed with HTTP ${status} ${statusText} at ${registryUrl}.`);
297
+ refusal;
298
+ constructor(registryUrl, status, statusText, action,
299
+ /** What the refusal's body said (#3388), read with {@link readRegistryRefusalBody}; absent for an empty body. */
300
+ refusal) {
301
+ super(RegistryErrorCode.UNEXPECTED_STATUS, `Registry "${action}" failed with HTTP ${status} ${statusText} at ${registryUrl}${refusal ? `: ${describeRegistryRefusal(refusal)}` : ''}.`);
300
302
  this.registryUrl = registryUrl;
301
303
  this.status = status;
302
304
  this.statusText = statusText;
303
305
  this.action = action;
306
+ this.refusal = refusal;
304
307
  this.name = 'RegistryUnexpectedStatusError';
305
308
  }
306
309
  }
310
+ /** How much of a body that is not the error envelope a refusal quotes. */
311
+ export const REGISTRY_REFUSAL_EXCERPT_LENGTH = 300;
312
+ /**
313
+ * How long a refusal's body may take to arrive once its headers have, when the caller supplies no deadline (#3388). A
314
+ * caller holding a request budget passes it instead (`RegistryServerClient` does, at every read). Either way the read
315
+ * HAS a deadline, which matters most for an artifact download: it clears its response timer when the headers arrive
316
+ * and arms its idle timer only when the transfer is read (#1763), so its refusal body would otherwise have none.
317
+ */
318
+ export const REGISTRY_REFUSAL_BODY_TIMEOUT_MS = 10_000;
319
+ /** How much of a refusal's body is read. An error envelope is a few hundred bytes; anything longer is quoted, not parsed. */
320
+ export const REGISTRY_REFUSAL_BODY_MAX_BYTES = 64 * 1024;
321
+ /**
322
+ * Read a refusal's body ONCE, bounded, and never fail doing so: its JSON value, else its text, else `undefined` (an
323
+ * empty body, one that could not be read, or one that did not arrive within the deadline). The status is already a
324
+ * failure, so a body that cannot be read must not replace it with a second error; the caller reports the status alone.
325
+ *
326
+ * Every refusal that carries no typed meaning is read through this function: `RegistryServerClient`'s unexpected
327
+ * statuses and its 409s that are not the registry's own code, the CLI's publish request, and `wildo registry login` /
328
+ * `whoami`. A refusal a client maps to a typed error (401, 403, 404, 429) names its remedy already and is not read: the
329
+ * engine strips the context of an authentication, authorization or not-found refusal at the wire.
330
+ */
331
+ export async function readRegistryRefusalBody(res, bounds = {}) {
332
+ let reader;
333
+ try {
334
+ // Inside the guard: a body already read or locked throws here, and that must not replace the status either.
335
+ reader = res.body?.getReader();
336
+ }
337
+ catch {
338
+ return undefined;
339
+ }
340
+ if (!reader)
341
+ return undefined;
342
+ const maxBytes = bounds.maxBytes ?? REGISTRY_REFUSAL_BODY_MAX_BYTES;
343
+ let timer;
344
+ const expired = new Promise((resolve) => {
345
+ timer = setTimeout(() => resolve('expired'), bounds.timeoutMs ?? REGISTRY_REFUSAL_BODY_TIMEOUT_MS);
346
+ });
347
+ const chunks = [];
348
+ let total = 0;
349
+ try {
350
+ for (;;) {
351
+ const next = await Promise.race([reader.read(), expired]);
352
+ if (next === 'expired')
353
+ return undefined;
354
+ if (next.done)
355
+ break;
356
+ chunks.push(next.value);
357
+ total += next.value.byteLength;
358
+ if (total >= maxBytes)
359
+ break;
360
+ }
361
+ }
362
+ catch {
363
+ return undefined;
364
+ }
365
+ finally {
366
+ clearTimeout(timer);
367
+ // Releases the connection whether the body ended, was cut at the cap, or stalled.
368
+ void reader.cancel().catch(() => undefined);
369
+ }
370
+ const bytes = new Uint8Array(total);
371
+ let offset = 0;
372
+ for (const chunk of chunks) {
373
+ bytes.set(chunk, offset);
374
+ offset += chunk.byteLength;
375
+ }
376
+ const text = new TextDecoder().decode(bytes.subarray(0, Math.min(total, maxBytes)));
377
+ if (text.trim() === '')
378
+ return undefined;
379
+ try {
380
+ return JSON.parse(text);
381
+ }
382
+ catch {
383
+ return text;
384
+ }
385
+ }
386
+ function nonEmptyString(value) {
387
+ return typeof value === 'string' && value.trim() !== '' ? value : undefined;
388
+ }
389
+ /** A `validationErrors` value: a plain message, or a coded entry (`{ code, params }`) the client has no words for. */
390
+ function describeValidationEntry(entry) {
391
+ const text = nonEmptyString(entry);
392
+ if (text)
393
+ return text;
394
+ if (entry && typeof entry === 'object' && typeof entry.code === 'string') {
395
+ const { code, params } = entry;
396
+ return params && typeof params === 'object' && Object.keys(params).length > 0 ? `${code} ${JSON.stringify(params)}` : code;
397
+ }
398
+ return undefined;
399
+ }
400
+ /**
401
+ * The fields a refusal names. `details.zodIssues` first: it is the full ordered list, while the envelope's
402
+ * `validationErrors` is a map the error handler keys by the joined path, so two issues on one path (every issue of a
403
+ * URL segment or a slug, whose path is empty) collapse to the last. `validationErrors` answers when there are no
404
+ * `zodIssues`: a coded entry (`not_unique`, `declared_refusal`) travels only there.
405
+ */
406
+ function refusalIssues(error, details) {
407
+ const zodIssues = details?.zodIssues;
408
+ if (Array.isArray(zodIssues)) {
409
+ const issues = zodIssues.flatMap((issue) => {
410
+ const { path, message } = (issue ?? {});
411
+ const text = nonEmptyString(message);
412
+ if (!text)
413
+ return [];
414
+ return [{ path: Array.isArray(path) ? path.map(String).join('.') : String(path ?? ''), message: text }];
415
+ });
416
+ if (issues.length > 0)
417
+ return issues;
418
+ }
419
+ const validationErrors = error.validationErrors;
420
+ if (!validationErrors || typeof validationErrors !== 'object')
421
+ return [];
422
+ const issues = [];
423
+ for (const [path, entry] of Object.entries(validationErrors)) {
424
+ const message = describeValidationEntry(entry);
425
+ if (message)
426
+ issues.push({ path, message });
427
+ }
428
+ return issues;
429
+ }
430
+ /**
431
+ * What a refusal body says, from what {@link readRegistryRefusalBody} returned: the error envelope's fields, or an
432
+ * excerpt of a body that is not one. `undefined` when there was no body, so the caller reports the status alone
433
+ * rather than an empty reason.
434
+ */
435
+ export function parseRegistryRefusalBody(body) {
436
+ if (body === undefined || body === null)
437
+ return undefined;
438
+ const envelope = typeof body === 'object' ? body.error : undefined;
439
+ if (envelope && typeof envelope === 'object') {
440
+ const error = envelope;
441
+ const details = error.details && typeof error.details === 'object' ? error.details : undefined;
442
+ const reason = nonEmptyString(details?.message);
443
+ const refusal = { issues: refusalIssues(error, details) };
444
+ const type = nonEmptyString(error.type);
445
+ const code = nonEmptyString(error.code) ?? nonEmptyString(details?.code);
446
+ const reference = nonEmptyString(error.message) ?? nonEmptyString(error.customMessageReference);
447
+ const correlationId = nonEmptyString(error.correlationId);
448
+ if (type)
449
+ refusal.type = type;
450
+ if (code)
451
+ refusal.code = code;
452
+ if (reason)
453
+ refusal.reason = reason;
454
+ if (reference)
455
+ refusal.reference = reference;
456
+ if (correlationId)
457
+ refusal.correlationId = correlationId;
458
+ return refusal;
459
+ }
460
+ // `{ error: "…" }`: a plain string under `error`, which a server that is not the engine may answer.
461
+ const flat = typeof envelope === 'string' ? envelope : typeof body === 'string' ? body : JSON.stringify(body);
462
+ const excerpt = flat.replace(/\s+/g, ' ').trim();
463
+ if (excerpt === '')
464
+ return undefined;
465
+ return {
466
+ issues: [],
467
+ excerpt: excerpt.length > REGISTRY_REFUSAL_EXCERPT_LENGTH ? `${excerpt.slice(0, REGISTRY_REFUSAL_EXCERPT_LENGTH)}…` : excerpt,
468
+ };
469
+ }
470
+ /** {@link readRegistryRefusalBody} then {@link parseRegistryRefusalBody}, for a caller that branches on nothing in the body. */
471
+ export async function readRegistryRefusal(res, bounds = {}) {
472
+ return parseRegistryRefusalBody(await readRegistryRefusalBody(res, bounds));
473
+ }
474
+ /**
475
+ * One line for a person: the reason (or the generic reference when the registry gave none), the fields it names, then
476
+ * the code and the correlation id. E.g. `invalid manifest; provider: Unrecognized key: "openApi" (VALIDATION,
477
+ * correlation id 7f3a…)`.
478
+ */
479
+ export function describeRegistryRefusal(refusal) {
480
+ if (refusal.excerpt !== undefined)
481
+ return `the response said: ${refusal.excerpt}`;
482
+ const parts = [refusal.reason ?? refusal.reference ?? 'the registry gave no reason'];
483
+ for (const issue of refusal.issues)
484
+ parts.push(issue.path ? `${issue.path}: ${issue.message}` : issue.message);
485
+ const labels = [refusal.code ?? refusal.type, refusal.correlationId ? `correlation id ${refusal.correlationId}` : undefined].filter((label) => label !== undefined);
486
+ return `${parts.join('; ')}${labels.length > 0 ? ` (${labels.join(', ')})` : ''}`;
487
+ }
307
488
  /**
308
489
  * Raised by `RegistryServerClient` when
309
490
  * a 2xx response carries a payload the canonical Zod schema can't parse.