@wildo-ai/platform-config-lib 1.1.10 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/_unimplemented/soft-warn.d.ts +24 -49
- package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -1
- package/dist/esm/_unimplemented/soft-warn.js +24 -49
- package/dist/esm/_unimplemented/soft-warn.js.map +1 -1
- package/dist/esm/blueprint/anchored-region.d.ts +83 -0
- package/dist/esm/blueprint/anchored-region.d.ts.map +1 -0
- package/dist/esm/blueprint/anchored-region.js +263 -0
- package/dist/esm/blueprint/anchored-region.js.map +1 -0
- package/dist/esm/blueprint/blueprint.schemas.d.ts +600 -0
- package/dist/esm/blueprint/blueprint.schemas.d.ts.map +1 -0
- package/dist/esm/blueprint/blueprint.schemas.js +638 -0
- package/dist/esm/blueprint/blueprint.schemas.js.map +1 -0
- package/dist/esm/bootstrap/application-backend-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts +13 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js +6 -0
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +29 -4
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +29 -4
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +131 -2
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +139 -2
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts +21 -0
- package/dist/esm/bootstrap/platform-store-preconnect.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-store-preconnect.js +25 -0
- package/dist/esm/bootstrap/platform-store-preconnect.js.map +1 -1
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts +80 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js +81 -0
- package/dist/esm/bootstrap/postgresql-owed-grants.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +41 -9
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.js +77 -28
- package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.d.ts +117 -12
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-policy.js +222 -23
- package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.d.ts +31 -4
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-network-topology.js +43 -2
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -1
- package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +40 -2
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-principal.contracts.js +66 -3
- package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-response-integrity.d.ts +249 -0
- package/dist/esm/bootstrap/runtime-response-integrity.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-response-integrity.js +353 -0
- package/dist/esm/bootstrap/runtime-response-integrity.js.map +1 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts +32 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js +43 -0
- package/dist/esm/bootstrap/runtime-secret-env.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/bootstrap/wildo-owner-organization.contracts.js.map +1 -1
- package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts +51 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.d.ts.map +1 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.js +231 -0
- package/dist/esm/canonical-json/rfc8785-canonical-json.js.map +1 -0
- package/dist/esm/config-authoring.entry.js.map +1 -1
- package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
- package/dist/esm/credentials/credential-generator.service.js.map +1 -1
- package/dist/esm/index.d.ts +20 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +20 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts +119 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.js +109 -0
- package/dist/esm/key-management/application-legacy-envelope-key.contracts.js.map +1 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts +182 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.js +145 -0
- package/dist/esm/key-management/application-signing-key-rotation.contracts.js.map +1 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.d.ts +156 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.js +617 -0
- package/dist/esm/key-management/approval-seal-manifested-copy.js.map +1 -0
- package/dist/esm/key-management/approval-seal-verifier.d.ts +278 -0
- package/dist/esm/key-management/approval-seal-verifier.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal-verifier.js +355 -0
- package/dist/esm/key-management/approval-seal-verifier.js.map +1 -0
- package/dist/esm/key-management/approval-seal.contracts.d.ts +128 -0
- package/dist/esm/key-management/approval-seal.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/approval-seal.contracts.js +135 -0
- package/dist/esm/key-management/approval-seal.contracts.js.map +1 -0
- package/dist/esm/key-management/data-key.contracts.d.ts +106 -0
- package/dist/esm/key-management/data-key.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/data-key.contracts.js +54 -0
- package/dist/esm/key-management/data-key.contracts.js.map +1 -0
- package/dist/esm/key-management/es256-jws.d.ts +60 -0
- package/dist/esm/key-management/es256-jws.d.ts.map +1 -0
- package/dist/esm/key-management/es256-jws.js +135 -0
- package/dist/esm/key-management/es256-jws.js.map +1 -0
- package/dist/esm/key-management/key-provider.spi.d.ts +158 -0
- package/dist/esm/key-management/key-provider.spi.d.ts.map +1 -0
- package/dist/esm/key-management/key-provider.spi.js +38 -0
- package/dist/esm/key-management/key-provider.spi.js.map +1 -0
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts +83 -0
- package/dist/esm/key-management/keyring-rotation.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/keyring-rotation.contracts.js +101 -0
- package/dist/esm/key-management/keyring-rotation.contracts.js.map +1 -0
- package/dist/esm/key-management/keyring-status.contracts.d.ts +59 -0
- package/dist/esm/key-management/keyring-status.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/keyring-status.contracts.js +45 -0
- package/dist/esm/key-management/keyring-status.contracts.js.map +1 -0
- package/dist/esm/key-management/pdf-incremental-update.d.ts +158 -0
- package/dist/esm/key-management/pdf-incremental-update.d.ts.map +1 -0
- package/dist/esm/key-management/pdf-incremental-update.js +730 -0
- package/dist/esm/key-management/pdf-incremental-update.js.map +1 -0
- package/dist/esm/key-management/pdf-truetype-font.d.ts +35 -0
- package/dist/esm/key-management/pdf-truetype-font.d.ts.map +1 -0
- package/dist/esm/key-management/pdf-truetype-font.js +152 -0
- package/dist/esm/key-management/pdf-truetype-font.js.map +1 -0
- package/dist/esm/key-management/qr-code.d.ts +38 -0
- package/dist/esm/key-management/qr-code.d.ts.map +1 -0
- package/dist/esm/key-management/qr-code.js +325 -0
- package/dist/esm/key-management/qr-code.js.map +1 -0
- package/dist/esm/key-management/signature-request.contracts.d.ts +91 -0
- package/dist/esm/key-management/signature-request.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/signature-request.contracts.js +96 -0
- package/dist/esm/key-management/signature-request.contracts.js.map +1 -0
- package/dist/esm/key-management/signing-log-export.contracts.d.ts +215 -0
- package/dist/esm/key-management/signing-log-export.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/signing-log-export.contracts.js +268 -0
- package/dist/esm/key-management/signing-log-export.contracts.js.map +1 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts +98 -0
- package/dist/esm/key-management/vault-custody.contracts.d.ts.map +1 -0
- package/dist/esm/key-management/vault-custody.contracts.js +154 -0
- package/dist/esm/key-management/vault-custody.contracts.js.map +1 -0
- package/dist/esm/lockfile/build-parallelism.d.ts.map +1 -1
- package/dist/esm/lockfile/build-parallelism.js.map +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts.map +1 -1
- package/dist/esm/lockfile/canonical-json.js +1 -1
- package/dist/esm/lockfile/canonical-json.js.map +1 -1
- package/dist/esm/lockfile/file-lock-hold.d.ts.map +1 -1
- package/dist/esm/lockfile/file-lock-hold.js +2 -1
- package/dist/esm/lockfile/file-lock-hold.js.map +1 -1
- package/dist/esm/lockfile/lockfile-io.d.ts +13 -17
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -1
- package/dist/esm/lockfile/lockfile-io.js +29 -30
- package/dist/esm/lockfile/lockfile-io.js.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.d.ts +22 -20
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -1
- package/dist/esm/lockfile/materialize-infra-section.js +13 -14
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +27 -249
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -1
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +28 -3
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -1
- package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts +146 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.d.ts.map +1 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.js +573 -0
- package/dist/esm/pnpm-settings/application-pnpm-settings.js.map +1 -0
- package/dist/esm/project-config/application-public-pricing-catalog.loader.d.ts.map +1 -1
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js +22 -3
- package/dist/esm/project-config/application-public-pricing-catalog.loader.js.map +1 -1
- package/dist/esm/project-config/application-served-public-documents.loader.d.ts +26 -0
- package/dist/esm/project-config/application-served-public-documents.loader.d.ts.map +1 -0
- package/dist/esm/project-config/application-served-public-documents.loader.js +86 -0
- package/dist/esm/project-config/application-served-public-documents.loader.js.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.reader.d.ts +35 -0
- package/dist/esm/project-config/backend-compliance-section.reader.d.ts.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.reader.js +123 -0
- package/dist/esm/project-config/backend-compliance-section.reader.js.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.worker.d.ts +20 -0
- package/dist/esm/project-config/backend-compliance-section.worker.d.ts.map +1 -0
- package/dist/esm/project-config/backend-compliance-section.worker.js +78 -0
- package/dist/esm/project-config/backend-compliance-section.worker.js.map +1 -0
- package/dist/esm/project-config/config-module-resolution.d.ts +32 -0
- package/dist/esm/project-config/config-module-resolution.d.ts.map +1 -0
- package/dist/esm/project-config/config-module-resolution.js +33 -0
- package/dist/esm/project-config/config-module-resolution.js.map +1 -0
- package/dist/esm/project-config/define-framework-config.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +344 -69
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.js +194 -143
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/define-minion-config.d.ts +26 -36
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-minion-config.js +64 -25
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +82 -348
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +262 -103
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts +10 -20
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-worker-config.js +10 -12
- package/dist/esm/project-config/define-worker-config.js.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.d.ts.map +1 -1
- package/dist/esm/project-config/hosted-infra-env-config.js +4 -1
- package/dist/esm/project-config/hosted-infra-env-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts +5 -0
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +5 -0
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader-instances-zod.d.ts +19 -0
- package/dist/esm/project-config/loader-instances-zod.d.ts.map +1 -0
- package/dist/esm/project-config/loader-instances-zod.js +40 -0
- package/dist/esm/project-config/loader-instances-zod.js.map +1 -0
- package/dist/esm/project-config/loader.d.ts +131 -14
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +226 -12
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/minion-liveness.contracts.d.ts +131 -0
- package/dist/esm/project-config/minion-liveness.contracts.d.ts.map +1 -0
- package/dist/esm/project-config/minion-liveness.contracts.js +167 -0
- package/dist/esm/project-config/minion-liveness.contracts.js.map +1 -0
- package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -1
- package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -1
- package/dist/esm/project-config/npm-version-range.d.ts.map +1 -1
- package/dist/esm/project-config/npm-version-range.js +39 -16
- package/dist/esm/project-config/npm-version-range.js.map +1 -1
- package/dist/esm/project-config/owning-package-tsconfig.d.ts +15 -0
- package/dist/esm/project-config/owning-package-tsconfig.d.ts.map +1 -0
- package/dist/esm/project-config/owning-package-tsconfig.js +29 -0
- package/dist/esm/project-config/owning-package-tsconfig.js.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.js.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.d.ts +4 -4
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -1
- package/dist/esm/project-config/provider-companion-discovery.js +16 -10
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +103 -49
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -1
- package/dist/esm/project-config/provider-runtime-artifacts.js +216 -16
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +0 -2
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts +0 -17
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/backing-service-servability.js.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +9 -10
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +13 -15
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.d.ts +0 -51
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.d.ts +36 -9
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-defaults.js +54 -11
- package/dist/esm/project-config/shared/csp-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.d.ts +60 -13
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp-emit.js +77 -24
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.d.ts +72 -85
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/csp.schemas.js +40 -13
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.d.ts +0 -8
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.d.ts.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +101 -8
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +128 -9
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +10 -4
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +2 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js +4 -1
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +24 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -1
- package/dist/esm/project-config/shared/minion-resource-access.validation.js +25 -2
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -1
- package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -1
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts +276 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.js +296 -0
- package/dist/esm/project-config/shared/platform-key-management.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts +2 -2
- package/dist/esm/project-config/shared/platform-storage.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-storage.schemas.js +16 -2
- package/dist/esm/project-config/shared/platform-storage.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +21 -23
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.js +4 -5
- package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts +0 -18
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/systems-of-record-env.schemas.js.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.d.ts +20 -3
- package/dist/esm/project-config/static-asset-import-noop.d.ts.map +1 -1
- package/dist/esm/project-config/static-asset-import-noop.js +36 -20
- package/dist/esm/project-config/static-asset-import-noop.js.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts +0 -5
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.js.map +1 -1
- package/dist/esm/registry/digest.schemas.js.map +1 -1
- package/dist/esm/registry/index.d.ts +3 -3
- package/dist/esm/registry/index.d.ts.map +1 -1
- package/dist/esm/registry/index.js +3 -3
- package/dist/esm/registry/index.js.map +1 -1
- package/dist/esm/registry/local-checkout-source.d.ts +22 -2
- package/dist/esm/registry/local-checkout-source.d.ts.map +1 -1
- package/dist/esm/registry/local-checkout-source.js +66 -3
- package/dist/esm/registry/local-checkout-source.js.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +11 -98
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -1
- package/dist/esm/registry/lockfile-modules-section.schemas.js +1 -2
- package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.d.ts +40 -17
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-artifact.schemas.js.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.d.ts +324 -74
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-manifest.schemas.js +377 -19
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -1
- package/dist/esm/registry/module-search.schemas.d.ts +2 -0
- package/dist/esm/registry/module-search.schemas.d.ts.map +1 -1
- package/dist/esm/registry/module-search.schemas.js +14 -1
- package/dist/esm/registry/module-search.schemas.js.map +1 -1
- package/dist/esm/registry/registry-config.schemas.d.ts +0 -18
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -1
- package/dist/esm/registry/registry-config.schemas.js.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-defaults.constants.js.map +1 -1
- package/dist/esm/registry/registry-errors.d.ts +103 -5
- package/dist/esm/registry/registry-errors.d.ts.map +1 -1
- package/dist/esm/registry/registry-errors.js +213 -6
- package/dist/esm/registry/registry-errors.js.map +1 -1
- package/dist/esm/registry/registry-keys.schemas.js.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.d.ts +5 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -1
- package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -1
- package/dist/esm/registry/registry-url-resolution.d.ts +72 -0
- package/dist/esm/registry/registry-url-resolution.d.ts.map +1 -0
- package/dist/esm/registry/registry-url-resolution.js +157 -0
- package/dist/esm/registry/registry-url-resolution.js.map +1 -0
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +48 -0
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js +53 -0
- package/dist/esm/schemas/framework-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.d.ts +1 -1
- package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts +2 -2
- package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -1
- package/dist/esm/workspace-scope/index.js.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +12 -12
- package/dist/esm/_unimplemented/index.d.ts +0 -3
- package/dist/esm/_unimplemented/index.d.ts.map +0 -1
- package/dist/esm/_unimplemented/index.js +0 -3
- package/dist/esm/_unimplemented/index.js.map +0 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +0 -137
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +0 -1
- package/dist/esm/_unimplemented/unimplemented-field-warning.js +0 -153
- package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +0 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts +0 -14
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +0 -1
- package/dist/esm/project-config/shared/cdn.example.js +0 -38
- package/dist/esm/project-config/shared/cdn.example.js.map +0 -1
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts +0 -15
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +0 -1
- package/dist/esm/project-config/shared/schema-version.schemas.js +0 -40
- package/dist/esm/project-config/shared/schema-version.schemas.js.map +0 -1
|
@@ -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
|
|
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":["
|
|
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"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which registry a command talks to, and whether it may (#1764).
|
|
3
|
+
*
|
|
4
|
+
* Translates a `--registry <id-or-url>` flag (or the absence thereof)
|
|
5
|
+
* to a concrete registry HTTP origin. Three sources are consulted in
|
|
6
|
+
* order:
|
|
7
|
+
*
|
|
8
|
+
* 1. Explicit `--registry` flag — accepts a stable registry id
|
|
9
|
+
* (matched against `wildo.saas.config.ts > moduleRegistries[].id`)
|
|
10
|
+
* OR a literal URL OR one of the well-known aliases (`local`,
|
|
11
|
+
* `public`).
|
|
12
|
+
* 2. `moduleRegistries` from `wildo.saas.config.ts` — when present,
|
|
13
|
+
* the entry whose `id === DEFAULT_REGISTRY_ID` (or the only
|
|
14
|
+
* entry, if there's exactly one) is the implicit default. Callers
|
|
15
|
+
* pass the array in; this module reads no file.
|
|
16
|
+
* 3. Default-URL policy — framework-developer mode (env
|
|
17
|
+
* `WILDO_FRAMEWORK_DEVELOPER=1`) → `DEFAULT_LOCAL_REGISTRY_URL`,
|
|
18
|
+
* otherwise `DEFAULT_PUBLIC_REGISTRY_URL`.
|
|
19
|
+
*
|
|
20
|
+
* Stateless: it doesn't read the credentials store or talk to the network. It lives here, beside the
|
|
21
|
+
* defaults it resolves to, because two runtimes ask the question — the CLI's registry commands and the dev
|
|
22
|
+
* companion, which lists the registry's providers for an application-creation brief (#2025) — and they must
|
|
23
|
+
* not disagree about which registry that is.
|
|
24
|
+
*/
|
|
25
|
+
import type { RegistryConfig } from './registry-config.schemas';
|
|
26
|
+
export interface ResolveRegistryUrlInput {
|
|
27
|
+
/** The `--registry` flag value, if any. Accepts id, alias, or URL. */
|
|
28
|
+
flag?: string;
|
|
29
|
+
/** `moduleRegistries` entries from the loaded `wildo.saas.config.ts`. */
|
|
30
|
+
moduleRegistries?: RegistryConfig;
|
|
31
|
+
/** Force framework-developer mode (otherwise read from env). */
|
|
32
|
+
forceFrameworkDeveloperMode?: boolean;
|
|
33
|
+
}
|
|
34
|
+
/** Where a resolved registry URL came from. Printed in diagnostics, so an operator can see which rule chose it. */
|
|
35
|
+
export declare enum ResolvedRegistrySource {
|
|
36
|
+
/** `--registry` named a literal URL. */
|
|
37
|
+
FLAG_URL = "flag-url",
|
|
38
|
+
/** `--registry` named an alias, `local` or `public`. */
|
|
39
|
+
FLAG_ALIAS = "flag-alias",
|
|
40
|
+
/** `--registry` named the id of a `moduleRegistries` entry. */
|
|
41
|
+
FLAG_ID = "flag-id",
|
|
42
|
+
/** No flag: the config's default entry (`id === DEFAULT_REGISTRY_ID`, or its only entry). */
|
|
43
|
+
CONFIG_DEFAULT = "config-default",
|
|
44
|
+
/** No flag and no default entry: the local registry in framework-developer mode, else the public one. */
|
|
45
|
+
ENV_POLICY = "env-policy"
|
|
46
|
+
}
|
|
47
|
+
export interface ResolvedRegistry {
|
|
48
|
+
url: string;
|
|
49
|
+
/** Source the URL came from — useful for diagnostic messages. */
|
|
50
|
+
source: ResolvedRegistrySource;
|
|
51
|
+
/** Registry id from the config, when the URL was resolved via id lookup. */
|
|
52
|
+
id?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Refuse to talk to a registry over a transport that exposes the key and the module source (#1764).
|
|
56
|
+
*
|
|
57
|
+
* `https:` always passes. `http:` passes only to a loopback host — the local development registry on
|
|
58
|
+
* `localhost:5154` — or to a registry whose `moduleRegistries` entry names `allowInsecureHttp: true`.
|
|
59
|
+
* Anything else is refused BEFORE a key is sent or a byte fetched. The artifact digest is no defence on
|
|
60
|
+
* plain HTTP: the server that serves the bytes also reports the digest.
|
|
61
|
+
*
|
|
62
|
+
* Decided by this repository's fail-closed principle: refusal is the default, and the door past it is
|
|
63
|
+
* named per registry in config rather than a flag any command could pass.
|
|
64
|
+
*/
|
|
65
|
+
export declare function assertRegistryTransportIsSafe(url: string, moduleRegistries?: RegistryConfig): void;
|
|
66
|
+
/**
|
|
67
|
+
* Resolve a registry URL from the supplied input. Throws when the
|
|
68
|
+
* `--registry` flag references an id that doesn't appear in the
|
|
69
|
+
* loaded `moduleRegistries` (the most common configuration error).
|
|
70
|
+
*/
|
|
71
|
+
export declare function resolveRegistryUrl(input: ResolveRegistryUrlInput): ResolvedRegistry;
|
|
72
|
+
//# sourceMappingURL=registry-url-resolution.d.ts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which registry a command talks to, and whether it may (#1764).
|
|
3
|
+
*
|
|
4
|
+
* Translates a `--registry <id-or-url>` flag (or the absence thereof)
|
|
5
|
+
* to a concrete registry HTTP origin. Three sources are consulted in
|
|
6
|
+
* order:
|
|
7
|
+
*
|
|
8
|
+
* 1. Explicit `--registry` flag — accepts a stable registry id
|
|
9
|
+
* (matched against `wildo.saas.config.ts > moduleRegistries[].id`)
|
|
10
|
+
* OR a literal URL OR one of the well-known aliases (`local`,
|
|
11
|
+
* `public`).
|
|
12
|
+
* 2. `moduleRegistries` from `wildo.saas.config.ts` — when present,
|
|
13
|
+
* the entry whose `id === DEFAULT_REGISTRY_ID` (or the only
|
|
14
|
+
* entry, if there's exactly one) is the implicit default. Callers
|
|
15
|
+
* pass the array in; this module reads no file.
|
|
16
|
+
* 3. Default-URL policy — framework-developer mode (env
|
|
17
|
+
* `WILDO_FRAMEWORK_DEVELOPER=1`) → `DEFAULT_LOCAL_REGISTRY_URL`,
|
|
18
|
+
* otherwise `DEFAULT_PUBLIC_REGISTRY_URL`.
|
|
19
|
+
*
|
|
20
|
+
* Stateless: it doesn't read the credentials store or talk to the network. It lives here, beside the
|
|
21
|
+
* defaults it resolves to, because two runtimes ask the question — the CLI's registry commands and the dev
|
|
22
|
+
* companion, which lists the registry's providers for an application-creation brief (#2025) — and they must
|
|
23
|
+
* not disagree about which registry that is.
|
|
24
|
+
*/
|
|
25
|
+
import { DEFAULT_LOCAL_REGISTRY_URL, DEFAULT_PUBLIC_REGISTRY_URL, DEFAULT_REGISTRY_ID } from './registry-defaults.constants.js';
|
|
26
|
+
/** Where a resolved registry URL came from. Printed in diagnostics, so an operator can see which rule chose it. */
|
|
27
|
+
export var ResolvedRegistrySource;
|
|
28
|
+
(function (ResolvedRegistrySource) {
|
|
29
|
+
/** `--registry` named a literal URL. */
|
|
30
|
+
ResolvedRegistrySource["FLAG_URL"] = "flag-url";
|
|
31
|
+
/** `--registry` named an alias, `local` or `public`. */
|
|
32
|
+
ResolvedRegistrySource["FLAG_ALIAS"] = "flag-alias";
|
|
33
|
+
/** `--registry` named the id of a `moduleRegistries` entry. */
|
|
34
|
+
ResolvedRegistrySource["FLAG_ID"] = "flag-id";
|
|
35
|
+
/** No flag: the config's default entry (`id === DEFAULT_REGISTRY_ID`, or its only entry). */
|
|
36
|
+
ResolvedRegistrySource["CONFIG_DEFAULT"] = "config-default";
|
|
37
|
+
/** No flag and no default entry: the local registry in framework-developer mode, else the public one. */
|
|
38
|
+
ResolvedRegistrySource["ENV_POLICY"] = "env-policy";
|
|
39
|
+
})(ResolvedRegistrySource || (ResolvedRegistrySource = {}));
|
|
40
|
+
function isFrameworkDeveloperMode(forceFrameworkDeveloperMode) {
|
|
41
|
+
if (forceFrameworkDeveloperMode !== undefined)
|
|
42
|
+
return forceFrameworkDeveloperMode;
|
|
43
|
+
return process.env.WILDO_FRAMEWORK_DEVELOPER === '1' || process.env.WILDO_FRAMEWORK_DEVELOPER === 'true';
|
|
44
|
+
}
|
|
45
|
+
function resolveAlias(value) {
|
|
46
|
+
if (value === 'local')
|
|
47
|
+
return DEFAULT_LOCAL_REGISTRY_URL;
|
|
48
|
+
if (value === 'public')
|
|
49
|
+
return DEFAULT_PUBLIC_REGISTRY_URL;
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
function looksLikeUrl(value) {
|
|
53
|
+
return /^https?:\/\//i.test(value);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A host this machine answers for. The literal loopback addresses are loopback by construction. Bare
|
|
57
|
+
* `localhost` is NOT — Node resolves it through `getaddrinfo` and the hosts file like any name — but every
|
|
58
|
+
* mainstream OS maps it to loopback in its default configuration, and it is the local registry's own
|
|
59
|
+
* default address. A `*.localhost` subdomain is NOT guaranteed the same: some resolvers map it to loopback
|
|
60
|
+
* (systemd's `nss-myhostname` where configured), others pass it to DNS, where it can leave the machine.
|
|
61
|
+
* So it is refused (#1764 review, reasoning corrected in the re-review R12).
|
|
62
|
+
*/
|
|
63
|
+
function isLoopbackHost(hostname) {
|
|
64
|
+
const host = hostname.replace(/^\[|\]$/g, '').toLowerCase();
|
|
65
|
+
return host === 'localhost' || host === '::1' || /^127(\.\d{1,3}){3}$/.test(host);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Refuse to talk to a registry over a transport that exposes the key and the module source (#1764).
|
|
69
|
+
*
|
|
70
|
+
* `https:` always passes. `http:` passes only to a loopback host — the local development registry on
|
|
71
|
+
* `localhost:5154` — or to a registry whose `moduleRegistries` entry names `allowInsecureHttp: true`.
|
|
72
|
+
* Anything else is refused BEFORE a key is sent or a byte fetched. The artifact digest is no defence on
|
|
73
|
+
* plain HTTP: the server that serves the bytes also reports the digest.
|
|
74
|
+
*
|
|
75
|
+
* Decided by this repository's fail-closed principle: refusal is the default, and the door past it is
|
|
76
|
+
* named per registry in config rather than a flag any command could pass.
|
|
77
|
+
*/
|
|
78
|
+
export function assertRegistryTransportIsSafe(url, moduleRegistries = []) {
|
|
79
|
+
let parsed;
|
|
80
|
+
try {
|
|
81
|
+
parsed = new URL(url);
|
|
82
|
+
}
|
|
83
|
+
catch {
|
|
84
|
+
throw new Error(`Registry URL "${url}" is not a valid URL.`);
|
|
85
|
+
}
|
|
86
|
+
if (parsed.protocol === 'https:')
|
|
87
|
+
return;
|
|
88
|
+
if (parsed.protocol !== 'http:') {
|
|
89
|
+
throw new Error(`Registry URL "${url}" uses ${parsed.protocol}; only https (or http to a loopback host) is supported.`);
|
|
90
|
+
}
|
|
91
|
+
if (isLoopbackHost(parsed.hostname))
|
|
92
|
+
return;
|
|
93
|
+
const origin = parsed.origin;
|
|
94
|
+
const optedOut = moduleRegistries.some((entry) => entry.allowInsecureHttp === true && safeOrigin(entry.url) === origin);
|
|
95
|
+
if (optedOut)
|
|
96
|
+
return;
|
|
97
|
+
throw new Error(`Refusing plain http to the remote registry ${origin}: the registry key and module source would travel in cleartext. `
|
|
98
|
+
+ 'Use its https URL. If this registry genuinely has none, declare it in `wildo.saas.config.ts > moduleRegistries` '
|
|
99
|
+
+ 'with `allowInsecureHttp: true`.');
|
|
100
|
+
}
|
|
101
|
+
function safeOrigin(value) {
|
|
102
|
+
try {
|
|
103
|
+
return new URL(value).origin;
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Resolve a registry URL from the supplied input. Throws when the
|
|
111
|
+
* `--registry` flag references an id that doesn't appear in the
|
|
112
|
+
* loaded `moduleRegistries` (the most common configuration error).
|
|
113
|
+
*/
|
|
114
|
+
export function resolveRegistryUrl(input) {
|
|
115
|
+
const resolved = resolveRegistryUrlUnchecked(input);
|
|
116
|
+
// Every source — flag URL, alias, config entry, env policy — passes the same transport gate (#1764).
|
|
117
|
+
assertRegistryTransportIsSafe(resolved.url, input.moduleRegistries ?? []);
|
|
118
|
+
return resolved;
|
|
119
|
+
}
|
|
120
|
+
function resolveRegistryUrlUnchecked(input) {
|
|
121
|
+
const { flag, moduleRegistries = [] } = input;
|
|
122
|
+
if (flag) {
|
|
123
|
+
const alias = resolveAlias(flag);
|
|
124
|
+
if (alias) {
|
|
125
|
+
return { url: alias, source: ResolvedRegistrySource.FLAG_ALIAS };
|
|
126
|
+
}
|
|
127
|
+
if (looksLikeUrl(flag)) {
|
|
128
|
+
return { url: flag, source: ResolvedRegistrySource.FLAG_URL };
|
|
129
|
+
}
|
|
130
|
+
const entry = moduleRegistries.find((r) => r.id === flag);
|
|
131
|
+
if (!entry) {
|
|
132
|
+
const known = moduleRegistries.map((r) => `"${r.id}"`).join(', ');
|
|
133
|
+
throw new Error(`Unknown registry id "${flag}". ` +
|
|
134
|
+
(known.length > 0
|
|
135
|
+
? `Configured registry ids: ${known}. `
|
|
136
|
+
: 'No registries configured in `wildo.saas.config.ts > moduleRegistries`. ') +
|
|
137
|
+
'Pass an explicit URL or one of the aliases `local` / `public`.');
|
|
138
|
+
}
|
|
139
|
+
return { url: entry.url, source: ResolvedRegistrySource.FLAG_ID, id: entry.id };
|
|
140
|
+
}
|
|
141
|
+
// No flag — prefer the config's default-id entry, fall back to the
|
|
142
|
+
// single entry if there's exactly one, otherwise apply env-policy.
|
|
143
|
+
if (moduleRegistries.length > 0) {
|
|
144
|
+
const defaultEntry = moduleRegistries.find((r) => r.id === DEFAULT_REGISTRY_ID) ??
|
|
145
|
+
(moduleRegistries.length === 1 ? moduleRegistries[0] : undefined);
|
|
146
|
+
if (defaultEntry) {
|
|
147
|
+
return { url: defaultEntry.url, source: ResolvedRegistrySource.CONFIG_DEFAULT, id: defaultEntry.id };
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
return {
|
|
151
|
+
url: isFrameworkDeveloperMode(input.forceFrameworkDeveloperMode)
|
|
152
|
+
? DEFAULT_LOCAL_REGISTRY_URL
|
|
153
|
+
: DEFAULT_PUBLIC_REGISTRY_URL,
|
|
154
|
+
source: ResolvedRegistrySource.ENV_POLICY,
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=registry-url-resolution.js.map
|
|
@@ -0,0 +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;AAY7H,mHAAmH;AACnH,MAAM,CAAN,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAChC,wCAAwC;IACxC,+CAAqB,CAAA;IACrB,wDAAwD;IACxD,mDAAyB,CAAA;IACzB,+DAA+D;IAC/D,6CAAmB,CAAA;IACnB,6FAA6F;IAC7F,2DAAiC,CAAA;IACjC,yGAAyG;IACzG,mDAAyB,CAAA;AAC3B,CAAC,EAXW,sBAAsB,KAAtB,sBAAsB,QAWjC;AAUD,SAAS,wBAAwB,CAAC,2BAAqC;IACrE,IAAI,2BAA2B,KAAK,SAAS;QAAE,OAAO,2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O;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":["
|
|
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":["
|
|
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.js","sourceRoot":"","sources":["
|
|
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"]}
|
|
@@ -8,6 +8,54 @@ export declare const WildoFrameworkPublishDockerSecretsSchema: z.ZodObject<{
|
|
|
8
8
|
publishToken: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
export type WildoFrameworkPublishDockerSecrets = z.infer<typeof WildoFrameworkPublishDockerSecretsSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* How to reach the machine that serves the PUBLIC module registry (#2135), under `moduleRegistryHost` in the framework
|
|
13
|
+
* secrets file. `wildo fwk registry-host` deploys to it over SSH.
|
|
14
|
+
*
|
|
15
|
+
* In the SECRETS file, not the tracked framework config (Paul, 2026-10-01): the address is the origin behind the
|
|
16
|
+
* registry's CDN, and a tracked copy would hand it to anyone who reads the repository. The public name is not here
|
|
17
|
+
* either: it is `DEFAULT_PUBLIC_REGISTRY_URL`, the address every CLI already resolves `--registry public` to.
|
|
18
|
+
*
|
|
19
|
+
* Deliberately NOT a member of {@link WildoFrameworkSecretsSchema}: that schema parses the whole file for every release
|
|
20
|
+
* command, and one malformed section must not stop an unrelated one (the `providers.slack` lesson below). The
|
|
21
|
+
* registry-host command reads its section on its own and refuses with a message naming it.
|
|
22
|
+
*/
|
|
23
|
+
export declare const WildoFrameworkModuleRegistryHostSchema: z.ZodObject<{
|
|
24
|
+
address: z.ZodString;
|
|
25
|
+
sshPort: z.ZodDefault<z.ZodNumber>;
|
|
26
|
+
sshUser: z.ZodDefault<z.ZodString>;
|
|
27
|
+
sshIdentityFile: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strict>;
|
|
29
|
+
export type WildoFrameworkModuleRegistryHost = z.infer<typeof WildoFrameworkModuleRegistryHostSchema>;
|
|
30
|
+
/** The key of the section above in the framework secrets file. */
|
|
31
|
+
export declare const FRAMEWORK_SECRETS_MODULE_REGISTRY_HOST_KEY = "moduleRegistryHost";
|
|
32
|
+
/**
|
|
33
|
+
* Where the registry host's nightly backups go (#2135): a restic repository in a Scaleway Object Storage bucket, in a
|
|
34
|
+
* different region from the host so one datacenter cannot take both. `resticPassword` encrypts every snapshot; losing
|
|
35
|
+
* it makes them all unreadable, so it belongs in a password manager as well as here. Under `registryHostBackup`, and
|
|
36
|
+
* read on its own like {@link WildoFrameworkModuleRegistryHostSchema}.
|
|
37
|
+
*/
|
|
38
|
+
export declare const WildoFrameworkRegistryHostBackupSchema: z.ZodObject<{
|
|
39
|
+
scalewayRegion: z.ZodString;
|
|
40
|
+
bucket: z.ZodString;
|
|
41
|
+
endpoint: z.ZodURL;
|
|
42
|
+
accessKey: z.ZodString;
|
|
43
|
+
secretKey: z.ZodString;
|
|
44
|
+
resticPassword: z.ZodString;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
export type WildoFrameworkRegistryHostBackup = z.infer<typeof WildoFrameworkRegistryHostBackupSchema>;
|
|
47
|
+
export declare const FRAMEWORK_SECRETS_REGISTRY_HOST_BACKUP_KEY = "registryHostBackup";
|
|
48
|
+
/**
|
|
49
|
+
* Better Stack Uptime, which watches the registry host: an uptime monitor on its health endpoint and a heartbeat its
|
|
50
|
+
* backup job reports to. A TEAM Uptime API token: a Telemetry "source token" cannot create monitors. Under
|
|
51
|
+
* `betterStack`, read on its own.
|
|
52
|
+
*/
|
|
53
|
+
export declare const WildoFrameworkBetterStackSchema: z.ZodObject<{
|
|
54
|
+
apiUrl: z.ZodURL;
|
|
55
|
+
uptimeApiToken: z.ZodString;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type WildoFrameworkBetterStack = z.infer<typeof WildoFrameworkBetterStackSchema>;
|
|
58
|
+
export declare const FRAMEWORK_SECRETS_BETTER_STACK_KEY = "betterStack";
|
|
11
59
|
/**
|
|
12
60
|
* One provider's credentials in the framework secrets file: a single secret (an API key), or a named
|
|
13
61
|
* set of them when the provider issues several — Slack issues a bot token, an app token, OAuth
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-secrets.schemas.d.ts","sourceRoot":"","sources":["../../../src/schemas/framework-secrets.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qCAAqC;;iBAEhD,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,wCAAwC;;;iBAGnD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AAE1G;;;;;;;;GAQG;AACH,eAAO,MAAM,kCAAkC,2EAG7C,CAAC;AACH,MAAM,MA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C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,2BAA2B;;;;;;;;;iBAItC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
|
@@ -6,6 +6,59 @@ export const WildoFrameworkPublishDockerSecretsSchema = z.object({
|
|
|
6
6
|
publishUsername: z.string().min(1).optional(),
|
|
7
7
|
publishToken: z.string().min(1),
|
|
8
8
|
});
|
|
9
|
+
/**
|
|
10
|
+
* How to reach the machine that serves the PUBLIC module registry (#2135), under `moduleRegistryHost` in the framework
|
|
11
|
+
* secrets file. `wildo fwk registry-host` deploys to it over SSH.
|
|
12
|
+
*
|
|
13
|
+
* In the SECRETS file, not the tracked framework config (Paul, 2026-10-01): the address is the origin behind the
|
|
14
|
+
* registry's CDN, and a tracked copy would hand it to anyone who reads the repository. The public name is not here
|
|
15
|
+
* either: it is `DEFAULT_PUBLIC_REGISTRY_URL`, the address every CLI already resolves `--registry public` to.
|
|
16
|
+
*
|
|
17
|
+
* Deliberately NOT a member of {@link WildoFrameworkSecretsSchema}: that schema parses the whole file for every release
|
|
18
|
+
* command, and one malformed section must not stop an unrelated one (the `providers.slack` lesson below). The
|
|
19
|
+
* registry-host command reads its section on its own and refuses with a message naming it.
|
|
20
|
+
*/
|
|
21
|
+
export const WildoFrameworkModuleRegistryHostSchema = z.strictObject({
|
|
22
|
+
/** The machine's IP address or DNS name. */
|
|
23
|
+
address: z.string().min(1),
|
|
24
|
+
sshPort: z.number().int().min(1).max(65_535).default(22),
|
|
25
|
+
sshUser: z.string().min(1).default('root'),
|
|
26
|
+
/**
|
|
27
|
+
* The private key that opens the machine (`~` is expanded). When set, ssh offers ONLY this key, so a deploy does not
|
|
28
|
+
* depend on what the agent happens to hold, and does not trip the host's brute-force protection by offering every
|
|
29
|
+
* other key first. Absent: the operator's own ssh configuration and agent decide.
|
|
30
|
+
*/
|
|
31
|
+
sshIdentityFile: z.string().min(1).optional(),
|
|
32
|
+
});
|
|
33
|
+
/** The key of the section above in the framework secrets file. */
|
|
34
|
+
export const FRAMEWORK_SECRETS_MODULE_REGISTRY_HOST_KEY = 'moduleRegistryHost';
|
|
35
|
+
/**
|
|
36
|
+
* Where the registry host's nightly backups go (#2135): a restic repository in a Scaleway Object Storage bucket, in a
|
|
37
|
+
* different region from the host so one datacenter cannot take both. `resticPassword` encrypts every snapshot; losing
|
|
38
|
+
* it makes them all unreadable, so it belongs in a password manager as well as here. Under `registryHostBackup`, and
|
|
39
|
+
* read on its own like {@link WildoFrameworkModuleRegistryHostSchema}.
|
|
40
|
+
*/
|
|
41
|
+
export const WildoFrameworkRegistryHostBackupSchema = z.strictObject({
|
|
42
|
+
scalewayRegion: z.string().min(1),
|
|
43
|
+
bucket: z.string().min(1),
|
|
44
|
+
/** The S3 endpoint of that region, e.g. `https://s3.nl-ams.scw.cloud`. */
|
|
45
|
+
endpoint: z.url(),
|
|
46
|
+
accessKey: z.string().min(1),
|
|
47
|
+
secretKey: z.string().min(1),
|
|
48
|
+
resticPassword: z.string().min(32),
|
|
49
|
+
});
|
|
50
|
+
export const FRAMEWORK_SECRETS_REGISTRY_HOST_BACKUP_KEY = 'registryHostBackup';
|
|
51
|
+
/**
|
|
52
|
+
* Better Stack Uptime, which watches the registry host: an uptime monitor on its health endpoint and a heartbeat its
|
|
53
|
+
* backup job reports to. A TEAM Uptime API token: a Telemetry "source token" cannot create monitors. Under
|
|
54
|
+
* `betterStack`, read on its own.
|
|
55
|
+
*/
|
|
56
|
+
export const WildoFrameworkBetterStackSchema = z.object({
|
|
57
|
+
/** The Uptime API base, e.g. `https://uptime.betterstack.com/api/v2`. */
|
|
58
|
+
apiUrl: z.url(),
|
|
59
|
+
uptimeApiToken: z.string().min(1).refine((token) => !/\s/.test(token), { error: 'contains whitespace (an inline comment pasted with it?)' }),
|
|
60
|
+
});
|
|
61
|
+
export const FRAMEWORK_SECRETS_BETTER_STACK_KEY = 'betterStack';
|
|
9
62
|
/**
|
|
10
63
|
* One provider's credentials in the framework secrets file: a single secret (an API key), or a named
|
|
11
64
|
* set of them when the provider issues several — Slack issues a bot token, an app token, OAuth
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"framework-secrets.schemas.js","sourceRoot":"","sources":["
|
|
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,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IAC1C;;;;O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AC,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:
|
|
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.js","sourceRoot":"","sources":["
|
|
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:
|
|
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.js","sourceRoot":"","sources":["
|
|
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,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC9D,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,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AAC,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:
|
|
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:
|
|
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.js","sourceRoot":"","sources":["
|
|
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.js","sourceRoot":"","sources":["
|
|
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.js","sourceRoot":"","sources":["
|
|
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":["
|
|
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"}
|