@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":"registry-errors.js","sourceRoot":"","sources":["../../../../src/registry/registry-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAN,IAAY,iBA4CX;AA5CD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,+FAA0E,CAAA;IAC1E,4CAA4C;IAC5C,yEAAoD,CAAA;IACpD,uDAAuD;IACvD,2EAAsD,CAAA;IACtD,uCAAuC;IACvC,qEAAgD,CAAA;IAChD,uEAAuE;IACvE,qFAAgE,CAAA;IAChE,4DAA4D;IAC5D,6EAAwD,CAAA;IACxD,uEAAuE;IACvE,+EAA0D,CAAA;IAC1D,yDAAyD;IACzD,mEAA8C,CAAA;IAC9C;;;;OAIG;IACH,+EAA0D,CAAA;IAC1D;;;OAGG;IACH,iEAA4C,CAAA;IAC5C,4GAA4G;IAC5G,+EAA0D,CAAA;IAC1D,kEAAkE;IAClE,qEAAgD,CAAA;IAChD,8FAA8F;IAC9F,+EAA0D,C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;QACvF,KAAK,oBAAoB,CAAC,YAAY;YACpC,OAAO,aAAa,MAAM,qDAAqD,SAAS,SAAS,WAAW,GAAG,CAAC;IACpH,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,OAAO,2BAA4B,SAAQ,aAAa;IAE1C;IACA;IACA;IACA;IAJlB,YACkB,WAAmB,EACnB,MAAc,EACd,KAA2B,EAC3B,SAAiB;QAEjC,KAAK,CACH,iBAAiB,CAAC,eAAe,EACjC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,CACvD,CAAC;QARc,gBAAW,GAAX,WAAW,CAAQ;QACnB,WAAM,GAAN,MAAM,CAAQ;QACd,UAAK,GAAL,KAAK,CAAsB;QAC3B,cAAS,GAAT,SAAS,CAAQ;QAMjC,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AAED,sFAAsF;AACtF,MAAM,UAAU,gBAAgB,CAAC,GAAY;IAC3C,OAAO,GAAG,YAAY,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,YAAY,IAAI,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC;AAC5F,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,KAAK,YAAY,aAAa,CAAC;AACxC,CAAC","sourcesContent":["/**\n * Registry-typed error classes.\n *\n * Phase 1 ships the typed-error vocabulary that Phase 2+ services\n * raise. Each error carries a stable `code` so CLI callers can\n * map errors to UX-specific copy without parsing messages.\n *\n * Errors are intentionally minimal — they encode discriminators,\n * not full diagnostic envelopes. UX layers attach their own\n * context (operator instructions, links, retry hints) when they\n * surface these errors.\n */\n\nexport enum RegistryErrorCode {\n /** Downloaded bytes do not hash to the digest the registry resolved. */\n ARTIFACT_INTEGRITY_MISMATCH = 'WILDO_REGISTRY_ARTIFACT_INTEGRITY_MISMATCH',\n /** No module with that id in the domain. */\n MODULE_NOT_FOUND = 'WILDO_REGISTRY_MODULE_NOT_FOUND',\n /** No release satisfies the requested range or tag. */\n VERSION_NOT_FOUND = 'WILDO_REGISTRY_VERSION_NOT_FOUND',\n /** The requested release is yanked. */\n VERSION_YANKED = 'WILDO_REGISTRY_VERSION_YANKED',\n /** A module requires dependencies the application does not provide. */\n DEPENDENCY_UNSATISFIED = 'WILDO_REGISTRY_DEPENDENCY_UNSATISFIED',\n /** A module would write outside its declared boundaries. */\n BOUNDARY_VIOLATION = 'WILDO_REGISTRY_BOUNDARY_VIOLATION',\n /** An installed file carries local edits an update would overwrite. */\n CONFLICT_LOCAL_EDIT = 'WILDO_REGISTRY_CONFLICT_LOCAL_EDIT',\n /** The request needs a registry key and carried none. */\n AUTH_REQUIRED = 'WILDO_REGISTRY_AUTH_REQUIRED',\n /**\n * The request carried a key and the registry refused it: revoked, expired, mistyped, or belonging to a\n * suspended organization. Distinct from `AUTH_REQUIRED` because the remedy differs: that one is \"log\n * in\", this one is \"the key you logged in with no longer works\".\n */\n CREDENTIAL_REJECTED = 'WILDO_REGISTRY_CREDENTIAL_REJECTED',\n /**\n * The registry refused the request for volume: most often the per-source failed-credential guard every\n * Wildo backend applies (#1759), after repeated rejected keys. Retrying immediately extends it.\n */\n RATE_LIMITED = 'WILDO_REGISTRY_RATE_LIMITED',\n /** A yank of a yanked release, or an unyank of a live one (#1758): the release is already in that state. */\n YANK_STATE_CONFLICT = 'WILDO_REGISTRY_YANK_STATE_CONFLICT',\n /** The key is valid but not allowed to perform this operation. */\n AUTH_FORBIDDEN = 'WILDO_REGISTRY_AUTH_FORBIDDEN',\n /** The modules lockfile is inconsistent in a way `wildo registry repair-lockfile` can fix. */\n LOCKFILE_REPAIRABLE = 'WILDO_REGISTRY_LOCKFILE_REPAIRABLE',\n /** The source change succeeded but provider materialization afterwards failed (install, update or remove). */\n PROVIDER_SYNC_FAILED = 'WILDO_REGISTRY_PROVIDER_SYNC_FAILED',\n /** The registry answered with an HTTP status the client has no meaning for. */\n UNEXPECTED_STATUS = 'WILDO_REGISTRY_UNEXPECTED_STATUS',\n /** A 2xx response carried a payload the contract cannot parse. */\n MALFORMED_PAYLOAD = 'WILDO_REGISTRY_MALFORMED_PAYLOAD',\n /** The exchange ran out of time; `RegistryTimeoutPhase` says where (#1763). */\n REQUEST_TIMEOUT = 'WILDO_REGISTRY_REQUEST_TIMEOUT',\n /** A domain with that slug already exists on the registry (#2024); whose it is takes a second question. */\n DOMAIN_TAKEN = 'WILDO_REGISTRY_DOMAIN_TAKEN',\n}\n\nexport class RegistryError extends Error {\n readonly code: RegistryErrorCode;\n\n constructor(code: RegistryErrorCode, message: string) {\n super(message);\n // L13 (third-pass review): set `name = 'RegistryError'` defensively.\n // Subclasses still overwrite it in their constructors, but a future\n // subclass that forgets to set `name` would leave the default\n // `'Error'` in stack traces — misleading. With this base default,\n // even an undeclared subclass surfaces as a `RegistryError` in\n // logs.\n this.name = 'RegistryError';\n this.code = code;\n }\n}\n\nexport class RegistryArtifactIntegrityMismatchError extends RegistryError {\n constructor(\n public readonly moduleId: string,\n public readonly version: string,\n public readonly expected: string,\n public readonly actual: string,\n ) {\n super(\n RegistryErrorCode.ARTIFACT_INTEGRITY_MISMATCH,\n `Artifact integrity mismatch for ${moduleId}@${version}: expected ${expected}, got ${actual}.`,\n );\n this.name = 'RegistryArtifactIntegrityMismatchError';\n }\n}\n\nexport class RegistryModuleNotFoundError extends RegistryError {\n constructor(public readonly moduleId: string) {\n super(\n RegistryErrorCode.MODULE_NOT_FOUND,\n `Module not found: ${moduleId}.`,\n );\n this.name = 'RegistryModuleNotFoundError';\n }\n}\n\nexport class RegistryVersionNotFoundError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly versionRange: string) {\n super(\n RegistryErrorCode.VERSION_NOT_FOUND,\n `No version of ${moduleId} satisfies \"${versionRange}\".`,\n );\n this.name = 'RegistryVersionNotFoundError';\n }\n}\n\nexport class RegistryVersionYankedError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly version: string, reason?: string) {\n super(\n RegistryErrorCode.VERSION_YANKED,\n `Version ${moduleId}@${version} is yanked${reason ? `: ${reason}` : ''}.`,\n );\n this.name = 'RegistryVersionYankedError';\n }\n}\n\nexport class RegistryDependencyUnsatisfiedError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly missing: readonly string[]) {\n super(\n RegistryErrorCode.DEPENDENCY_UNSATISFIED,\n `Module ${moduleId} requires unmet dependencies: ${missing.join(', ')}.`,\n );\n this.name = 'RegistryDependencyUnsatisfiedError';\n }\n}\n\nexport class RegistryBoundaryViolationError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly offendingPath: string) {\n super(\n RegistryErrorCode.BOUNDARY_VIOLATION,\n `Module ${moduleId} attempts to write outside its declared boundaries: ${offendingPath}.`,\n );\n this.name = 'RegistryBoundaryViolationError';\n }\n}\n\nexport class RegistryConflictLocalEditError extends RegistryError {\n constructor(public readonly filePath: string) {\n super(\n RegistryErrorCode.CONFLICT_LOCAL_EDIT,\n `Local edit detected at ${filePath}; refusing to overwrite without --force.`,\n );\n this.name = 'RegistryConflictLocalEditError';\n }\n}\n\nexport class RegistryAuthRequiredError extends RegistryError {\n constructor(public readonly registryUrl: string) {\n super(\n RegistryErrorCode.AUTH_REQUIRED,\n `Authentication required for ${registryUrl}. Run \\`wildo registry login --registry ${registryUrl}\\`.`,\n );\n this.name = 'RegistryAuthRequiredError';\n }\n}\n\nexport class RegistryCredentialRejectedError extends RegistryError {\n constructor(public readonly registryUrl: string) {\n super(\n RegistryErrorCode.CREDENTIAL_REJECTED,\n `The registry at ${registryUrl} rejected the stored key (revoked, expired or not recognised). ` +\n `Run \\`wildo registry login --registry ${registryUrl}\\` with a current key.`,\n );\n this.name = 'RegistryCredentialRejectedError';\n }\n}\n\nexport class RegistryRateLimitedError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly action: string,\n /** From `Retry-After`, when the registry sent one in seconds. */\n public readonly retryAfterSeconds: number | undefined,\n ) {\n super(\n RegistryErrorCode.RATE_LIMITED,\n `Registry \"${action}\" was rate-limited at ${registryUrl}` +\n (retryAfterSeconds !== undefined ? `; retry in ${retryAfterSeconds}s.` : '; wait before retrying.') +\n ' Repeated rejected keys from one source trigger this; check the key before retrying.',\n );\n this.name = 'RegistryRateLimitedError';\n }\n}\n\n/** The two release-state verbs (#1758); the value is also the route segment. */\nexport enum RegistryYankVerb {\n YANK = 'yank',\n UNYANK = 'unyank',\n}\n\n/**\n * The registry refused a yank or unyank because the release is already in the requested state (409).\n * Typed so a caller can report it as the no-op it is rather than a failure of the registry.\n */\nexport class RegistryYankStateConflictError extends RegistryError {\n constructor(\n public readonly moduleId: string,\n public readonly version: string,\n public readonly verb: RegistryYankVerb,\n ) {\n super(\n RegistryErrorCode.YANK_STATE_CONFLICT,\n verb === RegistryYankVerb.YANK ? `${moduleId}@${version} is already yanked.` : `${moduleId}@${version} is not yanked.`,\n );\n this.name = 'RegistryYankStateConflictError';\n }\n}\n\n/**\n * Stable, client-branchable codes the registry server puts on a refusal, carried on the wire as\n * `error.details.code` (the engine's documented channel for a switch-on-code refusal: `code` is the one\n * context key its client sanitizer admits for that purpose). Server and client both import this enum, so\n * the value has one source.\n */\nexport enum RegistryRefusalCode {\n /**\n * A yank of a yanked release, or an unyank of a live one: the release is ALREADY in the requested\n * state, so the request is a no-op a caller may report as done.\n */\n RELEASE_STATE = 'registry_release_state',\n /**\n * A publish of a version that already exists (#2024). Versions are immutable, so the remedy is a new version.\n * Distinct from the engine's generic `version_conflict`, which a publish can also answer when it gives up after\n * lost optimistic checks: there the version was NOT stored and a retry may succeed.\n */\n VERSION_IMMUTABLE = 'registry_version_immutable',\n /** A domain create whose slug is already registered (#2024), by the caller's organization or another. */\n DOMAIN_TAKEN = 'registry_domain_taken',\n}\n\n/** Whether a refusal body carries the registry's own `code` (on `error.details.code`). */\nexport function hasRegistryRefusalCode(body: unknown, code: RegistryRefusalCode): boolean {\n const error = (body as { error?: { details?: { code?: unknown } } } | null | undefined)?.error;\n return error?.details?.code === code;\n}\n\n/**\n * Whether a 409 body from a yank/unyank route is the release-state refusal rather than any other conflict\n * (#1758 re-review R3).\n *\n * Both routes answer 409 for two different things: the release is already in the requested state, or the\n * registry gave up re-deciding after repeated lost optimistic checks (`version_conflict`). Only the first\n * is a no-op; reading every 409 as one told an operator yanking a compromised release that it was already\n * yanked. It keys on the registry's OWN code rather than the engine's generic `conflict` reference, which\n * about twenty other refusals share, so a future conflict on these routes cannot be mistaken for it.\n */\nexport function isRegistryReleaseStateConflictBody(body: unknown): boolean {\n return hasRegistryRefusalCode(body, RegistryRefusalCode.RELEASE_STATE);\n}\n\n/**\n * A domain create refused because the slug is registered (#2024). Domains are first come, first served, so the\n * caller asks its own domain list to tell \"already ours\" from \"someone else's\".\n */\nexport class RegistryDomainTakenError extends RegistryError {\n constructor(public readonly domain: string) {\n super(RegistryErrorCode.DOMAIN_TAKEN, `The registry domain \"${domain}\" already exists.`);\n this.name = 'RegistryDomainTakenError';\n }\n}\n\nexport class RegistryAuthForbiddenError extends RegistryError {\n constructor(public readonly action: string) {\n super(\n RegistryErrorCode.AUTH_FORBIDDEN,\n `Action \"${action}\" is not permitted by the current credentials.`,\n );\n this.name = 'RegistryAuthForbiddenError';\n }\n}\n\nexport class RegistryLockfileRepairableError extends RegistryError {\n constructor(message: string, public readonly hints: readonly string[] = []) {\n super(RegistryErrorCode.LOCKFILE_REPAIRABLE, message);\n this.name = 'RegistryLockfileRepairableError';\n }\n}\n\n/**\n * Raised when post-install / post-update / post-remove provider\n * materialization fails after the source mutation succeeded. The\n * companion-export discovery and `runtimeImport` reachability\n * failure modes are both surfaced via this error so module-registry\n * callers report them as first-class repairable integration errors\n * (`module-registry-analysis.md` / Provider Migration WIP Seams §1).\n */\nexport class RegistryProviderSyncFailedError extends RegistryError {\n constructor(\n message: string,\n public readonly failureKind: 'companion-discovery' | 'runtime-import-reachability' | 'invalid-scope' | 'timeout' | 'unknown',\n public readonly stderrTail?: string,\n ) {\n super(RegistryErrorCode.PROVIDER_SYNC_FAILED, message);\n this.name = 'RegistryProviderSyncFailedError';\n }\n}\n\n/**\n * Raised by `RegistryServerClient` when the server returns a non-2xx\n * status that doesn't map to a more specific typed error (404 →\n * `RegistryModuleNotFoundError`/`RegistryVersionNotFoundError`, 401 →\n * `RegistryAuthRequiredError`, 403 → `RegistryAuthForbiddenError`).\n * Carries the status code + URL so callers can discriminate \"registry\n * down / 5xx\" from authoritative client errors without re-parsing\n * `Error.message` strings.\n */\nexport class RegistryUnexpectedStatusError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly status: number,\n public readonly statusText: string,\n public readonly action: string,\n ) {\n super(\n RegistryErrorCode.UNEXPECTED_STATUS,\n `Registry \"${action}\" failed with HTTP ${status} ${statusText} at ${registryUrl}.`,\n );\n this.name = 'RegistryUnexpectedStatusError';\n }\n}\n\n/**\n * Raised by `RegistryServerClient` when\n * a 2xx response carries a payload the canonical Zod schema can't parse.\n * Without this, malformed payloads previously surfaced as bare `Error`\n * (`'Registry resolve returned a malformed payload at ...'`), which\n * broke the `isRegistryError(err)` typed-handler contract every other\n * client surface honored.\n */\nexport class RegistryMalformedPayloadError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly action: string,\n public readonly detail: string,\n ) {\n super(\n RegistryErrorCode.MALFORMED_PAYLOAD,\n `Registry \"${action}\" returned a malformed payload at ${registryUrl}: ${detail}`,\n );\n this.name = 'RegistryMalformedPayloadError';\n }\n}\n\n/**\n * Where a registry exchange ran out of time (#1763). The two call for different remedies: no response\n * at all points at the registry or the network path; a transfer that STALLED part-way is a slow link,\n * and is measured as silence between chunks rather than as the size of the artifact.\n */\nexport enum RegistryTimeoutPhase {\n /** No response (status + headers) arrived within the request budget. */\n AWAITING_RESPONSE = 'awaiting_response',\n /** The response started, then no bytes arrived for the idle budget. */\n TRANSFER_STALLED = 'transfer_stalled',\n /**\n * The response (status + headers) arrived, but a small metadata body did not finish within the same\n * request budget. Not `TRANSFER_STALLED`: a metadata body has no idle budget, only the request's.\n */\n READING_BODY = 'reading_body',\n}\n\nfunction describeTimeout(phase: RegistryTimeoutPhase, action: string, registryUrl: string, timeoutMs: number): string {\n switch (phase) {\n case RegistryTimeoutPhase.AWAITING_RESPONSE:\n return `Registry \"${action}\" got no response within ${timeoutMs}ms at ${registryUrl}.`;\n case RegistryTimeoutPhase.TRANSFER_STALLED:\n return `Registry \"${action}\" stalled: no data for ${timeoutMs}ms at ${registryUrl}.`;\n case RegistryTimeoutPhase.READING_BODY:\n return `Registry \"${action}\" answered but its response did not finish within ${timeoutMs}ms at ${registryUrl}.`;\n }\n}\n\n/**\n * A registry request that timed out, in the typed vocabulary, so `isRegistryError(err)` handlers see it.\n * Before #1763 a timeout escaped as a bare `Error` (before the response) or a raw `AbortError` (during\n * the body), and a JSON body cut short was reported as a MALFORMED payload.\n */\nexport class RegistryRequestTimeoutError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly action: string,\n public readonly phase: RegistryTimeoutPhase,\n public readonly timeoutMs: number,\n ) {\n super(\n RegistryErrorCode.REQUEST_TIMEOUT,\n describeTimeout(phase, action, registryUrl, timeoutMs),\n );\n this.name = 'RegistryRequestTimeoutError';\n }\n}\n\n/** True for the error a fetch (or a body read) raises when its abort signal fires. */\nexport function isAbortLikeError(err: unknown): boolean {\n return err instanceof Error && (err.name === 'AbortError' || err.name === 'TimeoutError');\n}\n\nexport function isRegistryError(value: unknown): value is RegistryError {\n return value instanceof RegistryError;\n}\n"]}
1
+ {"version":3,"file":"registry-errors.js","sourceRoot":"","sources":["../../../src/registry/registry-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,CAAN,IAAY,iBA4CX;AA5CD,WAAY,iBAAiB;IAC3B,wEAAwE;IACxE,+FAA0E,CAAA;IAC1E,4CAA4C;IAC5C,yEAAoD,CAAA;IACpD,uDAAuD;IACvD,2EAAsD,CAAA;IACtD,uCAAuC;IACvC,qEAAgD,CAAA;IAChD,uEAAuE;IACvE,qFAAgE,CAAA;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ApB,oBAAoB,QAU/B;AAED,SAAS,eAAe,CAAC,KAA2B,EAAE,MAAc,EAAE,WAAmB,EAAE,SAAiB;IAC1G,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,oBAAoB,CAAC,iBAAiB;YACzC,OAAO,aAAa,MAAM,4BAA4B,SAAS,SAAS,WAAW,GAAG,CAAC;QACzF,KAAK,oBAAoB,CAAC,gBAAgB;YACxC,OAAO,aAAa,MAAM,0BAA0B,SAAS,SAAS,WAAW,GAAG,CAAC;QACvF,KAAK,oBAAoB,CAAC,YAAY;YACpC,OAAO,aAAa,MAAM,qDAAqD,SAAS,SAAS,WAAW,GAAG,CAAC;IACpH,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,OAAO,2BAA4B,SAAQ,aAAa;IAE1C;IACA;IACA;IACA;IAJlB,YACkB,WAAmB,EACnB,MAAc,EACd,KAA2B,EAC3B,SAAiB;QAEjC,KAAK,CACH,iBAAiB,CAAC,eAAe,EACjC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,CAAC,CACvD,CAAC;QARc,gBAAW,GAAX,WAAW,CAAQ;QACnB,WAAM,GAAN,MAAM,CAAQ;QACd,UAAK,GAAL,KAAK,CAAsB;QAC3B,cAAS,GAAT,SAAS,CAAQ;QAMjC,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC;IAC5C,CAAC;CACF;AAED,sFAAsF;AACtF,MAAM,UAAU,gBAAgB,CAAC,GAAY;IAC3C,OAAO,GAAG,YAAY,KAAK,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,YAAY,IAAI,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC;AAC5F,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,KAAK,YAAY,aAAa,CAAC;AACxC,CAAC","sourcesContent":["/**\n * Registry-typed error classes.\n *\n * Phase 1 ships the typed-error vocabulary that Phase 2+ services\n * raise. Each error carries a stable `code` so CLI callers can\n * map errors to UX-specific copy without parsing messages.\n *\n * Errors are intentionally minimal — they encode discriminators,\n * not full diagnostic envelopes. UX layers attach their own\n * context (operator instructions, links, retry hints) when they\n * surface these errors.\n */\n\nexport enum RegistryErrorCode {\n /** Downloaded bytes do not hash to the digest the registry resolved. */\n ARTIFACT_INTEGRITY_MISMATCH = 'WILDO_REGISTRY_ARTIFACT_INTEGRITY_MISMATCH',\n /** No module with that id in the domain. */\n MODULE_NOT_FOUND = 'WILDO_REGISTRY_MODULE_NOT_FOUND',\n /** No release satisfies the requested range or tag. */\n VERSION_NOT_FOUND = 'WILDO_REGISTRY_VERSION_NOT_FOUND',\n /** The requested release is yanked. */\n VERSION_YANKED = 'WILDO_REGISTRY_VERSION_YANKED',\n /** A module requires dependencies the application does not provide. */\n DEPENDENCY_UNSATISFIED = 'WILDO_REGISTRY_DEPENDENCY_UNSATISFIED',\n /** A module would write outside its declared boundaries. */\n BOUNDARY_VIOLATION = 'WILDO_REGISTRY_BOUNDARY_VIOLATION',\n /** An installed file carries local edits an update would overwrite. */\n CONFLICT_LOCAL_EDIT = 'WILDO_REGISTRY_CONFLICT_LOCAL_EDIT',\n /** The request needs a registry key and carried none. */\n AUTH_REQUIRED = 'WILDO_REGISTRY_AUTH_REQUIRED',\n /**\n * The request carried a key and the registry refused it: revoked, expired, mistyped, or belonging to a\n * suspended organization. Distinct from `AUTH_REQUIRED` because the remedy differs: that one is \"log\n * in\", this one is \"the key you logged in with no longer works\".\n */\n CREDENTIAL_REJECTED = 'WILDO_REGISTRY_CREDENTIAL_REJECTED',\n /**\n * The registry refused the request for volume: most often the per-source failed-credential guard every\n * Wildo backend applies (#1759), after repeated rejected keys. Retrying immediately extends it.\n */\n RATE_LIMITED = 'WILDO_REGISTRY_RATE_LIMITED',\n /** A yank of a yanked release, or an unyank of a live one (#1758): the release is already in that state. */\n YANK_STATE_CONFLICT = 'WILDO_REGISTRY_YANK_STATE_CONFLICT',\n /** The key is valid but not allowed to perform this operation. */\n AUTH_FORBIDDEN = 'WILDO_REGISTRY_AUTH_FORBIDDEN',\n /** The modules lockfile is inconsistent in a way `wildo registry repair-lockfile` can fix. */\n LOCKFILE_REPAIRABLE = 'WILDO_REGISTRY_LOCKFILE_REPAIRABLE',\n /** The source change succeeded but provider materialization afterwards failed (install, update or remove). */\n PROVIDER_SYNC_FAILED = 'WILDO_REGISTRY_PROVIDER_SYNC_FAILED',\n /** The registry answered with an HTTP status the client has no meaning for. */\n UNEXPECTED_STATUS = 'WILDO_REGISTRY_UNEXPECTED_STATUS',\n /** A 2xx response carried a payload the contract cannot parse. */\n MALFORMED_PAYLOAD = 'WILDO_REGISTRY_MALFORMED_PAYLOAD',\n /** The exchange ran out of time; `RegistryTimeoutPhase` says where (#1763). */\n REQUEST_TIMEOUT = 'WILDO_REGISTRY_REQUEST_TIMEOUT',\n /** A domain with that slug already exists on the registry (#2024); whose it is takes a second question. */\n DOMAIN_TAKEN = 'WILDO_REGISTRY_DOMAIN_TAKEN',\n}\n\nexport class RegistryError extends Error {\n readonly code: RegistryErrorCode;\n\n constructor(code: RegistryErrorCode, message: string) {\n super(message);\n // L13 (third-pass review): set `name = 'RegistryError'` defensively.\n // Subclasses still overwrite it in their constructors, but a future\n // subclass that forgets to set `name` would leave the default\n // `'Error'` in stack traces — misleading. With this base default,\n // even an undeclared subclass surfaces as a `RegistryError` in\n // logs.\n this.name = 'RegistryError';\n this.code = code;\n }\n}\n\nexport class RegistryArtifactIntegrityMismatchError extends RegistryError {\n constructor(\n public readonly moduleId: string,\n public readonly version: string,\n public readonly expected: string,\n public readonly actual: string,\n ) {\n super(\n RegistryErrorCode.ARTIFACT_INTEGRITY_MISMATCH,\n `Artifact integrity mismatch for ${moduleId}@${version}: expected ${expected}, got ${actual}.`,\n );\n this.name = 'RegistryArtifactIntegrityMismatchError';\n }\n}\n\nexport class RegistryModuleNotFoundError extends RegistryError {\n constructor(public readonly moduleId: string) {\n super(\n RegistryErrorCode.MODULE_NOT_FOUND,\n `Module not found: ${moduleId}.`,\n );\n this.name = 'RegistryModuleNotFoundError';\n }\n}\n\nexport class RegistryVersionNotFoundError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly versionRange: string) {\n super(\n RegistryErrorCode.VERSION_NOT_FOUND,\n `No version of ${moduleId} satisfies \"${versionRange}\".`,\n );\n this.name = 'RegistryVersionNotFoundError';\n }\n}\n\nexport class RegistryVersionYankedError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly version: string, reason?: string) {\n super(\n RegistryErrorCode.VERSION_YANKED,\n `Version ${moduleId}@${version} is yanked${reason ? `: ${reason}` : ''}.`,\n );\n this.name = 'RegistryVersionYankedError';\n }\n}\n\nexport class RegistryDependencyUnsatisfiedError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly missing: readonly string[]) {\n super(\n RegistryErrorCode.DEPENDENCY_UNSATISFIED,\n `Module ${moduleId} requires unmet dependencies: ${missing.join(', ')}.`,\n );\n this.name = 'RegistryDependencyUnsatisfiedError';\n }\n}\n\nexport class RegistryBoundaryViolationError extends RegistryError {\n constructor(public readonly moduleId: string, public readonly offendingPath: string) {\n super(\n RegistryErrorCode.BOUNDARY_VIOLATION,\n `Module ${moduleId} attempts to write outside its declared boundaries: ${offendingPath}.`,\n );\n this.name = 'RegistryBoundaryViolationError';\n }\n}\n\nexport class RegistryConflictLocalEditError extends RegistryError {\n constructor(public readonly filePath: string) {\n super(\n RegistryErrorCode.CONFLICT_LOCAL_EDIT,\n `Local edit detected at ${filePath}; refusing to overwrite without --force.`,\n );\n this.name = 'RegistryConflictLocalEditError';\n }\n}\n\nexport class RegistryAuthRequiredError extends RegistryError {\n constructor(public readonly registryUrl: string) {\n super(\n RegistryErrorCode.AUTH_REQUIRED,\n `Authentication required for ${registryUrl}. Run \\`wildo registry login --registry ${registryUrl}\\`.`,\n );\n this.name = 'RegistryAuthRequiredError';\n }\n}\n\nexport class RegistryCredentialRejectedError extends RegistryError {\n constructor(public readonly registryUrl: string) {\n super(\n RegistryErrorCode.CREDENTIAL_REJECTED,\n `The registry at ${registryUrl} rejected the stored key (revoked, expired or not recognised). ` +\n `Run \\`wildo registry login --registry ${registryUrl}\\` with a current key.`,\n );\n this.name = 'RegistryCredentialRejectedError';\n }\n}\n\nexport class RegistryRateLimitedError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly action: string,\n /** From `Retry-After`, when the registry sent one in seconds. */\n public readonly retryAfterSeconds: number | undefined,\n ) {\n super(\n RegistryErrorCode.RATE_LIMITED,\n `Registry \"${action}\" was rate-limited at ${registryUrl}` +\n (retryAfterSeconds !== undefined ? `; retry in ${retryAfterSeconds}s.` : '; wait before retrying.') +\n ' Repeated rejected keys from one source trigger this; check the key before retrying.',\n );\n this.name = 'RegistryRateLimitedError';\n }\n}\n\n/** The two release-state verbs (#1758); the value is also the route segment. */\nexport enum RegistryYankVerb {\n YANK = 'yank',\n UNYANK = 'unyank',\n}\n\n/**\n * The registry refused a yank or unyank because the release is already in the requested state (409).\n * Typed so a caller can report it as the no-op it is rather than a failure of the registry.\n */\nexport class RegistryYankStateConflictError extends RegistryError {\n constructor(\n public readonly moduleId: string,\n public readonly version: string,\n public readonly verb: RegistryYankVerb,\n ) {\n super(\n RegistryErrorCode.YANK_STATE_CONFLICT,\n verb === RegistryYankVerb.YANK ? `${moduleId}@${version} is already yanked.` : `${moduleId}@${version} is not yanked.`,\n );\n this.name = 'RegistryYankStateConflictError';\n }\n}\n\n/**\n * Stable, client-branchable codes the registry server puts on a refusal, carried on the wire as\n * `error.details.code` (the engine's documented channel for a switch-on-code refusal: `code` is the one\n * context key its client sanitizer admits for that purpose). Server and client both import this enum, so\n * the value has one source.\n */\nexport enum RegistryRefusalCode {\n /**\n * A yank of a yanked release, or an unyank of a live one: the release is ALREADY in the requested\n * state, so the request is a no-op a caller may report as done.\n */\n RELEASE_STATE = 'registry_release_state',\n /**\n * A publish of a version that already exists (#2024). Versions are immutable, so the remedy is a new version.\n * Distinct from the engine's generic `version_conflict`, which a publish can also answer when it gives up after\n * lost optimistic checks: there the version was NOT stored and a retry may succeed.\n */\n VERSION_IMMUTABLE = 'registry_version_immutable',\n /** A domain create whose slug is already registered (#2024), by the caller's organization or another. */\n DOMAIN_TAKEN = 'registry_domain_taken',\n}\n\n/** Whether a refusal body carries the registry's own `code` (on `error.details.code`). */\nexport function hasRegistryRefusalCode(body: unknown, code: RegistryRefusalCode): boolean {\n const error = (body as { error?: { details?: { code?: unknown } } } | null | undefined)?.error;\n return error?.details?.code === code;\n}\n\n/**\n * Whether a 409 body from a yank/unyank route is the release-state refusal rather than any other conflict\n * (#1758 re-review R3).\n *\n * Both routes answer 409 for two different things: the release is already in the requested state, or the\n * registry gave up re-deciding after repeated lost optimistic checks (`version_conflict`). Only the first\n * is a no-op; reading every 409 as one told an operator yanking a compromised release that it was already\n * yanked. It keys on the registry's OWN code rather than the engine's generic `conflict` reference, which\n * about twenty other refusals share, so a future conflict on these routes cannot be mistaken for it.\n */\nexport function isRegistryReleaseStateConflictBody(body: unknown): boolean {\n return hasRegistryRefusalCode(body, RegistryRefusalCode.RELEASE_STATE);\n}\n\n/**\n * A domain create refused because the slug is registered (#2024). Domains are first come, first served, so the\n * caller asks its own domain list to tell \"already ours\" from \"someone else's\".\n */\nexport class RegistryDomainTakenError extends RegistryError {\n constructor(public readonly domain: string) {\n super(RegistryErrorCode.DOMAIN_TAKEN, `The registry domain \"${domain}\" already exists.`);\n this.name = 'RegistryDomainTakenError';\n }\n}\n\nexport class RegistryAuthForbiddenError extends RegistryError {\n constructor(public readonly action: string) {\n super(\n RegistryErrorCode.AUTH_FORBIDDEN,\n `Action \"${action}\" is not permitted by the current credentials.`,\n );\n this.name = 'RegistryAuthForbiddenError';\n }\n}\n\nexport class RegistryLockfileRepairableError extends RegistryError {\n constructor(message: string, public readonly hints: readonly string[] = []) {\n super(RegistryErrorCode.LOCKFILE_REPAIRABLE, message);\n this.name = 'RegistryLockfileRepairableError';\n }\n}\n\n/**\n * Raised when post-install / post-update / post-remove provider\n * materialization fails after the source mutation succeeded. The\n * companion-export discovery and `runtimeImport` reachability\n * failure modes are both surfaced via this error so module-registry\n * callers report them as first-class repairable integration errors.\n */\nexport class RegistryProviderSyncFailedError extends RegistryError {\n constructor(\n message: string,\n public readonly failureKind: 'companion-discovery' | 'runtime-import-reachability' | 'invalid-scope' | 'timeout' | 'unknown',\n public readonly stderrTail?: string,\n ) {\n super(RegistryErrorCode.PROVIDER_SYNC_FAILED, message);\n this.name = 'RegistryProviderSyncFailedError';\n }\n}\n\n/**\n * Raised by `RegistryServerClient` when the server returns a non-2xx\n * status that doesn't map to a more specific typed error (404 →\n * `RegistryModuleNotFoundError`/`RegistryVersionNotFoundError`, 401 →\n * `RegistryAuthRequiredError`, 403 → `RegistryAuthForbiddenError`).\n * Carries the status code + URL so callers can discriminate \"registry\n * down / 5xx\" from authoritative client errors without re-parsing\n * `Error.message` strings.\n */\nexport class RegistryUnexpectedStatusError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly status: number,\n public readonly statusText: string,\n public readonly action: string,\n /** What the refusal's body said (#3388), read with {@link readRegistryRefusalBody}; absent for an empty body. */\n public readonly refusal?: RegistryRefusal,\n ) {\n super(\n RegistryErrorCode.UNEXPECTED_STATUS,\n `Registry \"${action}\" failed with HTTP ${status} ${statusText} at ${registryUrl}${refusal ? `: ${describeRegistryRefusal(refusal)}` : ''}.`,\n );\n this.name = 'RegistryUnexpectedStatusError';\n }\n}\n\n/** One field a registry refusal names, as its error envelope lists it: the path into the request and what is wrong there. */\nexport interface RegistryRefusalIssue {\n path: string;\n message: string;\n}\n\n/**\n * What a registry refusal SAID, read from its body (#3388). Until then every client of the registry reported a refusal\n * as its HTTP status alone: `wildo fwk publish providers` printed `400 Bad Request at <url>` for a manifest the\n * registry's schema refused, and the cause had to be inferred from the server's uptime and the schema's history.\n *\n * The registry answers through the engine's error envelope (`{ error: { type, message, code?, details?,\n * validationErrors?, correlationId? } }`), sanitized at the wire: `error.message` is only the engine's generic\n * reference (`validation`, `conflict`), the registry's own reason travels in `details.message` (the context key the\n * sanitizer admits for a VALIDATION or CONFLICT refusal), and a schema refusal lists its paths in `validationErrors`.\n * Every field is optional because a refusal may come from something that is not the registry: a proxy's HTML page\n * becomes an {@link RegistryRefusal.excerpt}.\n */\nexport interface RegistryRefusal {\n /** The engine's error type (`VALIDATION`, `CONFLICT`, …). */\n type?: string;\n /** The registry's stable refusal code, when it set one (`error.code`, or `error.details.code`). */\n code?: string;\n /** The registry's reason (`error.details.message`). */\n reason?: string;\n /** The engine's generic reference (`error.message`), shown only when no reason came with it. */\n reference?: string;\n /** The fields a schema refusal names. */\n issues: RegistryRefusalIssue[];\n /** The id the registry logged this request under; quote it to find the server's own record. */\n correlationId?: string;\n /** A body that is not the error envelope, whitespace collapsed and cut to {@link REGISTRY_REFUSAL_EXCERPT_LENGTH}. */\n excerpt?: string;\n}\n\n/** How much of a body that is not the error envelope a refusal quotes. */\nexport const REGISTRY_REFUSAL_EXCERPT_LENGTH = 300;\n\n/**\n * How long a refusal's body may take to arrive once its headers have, when the caller supplies no deadline (#3388). A\n * caller holding a request budget passes it instead (`RegistryServerClient` does, at every read). Either way the read\n * HAS a deadline, which matters most for an artifact download: it clears its response timer when the headers arrive\n * and arms its idle timer only when the transfer is read (#1763), so its refusal body would otherwise have none.\n */\nexport const REGISTRY_REFUSAL_BODY_TIMEOUT_MS = 10_000;\n\n/** How much of a refusal's body is read. An error envelope is a few hundred bytes; anything longer is quoted, not parsed. */\nexport const REGISTRY_REFUSAL_BODY_MAX_BYTES = 64 * 1024;\n\n/**\n * Read a refusal's body ONCE, bounded, and never fail doing so: its JSON value, else its text, else `undefined` (an\n * empty body, one that could not be read, or one that did not arrive within the deadline). The status is already a\n * failure, so a body that cannot be read must not replace it with a second error; the caller reports the status alone.\n *\n * Every refusal that carries no typed meaning is read through this function: `RegistryServerClient`'s unexpected\n * statuses and its 409s that are not the registry's own code, the CLI's publish request, and `wildo registry login` /\n * `whoami`. A refusal a client maps to a typed error (401, 403, 404, 429) names its remedy already and is not read: the\n * engine strips the context of an authentication, authorization or not-found refusal at the wire.\n */\nexport async function readRegistryRefusalBody(\n res: Response,\n bounds: { timeoutMs?: number; maxBytes?: number } = {},\n): Promise<unknown> {\n let reader: ReadableStreamDefaultReader<Uint8Array> | undefined;\n try {\n // Inside the guard: a body already read or locked throws here, and that must not replace the status either.\n reader = res.body?.getReader();\n } catch {\n return undefined;\n }\n if (!reader) return undefined;\n const maxBytes = bounds.maxBytes ?? REGISTRY_REFUSAL_BODY_MAX_BYTES;\n let timer: ReturnType<typeof setTimeout> | undefined;\n const expired = new Promise<'expired'>((resolve) => {\n timer = setTimeout(() => resolve('expired'), bounds.timeoutMs ?? REGISTRY_REFUSAL_BODY_TIMEOUT_MS);\n });\n const chunks: Uint8Array[] = [];\n let total = 0;\n try {\n for (;;) {\n const next = await Promise.race([reader.read(), expired]);\n if (next === 'expired') return undefined;\n if (next.done) break;\n chunks.push(next.value);\n total += next.value.byteLength;\n if (total >= maxBytes) break;\n }\n } catch {\n return undefined;\n } finally {\n clearTimeout(timer);\n // Releases the connection whether the body ended, was cut at the cap, or stalled.\n void reader.cancel().catch(() => undefined);\n }\n const bytes = new Uint8Array(total);\n let offset = 0;\n for (const chunk of chunks) {\n bytes.set(chunk, offset);\n offset += chunk.byteLength;\n }\n const text = new TextDecoder().decode(bytes.subarray(0, Math.min(total, maxBytes)));\n if (text.trim() === '') return undefined;\n try {\n return JSON.parse(text) as unknown;\n } catch {\n return text;\n }\n}\n\nfunction nonEmptyString(value: unknown): string | undefined {\n return typeof value === 'string' && value.trim() !== '' ? value : undefined;\n}\n\n/** A `validationErrors` value: a plain message, or a coded entry (`{ code, params }`) the client has no words for. */\nfunction describeValidationEntry(entry: unknown): string | undefined {\n const text = nonEmptyString(entry);\n if (text) return text;\n if (entry && typeof entry === 'object' && typeof (entry as { code?: unknown }).code === 'string') {\n const { code, params } = entry as { code: string; params?: unknown };\n return params && typeof params === 'object' && Object.keys(params).length > 0 ? `${code} ${JSON.stringify(params)}` : code;\n }\n return undefined;\n}\n\n/**\n * The fields a refusal names. `details.zodIssues` first: it is the full ordered list, while the envelope's\n * `validationErrors` is a map the error handler keys by the joined path, so two issues on one path (every issue of a\n * URL segment or a slug, whose path is empty) collapse to the last. `validationErrors` answers when there are no\n * `zodIssues`: a coded entry (`not_unique`, `declared_refusal`) travels only there.\n */\nfunction refusalIssues(error: Record<string, unknown>, details: Record<string, unknown> | undefined): RegistryRefusalIssue[] {\n const zodIssues = details?.zodIssues;\n if (Array.isArray(zodIssues)) {\n const issues = zodIssues.flatMap((issue: unknown) => {\n const { path, message } = (issue ?? {}) as { path?: unknown; message?: unknown };\n const text = nonEmptyString(message);\n if (!text) return [];\n return [{ path: Array.isArray(path) ? path.map(String).join('.') : String(path ?? ''), message: text }];\n });\n if (issues.length > 0) return issues;\n }\n const validationErrors = error.validationErrors;\n if (!validationErrors || typeof validationErrors !== 'object') return [];\n const issues: RegistryRefusalIssue[] = [];\n for (const [path, entry] of Object.entries(validationErrors as Record<string, unknown>)) {\n const message = describeValidationEntry(entry);\n if (message) issues.push({ path, message });\n }\n return issues;\n}\n\n/**\n * What a refusal body says, from what {@link readRegistryRefusalBody} returned: the error envelope's fields, or an\n * excerpt of a body that is not one. `undefined` when there was no body, so the caller reports the status alone\n * rather than an empty reason.\n */\nexport function parseRegistryRefusalBody(body: unknown): RegistryRefusal | undefined {\n if (body === undefined || body === null) return undefined;\n const envelope = typeof body === 'object' ? (body as { error?: unknown }).error : undefined;\n if (envelope && typeof envelope === 'object') {\n const error = envelope as Record<string, unknown>;\n const details = error.details && typeof error.details === 'object' ? (error.details as Record<string, unknown>) : undefined;\n const reason = nonEmptyString(details?.message);\n const refusal: RegistryRefusal = { issues: refusalIssues(error, details) };\n const type = nonEmptyString(error.type);\n const code = nonEmptyString(error.code) ?? nonEmptyString(details?.code);\n const reference = nonEmptyString(error.message) ?? nonEmptyString(error.customMessageReference);\n const correlationId = nonEmptyString(error.correlationId);\n if (type) refusal.type = type;\n if (code) refusal.code = code;\n if (reason) refusal.reason = reason;\n if (reference) refusal.reference = reference;\n if (correlationId) refusal.correlationId = correlationId;\n return refusal;\n }\n // `{ error: \"…\" }`: a plain string under `error`, which a server that is not the engine may answer.\n const flat = typeof envelope === 'string' ? envelope : typeof body === 'string' ? body : JSON.stringify(body);\n const excerpt = flat.replace(/\\s+/g, ' ').trim();\n if (excerpt === '') return undefined;\n return {\n issues: [],\n excerpt: excerpt.length > REGISTRY_REFUSAL_EXCERPT_LENGTH ? `${excerpt.slice(0, REGISTRY_REFUSAL_EXCERPT_LENGTH)}…` : excerpt,\n };\n}\n\n/** {@link readRegistryRefusalBody} then {@link parseRegistryRefusalBody}, for a caller that branches on nothing in the body. */\nexport async function readRegistryRefusal(res: Response, bounds: { timeoutMs?: number; maxBytes?: number } = {}): Promise<RegistryRefusal | undefined> {\n return parseRegistryRefusalBody(await readRegistryRefusalBody(res, bounds));\n}\n\n/**\n * One line for a person: the reason (or the generic reference when the registry gave none), the fields it names, then\n * the code and the correlation id. E.g. `invalid manifest; provider: Unrecognized key: \"openApi\" (VALIDATION,\n * correlation id 7f3a…)`.\n */\nexport function describeRegistryRefusal(refusal: RegistryRefusal): string {\n if (refusal.excerpt !== undefined) return `the response said: ${refusal.excerpt}`;\n const parts = [refusal.reason ?? refusal.reference ?? 'the registry gave no reason'];\n for (const issue of refusal.issues) parts.push(issue.path ? `${issue.path}: ${issue.message}` : issue.message);\n const labels = [refusal.code ?? refusal.type, refusal.correlationId ? `correlation id ${refusal.correlationId}` : undefined].filter(\n (label): label is string => label !== undefined,\n );\n return `${parts.join('; ')}${labels.length > 0 ? ` (${labels.join(', ')})` : ''}`;\n}\n\n/**\n * Raised by `RegistryServerClient` when\n * a 2xx response carries a payload the canonical Zod schema can't parse.\n * Without this, malformed payloads previously surfaced as bare `Error`\n * (`'Registry resolve returned a malformed payload at ...'`), which\n * broke the `isRegistryError(err)` typed-handler contract every other\n * client surface honored.\n */\nexport class RegistryMalformedPayloadError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly action: string,\n public readonly detail: string,\n ) {\n super(\n RegistryErrorCode.MALFORMED_PAYLOAD,\n `Registry \"${action}\" returned a malformed payload at ${registryUrl}: ${detail}`,\n );\n this.name = 'RegistryMalformedPayloadError';\n }\n}\n\n/**\n * Where a registry exchange ran out of time (#1763). The two call for different remedies: no response\n * at all points at the registry or the network path; a transfer that STALLED part-way is a slow link,\n * and is measured as silence between chunks rather than as the size of the artifact.\n */\nexport enum RegistryTimeoutPhase {\n /** No response (status + headers) arrived within the request budget. */\n AWAITING_RESPONSE = 'awaiting_response',\n /** The response started, then no bytes arrived for the idle budget. */\n TRANSFER_STALLED = 'transfer_stalled',\n /**\n * The response (status + headers) arrived, but a small metadata body did not finish within the same\n * request budget. Not `TRANSFER_STALLED`: a metadata body has no idle budget, only the request's.\n */\n READING_BODY = 'reading_body',\n}\n\nfunction describeTimeout(phase: RegistryTimeoutPhase, action: string, registryUrl: string, timeoutMs: number): string {\n switch (phase) {\n case RegistryTimeoutPhase.AWAITING_RESPONSE:\n return `Registry \"${action}\" got no response within ${timeoutMs}ms at ${registryUrl}.`;\n case RegistryTimeoutPhase.TRANSFER_STALLED:\n return `Registry \"${action}\" stalled: no data for ${timeoutMs}ms at ${registryUrl}.`;\n case RegistryTimeoutPhase.READING_BODY:\n return `Registry \"${action}\" answered but its response did not finish within ${timeoutMs}ms at ${registryUrl}.`;\n }\n}\n\n/**\n * A registry request that timed out, in the typed vocabulary, so `isRegistryError(err)` handlers see it.\n * Before #1763 a timeout escaped as a bare `Error` (before the response) or a raw `AbortError` (during\n * the body), and a JSON body cut short was reported as a MALFORMED payload.\n */\nexport class RegistryRequestTimeoutError extends RegistryError {\n constructor(\n public readonly registryUrl: string,\n public readonly action: string,\n public readonly phase: RegistryTimeoutPhase,\n public readonly timeoutMs: number,\n ) {\n super(\n RegistryErrorCode.REQUEST_TIMEOUT,\n describeTimeout(phase, action, registryUrl, timeoutMs),\n );\n this.name = 'RegistryRequestTimeoutError';\n }\n}\n\n/** True for the error a fetch (or a body read) raises when its abort signal fires. */\nexport function isAbortLikeError(err: unknown): boolean {\n return err instanceof Error && (err.name === 'AbortError' || err.name === 'TimeoutError');\n}\n\nexport function isRegistryError(value: unknown): value is RegistryError {\n return value instanceof RegistryError;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-keys.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-keys.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAErE,uHAAuH;AACvH,oBAAY,eAAe;IACzB,qGAAqG;IACrG,IAAI,SAAS;IACb,uFAAuF;IACvF,OAAO,YAAY;CACpB;AAED,kFAAkF;AAClF,eAAO,MAAM,gCAAgC,KAAK,CAAC;AACnD,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAEhD,uFAAuF;AACvF,eAAO,MAAM,qBAAqB,aAEhC,CAAC;AAEH,4FAA4F;AAC5F,eAAO,MAAM,iCAAiC,4BAA+B,CAAC;AAE9E,eAAO,MAAM,4BAA4B;;;;;kBAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,6BAA6B;;;;;;;;iBASxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,wBAAwB;;;;;;;iBAOnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,6BAA6B;;;;;;;;;;iBAA6F,CAAC;AACxI,MAAM,MAAM,uBAA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,QAAQ,EAAE;CACvC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAAC;AAGxI,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,gBAAgB,EAAE,iCAAiC,EAAE,CAAC,CAAC;AAElH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,gBAAgB,EAAE,iCAAiC,EAAE,CAAC,CAAC;AAEtH,iDAAiD;AACjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC/D,MAAM,UAAU,0BAA0B,CAAC,QAAgB;IACzD,OAAO,GAAG,wBAAwB,IAAI,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC;AAC9E,CAAC","sourcesContent":["/**\n * Wire contract of the platform's module-registry key door (#1756): apps-manager\n * `/admin/registry/keys`, called by `wildo registry key`. Shared here because the two ends are\n * different packages and neither may import the other.\n *\n * ## A key belongs to an ORGANIZATION, and says so\n *\n * The registry authorizes against `ownerOrganizationId` on its domain and module rows, so a registry\n * key's authority is its organization: a publish key may publish into EVERY domain that organization\n * owns. The door therefore addresses an organization, not an application. An earlier draft took an\n * `appSlug` and resolved its owner, which read as a per-application key while narrowing nothing: every\n * application a platform registers is owned by the one platform owner organization\n * (`WILDO_OWNER_ORGANIZATION`), so a key \"for application A\" could publish into application B's domains.\n * A parameter that looks like a scope and scopes nothing is a false control, so it was removed.\n * Omit `organizationSlug` for the platform owner organization, the common case.\n */\n\nimport { z } from 'zod';\nimport { ApiKeyStatus, CORE_ORG_ROLES } from '@wildo-ai/saas-models';\n\n/** The roles a registry key may carry — mapped by apps-manager onto the two roles the registry's resources declare. */\nexport enum RegistryKeyRole {\n /** Read RESTRICTED modules (resolve, info, download) — an install / CI key. Carries `ORG_MEMBER`. */\n READ = 'read',\n /** Publish, yank and tag in the owning organization's domains. Carries `ORG_ADMIN`. */\n PUBLISH = 'publish',\n}\n\n/** A registry key always expires; the operator re-mints rather than extending. */\nexport const REGISTRY_KEY_DEFAULT_EXPIRY_DAYS = 90;\nexport const REGISTRY_KEY_MAX_EXPIRY_DAYS = 365;\n\n/** A key's operator-facing name: lowercase letters, digits, `.`, `_`, `-` (max 64). */\nexport const RegistryKeyNameSchema = z.string().regex(/^[a-z0-9][a-z0-9._-]{0,63}$/, {\n error: 'a registry key name must be lowercase letters, digits, \".\", \"_\" or \"-\" (max 64)',\n});\n\n/** The organization a key belongs to, by slug. Absent = the platform owner organization. */\nexport const RegistryKeyOrganizationSlugSchema = z.string().min(1).optional();\n\nexport const RegistryKeyMintRequestSchema = z.strictObject({\n organizationSlug: RegistryKeyOrganizationSlugSchema,\n name: RegistryKeyNameSchema,\n role: z.enum(RegistryKeyRole),\n expiresInDays: z.number().int().min(1).max(REGISTRY_KEY_MAX_EXPIRY_DAYS).optional(),\n});\nexport type RegistryKeyMintRequest = z.infer<typeof RegistryKeyMintRequestSchema>;\n\nexport const RegistryKeyMintResponseSchema = z.object({\n apiKeyId: z.string().min(1),\n /** The secret — returned exactly once, never stored by the platform. */\n plainKey: z.string().min(1),\n keyPrefix: z.string().min(1),\n organizationId: z.string().min(1),\n organizationSlug: z.string().min(1),\n role: z.enum(RegistryKeyRole),\n expiresAt: z.iso.datetime(),\n});\nexport type RegistryKeyMintResponse = z.infer<typeof RegistryKeyMintResponseSchema>;\n\nexport const RegistryKeySummarySchema = z.object({\n apiKeyId: z.string().min(1),\n name: z.string(),\n keyPrefix: z.string(),\n roles: z.array(z.enum(CORE_ORG_ROLES)),\n status: z.enum(ApiKeyStatus),\n expiresAt: z.iso.datetime().optional(),\n});\nexport type RegistryKeySummary = z.infer<typeof RegistryKeySummarySchema>;\n\nexport const RegistryKeyListResponseSchema = z.object({ organizationSlug: z.string().min(1), keys: z.array(RegistryKeySummarySchema) });\nexport type RegistryKeyListResponse = z.infer<typeof RegistryKeyListResponseSchema>;\n\nexport const RegistryKeyListQuerySchema = z.strictObject({ organizationSlug: RegistryKeyOrganizationSlugSchema });\n\nexport const RegistryKeyRevokeRequestSchema = z.strictObject({ organizationSlug: RegistryKeyOrganizationSlugSchema });\n\n/** Admin-door paths, one place for both ends. */\nexport const REGISTRY_KEYS_ADMIN_PATH = '/admin/registry/keys';\nexport function buildRegistryKeyRevokePath(apiKeyId: string): string {\n return `${REGISTRY_KEYS_ADMIN_PATH}/${encodeURIComponent(apiKeyId)}/revoke`;\n}\n"]}
1
+ {"version":3,"file":"registry-keys.schemas.js","sourceRoot":"","sources":["../../../src/registry/registry-keys.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAErE,uHAAuH;AACvH,MAAM,CAAN,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,qGAAqG;IACrG,gCAAa,CAAA;IACb,uFAAuF;IACvF,sCAAmB,CAAA;AACrB,CAAC,EALW,eAAe,KAAf,eAAe,QAK1B;AAED,kFAAkF;AAClF,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,CAAC;AACnD,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,CAAC;AAEhD,uFAAuF;AACvF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,6BAA6B,EAAE;IACnF,KAAK,EAAE,iFAAiF;CACzF,CAAC,CAAC;AAEH,4FAA4F;AAC5F,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EA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C,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;IAC5B,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC,EAAE,CAAC,CAAC;AAGxI,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,gBAAgB,EAAE,iCAAiC,EAAE,CAAC,CAAC;AAElH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC,EAAE,gBAAgB,EAAE,iCAAiC,EAAE,CAAC,CAAC;AAEtH,iDAAiD;AACjD,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAC/D,MAAM,UAAU,0BAA0B,CAAC,QAAgB;IACzD,OAAO,GAAG,wBAAwB,IAAI,kBAAkB,CAAC,QAAQ,CAAC,SAAS,CAAC;AAC9E,CAAC","sourcesContent":["/**\n * Wire contract of the platform's module-registry key door (#1756): apps-manager\n * `/admin/registry/keys`, called by `wildo registry key`. Shared here because the two ends are\n * different packages and neither may import the other.\n *\n * ## A key belongs to an ORGANIZATION, and says so\n *\n * The registry authorizes against `ownerOrganizationId` on its domain and module rows, so a registry\n * key's authority is its organization: a publish key may publish into EVERY domain that organization\n * owns. The door therefore addresses an organization, not an application. An earlier draft took an\n * `appSlug` and resolved its owner, which read as a per-application key while narrowing nothing: every\n * application a platform registers is owned by the one platform owner organization\n * (`WILDO_OWNER_ORGANIZATION`), so a key \"for application A\" could publish into application B's domains.\n * A parameter that looks like a scope and scopes nothing is a false control, so it was removed.\n * Omit `organizationSlug` for the platform owner organization, the common case.\n */\n\nimport { z } from 'zod';\nimport { ApiKeyStatus, CORE_ORG_ROLES } from '@wildo-ai/saas-models';\n\n/** The roles a registry key may carry — mapped by apps-manager onto the two roles the registry's resources declare. */\nexport enum RegistryKeyRole {\n /** Read RESTRICTED modules (resolve, info, download) — an install / CI key. Carries `ORG_MEMBER`. */\n READ = 'read',\n /** Publish, yank and tag in the owning organization's domains. Carries `ORG_ADMIN`. */\n PUBLISH = 'publish',\n}\n\n/** A registry key always expires; the operator re-mints rather than extending. */\nexport const REGISTRY_KEY_DEFAULT_EXPIRY_DAYS = 90;\nexport const REGISTRY_KEY_MAX_EXPIRY_DAYS = 365;\n\n/** A key's operator-facing name: lowercase letters, digits, `.`, `_`, `-` (max 64). */\nexport const RegistryKeyNameSchema = z.string().regex(/^[a-z0-9][a-z0-9._-]{0,63}$/, {\n error: 'a registry key name must be lowercase letters, digits, \".\", \"_\" or \"-\" (max 64)',\n});\n\n/** The organization a key belongs to, by slug. Absent = the platform owner organization. */\nexport const RegistryKeyOrganizationSlugSchema = z.string().min(1).optional();\n\nexport const RegistryKeyMintRequestSchema = z.strictObject({\n organizationSlug: RegistryKeyOrganizationSlugSchema,\n name: RegistryKeyNameSchema,\n role: z.enum(RegistryKeyRole),\n expiresInDays: z.number().int().min(1).max(REGISTRY_KEY_MAX_EXPIRY_DAYS).optional(),\n});\nexport type RegistryKeyMintRequest = z.infer<typeof RegistryKeyMintRequestSchema>;\n\nexport const RegistryKeyMintResponseSchema = z.object({\n apiKeyId: z.string().min(1),\n /** The secret — returned exactly once, never stored by the platform. */\n plainKey: z.string().min(1),\n keyPrefix: z.string().min(1),\n organizationId: z.string().min(1),\n organizationSlug: z.string().min(1),\n role: z.enum(RegistryKeyRole),\n expiresAt: z.iso.datetime(),\n});\nexport type RegistryKeyMintResponse = z.infer<typeof RegistryKeyMintResponseSchema>;\n\nexport const RegistryKeySummarySchema = z.object({\n apiKeyId: z.string().min(1),\n name: z.string(),\n keyPrefix: z.string(),\n roles: z.array(z.enum(CORE_ORG_ROLES)),\n status: z.enum(ApiKeyStatus),\n expiresAt: z.iso.datetime().optional(),\n});\nexport type RegistryKeySummary = z.infer<typeof RegistryKeySummarySchema>;\n\nexport const RegistryKeyListResponseSchema = z.object({ organizationSlug: z.string().min(1), keys: z.array(RegistryKeySummarySchema) });\nexport type RegistryKeyListResponse = z.infer<typeof RegistryKeyListResponseSchema>;\n\nexport const RegistryKeyListQuerySchema = z.strictObject({ organizationSlug: RegistryKeyOrganizationSlugSchema });\n\nexport const RegistryKeyRevokeRequestSchema = z.strictObject({ organizationSlug: RegistryKeyOrganizationSlugSchema });\n\n/** Admin-door paths, one place for both ends. */\nexport const REGISTRY_KEYS_ADMIN_PATH = '/admin/registry/keys';\nexport function buildRegistryKeyRevokePath(apiKeyId: string): string {\n return `${REGISTRY_KEYS_ADMIN_PATH}/${encodeURIComponent(apiKeyId)}/revoke`;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-section-schemas.constants.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-section-schemas.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEnC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,OAAO,gCAAgC,CAAC"}
1
+ {"version":3,"file":"registry-section-schemas.constants.d.ts","sourceRoot":"","sources":["../../../src/registry/registry-section-schemas.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAIH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEnC,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,OAAO,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-section-schemas.constants.js","sourceRoot":"","sources":["../../../../src/registry/registry-section-schemas.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,OAAO,EAAE,gCAAgC;CACjC,CAAC","sourcesContent":["/**\n * `DEFAULT_REGISTRY_SECTION_SCHEMAS` — the section-schema registry\n * every CLI-side lockfile reader/writer should pass to the shared\n * lockfile library.\n *\n * The lockfile envelope (`SaasLockfileEnvelopeSchema`) is permissive\n * about unknown sections (`.catchall(z.unknown())`), so a reader\n * that does not validate `sections.modules` at parse time will\n * silently see whatever bytes happen to be there. The\n * `DEFAULT_REGISTRY_SECTION_SCHEMAS` map keeps every CLI caller\n * honest by giving them a single import to validate the registry's\n * own section.\n *\n * Companion callers extend this map with their own i18n schema\n * (and any other companion-owned section) — see KD-4. The CLI\n * uses this constant as-is.\n */\n\nimport { RegistryModulesLockSectionSchema } from './lockfile-modules-section.schemas';\n\nexport const DEFAULT_REGISTRY_SECTION_SCHEMAS = {\n modules: RegistryModulesLockSectionSchema,\n} as const;\n\nexport type DefaultRegistrySectionSchemas = typeof DEFAULT_REGISTRY_SECTION_SCHEMAS;\n"]}
1
+ {"version":3,"file":"registry-section-schemas.constants.js","sourceRoot":"","sources":["../../../src/registry/registry-section-schemas.constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAEtF,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,OAAO,EAAE,gCAAgC;CACjC,CAAC","sourcesContent":["/**\n * `DEFAULT_REGISTRY_SECTION_SCHEMAS` — the section-schema registry\n * every CLI-side lockfile reader/writer should pass to the shared\n * lockfile library.\n *\n * The lockfile envelope (`SaasLockfileEnvelopeSchema`) is permissive\n * about unknown sections (`.catchall(z.unknown())`), so a reader\n * that does not validate `sections.modules` at parse time will\n * silently see whatever bytes happen to be there. The\n * `DEFAULT_REGISTRY_SECTION_SCHEMAS` map keeps every CLI caller\n * honest by giving them a single import to validate the registry's\n * own section.\n *\n * Companion callers extend this map with their own i18n schema\n * (and any other companion-owned section) — see KD-4. The CLI\n * uses this constant as-is.\n */\n\nimport { RegistryModulesLockSectionSchema } from './lockfile-modules-section.schemas';\n\nexport const DEFAULT_REGISTRY_SECTION_SCHEMAS = {\n modules: RegistryModulesLockSectionSchema,\n} as const;\n\nexport type DefaultRegistrySectionSchemas = typeof DEFAULT_REGISTRY_SECTION_SCHEMAS;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-url-resolution.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-url-resolution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACtC,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,gEAAgE;IAChE,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,mHAAmH;AACnH,oBAAY,sBAAsB;IAChC,wCAAwC;IACxC,QAAQ,aAAa;IACrB,wDAAwD;IACxD,UAAU,eAAe;IACzB,+DAA+D;IAC/D,OAAO,YAAY;IACnB,6FAA6F;IAC7F,cAAc,mBAAmB;IACjC,yGAAyG;IACzG,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,iEAAiE;IACjE,MAAM,EAAE,sBAAsB,CAAC;IAC/B,4EAA4E;IAC5E,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,GAAE,cAAmB,GAAG,IAAI,CAoBtG;AAUD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,gBAAgB,CAKnF"}
1
+ {"version":3,"file":"registry-url-resolution.d.ts","sourceRoot":"","sources":["../../../src/registry/registry-url-resolution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,WAAW,uBAAuB;IACtC,sEAAsE;IACtE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,gEAAgE;IAChE,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED,mHAAmH;AACnH,oBAAY,sBAAsB;IAChC,wCAAwC;IACxC,QAAQ,aAAa;IACrB,wDAAwD;IACxD,UAAU,eAAe;IACzB,+DAA+D;IAC/D,OAAO,YAAY;IACnB,6FAA6F;IAC7F,cAAc,mBAAmB;IACjC,yGAAyG;IACzG,UAAU,eAAe;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,iEAAiE;IACjE,MAAM,EAAE,sBAAsB,CAAC;IAC/B,4EAA4E;IAC5E,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,GAAG,EAAE,MAAM,EAAE,gBAAgB,GAAE,cAAmB,GAAG,IAAI,CAoBtG;AAUD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,gBAAgB,CAKnF"}
@@ -1 +1 @@
1
- {"version":3,"file":"registry-url-resolution.js","sourceRoot":"","sources":["../../../../src/registry/registry-url-resolution.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,0BAA0B,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;A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,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,mBAAmB,CAAC;YAC1D,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACpE,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,sBAAsB,CAAC,cAAc,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC;QACvG,CAAC;IACH,CAAC;IAED,OAAO;QACL,GAAG,EAAE,wBAAwB,CAAC,KAAK,CAAC,2BAA2B,CAAC;YAC9D,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,2BAA2B;QAC/B,MAAM,EAAE,sBAAsB,CAAC,UAAU;KAC1C,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Which registry a command talks to, and whether it may (#1764).\n *\n * Translates a `--registry <id-or-url>` flag (or the absence thereof)\n * to a concrete registry HTTP origin. Three sources are consulted in\n * order:\n *\n * 1. Explicit `--registry` flag — accepts a stable registry id\n * (matched against `wildo.saas.config.ts > moduleRegistries[].id`)\n * OR a literal URL OR one of the well-known aliases (`local`,\n * `public`).\n * 2. `moduleRegistries` from `wildo.saas.config.ts` — when present,\n * the entry whose `id === DEFAULT_REGISTRY_ID` (or the only\n * entry, if there's exactly one) is the implicit default. Callers\n * pass the array in; this module reads no file.\n * 3. Default-URL policy — framework-developer mode (env\n * `WILDO_FRAMEWORK_DEVELOPER=1`) → `DEFAULT_LOCAL_REGISTRY_URL`,\n * otherwise `DEFAULT_PUBLIC_REGISTRY_URL`.\n *\n * Stateless: it doesn't read the credentials store or talk to the network. It lives here, beside the\n * defaults it resolves to, because two runtimes ask the question — the CLI's registry commands and the dev\n * companion, which lists the registry's providers for an application-creation brief (#2025) — and they must\n * not disagree about which registry that is.\n */\n\nimport { DEFAULT_LOCAL_REGISTRY_URL, DEFAULT_PUBLIC_REGISTRY_URL, DEFAULT_REGISTRY_ID } from './registry-defaults.constants';\nimport type { RegistryConfig } from './registry-config.schemas';\n\nexport interface ResolveRegistryUrlInput {\n /** The `--registry` flag value, if any. Accepts id, alias, or URL. */\n flag?: string;\n /** `moduleRegistries` entries from the loaded `wildo.saas.config.ts`. */\n moduleRegistries?: RegistryConfig;\n /** Force framework-developer mode (otherwise read from env). */\n forceFrameworkDeveloperMode?: boolean;\n}\n\n/** Where a resolved registry URL came from. Printed in diagnostics, so an operator can see which rule chose it. */\nexport enum ResolvedRegistrySource {\n /** `--registry` named a literal URL. */\n FLAG_URL = 'flag-url',\n /** `--registry` named an alias, `local` or `public`. */\n FLAG_ALIAS = 'flag-alias',\n /** `--registry` named the id of a `moduleRegistries` entry. */\n FLAG_ID = 'flag-id',\n /** No flag: the config's default entry (`id === DEFAULT_REGISTRY_ID`, or its only entry). */\n CONFIG_DEFAULT = 'config-default',\n /** No flag and no default entry: the local registry in framework-developer mode, else the public one. */\n ENV_POLICY = 'env-policy',\n}\n\nexport interface ResolvedRegistry {\n url: string;\n /** Source the URL came from — useful for diagnostic messages. */\n source: ResolvedRegistrySource;\n /** Registry id from the config, when the URL was resolved via id lookup. */\n id?: string;\n}\n\nfunction isFrameworkDeveloperMode(forceFrameworkDeveloperMode?: boolean): boolean {\n if (forceFrameworkDeveloperMode !== undefined) return forceFrameworkDeveloperMode;\n return process.env.WILDO_FRAMEWORK_DEVELOPER === '1' || process.env.WILDO_FRAMEWORK_DEVELOPER === 'true';\n}\n\nfunction resolveAlias(value: string): string | undefined {\n if (value === 'local') return DEFAULT_LOCAL_REGISTRY_URL;\n if (value === 'public') return DEFAULT_PUBLIC_REGISTRY_URL;\n return undefined;\n}\n\nfunction looksLikeUrl(value: string): boolean {\n return /^https?:\\/\\//i.test(value);\n}\n\n/**\n * A host this machine answers for. The literal loopback addresses are loopback by construction. Bare\n * `localhost` is NOT — Node resolves it through `getaddrinfo` and the hosts file like any name — but every\n * mainstream OS maps it to loopback in its default configuration, and it is the local registry's own\n * default address. A `*.localhost` subdomain is NOT guaranteed the same: some resolvers map it to loopback\n * (systemd's `nss-myhostname` where configured), others pass it to DNS, where it can leave the machine.\n * So it is refused (#1764 review, reasoning corrected in the re-review R12).\n */\nfunction isLoopbackHost(hostname: string): boolean {\n const host = hostname.replace(/^\\[|\\]$/g, '').toLowerCase();\n return host === 'localhost' || host === '::1' || /^127(\\.\\d{1,3}){3}$/.test(host);\n}\n\n/**\n * Refuse to talk to a registry over a transport that exposes the key and the module source (#1764).\n *\n * `https:` always passes. `http:` passes only to a loopback host — the local development registry on\n * `localhost:5154` — or to a registry whose `moduleRegistries` entry names `allowInsecureHttp: true`.\n * Anything else is refused BEFORE a key is sent or a byte fetched. The artifact digest is no defence on\n * plain HTTP: the server that serves the bytes also reports the digest.\n *\n * Decided by this repository's fail-closed principle: refusal is the default, and the door past it is\n * named per registry in config rather than a flag any command could pass.\n */\nexport function assertRegistryTransportIsSafe(url: string, moduleRegistries: RegistryConfig = []): void {\n let parsed: URL;\n try {\n parsed = new URL(url);\n } catch {\n throw new Error(`Registry URL \"${url}\" is not a valid URL.`);\n }\n if (parsed.protocol === 'https:') return;\n if (parsed.protocol !== 'http:') {\n throw new Error(`Registry URL \"${url}\" uses ${parsed.protocol}; only https (or http to a loopback host) is supported.`);\n }\n if (isLoopbackHost(parsed.hostname)) return;\n const origin = parsed.origin;\n const optedOut = moduleRegistries.some((entry) => entry.allowInsecureHttp === true && safeOrigin(entry.url) === origin);\n if (optedOut) return;\n throw new Error(\n `Refusing plain http to the remote registry ${origin}: the registry key and module source would travel in cleartext. `\n + 'Use its https URL. If this registry genuinely has none, declare it in `wildo.saas.config.ts > moduleRegistries` '\n + 'with `allowInsecureHttp: true`.',\n );\n}\n\nfunction safeOrigin(value: string): string | undefined {\n try {\n return new URL(value).origin;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Resolve a registry URL from the supplied input. Throws when the\n * `--registry` flag references an id that doesn't appear in the\n * loaded `moduleRegistries` (the most common configuration error).\n */\nexport function resolveRegistryUrl(input: ResolveRegistryUrlInput): ResolvedRegistry {\n const resolved = resolveRegistryUrlUnchecked(input);\n // Every source — flag URL, alias, config entry, env policy — passes the same transport gate (#1764).\n assertRegistryTransportIsSafe(resolved.url, input.moduleRegistries ?? []);\n return resolved;\n}\n\nfunction resolveRegistryUrlUnchecked(input: ResolveRegistryUrlInput): ResolvedRegistry {\n const { flag, moduleRegistries = [] } = input;\n\n if (flag) {\n const alias = resolveAlias(flag);\n if (alias) {\n return { url: alias, source: ResolvedRegistrySource.FLAG_ALIAS };\n }\n if (looksLikeUrl(flag)) {\n return { url: flag, source: ResolvedRegistrySource.FLAG_URL };\n }\n const entry = moduleRegistries.find((r) => r.id === flag);\n if (!entry) {\n const known = moduleRegistries.map((r) => `\"${r.id}\"`).join(', ');\n throw new Error(\n `Unknown registry id \"${flag}\". ` +\n (known.length > 0\n ? `Configured registry ids: ${known}. `\n : 'No registries configured in `wildo.saas.config.ts > moduleRegistries`. ') +\n 'Pass an explicit URL or one of the aliases `local` / `public`.',\n );\n }\n return { url: entry.url, source: ResolvedRegistrySource.FLAG_ID, id: entry.id };\n }\n\n // No flag — prefer the config's default-id entry, fall back to the\n // single entry if there's exactly one, otherwise apply env-policy.\n if (moduleRegistries.length > 0) {\n const defaultEntry =\n moduleRegistries.find((r) => r.id === DEFAULT_REGISTRY_ID) ??\n (moduleRegistries.length === 1 ? moduleRegistries[0] : undefined);\n if (defaultEntry) {\n return { url: defaultEntry.url, source: ResolvedRegistrySource.CONFIG_DEFAULT, id: defaultEntry.id };\n }\n }\n\n return {\n url: isFrameworkDeveloperMode(input.forceFrameworkDeveloperMode)\n ? DEFAULT_LOCAL_REGISTRY_URL\n : DEFAULT_PUBLIC_REGISTRY_URL,\n source: ResolvedRegistrySource.ENV_POLICY,\n };\n}\n"]}
1
+ {"version":3,"file":"registry-url-resolution.js","sourceRoot":"","sources":["../../../src/registry/registry-url-resolution.ts"],"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E,mEAAmE;IACnE,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,MAAM,YAAY,GAChB,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,mBAAmB,CAAC;YAC1D,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QACpE,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,sBAAsB,CAAC,cAAc,EAAE,EAAE,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC;QACvG,CAAC;IACH,CAAC;IAED,OAAO;QACL,GAAG,EAAE,wBAAwB,CAAC,KAAK,CAAC,2BAA2B,CAAC;YAC9D,CAAC,CAAC,0BAA0B;YAC5B,CAAC,CAAC,2BAA2B;QAC/B,MAAM,EAAE,sBAAsB,CAAC,UAAU;KAC1C,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Which registry a command talks to, and whether it may (#1764).\n *\n * Translates a `--registry <id-or-url>` flag (or the absence thereof)\n * to a concrete registry HTTP origin. Three sources are consulted in\n * order:\n *\n * 1. Explicit `--registry` flag — accepts a stable registry id\n * (matched against `wildo.saas.config.ts > moduleRegistries[].id`)\n * OR a literal URL OR one of the well-known aliases (`local`,\n * `public`).\n * 2. `moduleRegistries` from `wildo.saas.config.ts` — when present,\n * the entry whose `id === DEFAULT_REGISTRY_ID` (or the only\n * entry, if there's exactly one) is the implicit default. Callers\n * pass the array in; this module reads no file.\n * 3. Default-URL policy — framework-developer mode (env\n * `WILDO_FRAMEWORK_DEVELOPER=1`) → `DEFAULT_LOCAL_REGISTRY_URL`,\n * otherwise `DEFAULT_PUBLIC_REGISTRY_URL`.\n *\n * Stateless: it doesn't read the credentials store or talk to the network. It lives here, beside the\n * defaults it resolves to, because two runtimes ask the question — the CLI's registry commands and the dev\n * companion, which lists the registry's providers for an application-creation brief (#2025) — and they must\n * not disagree about which registry that is.\n */\n\nimport { DEFAULT_LOCAL_REGISTRY_URL, DEFAULT_PUBLIC_REGISTRY_URL, DEFAULT_REGISTRY_ID } from './registry-defaults.constants';\nimport type { RegistryConfig } from './registry-config.schemas';\n\nexport interface ResolveRegistryUrlInput {\n /** The `--registry` flag value, if any. Accepts id, alias, or URL. */\n flag?: string;\n /** `moduleRegistries` entries from the loaded `wildo.saas.config.ts`. */\n moduleRegistries?: RegistryConfig;\n /** Force framework-developer mode (otherwise read from env). */\n forceFrameworkDeveloperMode?: boolean;\n}\n\n/** Where a resolved registry URL came from. Printed in diagnostics, so an operator can see which rule chose it. */\nexport enum ResolvedRegistrySource {\n /** `--registry` named a literal URL. */\n FLAG_URL = 'flag-url',\n /** `--registry` named an alias, `local` or `public`. */\n FLAG_ALIAS = 'flag-alias',\n /** `--registry` named the id of a `moduleRegistries` entry. */\n FLAG_ID = 'flag-id',\n /** No flag: the config's default entry (`id === DEFAULT_REGISTRY_ID`, or its only entry). */\n CONFIG_DEFAULT = 'config-default',\n /** No flag and no default entry: the local registry in framework-developer mode, else the public one. */\n ENV_POLICY = 'env-policy',\n}\n\nexport interface ResolvedRegistry {\n url: string;\n /** Source the URL came from — useful for diagnostic messages. */\n source: ResolvedRegistrySource;\n /** Registry id from the config, when the URL was resolved via id lookup. */\n id?: string;\n}\n\nfunction isFrameworkDeveloperMode(forceFrameworkDeveloperMode?: boolean): boolean {\n if (forceFrameworkDeveloperMode !== undefined) return forceFrameworkDeveloperMode;\n return process.env.WILDO_FRAMEWORK_DEVELOPER === '1' || process.env.WILDO_FRAMEWORK_DEVELOPER === 'true';\n}\n\nfunction resolveAlias(value: string): string | undefined {\n if (value === 'local') return DEFAULT_LOCAL_REGISTRY_URL;\n if (value === 'public') return DEFAULT_PUBLIC_REGISTRY_URL;\n return undefined;\n}\n\nfunction looksLikeUrl(value: string): boolean {\n return /^https?:\\/\\//i.test(value);\n}\n\n/**\n * A host this machine answers for. The literal loopback addresses are loopback by construction. Bare\n * `localhost` is NOT — Node resolves it through `getaddrinfo` and the hosts file like any name — but every\n * mainstream OS maps it to loopback in its default configuration, and it is the local registry's own\n * default address. A `*.localhost` subdomain is NOT guaranteed the same: some resolvers map it to loopback\n * (systemd's `nss-myhostname` where configured), others pass it to DNS, where it can leave the machine.\n * So it is refused (#1764 review, reasoning corrected in the re-review R12).\n */\nfunction isLoopbackHost(hostname: string): boolean {\n const host = hostname.replace(/^\\[|\\]$/g, '').toLowerCase();\n return host === 'localhost' || host === '::1' || /^127(\\.\\d{1,3}){3}$/.test(host);\n}\n\n/**\n * Refuse to talk to a registry over a transport that exposes the key and the module source (#1764).\n *\n * `https:` always passes. `http:` passes only to a loopback host — the local development registry on\n * `localhost:5154` — or to a registry whose `moduleRegistries` entry names `allowInsecureHttp: true`.\n * Anything else is refused BEFORE a key is sent or a byte fetched. The artifact digest is no defence on\n * plain HTTP: the server that serves the bytes also reports the digest.\n *\n * Decided by this repository's fail-closed principle: refusal is the default, and the door past it is\n * named per registry in config rather than a flag any command could pass.\n */\nexport function assertRegistryTransportIsSafe(url: string, moduleRegistries: RegistryConfig = []): void {\n let parsed: URL;\n try {\n parsed = new URL(url);\n } catch {\n throw new Error(`Registry URL \"${url}\" is not a valid URL.`);\n }\n if (parsed.protocol === 'https:') return;\n if (parsed.protocol !== 'http:') {\n throw new Error(`Registry URL \"${url}\" uses ${parsed.protocol}; only https (or http to a loopback host) is supported.`);\n }\n if (isLoopbackHost(parsed.hostname)) return;\n const origin = parsed.origin;\n const optedOut = moduleRegistries.some((entry) => entry.allowInsecureHttp === true && safeOrigin(entry.url) === origin);\n if (optedOut) return;\n throw new Error(\n `Refusing plain http to the remote registry ${origin}: the registry key and module source would travel in cleartext. `\n + 'Use its https URL. If this registry genuinely has none, declare it in `wildo.saas.config.ts > moduleRegistries` '\n + 'with `allowInsecureHttp: true`.',\n );\n}\n\nfunction safeOrigin(value: string): string | undefined {\n try {\n return new URL(value).origin;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Resolve a registry URL from the supplied input. Throws when the\n * `--registry` flag references an id that doesn't appear in the\n * loaded `moduleRegistries` (the most common configuration error).\n */\nexport function resolveRegistryUrl(input: ResolveRegistryUrlInput): ResolvedRegistry {\n const resolved = resolveRegistryUrlUnchecked(input);\n // Every source — flag URL, alias, config entry, env policy — passes the same transport gate (#1764).\n assertRegistryTransportIsSafe(resolved.url, input.moduleRegistries ?? []);\n return resolved;\n}\n\nfunction resolveRegistryUrlUnchecked(input: ResolveRegistryUrlInput): ResolvedRegistry {\n const { flag, moduleRegistries = [] } = input;\n\n if (flag) {\n const alias = resolveAlias(flag);\n if (alias) {\n return { url: alias, source: ResolvedRegistrySource.FLAG_ALIAS };\n }\n if (looksLikeUrl(flag)) {\n return { url: flag, source: ResolvedRegistrySource.FLAG_URL };\n }\n const entry = moduleRegistries.find((r) => r.id === flag);\n if (!entry) {\n const known = moduleRegistries.map((r) => `\"${r.id}\"`).join(', ');\n throw new Error(\n `Unknown registry id \"${flag}\". ` +\n (known.length > 0\n ? `Configured registry ids: ${known}. `\n : 'No registries configured in `wildo.saas.config.ts > moduleRegistries`. ') +\n 'Pass an explicit URL or one of the aliases `local` / `public`.',\n );\n }\n return { url: entry.url, source: ResolvedRegistrySource.FLAG_ID, id: entry.id };\n }\n\n // No flag — prefer the config's default-id entry, fall back to the\n // single entry if there's exactly one, otherwise apply env-policy.\n if (moduleRegistries.length > 0) {\n const defaultEntry =\n moduleRegistries.find((r) => r.id === DEFAULT_REGISTRY_ID) ??\n (moduleRegistries.length === 1 ? moduleRegistries[0] : undefined);\n if (defaultEntry) {\n return { url: defaultEntry.url, source: ResolvedRegistrySource.CONFIG_DEFAULT, id: defaultEntry.id };\n }\n }\n\n return {\n url: isFrameworkDeveloperMode(input.forceFrameworkDeveloperMode)\n ? DEFAULT_LOCAL_REGISTRY_URL\n : DEFAULT_PUBLIC_REGISTRY_URL,\n source: ResolvedRegistrySource.ENV_POLICY,\n };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-release.constants.d.ts","sourceRoot":"","sources":["../../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sCAAsC,cAAc,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,YAAY,CAAC"}
1
+ {"version":3,"file":"framework-release.constants.d.ts","sourceRoot":"","sources":["../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,sCAAsC,cAAc,CAAC;AAElE;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-release.constants.js","sourceRoot":"","sources":["../../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,SAAS,CAAC","sourcesContent":["export const FRAMEWORK_RELEASE_NPM_SCOPE = '@wildo-ai';\n\n/**\n * Container registry that hosts the published framework images.\n *\n * Declared EXPLICITLY rather than left to Docker's default resolution: a bare\n * `<namespace>/<image>` reference silently means Docker Hub, and naming the host\n * makes the choice reviewable and a future move a config change instead of an\n * archaeology exercise. Every consumer-side reference (the compose template's\n * `platformImageRef`) is built from these two constants, and the publish lane\n * refuses any framework config that names a different pair.\n *\n * ## History, because it moved twice\n *\n * Docker Hub (`wildoai`) was the original home; the images `wildoai/wildo-platform:0.2.0`\n * and `:1.0.1` were pushed there in April 2026. On 2026-08-26 the lane was moved to GHCR\n * (`ghcr.io/wildo-ai`) for two reasons: publication could authenticate with a workflow's\n * own run-scoped `GITHUB_TOKEN`, and public GHCR pulls carry no anonymous pull-rate limit.\n * Neither reason was ever exercised — no publish CI exists, and the lane runs from a\n * developer machine — while the only container credential the framework holds is the\n * Docker Hub one. The first real GHCR publish (2026-09-04) was refused for exactly that.\n * Paul decided on 2026-09-05 to go BACK to Docker Hub rather than mint a second credential.\n *\n * If the lane ever moves to CI, the GHCR argument returns; move both constants and the\n * framework config together, and the publish-lane pin and the compose pins will say so.\n */\nexport const FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST = 'docker.io';\n\n/**\n * Owner namespace under {@link FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST} — the Docker Hub\n * organization (`wildoai`, no hyphen: Docker Hub namespaces cannot carry one, which is why\n * it differs from the GitHub organization `wildo-ai` and the npm scope `@wildo-ai`).\n */\nexport const FRAMEWORK_RELEASE_DOCKER_NAMESPACE = 'wildoai';\n"]}
1
+ {"version":3,"file":"framework-release.constants.js","sourceRoot":"","sources":["../../../src/release/framework-release.constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG,WAAW,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,WAAW,CAAC;AAElE;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,SAAS,CAAC","sourcesContent":["export const FRAMEWORK_RELEASE_NPM_SCOPE = '@wildo-ai';\n\n/**\n * Container registry that hosts the published framework images.\n *\n * Declared EXPLICITLY rather than left to Docker's default resolution: a bare\n * `<namespace>/<image>` reference silently means Docker Hub, and naming the host\n * makes the choice reviewable and a future move a config change instead of an\n * archaeology exercise. Every consumer-side reference (the compose template's\n * `platformImageRef`) is built from these two constants, and the publish lane\n * refuses any framework config that names a different pair.\n *\n * ## History, because it moved twice\n *\n * Docker Hub (`wildoai`) was the original home; the images `wildoai/wildo-platform:0.2.0`\n * and `:1.0.1` were pushed there in April 2026. On 2026-08-26 the lane was moved to GHCR\n * (`ghcr.io/wildo-ai`) for two reasons: publication could authenticate with a workflow's\n * own run-scoped `GITHUB_TOKEN`, and public GHCR pulls carry no anonymous pull-rate limit.\n * Neither reason was ever exercised — no publish CI exists, and the lane runs from a\n * developer machine — while the only container credential the framework holds is the\n * Docker Hub one. The first real GHCR publish (2026-09-04) was refused for exactly that.\n * Paul decided on 2026-09-05 to go BACK to Docker Hub rather than mint a second credential.\n *\n * If the lane ever moves to CI, the GHCR argument returns; move both constants and the\n * framework config together, and the publish-lane pin and the compose pins will say so.\n */\nexport const FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST = 'docker.io';\n\n/**\n * Owner namespace under {@link FRAMEWORK_RELEASE_DOCKER_REGISTRY_HOST} — the Docker Hub\n * organization (`wildoai`, no hyphen: Docker Hub namespaces cannot carry one, which is why\n * it differs from the GitHub organization `wildo-ai` and the npm scope `@wildo-ai`).\n */\nexport const FRAMEWORK_RELEASE_DOCKER_NAMESPACE = 'wildoai';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-info.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/framework-info.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"framework-info.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/framework-info.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wBAAwB;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"framework-info.schemas.js","sourceRoot":"","sources":["../../../../src/schemas/framework-info.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CACnC,iBAAiB,EACjB,kDAAkD,CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3C,OAAO,EAAE,YAAY;IACrB,aAAa,EAAE,YAAY;CAC5B,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nconst SemverSchema = z.string().regex(\n /^\\d+\\.\\d+\\.\\d+$/,\n 'must be a simple semver string in the form x.y.z',\n);\n\nexport const WildoFrameworkInfoSchema = z.object({\n name: z.string().min(1).default('wildo-ai'),\n version: SemverSchema,\n minCliVersion: SemverSchema,\n});\nexport type WildoFrameworkInfo = z.infer<typeof WildoFrameworkInfoSchema>;\n"]}
1
+ {"version":3,"file":"framework-info.schemas.js","sourceRoot":"","sources":["../../../src/schemas/framework-info.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CACnC,iBAAiB,EACjB,kDAAkD,CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3C,OAAO,EAAE,YAAY;IACrB,aAAa,EAAE,YAAY;CAC5B,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nconst SemverSchema = z.string().regex(\n /^\\d+\\.\\d+\\.\\d+$/,\n 'must be a simple semver string in the form x.y.z',\n);\n\nexport const WildoFrameworkInfoSchema = z.object({\n name: z.string().min(1).default('wildo-ai'),\n version: SemverSchema,\n minCliVersion: SemverSchema,\n});\nexport type WildoFrameworkInfo = z.infer<typeof WildoFrameworkInfoSchema>;\n"]}
@@ -21,15 +21,9 @@ export type WildoFrameworkPublishDockerSecrets = z.infer<typeof WildoFrameworkPu
21
21
  * registry-host command reads its section on its own and refuses with a message naming it.
22
22
  */
23
23
  export declare const WildoFrameworkModuleRegistryHostSchema: z.ZodObject<{
24
- /** The machine's IP address or DNS name. */
25
24
  address: z.ZodString;
26
25
  sshPort: z.ZodDefault<z.ZodNumber>;
27
26
  sshUser: z.ZodDefault<z.ZodString>;
28
- /**
29
- * The private key that opens the machine (`~` is expanded). When set, ssh offers ONLY this key, so a deploy does not
30
- * depend on what the agent happens to hold, and does not trip the host's brute-force protection by offering every
31
- * other key first. Absent: the operator's own ssh configuration and agent decide.
32
- */
33
27
  sshIdentityFile: z.ZodOptional<z.ZodString>;
34
28
  }, z.core.$strict>;
35
29
  export type WildoFrameworkModuleRegistryHost = z.infer<typeof WildoFrameworkModuleRegistryHostSchema>;
@@ -44,7 +38,6 @@ export declare const FRAMEWORK_SECRETS_MODULE_REGISTRY_HOST_KEY = "moduleRegistr
44
38
  export declare const WildoFrameworkRegistryHostBackupSchema: z.ZodObject<{
45
39
  scalewayRegion: z.ZodString;
46
40
  bucket: z.ZodString;
47
- /** The S3 endpoint of that region, e.g. `https://s3.nl-ams.scw.cloud`. */
48
41
  endpoint: z.ZodURL;
49
42
  accessKey: z.ZodString;
50
43
  secretKey: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"framework-secrets.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/framework-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,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MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,kCAAkC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1F,MAAM,EAAE,wCAAwC,CAAC,QAAQ,EAAE;IAC3D,GAAG,EAAE,qCAAqC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const WildoFrameworkPublishNpmSecretsSchema = z.object({\n publishToken: z.string().min(1),\n});\nexport type WildoFrameworkPublishNpmSecrets = z.infer<typeof WildoFrameworkPublishNpmSecretsSchema>;\n\nexport const WildoFrameworkPublishDockerSecretsSchema = z.object({\n publishUsername: z.string().min(1).optional(),\n publishToken: z.string().min(1),\n});\nexport type WildoFrameworkPublishDockerSecrets = z.infer<typeof WildoFrameworkPublishDockerSecretsSchema>;\n\n/**\n * How to reach the machine that serves the PUBLIC module registry (#2135), under `moduleRegistryHost` in the framework\n * secrets file. `wildo fwk registry-host` deploys to it over SSH.\n *\n * In the SECRETS file, not the tracked framework config (Paul, 2026-10-01): the address is the origin behind the\n * registry's CDN, and a tracked copy would hand it to anyone who reads the repository. The public name is not here\n * either: it is `DEFAULT_PUBLIC_REGISTRY_URL`, the address every CLI already resolves `--registry public` to.\n *\n * Deliberately NOT a member of {@link WildoFrameworkSecretsSchema}: that schema parses the whole file for every release\n * command, and one malformed section must not stop an unrelated one (the `providers.slack` lesson below). The\n * registry-host command reads its section on its own and refuses with a message naming it.\n */\nexport const WildoFrameworkModuleRegistryHostSchema = z.strictObject({\n /** The machine's IP address or DNS name. */\n address: z.string().min(1),\n sshPort: z.number().int().min(1).max(65_535).default(22),\n sshUser: z.string().min(1).default('root'),\n /**\n * The private key that opens the machine (`~` is expanded). When set, ssh offers ONLY this key, so a deploy does not\n * depend on what the agent happens to hold, and does not trip the host's brute-force protection by offering every\n * other key first. Absent: the operator's own ssh configuration and agent decide.\n */\n sshIdentityFile: z.string().min(1).optional(),\n});\nexport type WildoFrameworkModuleRegistryHost = z.infer<typeof WildoFrameworkModuleRegistryHostSchema>;\n/** The key of the section above in the framework secrets file. */\nexport const FRAMEWORK_SECRETS_MODULE_REGISTRY_HOST_KEY = 'moduleRegistryHost';\n\n/**\n * Where the registry host's nightly backups go (#2135): a restic repository in a Scaleway Object Storage bucket, in a\n * different region from the host so one datacenter cannot take both. `resticPassword` encrypts every snapshot; losing\n * it makes them all unreadable, so it belongs in a password manager as well as here. Under `registryHostBackup`, and\n * read on its own like {@link WildoFrameworkModuleRegistryHostSchema}.\n */\nexport const WildoFrameworkRegistryHostBackupSchema = z.strictObject({\n scalewayRegion: z.string().min(1),\n bucket: z.string().min(1),\n /** The S3 endpoint of that region, e.g. `https://s3.nl-ams.scw.cloud`. */\n endpoint: z.url(),\n accessKey: z.string().min(1),\n secretKey: z.string().min(1),\n resticPassword: z.string().min(32),\n});\nexport type WildoFrameworkRegistryHostBackup = z.infer<typeof WildoFrameworkRegistryHostBackupSchema>;\nexport const FRAMEWORK_SECRETS_REGISTRY_HOST_BACKUP_KEY = 'registryHostBackup';\n\n/**\n * Better Stack Uptime, which watches the registry host: an uptime monitor on its health endpoint and a heartbeat its\n * backup job reports to. A TEAM Uptime API token: a Telemetry \"source token\" cannot create monitors. Under\n * `betterStack`, read on its own.\n */\nexport const WildoFrameworkBetterStackSchema = z.object({\n /** The Uptime API base, e.g. `https://uptime.betterstack.com/api/v2`. */\n apiUrl: z.url(),\n uptimeApiToken: z.string().min(1).refine((token) => !/\\s/.test(token), { error: 'contains whitespace (an inline comment pasted with it?)' }),\n});\nexport type WildoFrameworkBetterStack = z.infer<typeof WildoFrameworkBetterStackSchema>;\nexport const FRAMEWORK_SECRETS_BETTER_STACK_KEY = 'betterStack';\n\n/**\n * One provider's credentials in the framework secrets file: a single secret (an API key), or a named\n * set of them when the provider issues several — Slack issues a bot token, an app token, OAuth\n * access/refresh tokens and identifiers that belong together.\n *\n * Until 2026-09-24 only the single-string form was accepted. A Slack credential set stored under\n * `providers.slack` then made the WHOLE file unparseable, and `wildo fwk publish npm` — which reads\n * nothing but `npm.publishToken` — refused every release with a Zod error about Slack.\n */\nexport const WildoFrameworkProviderSecretSchema = z.union([\n z.string().min(1),\n z.record(z.string(), z.string()),\n]);\nexport type WildoFrameworkProviderSecret = z.infer<typeof WildoFrameworkProviderSecretSchema>;\n\nexport const WildoFrameworkSecretsSchema = z.object({\n providers: z.record(z.string(), WildoFrameworkProviderSecretSchema).optional().default({}),\n docker: WildoFrameworkPublishDockerSecretsSchema.optional(),\n npm: WildoFrameworkPublishNpmSecretsSchema.optional(),\n});\nexport type WildoFrameworkSecrets = z.infer<typeof WildoFrameworkSecretsSchema>;\n"]}
1
+ {"version":3,"file":"framework-secrets.schemas.js","sourceRoot":"","sources":["../../../src/schemas/framework-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAChC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAChC,CAAC,CAAC;AAGH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,YAAY,CAAC;IACnE,4CAA4C;IAC5C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,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AAE,yDAAyD,EAAE,CAAC;CAC7I,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG,aAAa,CAAC;AAEhE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC;IACxD,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACjB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,kCAAkC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1F,MAAM,EAAE,wCAAwC,CAAC,QAAQ,EAAE;IAC3D,GAAG,EAAE,qCAAqC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const WildoFrameworkPublishNpmSecretsSchema = z.object({\n publishToken: z.string().min(1),\n});\nexport type WildoFrameworkPublishNpmSecrets = z.infer<typeof WildoFrameworkPublishNpmSecretsSchema>;\n\nexport const WildoFrameworkPublishDockerSecretsSchema = z.object({\n publishUsername: z.string().min(1).optional(),\n publishToken: z.string().min(1),\n});\nexport type WildoFrameworkPublishDockerSecrets = z.infer<typeof WildoFrameworkPublishDockerSecretsSchema>;\n\n/**\n * How to reach the machine that serves the PUBLIC module registry (#2135), under `moduleRegistryHost` in the framework\n * secrets file. `wildo fwk registry-host` deploys to it over SSH.\n *\n * In the SECRETS file, not the tracked framework config (Paul, 2026-10-01): the address is the origin behind the\n * registry's CDN, and a tracked copy would hand it to anyone who reads the repository. The public name is not here\n * either: it is `DEFAULT_PUBLIC_REGISTRY_URL`, the address every CLI already resolves `--registry public` to.\n *\n * Deliberately NOT a member of {@link WildoFrameworkSecretsSchema}: that schema parses the whole file for every release\n * command, and one malformed section must not stop an unrelated one (the `providers.slack` lesson below). The\n * registry-host command reads its section on its own and refuses with a message naming it.\n */\nexport const WildoFrameworkModuleRegistryHostSchema = z.strictObject({\n /** The machine's IP address or DNS name. */\n address: z.string().min(1),\n sshPort: z.number().int().min(1).max(65_535).default(22),\n sshUser: z.string().min(1).default('root'),\n /**\n * The private key that opens the machine (`~` is expanded). When set, ssh offers ONLY this key, so a deploy does not\n * depend on what the agent happens to hold, and does not trip the host's brute-force protection by offering every\n * other key first. Absent: the operator's own ssh configuration and agent decide.\n */\n sshIdentityFile: z.string().min(1).optional(),\n});\nexport type WildoFrameworkModuleRegistryHost = z.infer<typeof WildoFrameworkModuleRegistryHostSchema>;\n/** The key of the section above in the framework secrets file. */\nexport const FRAMEWORK_SECRETS_MODULE_REGISTRY_HOST_KEY = 'moduleRegistryHost';\n\n/**\n * Where the registry host's nightly backups go (#2135): a restic repository in a Scaleway Object Storage bucket, in a\n * different region from the host so one datacenter cannot take both. `resticPassword` encrypts every snapshot; losing\n * it makes them all unreadable, so it belongs in a password manager as well as here. Under `registryHostBackup`, and\n * read on its own like {@link WildoFrameworkModuleRegistryHostSchema}.\n */\nexport const WildoFrameworkRegistryHostBackupSchema = z.strictObject({\n scalewayRegion: z.string().min(1),\n bucket: z.string().min(1),\n /** The S3 endpoint of that region, e.g. `https://s3.nl-ams.scw.cloud`. */\n endpoint: z.url(),\n accessKey: z.string().min(1),\n secretKey: z.string().min(1),\n resticPassword: z.string().min(32),\n});\nexport type WildoFrameworkRegistryHostBackup = z.infer<typeof WildoFrameworkRegistryHostBackupSchema>;\nexport const FRAMEWORK_SECRETS_REGISTRY_HOST_BACKUP_KEY = 'registryHostBackup';\n\n/**\n * Better Stack Uptime, which watches the registry host: an uptime monitor on its health endpoint and a heartbeat its\n * backup job reports to. A TEAM Uptime API token: a Telemetry \"source token\" cannot create monitors. Under\n * `betterStack`, read on its own.\n */\nexport const WildoFrameworkBetterStackSchema = z.object({\n /** The Uptime API base, e.g. `https://uptime.betterstack.com/api/v2`. */\n apiUrl: z.url(),\n uptimeApiToken: z.string().min(1).refine((token) => !/\\s/.test(token), { error: 'contains whitespace (an inline comment pasted with it?)' }),\n});\nexport type WildoFrameworkBetterStack = z.infer<typeof WildoFrameworkBetterStackSchema>;\nexport const FRAMEWORK_SECRETS_BETTER_STACK_KEY = 'betterStack';\n\n/**\n * One provider's credentials in the framework secrets file: a single secret (an API key), or a named\n * set of them when the provider issues several — Slack issues a bot token, an app token, OAuth\n * access/refresh tokens and identifiers that belong together.\n *\n * Until 2026-09-24 only the single-string form was accepted. A Slack credential set stored under\n * `providers.slack` then made the WHOLE file unparseable, and `wildo fwk publish npm` — which reads\n * nothing but `npm.publishToken` — refused every release with a Zod error about Slack.\n */\nexport const WildoFrameworkProviderSecretSchema = z.union([\n z.string().min(1),\n z.record(z.string(), z.string()),\n]);\nexport type WildoFrameworkProviderSecret = z.infer<typeof WildoFrameworkProviderSecretSchema>;\n\nexport const WildoFrameworkSecretsSchema = z.object({\n providers: z.record(z.string(), WildoFrameworkProviderSecretSchema).optional().default({}),\n docker: WildoFrameworkPublishDockerSecretsSchema.optional(),\n npm: WildoFrameworkPublishNpmSecretsSchema.optional(),\n});\nexport type WildoFrameworkSecrets = z.infer<typeof WildoFrameworkSecretsSchema>;\n"]}
@@ -12,7 +12,7 @@ import { z } from 'zod';
12
12
  * - customConfig: service-specific key-value configuration
13
13
  */
14
14
  export declare const Platform_Application_Config_Schema: z.ZodObject<{
15
- platformApplicationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>>;
15
+ platformApplicationId: z.ZodString;
16
16
  jwtPublicKeys: z.ZodRecord<z.ZodString, z.ZodString>;
17
17
  customConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18
18
  }, z.core.$strip>;
@@ -1 +1 @@
1
- {"version":3,"file":"platform-application-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/platform-application-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC;;;;iBAe7C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
1
+ {"version":3,"file":"platform-application-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/platform-application-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,kCAAkC;;;;iBAe7C,CAAC;AAEH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"platform-application-config.schemas.js","sourceRoot":"","sources":["../../../../src/schemas/platform-application-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD;;;;;;;;OAQG;IACH,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAEhG,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEtD,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * Platform Application Config Schema\n * \n * Stored in MongoDB, fetched by platform services via\n * GET /platform-services-to-manager/config-secrets.\n * \n * After T4, platform service URLs and infrastructure addresses are sourced from\n * each service's env vars (generated by CLI). This schema only contains data\n * that apps-manager manages dynamically:\n * - jwtPublicKeys: rotatable public keys for inter-service JWT verification\n * - customConfig: service-specific key-value configuration\n */\nexport const Platform_Application_Config_Schema = z.object({\n /**\n * The owning platform service — and the SINGLETON key of this document, declared unique\n * 2026-08-12, for the same reason as its sibling on `Platform_Application_Secrets_Schema`:\n * exactly one config row per platform service, addressed and upserted by this filter, and a\n * PostgreSQL `ON CONFLICT (platformApplicationId)` target must name a UNIQUE constraint.\n *\n * Cleared against the live MongoDB platform before declaring it (no duplicates, no missing\n * values); the engine reconciles the plain → unique index drift at boot.\n */\n platformApplicationId: z.string().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n \n jwtPublicKeys: z.record(z.string(), z.string().min(1)),\n \n customConfig: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type Platform_Application_Config = z.infer<typeof Platform_Application_Config_Schema>;\n\n\n"]}
1
+ {"version":3,"file":"platform-application-config.schemas.js","sourceRoot":"","sources":["../../../src/schemas/platform-application-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IACzD;;;;;;;;OAQG;IACH,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAEhG,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAEtD,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * Platform Application Config Schema\n * \n * Stored in MongoDB, fetched by platform services via\n * GET /platform-services-to-manager/config-secrets.\n * \n * After T4, platform service URLs and infrastructure addresses are sourced from\n * each service's env vars (generated by CLI). This schema only contains data\n * that apps-manager manages dynamically:\n * - jwtPublicKeys: rotatable public keys for inter-service JWT verification\n * - customConfig: service-specific key-value configuration\n */\nexport const Platform_Application_Config_Schema = z.object({\n /**\n * The owning platform service — and the SINGLETON key of this document, declared unique\n * 2026-08-12, for the same reason as its sibling on `Platform_Application_Secrets_Schema`:\n * exactly one config row per platform service, addressed and upserted by this filter, and a\n * PostgreSQL `ON CONFLICT (platformApplicationId)` target must name a UNIQUE constraint.\n *\n * Cleared against the live MongoDB platform before declaring it (no duplicates, no missing\n * values); the engine reconciles the plain → unique index drift at boot.\n */\n platformApplicationId: z.string().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n \n jwtPublicKeys: z.record(z.string(), z.string().min(1)),\n \n customConfig: z.record(z.string(), z.unknown()).optional(),\n});\n\nexport type Platform_Application_Config = z.infer<typeof Platform_Application_Config_Schema>;\n\n\n"]}
@@ -15,7 +15,7 @@ import { z } from 'zod';
15
15
  * - storage: S3/MinIO credentials (optional, for services that need storage access)
16
16
  */
17
17
  export declare const Platform_Application_Secrets_Schema: z.ZodObject<{
18
- platformApplicationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>>;
18
+ platformApplicationId: z.ZodString;
19
19
  primarySecret: z.ZodOptional<z.ZodString>;
20
20
  jwt: z.ZodObject<{
21
21
  privateKey: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"platform-application-secrets.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/platform-application-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuE9C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"platform-application-secrets.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/platform-application-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuE9C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"platform-application-secrets.schemas.js","sourceRoot":"","sources":["../../../../src/schemas/platform-application-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D;;;;;;;;;;;;;;OAcG;IACH,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAEhG,uDA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AAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * Platform Application Secrets Schema\n * \n * This schema defines all secrets for platform microservices.\n * These secrets are stored in MongoDB and fetched by platform services via the\n * GET /platform-services-to-manager/config-secrets endpoint.\n * \n * Structure:\n * - primarySecret: The primary authentication secret for the service\n * - jwt: Private/public keys for JWT signing/verification\n * - redis: Redis ACL credentials\n * - rabbitmq: RabbitMQ user credentials\n * - mongo: MongoDB connection credentials (optional, for services that need direct DB access)\n * - storage: S3/MinIO credentials (optional, for services that need storage access)\n */\nexport const Platform_Application_Secrets_Schema = z.object({\n /**\n * The owning platform service — and the SINGLETON key of this document, declared unique\n * 2026-08-12.\n *\n * One secrets document per platform service is what every reader and writer already assumes:\n * the infra-manager reads it with `findOne({ platformApplicationId })` and writes it with an\n * upsert on the same filter. A second row would silently shadow the first, and which one won\n * would depend on natural order.\n *\n * The constraint becomes REQUIRED when that upsert moves to the repositories plane: PostgreSQL\n * spells it `INSERT … ON CONFLICT (platformApplicationId)`, and a conflict target must name a\n * UNIQUE constraint. See the same reasoning on `Platform_Application_Schema.name`, including the\n * measurement clearing the existing MongoDB platform (no duplicates, no missing values, and the\n * engine's unique-index drift reconciliation covers the plain → unique transition).\n */\n platformApplicationId: z.string().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n \n // Primary authentication secret for inter-service auth\n primarySecret: z.string().min(1).optional(),\n \n // JWT private/public keys for signing/verification\n jwt: z.object({\n privateKey: z.record(z.string(), z.string().min(1).optional()),\n publicKey: z.record(z.string(), z.string().min(1).optional()).optional(),\n }),\n \n // Redis ACL credentials\n redis: z.object({\n username: z.string().min(1),\n password: z.string().min(1),\n }).optional(),\n \n // RabbitMQ user credentials\n rabbitmq: z.object({\n username: z.string().min(1),\n password: z.string().min(1),\n vhost: z.string().default('/'),\n }).optional(),\n \n // MongoDB credentials (for services that need direct DB access)\n mongo: z.object({\n username: z.string().min(1).optional(),\n password: z.string().min(1).optional(),\n databaseName: z.string().min(1).optional(),\n // Full connection URL (alternative to username/password)\n connectUrl: z.string().min(1).optional(),\n }).optional(),\n \n // PostgreSQL credentials (for services that need PostgreSQL access)\n postgresql: z.object({\n /** PostgreSQL host */\n host: z.string().min(1).optional(),\n /** PostgreSQL port (default: 5432) */\n port: z.number().int().default(5432),\n /** Database username */\n username: z.string().min(1).optional(),\n /** Database password */\n password: z.string().min(1).optional(),\n /** Database name */\n databaseName: z.string().min(1).optional(),\n /** Full connection URL (alternative to individual fields) */\n connectUrl: z.string().min(1).optional(),\n }).optional(),\n \n // S3/MinIO storage credentials (for services that need storage access)\n storage: z.object({\n accessKey: z.string().min(1),\n secretKey: z.string().min(1),\n bucket: z.string().min(1).optional(),\n }).optional(),\n});\n\nexport type Platform_Application_Secrets = z.infer<typeof Platform_Application_Secrets_Schema>;\n\n\n"]}
1
+ {"version":3,"file":"platform-application-secrets.schemas.js","sourceRoot":"","sources":["../../../src/schemas/platform-application-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D;;;;;;;;;;;;;;OAcG;IACH,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE;IAEhG,uDAAuD;IACvD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAE3C,mDAAmD;IACnD,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC;QACZ,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,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QAAQ,EAAE;KACzC,CAAC,CAAC,QAAQ,EAAE;IAEb,oEAAoE;IACpE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;QACnB,sBAAsB;QACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QAClC,sCAAsC;QACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;QACpC,wBAAwB;QACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACtC,wBAAwB;QACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QACtC,oBAAoB;QACpB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC1C,6DAA6D;QAC7D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KACzC,CAAC,CAAC,QAAQ,EAAE;IAEb,uEAAuE;IACvE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KACrC,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * Platform Application Secrets Schema\n * \n * This schema defines all secrets for platform microservices.\n * These secrets are stored in MongoDB and fetched by platform services via the\n * GET /platform-services-to-manager/config-secrets endpoint.\n * \n * Structure:\n * - primarySecret: The primary authentication secret for the service\n * - jwt: Private/public keys for JWT signing/verification\n * - redis: Redis ACL credentials\n * - rabbitmq: RabbitMQ user credentials\n * - mongo: MongoDB connection credentials (optional, for services that need direct DB access)\n * - storage: S3/MinIO credentials (optional, for services that need storage access)\n */\nexport const Platform_Application_Secrets_Schema = z.object({\n /**\n * The owning platform service — and the SINGLETON key of this document, declared unique\n * 2026-08-12.\n *\n * One secrets document per platform service is what every reader and writer already assumes:\n * the infra-manager reads it with `findOne({ platformApplicationId })` and writes it with an\n * upsert on the same filter. A second row would silently shadow the first, and which one won\n * would depend on natural order.\n *\n * The constraint becomes REQUIRED when that upsert moves to the repositories plane: PostgreSQL\n * spells it `INSERT … ON CONFLICT (platformApplicationId)`, and a conflict target must name a\n * UNIQUE constraint. See the same reasoning on `Platform_Application_Schema.name`, including the\n * measurement clearing the existing MongoDB platform (no duplicates, no missing values, and the\n * engine's unique-index drift reconciliation covers the plain → unique transition).\n */\n platformApplicationId: z.string().isUnique().isForeignKey().isSummaryField().excludeFromUpdate(),\n \n // Primary authentication secret for inter-service auth\n primarySecret: z.string().min(1).optional(),\n \n // JWT private/public keys for signing/verification\n jwt: z.object({\n privateKey: z.record(z.string(), z.string().min(1).optional()),\n publicKey: z.record(z.string(), z.string().min(1).optional()).optional(),\n }),\n \n // Redis ACL credentials\n redis: z.object({\n username: z.string().min(1),\n password: z.string().min(1),\n }).optional(),\n \n // RabbitMQ user credentials\n rabbitmq: z.object({\n username: z.string().min(1),\n password: z.string().min(1),\n vhost: z.string().default('/'),\n }).optional(),\n \n // MongoDB credentials (for services that need direct DB access)\n mongo: z.object({\n username: z.string().min(1).optional(),\n password: z.string().min(1).optional(),\n databaseName: z.string().min(1).optional(),\n // Full connection URL (alternative to username/password)\n connectUrl: z.string().min(1).optional(),\n }).optional(),\n \n // PostgreSQL credentials (for services that need PostgreSQL access)\n postgresql: z.object({\n /** PostgreSQL host */\n host: z.string().min(1).optional(),\n /** PostgreSQL port (default: 5432) */\n port: z.number().int().default(5432),\n /** Database username */\n username: z.string().min(1).optional(),\n /** Database password */\n password: z.string().min(1).optional(),\n /** Database name */\n databaseName: z.string().min(1).optional(),\n /** Full connection URL (alternative to individual fields) */\n connectUrl: z.string().min(1).optional(),\n }).optional(),\n \n // S3/MinIO storage credentials (for services that need storage access)\n storage: z.object({\n accessKey: z.string().min(1),\n secretKey: z.string().min(1),\n bucket: z.string().min(1).optional(),\n }).optional(),\n});\n\nexport type Platform_Application_Secrets = z.infer<typeof Platform_Application_Secrets_Schema>;\n\n\n"]}
@@ -9,7 +9,7 @@ export type AppsManagerStaticConfig = z.infer<typeof AppsManagerStaticConfigurat
9
9
  * all other platform services get them via the fetch endpoint.
10
10
  */
11
11
  export declare const AppsManagerConfig_Schema: z.ZodObject<{
12
- platformApplicationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>>;
12
+ platformApplicationId: z.ZodString;
13
13
  jwtPublicKeys: z.ZodRecord<z.ZodString, z.ZodString>;
14
14
  customConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
15
  platformServices: z.ZodObject<{
@@ -18,7 +18,7 @@ export declare const AppsManagerConfig_Schema: z.ZodObject<{
18
18
  }, z.core.$strip>;
19
19
  }, z.core.$strip>;
20
20
  export declare const AppsManagerSecrets_Schema: z.ZodObject<{
21
- platformApplicationId: import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<import("@wildo-ai/zod-decorators").DecoratedPrimitiveZodType<z.ZodString>>>>;
21
+ platformApplicationId: z.ZodString;
22
22
  primarySecret: z.ZodOptional<z.ZodString>;
23
23
  jwt: z.ZodObject<{
24
24
  privateKey: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>;
@@ -1 +1 @@
1
- {"version":3,"file":"platform-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/schemas/platform-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBpC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE3E,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"platform-config.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/platform-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,oCAAoC;;iBAE/C,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAE3F;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;YAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;SAC9B,CAAC,CAAC,QAAQ,EAAE;QACb,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { Platform_Application_Config_Schema } from \"./platform-application-config.schemas\";\nimport { Platform_Application_Secrets_Schema } from \"./platform-application-secrets.schemas\";\n\nexport const AppsManagerStaticConfigurationSchema = z.object({\n githubActionMetaUrl: z.url().optional(),\n});\n\nexport type AppsManagerStaticConfig = z.infer<typeof AppsManagerStaticConfigurationSchema>;\n\n/**\n * Apps-manager runtime config: base Platform_Application_Config + platformServices from env.\n * Apps-manager is the only service that stores/manages jwtPublicKeys in MongoDB;\n * all other platform services get them via the fetch endpoint.\n */\nexport const AppsManagerConfig_Schema = Platform_Application_Config_Schema.extend({\n platformServices: z.object({\n appsManager: z.url(),\n crontabsBatchesManager: z.url(),\n }),\n});\n\nexport const AppsManagerSecrets_Schema = Platform_Application_Secrets_Schema.extend({\n /**\n * MongoDB credentials — `connectUrl` OPTIONAL since 2026-08-28, matching every other store in the\n * platform secrets shape (`postgresql`, `redis` and friends are all `.optional()` already).\n *\n * It was a required `z.url()`, which made this schema the last thing forcing a mongod onto a\n * PostgreSQL platform. `wonder-crm` — PostgreSQL on both planes, no mongod declared — got through\n * INIT and then died in NORMAL mode with `ZodError: [\"mongo\",\"connectUrl\"] expected string,\n * received undefined`, hydrating a secret for a store it does not have.\n *\n * Absent means the platform runs no MongoDB. Every reader already optional-chains it\n * (`_platformSecrets?.mongo?.connectUrl` in crontabs is the pattern), because absence has been\n * representable at the READ side for longer than it was at the SCHEMA side.\n */\n mongo: z.object({\n atlas: z.object({\n publicKey: z.string().min(1),\n privateKey: z.string().min(1),\n }).optional(),\n connectUrl: z.url().optional(),\n })\n});\n\nexport type AppsManagerConfig = z.infer<typeof AppsManagerConfig_Schema>;\nexport type AppsManagerSecrets = z.infer<typeof AppsManagerSecrets_Schema>;\n\nexport type AppsManagerAtlasRuntimeConfig = {\n baseUrl: string;\n projectId: string;\n publicKey: string;\n privateKey: string;\n};\n\n\n"]}
1
+ {"version":3,"file":"platform-config.schemas.js","sourceRoot":"","sources":["../../../src/schemas/platform-config.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kCAAkC,EAAE,MAAM,uCAAuC,CAAC;AAC3F,OAAO,EAAE,mCAAmC,EAAE,MAAM,wCAAwC,CAAC;AAE7F,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3D,mBAAmB,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAIH;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,kCAAkC,CAAC,MAAM,CAAC;IAChF,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC;QACzB,WAAW,EAAE,CAAC,CAAC,GAAG,EAAE;QACpB,sBAAsB,EAAE,CAAC,CAAC,GAAG,EAAE;KAChC,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,mCAAmC,CAAC,MAAM,CAAC;IAClF;;;;;;;;;;;;OAYG;IACH,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;YACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;YAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;SAC9B,CAAC,CAAC,QAAQ,EAAE;QACb,UAAU,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC;CACH,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { Platform_Application_Config_Schema } from \"./platform-application-config.schemas\";\nimport { Platform_Application_Secrets_Schema } from \"./platform-application-secrets.schemas\";\n\nexport const AppsManagerStaticConfigurationSchema = z.object({\n githubActionMetaUrl: z.url().optional(),\n});\n\nexport type AppsManagerStaticConfig = z.infer<typeof AppsManagerStaticConfigurationSchema>;\n\n/**\n * Apps-manager runtime config: base Platform_Application_Config + platformServices from env.\n * Apps-manager is the only service that stores/manages jwtPublicKeys in MongoDB;\n * all other platform services get them via the fetch endpoint.\n */\nexport const AppsManagerConfig_Schema = Platform_Application_Config_Schema.extend({\n platformServices: z.object({\n appsManager: z.url(),\n crontabsBatchesManager: z.url(),\n }),\n});\n\nexport const AppsManagerSecrets_Schema = Platform_Application_Secrets_Schema.extend({\n /**\n * MongoDB credentials — `connectUrl` OPTIONAL since 2026-08-28, matching every other store in the\n * platform secrets shape (`postgresql`, `redis` and friends are all `.optional()` already).\n *\n * It was a required `z.url()`, which made this schema the last thing forcing a mongod onto a\n * PostgreSQL platform. `wonder-crm` — PostgreSQL on both planes, no mongod declared — got through\n * INIT and then died in NORMAL mode with `ZodError: [\"mongo\",\"connectUrl\"] expected string,\n * received undefined`, hydrating a secret for a store it does not have.\n *\n * Absent means the platform runs no MongoDB. Every reader already optional-chains it\n * (`_platformSecrets?.mongo?.connectUrl` in crontabs is the pattern), because absence has been\n * representable at the READ side for longer than it was at the SCHEMA side.\n */\n mongo: z.object({\n atlas: z.object({\n publicKey: z.string().min(1),\n privateKey: z.string().min(1),\n }).optional(),\n connectUrl: z.url().optional(),\n })\n});\n\nexport type AppsManagerConfig = z.infer<typeof AppsManagerConfig_Schema>;\nexport type AppsManagerSecrets = z.infer<typeof AppsManagerSecrets_Schema>;\n\nexport type AppsManagerAtlasRuntimeConfig = {\n baseUrl: string;\n projectId: string;\n publicKey: string;\n privateKey: string;\n};\n\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"application-subject-manifest.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/application-subject-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAK/B,4EAA4E;AAC5E,eAAO,MAAM,sCAAsC,4BACK,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,EAC/C,OAAO,kCAAuE,CAAC;AAEjF;;;GAGG;AACH,wBAAgB,qCAAqC,CACnD,eAAe,EAAE,MAAM,GACtB,MAAM,CAKR;AAED;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,MAAM,GACb,4BAA4B,CAQ9B"}
1
+ {"version":3,"file":"application-subject-manifest.d.ts","sourceRoot":"","sources":["../../../src/workspace-scope/application-subject-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,KAAK,4BAA4B,EAClC,MAAM,uBAAuB,CAAC;AAK/B,4EAA4E;AAC5E,eAAO,MAAM,sCAAsC,4BACK,CAAC;AAEzD;;;;;;GAMG;AACH,eAAO,MAAM,oCAAoC,EAC/C,OAAO,kCAAuE,CAAC;AAEjF;;;GAGG;AACH,wBAAgB,qCAAqC,CACnD,eAAe,EAAE,MAAM,GACtB,MAAM,CAKR;AAED;;;;;;;GAOG;AACH,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,MAAM,GACb,4BAA4B,CAQ9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"application-subject-manifest.js","sourceRoot":"","sources":["../../../../src/workspace-scope/application-subject-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,GAEnC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sCAAsC,GACjD,yBAAyB,CAAC,4BAA4B,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oCAAoC,GACH,kCAAkC,CAAC;AAEjF;;;GAGG;AACH,MAAM,UAAU,qCAAqC,CACnD,eAAuB;IAEvB,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,gBAAgB,CAAC,eAAe,CAAC,CAAC,8BAA8B,CAAC;AAC1E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mCAAmC,CACjD,MAAc;IAEd,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAY,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,WAAW,CAAC,gDAAgD,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,oCAAoC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC","sourcesContent":["import {\n ApplicationSubjectManifestV1Schema,\n type ApplicationSubjectManifestV1,\n} from '@wildo-ai/saas-models';\nimport { isAbsolute } from 'node:path';\nimport { APP_CONTINUITY_FILE_NAMES } from './workspace-scope.schemas';\nimport { resolveAppLayout } from './workspace-homes.schemas';\n\n/** Portable application-subject manifest in the tracked continuity home. */\nexport const APPLICATION_SUBJECT_MANIFEST_FILE_NAME =\n APP_CONTINUITY_FILE_NAMES.APPLICATION_SUBJECT_MANIFEST;\n\n/**\n * File-boundary schema for the portable application-subject manifest.\n *\n * This is an alias of the one canonical portable schema in `saas-models`, not\n * a second shape. `platform-config-lib` owns file discovery/parsing while\n * `saas-models` remains the named runtime source for the portable contract.\n */\nexport const ApplicationSubjectManifestFileSchema:\n typeof ApplicationSubjectManifestV1Schema = ApplicationSubjectManifestV1Schema;\n\n/**\n * Resolve the repository-maintained subject manifest without probing the\n * filesystem or importing executable application configuration.\n */\nexport function resolveApplicationSubjectManifestPath(\n applicationRoot: string,\n): string {\n if (!isAbsolute(applicationRoot)) {\n throw new TypeError('Application root must be an absolute path');\n }\n return resolveAppLayout(applicationRoot).applicationSubjectManifestPath;\n}\n\n/**\n * Parse untrusted subject-manifest JSON through the strict portable schema.\n *\n * The function intentionally performs no filesystem I/O and does not infer an\n * identity from a path, slug, database id, or executable configuration. Digest\n * recomputation belongs to the backend continuity boundary that owns the\n * canonical JSON/SHA implementation.\n */\nexport function parseApplicationSubjectManifestJson(\n source: string,\n): ApplicationSubjectManifestV1 {\n let parsed: unknown;\n try {\n parsed = JSON.parse(source) as unknown;\n } catch {\n throw new SyntaxError('Application subject manifest is not valid JSON');\n }\n return ApplicationSubjectManifestFileSchema.parse(parsed);\n}\n"]}
1
+ {"version":3,"file":"application-subject-manifest.js","sourceRoot":"","sources":["../../../src/workspace-scope/application-subject-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,GAEnC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sCAAsC,GACjD,yBAAyB,CAAC,4BAA4B,CAAC;AAEzD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oCAAoC,GACH,kCAAkC,CAAC;AAEjF;;;GAGG;AACH,MAAM,UAAU,qCAAqC,CACnD,eAAuB;IAEvB,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE,CAAC;QACjC,MAAM,IAAI,SAAS,CAAC,2CAA2C,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,gBAAgB,CAAC,eAAe,CAAC,CAAC,8BAA8B,CAAC;AAC1E,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mCAAmC,CACjD,MAAc;IAEd,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAY,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,WAAW,CAAC,gDAAgD,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,oCAAoC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC","sourcesContent":["import {\n ApplicationSubjectManifestV1Schema,\n type ApplicationSubjectManifestV1,\n} from '@wildo-ai/saas-models';\nimport { isAbsolute } from 'node:path';\nimport { APP_CONTINUITY_FILE_NAMES } from './workspace-scope.schemas';\nimport { resolveAppLayout } from './workspace-homes.schemas';\n\n/** Portable application-subject manifest in the tracked continuity home. */\nexport const APPLICATION_SUBJECT_MANIFEST_FILE_NAME =\n APP_CONTINUITY_FILE_NAMES.APPLICATION_SUBJECT_MANIFEST;\n\n/**\n * File-boundary schema for the portable application-subject manifest.\n *\n * This is an alias of the one canonical portable schema in `saas-models`, not\n * a second shape. `platform-config-lib` owns file discovery/parsing while\n * `saas-models` remains the named runtime source for the portable contract.\n */\nexport const ApplicationSubjectManifestFileSchema:\n typeof ApplicationSubjectManifestV1Schema = ApplicationSubjectManifestV1Schema;\n\n/**\n * Resolve the repository-maintained subject manifest without probing the\n * filesystem or importing executable application configuration.\n */\nexport function resolveApplicationSubjectManifestPath(\n applicationRoot: string,\n): string {\n if (!isAbsolute(applicationRoot)) {\n throw new TypeError('Application root must be an absolute path');\n }\n return resolveAppLayout(applicationRoot).applicationSubjectManifestPath;\n}\n\n/**\n * Parse untrusted subject-manifest JSON through the strict portable schema.\n *\n * The function intentionally performs no filesystem I/O and does not infer an\n * identity from a path, slug, database id, or executable configuration. Digest\n * recomputation belongs to the backend continuity boundary that owns the\n * canonical JSON/SHA implementation.\n */\nexport function parseApplicationSubjectManifestJson(\n source: string,\n): ApplicationSubjectManifestV1 {\n let parsed: unknown;\n try {\n parsed = JSON.parse(source) as unknown;\n } catch {\n throw new SyntaxError('Application subject manifest is not valid JSON');\n }\n return ApplicationSubjectManifestFileSchema.parse(parsed);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/workspace-scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/workspace-scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './workspace-scope.schemas';\nexport * from './workspace-scope-detector';\nexport * from './workspace-homes.schemas';\nexport * from './resolve-homes';\nexport * from './application-subject-manifest';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/workspace-scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './workspace-scope.schemas';\nexport * from './workspace-scope-detector';\nexport * from './workspace-homes.schemas';\nexport * from './resolve-homes';\nexport * from './application-subject-manifest';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-homes.d.ts","sourceRoot":"","sources":["../../../../src/workspace-scope/resolve-homes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAOtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,oBAAoB,EACpC,OAAO,GAAE,mBAAwB,GAChC,aAAa,CA0Cf;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,GAAG,GAAE,MAAsB,EAC3B,OAAO,GAAE,mBAAwB,GAChC,aAAa,CAEf"}
1
+ {"version":3,"file":"resolve-homes.d.ts","sourceRoot":"","sources":["../../../src/workspace-scope/resolve-homes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAOtE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,cAAc,EAAE,oBAAoB,EACpC,OAAO,GAAE,mBAAwB,GAChC,aAAa,CA0Cf;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,GAAG,GAAE,MAAsB,EAC3B,OAAO,GAAE,mBAAwB,GAChC,aAAa,CAEf"}