@mannyc1/ts-release 0.0.6 → 0.2.2
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/ARCHITECTURE.md +124 -87
- package/CHANGELOG.md +115 -0
- package/LICENSE +21 -0
- package/README.md +272 -540
- package/SPEC.md +206 -305
- package/apps/release-ts/README.md +32 -0
- package/apps/release-ts/src/cli/command.ts +164 -0
- package/apps/release-ts/src/cli/commands.ts +351 -0
- package/apps/release-ts/src/cli/main.ts +43 -0
- package/apps/release-ts/src/cli/node-main.ts +49 -0
- package/apps/ts-release-agents/LICENSE +21 -0
- package/apps/ts-release-agents/README.md +21 -0
- package/apps/ts-release-agents/evals/cases.json +11 -0
- package/apps/ts-release-agents/manifests/claude.json +5 -0
- package/apps/ts-release-agents/manifests/codex.json +5 -0
- package/apps/ts-release-agents/package.json +11 -0
- package/apps/ts-release-agents/skills/release/SKILL.md +48 -0
- package/apps/ts-release-agents/skills/release/references/configuration.md +18 -0
- package/apps/ts-release-agents/skills/release/references/recovery.md +10 -0
- package/apps/ts-release-agents/skills/release/references/staged-workflow.md +12 -0
- package/apps/ts-release-agents/skills/release/references/target-selection.md +13 -0
- package/apps/ts-release-agents/skills/release/references/verification.md +14 -0
- package/apps/ts-release-agents/src/build.ts +105 -0
- package/apps/ts-release-agents/src/check.ts +117 -0
- package/apps/ts-release-agents/src/install.ts +121 -0
- package/apps/ts-release-agents/test/contract.test.ts +56 -0
- package/apps/ts-release-agents/tsconfig.json +5 -0
- package/dist/api/api.d.ts +15 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/api.js +244 -0
- package/dist/api/api.js.map +1 -0
- package/dist/api/errors.d.ts +39 -0
- package/dist/api/errors.d.ts.map +1 -0
- package/dist/api/errors.js +32 -0
- package/dist/api/errors.js.map +1 -0
- package/dist/api/input.d.ts +10 -0
- package/dist/api/input.d.ts.map +1 -0
- package/dist/api/input.js +73 -0
- package/dist/api/input.js.map +1 -0
- package/dist/api/runtime.d.ts +18 -0
- package/dist/api/runtime.d.ts.map +1 -0
- package/dist/api/runtime.js +7 -0
- package/dist/api/runtime.js.map +1 -0
- package/dist/api/types.d.ts +76 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +17 -0
- package/dist/api/types.js.map +1 -0
- package/dist/bin/ts-release.js +39239 -0
- package/dist/capabilities/bun-targets.d.ts +3 -0
- package/dist/capabilities/bun-targets.d.ts.map +1 -0
- package/dist/capabilities/bun-targets.js +3 -0
- package/dist/capabilities/bun-targets.js.map +1 -0
- package/dist/capabilities/field-ownership.d.ts +17 -0
- package/dist/capabilities/field-ownership.d.ts.map +1 -0
- package/dist/capabilities/field-ownership.js +40 -0
- package/dist/capabilities/field-ownership.js.map +1 -0
- package/dist/capabilities/module.d.ts +91 -0
- package/dist/capabilities/module.d.ts.map +1 -0
- package/dist/capabilities/module.js +2 -0
- package/dist/capabilities/module.js.map +1 -0
- package/dist/capabilities/registry.d.ts +829 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +291 -0
- package/dist/capabilities/registry.js.map +1 -0
- package/dist/config/config.d.ts +6 -0
- package/dist/config/config.d.ts.map +1 -0
- package/dist/config/config.js +42 -0
- package/dist/config/config.js.map +1 -0
- package/dist/correction/coordinator.d.ts +248 -0
- package/dist/correction/coordinator.d.ts.map +1 -0
- package/dist/correction/coordinator.js +274 -0
- package/dist/correction/coordinator.js.map +1 -0
- package/dist/correction/index.d.ts +3 -0
- package/dist/correction/index.d.ts.map +1 -0
- package/dist/correction/index.js +3 -0
- package/dist/correction/index.js.map +1 -0
- package/dist/correction/intent.d.ts +111 -0
- package/dist/correction/intent.d.ts.map +1 -0
- package/dist/correction/intent.js +146 -0
- package/dist/correction/intent.js.map +1 -0
- package/dist/drivers/archive.d.ts +8 -0
- package/dist/drivers/archive.d.ts.map +1 -0
- package/dist/drivers/archive.js +101 -0
- package/dist/drivers/archive.js.map +1 -0
- package/dist/drivers/contain.d.ts +6 -0
- package/dist/drivers/contain.d.ts.map +1 -0
- package/dist/drivers/contain.js +17 -0
- package/dist/drivers/contain.js.map +1 -0
- package/dist/drivers/environment.d.ts +4 -0
- package/dist/drivers/environment.d.ts.map +1 -0
- package/dist/drivers/environment.js +18 -0
- package/dist/drivers/environment.js.map +1 -0
- package/dist/drivers/errors.d.ts +9 -0
- package/dist/drivers/errors.d.ts.map +1 -0
- package/dist/drivers/errors.js +6 -0
- package/dist/drivers/errors.js.map +1 -0
- package/dist/drivers/glob.d.ts +2 -0
- package/dist/drivers/glob.d.ts.map +1 -0
- package/dist/drivers/glob.js +162 -0
- package/dist/drivers/glob.js.map +1 -0
- package/dist/drivers/process.d.ts +48 -0
- package/dist/drivers/process.d.ts.map +1 -0
- package/dist/drivers/process.js +257 -0
- package/dist/drivers/process.js.map +1 -0
- package/dist/drivers/redact.d.ts +4 -0
- package/dist/drivers/redact.d.ts.map +1 -0
- package/dist/drivers/redact.js +24 -0
- package/dist/drivers/redact.js.map +1 -0
- package/dist/drivers/seccomp-helper-source.d.ts +7 -0
- package/dist/drivers/seccomp-helper-source.d.ts.map +1 -0
- package/dist/drivers/seccomp-helper-source.js +121 -0
- package/dist/drivers/seccomp-helper-source.js.map +1 -0
- package/dist/drivers/utils.d.ts +4 -0
- package/dist/drivers/utils.d.ts.map +1 -0
- package/dist/drivers/utils.js +5 -0
- package/dist/drivers/utils.js.map +1 -0
- package/dist/drivers/workspace.d.ts +6 -0
- package/dist/drivers/workspace.d.ts.map +1 -0
- package/dist/drivers/workspace.js +49 -0
- package/dist/drivers/workspace.js.map +1 -0
- package/dist/extensions/provider-adapter.d.ts +48 -0
- package/dist/extensions/provider-adapter.d.ts.map +1 -0
- package/dist/extensions/provider-adapter.js +64 -0
- package/dist/extensions/provider-adapter.js.map +1 -0
- package/dist/host.d.ts +33 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +20 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/model/artifact-collection.d.ts +84 -0
- package/dist/model/artifact-collection.d.ts.map +1 -0
- package/dist/model/artifact-collection.js +185 -0
- package/dist/model/artifact-collection.js.map +1 -0
- package/dist/model/authority.d.ts +89 -0
- package/dist/model/authority.d.ts.map +1 -0
- package/dist/model/authority.js +80 -0
- package/dist/model/authority.js.map +1 -0
- package/dist/model/bun-targets.d.ts +34 -0
- package/dist/model/bun-targets.d.ts.map +1 -0
- package/dist/model/bun-targets.js +17 -0
- package/dist/model/bun-targets.js.map +1 -0
- package/dist/model/canonical.d.ts +8 -0
- package/dist/model/canonical.d.ts.map +1 -0
- package/dist/model/canonical.js +205 -0
- package/dist/model/canonical.js.map +1 -0
- package/dist/model/catalog.d.ts +76 -0
- package/dist/model/catalog.d.ts.map +1 -0
- package/dist/model/catalog.js +174 -0
- package/dist/model/catalog.js.map +1 -0
- package/dist/model/digest.d.ts +53 -0
- package/dist/model/digest.d.ts.map +1 -0
- package/dist/model/digest.js +127 -0
- package/dist/model/digest.js.map +1 -0
- package/dist/model/errors.d.ts +14 -0
- package/dist/model/errors.d.ts.map +1 -0
- package/dist/model/errors.js +8 -0
- package/dist/model/errors.js.map +1 -0
- package/dist/model/primitives.d.ts +19 -0
- package/dist/model/primitives.d.ts.map +1 -0
- package/dist/model/primitives.js +18 -0
- package/dist/model/primitives.js.map +1 -0
- package/dist/model/pypi.d.ts +12 -0
- package/dist/model/pypi.d.ts.map +1 -0
- package/dist/model/pypi.js +20 -0
- package/dist/model/pypi.js.map +1 -0
- package/dist/model/python-distribution.d.ts +33 -0
- package/dist/model/python-distribution.d.ts.map +1 -0
- package/dist/model/python-distribution.js +367 -0
- package/dist/model/python-distribution.js.map +1 -0
- package/dist/model/secret-patterns.d.ts +2 -0
- package/dist/model/secret-patterns.d.ts.map +1 -0
- package/dist/model/secret-patterns.js +12 -0
- package/dist/model/secret-patterns.js.map +1 -0
- package/dist/platform/bun.d.ts +7 -0
- package/dist/platform/bun.d.ts.map +1 -0
- package/dist/platform/bun.js +15 -0
- package/dist/platform/bun.js.map +1 -0
- package/dist/platform/credentials.d.ts +32 -0
- package/dist/platform/credentials.d.ts.map +1 -0
- package/dist/platform/credentials.js +772 -0
- package/dist/platform/credentials.js.map +1 -0
- package/dist/platform/host-support.d.ts +2 -0
- package/dist/platform/host-support.d.ts.map +1 -0
- package/dist/platform/host-support.js +4 -0
- package/dist/platform/host-support.js.map +1 -0
- package/dist/platform/node.d.ts +7 -0
- package/dist/platform/node.d.ts.map +1 -0
- package/dist/platform/node.js +15 -0
- package/dist/platform/node.js.map +1 -0
- package/dist/platform/release-runtime.d.ts +11 -0
- package/dist/platform/release-runtime.d.ts.map +1 -0
- package/dist/platform/release-runtime.js +34 -0
- package/dist/platform/release-runtime.js.map +1 -0
- package/dist/platform/services.d.ts +15 -0
- package/dist/platform/services.d.ts.map +1 -0
- package/dist/platform/services.js +30 -0
- package/dist/platform/services.js.map +1 -0
- package/dist/platform/source-observer.d.ts +5 -0
- package/dist/platform/source-observer.d.ts.map +1 -0
- package/dist/platform/source-observer.js +159 -0
- package/dist/platform/source-observer.js.map +1 -0
- package/dist/provider-sdk.d.ts +14 -0
- package/dist/provider-sdk.d.ts.map +1 -0
- package/dist/provider-sdk.js +10 -0
- package/dist/provider-sdk.js.map +1 -0
- package/dist/publication/adapter.d.ts +212 -0
- package/dist/publication/adapter.d.ts.map +1 -0
- package/dist/publication/adapter.js +83 -0
- package/dist/publication/adapter.js.map +1 -0
- package/dist/publication/authority.d.ts +137 -0
- package/dist/publication/authority.d.ts.map +1 -0
- package/dist/publication/authority.js +233 -0
- package/dist/publication/authority.js.map +1 -0
- package/dist/publication/catalog-git.d.ts +37 -0
- package/dist/publication/catalog-git.d.ts.map +1 -0
- package/dist/publication/catalog-git.js +451 -0
- package/dist/publication/catalog-git.js.map +1 -0
- package/dist/publication/claim.d.ts +39 -0
- package/dist/publication/claim.d.ts.map +1 -0
- package/dist/publication/claim.js +31 -0
- package/dist/publication/claim.js.map +1 -0
- package/dist/publication/coordinator.d.ts +246 -0
- package/dist/publication/coordinator.d.ts.map +1 -0
- package/dist/publication/coordinator.js +370 -0
- package/dist/publication/coordinator.js.map +1 -0
- package/dist/publication/github.d.ts +36 -0
- package/dist/publication/github.d.ts.map +1 -0
- package/dist/publication/github.js +644 -0
- package/dist/publication/github.js.map +1 -0
- package/dist/publication/http.d.ts +69 -0
- package/dist/publication/http.d.ts.map +1 -0
- package/dist/publication/http.js +29 -0
- package/dist/publication/http.js.map +1 -0
- package/dist/publication/index.d.ts +5 -0
- package/dist/publication/index.d.ts.map +1 -0
- package/dist/publication/index.js +5 -0
- package/dist/publication/index.js.map +1 -0
- package/dist/publication/npm.d.ts +40 -0
- package/dist/publication/npm.d.ts.map +1 -0
- package/dist/publication/npm.js +359 -0
- package/dist/publication/npm.js.map +1 -0
- package/dist/publication/profiles.d.ts +136 -0
- package/dist/publication/profiles.d.ts.map +1 -0
- package/dist/publication/profiles.js +90 -0
- package/dist/publication/profiles.js.map +1 -0
- package/dist/publication/publisher.d.ts +82 -0
- package/dist/publication/publisher.d.ts.map +1 -0
- package/dist/publication/publisher.js +53 -0
- package/dist/publication/publisher.js.map +1 -0
- package/dist/publication/pypi.d.ts +45 -0
- package/dist/publication/pypi.d.ts.map +1 -0
- package/dist/publication/pypi.js +369 -0
- package/dist/publication/pypi.js.map +1 -0
- package/dist/publication/recovery.d.ts +663 -0
- package/dist/publication/recovery.d.ts.map +1 -0
- package/dist/publication/recovery.js +252 -0
- package/dist/publication/recovery.js.map +1 -0
- package/dist/publication/report.d.ts +1061 -0
- package/dist/publication/report.d.ts.map +1 -0
- package/dist/publication/report.js +441 -0
- package/dist/publication/report.js.map +1 -0
- package/dist/recipes/config.d.ts +296 -0
- package/dist/recipes/config.d.ts.map +1 -0
- package/dist/recipes/config.js +325 -0
- package/dist/recipes/config.js.map +1 -0
- package/dist/release/capabilities.d.ts +12 -0
- package/dist/release/capabilities.d.ts.map +1 -0
- package/dist/release/capabilities.js +395 -0
- package/dist/release/capabilities.js.map +1 -0
- package/dist/release/compiler.d.ts +5 -0
- package/dist/release/compiler.d.ts.map +1 -0
- package/dist/release/compiler.js +19 -0
- package/dist/release/compiler.js.map +1 -0
- package/dist/release/config.d.ts +5 -0
- package/dist/release/config.d.ts.map +1 -0
- package/dist/release/config.js +10 -0
- package/dist/release/config.js.map +1 -0
- package/dist/release/context.d.ts +96 -0
- package/dist/release/context.d.ts.map +1 -0
- package/dist/release/context.js +168 -0
- package/dist/release/context.js.map +1 -0
- package/dist/release/graph.d.ts +271 -0
- package/dist/release/graph.d.ts.map +1 -0
- package/dist/release/graph.js +766 -0
- package/dist/release/graph.js.map +1 -0
- package/dist/release/inspect.d.ts +88 -0
- package/dist/release/inspect.d.ts.map +1 -0
- package/dist/release/inspect.js +75 -0
- package/dist/release/inspect.js.map +1 -0
- package/dist/release/prepare.d.ts +24 -0
- package/dist/release/prepare.d.ts.map +1 -0
- package/dist/release/prepare.js +1116 -0
- package/dist/release/prepare.js.map +1 -0
- package/dist/release/prepared-ref.d.ts +60 -0
- package/dist/release/prepared-ref.d.ts.map +1 -0
- package/dist/release/prepared-ref.js +131 -0
- package/dist/release/prepared-ref.js.map +1 -0
- package/dist/release/prepared-store.d.ts +90 -0
- package/dist/release/prepared-store.d.ts.map +1 -0
- package/dist/release/prepared-store.js +337 -0
- package/dist/release/prepared-store.js.map +1 -0
- package/dist/release/prepared.d.ts +172 -0
- package/dist/release/prepared.d.ts.map +1 -0
- package/dist/release/prepared.js +268 -0
- package/dist/release/prepared.js.map +1 -0
- package/dist/release/staging.d.ts +31 -0
- package/dist/release/staging.d.ts.map +1 -0
- package/dist/release/staging.js +218 -0
- package/dist/release/staging.js.map +1 -0
- package/dist/resolve/authored.d.ts +53 -0
- package/dist/resolve/authored.d.ts.map +1 -0
- package/dist/resolve/authored.js +55 -0
- package/dist/resolve/authored.js.map +1 -0
- package/dist/resolve/encode.d.ts +3 -0
- package/dist/resolve/encode.d.ts.map +1 -0
- package/dist/resolve/encode.js +21 -0
- package/dist/resolve/encode.js.map +1 -0
- package/dist/resolve/errors.d.ts +7 -0
- package/dist/resolve/errors.d.ts.map +1 -0
- package/dist/resolve/errors.js +17 -0
- package/dist/resolve/errors.js.map +1 -0
- package/dist/resolve/facts.d.ts +12 -0
- package/dist/resolve/facts.d.ts.map +1 -0
- package/dist/resolve/facts.js +18 -0
- package/dist/resolve/facts.js.map +1 -0
- package/dist/resolve/resolve.d.ts +10 -0
- package/dist/resolve/resolve.d.ts.map +1 -0
- package/dist/resolve/resolve.js +242 -0
- package/dist/resolve/resolve.js.map +1 -0
- package/dist/store.d.ts +11 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +9 -0
- package/dist/store.js.map +1 -0
- package/examples/README.md +20 -30
- package/examples/github-release/release.config.json +11 -18
- package/examples/homebrew-tap/README.md +11 -0
- package/examples/homebrew-tap/release.config.json +40 -28
- package/examples/multi-target/release.config.json +28 -53
- package/examples/npm-first-publish/release.config.json +23 -25
- package/examples/npm-only/release.config.json +22 -30
- package/examples/portable-cli/README.md +17 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-darwin-arm64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-darwin-x64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-linux-arm64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-linux-x64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-windows-x64.exe +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-macosx_10_15_x86_64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-macosx_11_0_arm64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-manylinux2014_aarch64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-manylinux2014_x86_64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-win_amd64.whl +1 -0
- package/examples/portable-cli/package.json +9 -0
- package/examples/portable-cli/release.config.json +53 -0
- package/examples/portable-cli/src/cli.ts +3 -0
- package/examples/pypi-registry/README.md +8 -0
- package/examples/scoop-bucket/README.md +10 -0
- package/examples/scoop-bucket/release.config.json +40 -30
- package/package.json +61 -154
- package/src/api/api.ts +365 -0
- package/src/api/errors.ts +36 -0
- package/src/api/input.ts +92 -0
- package/src/api/runtime.ts +14 -0
- package/src/api/types.ts +103 -0
- package/src/capabilities/bun-targets.ts +2 -0
- package/src/capabilities/field-ownership.ts +60 -0
- package/src/capabilities/module.ts +158 -0
- package/src/capabilities/registry.ts +333 -0
- package/src/config/config.ts +48 -0
- package/src/correction/coordinator.ts +336 -0
- package/src/correction/index.ts +2 -0
- package/src/correction/intent.ts +172 -0
- package/src/drivers/archive.ts +102 -0
- package/src/drivers/contain.ts +20 -0
- package/src/drivers/environment.ts +28 -0
- package/src/drivers/errors.ts +6 -0
- package/src/drivers/glob.ts +137 -0
- package/src/drivers/process.ts +340 -0
- package/src/drivers/redact.ts +31 -0
- package/src/drivers/seccomp-helper-source.ts +121 -0
- package/src/drivers/utils.ts +10 -0
- package/src/drivers/workspace.ts +40 -0
- package/src/extensions/provider-adapter.ts +99 -0
- package/src/host.ts +140 -0
- package/src/index.ts +64 -0
- package/src/model/artifact-collection.ts +237 -0
- package/src/model/authority.ts +116 -0
- package/src/model/bun-targets.ts +34 -0
- package/src/model/canonical.ts +205 -0
- package/src/model/catalog.ts +220 -0
- package/src/model/digest.ts +172 -0
- package/src/model/errors.ts +6 -0
- package/src/model/primitives.ts +37 -0
- package/src/model/pypi.ts +30 -0
- package/src/model/python-distribution.ts +360 -0
- package/src/model/secret-patterns.ts +11 -0
- package/src/platform/bun.ts +38 -0
- package/src/platform/credentials.ts +1083 -0
- package/src/platform/host-support.ts +4 -0
- package/src/platform/node.ts +38 -0
- package/src/platform/release-runtime.ts +47 -0
- package/src/platform/services.ts +57 -0
- package/src/platform/source-observer.ts +193 -0
- package/src/provider-sdk.ts +48 -0
- package/src/publication/adapter.ts +132 -0
- package/src/publication/authority.ts +397 -0
- package/src/publication/catalog-git.ts +603 -0
- package/src/publication/claim.ts +51 -0
- package/src/publication/coordinator.ts +578 -0
- package/src/publication/github.ts +954 -0
- package/src/publication/http.ts +101 -0
- package/src/publication/index.ts +4 -0
- package/src/publication/npm.ts +525 -0
- package/src/publication/profiles.ts +94 -0
- package/src/publication/publisher.ts +130 -0
- package/src/publication/pypi.ts +463 -0
- package/src/publication/recovery.ts +349 -0
- package/src/publication/report.ts +628 -0
- package/src/recipes/config.ts +395 -0
- package/src/release/capabilities.ts +459 -0
- package/src/release/compiler.ts +28 -0
- package/src/release/config.ts +12 -0
- package/src/release/context.ts +223 -0
- package/src/release/graph.ts +866 -0
- package/src/release/inspect.ts +83 -0
- package/src/release/prepare.ts +1331 -0
- package/src/release/prepared-ref.ts +193 -0
- package/src/release/prepared-store.ts +377 -0
- package/src/release/prepared.ts +299 -0
- package/src/release/staging.ts +257 -0
- package/src/resolve/authored.ts +64 -0
- package/src/resolve/encode.ts +22 -0
- package/src/resolve/errors.ts +15 -0
- package/src/resolve/facts.ts +18 -0
- package/src/resolve/resolve.ts +328 -0
- package/src/store.ts +28 -0
- package/templates/README.md +55 -59
- package/templates/bun-cli-github/README.md +12 -0
- package/templates/bun-cli-github/release.config.json +51 -0
- package/templates/github-actions/release.yml +57 -0
- package/templates/github-actions/reviewed-release.yml +80 -0
- package/templates/multi-target-homebrew/README.md +10 -0
- package/templates/multi-target-homebrew/release.config.json +43 -60
- package/templates/multi-target-scoop/README.md +10 -0
- package/templates/multi-target-scoop/release.config.json +43 -62
- package/templates/npm-github/release.config.json +25 -38
- package/templates/npm-github/reviewed-release.config.json +37 -0
- package/templates/npm-only/README.md +10 -0
- package/templates/npm-only/release.config.json +15 -30
- package/templates/portable-cli/README.md +13 -0
- package/templates/portable-cli/release.config.json +53 -0
- package/dist/config/errors.d.ts +0 -24
- package/dist/config/errors.d.ts.map +0 -1
- package/dist/config/errors.js +0 -19
- package/dist/config/errors.js.map +0 -1
- package/dist/config/load.d.ts +0 -9
- package/dist/config/load.d.ts.map +0 -1
- package/dist/config/load.js +0 -29
- package/dist/config/load.js.map +0 -1
- package/dist/config/schema.d.ts +0 -12
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -19
- package/dist/config/schema.js.map +0 -1
- package/dist/domain/artifact.d.ts +0 -36
- package/dist/domain/artifact.d.ts.map +0 -1
- package/dist/domain/artifact.js +0 -29
- package/dist/domain/artifact.js.map +0 -1
- package/dist/domain/evidence.d.ts +0 -108
- package/dist/domain/evidence.d.ts.map +0 -1
- package/dist/domain/evidence.js +0 -96
- package/dist/domain/evidence.js.map +0 -1
- package/dist/domain/operation.d.ts +0 -153
- package/dist/domain/operation.d.ts.map +0 -1
- package/dist/domain/operation.js +0 -320
- package/dist/domain/operation.js.map +0 -1
- package/dist/domain/release.d.ts +0 -141
- package/dist/domain/release.d.ts.map +0 -1
- package/dist/domain/release.js +0 -127
- package/dist/domain/release.js.map +0 -1
- package/dist/domain/remote-state.d.ts +0 -85
- package/dist/domain/remote-state.d.ts.map +0 -1
- package/dist/domain/remote-state.js +0 -77
- package/dist/domain/remote-state.js.map +0 -1
- package/dist/domain/status.d.ts +0 -43
- package/dist/domain/status.d.ts.map +0 -1
- package/dist/domain/status.js +0 -51
- package/dist/domain/status.js.map +0 -1
- package/dist/domain/target.d.ts +0 -135
- package/dist/domain/target.d.ts.map +0 -1
- package/dist/domain/target.js +0 -137
- package/dist/domain/target.js.map +0 -1
- package/dist/host/host.d.ts +0 -32
- package/dist/host/host.d.ts.map +0 -1
- package/dist/host/host.js +0 -24
- package/dist/host/host.js.map +0 -1
- package/dist/host/http-live.d.ts +0 -6
- package/dist/host/http-live.d.ts.map +0 -1
- package/dist/host/http-live.js +0 -86
- package/dist/host/http-live.js.map +0 -1
- package/dist/host/http.d.ts +0 -43
- package/dist/host/http.d.ts.map +0 -1
- package/dist/host/http.js +0 -59
- package/dist/host/http.js.map +0 -1
- package/dist/host/platform.d.ts +0 -10
- package/dist/host/platform.d.ts.map +0 -1
- package/dist/host/platform.js +0 -114
- package/dist/host/platform.js.map +0 -1
- package/dist/host/test.d.ts +0 -23
- package/dist/host/test.d.ts.map +0 -1
- package/dist/host/test.js +0 -222
- package/dist/host/test.js.map +0 -1
- package/dist/internal/workflow-phases.d.ts +0 -3
- package/dist/internal/workflow-phases.d.ts.map +0 -1
- package/dist/internal/workflow-phases.js +0 -2
- package/dist/internal/workflow-phases.js.map +0 -1
- package/dist/internal/workspace-path.d.ts +0 -15
- package/dist/internal/workspace-path.d.ts.map +0 -1
- package/dist/internal/workspace-path.js +0 -36
- package/dist/internal/workspace-path.js.map +0 -1
- package/dist/planner/artifact-inventory.d.ts +0 -9
- package/dist/planner/artifact-inventory.d.ts.map +0 -1
- package/dist/planner/artifact-inventory.js +0 -84
- package/dist/planner/artifact-inventory.js.map +0 -1
- package/dist/planner/create-release-plan.d.ts +0 -5
- package/dist/planner/create-release-plan.d.ts.map +0 -1
- package/dist/planner/create-release-plan.js +0 -25
- package/dist/planner/create-release-plan.js.map +0 -1
- package/dist/planner/errors.d.ts +0 -81
- package/dist/planner/errors.d.ts.map +0 -1
- package/dist/planner/errors.js +0 -70
- package/dist/planner/errors.js.map +0 -1
- package/dist/planner/evidence-recorder.d.ts +0 -26
- package/dist/planner/evidence-recorder.d.ts.map +0 -1
- package/dist/planner/evidence-recorder.js +0 -330
- package/dist/planner/evidence-recorder.js.map +0 -1
- package/dist/planner/executor.d.ts +0 -58
- package/dist/planner/executor.d.ts.map +0 -1
- package/dist/planner/executor.js +0 -159
- package/dist/planner/executor.js.map +0 -1
- package/dist/planner/normalize-release.d.ts +0 -16
- package/dist/planner/normalize-release.d.ts.map +0 -1
- package/dist/planner/normalize-release.js +0 -218
- package/dist/planner/normalize-release.js.map +0 -1
- package/dist/planner/reconcile.d.ts +0 -17
- package/dist/planner/reconcile.d.ts.map +0 -1
- package/dist/planner/reconcile.js +0 -261
- package/dist/planner/reconcile.js.map +0 -1
- package/dist/planner/release-eligibility.d.ts +0 -39
- package/dist/planner/release-eligibility.d.ts.map +0 -1
- package/dist/planner/release-eligibility.js +0 -578
- package/dist/planner/release-eligibility.js.map +0 -1
- package/dist/planner/render-plan.d.ts +0 -15
- package/dist/planner/render-plan.d.ts.map +0 -1
- package/dist/planner/render-plan.js +0 -238
- package/dist/planner/render-plan.js.map +0 -1
- package/dist/planner/status.d.ts +0 -40
- package/dist/planner/status.d.ts.map +0 -1
- package/dist/planner/status.js +0 -313
- package/dist/planner/status.js.map +0 -1
- package/dist/targets/adapter-helpers.d.ts +0 -64
- package/dist/targets/adapter-helpers.d.ts.map +0 -1
- package/dist/targets/adapter-helpers.js +0 -124
- package/dist/targets/adapter-helpers.js.map +0 -1
- package/dist/targets/adapter.d.ts +0 -17
- package/dist/targets/adapter.d.ts.map +0 -1
- package/dist/targets/adapter.js +0 -2
- package/dist/targets/adapter.js.map +0 -1
- package/dist/targets/github-release.d.ts +0 -25
- package/dist/targets/github-release.d.ts.map +0 -1
- package/dist/targets/github-release.js +0 -82
- package/dist/targets/github-release.js.map +0 -1
- package/dist/targets/github.d.ts +0 -11
- package/dist/targets/github.d.ts.map +0 -1
- package/dist/targets/github.js +0 -125
- package/dist/targets/github.js.map +0 -1
- package/dist/targets/homebrew.d.ts +0 -11
- package/dist/targets/homebrew.d.ts.map +0 -1
- package/dist/targets/homebrew.js +0 -97
- package/dist/targets/homebrew.js.map +0 -1
- package/dist/targets/live.d.ts +0 -5
- package/dist/targets/live.d.ts.map +0 -1
- package/dist/targets/live.js +0 -50
- package/dist/targets/live.js.map +0 -1
- package/dist/targets/npm.d.ts +0 -10
- package/dist/targets/npm.d.ts.map +0 -1
- package/dist/targets/npm.js +0 -118
- package/dist/targets/npm.js.map +0 -1
- package/dist/targets/pypi.d.ts +0 -11
- package/dist/targets/pypi.d.ts.map +0 -1
- package/dist/targets/pypi.js +0 -103
- package/dist/targets/pypi.js.map +0 -1
- package/dist/targets/registry.d.ts +0 -25
- package/dist/targets/registry.d.ts.map +0 -1
- package/dist/targets/registry.js +0 -34
- package/dist/targets/registry.js.map +0 -1
- package/dist/targets/scoop.d.ts +0 -11
- package/dist/targets/scoop.d.ts.map +0 -1
- package/dist/targets/scoop.js +0 -78
- package/dist/targets/scoop.js.map +0 -1
- package/dist/types/effect-internal.d.ts +0 -5
- package/dist/types/effect-internal.d.ts.map +0 -1
- package/dist/types/effect-internal.js +0 -2
- package/dist/types/effect-internal.js.map +0 -1
- package/dist/workflows/config.d.ts +0 -252
- package/dist/workflows/config.d.ts.map +0 -1
- package/dist/workflows/config.js +0 -465
- package/dist/workflows/config.js.map +0 -1
- package/dist/workflows/diagnostics.d.ts +0 -62
- package/dist/workflows/diagnostics.d.ts.map +0 -1
- package/dist/workflows/diagnostics.js +0 -527
- package/dist/workflows/diagnostics.js.map +0 -1
- package/dist/workflows/evidence.d.ts +0 -26
- package/dist/workflows/evidence.d.ts.map +0 -1
- package/dist/workflows/evidence.js +0 -44
- package/dist/workflows/evidence.js.map +0 -1
- package/dist/workflows/index.d.ts +0 -7
- package/dist/workflows/index.d.ts.map +0 -1
- package/dist/workflows/index.js +0 -6
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/init.d.ts +0 -84
- package/dist/workflows/init.d.ts.map +0 -1
- package/dist/workflows/init.js +0 -441
- package/dist/workflows/init.js.map +0 -1
- package/dist/workflows/live.d.ts +0 -9
- package/dist/workflows/live.d.ts.map +0 -1
- package/dist/workflows/live.js +0 -7
- package/dist/workflows/live.js.map +0 -1
- package/dist/workflows/options.d.ts +0 -30
- package/dist/workflows/options.d.ts.map +0 -1
- package/dist/workflows/options.js +0 -16
- package/dist/workflows/options.js.map +0 -1
- package/examples/non-strict-skips/artifacts/release-example-skips-0.1.0.tgz +0 -1
- package/examples/non-strict-skips/release.config.json +0 -31
- package/examples/pypi-registry/release.config.json +0 -31
- package/templates/github-actions/plan-and-approved-execute.yml +0 -58
- package/templates/github-actions/plan-only.yml +0 -33
- package/templates/github-actions/trusted-publishing.yml +0 -61
package/dist/domain/operation.js
DELETED
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
import * as Effect from "effect/Effect";
|
|
2
|
-
import * as Schema from "effect/Schema";
|
|
3
|
-
import { TargetId } from "./target.js";
|
|
4
|
-
export const OperationId = Schema.NonEmptyString;
|
|
5
|
-
export const OperationRisk = Schema.Literals(["read-only", "writes-local", "externally-visible", "irreversible"]);
|
|
6
|
-
export class ExecutionGate extends Schema.Class("ExecutionGate")({
|
|
7
|
-
requiresExecute: Schema.Boolean,
|
|
8
|
-
requiresIrreversibleApproval: Schema.Boolean,
|
|
9
|
-
reason: Schema.String
|
|
10
|
-
}) {
|
|
11
|
-
}
|
|
12
|
-
export class CommandSpec extends Schema.Class("CommandSpec")({
|
|
13
|
-
executable: Schema.String,
|
|
14
|
-
args: Schema.Array(Schema.String),
|
|
15
|
-
cwd: Schema.optionalKey(Schema.String),
|
|
16
|
-
requiredEnv: Schema.Array(Schema.String),
|
|
17
|
-
redactedEnv: Schema.Array(Schema.String)
|
|
18
|
-
}) {
|
|
19
|
-
}
|
|
20
|
-
export const HttpMethod = Schema.Literals(["GET", "HEAD"]);
|
|
21
|
-
export class HttpHeader extends Schema.Class("HttpHeader")({
|
|
22
|
-
name: Schema.String,
|
|
23
|
-
value: Schema.String
|
|
24
|
-
}) {
|
|
25
|
-
}
|
|
26
|
-
export class HttpEnvHeader extends Schema.Class("HttpEnvHeader")({
|
|
27
|
-
name: Schema.String,
|
|
28
|
-
valueEnv: Schema.String,
|
|
29
|
-
prefix: Schema.optionalKey(Schema.String)
|
|
30
|
-
}) {
|
|
31
|
-
}
|
|
32
|
-
export class HttpRequestSpec extends Schema.Class("HttpRequestSpec")({
|
|
33
|
-
method: HttpMethod,
|
|
34
|
-
url: Schema.String,
|
|
35
|
-
headers: Schema.Array(HttpHeader),
|
|
36
|
-
envHeaders: Schema.Array(HttpEnvHeader),
|
|
37
|
-
requiredEnv: Schema.Array(Schema.String),
|
|
38
|
-
redactedEnv: Schema.Array(Schema.String)
|
|
39
|
-
}) {
|
|
40
|
-
}
|
|
41
|
-
export const JsonPathSegment = Schema.Union([Schema.String, Schema.Number]);
|
|
42
|
-
export class HttpJsonEqualsCheck extends Schema.TaggedClass()("HttpJsonEqualsCheck", {
|
|
43
|
-
path: Schema.Array(JsonPathSegment),
|
|
44
|
-
expected: Schema.Json
|
|
45
|
-
}) {
|
|
46
|
-
}
|
|
47
|
-
export class HttpJsonArrayObjectFieldEqualsCheck extends Schema.TaggedClass()("HttpJsonArrayObjectFieldEqualsCheck", {
|
|
48
|
-
path: Schema.Array(JsonPathSegment),
|
|
49
|
-
field: Schema.String,
|
|
50
|
-
expected: Schema.Json
|
|
51
|
-
}) {
|
|
52
|
-
}
|
|
53
|
-
export const HttpJsonCheck = Schema.Union([HttpJsonEqualsCheck, HttpJsonArrayObjectFieldEqualsCheck]);
|
|
54
|
-
export class RenderFileOperation extends Schema.TaggedClass()("RenderFileOperation", {
|
|
55
|
-
id: OperationId,
|
|
56
|
-
targetId: Schema.optionalKey(TargetId),
|
|
57
|
-
description: Schema.String,
|
|
58
|
-
risk: OperationRisk,
|
|
59
|
-
gate: ExecutionGate,
|
|
60
|
-
path: Schema.String,
|
|
61
|
-
contents: Schema.String
|
|
62
|
-
}) {
|
|
63
|
-
}
|
|
64
|
-
export class ValidateCommandOperation extends Schema.TaggedClass()("ValidateCommandOperation", {
|
|
65
|
-
id: OperationId,
|
|
66
|
-
targetId: Schema.optionalKey(TargetId),
|
|
67
|
-
description: Schema.String,
|
|
68
|
-
risk: OperationRisk,
|
|
69
|
-
gate: ExecutionGate,
|
|
70
|
-
command: CommandSpec
|
|
71
|
-
}) {
|
|
72
|
-
}
|
|
73
|
-
export class ValidationNoteOperation extends Schema.TaggedClass()("ValidationNoteOperation", {
|
|
74
|
-
id: OperationId,
|
|
75
|
-
targetId: Schema.optionalKey(TargetId),
|
|
76
|
-
description: Schema.String,
|
|
77
|
-
risk: OperationRisk,
|
|
78
|
-
gate: ExecutionGate,
|
|
79
|
-
message: Schema.String,
|
|
80
|
-
skipped: Schema.Boolean,
|
|
81
|
-
severity: Schema.Literals(["info", "warning"])
|
|
82
|
-
}) {
|
|
83
|
-
}
|
|
84
|
-
export class PublishCommandOperation extends Schema.TaggedClass()("PublishCommandOperation", {
|
|
85
|
-
id: OperationId,
|
|
86
|
-
targetId: TargetId,
|
|
87
|
-
description: Schema.String,
|
|
88
|
-
risk: OperationRisk,
|
|
89
|
-
gate: ExecutionGate,
|
|
90
|
-
command: CommandSpec
|
|
91
|
-
}) {
|
|
92
|
-
}
|
|
93
|
-
export class VerifyRemoteOperation extends Schema.TaggedClass()("VerifyRemoteOperation", {
|
|
94
|
-
id: OperationId,
|
|
95
|
-
targetId: TargetId,
|
|
96
|
-
description: Schema.String,
|
|
97
|
-
risk: OperationRisk,
|
|
98
|
-
gate: ExecutionGate,
|
|
99
|
-
command: CommandSpec
|
|
100
|
-
}) {
|
|
101
|
-
}
|
|
102
|
-
export class VerifyHttpOperation extends Schema.TaggedClass()("VerifyHttpOperation", {
|
|
103
|
-
id: OperationId,
|
|
104
|
-
targetId: TargetId,
|
|
105
|
-
description: Schema.String,
|
|
106
|
-
risk: OperationRisk,
|
|
107
|
-
gate: ExecutionGate,
|
|
108
|
-
request: HttpRequestSpec,
|
|
109
|
-
expectedStatus: Schema.Number,
|
|
110
|
-
checks: Schema.Array(HttpJsonCheck)
|
|
111
|
-
}) {
|
|
112
|
-
}
|
|
113
|
-
export const Operation = Schema.Union([
|
|
114
|
-
RenderFileOperation,
|
|
115
|
-
ValidateCommandOperation,
|
|
116
|
-
ValidationNoteOperation,
|
|
117
|
-
PublishCommandOperation,
|
|
118
|
-
VerifyRemoteOperation,
|
|
119
|
-
VerifyHttpOperation
|
|
120
|
-
]);
|
|
121
|
-
const isJsonObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
122
|
-
const stableJson = (value) => {
|
|
123
|
-
if (Array.isArray(value)) {
|
|
124
|
-
return value.map(stableJson);
|
|
125
|
-
}
|
|
126
|
-
if (isJsonObject(value)) {
|
|
127
|
-
const output = {};
|
|
128
|
-
for (const key of Object.keys(value).sort()) {
|
|
129
|
-
const item = value[key];
|
|
130
|
-
if (item !== undefined) {
|
|
131
|
-
output[key] = stableJson(item);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return output;
|
|
135
|
-
}
|
|
136
|
-
return value;
|
|
137
|
-
};
|
|
138
|
-
const commandSpecPayload = (command) => ({
|
|
139
|
-
executable: command.executable,
|
|
140
|
-
args: command.args,
|
|
141
|
-
...(command.cwd === undefined ? {} : { cwd: command.cwd }),
|
|
142
|
-
requiredEnv: command.requiredEnv,
|
|
143
|
-
redactedEnv: command.redactedEnv
|
|
144
|
-
});
|
|
145
|
-
const httpHeaderPayload = (header) => ({
|
|
146
|
-
name: header.name,
|
|
147
|
-
value: header.value
|
|
148
|
-
});
|
|
149
|
-
const httpEnvHeaderPayload = (header) => ({
|
|
150
|
-
name: header.name,
|
|
151
|
-
valueEnv: header.valueEnv,
|
|
152
|
-
...(header.prefix === undefined ? {} : { prefix: header.prefix })
|
|
153
|
-
});
|
|
154
|
-
const httpRequestPayload = (request) => ({
|
|
155
|
-
method: request.method,
|
|
156
|
-
url: request.url,
|
|
157
|
-
headers: request.headers.map(httpHeaderPayload),
|
|
158
|
-
envHeaders: request.envHeaders.map(httpEnvHeaderPayload),
|
|
159
|
-
requiredEnv: request.requiredEnv,
|
|
160
|
-
redactedEnv: request.redactedEnv
|
|
161
|
-
});
|
|
162
|
-
const httpJsonCheckPayload = (check) => {
|
|
163
|
-
switch (check._tag) {
|
|
164
|
-
case "HttpJsonEqualsCheck":
|
|
165
|
-
return {
|
|
166
|
-
_tag: check._tag,
|
|
167
|
-
path: check.path,
|
|
168
|
-
expected: stableJson(check.expected)
|
|
169
|
-
};
|
|
170
|
-
case "HttpJsonArrayObjectFieldEqualsCheck":
|
|
171
|
-
return {
|
|
172
|
-
_tag: check._tag,
|
|
173
|
-
path: check.path,
|
|
174
|
-
field: check.field,
|
|
175
|
-
expected: stableJson(check.expected)
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
const textEncoder = new TextEncoder();
|
|
180
|
-
const fnv1a64Offset = 0xcbf29ce484222325n;
|
|
181
|
-
const fnv1a64Prime = 0x100000001b3n;
|
|
182
|
-
const fnv1a64Mask = 0xffffffffffffffffn;
|
|
183
|
-
const contentDigest = (contents) => {
|
|
184
|
-
let hash = fnv1a64Offset;
|
|
185
|
-
for (const byte of textEncoder.encode(contents)) {
|
|
186
|
-
hash ^= BigInt(byte);
|
|
187
|
-
hash = (hash * fnv1a64Prime) & fnv1a64Mask;
|
|
188
|
-
}
|
|
189
|
-
return `fnv1a64:${hash.toString(16).padStart(16, "0")}`;
|
|
190
|
-
};
|
|
191
|
-
const operationApprovalRequirements = (operation) => ({
|
|
192
|
-
requiresExecute: operation.gate.requiresExecute ||
|
|
193
|
-
operation._tag === "PublishCommandOperation" ||
|
|
194
|
-
operation._tag === "RenderFileOperation" ||
|
|
195
|
-
operation.risk !== "read-only",
|
|
196
|
-
requiresIrreversibleApproval: operation.gate.requiresIrreversibleApproval ||
|
|
197
|
-
operation.risk === "irreversible"
|
|
198
|
-
});
|
|
199
|
-
const commonOperationPayload = (operation) => ({
|
|
200
|
-
_tag: operation._tag,
|
|
201
|
-
id: operation.id,
|
|
202
|
-
...(operation.targetId === undefined ? {} : { targetId: operation.targetId }),
|
|
203
|
-
approval: operationApprovalRequirements(operation)
|
|
204
|
-
});
|
|
205
|
-
export const operationFingerprint = (operation) => {
|
|
206
|
-
const common = commonOperationPayload(operation);
|
|
207
|
-
switch (operation._tag) {
|
|
208
|
-
case "RenderFileOperation":
|
|
209
|
-
return JSON.stringify({
|
|
210
|
-
...common,
|
|
211
|
-
path: operation.path,
|
|
212
|
-
contentsDigest: contentDigest(operation.contents)
|
|
213
|
-
});
|
|
214
|
-
case "ValidateCommandOperation":
|
|
215
|
-
case "PublishCommandOperation":
|
|
216
|
-
case "VerifyRemoteOperation":
|
|
217
|
-
return JSON.stringify({
|
|
218
|
-
...common,
|
|
219
|
-
command: commandSpecPayload(operation.command)
|
|
220
|
-
});
|
|
221
|
-
case "ValidationNoteOperation":
|
|
222
|
-
return JSON.stringify({
|
|
223
|
-
...common,
|
|
224
|
-
message: operation.message,
|
|
225
|
-
severity: operation.severity,
|
|
226
|
-
skipped: operation.skipped
|
|
227
|
-
});
|
|
228
|
-
case "VerifyHttpOperation":
|
|
229
|
-
return JSON.stringify({
|
|
230
|
-
...common,
|
|
231
|
-
request: httpRequestPayload(operation.request),
|
|
232
|
-
expectedStatus: operation.expectedStatus,
|
|
233
|
-
checks: operation.checks.map(httpJsonCheckPayload)
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
};
|
|
237
|
-
export class ExecutionApproval extends Schema.Class("ExecutionApproval")({
|
|
238
|
-
execute: Schema.Boolean,
|
|
239
|
-
approveIrreversible: Schema.Boolean
|
|
240
|
-
}) {
|
|
241
|
-
static none = ExecutionApproval.make({
|
|
242
|
-
execute: false,
|
|
243
|
-
approveIrreversible: false
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
export class ExecutionApprovalError extends Schema.TaggedErrorClass()("ExecutionApprovalError", {
|
|
247
|
-
operationId: OperationId,
|
|
248
|
-
reason: Schema.String
|
|
249
|
-
}) {
|
|
250
|
-
}
|
|
251
|
-
export const noApprovalGate = (reason) => ExecutionGate.make({
|
|
252
|
-
requiresExecute: false,
|
|
253
|
-
requiresIrreversibleApproval: false,
|
|
254
|
-
reason
|
|
255
|
-
});
|
|
256
|
-
export const executeGate = (reason) => ExecutionGate.make({
|
|
257
|
-
requiresExecute: true,
|
|
258
|
-
requiresIrreversibleApproval: false,
|
|
259
|
-
reason
|
|
260
|
-
});
|
|
261
|
-
export const irreversibleGate = (reason) => ExecutionGate.make({
|
|
262
|
-
requiresExecute: true,
|
|
263
|
-
requiresIrreversibleApproval: true,
|
|
264
|
-
reason
|
|
265
|
-
});
|
|
266
|
-
export const canExecuteOperation = (operation, approval) => {
|
|
267
|
-
const requirements = operationApprovalRequirements(operation);
|
|
268
|
-
if (requirements.requiresExecute && !approval.execute) {
|
|
269
|
-
return false;
|
|
270
|
-
}
|
|
271
|
-
if (requirements.requiresIrreversibleApproval && !approval.approveIrreversible) {
|
|
272
|
-
return false;
|
|
273
|
-
}
|
|
274
|
-
return true;
|
|
275
|
-
};
|
|
276
|
-
export const requireExecutionApproval = Effect.fn("requireExecutionApproval")(function* (operation, approval) {
|
|
277
|
-
if (canExecuteOperation(operation, approval)) {
|
|
278
|
-
return;
|
|
279
|
-
}
|
|
280
|
-
const requirements = operationApprovalRequirements(operation);
|
|
281
|
-
const reason = requirements.requiresIrreversibleApproval && !approval.approveIrreversible
|
|
282
|
-
? "Operation requires irreversible approval."
|
|
283
|
-
: "Operation requires execute approval.";
|
|
284
|
-
return yield* Effect.fail(ExecutionApprovalError.make({
|
|
285
|
-
operationId: operation.id,
|
|
286
|
-
reason
|
|
287
|
-
}));
|
|
288
|
-
});
|
|
289
|
-
const operationPhasePriority = (operation) => {
|
|
290
|
-
switch (operation._tag) {
|
|
291
|
-
case "RenderFileOperation":
|
|
292
|
-
return 0;
|
|
293
|
-
case "ValidateCommandOperation":
|
|
294
|
-
case "ValidationNoteOperation":
|
|
295
|
-
return 1;
|
|
296
|
-
case "PublishCommandOperation":
|
|
297
|
-
return 2;
|
|
298
|
-
case "VerifyRemoteOperation":
|
|
299
|
-
case "VerifyHttpOperation":
|
|
300
|
-
return 3;
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
const publishOperationPriority = (operation) => {
|
|
304
|
-
if (operation.id.endsWith(":npm-publish") || operation.id.endsWith(":twine-upload")) {
|
|
305
|
-
return 0;
|
|
306
|
-
}
|
|
307
|
-
if (operation.id.endsWith(":gh-release-create")) {
|
|
308
|
-
return 1;
|
|
309
|
-
}
|
|
310
|
-
if (operation.id.endsWith(":homebrew-push") || operation.id.endsWith(":scoop-push")) {
|
|
311
|
-
return 2;
|
|
312
|
-
}
|
|
313
|
-
return 3;
|
|
314
|
-
};
|
|
315
|
-
export const operationOrder = (left, right) => operationPhasePriority(left) - operationPhasePriority(right) ||
|
|
316
|
-
(left._tag === "PublishCommandOperation" && right._tag === "PublishCommandOperation"
|
|
317
|
-
? publishOperationPriority(left) - publishOperationPriority(right)
|
|
318
|
-
: 0) ||
|
|
319
|
-
left.id.localeCompare(right.id);
|
|
320
|
-
//# sourceMappingURL=operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"operation.js","sourceRoot":"","sources":["../../src/domain/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAItC,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,CAAA;AAGhD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,oBAAoB,EAAE,cAAc,CAAC,CAAC,CAAA;AAGjH,MAAM,OAAO,aAAc,SAAQ,MAAM,CAAC,KAAK,CAAgB,eAAe,CAAC,CAAC;IAC9E,eAAe,EAAE,MAAM,CAAC,OAAO;IAC/B,4BAA4B,EAAE,MAAM,CAAC,OAAO;IAC5C,MAAM,EAAE,MAAM,CAAC,MAAM;CACtB,CAAC;CAAG;AAEL,MAAM,OAAO,WAAY,SAAQ,MAAM,CAAC,KAAK,CAAc,aAAa,CAAC,CAAC;IACxE,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACjC,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E,CAAC;QACpF,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC;QAChD,OAAO,CAAC,CAAA;IACV,CAAC;IACD,IAAI,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;QACpF,OAAO,CAAC,CAAA;IACV,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,IAAe,EAAE,KAAgB,EAAU,EAAE,CAC1E,sBAAsB,CAAC,IAAI,CAAC,GAAG,sBAAsB,CAAC,KAAK,CAAC;IAC5D,CAAC,IAAI,CAAC,IAAI,KAAK,yBAAyB,IAAI,KAAK,CAAC,IAAI,KAAK,yBAAyB;QAClF,CAAC,CAAC,wBAAwB,CAAC,IAAI,CAAC,GAAG,wBAAwB,CAAC,KAAK,CAAC;QAClE,CAAC,CAAC,CAAC,CAAC;IACN,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA"}
|
package/dist/domain/release.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { ArtifactIntent, ArtifactInventoryItem } from "./artifact.js";
|
|
3
|
-
import { TargetCapabilities } from "./target.js";
|
|
4
|
-
export type * from "../types/effect-internal.js";
|
|
5
|
-
export declare const ReleaseName: Schema.NonEmptyString;
|
|
6
|
-
export type ReleaseName = typeof ReleaseName.Type;
|
|
7
|
-
export declare const ReleaseVersion: Schema.NonEmptyString;
|
|
8
|
-
export type ReleaseVersion = typeof ReleaseVersion.Type;
|
|
9
|
-
export declare const GitCommit: Schema.NonEmptyString;
|
|
10
|
-
export type GitCommit = typeof GitCommit.Type;
|
|
11
|
-
export declare const GitTag: Schema.NonEmptyString;
|
|
12
|
-
export type GitTag = typeof GitTag.Type;
|
|
13
|
-
export declare const ReleaseBump: Schema.Literals<readonly ["major", "minor", "patch", "none"]>;
|
|
14
|
-
export type ReleaseBump = typeof ReleaseBump.Type;
|
|
15
|
-
declare const ReleaseIdentity_base: Schema.Class<ReleaseIdentity, Schema.Struct<{
|
|
16
|
-
readonly name: Schema.NonEmptyString;
|
|
17
|
-
readonly version: Schema.NonEmptyString;
|
|
18
|
-
readonly commit: Schema.NonEmptyString;
|
|
19
|
-
readonly tag: Schema.optionalKey<Schema.NonEmptyString>;
|
|
20
|
-
readonly notes: Schema.optionalKey<Schema.String>;
|
|
21
|
-
}>, {}>;
|
|
22
|
-
export declare class ReleaseIdentity extends ReleaseIdentity_base {
|
|
23
|
-
}
|
|
24
|
-
declare const ReleasePackageManifest_base: Schema.Class<ReleasePackageManifest, Schema.Struct<{
|
|
25
|
-
readonly name: Schema.NonEmptyString;
|
|
26
|
-
readonly version: Schema.NonEmptyString;
|
|
27
|
-
}>, {}>;
|
|
28
|
-
export declare class ReleasePackageManifest extends ReleasePackageManifest_base {
|
|
29
|
-
}
|
|
30
|
-
declare const StaticReleaseIdentitySource_base: Schema.Class<StaticReleaseIdentitySource, Schema.Struct<{
|
|
31
|
-
readonly name: Schema.NonEmptyString;
|
|
32
|
-
readonly version: Schema.NonEmptyString;
|
|
33
|
-
readonly commit: Schema.NonEmptyString;
|
|
34
|
-
readonly tag: Schema.optionalKey<Schema.NonEmptyString>;
|
|
35
|
-
readonly notes: Schema.optionalKey<Schema.String>;
|
|
36
|
-
}>, {}>;
|
|
37
|
-
export declare class StaticReleaseIdentitySource extends StaticReleaseIdentitySource_base {
|
|
38
|
-
}
|
|
39
|
-
declare const PackageManifestReleaseIdentitySource_base: Schema.Class<PackageManifestReleaseIdentitySource, Schema.TaggedStruct<"PackageManifestReleaseIdentitySource", {
|
|
40
|
-
readonly packagePath: Schema.optionalKey<Schema.String>;
|
|
41
|
-
readonly commit: Schema.NonEmptyString;
|
|
42
|
-
readonly tagTemplate: Schema.optionalKey<Schema.String>;
|
|
43
|
-
readonly notes: Schema.optionalKey<Schema.String>;
|
|
44
|
-
}>, {}>;
|
|
45
|
-
export declare class PackageManifestReleaseIdentitySource extends PackageManifestReleaseIdentitySource_base {
|
|
46
|
-
}
|
|
47
|
-
export declare const ReleaseIdentitySource: Schema.Union<readonly [typeof StaticReleaseIdentitySource, typeof PackageManifestReleaseIdentitySource]>;
|
|
48
|
-
export type ReleaseIdentitySource = typeof ReleaseIdentitySource.Type;
|
|
49
|
-
declare const RemoteStateReleaseDecision_base: Schema.Class<RemoteStateReleaseDecision, Schema.TaggedStruct<"RemoteStateReleaseDecision", {}>, {}>;
|
|
50
|
-
export declare class RemoteStateReleaseDecision extends RemoteStateReleaseDecision_base {
|
|
51
|
-
}
|
|
52
|
-
declare const GitTagReleaseDecision_base: Schema.Class<GitTagReleaseDecision, Schema.TaggedStruct<"GitTagReleaseDecision", {
|
|
53
|
-
readonly tag: Schema.optionalKey<Schema.NonEmptyString>;
|
|
54
|
-
readonly tagTemplate: Schema.optionalKey<Schema.String>;
|
|
55
|
-
readonly packagePath: Schema.optionalKey<Schema.String>;
|
|
56
|
-
readonly requireCurrentRef: Schema.optionalKey<Schema.Boolean>;
|
|
57
|
-
}>, {}>;
|
|
58
|
-
export declare class GitTagReleaseDecision extends GitTagReleaseDecision_base {
|
|
59
|
-
}
|
|
60
|
-
declare const ConventionalCommitReleaseRule_base: Schema.Class<ConventionalCommitReleaseRule, Schema.Struct<{
|
|
61
|
-
readonly type: Schema.optionalKey<Schema.String>;
|
|
62
|
-
readonly breaking: Schema.optionalKey<Schema.Boolean>;
|
|
63
|
-
readonly release: Schema.Literals<readonly ["major", "minor", "patch", "none"]>;
|
|
64
|
-
}>, {}>;
|
|
65
|
-
export declare class ConventionalCommitReleaseRule extends ConventionalCommitReleaseRule_base {
|
|
66
|
-
}
|
|
67
|
-
declare const ConventionalCommitsReleaseDecision_base: Schema.Class<ConventionalCommitsReleaseDecision, Schema.TaggedStruct<"ConventionalCommitsReleaseDecision", {
|
|
68
|
-
readonly packagePath: Schema.optionalKey<Schema.String>;
|
|
69
|
-
readonly tagTemplate: Schema.optionalKey<Schema.String>;
|
|
70
|
-
readonly base: Schema.optionalKey<Schema.Literal<"latest-tag">>;
|
|
71
|
-
readonly preset: Schema.optionalKey<Schema.Literal<"conventionalcommits">>;
|
|
72
|
-
readonly releaseRules: Schema.optionalKey<Schema.$Array<typeof ConventionalCommitReleaseRule>>;
|
|
73
|
-
}>, {}>;
|
|
74
|
-
export declare class ConventionalCommitsReleaseDecision extends ConventionalCommitsReleaseDecision_base {
|
|
75
|
-
}
|
|
76
|
-
declare const IntentFilesReleaseDecision_base: Schema.Class<IntentFilesReleaseDecision, Schema.TaggedStruct<"IntentFilesReleaseDecision", {
|
|
77
|
-
readonly directory: Schema.optionalKey<Schema.String>;
|
|
78
|
-
readonly packagePath: Schema.optionalKey<Schema.String>;
|
|
79
|
-
readonly tagTemplate: Schema.optionalKey<Schema.String>;
|
|
80
|
-
readonly requireIntent: Schema.optionalKey<Schema.Boolean>;
|
|
81
|
-
}>, {}>;
|
|
82
|
-
export declare class IntentFilesReleaseDecision extends IntentFilesReleaseDecision_base {
|
|
83
|
-
}
|
|
84
|
-
export declare const ReleaseDecisionStrategy: Schema.Union<readonly [typeof RemoteStateReleaseDecision, typeof GitTagReleaseDecision, typeof ConventionalCommitsReleaseDecision, typeof IntentFilesReleaseDecision]>;
|
|
85
|
-
export type ReleaseDecisionStrategy = typeof ReleaseDecisionStrategy.Type;
|
|
86
|
-
declare const ReleaseIntentFile_base: Schema.Class<ReleaseIntentFile, Schema.Struct<{
|
|
87
|
-
readonly $schema: Schema.optionalKey<Schema.String>;
|
|
88
|
-
readonly package: Schema.NonEmptyString;
|
|
89
|
-
readonly release: Schema.Literals<readonly ["major", "minor", "patch", "none"]>;
|
|
90
|
-
readonly summary: Schema.String;
|
|
91
|
-
readonly empty: Schema.optionalKey<Schema.Boolean>;
|
|
92
|
-
}>, {}>;
|
|
93
|
-
export declare class ReleaseIntentFile extends ReleaseIntentFile_base {
|
|
94
|
-
}
|
|
95
|
-
declare const SourceMetadata_base: Schema.Class<SourceMetadata, Schema.Struct<{
|
|
96
|
-
readonly root: Schema.String;
|
|
97
|
-
readonly configPath: Schema.optionalKey<Schema.String>;
|
|
98
|
-
}>, {}>;
|
|
99
|
-
export declare class SourceMetadata extends SourceMetadata_base {
|
|
100
|
-
}
|
|
101
|
-
declare const ReleaseIntent_base: Schema.Class<ReleaseIntent, Schema.Struct<{
|
|
102
|
-
readonly $schema: Schema.optionalKey<Schema.String>;
|
|
103
|
-
readonly identity: Schema.Union<readonly [typeof StaticReleaseIdentitySource, typeof PackageManifestReleaseIdentitySource]>;
|
|
104
|
-
readonly releaseDecision: Schema.optionalKey<Schema.Union<readonly [typeof RemoteStateReleaseDecision, typeof GitTagReleaseDecision, typeof ConventionalCommitsReleaseDecision, typeof IntentFilesReleaseDecision]>>;
|
|
105
|
-
readonly artifacts: Schema.$Array<typeof ArtifactIntent>;
|
|
106
|
-
readonly targets: Schema.$Array<Schema.Union<readonly [typeof import("./target.js").NpmRegistryTarget, typeof import("./target.js").GitHubReleaseTarget, typeof import("./target.js").HomebrewTapTarget, typeof import("./target.js").PyPiRegistryTarget, typeof import("./target.js").ScoopBucketTarget]>>;
|
|
107
|
-
readonly strict: Schema.optionalKey<Schema.Boolean>;
|
|
108
|
-
readonly evidenceDirectory: Schema.optionalKey<Schema.String>;
|
|
109
|
-
}>, {}>;
|
|
110
|
-
export declare class ReleaseIntent extends ReleaseIntent_base {
|
|
111
|
-
}
|
|
112
|
-
declare const ReleaseModel_base: Schema.Class<ReleaseModel, Schema.Struct<{
|
|
113
|
-
readonly identity: typeof ReleaseIdentity;
|
|
114
|
-
readonly source: typeof SourceMetadata;
|
|
115
|
-
readonly artifacts: Schema.$Array<typeof ArtifactInventoryItem>;
|
|
116
|
-
readonly targets: Schema.$Array<Schema.Union<readonly [typeof import("./target.js").NpmRegistryTarget, typeof import("./target.js").GitHubReleaseTarget, typeof import("./target.js").HomebrewTapTarget, typeof import("./target.js").PyPiRegistryTarget, typeof import("./target.js").ScoopBucketTarget]>>;
|
|
117
|
-
readonly strict: Schema.Boolean;
|
|
118
|
-
readonly evidenceDirectory: Schema.String;
|
|
119
|
-
}>, {}>;
|
|
120
|
-
export declare class ReleaseModel extends ReleaseModel_base {
|
|
121
|
-
}
|
|
122
|
-
declare const PlannerMetadata_base: Schema.Class<PlannerMetadata, Schema.Struct<{
|
|
123
|
-
readonly createdBy: Schema.String;
|
|
124
|
-
readonly planSchemaVersion: Schema.Literal<"release-plan/v1">;
|
|
125
|
-
}>, {}>;
|
|
126
|
-
export declare class PlannerMetadata extends PlannerMetadata_base {
|
|
127
|
-
}
|
|
128
|
-
declare const ReleasePlan_base: Schema.Class<ReleasePlan, Schema.Struct<{
|
|
129
|
-
readonly schemaVersion: Schema.Literal<"release-plan/v1">;
|
|
130
|
-
readonly identity: typeof ReleaseIdentity;
|
|
131
|
-
readonly source: typeof SourceMetadata;
|
|
132
|
-
readonly artifacts: Schema.$Array<typeof ArtifactInventoryItem>;
|
|
133
|
-
readonly targets: Schema.$Array<Schema.Union<readonly [typeof import("./target.js").NpmRegistryTarget, typeof import("./target.js").GitHubReleaseTarget, typeof import("./target.js").HomebrewTapTarget, typeof import("./target.js").PyPiRegistryTarget, typeof import("./target.js").ScoopBucketTarget]>>;
|
|
134
|
-
readonly targetCapabilities: Schema.$Array<typeof TargetCapabilities>;
|
|
135
|
-
readonly operations: Schema.$Array<Schema.Union<readonly [typeof import("./operation.js").RenderFileOperation, typeof import("./operation.js").ValidateCommandOperation, typeof import("./operation.js").ValidationNoteOperation, typeof import("./operation.js").PublishCommandOperation, typeof import("./operation.js").VerifyRemoteOperation, typeof import("./operation.js").VerifyHttpOperation]>>;
|
|
136
|
-
readonly evidenceDirectory: Schema.String;
|
|
137
|
-
readonly metadata: typeof PlannerMetadata;
|
|
138
|
-
}>, {}>;
|
|
139
|
-
export declare class ReleasePlan extends ReleasePlan_base {
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=release.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release.d.ts","sourceRoot":"","sources":["../../src/domain/release.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAErE,OAAO,EAAE,kBAAkB,EAAgB,MAAM,aAAa,CAAA;AAE9D,mBAAmB,6BAA6B,CAAA;AAEhD,eAAO,MAAM,WAAW,uBAAwB,CAAA;AAChD,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD,eAAO,MAAM,cAAc,uBAAwB,CAAA;AACnD,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA;AAEvD,eAAO,MAAM,SAAS,uBAAwB,CAAA;AAC9C,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,IAAI,CAAA;AAE7C,eAAO,MAAM,MAAM,uBAAwB,CAAA;AAC3C,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,eAAO,MAAM,WAAW,+DAAuD,CAAA;AAC/E,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;;;;;;;;AAEjD,qBAAa,eAAgB,SAAQ,oBAMnC;CAAG;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAG1C;CAAG;;;;;;;;AAEL,qBAAa,2BAA4B,SAAQ,gCAQ/C;CAAG;;;;;;;AAEL,qBAAa,oCAAqC,SAAQ,yCAQzD;CAAG;AAEJ,eAAO,MAAM,qBAAqB,0GAGhC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAA;;AAErE,qBAAa,0BAA2B,SAAQ,+BAG/C;CAAG;;;;;;;AAEJ,qBAAa,qBAAsB,SAAQ,0BAKzC;CAAG;;;;;;AAEL,qBAAa,6BAA8B,SAAQ,kCAMjD;CAAG;;;;;;;;AAEL,qBAAa,kCAAmC,SAAQ,uCASvD;CAAG;;;;;;;AAEJ,qBAAa,0BAA2B,SAAQ,+BAQ/C;CAAG;AAEJ,eAAO,MAAM,uBAAuB,wKAKlC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAA;;;;;;;;AAEzE,qBAAa,iBAAkB,SAAQ,sBAMrC;CAAG;;;;;AAEL,qBAAa,cAAe,SAAQ,mBAGlC;CAAG;;;;;;;;;;AAEL,qBAAa,aAAc,SAAQ,kBAQjC;CAAG;;;;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAOhC;CAAG;;;;;AAEL,qBAAa,eAAgB,SAAQ,oBAGnC;CAAG;;;;;;;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAU/B;CAAG"}
|
package/dist/domain/release.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import * as Schema from "effect/Schema";
|
|
2
|
-
import { ArtifactIntent, ArtifactInventoryItem } from "./artifact.js";
|
|
3
|
-
import { Operation } from "./operation.js";
|
|
4
|
-
import { TargetCapabilities, TargetConfig } from "./target.js";
|
|
5
|
-
export const ReleaseName = Schema.NonEmptyString;
|
|
6
|
-
export const ReleaseVersion = Schema.NonEmptyString;
|
|
7
|
-
export const GitCommit = Schema.NonEmptyString;
|
|
8
|
-
export const GitTag = Schema.NonEmptyString;
|
|
9
|
-
export const ReleaseBump = Schema.Literals(["major", "minor", "patch", "none"]);
|
|
10
|
-
export class ReleaseIdentity extends Schema.Class("ReleaseIdentity")({
|
|
11
|
-
name: ReleaseName,
|
|
12
|
-
version: ReleaseVersion,
|
|
13
|
-
commit: GitCommit,
|
|
14
|
-
tag: Schema.optionalKey(GitTag),
|
|
15
|
-
notes: Schema.optionalKey(Schema.String)
|
|
16
|
-
}) {
|
|
17
|
-
}
|
|
18
|
-
export class ReleasePackageManifest extends Schema.Class("ReleasePackageManifest")({
|
|
19
|
-
name: ReleaseName,
|
|
20
|
-
version: ReleaseVersion
|
|
21
|
-
}) {
|
|
22
|
-
}
|
|
23
|
-
export class StaticReleaseIdentitySource extends Schema.Class("StaticReleaseIdentitySource")({
|
|
24
|
-
name: ReleaseName,
|
|
25
|
-
version: ReleaseVersion,
|
|
26
|
-
commit: GitCommit,
|
|
27
|
-
tag: Schema.optionalKey(GitTag),
|
|
28
|
-
notes: Schema.optionalKey(Schema.String)
|
|
29
|
-
}) {
|
|
30
|
-
}
|
|
31
|
-
export class PackageManifestReleaseIdentitySource extends Schema.TaggedClass()("PackageManifestReleaseIdentitySource", {
|
|
32
|
-
packagePath: Schema.optionalKey(Schema.String),
|
|
33
|
-
commit: GitCommit,
|
|
34
|
-
tagTemplate: Schema.optionalKey(Schema.String),
|
|
35
|
-
notes: Schema.optionalKey(Schema.String)
|
|
36
|
-
}) {
|
|
37
|
-
}
|
|
38
|
-
export const ReleaseIdentitySource = Schema.Union([
|
|
39
|
-
StaticReleaseIdentitySource,
|
|
40
|
-
PackageManifestReleaseIdentitySource
|
|
41
|
-
]);
|
|
42
|
-
export class RemoteStateReleaseDecision extends Schema.TaggedClass()("RemoteStateReleaseDecision", {}) {
|
|
43
|
-
}
|
|
44
|
-
export class GitTagReleaseDecision extends Schema.TaggedClass()("GitTagReleaseDecision", {
|
|
45
|
-
tag: Schema.optionalKey(GitTag),
|
|
46
|
-
tagTemplate: Schema.optionalKey(Schema.String),
|
|
47
|
-
packagePath: Schema.optionalKey(Schema.String),
|
|
48
|
-
requireCurrentRef: Schema.optionalKey(Schema.Boolean)
|
|
49
|
-
}) {
|
|
50
|
-
}
|
|
51
|
-
export class ConventionalCommitReleaseRule extends Schema.Class("ConventionalCommitReleaseRule")({
|
|
52
|
-
type: Schema.optionalKey(Schema.String),
|
|
53
|
-
breaking: Schema.optionalKey(Schema.Boolean),
|
|
54
|
-
release: ReleaseBump
|
|
55
|
-
}) {
|
|
56
|
-
}
|
|
57
|
-
export class ConventionalCommitsReleaseDecision extends Schema.TaggedClass()("ConventionalCommitsReleaseDecision", {
|
|
58
|
-
packagePath: Schema.optionalKey(Schema.String),
|
|
59
|
-
tagTemplate: Schema.optionalKey(Schema.String),
|
|
60
|
-
base: Schema.optionalKey(Schema.Literal("latest-tag")),
|
|
61
|
-
preset: Schema.optionalKey(Schema.Literal("conventionalcommits")),
|
|
62
|
-
releaseRules: Schema.optionalKey(Schema.Array(ConventionalCommitReleaseRule))
|
|
63
|
-
}) {
|
|
64
|
-
}
|
|
65
|
-
export class IntentFilesReleaseDecision extends Schema.TaggedClass()("IntentFilesReleaseDecision", {
|
|
66
|
-
directory: Schema.optionalKey(Schema.String),
|
|
67
|
-
packagePath: Schema.optionalKey(Schema.String),
|
|
68
|
-
tagTemplate: Schema.optionalKey(Schema.String),
|
|
69
|
-
requireIntent: Schema.optionalKey(Schema.Boolean)
|
|
70
|
-
}) {
|
|
71
|
-
}
|
|
72
|
-
export const ReleaseDecisionStrategy = Schema.Union([
|
|
73
|
-
RemoteStateReleaseDecision,
|
|
74
|
-
GitTagReleaseDecision,
|
|
75
|
-
ConventionalCommitsReleaseDecision,
|
|
76
|
-
IntentFilesReleaseDecision
|
|
77
|
-
]);
|
|
78
|
-
export class ReleaseIntentFile extends Schema.Class("ReleaseIntentFile")({
|
|
79
|
-
"$schema": Schema.optionalKey(Schema.String),
|
|
80
|
-
"package": ReleaseName,
|
|
81
|
-
release: ReleaseBump,
|
|
82
|
-
summary: Schema.String,
|
|
83
|
-
empty: Schema.optionalKey(Schema.Boolean)
|
|
84
|
-
}) {
|
|
85
|
-
}
|
|
86
|
-
export class SourceMetadata extends Schema.Class("SourceMetadata")({
|
|
87
|
-
root: Schema.String,
|
|
88
|
-
configPath: Schema.optionalKey(Schema.String)
|
|
89
|
-
}) {
|
|
90
|
-
}
|
|
91
|
-
export class ReleaseIntent extends Schema.Class("ReleaseIntent")({
|
|
92
|
-
"$schema": Schema.optionalKey(Schema.String),
|
|
93
|
-
identity: ReleaseIdentitySource,
|
|
94
|
-
releaseDecision: Schema.optionalKey(ReleaseDecisionStrategy),
|
|
95
|
-
artifacts: Schema.Array(ArtifactIntent),
|
|
96
|
-
targets: Schema.Array(TargetConfig),
|
|
97
|
-
strict: Schema.optionalKey(Schema.Boolean),
|
|
98
|
-
evidenceDirectory: Schema.optionalKey(Schema.String)
|
|
99
|
-
}) {
|
|
100
|
-
}
|
|
101
|
-
export class ReleaseModel extends Schema.Class("ReleaseModel")({
|
|
102
|
-
identity: ReleaseIdentity,
|
|
103
|
-
source: SourceMetadata,
|
|
104
|
-
artifacts: Schema.Array(ArtifactInventoryItem),
|
|
105
|
-
targets: Schema.Array(TargetConfig),
|
|
106
|
-
strict: Schema.Boolean,
|
|
107
|
-
evidenceDirectory: Schema.String
|
|
108
|
-
}) {
|
|
109
|
-
}
|
|
110
|
-
export class PlannerMetadata extends Schema.Class("PlannerMetadata")({
|
|
111
|
-
createdBy: Schema.String,
|
|
112
|
-
planSchemaVersion: Schema.Literal("release-plan/v1")
|
|
113
|
-
}) {
|
|
114
|
-
}
|
|
115
|
-
export class ReleasePlan extends Schema.Class("ReleasePlan")({
|
|
116
|
-
schemaVersion: Schema.Literal("release-plan/v1"),
|
|
117
|
-
identity: ReleaseIdentity,
|
|
118
|
-
source: SourceMetadata,
|
|
119
|
-
artifacts: Schema.Array(ArtifactInventoryItem),
|
|
120
|
-
targets: Schema.Array(TargetConfig),
|
|
121
|
-
targetCapabilities: Schema.Array(TargetCapabilities),
|
|
122
|
-
operations: Schema.Array(Operation),
|
|
123
|
-
evidenceDirectory: Schema.String,
|
|
124
|
-
metadata: PlannerMetadata
|
|
125
|
-
}) {
|
|
126
|
-
}
|
|
127
|
-
//# sourceMappingURL=release.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"release.js","sourceRoot":"","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