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

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 (231) hide show
  1. package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +1 -1
  2. package/dist/esm/_unimplemented/unimplemented-field-warning.js +1 -1
  3. package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +1 -1
  4. package/dist/esm/blueprint/anchored-region.d.ts +83 -0
  5. package/dist/esm/blueprint/anchored-region.d.ts.map +1 -0
  6. package/dist/esm/blueprint/anchored-region.js +263 -0
  7. package/dist/esm/blueprint/anchored-region.js.map +1 -0
  8. package/dist/esm/blueprint/blueprint.schemas.d.ts +689 -0
  9. package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -0
  10. package/dist/esm/blueprint/blueprint.schemas.js +638 -0
  11. package/dist/esm/blueprint/blueprint.schemas.js.map +1 -0
  12. package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
  13. package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
  14. package/dist/esm/bootstrap/bootstrap.contracts.d.ts +13 -1
  15. package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
  16. package/dist/esm/bootstrap/bootstrap.contracts.js +6 -0
  17. package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
  18. package/dist/esm/bootstrap/bootstrap.schemas.d.ts +21 -3
  19. package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
  20. package/dist/esm/bootstrap/bootstrap.schemas.js +14 -3
  21. package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
  22. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +121 -0
  23. package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
  24. package/dist/esm/bootstrap/platform-runtime-env.contracts.js +129 -0
  25. package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
  26. package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
  27. package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
  28. package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
  29. package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
  30. package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -1
  31. package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
  32. package/dist/esm/bootstrap/runtime-response-integrity.d.ts +249 -0
  33. package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -0
  34. package/dist/esm/bootstrap/runtime-response-integrity.js +353 -0
  35. package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -0
  36. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts +32 -0
  37. package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -0
  38. package/dist/esm/bootstrap/runtime-secret-env.contracts.js +43 -0
  39. package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -0
  40. package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
  41. package/dist/esm/bootstrap/wildo-owner-organization.contracts.d.ts.map +1 -1
  42. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts +51 -0
  43. package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -0
  44. package/dist/esm/canonical-json/rfc8785-canonical-json.js +231 -0
  45. package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -0
  46. package/dist/esm/config-authoring.entry.d.ts.map +1 -1
  47. package/dist/esm/index.d.ts +15 -0
  48. package/dist/esm/index.d.ts.map +1 -1
  49. package/dist/esm/index.js +15 -0
  50. package/dist/esm/index.js.map +1 -1
  51. package/dist/esm/key-management/approval-seal-verifier.d.ts +216 -0
  52. package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -0
  53. package/dist/esm/key-management/approval-seal-verifier.js +233 -0
  54. package/dist/esm/key-management/approval-seal-verifier.js.map +1 -0
  55. package/dist/esm/key-management/approval-seal.contracts.d.ts +131 -0
  56. package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -0
  57. package/dist/esm/key-management/approval-seal.contracts.js +115 -0
  58. package/dist/esm/key-management/approval-seal.contracts.js.map +1 -0
  59. package/dist/esm/key-management/data-key.contracts.d.ts +108 -0
  60. package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -0
  61. package/dist/esm/key-management/data-key.contracts.js +54 -0
  62. package/dist/esm/key-management/data-key.contracts.js.map +1 -0
  63. package/dist/esm/key-management/es256-jws.d.ts +60 -0
  64. package/dist/esm/key-management/es256-jws.d.ts.map +1 -0
  65. package/dist/esm/key-management/es256-jws.js +135 -0
  66. package/dist/esm/key-management/es256-jws.js.map +1 -0
  67. package/dist/esm/key-management/key-provider.spi.d.ts +151 -0
  68. package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -0
  69. package/dist/esm/key-management/key-provider.spi.js +38 -0
  70. package/dist/esm/key-management/key-provider.spi.js.map +1 -0
  71. package/dist/esm/key-management/keyring-rotation.contracts.d.ts +93 -0
  72. package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -0
  73. package/dist/esm/key-management/keyring-rotation.contracts.js +101 -0
  74. package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -0
  75. package/dist/esm/key-management/keyring-status.contracts.d.ts +66 -0
  76. package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -0
  77. package/dist/esm/key-management/keyring-status.contracts.js +45 -0
  78. package/dist/esm/key-management/keyring-status.contracts.js.map +1 -0
  79. package/dist/esm/key-management/signature-request.contracts.d.ts +95 -0
  80. package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -0
  81. package/dist/esm/key-management/signature-request.contracts.js +96 -0
  82. package/dist/esm/key-management/signature-request.contracts.js.map +1 -0
  83. package/dist/esm/key-management/signing-log-export.contracts.d.ts +216 -0
  84. package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -0
  85. package/dist/esm/key-management/signing-log-export.contracts.js +268 -0
  86. package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -0
  87. package/dist/esm/key-management/vault-custody.contracts.d.ts +55 -0
  88. package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -0
  89. package/dist/esm/key-management/vault-custody.contracts.js +88 -0
  90. package/dist/esm/key-management/vault-custody.contracts.js.map +1 -0
  91. package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
  92. package/dist/esm/lockfile/lockfile-io.d.ts +7 -9
  93. package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
  94. package/dist/esm/lockfile/lockfile-io.js +23 -22
  95. package/dist/esm/lockfile/lockfile-io.js.map +1 -1
  96. package/dist/esm/lockfile/materialize-infra-section.d.ts +17 -14
  97. package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
  98. package/dist/esm/lockfile/materialize-infra-section.js +9 -9
  99. package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
  100. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +26 -2
  101. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
  102. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +27 -2
  103. package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
  104. package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
  105. package/dist/esm/project-config/application-public-pricing-catalog.loader.js +9 -2
  106. package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
  107. package/dist/esm/project-config/application-served-public-documents.loader.d.ts +26 -0
  108. package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -0
  109. package/dist/esm/project-config/application-served-public-documents.loader.js +78 -0
  110. package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -0
  111. package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
  112. package/dist/esm/project-config/define-infra-env-config.d.ts +236 -15
  113. package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
  114. package/dist/esm/project-config/define-infra-env-config.js +104 -91
  115. package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
  116. package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
  117. package/dist/esm/project-config/define-saas-config.d.ts +133 -3
  118. package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
  119. package/dist/esm/project-config/define-saas-config.js +170 -19
  120. package/dist/esm/project-config/define-saas-config.js.map +1 -1
  121. package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
  122. package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
  123. package/dist/esm/project-config/hosted-infra-env-config.js +3 -0
  124. package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
  125. package/dist/esm/project-config/index.d.ts +3 -0
  126. package/dist/esm/project-config/index.d.ts.map +1 -1
  127. package/dist/esm/project-config/index.js +3 -0
  128. package/dist/esm/project-config/index.js.map +1 -1
  129. package/dist/esm/project-config/loader.d.ts.map +1 -1
  130. package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
  131. package/dist/esm/project-config/npm-version-range.js +39 -16
  132. package/dist/esm/project-config/npm-version-range.js.map +1 -1
  133. package/dist/esm/project-config/owning-package-tsconfig.d.ts +15 -0
  134. package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -0
  135. package/dist/esm/project-config/owning-package-tsconfig.js +29 -0
  136. package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -0
  137. package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -1
  138. package/dist/esm/project-config/provider-companion-discovery.d.ts +4 -4
  139. package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
  140. package/dist/esm/project-config/provider-companion-discovery.js +13 -9
  141. package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
  142. package/dist/esm/project-config/provider-runtime-artifacts.d.ts +32 -3
  143. package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
  144. package/dist/esm/project-config/provider-runtime-artifacts.js +67 -13
  145. package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
  146. package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
  147. package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
  148. package/dist/esm/project-config/shared/application-modules.utils.d.ts.map +1 -1
  149. package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
  150. package/dist/esm/project-config/shared/backing-service-servability.d.ts.map +1 -1
  151. package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
  152. package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -1
  153. package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
  154. package/dist/esm/project-config/shared/csp-defaults.d.ts +4 -5
  155. package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
  156. package/dist/esm/project-config/shared/csp-defaults.js +4 -5
  157. package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
  158. package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
  159. package/dist/esm/project-config/shared/csp.schemas.d.ts +1 -2
  160. package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
  161. package/dist/esm/project-config/shared/csp.schemas.js +1 -2
  162. package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
  163. package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
  164. package/dist/esm/project-config/shared/environment.schemas.d.ts +6 -0
  165. package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
  166. package/dist/esm/project-config/shared/environment.schemas.js +8 -1
  167. package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
  168. package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
  169. package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -1
  170. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +1 -0
  171. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
  172. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +3 -0
  173. package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
  174. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +4 -0
  175. package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
  176. package/dist/esm/project-config/shared/minion-resource-access.validation.js +6 -2
  177. package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
  178. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +250 -0
  179. package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -0
  180. package/dist/esm/project-config/shared/platform-key-management.schemas.js +194 -0
  181. package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -0
  182. package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
  183. package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
  184. package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -1
  185. package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
  186. package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
  187. package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
  188. package/dist/esm/registry/digest.schemas.d.ts.map +1 -1
  189. package/dist/esm/registry/index.d.ts +1 -0
  190. package/dist/esm/registry/index.d.ts.map +1 -1
  191. package/dist/esm/registry/index.js +1 -0
  192. package/dist/esm/registry/index.js.map +1 -1
  193. package/dist/esm/registry/local-checkout-source.d.ts +22 -2
  194. package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
  195. package/dist/esm/registry/local-checkout-source.js +66 -3
  196. package/dist/esm/registry/local-checkout-source.js.map +1 -1
  197. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +10 -0
  198. package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
  199. package/dist/esm/registry/module-artifact.schemas.d.ts +23 -0
  200. package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
  201. package/dist/esm/registry/module-manifest.schemas.d.ts +336 -18
  202. package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
  203. package/dist/esm/registry/module-manifest.schemas.js +245 -19
  204. package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
  205. package/dist/esm/registry/module-search.schemas.d.ts +2 -0
  206. package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
  207. package/dist/esm/registry/module-search.schemas.js +14 -1
  208. package/dist/esm/registry/module-search.schemas.js.map +1 -1
  209. package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
  210. package/dist/esm/registry/registry-errors.d.ts +22 -2
  211. package/dist/esm/registry/registry-errors.d.ts.map +1 -1
  212. package/dist/esm/registry/registry-errors.js +28 -2
  213. package/dist/esm/registry/registry-errors.js.map +1 -1
  214. package/dist/esm/registry/registry-keys.schemas.d.ts.map +1 -1
  215. package/dist/esm/registry/registry-section-schemas.constants.d.ts +5 -0
  216. package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
  217. package/dist/esm/registry/registry-url-resolution.d.ts +72 -0
  218. package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -0
  219. package/dist/esm/registry/registry-url-resolution.js +157 -0
  220. package/dist/esm/registry/registry-url-resolution.js.map +1 -0
  221. package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
  222. package/dist/esm/schemas/framework-secrets.schemas.d.ts +55 -0
  223. package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
  224. package/dist/esm/schemas/framework-secrets.schemas.js +53 -0
  225. package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
  226. package/dist/esm/schemas/platform-application-config.schemas.d.ts.map +1 -1
  227. package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
  228. package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
  229. package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -1
  230. package/dist/esm/workspace-scope/index.d.ts.map +1 -1
  231. package/package.json +7 -7
@@ -0,0 +1,194 @@
1
+ import { z } from 'zod';
2
+ import { BackingServiceSource } from './backing-services.schemas.js';
3
+ /** @wildo_source:part:start platform.config.platform-key-management facet:layer:platform facet:family:infra facet:audience:app-developer */
4
+ /**
5
+ * # Where the platform keeps the keys it holds for applications (#2933)
6
+ *
7
+ * apps-manager is the custodian of every platform-held key (approval seals, signature requests, and the wrapping keys
8
+ * of an application's sealed secrets, #2894). Without this block it
9
+ * seals them under its own key-encryption root (the LOCAL provider). With it, apps-manager also serves the
10
+ * `vault-transit` and `vault-kv` key providers, and an application's key binding may name one of them.
11
+ *
12
+ * This is a PLATFORM-tier declaration, like `platformStorage`: one apps-manager holds one Vault, whatever application
13
+ * an environment file belongs to. It is deliberately not a `backingServices` kind. A backing service is something an
14
+ * application runtime dials, with credentials minted per application; no application runtime ever reaches this Vault,
15
+ * and nothing is minted per application in it.
16
+ *
17
+ * - `{ vault: { source: 'self' } }` — the CLI renders a single-node OpenBao (the MPL-licensed Vault fork, API
18
+ * compatible for everything used) beside apps-manager, in docker compose and in Kubernetes. It unseals itself from a
19
+ * framework-managed key and configures itself on its first start: the Transit and KV mounts, the two least-privilege
20
+ * policies, and the two tokens apps-manager speaks with. Good for development and for a small self-hosted platform;
21
+ * its protection is SOFTWARE, as every Vault's is. Its self-initialization runs only on EMPTY storage, so an OpenBao
22
+ * first started before a policy changed keeps the older policy: one started before #2894 cannot wrap data keys
23
+ * (`transit/encrypt` and `transit/decrypt` answer 403) until the signer policy is written again (`bao policy write`
24
+ * with `vaultSignerPolicy`) or its storage is recreated.
25
+ * - `{ vault: { source: 'managed', address, … } }` — the operator's own Vault or OpenBao. The operator configures the
26
+ * mounts and policies (`vaultSignerPolicy` / `vaultOperatorPolicy` in the key-management contracts) and puts the two
27
+ * tokens in `secrets.json` under `platformKeyVaultManaged`.
28
+ *
29
+ * Absent, apps-manager serves no Vault provider, and a binding that names one is refused PROVIDER_UNAVAILABLE.
30
+ *
31
+ * ## Cloud KMS (#2896)
32
+ *
33
+ * `awsKms`, `googleCloudKms` and `azureKeyVault` make apps-manager serve the `aws-kms`, `google-cloud-kms` and
34
+ * `azure-key-vault` providers: the key is generated inside the vendor's HSM, never leaves it, and the vendor signs. They
35
+ * are always the operator's own account, so they carry no `source`. apps-manager authenticates with its WORKLOAD
36
+ * identity (an IAM role for its service account, GKE workload identity, an Azure managed identity): nothing here is a
37
+ * secret, and `secrets.json` holds nothing for them.
38
+ *
39
+ * Each provider acts as two identities, as Vault does with two tokens. The SIGNER may only read keys, sign, and wrap and
40
+ * unwrap data keys under a wrapping key (#2894); the OPERATOR creates, disables and destroys keys and may never sign, wrap
41
+ * or unwrap. Every wrap is authenticated encryption under a key only the vendor holds. Neither vendor's broad built-in role keeps to that, so
42
+ * grant, per vendor:
43
+ * - AWS: apps-manager's identity may only `sts:AssumeRole` the two roles. Every key apps-manager creates carries the tag
44
+ * `wildo:key-ref`, and the policies are scoped by it:
45
+ * - Signer, on `arn:aws:kms:<region>:<account>:key/*`: `kms:Sign`, `kms:Encrypt` and `kms:Decrypt` only where
46
+ * `aws:ResourceTag/wildo:key-ref` is present (`"Null": { … "false" }`), so it cannot sign with, or decrypt under,
47
+ * another key in the account; `kms:GetPublicKey` and `kms:DescribeKey` unconditioned (both read-only).
48
+ * - Operator: `kms:CreateKey` and `kms:TagResource` on `"Resource": "*"` (CreateKey names no key yet), only where
49
+ * `aws:RequestTag/wildo:key-ref` is present and `aws:TagKeys` is exactly `["wildo:key-ref"]`; on `key/*`,
50
+ * `kms:DisableKey` and `kms:ScheduleKeyDeletion` only where `aws:ResourceTag/wildo:key-ref` is present, and
51
+ * `kms:DescribeKey`; never `kms:Sign`, `kms:Encrypt`, `kms:Decrypt` nor `kms:UntagResource`.
52
+ * - The tag is what admits a key to the signer, so whoever may tag may admit: the operator's `kms:TagResource` lets it
53
+ * put `wildo:key-ref` on ANY key in the account, which the signer could then sign with. AWS warns of exactly this
54
+ * ("Be cautious about giving principals the `kms:TagResource` … permissions"). Keep the operator role to apps-manager
55
+ * alone, and consider a permissions boundary or SCP denying `kms:TagResource` on keys outside the custodian's.
56
+ * - KMS applies a tag to authorization up to five minutes after it is set, so a NEW version may be refused `kms:Sign`
57
+ * for those minutes: the first ACTIVE version of every new keyring (made at its first signature request), and one
58
+ * made by an emergency rotation. The signature fails as a provider fault and the caller retries it; so does the first
59
+ * wrap under a new wrapping key, which the application's data-key ring asks for again on its own retry.
60
+ * - Google: apps-manager's identity holds `roles/iam.serviceAccountTokenCreator` on the two service accounts only.
61
+ * Signer: `roles/cloudkms.signer`, `roles/cloudkms.cryptoKeyEncrypterDecrypter`, `roles/cloudkms.publicKeyViewer` and
62
+ * `roles/cloudkms.viewer` on the key ring (sign, wrap and unwrap data keys, read the public key, read a version's state). Operator: `roles/cloudkms.admin` on the key ring, which contains no
63
+ * cryptographic operation.
64
+ * - Azure Key Vault (a vault in the Azure RBAC permission model): two user-assigned managed identities on apps-manager,
65
+ * each with a CUSTOM role on the vault. The built-in roles do not fit: "Key Vault Crypto User" can update and back up a
66
+ * key, and "Key Vault Crypto Officer" holds `vaults/keys/*`, signing included.
67
+ * - Signer: `Microsoft.KeyVault/vaults/keys/read`, `…/keys/versions/read`, `…/keys/sign/action`,
68
+ * `…/keys/encrypt/action`, `…/keys/decrypt/action` (a data key is wrapped with A256GCM under an `oct-HSM` key, which
69
+ * a Premium vault offers in preview; a Standard vault cannot hold one and serves signing only).
70
+ * - Operator: `…/keys/read`, `…/keys/versions/read`, `…/keys/create/action`, `…/keys/update/action` (disable),
71
+ * `…/keys/delete`, `…/keys/purge/action`.
72
+ * The vault's recovery level decides whether a destroyed key is purged at once or kept until retention ends.
73
+ * - Azure Managed HSM (`*.managedhsm.azure.net`): the same two identities, with custom roles in the HSM's LOCAL RBAC
74
+ * (the built-in "Managed HSM Crypto User" can sign and back up, and cannot purge). Signer:
75
+ * `Microsoft.KeyVault/managedHsm/keys/read/action`, `…/keys/sign/action`, `…/keys/encrypt/action`, `…/keys/decrypt/action`.
76
+ * Operator: `…/keys/read/action`,
77
+ * `…/keys/create`, `…/keys/write/action`, `…/keys/delete`, `…/keys/deletedKeys/read/action`,
78
+ * `…/keys/deletedKeys/delete` (purge).
79
+ *
80
+ * spec-cite: AWS KMS developer guide, "Use tags to control access to KMS keys" (`aws:ResourceTag`, the five-minute
81
+ * delay, limiting `kms:TagResource` with `aws:RequestTag` / `aws:TagKeys`),
82
+ * https://docs.aws.amazon.com/kms/latest/developerguide/tag-authorization.html; AWS KMS permissions reference
83
+ * (`CreateKey`'s resource is `*`), https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html; Azure built-in roles, Security (Key
84
+ * Vault Crypto Officer DataActions `Microsoft.KeyVault/vaults/keys/*`) and Azure permissions, Microsoft.KeyVault (the
85
+ * `vaults/keys/*` data actions), https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/security;
86
+ * Managed HSM local RBAC built-in roles (the data-action table),
87
+ * https://learn.microsoft.com/en-us/azure/key-vault/managed-hsm/built-in-roles.
88
+ *
89
+ * When a provider registers at startup, apps-manager logs the vendor's quota and per-request cost. It also holds its own
90
+ * signing under 80% of the vendor's per-second quota, per process.
91
+ *
92
+ * ## Corroboration
93
+ *
94
+ * Every ten minutes, apps-manager compares, per key version and closed hour, the signatures its signing log records with
95
+ * the ones the vendor's own audit log records, and writes one audit row per provider and hour:
96
+ * - UNACCOUNTED (CRITICAL) the moment the vendor shows more signatures than apps-manager can account for: a key was used
97
+ * outside the custodian, or a signature went unrecorded;
98
+ * - otherwise, once the hour is six hours old (vendor logs arrive late): UNCORROBORATED (the vendor recorded fewer, or its
99
+ * log could not be read) or CORROBORATED.
100
+ * It reads as the OPERATOR identity, which therefore also needs:
101
+ * - AWS: `cloudtrail:LookupEvents` (KMS `Sign` is a CloudTrail management event; nothing to enable).
102
+ * - Google: `roles/logging.privateLogViewer` on the project, and Cloud KMS Data Access audit logs ENABLED (they are off by
103
+ * default, and until they are on, every hour is uncorroborated).
104
+ * - Azure: Log Analytics Reader on the workspace named by `logAnalyticsWorkspaceId`, which the vault's diagnostic setting
105
+ * sends `AuditEvent` to.
106
+ */
107
+ export const PlatformKeyVaultSelfHostedSchema = z.strictObject({
108
+ source: z.literal(BackingServiceSource.SELF),
109
+ });
110
+ /** The operator's own Vault or OpenBao. Mounts and prefix default to the provider defaults (`transit`, `secret`, `wildo-`). */
111
+ export const PlatformKeyVaultManagedSchema = z.strictObject({
112
+ source: z.literal(BackingServiceSource.MANAGED),
113
+ /** The Vault API address apps-manager dials, e.g. `https://vault.internal:8200`. */
114
+ address: z.url(),
115
+ /** Vault Enterprise namespace (`team/keys/`); absent on open-source Vault and OpenBao's root namespace. */
116
+ namespace: z.string().min(1).optional(),
117
+ transitMount: z.string().min(1).optional(),
118
+ kvMount: z.string().min(1).optional(),
119
+ keyNamePrefix: z.string().min(1).optional(),
120
+ });
121
+ export const PlatformKeyVaultConfigSchema = z.discriminatedUnion('source', [PlatformKeyVaultSelfHostedSchema, PlatformKeyVaultManagedSchema]);
122
+ /** The protection level apps-manager creates Google Cloud KMS keys at. */
123
+ export var PlatformGoogleKmsKeyProtection;
124
+ (function (PlatformGoogleKmsKeyProtection) {
125
+ /** In Cloud HSM (FIPS 140-2 Level 3): the key's attestation is HARDWARE. */
126
+ PlatformGoogleKmsKeyProtection["HSM"] = "HSM";
127
+ /** In Cloud KMS software: the key's attestation is SOFTWARE, and a HARDWARE floor refuses it. */
128
+ PlatformGoogleKmsKeyProtection["SOFTWARE"] = "SOFTWARE";
129
+ })(PlatformGoogleKmsKeyProtection || (PlatformGoogleKmsKeyProtection = {}));
130
+ /** AWS KMS in the operator's account. */
131
+ export const PlatformKeyAwsKmsConfigSchema = z.strictObject({
132
+ region: z.string().regex(/^[a-z]{2}(-[a-z]+)+-\d$/),
133
+ /** The role apps-manager assumes to read keys and sign. */
134
+ signerRoleArn: z.string().regex(/^arn:aws[a-z-]*:iam::\d{12}:role\/.+$/),
135
+ /** The role apps-manager assumes to create, disable and schedule the deletion of keys. */
136
+ operatorRoleArn: z.string().regex(/^arn:aws[a-z-]*:iam::\d{12}:role\/.+$/),
137
+ /** A KMS endpoint other than the region's public one (a VPC interface endpoint). */
138
+ endpoint: z.url().optional(),
139
+ });
140
+ /** Google Cloud KMS in the operator's project. */
141
+ export const PlatformKeyGoogleCloudKmsConfigSchema = z.strictObject({
142
+ /** `projects/<project>/locations/<location>/keyRings/<ring>`; created by the operator, since a key ring cannot be deleted. */
143
+ keyRing: z.string().regex(/^projects\/[^/]+\/locations\/[^/]+\/keyRings\/[^/]+$/),
144
+ signerServiceAccount: z.email(),
145
+ operatorServiceAccount: z.email(),
146
+ protectionLevel: z.enum(PlatformGoogleKmsKeyProtection).default(PlatformGoogleKmsKeyProtection.HSM),
147
+ });
148
+ /** Azure Key Vault (Premium) or Managed HSM in the operator's subscription. */
149
+ export const PlatformKeyAzureKeyVaultConfigSchema = z.strictObject({
150
+ /** `https://<vault>.vault.azure.net` or `https://<hsm>.managedhsm.azure.net`. */
151
+ vaultUrl: z.url(),
152
+ /** The client id of the signer's user-assigned managed identity. */
153
+ signerClientId: z.uuid(),
154
+ /** The client id of the operator's user-assigned managed identity. */
155
+ operatorClientId: z.uuid(),
156
+ /** HSM-protected keys (`EC-HSM`, a Premium vault or Managed HSM); `false` makes software `EC` keys. */
157
+ hsm: z.boolean().default(true),
158
+ /**
159
+ * The Log Analytics workspace (its GUID) the vault's diagnostic setting sends `AuditEvent` to, in the `AzureDiagnostics`
160
+ * destination mode. apps-manager reads it hourly to corroborate its signatures; absent, no Azure hour is compared.
161
+ */
162
+ logAnalyticsWorkspaceId: z.uuid().optional(),
163
+ });
164
+ /**
165
+ * A dedicated HSM reached over PKCS#11 (#2934): Thales Luna, Entrust nShield, AWS CloudHSM, Azure Cloud HSM, an
166
+ * on-premises appliance, or SoftHSM2. apps-manager loads the vendor's PKCS#11 module, logs in to one token with a user PIN
167
+ * (operator-typed in `secrets.json` under `platformKeyPkcs11: { pin }`, never here) and serves the `pkcs11` provider.
168
+ *
169
+ * Protection is read from the token, not declared: a key counts as HARDWARE only when the slot reports a hardware slot
170
+ * AND the token's model is listed in `hardwareTokenModels`, which is your statement that this model is the hardware you
171
+ * run. SoftHSM2 is always SOFTWARE. The binding (`pkcs11js`) is compiled by `pnpm setup:pkcs11`; an apps-manager that
172
+ * cannot load it says so at boot and refuses every signature on this provider.
173
+ */
174
+ export const PlatformKeyPkcs11ConfigSchema = z.strictObject({
175
+ /** The vendor's PKCS#11 module, as an absolute path in apps-manager's filesystem (e.g. `/usr/lib/softhsm/libsofthsm2.so`). */
176
+ modulePath: z.string().regex(/^\//, 'an absolute path'),
177
+ /** The token's label, as the module reports it. */
178
+ tokenLabel: z.string().min(1).max(32),
179
+ /** Token models (`CK_TOKEN_INFO.model`) you state are hardware. Empty: every key reports SOFTWARE. */
180
+ hardwareTokenModels: z.array(z.string().min(1)).default([]),
181
+ });
182
+ export const WildoPlatformKeyManagementConfigSchema = z.strictObject({
183
+ vault: PlatformKeyVaultConfigSchema.optional(),
184
+ awsKms: PlatformKeyAwsKmsConfigSchema.optional(),
185
+ googleCloudKms: PlatformKeyGoogleCloudKmsConfigSchema.optional(),
186
+ azureKeyVault: PlatformKeyAzureKeyVaultConfigSchema.optional(),
187
+ pkcs11: PlatformKeyPkcs11ConfigSchema.optional(),
188
+ });
189
+ /** @wildo_source:part:end platform.config.platform-key-management */
190
+ /** Whether the platform runs its own Vault (OpenBao) in this environment: the one predicate both lanes render from. */
191
+ export function selfHostsPlatformKeyVault(platformKeyManagement) {
192
+ return platformKeyManagement?.vault?.source === BackingServiceSource.SELF;
193
+ }
194
+ //# sourceMappingURL=platform-key-management.schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-key-management.schemas.js","sourceRoot":"","sources":["../../../../../src/project-config/shared/platform-key-management.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B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AC;AAEH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1D,8HAA8H;IAC9H,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,kBAAkB,CAAC;IACvD,mDAAmD;IACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IACrC,sGAAsG;IACtG,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC5D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,YAAY,CAAC;IACnE,KAAK,EAAE,4BAA4B,CAAC,QAAQ,EAAE;IAC9C,MAAM,EAAE,6BAA6B,CAAC,QAAQ,EAAE;IAChD,cAAc,EAAE,qCAAqC,CAAC,QAAQ,EAAE;IAChE,aAAa,EAAE,oCAAoC,CAAC,QAAQ,EAAE;IAC9D,MAAM,EAAE,6BAA6B,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAGH,qEAAqE;AAErE,uHAAuH;AACvH,MAAM,UAAU,yBAAyB,CAAC,qBAAmE;IAC3G,OAAO,qBAAqB,EAAE,KAAK,EAAE,MAAM,KAAK,oBAAoB,CAAC,IAAI,CAAC;AAC5E,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { BackingServiceSource } from './backing-services.schemas';\n\n/** @wildo_source:part:start platform.config.platform-key-management facet:layer:platform facet:family:infra facet:audience:app-developer */\n/**\n * # Where the platform keeps the keys it holds for applications (#2933)\n *\n * apps-manager is the custodian of every platform-held key (approval seals, signature requests, and the wrapping keys\n * of an application's sealed secrets, #2894). Without this block it\n * seals them under its own key-encryption root (the LOCAL provider). With it, apps-manager also serves the\n * `vault-transit` and `vault-kv` key providers, and an application's key binding may name one of them.\n *\n * This is a PLATFORM-tier declaration, like `platformStorage`: one apps-manager holds one Vault, whatever application\n * an environment file belongs to. It is deliberately not a `backingServices` kind. A backing service is something an\n * application runtime dials, with credentials minted per application; no application runtime ever reaches this Vault,\n * and nothing is minted per application in it.\n *\n * - `{ vault: { source: 'self' } }` — the CLI renders a single-node OpenBao (the MPL-licensed Vault fork, API\n * compatible for everything used) beside apps-manager, in docker compose and in Kubernetes. It unseals itself from a\n * framework-managed key and configures itself on its first start: the Transit and KV mounts, the two least-privilege\n * policies, and the two tokens apps-manager speaks with. Good for development and for a small self-hosted platform;\n * its protection is SOFTWARE, as every Vault's is. Its self-initialization runs only on EMPTY storage, so an OpenBao\n * first started before a policy changed keeps the older policy: one started before #2894 cannot wrap data keys\n * (`transit/encrypt` and `transit/decrypt` answer 403) until the signer policy is written again (`bao policy write`\n * with `vaultSignerPolicy`) or its storage is recreated.\n * - `{ vault: { source: 'managed', address, … } }` — the operator's own Vault or OpenBao. The operator configures the\n * mounts and policies (`vaultSignerPolicy` / `vaultOperatorPolicy` in the key-management contracts) and puts the two\n * tokens in `secrets.json` under `platformKeyVaultManaged`.\n *\n * Absent, apps-manager serves no Vault provider, and a binding that names one is refused PROVIDER_UNAVAILABLE.\n *\n * ## Cloud KMS (#2896)\n *\n * `awsKms`, `googleCloudKms` and `azureKeyVault` make apps-manager serve the `aws-kms`, `google-cloud-kms` and\n * `azure-key-vault` providers: the key is generated inside the vendor's HSM, never leaves it, and the vendor signs. They\n * are always the operator's own account, so they carry no `source`. apps-manager authenticates with its WORKLOAD\n * identity (an IAM role for its service account, GKE workload identity, an Azure managed identity): nothing here is a\n * secret, and `secrets.json` holds nothing for them.\n *\n * Each provider acts as two identities, as Vault does with two tokens. The SIGNER may only read keys, sign, and wrap and\n * unwrap data keys under a wrapping key (#2894); the OPERATOR creates, disables and destroys keys and may never sign, wrap\n * or unwrap. Every wrap is authenticated encryption under a key only the vendor holds. Neither vendor's broad built-in role keeps to that, so\n * grant, per vendor:\n * - AWS: apps-manager's identity may only `sts:AssumeRole` the two roles. Every key apps-manager creates carries the tag\n * `wildo:key-ref`, and the policies are scoped by it:\n * - Signer, on `arn:aws:kms:<region>:<account>:key/*`: `kms:Sign`, `kms:Encrypt` and `kms:Decrypt` only where\n * `aws:ResourceTag/wildo:key-ref` is present (`\"Null\": { … \"false\" }`), so it cannot sign with, or decrypt under,\n * another key in the account; `kms:GetPublicKey` and `kms:DescribeKey` unconditioned (both read-only).\n * - Operator: `kms:CreateKey` and `kms:TagResource` on `\"Resource\": \"*\"` (CreateKey names no key yet), only where\n * `aws:RequestTag/wildo:key-ref` is present and `aws:TagKeys` is exactly `[\"wildo:key-ref\"]`; on `key/*`,\n * `kms:DisableKey` and `kms:ScheduleKeyDeletion` only where `aws:ResourceTag/wildo:key-ref` is present, and\n * `kms:DescribeKey`; never `kms:Sign`, `kms:Encrypt`, `kms:Decrypt` nor `kms:UntagResource`.\n * - The tag is what admits a key to the signer, so whoever may tag may admit: the operator's `kms:TagResource` lets it\n * put `wildo:key-ref` on ANY key in the account, which the signer could then sign with. AWS warns of exactly this\n * (\"Be cautious about giving principals the `kms:TagResource` … permissions\"). Keep the operator role to apps-manager\n * alone, and consider a permissions boundary or SCP denying `kms:TagResource` on keys outside the custodian's.\n * - KMS applies a tag to authorization up to five minutes after it is set, so a NEW version may be refused `kms:Sign`\n * for those minutes: the first ACTIVE version of every new keyring (made at its first signature request), and one\n * made by an emergency rotation. The signature fails as a provider fault and the caller retries it; so does the first\n * wrap under a new wrapping key, which the application's data-key ring asks for again on its own retry.\n * - Google: apps-manager's identity holds `roles/iam.serviceAccountTokenCreator` on the two service accounts only.\n * Signer: `roles/cloudkms.signer`, `roles/cloudkms.cryptoKeyEncrypterDecrypter`, `roles/cloudkms.publicKeyViewer` and\n * `roles/cloudkms.viewer` on the key ring (sign, wrap and unwrap data keys, read the public key, read a version's state). Operator: `roles/cloudkms.admin` on the key ring, which contains no\n * cryptographic operation.\n * - Azure Key Vault (a vault in the Azure RBAC permission model): two user-assigned managed identities on apps-manager,\n * each with a CUSTOM role on the vault. The built-in roles do not fit: \"Key Vault Crypto User\" can update and back up a\n * key, and \"Key Vault Crypto Officer\" holds `vaults/keys/*`, signing included.\n * - Signer: `Microsoft.KeyVault/vaults/keys/read`, `…/keys/versions/read`, `…/keys/sign/action`,\n * `…/keys/encrypt/action`, `…/keys/decrypt/action` (a data key is wrapped with A256GCM under an `oct-HSM` key, which\n * a Premium vault offers in preview; a Standard vault cannot hold one and serves signing only).\n * - Operator: `…/keys/read`, `…/keys/versions/read`, `…/keys/create/action`, `…/keys/update/action` (disable),\n * `…/keys/delete`, `…/keys/purge/action`.\n * The vault's recovery level decides whether a destroyed key is purged at once or kept until retention ends.\n * - Azure Managed HSM (`*.managedhsm.azure.net`): the same two identities, with custom roles in the HSM's LOCAL RBAC\n * (the built-in \"Managed HSM Crypto User\" can sign and back up, and cannot purge). Signer:\n * `Microsoft.KeyVault/managedHsm/keys/read/action`, `…/keys/sign/action`, `…/keys/encrypt/action`, `…/keys/decrypt/action`.\n * Operator: `…/keys/read/action`,\n * `…/keys/create`, `…/keys/write/action`, `…/keys/delete`, `…/keys/deletedKeys/read/action`,\n * `…/keys/deletedKeys/delete` (purge).\n *\n * spec-cite: AWS KMS developer guide, \"Use tags to control access to KMS keys\" (`aws:ResourceTag`, the five-minute\n * delay, limiting `kms:TagResource` with `aws:RequestTag` / `aws:TagKeys`),\n * https://docs.aws.amazon.com/kms/latest/developerguide/tag-authorization.html; AWS KMS permissions reference\n * (`CreateKey`'s resource is `*`), https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html; Azure built-in roles, Security (Key\n * Vault Crypto Officer DataActions `Microsoft.KeyVault/vaults/keys/*`) and Azure permissions, Microsoft.KeyVault (the\n * `vaults/keys/*` data actions), https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/security;\n * Managed HSM local RBAC built-in roles (the data-action table),\n * https://learn.microsoft.com/en-us/azure/key-vault/managed-hsm/built-in-roles.\n *\n * When a provider registers at startup, apps-manager logs the vendor's quota and per-request cost. It also holds its own\n * signing under 80% of the vendor's per-second quota, per process.\n *\n * ## Corroboration\n *\n * Every ten minutes, apps-manager compares, per key version and closed hour, the signatures its signing log records with\n * the ones the vendor's own audit log records, and writes one audit row per provider and hour:\n * - UNACCOUNTED (CRITICAL) the moment the vendor shows more signatures than apps-manager can account for: a key was used\n * outside the custodian, or a signature went unrecorded;\n * - otherwise, once the hour is six hours old (vendor logs arrive late): UNCORROBORATED (the vendor recorded fewer, or its\n * log could not be read) or CORROBORATED.\n * It reads as the OPERATOR identity, which therefore also needs:\n * - AWS: `cloudtrail:LookupEvents` (KMS `Sign` is a CloudTrail management event; nothing to enable).\n * - Google: `roles/logging.privateLogViewer` on the project, and Cloud KMS Data Access audit logs ENABLED (they are off by\n * default, and until they are on, every hour is uncorroborated).\n * - Azure: Log Analytics Reader on the workspace named by `logAnalyticsWorkspaceId`, which the vault's diagnostic setting\n * sends `AuditEvent` to.\n */\nexport const PlatformKeyVaultSelfHostedSchema = z.strictObject({\n source: z.literal(BackingServiceSource.SELF),\n});\n\n/** The operator's own Vault or OpenBao. Mounts and prefix default to the provider defaults (`transit`, `secret`, `wildo-`). */\nexport const PlatformKeyVaultManagedSchema = z.strictObject({\n source: z.literal(BackingServiceSource.MANAGED),\n /** The Vault API address apps-manager dials, e.g. `https://vault.internal:8200`. */\n address: z.url(),\n /** Vault Enterprise namespace (`team/keys/`); absent on open-source Vault and OpenBao's root namespace. */\n namespace: z.string().min(1).optional(),\n transitMount: z.string().min(1).optional(),\n kvMount: z.string().min(1).optional(),\n keyNamePrefix: z.string().min(1).optional(),\n});\n\nexport const PlatformKeyVaultConfigSchema = z.discriminatedUnion('source', [PlatformKeyVaultSelfHostedSchema, PlatformKeyVaultManagedSchema]);\nexport type PlatformKeyVaultConfig = z.infer<typeof PlatformKeyVaultConfigSchema>;\n\n/** The protection level apps-manager creates Google Cloud KMS keys at. */\nexport enum PlatformGoogleKmsKeyProtection {\n /** In Cloud HSM (FIPS 140-2 Level 3): the key's attestation is HARDWARE. */\n HSM = 'HSM',\n /** In Cloud KMS software: the key's attestation is SOFTWARE, and a HARDWARE floor refuses it. */\n SOFTWARE = 'SOFTWARE',\n}\n\n/** AWS KMS in the operator's account. */\nexport const PlatformKeyAwsKmsConfigSchema = z.strictObject({\n region: z.string().regex(/^[a-z]{2}(-[a-z]+)+-\\d$/),\n /** The role apps-manager assumes to read keys and sign. */\n signerRoleArn: z.string().regex(/^arn:aws[a-z-]*:iam::\\d{12}:role\\/.+$/),\n /** The role apps-manager assumes to create, disable and schedule the deletion of keys. */\n operatorRoleArn: z.string().regex(/^arn:aws[a-z-]*:iam::\\d{12}:role\\/.+$/),\n /** A KMS endpoint other than the region's public one (a VPC interface endpoint). */\n endpoint: z.url().optional(),\n});\n\n/** Google Cloud KMS in the operator's project. */\nexport const PlatformKeyGoogleCloudKmsConfigSchema = z.strictObject({\n /** `projects/<project>/locations/<location>/keyRings/<ring>`; created by the operator, since a key ring cannot be deleted. */\n keyRing: z.string().regex(/^projects\\/[^/]+\\/locations\\/[^/]+\\/keyRings\\/[^/]+$/),\n signerServiceAccount: z.email(),\n operatorServiceAccount: z.email(),\n protectionLevel: z.enum(PlatformGoogleKmsKeyProtection).default(PlatformGoogleKmsKeyProtection.HSM),\n});\n\n/** Azure Key Vault (Premium) or Managed HSM in the operator's subscription. */\nexport const PlatformKeyAzureKeyVaultConfigSchema = z.strictObject({\n /** `https://<vault>.vault.azure.net` or `https://<hsm>.managedhsm.azure.net`. */\n vaultUrl: z.url(),\n /** The client id of the signer's user-assigned managed identity. */\n signerClientId: z.uuid(),\n /** The client id of the operator's user-assigned managed identity. */\n operatorClientId: z.uuid(),\n /** HSM-protected keys (`EC-HSM`, a Premium vault or Managed HSM); `false` makes software `EC` keys. */\n hsm: z.boolean().default(true),\n /**\n * The Log Analytics workspace (its GUID) the vault's diagnostic setting sends `AuditEvent` to, in the `AzureDiagnostics`\n * destination mode. apps-manager reads it hourly to corroborate its signatures; absent, no Azure hour is compared.\n */\n logAnalyticsWorkspaceId: z.uuid().optional(),\n});\n\n/**\n * A dedicated HSM reached over PKCS#11 (#2934): Thales Luna, Entrust nShield, AWS CloudHSM, Azure Cloud HSM, an\n * on-premises appliance, or SoftHSM2. apps-manager loads the vendor's PKCS#11 module, logs in to one token with a user PIN\n * (operator-typed in `secrets.json` under `platformKeyPkcs11: { pin }`, never here) and serves the `pkcs11` provider.\n *\n * Protection is read from the token, not declared: a key counts as HARDWARE only when the slot reports a hardware slot\n * AND the token's model is listed in `hardwareTokenModels`, which is your statement that this model is the hardware you\n * run. SoftHSM2 is always SOFTWARE. The binding (`pkcs11js`) is compiled by `pnpm setup:pkcs11`; an apps-manager that\n * cannot load it says so at boot and refuses every signature on this provider.\n */\nexport const PlatformKeyPkcs11ConfigSchema = z.strictObject({\n /** The vendor's PKCS#11 module, as an absolute path in apps-manager's filesystem (e.g. `/usr/lib/softhsm/libsofthsm2.so`). */\n modulePath: z.string().regex(/^\\//, 'an absolute path'),\n /** The token's label, as the module reports it. */\n tokenLabel: z.string().min(1).max(32),\n /** Token models (`CK_TOKEN_INFO.model`) you state are hardware. Empty: every key reports SOFTWARE. */\n hardwareTokenModels: z.array(z.string().min(1)).default([]),\n});\n\nexport const WildoPlatformKeyManagementConfigSchema = z.strictObject({\n vault: PlatformKeyVaultConfigSchema.optional(),\n awsKms: PlatformKeyAwsKmsConfigSchema.optional(),\n googleCloudKms: PlatformKeyGoogleCloudKmsConfigSchema.optional(),\n azureKeyVault: PlatformKeyAzureKeyVaultConfigSchema.optional(),\n pkcs11: PlatformKeyPkcs11ConfigSchema.optional(),\n});\nexport type WildoPlatformKeyManagementConfig = z.infer<typeof WildoPlatformKeyManagementConfigSchema>;\n\n/** @wildo_source:part:end platform.config.platform-key-management */\n\n/** Whether the platform runs its own Vault (OpenBao) in this environment: the one predicate both lanes render from. */\nexport function selfHostsPlatformKeyVault(platformKeyManagement: WildoPlatformKeyManagementConfig | undefined): boolean {\n return platformKeyManagement?.vault?.source === BackingServiceSource.SELF;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"platform-services.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/platform-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;GAMG;AACH,oBAAY,qBAAqB;IAC/B,aAAa,kBAAkB;IAC/B,YAAY,0BAA0B;IACtC,wBAAwB,sCAAsC;IAC9D;;;;OAIG;IACH,eAAe,6BAA6B;CAC7C;AA4BD,eAAO,MAAM,2BAA2B,kGAGyB,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpF;;;;;GAKG;AACH,MAAM,MAAM,kCAAkC,GAC1C,uBAAuB,CAAC,qBAAqB,GAC7C,uBAAuB,CAAC,iCAAiC,GACzD,uBAAuB,CAAC,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,kCAAkC,EAAE,qBAAqB,CAI3G,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,oBAAY,yBAAyB;IACnC,qBAAqB,0BAA0B;IAC/C,iCAAiC,sCAAsC;IACvE,wBAAwB,6BAA6B;CACtD;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;CAIgD,CAAC;AAc3F;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,yBAAyB,GAAG,SAAS,CAGvH;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,qBAAqB,GAAG,SAAS,CAGpH;AAeD,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"platform-services.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/platform-services.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAEzE;;;;;;GAMG;AACH,oBAAY,qBAAqB;IAC/B,aAAa,kBAAkB;IAC/B,YAAY,0BAA0B;IACtC,wBAAwB,sCAAsC;IAC9D;;;;OAIG;IACH,eAAe,6BAA6B;CAC7C;AA4BD,eAAO,MAAM,2BAA2B,kGAGyB,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpF;;;;;GAKG;AACH,MAAM,MAAM,kCAAkC,GAC1C,uBAAuB,CAAC,qBAAqB,GAC7C,uBAAuB,CAAC,iCAAiC,GACzD,uBAAuB,CAAC,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,kCAAkC,EAAE,qBAAqB,CAI3G,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,oBAAY,yBAAyB;IACnC,qBAAqB,0BAA0B;IAC/C,iCAAiC,sCAAsC;IACvE,wBAAwB,6BAA6B;CACtD;AAED;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;CAIgD,CAAC;AAc3F;;;;GAIG;AACH,wBAAgB,gCAAgC,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,yBAAyB,GAAG,SAAS,CAGvH;AAED;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,qBAAqB,GAAG,SAAS,CAGpH;AAeD,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
@@ -1 +1 @@
1
- {"version":3,"file":"platform-storage.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/platform-storage.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gCAAgC;IAC3C,uFAAuF;;kBAEvF,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,sGAAsG;AACtG,wBAAgB,kCAAkC,CAAC,eAAe,EAAE,0BAA0B,GAAG,SAAS,GAAG,MAAM,CAElH"}
1
+ {"version":3,"file":"platform-storage.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/platform-storage.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,gCAAgC;IAC3C,uFAAuF;;kBAEvF,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,sGAAsG;AACtG,wBAAgB,kCAAkC,CAAC,eAAe,EAAE,0BAA0B,GAAG,SAAS,GAAG,MAAM,CAElH"}
@@ -1 +1 @@
1
- {"version":3,"file":"schema-version.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/schema-version.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,aAGpC,CAAC"}
1
+ {"version":3,"file":"schema-version.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/schema-version.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,wBAAwB,aAGpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,oBAAoB,sCAAuC,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,SAAS,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAkB9C,eAAO,MAAM,sBAAsB;;;;;kBAKjC,CAAC;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,8BAA8B;;;;;kBAKzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,gBAAgB,EAC3B,GAAG,EAAE,CAAC,CAAC,aAAa,EACpB,IAAI,GAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAkB,GACjD,IAAI,CA0BN;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,gCAA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MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"service-definitions.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/service-definitions.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,eAAe,EAAE,CAAC;AAE3B,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,oBAAoB,sCAAuC,CAAC;AACzE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE;;;;;;;;;GASG;AACH,eAAO,MAAM,+BAA+B,SAAS,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAkB9C,eAAO,MAAM,sBAAsB;;;;;kBAKjC,CAAC;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,8BAA8B;;;;;kBAKzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,gBAAgB,EAC3B,GAAG,EAAE,CAAC,CAAC,aAAa,EACpB,IAAI,GAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAkB,GACjD,IAAI,CA0BN;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,+BAA+B,OAAO,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AAO,MAAM,YAAY;;kBAEvB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"systems-of-record-env.schemas.d.ts","sourceRoot":"","sources":["../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;IAErC;;;;OAIG;;;IAIH;;;OAGG;;oBAUL,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,yGAAyG;AACzG,eAAO,MAAM,mCAAmC;IAzB5C;;;;OAIG;;;IAIH;;;OAGG;;qBAcqG,CAAC;AAC7G,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
1
+ {"version":3,"file":"systems-of-record-env.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/project-config/shared/systems-of-record-env.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B;IAErC;;;;OAIG;;;IAIH;;;OAGG;;oBAUL,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,yGAAyG;AACzG,eAAO,MAAM,mCAAmC;IAzB5C;;;;OAIG;;;IAIH;;;OAGG;;qBAcqG,CAAC;AAC7G,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"artifact-domain.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,mCAAmC,mCAAoC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;IACrC,yDAAyD;;IAEzD,wCAAwC;;CAEhC,CAAC;AACX,eAAO,MAAM,gCAAgC;;;EAA8C,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,QAAA,MAAM,6BAA6B,uCAAwC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,eAAO,MAAM,yBAAyB;;;;EAAwC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;IAC3C,qEAAqE;;;;;IAErE;;;OAGG;;kBAEH,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
1
+ {"version":3,"file":"artifact-domain.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/artifact-domain.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,mCAAmC,mCAAoC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;IACrC,yDAAyD;;IAEzD,wCAAwC;;CAEhC,CAAC;AACX,eAAO,MAAM,gCAAgC;;;EAA8C,CAAC;AAC5F,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,mCAAmC,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,QAAA,MAAM,6BAA6B,uCAAwC,CAAC;AAE5E,eAAO,MAAM,mBAAmB;;;;CAItB,CAAC;AACX,eAAO,MAAM,yBAAyB;;;;EAAwC,CAAC;AAC/E,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjF;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;IAC3C,qEAAqE;;;;;IAErE;;;OAGG;;kBAEH,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"digest.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/digest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,aAE0C,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -32,4 +32,5 @@ export * from './registry-errors';
32
32
  export * from './registry-section-schemas.constants';
33
33
  export * from './registry-keys.schemas';
34
34
  export * from './local-checkout-source';
35
+ export * from './registry-url-resolution';
35
36
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC"}
@@ -32,4 +32,5 @@ export * from './registry-errors.js';
32
32
  export * from './registry-section-schemas.constants.js';
33
33
  export * from './registry-keys.schemas.js';
34
34
  export * from './local-checkout-source.js';
35
+ export * from './registry-url-resolution.js';
35
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC","sourcesContent":["/**\n * Module-registry subpackage barrel\n * (per `.claude/plans/module-registry-analysis.md`).\n *\n * Surface:\n * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.\n * - `DEFAULT_REGISTRY_SECTION_SCHEMAS` — CLI default lockfile-section map.\n * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /\n * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.\n * - `ModuleManifestSchema` — `wildo.module.json` contract\n * (engine compat, boundaries, dependsOn buckets per KD-12 + KD-13).\n * - `ModuleVersionRecordSchema` — registry-server published-version row.\n * - `Sha256DigestSchema` — single-source digest field used by\n * both lockfile entries and registry-server records.\n * - `RegistryConfigSchema` — `wildo.saas.config.ts > moduleRegistries`.\n * - `RegistryArtifactVisibility` / `RegistryApiKeyScope` /\n * `RegistryDomainAccessPolicy` — access-control vocabulary.\n * - `RegistryError` family — typed-error vocabulary with\n * stable `code` strings.\n *\n * Phase 2+ adds artifact-staging + companion-mutation contracts.\n */\n\nexport * from './digest.schemas';\nexport * from './lockfile-modules-section.schemas';\nexport * from './module-manifest.schemas';\nexport * from './module-search.schemas';\nexport * from './module-artifact.schemas';\nexport * from './artifact-domain.schemas';\nexport * from './registry-config.schemas';\nexport * from './registry-defaults.constants';\nexport * from './registry-errors';\nexport * from './registry-section-schemas.constants';\nexport * from './registry-keys.schemas';\nexport * from './local-checkout-source';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/registry/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC","sourcesContent":["/**\n * Module-registry subpackage barrel\n * (per `.claude/plans/module-registry-analysis.md`).\n *\n * Surface:\n * - `RegistryModulesLockSectionSchema` — `sections.modules` payload.\n * - `DEFAULT_REGISTRY_SECTION_SCHEMAS` — CLI default lockfile-section map.\n * - `DEFAULT_LOCAL_REGISTRY_URL` / `DEFAULT_PUBLIC_REGISTRY_URL` /\n * `DEFAULT_LOCAL_REGISTRY_PORT` / `DEFAULT_REGISTRY_ID`.\n * - `ModuleManifestSchema` — `wildo.module.json` contract\n * (engine compat, boundaries, dependsOn buckets per KD-12 + KD-13).\n * - `ModuleVersionRecordSchema` — registry-server published-version row.\n * - `Sha256DigestSchema` — single-source digest field used by\n * both lockfile entries and registry-server records.\n * - `RegistryConfigSchema` — `wildo.saas.config.ts > moduleRegistries`.\n * - `RegistryArtifactVisibility` / `RegistryApiKeyScope` /\n * `RegistryDomainAccessPolicy` — access-control vocabulary.\n * - `RegistryError` family — typed-error vocabulary with\n * stable `code` strings.\n *\n * Phase 2+ adds artifact-staging + companion-mutation contracts.\n */\n\nexport * from './digest.schemas';\nexport * from './lockfile-modules-section.schemas';\nexport * from './module-manifest.schemas';\nexport * from './module-search.schemas';\nexport * from './module-artifact.schemas';\nexport * from './artifact-domain.schemas';\nexport * from './registry-config.schemas';\nexport * from './registry-defaults.constants';\nexport * from './registry-errors';\nexport * from './registry-section-schemas.constants';\nexport * from './registry-keys.schemas';\nexport * from './local-checkout-source';\nexport * from './registry-url-resolution';\n"]}
@@ -6,9 +6,12 @@
6
6
  * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an
7
7
  * application anywhere else installs them from the public registry (#2024).
8
8
  *
9
- * This file owns only the LAYOUT: which domain the checkout answers for, and where one of its modules
10
- * lives. Reading and staging a module is the CLI's job (`local-checkout-module-source.service.ts`).
9
+ * This file owns the LAYOUT (which domain the checkout answers for, and where one of its modules lives) and
10
+ * READING a module's manifest, which two runtimes need: the CLI's registry commands, and the dev companion,
11
+ * which lists the checkout's providers for an application-creation brief (#2025). STAGING a module is the
12
+ * CLI's job (`local-checkout-module-source.service.ts`).
11
13
  */
14
+ import { type ModuleManifest } from './module-manifest.schemas';
12
15
  /**
13
16
  * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework
14
17
  * checkout the same domain is answered by the checkout itself, so one install spec
@@ -28,4 +31,21 @@ export declare const LOCAL_CHECKOUT_MODULE_ROOTS: Readonly<Record<string, string
28
31
  * (another domain, or a scope with no local root). Never resolves outside its scope root.
29
32
  */
30
33
  export declare function localCheckoutModuleDirectory(frameworkRoot: string, domain: string, moduleId: string): string | undefined;
34
+ /** One module the checkout serves, as `wildo registry search` / `info` and the companion list it. */
35
+ export interface LocalCheckoutModuleListing {
36
+ moduleId: string;
37
+ version: string;
38
+ manifest: ModuleManifest;
39
+ }
40
+ /**
41
+ * Every module the checkout serves whose id contains `query` (case-insensitive), sorted by id. A
42
+ * directory without a manifest is not a module and is skipped; a manifest that does not parse is
43
+ * reported, because silently hiding a broken provider is how it goes unnoticed.
44
+ */
45
+ export declare function listLocalCheckoutModules(frameworkRoot: string, query: string): Promise<LocalCheckoutModuleListing[]>;
46
+ /**
47
+ * The parsed `wildo.module.json` of a checkout module. Refuses, naming the file: a missing manifest (naming
48
+ * `--registry public` for the published module) or one that does not parse.
49
+ */
50
+ export declare function readLocalCheckoutModuleManifest(sourceDir: string, label: string, frameworkRoot: string): Promise<ModuleManifest>;
31
51
  //# sourceMappingURL=local-checkout-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-checkout-source.d.ts","sourceRoot":"","sources":["../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQxH"}
1
+ {"version":3,"file":"local-checkout-source.d.ts","sourceRoot":"","sources":["../../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAA+D,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE7H;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAExE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAQxH;AAED,qGAAqG;AACrG,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,cAAc,CAAC;CAC1B;AAED;;;;GAIG;AACH,wBAAsB,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAyB1H;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAsBtI"}
@@ -6,11 +6,14 @@
6
6
  * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an
7
7
  * application anywhere else installs them from the public registry (#2024).
8
8
  *
9
- * This file owns only the LAYOUT: which domain the checkout answers for, and where one of its modules
10
- * lives. Reading and staging a module is the CLI's job (`local-checkout-module-source.service.ts`).
9
+ * This file owns the LAYOUT (which domain the checkout answers for, and where one of its modules lives) and
10
+ * READING a module's manifest, which two runtimes need: the CLI's registry commands, and the dev companion,
11
+ * which lists the checkout's providers for an application-creation brief (#2025). STAGING a module is the
12
+ * CLI's job (`local-checkout-module-source.service.ts`).
11
13
  */
14
+ import { promises as fs } from 'node:fs';
12
15
  import * as path from 'node:path';
13
- import { isModuleId } from './module-manifest.schemas.js';
16
+ import { isModuleId, MODULE_MANIFEST_FILE_NAME, ModuleManifestSchema } from './module-manifest.schemas.js';
14
17
  /**
15
18
  * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework
16
19
  * checkout the same domain is answered by the checkout itself, so one install spec
@@ -42,4 +45,64 @@ export function localCheckoutModuleDirectory(frameworkRoot, domain, moduleId) {
42
45
  const directory = path.resolve(scopeRoot, name);
43
46
  return directory.startsWith(scopeRoot + path.sep) ? directory : undefined;
44
47
  }
48
+ /**
49
+ * Every module the checkout serves whose id contains `query` (case-insensitive), sorted by id. A
50
+ * directory without a manifest is not a module and is skipped; a manifest that does not parse is
51
+ * reported, because silently hiding a broken provider is how it goes unnoticed.
52
+ */
53
+ export async function listLocalCheckoutModules(frameworkRoot, query) {
54
+ const listings = [];
55
+ for (const [scope, rootName] of Object.entries(LOCAL_CHECKOUT_MODULE_ROOTS)) {
56
+ let names;
57
+ try {
58
+ names = (await fs.readdir(path.join(frameworkRoot, rootName), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);
59
+ }
60
+ catch (error) {
61
+ if (error.code === 'ENOENT')
62
+ continue;
63
+ throw error;
64
+ }
65
+ for (const name of names) {
66
+ const moduleId = `${scope}/${name}`;
67
+ if (!moduleId.toLowerCase().includes(query.toLowerCase()))
68
+ continue;
69
+ const sourceDir = localCheckoutModuleDirectory(frameworkRoot, WILDO_REGISTRY_DOMAIN, moduleId);
70
+ if (sourceDir === undefined)
71
+ continue;
72
+ try {
73
+ await fs.access(path.join(sourceDir, MODULE_MANIFEST_FILE_NAME));
74
+ }
75
+ catch {
76
+ continue;
77
+ }
78
+ const manifest = await readLocalCheckoutModuleManifest(sourceDir, `${WILDO_REGISTRY_DOMAIN}/${moduleId}`, frameworkRoot);
79
+ listings.push({ moduleId, version: manifest.version, manifest });
80
+ }
81
+ }
82
+ return listings.sort((a, b) => a.moduleId.localeCompare(b.moduleId));
83
+ }
84
+ /**
85
+ * The parsed `wildo.module.json` of a checkout module. Refuses, naming the file: a missing manifest (naming
86
+ * `--registry public` for the published module) or one that does not parse.
87
+ */
88
+ export async function readLocalCheckoutModuleManifest(sourceDir, label, frameworkRoot) {
89
+ const manifestPath = path.join(sourceDir, MODULE_MANIFEST_FILE_NAME);
90
+ let raw;
91
+ try {
92
+ raw = await fs.readFile(manifestPath, 'utf8');
93
+ }
94
+ catch (error) {
95
+ if (error.code === 'ENOENT') {
96
+ throw new Error(`The framework checkout has no module "${label}" (${path.relative(frameworkRoot, manifestPath)} does not exist). `
97
+ + 'Pass `--registry public` to install a published module instead.');
98
+ }
99
+ throw error;
100
+ }
101
+ const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));
102
+ if (!parsed.success) {
103
+ throw new Error(`${path.relative(frameworkRoot, manifestPath)} is not a valid module manifest: `
104
+ + parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; '));
105
+ }
106
+ return parsed.data;
107
+ }
45
108
  //# sourceMappingURL=local-checkout-source.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-checkout-source.js","sourceRoot":"","sources":["../../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,OAAO,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAqC;IAC3E,SAAS,EAAE,oBAAoB;CAChC,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,4BAA4B,CAAC,aAAqB,EAAE,MAAc,EAAE,QAAgB;IAClG,IAAI,MAAM,KAAK,qBAAqB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAChF,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAqB,CAAC;IAC9D,MAAM,QAAQ,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;IACpD,IAAI,QAAQ,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAChD,OAAO,SAAS,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;AAC5E,CAAC","sourcesContent":["/**\n * Local-checkout source for registry modules (#2015, epic #2012).\n *\n * Paul, 2026-09-29: in framework development the registry is fetched LOCALLY, from the checkout, with no\n * server and no publish step. Wildo's own providers are authored in the monorepo under\n * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an\n * application anywhere else installs them from the public registry (#2024).\n *\n * This file owns only the LAYOUT: which domain the checkout answers for, and where one of its modules\n * lives. Reading and staging a module is the CLI's job (`local-checkout-module-source.service.ts`).\n */\n\nimport * as path from 'node:path';\nimport { isModuleId } from './module-manifest.schemas';\n\n/**\n * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework\n * checkout the same domain is answered by the checkout itself, so one install spec\n * (`wildo/providers/asana`) means the same module in both places.\n */\nexport const WILDO_REGISTRY_DOMAIN = 'wildo';\n\n/**\n * Where each module-id SCOPE of the `wildo` domain is authored in the framework checkout.\n *\n * A module `<scope>/<name>` lives at `<frameworkRoot>/<root>/<name>/`, holding its `wildo.module.json` and\n * the content of its single boundary directory: for a provider (`providers/<ref>`) that is one folder per\n * facet (`backend/`, `frontend/`). A scope absent from this table has no local source.\n */\nexport const LOCAL_CHECKOUT_MODULE_ROOTS: Readonly<Record<string, string>> = {\n providers: 'providers-registry',\n};\n\n/**\n * The checkout directory of `<domain>/<moduleId>`, or `undefined` when the checkout does not author it\n * (another domain, or a scope with no local root). Never resolves outside its scope root.\n */\nexport function localCheckoutModuleDirectory(frameworkRoot: string, domain: string, moduleId: string): string | undefined {\n if (domain !== WILDO_REGISTRY_DOMAIN || !isModuleId(moduleId)) return undefined;\n const [scope, name] = moduleId.split('/') as [string, string];\n const rootName = LOCAL_CHECKOUT_MODULE_ROOTS[scope];\n if (rootName === undefined) return undefined;\n const scopeRoot = path.resolve(frameworkRoot, rootName);\n const directory = path.resolve(scopeRoot, name);\n return directory.startsWith(scopeRoot + path.sep) ? directory : undefined;\n}\n"]}
1
+ {"version":3,"file":"local-checkout-source.js","sourceRoot":"","sources":["../../../../src/registry/local-checkout-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,yBAAyB,EAAE,oBAAoB,EAAuB,MAAM,2BAA2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,CAAC;AACvE,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B,CAAC,SAAiB,EAAE,KAAa,EAAE,aAAqB;IAC3G,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;IACrE,IAAI,GAAW,CAAC;IAChB,IAAI,CAAC;QACH,GAAG,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAK,KAA+B,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACvD,MAAM,IAAI,KAAK,CACb,yCAAyC,KAAK,MAAM,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,oBAAoB;kBAC9G,iEAAiE,CACtE,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;IACD,MAAM,MAAM,GAAG,oBAAoB,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/D,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,GAAG,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,YAAY,CAAC,mCAAmC;cAC5E,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,QAAQ,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAC3G,CAAC;IACJ,CAAC;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;AACrB,CAAC","sourcesContent":["/**\n * Local-checkout source for registry modules (#2015, epic #2012).\n *\n * Paul, 2026-09-29: in framework development the registry is fetched LOCALLY, from the checkout, with no\n * server and no publish step. Wildo's own providers are authored in the monorepo under\n * `providers-registry/<ref>/`; a dogfood application inside the checkout installs them from there, and an\n * application anywhere else installs them from the public registry (#2024).\n *\n * This file owns the LAYOUT (which domain the checkout answers for, and where one of its modules lives) and\n * READING a module's manifest, which two runtimes need: the CLI's registry commands, and the dev companion,\n * which lists the checkout's providers for an application-creation brief (#2025). STAGING a module is the\n * CLI's job (`local-checkout-module-source.service.ts`).\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { isModuleId, MODULE_MANIFEST_FILE_NAME, ModuleManifestSchema, type ModuleManifest } from './module-manifest.schemas';\n\n/**\n * The registry domain Wildo publishes its own modules under, on `registry.wildo.ai`. Inside a framework\n * checkout the same domain is answered by the checkout itself, so one install spec\n * (`wildo/providers/asana`) means the same module in both places.\n */\nexport const WILDO_REGISTRY_DOMAIN = 'wildo';\n\n/**\n * Where each module-id SCOPE of the `wildo` domain is authored in the framework checkout.\n *\n * A module `<scope>/<name>` lives at `<frameworkRoot>/<root>/<name>/`, holding its `wildo.module.json` and\n * the content of its single boundary directory: for a provider (`providers/<ref>`) that is one folder per\n * facet (`backend/`, `frontend/`). A scope absent from this table has no local source.\n */\nexport const LOCAL_CHECKOUT_MODULE_ROOTS: Readonly<Record<string, string>> = {\n providers: 'providers-registry',\n};\n\n/**\n * The checkout directory of `<domain>/<moduleId>`, or `undefined` when the checkout does not author it\n * (another domain, or a scope with no local root). Never resolves outside its scope root.\n */\nexport function localCheckoutModuleDirectory(frameworkRoot: string, domain: string, moduleId: string): string | undefined {\n if (domain !== WILDO_REGISTRY_DOMAIN || !isModuleId(moduleId)) return undefined;\n const [scope, name] = moduleId.split('/') as [string, string];\n const rootName = LOCAL_CHECKOUT_MODULE_ROOTS[scope];\n if (rootName === undefined) return undefined;\n const scopeRoot = path.resolve(frameworkRoot, rootName);\n const directory = path.resolve(scopeRoot, name);\n return directory.startsWith(scopeRoot + path.sep) ? directory : undefined;\n}\n\n/** One module the checkout serves, as `wildo registry search` / `info` and the companion list it. */\nexport interface LocalCheckoutModuleListing {\n moduleId: string;\n version: string;\n manifest: ModuleManifest;\n}\n\n/**\n * Every module the checkout serves whose id contains `query` (case-insensitive), sorted by id. A\n * directory without a manifest is not a module and is skipped; a manifest that does not parse is\n * reported, because silently hiding a broken provider is how it goes unnoticed.\n */\nexport async function listLocalCheckoutModules(frameworkRoot: string, query: string): Promise<LocalCheckoutModuleListing[]> {\n const listings: LocalCheckoutModuleListing[] = [];\n for (const [scope, rootName] of Object.entries(LOCAL_CHECKOUT_MODULE_ROOTS)) {\n let names: string[];\n try {\n names = (await fs.readdir(path.join(frameworkRoot, rootName), { withFileTypes: true })).filter((d) => d.isDirectory()).map((d) => d.name);\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') continue;\n throw error;\n }\n for (const name of names) {\n const moduleId = `${scope}/${name}`;\n if (!moduleId.toLowerCase().includes(query.toLowerCase())) continue;\n const sourceDir = localCheckoutModuleDirectory(frameworkRoot, WILDO_REGISTRY_DOMAIN, moduleId);\n if (sourceDir === undefined) continue;\n try {\n await fs.access(path.join(sourceDir, MODULE_MANIFEST_FILE_NAME));\n } catch {\n continue;\n }\n const manifest = await readLocalCheckoutModuleManifest(sourceDir, `${WILDO_REGISTRY_DOMAIN}/${moduleId}`, frameworkRoot);\n listings.push({ moduleId, version: manifest.version, manifest });\n }\n }\n return listings.sort((a, b) => a.moduleId.localeCompare(b.moduleId));\n}\n\n/**\n * The parsed `wildo.module.json` of a checkout module. Refuses, naming the file: a missing manifest (naming\n * `--registry public` for the published module) or one that does not parse.\n */\nexport async function readLocalCheckoutModuleManifest(sourceDir: string, label: string, frameworkRoot: string): Promise<ModuleManifest> {\n const manifestPath = path.join(sourceDir, MODULE_MANIFEST_FILE_NAME);\n let raw: string;\n try {\n raw = await fs.readFile(manifestPath, 'utf8');\n } catch (error) {\n if ((error as NodeJS.ErrnoException).code === 'ENOENT') {\n throw new Error(\n `The framework checkout has no module \"${label}\" (${path.relative(frameworkRoot, manifestPath)} does not exist). `\n + 'Pass `--registry public` to install a published module instead.',\n );\n }\n throw error;\n }\n const parsed = ModuleManifestSchema.safeParse(JSON.parse(raw));\n if (!parsed.success) {\n throw new Error(\n `${path.relative(frameworkRoot, manifestPath)} is not a valid module manifest: `\n + parsed.error.issues.map((issue) => `${issue.path.join('.') || '(root)'}: ${issue.message}`).join('; '),\n );\n }\n return parsed.data;\n}\n"]}
@@ -139,6 +139,11 @@ export declare const RegistryModulesLockEntrySchema: z.ZodObject<{
139
139
  serviceKey: z.ZodString;
140
140
  path: z.ZodString;
141
141
  }, z.core.$strict>>;
142
+ augments: z.ZodOptional<z.ZodString>;
143
+ vendorPins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
144
+ heldVendorPins: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
+ onlyBuiltDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
146
+ heldOnlyBuiltDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
147
  }, z.core.$strict>>;
143
148
  }, z.core.$strict>>;
144
149
  }, z.core.$strict>;
@@ -259,6 +264,11 @@ export declare const RegistryModulesLockSectionSchema: z.ZodObject<{
259
264
  serviceKey: z.ZodString;
260
265
  path: z.ZodString;
261
266
  }, z.core.$strict>>;
267
+ augments: z.ZodOptional<z.ZodString>;
268
+ vendorPins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
269
+ heldVendorPins: z.ZodOptional<z.ZodArray<z.ZodString>>;
270
+ onlyBuiltDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
271
+ heldOnlyBuiltDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
262
272
  }, z.core.$strict>>;
263
273
  }, z.core.$strict>>;
264
274
  }, z.core.$strict>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;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AAK,EAAE,wBAAwB,GAAG,6BAA6B,CAKxG;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;QAnI3C,oEAAoE;;QAEpE,uFAAuF;;QAEvF,sFAAsF;;QAEtF,uFAAuF;;QAEvF,uFAAuF;;QAEvF,mGAAmG;;QAEnG,uDAAuD;;QAEvD,gDAAgD;;QAEhD,oEAAoE;;QAEpE;;;;;WAKG;;QAEH,sDAAsD;;QAEtD;;;;;;;;;WASG;;QAIH;;;;;;;;;;;;;;;WAeG;;QAEH,oDAAoD;;;;;;QAEpD;;;;WAIG;;;;;;;;;;;;;;;;;;;;kBA2EJ,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
1
+ {"version":3,"file":"lockfile-modules-section.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/lockfile-modules-section.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;GAKG;AACH,eAAO,MAAM,kCAAkC;;;;EAAyC,CAAC;AACzF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F;;;;GAIG;AACH,oBAAY,kBAAkB;IAC5B;;;;OAIG;IACH,QAAQ,aAAa;IACrB;;;;;OAKG;IACH,cAAc,mBAAmB;CAClC;AAKD;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B;IACzC,oEAAoE;;IAEpE,uFAAuF;;IAEvF,sFAAsF;;IAEtF,uFAAuF;;IAEvF,uFAAuF;;IAEvF,mGAAmG;;IAEnG,uDAAuD;;IAEvD,gDAAgD;;IAEhD,oEAAoE;;IAEpE;;;;;OAKG;;IAEH,sDAAsD;;IAEtD;;;;;;;;;OASG;;IAIH;;;;;;;;;;;;;;;OAeG;;IAEH,oDAAoD;;;;;;IAEpD;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;kBAgBH,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAE3F,0CAA0C;AAC1C,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,gDAAgD;AAChD,MAAM,WAAW,6BAA6B;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wBAAwB,GAAG,wBAAwB,CAQ9F;AAED,sGAAsG;AACtG,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,wBAAwB,GAAG,6BAA6B,CAKxG;AAED;;;;;;GAMG;AACH,eAAO,MAAM,gCAAgC;;QAnI3C,oEAAoE;;QAEpE,uFAAuF;;QAEvF,sFAAsF;;QAEtF,uFAAuF;;QAEvF,uFAAuF;;QAEvF,mGAAmG;;QAEnG,uDAAuD;;QAEvD,gDAAgD;;QAEhD,oEAAoE;;QAEpE;;;;;WAKG;;QAEH,sDAAsD;;QAEtD;;;;;;;;;WASG;;QAIH;;;;;;;;;;;;;;;WAeG;;QAEH,oDAAoD;;;;;;QAEpD;;;;WAIG;;;;;;;;;;;;;;;;;;;;;;;;;kBA2EJ,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -42,11 +42,28 @@ export declare const ModuleVersionRecordSchema: z.ZodObject<{
42
42
  }, z.core.$strict>>;
43
43
  }, z.core.$strict>;
44
44
  maturity: z.ZodEnum<typeof import("./module-manifest.schemas").ProviderModuleMaturity>;
45
+ proof: z.ZodOptional<z.ZodObject<{
46
+ issue: z.ZodNumber;
47
+ provenAt: z.ZodISODate;
48
+ operations: z.ZodArray<z.ZodString>;
49
+ }, z.core.$strict>>;
50
+ openApi: z.ZodOptional<z.ZodObject<{
51
+ url: z.ZodURL;
52
+ revision: z.ZodString;
53
+ deviations: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ operationId: z.ZodString;
55
+ finding: z.ZodEnum<typeof import("./module-manifest.schemas").ProviderOpenApiFindingKind>;
56
+ subject: z.ZodOptional<z.ZodString>;
57
+ reason: z.ZodString;
58
+ }, z.core.$strict>>>;
59
+ }, z.core.$strict>>;
45
60
  seed: z.ZodOptional<z.ZodObject<{
46
61
  source: z.ZodEnum<typeof import("@wildo-ai/saas-models").ProviderCatalogueSource>;
47
62
  sourceRef: z.ZodString;
48
63
  sourceVersion: z.ZodString;
49
64
  }, z.core.$strip>>;
65
+ augments: z.ZodOptional<z.ZodString>;
66
+ skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
50
67
  }, z.core.$strict>>;
51
68
  description: z.ZodOptional<z.ZodString>;
52
69
  longDescription: z.ZodOptional<z.ZodString>;
@@ -67,6 +84,7 @@ export declare const ModuleVersionRecordSchema: z.ZodObject<{
67
84
  npm: z.ZodDefault<z.ZodObject<{
68
85
  dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
69
86
  peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
87
+ onlyBuiltDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
88
  }, z.core.$strict>>;
71
89
  capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
72
90
  }, z.core.$strict>>;
@@ -86,6 +104,11 @@ export declare const ModuleVersionRecordSchema: z.ZodObject<{
86
104
  serviceKey: z.ZodString;
87
105
  path: z.ZodString;
88
106
  }, z.core.$strict>>;
107
+ augments: z.ZodOptional<z.ZodString>;
108
+ vendorPins: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
109
+ heldVendorPins: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
+ onlyBuiltDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ heldOnlyBuiltDependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
112
  }, z.core.$strict>>;
90
113
  }, z.core.$strict>>;
91
114
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpC,iEAAiE;;IAEjE,4DAA4D;;IAE5D,gEAAgE;;;IAGhE;;;;;;;OAOG;;IAEH,6EAA6E;;;IAG7E;;;;OAIG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,sBAAsB,CAAC;AAC7D,eAAO,MAAM,2BAA2B,wBAAwB,CAAC;AAEjE,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,4BAA4B;;;;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