@wildo-ai/platform-config-lib 1.0.1 → 1.1.1
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/LICENSE +34 -0
- package/dist/esm/.builder.pid +9 -0
- package/dist/esm/_unimplemented/index.d.ts +3 -0
- package/dist/esm/_unimplemented/index.d.ts.map +1 -0
- package/dist/esm/_unimplemented/index.js +3 -0
- package/dist/esm/_unimplemented/index.js.map +1 -0
- package/dist/esm/_unimplemented/soft-warn.d.ts +124 -0
- package/dist/esm/_unimplemented/soft-warn.d.ts.map +1 -0
- package/dist/esm/_unimplemented/soft-warn.js +170 -0
- package/dist/esm/_unimplemented/soft-warn.js.map +1 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts +137 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.d.ts.map +1 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.js +153 -0
- package/dist/esm/_unimplemented/unimplemented-field-warning.js.map +1 -0
- package/dist/esm/bootstrap/application-backend-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/application-backend-env.contracts.js +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 +13 -0
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js +14 -0
- package/dist/esm/bootstrap/application-creation-verification-env.contracts.js.map +1 -0
- package/dist/esm/bootstrap/bootstrap-planner.d.ts +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js +1 -1
- package/dist/esm/bootstrap/bootstrap-planner.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts +141 -37
- package/dist/esm/bootstrap/bootstrap.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.contracts.js +104 -18
- package/dist/esm/bootstrap/bootstrap.contracts.js.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts +430 -421
- package/dist/esm/bootstrap/bootstrap.schemas.d.ts.map +1 -1
- package/dist/esm/bootstrap/bootstrap.schemas.js +383 -21
- package/dist/esm/bootstrap/bootstrap.schemas.js.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts +213 -8
- package/dist/esm/bootstrap/platform-runtime-env.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js +230 -5
- package/dist/esm/bootstrap/platform-runtime-env.contracts.js.map +1 -1
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts +79 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.js +83 -0
- package/dist/esm/bootstrap/runtime-backing-service-access.js.map +1 -0
- package/dist/esm/bootstrap/runtime-network-policy.d.ts +63 -0
- package/dist/esm/bootstrap/runtime-network-policy.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-network-policy.js +104 -0
- package/dist/esm/bootstrap/runtime-network-policy.js.map +1 -0
- package/dist/esm/bootstrap/runtime-network-topology.d.ts +78 -0
- package/dist/esm/bootstrap/runtime-network-topology.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-network-topology.js +134 -0
- package/dist/esm/bootstrap/runtime-network-topology.js.map +1 -0
- package/dist/esm/bootstrap/runtime-platform-access.d.ts +67 -0
- package/dist/esm/bootstrap/runtime-platform-access.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-platform-access.js +57 -0
- package/dist/esm/bootstrap/runtime-platform-access.js.map +1 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts +173 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.d.ts.map +1 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.js +218 -0
- package/dist/esm/bootstrap/runtime-principal.contracts.js.map +1 -0
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts +112 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.d.ts.map +1 -1
- package/dist/esm/bootstrap/runtime-topology.contracts.js +141 -8
- package/dist/esm/bootstrap/runtime-topology.contracts.js.map +1 -1
- package/dist/esm/config-authoring.entry.d.ts +3 -0
- package/dist/esm/config-authoring.entry.d.ts.map +1 -0
- package/dist/esm/config-authoring.entry.js +5 -0
- package/dist/esm/config-authoring.entry.js.map +1 -0
- package/dist/esm/credentials/credential-generator.service.d.ts.map +1 -1
- package/dist/esm/credentials/credential-generator.service.js +1 -1
- package/dist/esm/credentials/credential-generator.service.js.map +1 -1
- package/dist/esm/index.d.ts +30 -15
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +16 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lockfile/canonical-json.d.ts +41 -0
- package/dist/esm/lockfile/canonical-json.d.ts.map +1 -0
- package/dist/esm/lockfile/canonical-json.js +56 -0
- package/dist/esm/lockfile/canonical-json.js.map +1 -0
- package/dist/esm/lockfile/lockfile-io.d.ts +231 -0
- package/dist/esm/lockfile/lockfile-io.d.ts.map +1 -0
- package/dist/esm/lockfile/lockfile-io.js +303 -0
- package/dist/esm/lockfile/lockfile-io.js.map +1 -0
- package/dist/esm/lockfile/materialize-infra-section.d.ts +99 -0
- package/dist/esm/lockfile/materialize-infra-section.d.ts.map +1 -0
- package/dist/esm/lockfile/materialize-infra-section.js +153 -0
- package/dist/esm/lockfile/materialize-infra-section.js.map +1 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts +522 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.d.ts.map +1 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js +116 -0
- package/dist/esm/lockfile/wildo-saas-lock.shared.schemas.js.map +1 -0
- package/dist/esm/project-config/define-framework-config.d.ts +36 -10
- package/dist/esm/project-config/define-framework-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-framework-config.js +67 -3
- package/dist/esm/project-config/define-framework-config.js.map +1 -1
- package/dist/esm/project-config/define-infra-env-config.d.ts +570 -0
- package/dist/esm/project-config/define-infra-env-config.d.ts.map +1 -0
- package/dist/esm/project-config/define-infra-env-config.js +726 -0
- package/dist/esm/project-config/define-infra-env-config.js.map +1 -0
- package/dist/esm/project-config/define-minion-config.d.ts +221 -23
- package/dist/esm/project-config/define-minion-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-minion-config.js +228 -11
- package/dist/esm/project-config/define-minion-config.js.map +1 -1
- package/dist/esm/project-config/define-saas-config.d.ts +427 -218
- package/dist/esm/project-config/define-saas-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-saas-config.js +704 -75
- package/dist/esm/project-config/define-saas-config.js.map +1 -1
- package/dist/esm/project-config/define-worker-config.d.ts +106 -10
- package/dist/esm/project-config/define-worker-config.d.ts.map +1 -1
- package/dist/esm/project-config/define-worker-config.js +99 -9
- package/dist/esm/project-config/define-worker-config.js.map +1 -1
- package/dist/esm/project-config/index.d.ts +28 -21
- package/dist/esm/project-config/index.d.ts.map +1 -1
- package/dist/esm/project-config/index.js +14 -7
- package/dist/esm/project-config/index.js.map +1 -1
- package/dist/esm/project-config/loader.d.ts +120 -10
- package/dist/esm/project-config/loader.d.ts.map +1 -1
- package/dist/esm/project-config/loader.js +290 -38
- package/dist/esm/project-config/loader.js.map +1 -1
- package/dist/esm/project-config/minion-local-provider-registration.d.ts +69 -0
- package/dist/esm/project-config/minion-local-provider-registration.d.ts.map +1 -0
- package/dist/esm/project-config/minion-local-provider-registration.js +72 -0
- package/dist/esm/project-config/minion-local-provider-registration.js.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.d.ts +12 -0
- package/dist/esm/project-config/provider-catalog-types.d.ts.map +1 -0
- package/dist/esm/project-config/provider-catalog-types.js +49 -0
- package/dist/esm/project-config/provider-catalog-types.js.map +1 -0
- package/dist/esm/project-config/provider-companion-discovery.d.ts +24 -0
- package/dist/esm/project-config/provider-companion-discovery.d.ts.map +1 -0
- package/dist/esm/project-config/provider-companion-discovery.js +244 -0
- package/dist/esm/project-config/provider-companion-discovery.js.map +1 -0
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts +297 -0
- package/dist/esm/project-config/provider-runtime-artifacts.d.ts.map +1 -0
- package/dist/esm/project-config/provider-runtime-artifacts.js +860 -0
- package/dist/esm/project-config/provider-runtime-artifacts.js.map +1 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts +18 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js +25 -0
- package/dist/esm/project-config/shared/application-creation-verification.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/application-modules.schemas.d.ts +10 -2
- package/dist/esm/project-config/shared/application-modules.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/application-modules.schemas.js +12 -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 +2 -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 +6 -1
- package/dist/esm/project-config/shared/application-modules.utils.js.map +1 -1
- package/dist/esm/project-config/shared/auth.schemas.d.ts +102 -0
- package/dist/esm/project-config/shared/auth.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/auth.schemas.js +100 -0
- package/dist/esm/project-config/shared/auth.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts +316 -39
- package/dist/esm/project-config/shared/backing-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/backing-services.schemas.js +359 -24
- package/dist/esm/project-config/shared/backing-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/cdn.example.d.ts +14 -0
- package/dist/esm/project-config/shared/cdn.example.d.ts.map +1 -0
- package/dist/esm/project-config/shared/cdn.example.js +38 -0
- package/dist/esm/project-config/shared/cdn.example.js.map +1 -0
- package/dist/esm/project-config/shared/cdn.schemas.d.ts +182 -0
- package/dist/esm/project-config/shared/cdn.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/cdn.schemas.js +151 -0
- package/dist/esm/project-config/shared/cdn.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/csp-defaults.d.ts +92 -0
- package/dist/esm/project-config/shared/csp-defaults.d.ts.map +1 -0
- package/dist/esm/project-config/shared/csp-defaults.js +195 -0
- package/dist/esm/project-config/shared/csp-defaults.js.map +1 -0
- package/dist/esm/project-config/shared/csp-emit.d.ts +106 -0
- package/dist/esm/project-config/shared/csp-emit.d.ts.map +1 -0
- package/dist/esm/project-config/shared/csp-emit.js +305 -0
- package/dist/esm/project-config/shared/csp-emit.js.map +1 -0
- package/dist/esm/project-config/shared/csp.schemas.d.ts +266 -0
- package/dist/esm/project-config/shared/csp.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/csp.schemas.js +281 -0
- package/dist/esm/project-config/shared/csp.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/data-services.schemas.d.ts +45 -9
- package/dist/esm/project-config/shared/data-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/data-services.schemas.js +45 -9
- package/dist/esm/project-config/shared/data-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/env-example-defaults.d.ts +0 -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 +1 -2
- package/dist/esm/project-config/shared/env-example-defaults.js.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.d.ts +134 -8
- package/dist/esm/project-config/shared/environment.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/environment.schemas.js +185 -2
- package/dist/esm/project-config/shared/environment.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts +779 -0
- package/dist/esm/project-config/shared/infra-providers.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/infra-providers.schemas.js +210 -0
- package/dist/esm/project-config/shared/infra-providers.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts +18 -0
- package/dist/esm/project-config/shared/infra-service.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/infra-service.schemas.js +16 -0
- package/dist/esm/project-config/shared/infra-service.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.d.ts +83 -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 +99 -2
- package/dist/esm/project-config/shared/infrastructure-defaults.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.d.ts +51 -7
- package/dist/esm/project-config/shared/k8s-utils.d.ts.map +1 -1
- package/dist/esm/project-config/shared/k8s-utils.js +59 -12
- package/dist/esm/project-config/shared/k8s-utils.js.map +1 -1
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts +31 -0
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.d.ts.map +1 -0
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js +32 -0
- package/dist/esm/project-config/shared/minion-platform-access.vocabulary.js.map +1 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts +142 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.d.ts.map +1 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.js +159 -0
- package/dist/esm/project-config/shared/minion-resource-access.validation.js.map +1 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts +100 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.d.ts.map +1 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.js +130 -0
- package/dist/esm/project-config/shared/object-storage-session-policy.js.map +1 -0
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts +9 -14
- package/dist/esm/project-config/shared/platform-services.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/platform-services.schemas.js +13 -9
- package/dist/esm/project-config/shared/platform-services.schemas.js.map +1 -1
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts +15 -0
- package/dist/esm/project-config/shared/schema-version.schemas.d.ts.map +1 -0
- package/dist/esm/project-config/shared/schema-version.schemas.js +40 -0
- package/dist/esm/project-config/shared/schema-version.schemas.js.map +1 -0
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts +283 -8
- package/dist/esm/project-config/shared/service-definitions.schemas.d.ts.map +1 -1
- package/dist/esm/project-config/shared/service-definitions.schemas.js +325 -8
- package/dist/esm/project-config/shared/service-definitions.schemas.js.map +1 -1
- package/dist/esm/registry/artifact-domain.schemas.d.ts +54 -0
- package/dist/esm/registry/artifact-domain.schemas.d.ts.map +1 -0
- package/dist/esm/registry/artifact-domain.schemas.js +40 -0
- package/dist/esm/registry/artifact-domain.schemas.js.map +1 -0
- package/dist/esm/registry/companion-api.schemas.d.ts +176 -0
- package/dist/esm/registry/companion-api.schemas.d.ts.map +1 -0
- package/dist/esm/registry/companion-api.schemas.js +165 -0
- package/dist/esm/registry/companion-api.schemas.js.map +1 -0
- package/dist/esm/registry/digest.schemas.d.ts +20 -0
- package/dist/esm/registry/digest.schemas.d.ts.map +1 -0
- package/dist/esm/registry/digest.schemas.js +21 -0
- package/dist/esm/registry/digest.schemas.js.map +1 -0
- package/dist/esm/registry/index.d.ts +33 -0
- package/dist/esm/registry/index.d.ts.map +1 -0
- package/dist/esm/registry/index.js +33 -0
- package/dist/esm/registry/index.js.map +1 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts +107 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.d.ts.map +1 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.js +67 -0
- package/dist/esm/registry/lockfile-modules-section.schemas.js.map +1 -0
- package/dist/esm/registry/module-artifact.schemas.d.ts +94 -0
- package/dist/esm/registry/module-artifact.schemas.d.ts.map +1 -0
- package/dist/esm/registry/module-artifact.schemas.js +69 -0
- package/dist/esm/registry/module-artifact.schemas.js.map +1 -0
- package/dist/esm/registry/module-manifest.schemas.d.ts +134 -0
- package/dist/esm/registry/module-manifest.schemas.d.ts.map +1 -0
- package/dist/esm/registry/module-manifest.schemas.js +155 -0
- package/dist/esm/registry/module-manifest.schemas.js.map +1 -0
- package/dist/esm/registry/registry-config.schemas.d.ts +31 -0
- package/dist/esm/registry/registry-config.schemas.d.ts.map +1 -0
- package/dist/esm/registry/registry-config.schemas.js +24 -0
- package/dist/esm/registry/registry-config.schemas.js.map +1 -0
- package/dist/esm/registry/registry-defaults.constants.d.ts +37 -0
- package/dist/esm/registry/registry-defaults.constants.d.ts.map +1 -0
- package/dist/esm/registry/registry-defaults.constants.js +37 -0
- package/dist/esm/registry/registry-defaults.constants.js.map +1 -0
- package/dist/esm/registry/registry-errors.d.ts +109 -0
- package/dist/esm/registry/registry-errors.d.ts.map +1 -0
- package/dist/esm/registry/registry-errors.js +185 -0
- package/dist/esm/registry/registry-errors.js.map +1 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts +39 -0
- package/dist/esm/registry/registry-section-schemas.constants.d.ts.map +1 -0
- package/dist/esm/registry/registry-section-schemas.constants.js +22 -0
- package/dist/esm/registry/registry-section-schemas.constants.js.map +1 -0
- package/dist/esm/release/framework-release.constants.d.ts +26 -1
- package/dist/esm/release/framework-release.constants.d.ts.map +1 -1
- package/dist/esm/release/framework-release.constants.js +27 -2
- package/dist/esm/release/framework-release.constants.js.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.d.ts +1 -1
- package/dist/esm/schemas/framework-info.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-info.schemas.js +1 -1
- package/dist/esm/schemas/framework-info.schemas.js.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.d.ts +5 -5
- package/dist/esm/schemas/framework-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/framework-secrets.schemas.js +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 +11 -2
- package/dist/esm/schemas/platform-application-config.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts +7 -7
- package/dist/esm/schemas/platform-application-secrets.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-application-secrets.schemas.js +17 -2
- package/dist/esm/schemas/platform-application-secrets.schemas.js.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.d.ts +12 -13
- package/dist/esm/schemas/platform-config.schemas.d.ts.map +1 -1
- package/dist/esm/schemas/platform-config.schemas.js +15 -3
- package/dist/esm/schemas/platform-config.schemas.js.map +1 -1
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts +26 -0
- package/dist/esm/workspace-scope/application-subject-manifest.d.ts.map +1 -0
- package/dist/esm/workspace-scope/application-subject-manifest.js +43 -0
- package/dist/esm/workspace-scope/application-subject-manifest.js.map +1 -0
- package/dist/esm/workspace-scope/index.d.ts +5 -2
- package/dist/esm/workspace-scope/index.d.ts.map +1 -1
- package/dist/esm/workspace-scope/index.js +4 -1
- package/dist/esm/workspace-scope/index.js.map +1 -1
- package/dist/esm/workspace-scope/resolve-homes.d.ts +20 -0
- package/dist/esm/workspace-scope/resolve-homes.d.ts.map +1 -0
- package/dist/esm/workspace-scope/resolve-homes.js +62 -0
- package/dist/esm/workspace-scope/resolve-homes.js.map +1 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts +211 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.d.ts.map +1 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.js +113 -0
- package/dist/esm/workspace-scope/workspace-homes.schemas.js.map +1 -0
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts +10 -5
- package/dist/esm/workspace-scope/workspace-scope-detector.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope-detector.js +22 -36
- package/dist/esm/workspace-scope/workspace-scope-detector.js.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts +147 -58
- package/dist/esm/workspace-scope/workspace-scope.schemas.d.ts.map +1 -1
- package/dist/esm/workspace-scope/workspace-scope.schemas.js +174 -78
- package/dist/esm/workspace-scope/workspace-scope.schemas.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +31 -17
- package/dist/esm/credentials/credentials-provisioner.service.d.ts +0 -190
- package/dist/esm/credentials/credentials-provisioner.service.d.ts.map +0 -1
- package/dist/esm/credentials/credentials-provisioner.service.js +0 -278
- package/dist/esm/credentials/credentials-provisioner.service.js.map +0 -1
- package/dist/esm/infra-managers/infra-manager.models.d.ts +0 -146
- package/dist/esm/infra-managers/infra-manager.models.d.ts.map +0 -1
- package/dist/esm/infra-managers/infra-manager.models.js +0 -2
- package/dist/esm/infra-managers/infra-manager.models.js.map +0 -1
- package/dist/esm/infra-managers/mongo-atlas-manager.service.d.ts +0 -64
- package/dist/esm/infra-managers/mongo-atlas-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/mongo-atlas-manager.service.js +0 -307
- package/dist/esm/infra-managers/mongo-atlas-manager.service.js.map +0 -1
- package/dist/esm/infra-managers/postgresql-manager.service.d.ts +0 -115
- package/dist/esm/infra-managers/postgresql-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/postgresql-manager.service.js +0 -403
- package/dist/esm/infra-managers/postgresql-manager.service.js.map +0 -1
- package/dist/esm/infra-managers/rabbitmq-manager.service.d.ts +0 -64
- package/dist/esm/infra-managers/rabbitmq-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/rabbitmq-manager.service.js +0 -288
- package/dist/esm/infra-managers/rabbitmq-manager.service.js.map +0 -1
- package/dist/esm/infra-managers/redis-manager.service.d.ts +0 -78
- package/dist/esm/infra-managers/redis-manager.service.d.ts.map +0 -1
- package/dist/esm/infra-managers/redis-manager.service.js +0 -326
- package/dist/esm/infra-managers/redis-manager.service.js.map +0 -1
- package/dist/esm/project-config/define-infra-config.d.ts +0 -128
- package/dist/esm/project-config/define-infra-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-infra-config.js +0 -87
- package/dist/esm/project-config/define-infra-config.js.map +0 -1
- package/dist/esm/project-config/define-platform-config.d.ts +0 -65
- package/dist/esm/project-config/define-platform-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-platform-config.js +0 -22
- package/dist/esm/project-config/define-platform-config.js.map +0 -1
- package/dist/esm/project-config/define-platform-env-config.d.ts +0 -41
- package/dist/esm/project-config/define-platform-env-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-platform-env-config.js +0 -45
- package/dist/esm/project-config/define-platform-env-config.js.map +0 -1
- package/dist/esm/project-config/define-project-config.d.ts +0 -38
- package/dist/esm/project-config/define-project-config.d.ts.map +0 -1
- package/dist/esm/project-config/define-project-config.js +0 -57
- package/dist/esm/project-config/define-project-config.js.map +0 -1
- package/dist/esm/project-config/define-sharing-policy.d.ts +0 -35
- package/dist/esm/project-config/define-sharing-policy.d.ts.map +0 -1
- package/dist/esm/project-config/define-sharing-policy.js +0 -30
- package/dist/esm/project-config/define-sharing-policy.js.map +0 -1
- package/dist/esm/project-config/sharing-policy-validation.d.ts +0 -40
- package/dist/esm/project-config/sharing-policy-validation.d.ts.map +0 -1
- package/dist/esm/project-config/sharing-policy-validation.js +0 -143
- package/dist/esm/project-config/sharing-policy-validation.js.map +0 -1
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.d.ts +0 -23
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.d.ts.map +0 -1
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.js +0 -13
- package/dist/esm/runtime-bridge/platform-runtime-bridge.contracts.js.map +0 -1
- package/src/bootstrap/application-backend-env.contracts.ts +0 -17
- package/src/bootstrap/bootstrap-planner.ts +0 -46
- package/src/bootstrap/bootstrap.contracts.ts +0 -251
- package/src/bootstrap/bootstrap.schemas.ts +0 -164
- package/src/bootstrap/platform-runtime-env.contracts.ts +0 -99
- package/src/bootstrap/runtime-topology.contracts.ts +0 -102
- package/src/credentials/credential-generator.service.ts +0 -39
- package/src/index.ts +0 -16
- package/src/project-config/__tests__/application-modules.utils.test.ts +0 -53
- package/src/project-config/__tests__/define-framework-config.test.ts +0 -43
- package/src/project-config/__tests__/define-saas-config.test.ts +0 -210
- package/src/project-config/__tests__/loader.test.ts +0 -100
- package/src/project-config/define-framework-config.ts +0 -44
- package/src/project-config/define-infra-config.ts +0 -168
- package/src/project-config/define-minion-config.ts +0 -27
- package/src/project-config/define-platform-config.ts +0 -28
- package/src/project-config/define-platform-env-config.ts +0 -59
- package/src/project-config/define-project-config.ts +0 -63
- package/src/project-config/define-saas-config.ts +0 -171
- package/src/project-config/define-sharing-policy.ts +0 -36
- package/src/project-config/define-worker-config.ts +0 -27
- package/src/project-config/index.ts +0 -23
- package/src/project-config/loader.ts +0 -220
- package/src/project-config/shared/application-modules.schemas.ts +0 -12
- package/src/project-config/shared/application-modules.utils.ts +0 -65
- package/src/project-config/shared/backing-services.schemas.ts +0 -59
- package/src/project-config/shared/data-services.schemas.ts +0 -58
- package/src/project-config/shared/env-example-defaults.ts +0 -50
- package/src/project-config/shared/environment.schemas.ts +0 -136
- package/src/project-config/shared/infrastructure-defaults.schemas.ts +0 -47
- package/src/project-config/shared/k8s-utils.ts +0 -56
- package/src/project-config/shared/platform-services.schemas.ts +0 -33
- package/src/project-config/shared/service-definitions.schemas.ts +0 -38
- package/src/project-config/sharing-policy-validation.ts +0 -159
- package/src/release/framework-release.constants.ts +0 -2
- package/src/schemas/__tests__/platform-config.schemas.test.ts +0 -90
- package/src/schemas/framework-info.schemas.ts +0 -13
- package/src/schemas/framework-secrets.schemas.ts +0 -19
- package/src/schemas/platform-application-config.schemas.ts +0 -25
- package/src/schemas/platform-application-secrets.schemas.ts +0 -78
- package/src/schemas/platform-config.schemas.ts +0 -45
- package/src/workspace-scope/index.ts +0 -2
- package/src/workspace-scope/workspace-scope-detector.ts +0 -98
- package/src/workspace-scope/workspace-scope.schemas.ts +0 -224
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `sections.modules` lockfile section — installed-code state for the
|
|
3
|
+
* Wildo module registry.
|
|
4
|
+
*
|
|
5
|
+
* Owns the durable record of which modules a SaaS app has installed,
|
|
6
|
+
* which exact version + artifact digest is on disk, and which files
|
|
7
|
+
* the registry copied in. Sibling lockfile sections (`providers`,
|
|
8
|
+
* `i18n`) live next to this one under the canonical
|
|
9
|
+
* `wildo-saas.lock.json` envelope and are NEVER touched by code that
|
|
10
|
+
* mutates `sections.modules`.
|
|
11
|
+
*
|
|
12
|
+
* The shape mirrors `module-registry-analysis.md` KD-4 / "Lockfile
|
|
13
|
+
* Shape". Fields are intentionally minimal at Phase 0.5 — additional
|
|
14
|
+
* fields must be justified by install/update behavior rather than
|
|
15
|
+
* added preemptively.
|
|
16
|
+
*/
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
import { Sha256DigestSchema } from './digest.schemas.js';
|
|
19
|
+
/**
|
|
20
|
+
* Source label recorded with each lockfile entry. Distinguishes
|
|
21
|
+
* registry-installed code from `adopt`-promoted local code; lets the
|
|
22
|
+
* `update`/`remove` flows decide whether overwriting is a safe
|
|
23
|
+
* round-trip or a destructive operation.
|
|
24
|
+
*/
|
|
25
|
+
export const RegistryModulesInstallSourceSchema = z.enum(['install', 'update', 'adopt']);
|
|
26
|
+
/**
|
|
27
|
+
* One installed-module record. Keyed by module id in
|
|
28
|
+
* `RegistryModulesLockSectionSchema.installed`.
|
|
29
|
+
*/
|
|
30
|
+
export const RegistryModulesLockEntrySchema = z.strictObject({
|
|
31
|
+
/** Module id, mirrors the manifest's `id` (e.g. `acme/billing`). */
|
|
32
|
+
moduleId: z.string().min(1),
|
|
33
|
+
/** Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */
|
|
34
|
+
registryId: z.string().min(1),
|
|
35
|
+
/** Resolved registry URL at install time. Stored for audit + repair. */
|
|
36
|
+
registryUrl: z.string().min(1),
|
|
37
|
+
/** Domain segment under the registry (e.g. `acme`). */
|
|
38
|
+
domain: z.string().min(1),
|
|
39
|
+
/** Concrete resolved semver — never a range. */
|
|
40
|
+
version: z.string().min(1),
|
|
41
|
+
/** Original CLI input (e.g. `^1.2.0`), kept for diff visibility. */
|
|
42
|
+
requestedRange: z.string().min(1).optional(),
|
|
43
|
+
/**
|
|
44
|
+
* Artifact integrity digest, format `sha256:<64-hex-lowercase>`.
|
|
45
|
+
* Must match `ModuleVersionRecord.integrity` for the same artifact
|
|
46
|
+
* — both fields share `Sha256DigestSchema` so a Phase 5 install
|
|
47
|
+
* compares like-for-like (M-2.5).
|
|
48
|
+
*/
|
|
49
|
+
artifactDigest: Sha256DigestSchema,
|
|
50
|
+
/** ISO datetime of install for audit-log purposes. */
|
|
51
|
+
installedAt: z.iso.datetime({ offset: true }),
|
|
52
|
+
/** File paths copied into app source, relative to saas-root. */
|
|
53
|
+
files: z.array(z.string()).default([]),
|
|
54
|
+
/** Provenance flag — install vs update vs adopt. */
|
|
55
|
+
source: RegistryModulesInstallSourceSchema.optional(),
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* `sections.modules` payload. `installed` is keyed by module id.
|
|
59
|
+
*
|
|
60
|
+
* Wrapper kept as a `z.strictObject` so reviewers can find every
|
|
61
|
+
* place that adds a new top-level field; future extensions stay
|
|
62
|
+
* explicit.
|
|
63
|
+
*/
|
|
64
|
+
export const RegistryModulesLockSectionSchema = z.strictObject({
|
|
65
|
+
installed: z.record(z.string().min(1), RegistryModulesLockEntrySchema).default({}),
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=lockfile-modules-section.schemas.js.map
|
|
@@ -0,0 +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;AAEtD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAGzF;;;GAGG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,oEAAoE;IACpE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,uEAAuE;IACvE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,wEAAwE;IACxE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,uDAAuD;IACvD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,gDAAgD;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,oEAAoE;IACpE,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5C;;;;;OAKG;IACH,cAAc,EAAE,kBAAkB;IAClC,sDAAsD;IACtD,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7C,gEAAgE;IAChE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACtC,oDAAoD;IACpD,MAAM,EAAE,kCAAkC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC;AAGH;;;;;;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","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';\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 * One installed-module record. Keyed by module id in\n * `RegistryModulesLockSectionSchema.installed`.\n */\nexport const RegistryModulesLockEntrySchema = z.strictObject({\n /** Module id, mirrors the manifest's `id` (e.g. `acme/billing`). */\n moduleId: z.string().min(1),\n /** Registry id from `wildo.saas.config.ts > moduleRegistries[].id`. */\n registryId: z.string().min(1),\n /** Resolved registry URL at install time. Stored for audit + repair. */\n registryUrl: z.string().min(1),\n /** Domain segment under the registry (e.g. `acme`). */\n domain: z.string().min(1),\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 * 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,\n /** ISO datetime of install for audit-log purposes. */\n installedAt: z.iso.datetime({ offset: true }),\n /** File paths copied into app source, relative to saas-root. */\n files: z.array(z.string()).default([]),\n /** Provenance flag — install vs update vs adopt. */\n source: RegistryModulesInstallSourceSchema.optional(),\n});\nexport type RegistryModulesLockEntry = z.infer<typeof RegistryModulesLockEntrySchema>;\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});\nexport type RegistryModulesLockSection = z.infer<typeof RegistryModulesLockSectionSchema>;\n"]}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module-artifact schemas — metadata that travels alongside the zip
|
|
3
|
+
* artifact bytes (server-stored ledger rows + CLI `info` payloads
|
|
4
|
+
* + lockfile audit refs).
|
|
5
|
+
*
|
|
6
|
+
* Phase 1 landed the published-version row + integrity descriptor.
|
|
7
|
+
* Phase 3.1-bis aligned the registry server's resource model with the
|
|
8
|
+
* framework's user/org/api-key identity layer: the publish-time
|
|
9
|
+
* identity is now `ApiKeyOrganization._id` only — `ApiKeyOrganization`
|
|
10
|
+
* has no `email` field, and api-keys are typically used by automation
|
|
11
|
+
* (CI/CD), not interactively by a user. The wire schema reflects that
|
|
12
|
+
* decision: `publishedByOrgApiKeyId` replaces the old
|
|
13
|
+
* `publishedBy: { keyId, email }` envelope.
|
|
14
|
+
*
|
|
15
|
+
* Phase 5 install/update verifies `integrity` before unzipping.
|
|
16
|
+
*/
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
/**
|
|
19
|
+
* One immutable published version row. Mirrors `RegistryModuleVersion`
|
|
20
|
+
* fields documented in the analysis plan's "Registry Server Data
|
|
21
|
+
* Model" section.
|
|
22
|
+
*/
|
|
23
|
+
export declare const ModuleVersionRecordSchema: z.ZodObject<{
|
|
24
|
+
moduleId: z.ZodString;
|
|
25
|
+
version: z.ZodString;
|
|
26
|
+
manifest: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
version: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
31
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
framework: z.ZodString;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
boundaries: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
specifications: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
36
|
+
shared: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
37
|
+
frontend: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
38
|
+
backend: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
39
|
+
minions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
40
|
+
workers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
|
+
}, z.core.$strict>>;
|
|
42
|
+
dependsOn: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
modules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44
|
+
npm: z.ZodDefault<z.ZodObject<{
|
|
45
|
+
dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
46
|
+
peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
47
|
+
}, z.core.$strict>>;
|
|
48
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
49
|
+
}, z.core.$strict>>;
|
|
50
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
51
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
52
|
+
/** Engine-`FILES`-resource id of the artifact zip in storage. */
|
|
53
|
+
artifactFileId: z.ZodString;
|
|
54
|
+
/** Required `sha256:<hex>` digest of the artifact bytes. */
|
|
55
|
+
integrity: z.ZodString;
|
|
56
|
+
/** Total artifact size in bytes (informational + DoS clamp). */
|
|
57
|
+
sizeBytes: z.ZodNumber;
|
|
58
|
+
publishedAt: z.ZodISODateTime;
|
|
59
|
+
/**
|
|
60
|
+
* `ApiKeyOrganization._id` of the api-key used at publish time.
|
|
61
|
+
* The framework's `ApiKeyOrganization` is org-scoped and has no
|
|
62
|
+
* `email` / `userId` field, so the wire identity tracks the
|
|
63
|
+
* api-key only — readers who want richer publisher attribution
|
|
64
|
+
* resolve the api-key against the framework's `ORG_API_KEYS`
|
|
65
|
+
* resource separately.
|
|
66
|
+
*/
|
|
67
|
+
publishedByOrgApiKeyId: z.ZodString;
|
|
68
|
+
/** ISO datetime when the version was yanked. Soft-yank by default (KD-9). */
|
|
69
|
+
yankedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
70
|
+
yankReason: z.ZodOptional<z.ZodString>;
|
|
71
|
+
/**
|
|
72
|
+
* Reserved for future signing implementations. Format intentionally
|
|
73
|
+
* left open until the signing decision is taken (deferred per the
|
|
74
|
+
* "Deferred / Out Of Scope" section of the plan).
|
|
75
|
+
*/
|
|
76
|
+
signatures: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
export type ModuleVersionRecord = z.infer<typeof ModuleVersionRecordSchema>;
|
|
79
|
+
/**
|
|
80
|
+
* 7th-pass S-M3: wire schema for the `PUT /v1/registry/:domain/modules/:moduleId/tags/:tag`
|
|
81
|
+
* response. Documented so future CLI consumers can Zod-parse it
|
|
82
|
+
* without guessing the shape.
|
|
83
|
+
*
|
|
84
|
+
* `noChange: true` signals that the requested `(tag, version)` mapping
|
|
85
|
+
* was already in place — the registry short-circuited the repo write
|
|
86
|
+
* + audit emission to keep SIEM counts honest. Optional so successful
|
|
87
|
+
* mutations omit it. Consumers should treat absence as `false`.
|
|
88
|
+
*/
|
|
89
|
+
export declare const SetTagResponseSchema: z.ZodObject<{
|
|
90
|
+
ok: z.ZodBoolean;
|
|
91
|
+
noChange: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export type SetTagResponse = z.infer<typeof SetTagResponseSchema>;
|
|
94
|
+
//# sourceMappingURL=module-artifact.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-artifact.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/module-artifact.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpC,iEAAiE;;IAEjE,4DAA4D;;IAE5D,gEAAgE;;;IAGhE;;;;;;;OAOG;;IAEH,6EAA6E;;;IAG7E;;;;OAIG;;kBAEH,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module-artifact schemas — metadata that travels alongside the zip
|
|
3
|
+
* artifact bytes (server-stored ledger rows + CLI `info` payloads
|
|
4
|
+
* + lockfile audit refs).
|
|
5
|
+
*
|
|
6
|
+
* Phase 1 landed the published-version row + integrity descriptor.
|
|
7
|
+
* Phase 3.1-bis aligned the registry server's resource model with the
|
|
8
|
+
* framework's user/org/api-key identity layer: the publish-time
|
|
9
|
+
* identity is now `ApiKeyOrganization._id` only — `ApiKeyOrganization`
|
|
10
|
+
* has no `email` field, and api-keys are typically used by automation
|
|
11
|
+
* (CI/CD), not interactively by a user. The wire schema reflects that
|
|
12
|
+
* decision: `publishedByOrgApiKeyId` replaces the old
|
|
13
|
+
* `publishedBy: { keyId, email }` envelope.
|
|
14
|
+
*
|
|
15
|
+
* Phase 5 install/update verifies `integrity` before unzipping.
|
|
16
|
+
*/
|
|
17
|
+
import { z } from 'zod';
|
|
18
|
+
import { Sha256DigestSchema } from './digest.schemas.js';
|
|
19
|
+
import { ModuleManifestSchema } from './module-manifest.schemas.js';
|
|
20
|
+
/**
|
|
21
|
+
* One immutable published version row. Mirrors `RegistryModuleVersion`
|
|
22
|
+
* fields documented in the analysis plan's "Registry Server Data
|
|
23
|
+
* Model" section.
|
|
24
|
+
*/
|
|
25
|
+
export const ModuleVersionRecordSchema = z.strictObject({
|
|
26
|
+
moduleId: z.string().min(1),
|
|
27
|
+
version: z.string().min(1),
|
|
28
|
+
manifest: ModuleManifestSchema,
|
|
29
|
+
/** Engine-`FILES`-resource id of the artifact zip in storage. */
|
|
30
|
+
artifactFileId: z.string().min(1),
|
|
31
|
+
/** Required `sha256:<hex>` digest of the artifact bytes. */
|
|
32
|
+
integrity: Sha256DigestSchema,
|
|
33
|
+
/** Total artifact size in bytes (informational + DoS clamp). */
|
|
34
|
+
sizeBytes: z.number().int().nonnegative(),
|
|
35
|
+
publishedAt: z.iso.datetime({ offset: true }),
|
|
36
|
+
/**
|
|
37
|
+
* `ApiKeyOrganization._id` of the api-key used at publish time.
|
|
38
|
+
* The framework's `ApiKeyOrganization` is org-scoped and has no
|
|
39
|
+
* `email` / `userId` field, so the wire identity tracks the
|
|
40
|
+
* api-key only — readers who want richer publisher attribution
|
|
41
|
+
* resolve the api-key against the framework's `ORG_API_KEYS`
|
|
42
|
+
* resource separately.
|
|
43
|
+
*/
|
|
44
|
+
publishedByOrgApiKeyId: z.string().min(1),
|
|
45
|
+
/** ISO datetime when the version was yanked. Soft-yank by default (KD-9). */
|
|
46
|
+
yankedAt: z.iso.datetime({ offset: true }).optional(),
|
|
47
|
+
yankReason: z.string().optional(),
|
|
48
|
+
/**
|
|
49
|
+
* Reserved for future signing implementations. Format intentionally
|
|
50
|
+
* left open until the signing decision is taken (deferred per the
|
|
51
|
+
* "Deferred / Out Of Scope" section of the plan).
|
|
52
|
+
*/
|
|
53
|
+
signatures: z.array(z.unknown()).optional(),
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* 7th-pass S-M3: wire schema for the `PUT /v1/registry/:domain/modules/:moduleId/tags/:tag`
|
|
57
|
+
* response. Documented so future CLI consumers can Zod-parse it
|
|
58
|
+
* without guessing the shape.
|
|
59
|
+
*
|
|
60
|
+
* `noChange: true` signals that the requested `(tag, version)` mapping
|
|
61
|
+
* was already in place — the registry short-circuited the repo write
|
|
62
|
+
* + audit emission to keep SIEM counts honest. Optional so successful
|
|
63
|
+
* mutations omit it. Consumers should treat absence as `false`.
|
|
64
|
+
*/
|
|
65
|
+
export const SetTagResponseSchema = z.object({
|
|
66
|
+
ok: z.boolean(),
|
|
67
|
+
noChange: z.boolean().optional(),
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=module-artifact.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,CAAC,GAAG,CAAC,CAAC,CAAC;IACjC,4DAA4D;IAC5D,SAAS,EAAE,kBAAkB;IAC7B,gEAAgE;IAChE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,WAAW,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7C;;;;;;;OAOG;IACH,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,6EAA6E;IAC7E,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC;;;;OAIG;IACH,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAGH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE;IACf,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,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 * 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"]}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module manifest schema — `wildo.module.json` shipped inside every
|
|
3
|
+
* registry artifact.
|
|
4
|
+
*
|
|
5
|
+
* Phase 1 fleshes out the dependency / boundary contract that Phase
|
|
6
|
+
* 5+ install/update/remove flows need. The manifest is the single
|
|
7
|
+
* cross-package contract every registry client signs against; new
|
|
8
|
+
* fields require a plan amendment.
|
|
9
|
+
*
|
|
10
|
+
* Authoritative references (keep these in sync with edits below):
|
|
11
|
+
* - KD-12 — modules cannot claim arbitrary top-level app ownership;
|
|
12
|
+
* `boundaries` declares which app surfaces the artifact may write.
|
|
13
|
+
* - KD-13 — npm + module + capability dependencies are explicit.
|
|
14
|
+
* - KD-19 — runtime packages produced from installed module content
|
|
15
|
+
* must NOT import `platform-config-lib`; this is enforced
|
|
16
|
+
* downstream by Phase 5+ verification, not the manifest itself.
|
|
17
|
+
*/
|
|
18
|
+
import { z } from 'zod';
|
|
19
|
+
/**
|
|
20
|
+
* Exact `MAJOR.MINOR.PATCH[-prerelease][+build]` semver. The regex
|
|
21
|
+
* mirrors the official semver.org grammar, so manifest authors
|
|
22
|
+
* cannot publish version `^1.2.3` or `latest` and have install
|
|
23
|
+
* silently treat it as concrete.
|
|
24
|
+
*/
|
|
25
|
+
export declare const SEMVER_EXACT_REGEX: RegExp;
|
|
26
|
+
export declare const SemverExactSchema: z.ZodString;
|
|
27
|
+
/**
|
|
28
|
+
* `dependsOn.modules.<moduleId>` — other Wildo modules that this
|
|
29
|
+
* module requires. Install hard-fails by default if any required
|
|
30
|
+
* module is missing (KD-13). Range resolution mirrors npm semver
|
|
31
|
+
* semantics.
|
|
32
|
+
*/
|
|
33
|
+
export declare const ModuleManifestModuleDependenciesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
34
|
+
export type ModuleManifestModuleDependencies = z.infer<typeof ModuleManifestModuleDependenciesSchema>;
|
|
35
|
+
/**
|
|
36
|
+
* `dependsOn.npm.dependencies` / `peerDependencies` — npm packages
|
|
37
|
+
* the installed module imports at runtime. Install surfaces these
|
|
38
|
+
* to the operator but does not edit `package.json` automatically
|
|
39
|
+
* until a future `--with-deps` flow lands (KD-13).
|
|
40
|
+
*/
|
|
41
|
+
export declare const ModuleManifestNpmDependenciesSchema: z.ZodObject<{
|
|
42
|
+
dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
43
|
+
peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type ModuleManifestNpmDependencies = z.infer<typeof ModuleManifestNpmDependenciesSchema>;
|
|
46
|
+
/**
|
|
47
|
+
* `dependsOn.capabilities` — engine/platform capabilities the module
|
|
48
|
+
* requires (e.g. `EMAIL_TRANSACTIONAL`, `AI_LLM`). Phase 5+ verifies
|
|
49
|
+
* the host app's `engineCapabilities` covers each entry before
|
|
50
|
+
* install.
|
|
51
|
+
*
|
|
52
|
+
* Held as a free-form `string` array because the canonical capability
|
|
53
|
+
* vocabulary lives in `@wildo-ai/saas-models`'s
|
|
54
|
+
* `EngineCapability` enum. Re-importing that enum here would form
|
|
55
|
+
* a `platform-config-lib → saas-models` cycle for a string-list use
|
|
56
|
+
* case — Phase 5+ resolves capability names at runtime against the
|
|
57
|
+
* registry it does have access to.
|
|
58
|
+
*/
|
|
59
|
+
export declare const ModuleManifestCapabilityDependenciesSchema: z.ZodArray<z.ZodString>;
|
|
60
|
+
export type ModuleManifestCapabilityDependencies = z.infer<typeof ModuleManifestCapabilityDependenciesSchema>;
|
|
61
|
+
export declare const ModuleManifestDependenciesSchema: z.ZodObject<{
|
|
62
|
+
modules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
63
|
+
npm: z.ZodDefault<z.ZodObject<{
|
|
64
|
+
dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
65
|
+
peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
66
|
+
}, z.core.$strict>>;
|
|
67
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
export type ModuleManifestDependencies = z.infer<typeof ModuleManifestDependenciesSchema>;
|
|
70
|
+
/**
|
|
71
|
+
* Engine compatibility — the framework version range this module
|
|
72
|
+
* targets. Install hard-fails by default if the host app's framework
|
|
73
|
+
* version is outside the range.
|
|
74
|
+
*/
|
|
75
|
+
export declare const ModuleManifestEngineSchema: z.ZodObject<{
|
|
76
|
+
framework: z.ZodString;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
export type ModuleManifestEngine = z.infer<typeof ModuleManifestEngineSchema>;
|
|
79
|
+
/**
|
|
80
|
+
* `boundaries` — the per-layer surface the module is allowed to
|
|
81
|
+
* write into the host app source (KD-12). Paths are relative to the
|
|
82
|
+
* saas root; install rejects artifacts that attempt to write outside
|
|
83
|
+
* any declared boundary.
|
|
84
|
+
*
|
|
85
|
+
* Each layer is optional; modules typically declare only the layers
|
|
86
|
+
* they actually contain (a backend-only module declares `backend`
|
|
87
|
+
* + `shared` and omits `frontend` / `specifications`).
|
|
88
|
+
*/
|
|
89
|
+
export declare const ModuleManifestBoundariesSchema: z.ZodObject<{
|
|
90
|
+
specifications: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
91
|
+
shared: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
92
|
+
frontend: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
93
|
+
backend: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
94
|
+
minions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
95
|
+
workers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
export type ModuleManifestBoundaries = z.infer<typeof ModuleManifestBoundariesSchema>;
|
|
98
|
+
/**
|
|
99
|
+
* Top-level manifest. Stored at `wildo.module.json` inside every
|
|
100
|
+
* artifact zip and at the registry server alongside its version row.
|
|
101
|
+
*
|
|
102
|
+
* `id` semantics: `<domain>/<name>` (e.g. `acme/billing`) where the
|
|
103
|
+
* domain is the registry domain and `name` is locally unique within
|
|
104
|
+
* the domain. The id is reused as the lockfile entry key
|
|
105
|
+
* (`sections.modules.installed[<id>]`).
|
|
106
|
+
*/
|
|
107
|
+
export declare const ModuleManifestSchema: z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
version: z.ZodString;
|
|
110
|
+
description: z.ZodOptional<z.ZodString>;
|
|
111
|
+
longDescription: z.ZodOptional<z.ZodString>;
|
|
112
|
+
engine: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
framework: z.ZodString;
|
|
114
|
+
}, z.core.$strict>>;
|
|
115
|
+
boundaries: z.ZodOptional<z.ZodObject<{
|
|
116
|
+
specifications: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
117
|
+
shared: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
118
|
+
frontend: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
119
|
+
backend: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
120
|
+
minions: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
121
|
+
workers: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
122
|
+
}, z.core.$strict>>;
|
|
123
|
+
dependsOn: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
modules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
125
|
+
npm: z.ZodDefault<z.ZodObject<{
|
|
126
|
+
dependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
127
|
+
peerDependencies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
130
|
+
}, z.core.$strict>>;
|
|
131
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
132
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
133
|
+
export type ModuleManifest = z.infer<typeof ModuleManifestSchema>;
|
|
134
|
+
//# sourceMappingURL=module-manifest.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-manifest.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,QACwJ,CAAC;AACxL,eAAO,MAAM,iBAAiB,aAGK,CAAC;AAGpC;;;;;GAKG;AACH,eAAO,MAAM,sCAAsC,uCAA2C,CAAC;AAC/F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sCAAsC,CAAC,CAAC;AAEtG;;;;;GAKG;AACH,eAAO,MAAM,mCAAmC;;;kBAG9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,0CAA0C,yBAA6B,CAAC;AACrF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC;AAE9G,eAAO,MAAM,gCAAgC;;;;;;;kBAO3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F;;;;GAIG;AACH,eAAO,MAAM,0BAA0B;;kBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAiC9E;;;;;;;;;GASG;AACH,eAAO,MAAM,8BAA8B;;;;;;;kBAOzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;kCAeT,CAAC;AACzB,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Module manifest schema — `wildo.module.json` shipped inside every
|
|
3
|
+
* registry artifact.
|
|
4
|
+
*
|
|
5
|
+
* Phase 1 fleshes out the dependency / boundary contract that Phase
|
|
6
|
+
* 5+ install/update/remove flows need. The manifest is the single
|
|
7
|
+
* cross-package contract every registry client signs against; new
|
|
8
|
+
* fields require a plan amendment.
|
|
9
|
+
*
|
|
10
|
+
* Authoritative references (keep these in sync with edits below):
|
|
11
|
+
* - KD-12 — modules cannot claim arbitrary top-level app ownership;
|
|
12
|
+
* `boundaries` declares which app surfaces the artifact may write.
|
|
13
|
+
* - KD-13 — npm + module + capability dependencies are explicit.
|
|
14
|
+
* - KD-19 — runtime packages produced from installed module content
|
|
15
|
+
* must NOT import `platform-config-lib`; this is enforced
|
|
16
|
+
* downstream by Phase 5+ verification, not the manifest itself.
|
|
17
|
+
*/
|
|
18
|
+
import { z } from 'zod';
|
|
19
|
+
/**
|
|
20
|
+
* Semver-range schema. Accepts npm-style ranges (`^1.2.0`,
|
|
21
|
+
* `~1.2.x`, `>=1.0.0 <2.0.0`, `latest`, `*`, etc.). Phase 5
|
|
22
|
+
* resolves these via `semver.satisfies()` at install time; at
|
|
23
|
+
* authoring time we only enforce non-empty.
|
|
24
|
+
*/
|
|
25
|
+
const SemverRange = z.string().min(1).describe('npm-style semver range');
|
|
26
|
+
/**
|
|
27
|
+
* Exact `MAJOR.MINOR.PATCH[-prerelease][+build]` semver. The regex
|
|
28
|
+
* mirrors the official semver.org grammar, so manifest authors
|
|
29
|
+
* cannot publish version `^1.2.3` or `latest` and have install
|
|
30
|
+
* silently treat it as concrete.
|
|
31
|
+
*/
|
|
32
|
+
export const SEMVER_EXACT_REGEX = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
|
|
33
|
+
export const SemverExactSchema = z
|
|
34
|
+
.string()
|
|
35
|
+
.regex(SEMVER_EXACT_REGEX, 'Expected exact semver `MAJOR.MINOR.PATCH` (no ranges, no tags)')
|
|
36
|
+
.describe('Exact semver version');
|
|
37
|
+
const SemverExact = SemverExactSchema;
|
|
38
|
+
/**
|
|
39
|
+
* `dependsOn.modules.<moduleId>` — other Wildo modules that this
|
|
40
|
+
* module requires. Install hard-fails by default if any required
|
|
41
|
+
* module is missing (KD-13). Range resolution mirrors npm semver
|
|
42
|
+
* semantics.
|
|
43
|
+
*/
|
|
44
|
+
export const ModuleManifestModuleDependenciesSchema = z.record(z.string().min(1), SemverRange);
|
|
45
|
+
/**
|
|
46
|
+
* `dependsOn.npm.dependencies` / `peerDependencies` — npm packages
|
|
47
|
+
* the installed module imports at runtime. Install surfaces these
|
|
48
|
+
* to the operator but does not edit `package.json` automatically
|
|
49
|
+
* until a future `--with-deps` flow lands (KD-13).
|
|
50
|
+
*/
|
|
51
|
+
export const ModuleManifestNpmDependenciesSchema = z.strictObject({
|
|
52
|
+
dependencies: z.record(z.string().min(1), SemverRange).default({}),
|
|
53
|
+
peerDependencies: z.record(z.string().min(1), SemverRange).default({}),
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* `dependsOn.capabilities` — engine/platform capabilities the module
|
|
57
|
+
* requires (e.g. `EMAIL_TRANSACTIONAL`, `AI_LLM`). Phase 5+ verifies
|
|
58
|
+
* the host app's `engineCapabilities` covers each entry before
|
|
59
|
+
* install.
|
|
60
|
+
*
|
|
61
|
+
* Held as a free-form `string` array because the canonical capability
|
|
62
|
+
* vocabulary lives in `@wildo-ai/saas-models`'s
|
|
63
|
+
* `EngineCapability` enum. Re-importing that enum here would form
|
|
64
|
+
* a `platform-config-lib → saas-models` cycle for a string-list use
|
|
65
|
+
* case — Phase 5+ resolves capability names at runtime against the
|
|
66
|
+
* registry it does have access to.
|
|
67
|
+
*/
|
|
68
|
+
export const ModuleManifestCapabilityDependenciesSchema = z.array(z.string().min(1));
|
|
69
|
+
export const ModuleManifestDependenciesSchema = z.strictObject({
|
|
70
|
+
modules: ModuleManifestModuleDependenciesSchema.default({}),
|
|
71
|
+
npm: ModuleManifestNpmDependenciesSchema.default({
|
|
72
|
+
dependencies: {},
|
|
73
|
+
peerDependencies: {},
|
|
74
|
+
}),
|
|
75
|
+
capabilities: ModuleManifestCapabilityDependenciesSchema.default([]),
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* Engine compatibility — the framework version range this module
|
|
79
|
+
* targets. Install hard-fails by default if the host app's framework
|
|
80
|
+
* version is outside the range.
|
|
81
|
+
*/
|
|
82
|
+
export const ModuleManifestEngineSchema = z.strictObject({
|
|
83
|
+
framework: SemverRange,
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* 6th-pass M5: each entry in a `boundaries.*` array must be a
|
|
87
|
+
* RELATIVE path with no `..` segments. Without this refine:
|
|
88
|
+
* - `path.resolve(saasRoot, '/abs/path')` returns `/abs/path` on
|
|
89
|
+
* POSIX (absolute argument resets the resolve chain), so the
|
|
90
|
+
* boundary check fails for every candidate file → publish
|
|
91
|
+
* surfaces a confusing "outside boundary" error when the real
|
|
92
|
+
* problem is the boundary itself being malformed.
|
|
93
|
+
* - `'../../escape'` could legitimately resolve inside `saasRoot`
|
|
94
|
+
* after normalization, but the publisher intent is unclear and
|
|
95
|
+
* downstream zip-slip / symlink-escape guards become harder to
|
|
96
|
+
* reason about. Reject at parse time with a precise message.
|
|
97
|
+
*/
|
|
98
|
+
const RelativeBoundaryPathSchema = z
|
|
99
|
+
.string()
|
|
100
|
+
.min(1)
|
|
101
|
+
.refine((s) => {
|
|
102
|
+
// Reject absolute paths (POSIX `/...`, Windows `C:\...` or `\\server\...`).
|
|
103
|
+
if (/^([a-zA-Z]:|[\\/])/.test(s))
|
|
104
|
+
return false;
|
|
105
|
+
// Reject `..` segments after normalizing path separators.
|
|
106
|
+
const segments = s.split(/[\\/]/);
|
|
107
|
+
return !segments.includes('..');
|
|
108
|
+
}, {
|
|
109
|
+
error: 'boundary entries must be relative to the saas root and contain no `..` segments ' +
|
|
110
|
+
'(e.g. `app/src/modules/acme-billing`, NOT `/app/src/modules/acme-billing` or `../escape`)',
|
|
111
|
+
});
|
|
112
|
+
/**
|
|
113
|
+
* `boundaries` — the per-layer surface the module is allowed to
|
|
114
|
+
* write into the host app source (KD-12). Paths are relative to the
|
|
115
|
+
* saas root; install rejects artifacts that attempt to write outside
|
|
116
|
+
* any declared boundary.
|
|
117
|
+
*
|
|
118
|
+
* Each layer is optional; modules typically declare only the layers
|
|
119
|
+
* they actually contain (a backend-only module declares `backend`
|
|
120
|
+
* + `shared` and omits `frontend` / `specifications`).
|
|
121
|
+
*/
|
|
122
|
+
export const ModuleManifestBoundariesSchema = z.strictObject({
|
|
123
|
+
specifications: z.array(RelativeBoundaryPathSchema).default([]),
|
|
124
|
+
shared: z.array(RelativeBoundaryPathSchema).default([]),
|
|
125
|
+
frontend: z.array(RelativeBoundaryPathSchema).default([]),
|
|
126
|
+
backend: z.array(RelativeBoundaryPathSchema).default([]),
|
|
127
|
+
minions: z.array(RelativeBoundaryPathSchema).default([]),
|
|
128
|
+
workers: z.array(RelativeBoundaryPathSchema).default([]),
|
|
129
|
+
});
|
|
130
|
+
/**
|
|
131
|
+
* Top-level manifest. Stored at `wildo.module.json` inside every
|
|
132
|
+
* artifact zip and at the registry server alongside its version row.
|
|
133
|
+
*
|
|
134
|
+
* `id` semantics: `<domain>/<name>` (e.g. `acme/billing`) where the
|
|
135
|
+
* domain is the registry domain and `name` is locally unique within
|
|
136
|
+
* the domain. The id is reused as the lockfile entry key
|
|
137
|
+
* (`sections.modules.installed[<id>]`).
|
|
138
|
+
*/
|
|
139
|
+
export const ModuleManifestSchema = z.object({
|
|
140
|
+
id: z.string().min(1),
|
|
141
|
+
version: SemverExact,
|
|
142
|
+
description: z.string().optional(),
|
|
143
|
+
/** Free-form description of what the module ships, for `wildo registry info`. */
|
|
144
|
+
longDescription: z.string().optional(),
|
|
145
|
+
engine: ModuleManifestEngineSchema.optional(),
|
|
146
|
+
boundaries: ModuleManifestBoundariesSchema.optional(),
|
|
147
|
+
dependsOn: ModuleManifestDependenciesSchema.optional(),
|
|
148
|
+
/**
|
|
149
|
+
* Free-form key/value bag for non-load-bearing metadata
|
|
150
|
+
* (homepage, license, repository). Phase 1 keeps it open;
|
|
151
|
+
* Phase 6 may tighten it for `wildo registry publish` UX.
|
|
152
|
+
*/
|
|
153
|
+
meta: z.record(z.string().min(1), z.unknown()).optional(),
|
|
154
|
+
}).catchall(z.unknown());
|
|
155
|
+
//# sourceMappingURL=module-manifest.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module-manifest.schemas.js","sourceRoot":"","sources":["../../../../src/registry/module-manifest.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAC7B,qLAAqL,CAAC;AACxL,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,EAAE;KACR,KAAK,CAAC,kBAAkB,EAAE,gEAAgE,CAAC;KAC3F,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AACpC,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AAG/F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,YAAY,CAAC;IAChE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClE,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACvE,CAAC,CAAC;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AAGrF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,YAAY,CAAC;IAC7D,OAAO,EAAE,sCAAsC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC3D,GAAG,EAAE,mCAAmC,CAAC,OAAO,CAAC;QAC/C,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,EAAE;KACrB,CAAC;IACF,YAAY,EAAE,0CAA0C,CAAC,OAAO,CAAC,EAAE,CAAC;CACrE,CAAC,CAAC;AAGH;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,YAAY,CAAC;IACvD,SAAS,EAAE,WAAW;CACvB,CAAC,CAAC;AAGH;;;;;;;;;;;;GAYG;AACH,MAAM,0BAA0B,GAAG,CAAC;KACjC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,MAAM,CACL,CAAC,CAAC,EAAE,EAAE;IACJ,4EAA4E;IAC5E,IAAI,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,KAAK,CAAC;IAC/C,0DAA0D;IAC1D,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC,EACD;IACE,KAAK,EACH,kFAAkF;QAClF,2FAA2F;CAC9F,CACF,CAAC;AAEJ;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3D,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/D,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACvD,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACzD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACxD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CACzD,CAAC,CAAC;AAGH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,iFAAiF;IACjF,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,8BAA8B,CAAC,QAAQ,EAAE;IACrD,SAAS,EAAE,gCAAgC,CAAC,QAAQ,EAAE;IACtD;;;;OAIG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC1D,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC","sourcesContent":["/**\n * Module manifest schema — `wildo.module.json` shipped inside every\n * registry artifact.\n *\n * Phase 1 fleshes out the dependency / boundary contract that Phase\n * 5+ install/update/remove flows need. The manifest is the single\n * cross-package contract every registry client signs against; new\n * fields require a plan amendment.\n *\n * Authoritative references (keep these in sync with edits below):\n * - KD-12 — modules cannot claim arbitrary top-level app ownership;\n * `boundaries` declares which app surfaces the artifact may write.\n * - KD-13 — npm + module + capability dependencies are explicit.\n * - KD-19 — runtime packages produced from installed module content\n * must NOT import `platform-config-lib`; this is enforced\n * downstream by Phase 5+ verification, not the manifest itself.\n */\n\nimport { z } from 'zod';\n\n/**\n * Semver-range schema. Accepts npm-style ranges (`^1.2.0`,\n * `~1.2.x`, `>=1.0.0 <2.0.0`, `latest`, `*`, etc.). Phase 5\n * resolves these via `semver.satisfies()` at install time; at\n * authoring time we only enforce non-empty.\n */\nconst SemverRange = z.string().min(1).describe('npm-style semver range');\n\n/**\n * Exact `MAJOR.MINOR.PATCH[-prerelease][+build]` semver. The regex\n * mirrors the official semver.org grammar, so manifest authors\n * cannot publish version `^1.2.3` or `latest` and have install\n * silently treat it as concrete.\n */\nexport const SEMVER_EXACT_REGEX =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\nexport const SemverExactSchema = z\n .string()\n .regex(SEMVER_EXACT_REGEX, 'Expected exact semver `MAJOR.MINOR.PATCH` (no ranges, no tags)')\n .describe('Exact semver version');\nconst SemverExact = SemverExactSchema;\n\n/**\n * `dependsOn.modules.<moduleId>` — other Wildo modules that this\n * module requires. Install hard-fails by default if any required\n * module is missing (KD-13). Range resolution mirrors npm semver\n * semantics.\n */\nexport const ModuleManifestModuleDependenciesSchema = z.record(z.string().min(1), SemverRange);\nexport type ModuleManifestModuleDependencies = z.infer<typeof ModuleManifestModuleDependenciesSchema>;\n\n/**\n * `dependsOn.npm.dependencies` / `peerDependencies` — npm packages\n * the installed module imports at runtime. Install surfaces these\n * to the operator but does not edit `package.json` automatically\n * until a future `--with-deps` flow lands (KD-13).\n */\nexport const ModuleManifestNpmDependenciesSchema = z.strictObject({\n dependencies: z.record(z.string().min(1), SemverRange).default({}),\n peerDependencies: z.record(z.string().min(1), SemverRange).default({}),\n});\nexport type ModuleManifestNpmDependencies = z.infer<typeof ModuleManifestNpmDependenciesSchema>;\n\n/**\n * `dependsOn.capabilities` — engine/platform capabilities the module\n * requires (e.g. `EMAIL_TRANSACTIONAL`, `AI_LLM`). Phase 5+ verifies\n * the host app's `engineCapabilities` covers each entry before\n * install.\n *\n * Held as a free-form `string` array because the canonical capability\n * vocabulary lives in `@wildo-ai/saas-models`'s\n * `EngineCapability` enum. Re-importing that enum here would form\n * a `platform-config-lib → saas-models` cycle for a string-list use\n * case — Phase 5+ resolves capability names at runtime against the\n * registry it does have access to.\n */\nexport const ModuleManifestCapabilityDependenciesSchema = z.array(z.string().min(1));\nexport type ModuleManifestCapabilityDependencies = z.infer<typeof ModuleManifestCapabilityDependenciesSchema>;\n\nexport const ModuleManifestDependenciesSchema = z.strictObject({\n modules: ModuleManifestModuleDependenciesSchema.default({}),\n npm: ModuleManifestNpmDependenciesSchema.default({\n dependencies: {},\n peerDependencies: {},\n }),\n capabilities: ModuleManifestCapabilityDependenciesSchema.default([]),\n});\nexport type ModuleManifestDependencies = z.infer<typeof ModuleManifestDependenciesSchema>;\n\n/**\n * Engine compatibility — the framework version range this module\n * targets. Install hard-fails by default if the host app's framework\n * version is outside the range.\n */\nexport const ModuleManifestEngineSchema = z.strictObject({\n framework: SemverRange,\n});\nexport type ModuleManifestEngine = z.infer<typeof ModuleManifestEngineSchema>;\n\n/**\n * 6th-pass M5: each entry in a `boundaries.*` array must be a\n * RELATIVE path with no `..` segments. Without this refine:\n * - `path.resolve(saasRoot, '/abs/path')` returns `/abs/path` on\n * POSIX (absolute argument resets the resolve chain), so the\n * boundary check fails for every candidate file → publish\n * surfaces a confusing \"outside boundary\" error when the real\n * problem is the boundary itself being malformed.\n * - `'../../escape'` could legitimately resolve inside `saasRoot`\n * after normalization, but the publisher intent is unclear and\n * downstream zip-slip / symlink-escape guards become harder to\n * reason about. Reject at parse time with a precise message.\n */\nconst RelativeBoundaryPathSchema = z\n .string()\n .min(1)\n .refine(\n (s) => {\n // Reject absolute paths (POSIX `/...`, Windows `C:\\...` or `\\\\server\\...`).\n if (/^([a-zA-Z]:|[\\\\/])/.test(s)) return false;\n // Reject `..` segments after normalizing path separators.\n const segments = s.split(/[\\\\/]/);\n return !segments.includes('..');\n },\n {\n error:\n 'boundary entries must be relative to the saas root and contain no `..` segments ' +\n '(e.g. `app/src/modules/acme-billing`, NOT `/app/src/modules/acme-billing` or `../escape`)',\n },\n );\n\n/**\n * `boundaries` — the per-layer surface the module is allowed to\n * write into the host app source (KD-12). Paths are relative to the\n * saas root; install rejects artifacts that attempt to write outside\n * any declared boundary.\n *\n * Each layer is optional; modules typically declare only the layers\n * they actually contain (a backend-only module declares `backend`\n * + `shared` and omits `frontend` / `specifications`).\n */\nexport const ModuleManifestBoundariesSchema = z.strictObject({\n specifications: z.array(RelativeBoundaryPathSchema).default([]),\n shared: z.array(RelativeBoundaryPathSchema).default([]),\n frontend: z.array(RelativeBoundaryPathSchema).default([]),\n backend: z.array(RelativeBoundaryPathSchema).default([]),\n minions: z.array(RelativeBoundaryPathSchema).default([]),\n workers: z.array(RelativeBoundaryPathSchema).default([]),\n});\nexport type ModuleManifestBoundaries = z.infer<typeof ModuleManifestBoundariesSchema>;\n\n/**\n * Top-level manifest. Stored at `wildo.module.json` inside every\n * artifact zip and at the registry server alongside its version row.\n *\n * `id` semantics: `<domain>/<name>` (e.g. `acme/billing`) where the\n * domain is the registry domain and `name` is locally unique within\n * the domain. The id is reused as the lockfile entry key\n * (`sections.modules.installed[<id>]`).\n */\nexport const ModuleManifestSchema = z.object({\n id: z.string().min(1),\n version: SemverExact,\n description: z.string().optional(),\n /** Free-form description of what the module ships, for `wildo registry info`. */\n longDescription: z.string().optional(),\n engine: ModuleManifestEngineSchema.optional(),\n boundaries: ModuleManifestBoundariesSchema.optional(),\n dependsOn: ModuleManifestDependenciesSchema.optional(),\n /**\n * Free-form key/value bag for non-load-bearing metadata\n * (homepage, license, repository). Phase 1 keeps it open;\n * Phase 6 may tighten it for `wildo registry publish` UX.\n */\n meta: z.record(z.string().min(1), z.unknown()).optional(),\n}).catchall(z.unknown());\nexport type ModuleManifest = z.infer<typeof ModuleManifestSchema>;\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App-level registry configuration — the
|
|
3
|
+
* `wildo.saas.config.ts > moduleRegistries` array.
|
|
4
|
+
*
|
|
5
|
+
* Phase 0.5 lands the schema only. The actual `defineSaasConfig`
|
|
6
|
+
* extension (KD-16) lands in Phase 4 alongside `wildo registry
|
|
7
|
+
* login`/`whoami` so that authoring + auth-config land in the same
|
|
8
|
+
* pass. Phase 1 may also add per-entry policy fields (e.g. default
|
|
9
|
+
* resolution behavior, scope, secret refs) — keep this surface
|
|
10
|
+
* minimal until those flows are designed.
|
|
11
|
+
*
|
|
12
|
+
* Credentials are intentionally NOT recorded here — they live in
|
|
13
|
+
* per-machine CLI storage (KD-11). The app-level config only points
|
|
14
|
+
* at registry endpoints.
|
|
15
|
+
*/
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
export declare const RegistryConfigEntrySchema: z.ZodObject<{
|
|
18
|
+
/** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
/** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
|
|
21
|
+
url: z.ZodURL;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
export type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;
|
|
24
|
+
export declare const RegistryConfigSchema: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
25
|
+
/** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */
|
|
26
|
+
id: z.ZodString;
|
|
27
|
+
/** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
|
|
28
|
+
url: z.ZodURL;
|
|
29
|
+
}, z.core.$strict>>>;
|
|
30
|
+
export type RegistryConfig = z.infer<typeof RegistryConfigSchema>;
|
|
31
|
+
//# sourceMappingURL=registry-config.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-config.schemas.d.ts","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,yBAAyB;IACpC,qEAAqE;;IAErE,+DAA+D;;kBAE/D,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;IAP/B,qEAAqE;;IAErE,+DAA+D;;oBAKiB,CAAC;AACnF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App-level registry configuration — the
|
|
3
|
+
* `wildo.saas.config.ts > moduleRegistries` array.
|
|
4
|
+
*
|
|
5
|
+
* Phase 0.5 lands the schema only. The actual `defineSaasConfig`
|
|
6
|
+
* extension (KD-16) lands in Phase 4 alongside `wildo registry
|
|
7
|
+
* login`/`whoami` so that authoring + auth-config land in the same
|
|
8
|
+
* pass. Phase 1 may also add per-entry policy fields (e.g. default
|
|
9
|
+
* resolution behavior, scope, secret refs) — keep this surface
|
|
10
|
+
* minimal until those flows are designed.
|
|
11
|
+
*
|
|
12
|
+
* Credentials are intentionally NOT recorded here — they live in
|
|
13
|
+
* per-machine CLI storage (KD-11). The app-level config only points
|
|
14
|
+
* at registry endpoints.
|
|
15
|
+
*/
|
|
16
|
+
import { z } from 'zod';
|
|
17
|
+
export const RegistryConfigEntrySchema = z.strictObject({
|
|
18
|
+
/** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */
|
|
19
|
+
id: z.string().min(1),
|
|
20
|
+
/** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */
|
|
21
|
+
url: z.url(),
|
|
22
|
+
});
|
|
23
|
+
export const RegistryConfigSchema = z.array(RegistryConfigEntrySchema).default([]);
|
|
24
|
+
//# sourceMappingURL=registry-config.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-config.schemas.js","sourceRoot":"","sources":["../../../../src/registry/registry-config.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,YAAY,CAAC;IACtD,qEAAqE;IACrE,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,+DAA+D;IAC/D,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE;CACb,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC","sourcesContent":["/**\n * App-level registry configuration — the\n * `wildo.saas.config.ts > moduleRegistries` array.\n *\n * Phase 0.5 lands the schema only. The actual `defineSaasConfig`\n * extension (KD-16) lands in Phase 4 alongside `wildo registry\n * login`/`whoami` so that authoring + auth-config land in the same\n * pass. Phase 1 may also add per-entry policy fields (e.g. default\n * resolution behavior, scope, secret refs) — keep this surface\n * minimal until those flows are designed.\n *\n * Credentials are intentionally NOT recorded here — they live in\n * per-machine CLI storage (KD-11). The app-level config only points\n * at registry endpoints.\n */\n\nimport { z } from 'zod';\n\nexport const RegistryConfigEntrySchema = z.strictObject({\n /** Stable id used by lockfile entries + CLI flags (e.g. `wildo`). */\n id: z.string().min(1),\n /** Registry HTTP origin (e.g. `https://registry.wildo.ai`). */\n url: z.url(),\n});\nexport type RegistryConfigEntry = z.infer<typeof RegistryConfigEntrySchema>;\n\nexport const RegistryConfigSchema = z.array(RegistryConfigEntrySchema).default([]);\nexport type RegistryConfig = z.infer<typeof RegistryConfigSchema>;\n"]}
|