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