@mannyc1/ts-release 0.0.7 → 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 -92
- package/CHANGELOG.md +115 -0
- package/LICENSE +21 -0
- package/README.md +278 -324
- package/SPEC.md +206 -310
- 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 +60 -156
- 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 -72
- package/templates/bun-cli-github/README.md +7 -9
- package/templates/bun-cli-github/release.config.json +35 -73
- 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/artifacts/adapter.d.ts +0 -39
- package/dist/artifacts/adapter.d.ts.map +0 -1
- package/dist/artifacts/adapter.js +0 -23
- package/dist/artifacts/adapter.js.map +0 -1
- package/dist/artifacts/registry.d.ts +0 -21
- package/dist/artifacts/registry.d.ts.map +0 -1
- package/dist/artifacts/registry.js +0 -21
- package/dist/artifacts/registry.js.map +0 -1
- 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 -118
- package/dist/domain/artifact.d.ts.map +0 -1
- package/dist/domain/artifact.js +0 -197
- package/dist/domain/artifact.js.map +0 -1
- package/dist/domain/evidence.d.ts +0 -59
- package/dist/domain/evidence.d.ts.map +0 -1
- package/dist/domain/evidence.js +0 -51
- package/dist/domain/evidence.js.map +0 -1
- package/dist/domain/operation.d.ts +0 -143
- package/dist/domain/operation.d.ts.map +0 -1
- package/dist/domain/operation.js +0 -198
- package/dist/domain/operation.js.map +0 -1
- package/dist/domain/release.d.ts +0 -93
- package/dist/domain/release.d.ts.map +0 -1
- package/dist/domain/release.js +0 -82
- package/dist/domain/release.js.map +0 -1
- package/dist/domain/remote-state.d.ts +0 -58
- package/dist/domain/remote-state.d.ts.map +0 -1
- package/dist/domain/remote-state.js +0 -55
- package/dist/domain/remote-state.js.map +0 -1
- package/dist/domain/target.d.ts +0 -148
- package/dist/domain/target.d.ts.map +0 -1
- package/dist/domain/target.js +0 -151
- 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/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 -86
- 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 -67
- package/dist/planner/errors.d.ts.map +0 -1
- package/dist/planner/errors.js +0 -58
- package/dist/planner/errors.js.map +0 -1
- package/dist/planner/evidence-recorder.d.ts +0 -28
- package/dist/planner/evidence-recorder.d.ts.map +0 -1
- package/dist/planner/evidence-recorder.js +0 -362
- 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 -147
- package/dist/planner/executor.js.map +0 -1
- package/dist/planner/normalize-release.d.ts +0 -19
- package/dist/planner/normalize-release.d.ts.map +0 -1
- package/dist/planner/normalize-release.js +0 -342
- 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 -259
- package/dist/planner/reconcile.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 -231
- package/dist/planner/render-plan.js.map +0 -1
- package/dist/targets/adapter-helpers.d.ts +0 -79
- package/dist/targets/adapter-helpers.d.ts.map +0 -1
- package/dist/targets/adapter-helpers.js +0 -194
- 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 -117
- 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 -210
- 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 -112
- 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 -141
- 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 -88
- 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 -202
- package/dist/workflows/config.d.ts.map +0 -1
- package/dist/workflows/config.js +0 -420
- 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 -530
- package/dist/workflows/diagnostics.js.map +0 -1
- package/dist/workflows/distribution.d.ts +0 -25
- package/dist/workflows/distribution.d.ts.map +0 -1
- package/dist/workflows/distribution.js +0 -24
- package/dist/workflows/distribution.js.map +0 -1
- package/dist/workflows/evidence.d.ts +0 -17
- package/dist/workflows/evidence.d.ts.map +0 -1
- package/dist/workflows/evidence.js +0 -32
- package/dist/workflows/evidence.js.map +0 -1
- package/dist/workflows/index.d.ts +0 -8
- package/dist/workflows/index.d.ts.map +0 -1
- package/dist/workflows/index.js +0 -7
- 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 -487
- 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
|
@@ -1,530 +0,0 @@
|
|
|
1
|
-
import * as Config from "effect/Config";
|
|
2
|
-
import * as Effect from "effect/Effect";
|
|
3
|
-
import * as FileSystem from "effect/FileSystem";
|
|
4
|
-
import * as Option from "effect/Option";
|
|
5
|
-
import * as Path from "effect/Path";
|
|
6
|
-
import * as Schema from "effect/Schema";
|
|
7
|
-
import { parseReleaseIntent } from "../config/load.js";
|
|
8
|
-
import { DEFAULT_CONFIG_PATH } from "../config/schema.js";
|
|
9
|
-
import { ReleaseName, ReleaseVersion } from "../domain/release.js";
|
|
10
|
-
import { TargetId, targetOrder } from "../domain/target.js";
|
|
11
|
-
import { resolveReleaseIdentitySource } from "../planner/normalize-release.js";
|
|
12
|
-
import { PlanReleaseConfigOptions, planReleaseConfig, ValidateReleaseConfigFileOptions, validateReleaseConfigFile } from "./config.js";
|
|
13
|
-
import { releaseConfigFields, releaseFormatField } from "./options.js";
|
|
14
|
-
export const ReleaseDiagnosticStatus = Schema.Literals(["ok", "warn", "fail", "info"]);
|
|
15
|
-
export const ReleaseDiagnosticConfidence = Schema.Literals(["confirmed", "inferred", "not-checked"]);
|
|
16
|
-
export const ReleaseDiagnosticsFormat = Schema.Literals(["json", "text", "markdown"]);
|
|
17
|
-
export const ReleaseCiProvider = Schema.Literals(["github-actions"]);
|
|
18
|
-
export class ReleaseDiagnosticCheck extends Schema.Class("ReleaseDiagnosticCheck")({
|
|
19
|
-
id: Schema.NonEmptyString,
|
|
20
|
-
targetId: Schema.optionalKey(TargetId),
|
|
21
|
-
status: ReleaseDiagnosticStatus,
|
|
22
|
-
confidence: ReleaseDiagnosticConfidence,
|
|
23
|
-
message: Schema.String
|
|
24
|
-
}) {
|
|
25
|
-
}
|
|
26
|
-
export class ReleaseDiagnosticReport extends Schema.Class("ReleaseDiagnosticReport")({
|
|
27
|
-
schemaVersion: Schema.Literal("release-diagnostics/v1"),
|
|
28
|
-
releaseName: ReleaseName,
|
|
29
|
-
releaseVersion: ReleaseVersion,
|
|
30
|
-
checks: Schema.Array(ReleaseDiagnosticCheck)
|
|
31
|
-
}) {
|
|
32
|
-
}
|
|
33
|
-
export class ReleaseDiagnosticsOptions extends Schema.Class("ReleaseDiagnosticsOptions")({
|
|
34
|
-
root: Schema.optionalKey(Schema.String),
|
|
35
|
-
configPath: Schema.optionalKey(Schema.String),
|
|
36
|
-
target: Schema.optionalKey(Schema.String),
|
|
37
|
-
provider: Schema.optionalKey(ReleaseCiProvider),
|
|
38
|
-
workflow: Schema.optionalKey(Schema.String),
|
|
39
|
-
format: Schema.optionalKey(ReleaseDiagnosticsFormat),
|
|
40
|
-
missingCiIsNotChecked: Schema.optionalKey(Schema.Boolean)
|
|
41
|
-
}) {
|
|
42
|
-
}
|
|
43
|
-
const releaseDiagnosticsOptionsFromInput = (input = {}) => ReleaseDiagnosticsOptions.make({
|
|
44
|
-
...releaseConfigFields(input),
|
|
45
|
-
...(input.target === undefined ? {} : { target: input.target }),
|
|
46
|
-
...(input.provider === undefined ? {} : { provider: input.provider }),
|
|
47
|
-
...(input.workflow === undefined ? {} : { workflow: input.workflow }),
|
|
48
|
-
...releaseFormatField(input),
|
|
49
|
-
...(input.missingCiIsNotChecked === undefined ? {} : { missingCiIsNotChecked: input.missingCiIsNotChecked })
|
|
50
|
-
});
|
|
51
|
-
const readOptionalEnv = (name) => Config.string(name).pipe(Effect.option, Effect.map(Option.getOrUndefined));
|
|
52
|
-
const envExists = Effect.fn("diagnostics.envExists")(function* (name) {
|
|
53
|
-
const value = yield* readOptionalEnv(name);
|
|
54
|
-
return value !== undefined;
|
|
55
|
-
});
|
|
56
|
-
const check = (input) => ReleaseDiagnosticCheck.make({
|
|
57
|
-
id: input.id,
|
|
58
|
-
...(input.targetId === undefined ? {} : { targetId: input.targetId }),
|
|
59
|
-
status: input.status,
|
|
60
|
-
confidence: input.confidence,
|
|
61
|
-
message: input.message
|
|
62
|
-
});
|
|
63
|
-
const reportForIdentity = (identity, checks) => ReleaseDiagnosticReport.make({
|
|
64
|
-
schemaVersion: "release-diagnostics/v1",
|
|
65
|
-
releaseName: identity.name,
|
|
66
|
-
releaseVersion: identity.version,
|
|
67
|
-
checks: [...checks]
|
|
68
|
-
});
|
|
69
|
-
const plannedFailure = (message) => ({
|
|
70
|
-
_tag: "Failed",
|
|
71
|
-
message
|
|
72
|
-
});
|
|
73
|
-
const plannedSuccess = (plan) => ({
|
|
74
|
-
_tag: "Ok",
|
|
75
|
-
plan
|
|
76
|
-
});
|
|
77
|
-
const targetMatches = (target, filter) => filter === undefined ||
|
|
78
|
-
target.id === filter ||
|
|
79
|
-
target._tag.toLowerCase().includes(filter.toLowerCase());
|
|
80
|
-
const operationsForTarget = (plan, targetId) => plan.operations.filter((operation) => operation.targetId === targetId);
|
|
81
|
-
const commandEnvNames = (operations) => {
|
|
82
|
-
const names = new Set();
|
|
83
|
-
for (const operation of operations) {
|
|
84
|
-
if ("command" in operation) {
|
|
85
|
-
for (const name of operation.command.requiredEnv) {
|
|
86
|
-
names.add(name);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
if (operation._tag === "VerifyHttpOperation") {
|
|
90
|
-
for (const name of operation.request.requiredEnv) {
|
|
91
|
-
names.add(name);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return [...names].sort();
|
|
96
|
-
};
|
|
97
|
-
const commandExecutables = (operations) => {
|
|
98
|
-
const names = new Set();
|
|
99
|
-
for (const operation of operations) {
|
|
100
|
-
if ("command" in operation) {
|
|
101
|
-
names.add(operation.command.executable);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return [...names].sort();
|
|
105
|
-
};
|
|
106
|
-
const authChecksForPlan = Effect.fn("diagnostics.authChecksForPlan")(function* (plan, targetFilter) {
|
|
107
|
-
const checks = [];
|
|
108
|
-
for (const target of plan.targets.filter((candidate) => targetMatches(candidate, targetFilter))) {
|
|
109
|
-
const capability = plan.targetCapabilities.find((candidate) => candidate.targetId === target.id);
|
|
110
|
-
const operations = operationsForTarget(plan, target.id);
|
|
111
|
-
if (capability?.authRequirement === "env-token") {
|
|
112
|
-
for (const name of commandEnvNames(operations)) {
|
|
113
|
-
const present = yield* envExists(name);
|
|
114
|
-
checks.push(check({
|
|
115
|
-
id: `${target.id}:env:${name}`,
|
|
116
|
-
targetId: target.id,
|
|
117
|
-
status: present ? "ok" : "fail",
|
|
118
|
-
confidence: "confirmed",
|
|
119
|
-
message: present
|
|
120
|
-
? `${target.id} requires ${name}; the variable is present.`
|
|
121
|
-
: `${target.id} requires ${name}; the variable is missing.`
|
|
122
|
-
}));
|
|
123
|
-
}
|
|
124
|
-
continue;
|
|
125
|
-
}
|
|
126
|
-
if (capability?.authRequirement === "trusted-publishing") {
|
|
127
|
-
const hasOidcUrl = yield* envExists("ACTIONS_ID_TOKEN_REQUEST_URL");
|
|
128
|
-
const hasOidcToken = yield* envExists("ACTIONS_ID_TOKEN_REQUEST_TOKEN");
|
|
129
|
-
checks.push(check({
|
|
130
|
-
id: `${target.id}:trusted-publishing`,
|
|
131
|
-
targetId: target.id,
|
|
132
|
-
status: hasOidcUrl && hasOidcToken ? "ok" : "info",
|
|
133
|
-
confidence: hasOidcUrl && hasOidcToken ? "confirmed" : "inferred",
|
|
134
|
-
message: hasOidcUrl && hasOidcToken
|
|
135
|
-
? `${target.id} has GitHub Actions OIDC request environment available.`
|
|
136
|
-
: `${target.id} uses trusted publishing; provider setup is confirmed only inside GitHub Actions.`
|
|
137
|
-
}));
|
|
138
|
-
if (capability.authSetup !== undefined) {
|
|
139
|
-
checks.push(check({
|
|
140
|
-
id: `${target.id}:trusted-publishing-setup`,
|
|
141
|
-
targetId: target.id,
|
|
142
|
-
status: "info",
|
|
143
|
-
confidence: "inferred",
|
|
144
|
-
message: `${target.id} expects workflow ${capability.authSetup.workflow}, ` +
|
|
145
|
-
`permissions ${capability.authSetup.requiredPermissions.map((permission) => `${permission.name}: ${permission.value}`).join(", ")}, ` +
|
|
146
|
-
`and prerequisites ${capability.authSetup.prerequisites.join(", ")}.`
|
|
147
|
-
}));
|
|
148
|
-
}
|
|
149
|
-
continue;
|
|
150
|
-
}
|
|
151
|
-
const executables = commandExecutables(operations);
|
|
152
|
-
checks.push(check({
|
|
153
|
-
id: `${target.id}:cli-auth`,
|
|
154
|
-
targetId: target.id,
|
|
155
|
-
status: "info",
|
|
156
|
-
confidence: "inferred",
|
|
157
|
-
message: executables.length === 0
|
|
158
|
-
? `${target.id} has no command-line authentication checks in the plan.`
|
|
159
|
-
: `${target.id} expects local CLI/auth readiness for: ${executables.join(", ")}.`
|
|
160
|
-
}));
|
|
161
|
-
}
|
|
162
|
-
if (checks.length === 0) {
|
|
163
|
-
checks.push(check({
|
|
164
|
-
id: "auth:no-targets",
|
|
165
|
-
status: "info",
|
|
166
|
-
confidence: "not-checked",
|
|
167
|
-
message: targetFilter === undefined
|
|
168
|
-
? "No release targets were found."
|
|
169
|
-
: `No release target matched ${targetFilter}.`
|
|
170
|
-
}));
|
|
171
|
-
}
|
|
172
|
-
return checks;
|
|
173
|
-
});
|
|
174
|
-
const basename = (pathName) => {
|
|
175
|
-
const parts = pathName.replaceAll("\\", "/").split("/");
|
|
176
|
-
return parts[parts.length - 1] ?? pathName;
|
|
177
|
-
};
|
|
178
|
-
const workspacePath = (path, root, pathName) => path.isAbsolute(pathName) ? pathName : path.resolve(root, pathName);
|
|
179
|
-
const configRoot = (path, options) => {
|
|
180
|
-
if (options.root !== undefined) {
|
|
181
|
-
return options.root;
|
|
182
|
-
}
|
|
183
|
-
if (options.configPath !== undefined && path.isAbsolute(options.configPath)) {
|
|
184
|
-
return path.dirname(options.configPath);
|
|
185
|
-
}
|
|
186
|
-
return ".";
|
|
187
|
-
};
|
|
188
|
-
const planOptionsFromDiagnostics = (options) => PlanReleaseConfigOptions.make(releaseConfigFields(options));
|
|
189
|
-
const validationOptionsFromDiagnostics = (options) => ValidateReleaseConfigFileOptions.make(releaseConfigFields(options));
|
|
190
|
-
const configPath = (options) => options.configPath ?? DEFAULT_CONFIG_PATH;
|
|
191
|
-
const configReadPath = (path, options) => {
|
|
192
|
-
const pathName = configPath(options);
|
|
193
|
-
return path.isAbsolute(pathName) ? pathName : path.resolve(configRoot(path, options), pathName);
|
|
194
|
-
};
|
|
195
|
-
const readReleaseCiDiagnosticSubject = Effect.fn("diagnostics.readReleaseCiDiagnosticSubject")(function* (options) {
|
|
196
|
-
const fs = yield* FileSystem.FileSystem;
|
|
197
|
-
const path = yield* Path.Path;
|
|
198
|
-
const pathName = configPath(options);
|
|
199
|
-
const root = configRoot(path, options);
|
|
200
|
-
const contents = yield* fs.readFileString(configReadPath(path, options));
|
|
201
|
-
const intent = yield* parseReleaseIntent(contents, pathName);
|
|
202
|
-
const identity = yield* resolveReleaseIdentitySource(intent.identity, root);
|
|
203
|
-
const targets = [...intent.targets].sort(targetOrder);
|
|
204
|
-
return {
|
|
205
|
-
identity,
|
|
206
|
-
targets
|
|
207
|
-
};
|
|
208
|
-
});
|
|
209
|
-
const inferredTrustedPublishingWorkflow = (subject) => {
|
|
210
|
-
for (const target of subject.targets) {
|
|
211
|
-
if (target._tag === "NpmRegistryTarget" && target.trustedPublishing !== undefined) {
|
|
212
|
-
return target.trustedPublishing.workflow;
|
|
213
|
-
}
|
|
214
|
-
if (target._tag === "PyPiRegistryTarget" && target.trustedPublishing !== undefined) {
|
|
215
|
-
return target.trustedPublishing.workflow;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return undefined;
|
|
219
|
-
};
|
|
220
|
-
const defaultWorkflowPath = (subject) => {
|
|
221
|
-
const workflow = inferredTrustedPublishingWorkflow(subject);
|
|
222
|
-
return workflow === undefined ? undefined : `.github/workflows/${workflow}`;
|
|
223
|
-
};
|
|
224
|
-
const workflowJobBlocks = (contents) => {
|
|
225
|
-
const lines = contents.split(/\r?\n/);
|
|
226
|
-
const jobsStart = lines.findIndex((line) => /^jobs:\s*$/.test(line));
|
|
227
|
-
if (jobsStart < 0) {
|
|
228
|
-
return [];
|
|
229
|
-
}
|
|
230
|
-
const jobs = [];
|
|
231
|
-
for (let index = jobsStart + 1; index < lines.length; index += 1) {
|
|
232
|
-
const line = lines[index] ?? "";
|
|
233
|
-
if (/^[A-Za-z0-9_-]+:\s*$/.test(line)) {
|
|
234
|
-
break;
|
|
235
|
-
}
|
|
236
|
-
const match = /^ ([A-Za-z0-9_-]+):\s*$/.exec(line);
|
|
237
|
-
if (match === null) {
|
|
238
|
-
continue;
|
|
239
|
-
}
|
|
240
|
-
const name = match[1] ?? "";
|
|
241
|
-
const collected = [];
|
|
242
|
-
for (let jobIndex = index; jobIndex < lines.length; jobIndex += 1) {
|
|
243
|
-
const jobLine = lines[jobIndex] ?? "";
|
|
244
|
-
if (jobIndex > index && (/^ [A-Za-z0-9_-]+:\s*$/.test(jobLine) || /^[A-Za-z0-9_-]+:\s*$/.test(jobLine))) {
|
|
245
|
-
break;
|
|
246
|
-
}
|
|
247
|
-
collected.push(jobLine);
|
|
248
|
-
}
|
|
249
|
-
jobs.push({
|
|
250
|
-
name,
|
|
251
|
-
contents: collected.join("\n")
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
return jobs;
|
|
255
|
-
};
|
|
256
|
-
const hasPermission = (block, name, value) => {
|
|
257
|
-
const pattern = new RegExp(`^\\s+${name}:\\s*${value}\\s*$`, "m");
|
|
258
|
-
return pattern.test(block);
|
|
259
|
-
};
|
|
260
|
-
const hasUploadAlways = (block) => block.includes("actions/upload-artifact") && /^\s+if:\s*always\(\)\s*$/m.test(block);
|
|
261
|
-
const hasTsReleaseAction = (block) => /^\s+(?:-\s+)?uses:\s+(mannyc2\/ts-release-action@v1|\.\/apps\/ts-release-action)\s*$/m.test(block);
|
|
262
|
-
const hasYamlValue = (block, name, value) => {
|
|
263
|
-
const escaped = value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
264
|
-
return new RegExp(`^\\s+${name}:\\s*["']?${escaped}["']?\\s*$`, "m").test(block);
|
|
265
|
-
};
|
|
266
|
-
const hasActionCommand = (block, command) => hasTsReleaseAction(block) && hasYamlValue(block, "command", command);
|
|
267
|
-
const hasActionTruthyInput = (block, name) => hasTsReleaseAction(block) && hasYamlValue(block, name, "true");
|
|
268
|
-
const hasCliPlanReview = (block) => (block.includes(" cli plan ") || block.includes(" release plan ") || block.includes("run cli plan ")) &&
|
|
269
|
-
block.includes("--format markdown");
|
|
270
|
-
const hasActionPlanReview = (block) => hasActionCommand(block, "plan") && hasYamlValue(block, "format", "markdown");
|
|
271
|
-
const hasPlanReview = (block) => hasCliPlanReview(block) || hasActionPlanReview(block);
|
|
272
|
-
const jobExecutesRelease = (block) => block.includes("--execute") ||
|
|
273
|
-
hasActionTruthyInput(block, "execute") ||
|
|
274
|
-
hasActionCommand(block, "run") ||
|
|
275
|
-
hasActionCommand(block, "reconcile");
|
|
276
|
-
const hasCliApprovedExecution = (block) => block.includes("run") && block.includes("--execute") && block.includes("--approve-irreversible");
|
|
277
|
-
const hasActionApprovedExecution = (block) => hasActionCommand(block, "run") &&
|
|
278
|
-
hasActionTruthyInput(block, "execute") &&
|
|
279
|
-
hasActionTruthyInput(block, "approve-irreversible");
|
|
280
|
-
const hasApprovedExecution = (block) => hasCliApprovedExecution(block) || hasActionApprovedExecution(block);
|
|
281
|
-
const hasEnvironment = (block) => /^\s+environment:\s*\S+/m.test(block);
|
|
282
|
-
const planReviewJobs = (jobs) => jobs.filter((job) => hasPlanReview(job.contents) && !jobExecutesRelease(job.contents));
|
|
283
|
-
const planExecutionCandidates = (jobs) => jobs.filter((job) => job.name === "plan" || hasPlanReview(job.contents));
|
|
284
|
-
const executeJobCandidates = (jobs) => jobs.filter((job) => hasApprovedExecution(job.contents));
|
|
285
|
-
const fallbackNamedJob = (jobs, name) => jobs.find((job) => job.name === name);
|
|
286
|
-
const hasWorkflowTrustedTarget = (subject) => subject.targets.some((target) => (target._tag === "NpmRegistryTarget" || target._tag === "PyPiRegistryTarget") &&
|
|
287
|
-
target.trustedPublishing !== undefined);
|
|
288
|
-
const hasGitHubReleaseTarget = (subject) => subject.targets.some((target) => target._tag === "GitHubReleaseTarget");
|
|
289
|
-
const ciChecksForContents = (subject, workflowPath, contents) => {
|
|
290
|
-
const checks = [
|
|
291
|
-
check({
|
|
292
|
-
id: "ci:workflow-file",
|
|
293
|
-
status: "ok",
|
|
294
|
-
confidence: "confirmed",
|
|
295
|
-
message: `Workflow file ${workflowPath} exists.`
|
|
296
|
-
})
|
|
297
|
-
];
|
|
298
|
-
const expectedWorkflow = inferredTrustedPublishingWorkflow(subject);
|
|
299
|
-
if (expectedWorkflow !== undefined) {
|
|
300
|
-
const matches = basename(workflowPath) === expectedWorkflow;
|
|
301
|
-
checks.push(check({
|
|
302
|
-
id: "ci:workflow-name",
|
|
303
|
-
status: matches ? "ok" : "fail",
|
|
304
|
-
confidence: "confirmed",
|
|
305
|
-
message: matches
|
|
306
|
-
? `Workflow filename matches trusted publishing workflow ${expectedWorkflow}.`
|
|
307
|
-
: `Workflow filename ${basename(workflowPath)} does not match trusted publishing workflow ${expectedWorkflow}.`
|
|
308
|
-
}));
|
|
309
|
-
}
|
|
310
|
-
const jobs = workflowJobBlocks(contents);
|
|
311
|
-
const safePlanJobs = planReviewJobs(jobs);
|
|
312
|
-
const unsafePlanJobs = planExecutionCandidates(jobs).filter((job) => jobExecutesRelease(job.contents));
|
|
313
|
-
const planJob = safePlanJobs[0] ?? fallbackNamedJob(jobs, "plan");
|
|
314
|
-
const executeJobs = executeJobCandidates(jobs);
|
|
315
|
-
const executeJob = executeJobs[0] ?? fallbackNamedJob(jobs, "execute");
|
|
316
|
-
const executeJobHasApprovedExecution = executeJob === undefined ? false : hasApprovedExecution(executeJob.contents);
|
|
317
|
-
checks.push(check({
|
|
318
|
-
id: "ci:plan-job",
|
|
319
|
-
status: safePlanJobs.length === 0 ? "fail" : "ok",
|
|
320
|
-
confidence: "confirmed",
|
|
321
|
-
message: safePlanJobs.length === 0
|
|
322
|
-
? "Workflow is missing a plan review job."
|
|
323
|
-
: `Workflow has a plan review job (${safePlanJobs[0]?.name ?? "unknown"}).`
|
|
324
|
-
}));
|
|
325
|
-
checks.push(check({
|
|
326
|
-
id: "ci:plan-job-no-execute",
|
|
327
|
-
status: unsafePlanJobs.length > 0 ? "fail" : "ok",
|
|
328
|
-
confidence: "confirmed",
|
|
329
|
-
message: unsafePlanJobs.length > 0
|
|
330
|
-
? `Plan review candidate includes release execution (${unsafePlanJobs.map((job) => job.name).join(", ")}).`
|
|
331
|
-
: "Plan review jobs do not execute release operations."
|
|
332
|
-
}));
|
|
333
|
-
checks.push(check({
|
|
334
|
-
id: "ci:plan-review",
|
|
335
|
-
status: safePlanJobs.length > 0 ? "ok" : "warn",
|
|
336
|
-
confidence: "confirmed",
|
|
337
|
-
message: safePlanJobs.length > 0
|
|
338
|
-
? "Plan review job records a Markdown release plan."
|
|
339
|
-
: "Workflow should record a Markdown release plan in a non-executing job."
|
|
340
|
-
}));
|
|
341
|
-
checks.push(check({
|
|
342
|
-
id: "ci:plan-artifact",
|
|
343
|
-
status: planJob !== undefined && hasUploadAlways(planJob.contents) ? "ok" : "warn",
|
|
344
|
-
confidence: "confirmed",
|
|
345
|
-
message: planJob !== undefined && hasUploadAlways(planJob.contents)
|
|
346
|
-
? "Plan review job uploads review artifacts with if: always()."
|
|
347
|
-
: "Plan review job should upload review artifacts with if: always()."
|
|
348
|
-
}));
|
|
349
|
-
checks.push(check({
|
|
350
|
-
id: "ci:execute-job",
|
|
351
|
-
status: executeJobHasApprovedExecution ? "ok" : "fail",
|
|
352
|
-
confidence: "confirmed",
|
|
353
|
-
message: executeJobHasApprovedExecution
|
|
354
|
-
? `Workflow has an approved execute job (${executeJob?.name ?? "unknown"}).`
|
|
355
|
-
: "Workflow is missing a job that runs approved release execution."
|
|
356
|
-
}));
|
|
357
|
-
if (executeJob !== undefined) {
|
|
358
|
-
checks.push(check({
|
|
359
|
-
id: "ci:execute-environment",
|
|
360
|
-
status: hasEnvironment(executeJob.contents) ? "ok" : "fail",
|
|
361
|
-
confidence: "confirmed",
|
|
362
|
-
message: hasEnvironment(executeJob.contents)
|
|
363
|
-
? "Execute job is protected by a GitHub environment."
|
|
364
|
-
: "Execute job must configure a GitHub environment."
|
|
365
|
-
}));
|
|
366
|
-
if (hasWorkflowTrustedTarget(subject)) {
|
|
367
|
-
checks.push(check({
|
|
368
|
-
id: "ci:execute-id-token",
|
|
369
|
-
status: hasPermission(executeJob.contents, "id-token", "write") ? "ok" : "fail",
|
|
370
|
-
confidence: "confirmed",
|
|
371
|
-
message: hasPermission(executeJob.contents, "id-token", "write")
|
|
372
|
-
? "Execute job grants id-token: write for trusted publishing."
|
|
373
|
-
: "Execute job must grant id-token: write for trusted publishing."
|
|
374
|
-
}));
|
|
375
|
-
}
|
|
376
|
-
if (hasGitHubReleaseTarget(subject)) {
|
|
377
|
-
checks.push(check({
|
|
378
|
-
id: "ci:execute-contents",
|
|
379
|
-
status: hasPermission(executeJob.contents, "contents", "write") ? "ok" : "fail",
|
|
380
|
-
confidence: "confirmed",
|
|
381
|
-
message: hasPermission(executeJob.contents, "contents", "write")
|
|
382
|
-
? "Execute job grants contents: write for GitHub Releases."
|
|
383
|
-
: "Execute job must grant contents: write for GitHub Releases."
|
|
384
|
-
}));
|
|
385
|
-
}
|
|
386
|
-
checks.push(check({
|
|
387
|
-
id: "ci:execute-approval",
|
|
388
|
-
status: executeJobHasApprovedExecution ? "ok" : "fail",
|
|
389
|
-
confidence: "confirmed",
|
|
390
|
-
message: executeJobHasApprovedExecution
|
|
391
|
-
? "Execute job runs approved release execution."
|
|
392
|
-
: "Execute job must run release execution with execute and irreversible approval."
|
|
393
|
-
}));
|
|
394
|
-
checks.push(check({
|
|
395
|
-
id: "ci:execute-evidence",
|
|
396
|
-
status: hasUploadAlways(executeJob.contents) ? "ok" : "warn",
|
|
397
|
-
confidence: "confirmed",
|
|
398
|
-
message: hasUploadAlways(executeJob.contents)
|
|
399
|
-
? "Execute job uploads evidence with if: always()."
|
|
400
|
-
: "Execute job should upload evidence with if: always()."
|
|
401
|
-
}));
|
|
402
|
-
}
|
|
403
|
-
return checks;
|
|
404
|
-
};
|
|
405
|
-
const readWorkflowChecks = Effect.fn("diagnostics.readWorkflowChecks")(function* (subject, options) {
|
|
406
|
-
const fs = yield* FileSystem.FileSystem;
|
|
407
|
-
const path = yield* Path.Path;
|
|
408
|
-
const root = configRoot(path, options);
|
|
409
|
-
const workflowPath = options.workflow ?? defaultWorkflowPath(subject) ?? ".github/workflows/release.yml";
|
|
410
|
-
const absolutePath = workspacePath(path, root, workflowPath);
|
|
411
|
-
const exists = yield* fs.exists(absolutePath);
|
|
412
|
-
if (!exists) {
|
|
413
|
-
return [
|
|
414
|
-
check({
|
|
415
|
-
id: "ci:workflow-file",
|
|
416
|
-
status: options.missingCiIsNotChecked === true ? "info" : "fail",
|
|
417
|
-
confidence: "not-checked",
|
|
418
|
-
message: options.missingCiIsNotChecked === true
|
|
419
|
-
? `Workflow file ${workflowPath} was not found; CI was not checked.`
|
|
420
|
-
: `Workflow file ${workflowPath} was not found.`
|
|
421
|
-
})
|
|
422
|
-
];
|
|
423
|
-
}
|
|
424
|
-
const contents = yield* fs.readFileString(absolutePath);
|
|
425
|
-
return ciChecksForContents(subject, workflowPath, contents);
|
|
426
|
-
});
|
|
427
|
-
export const checkAuthReleaseConfig = Effect.fn("diagnostics.checkAuthReleaseConfig")(function* (input = {}) {
|
|
428
|
-
const options = releaseDiagnosticsOptionsFromInput(input);
|
|
429
|
-
const plan = yield* planReleaseConfig(planOptionsFromDiagnostics(options));
|
|
430
|
-
const checks = yield* authChecksForPlan(plan, options.target);
|
|
431
|
-
return reportForIdentity(plan.identity, checks);
|
|
432
|
-
});
|
|
433
|
-
export const checkCiReleaseConfig = Effect.fn("diagnostics.checkCiReleaseConfig")(function* (input = {}) {
|
|
434
|
-
const options = releaseDiagnosticsOptionsFromInput(input);
|
|
435
|
-
const subject = yield* readReleaseCiDiagnosticSubject(options);
|
|
436
|
-
const checks = yield* readWorkflowChecks(subject, options);
|
|
437
|
-
return reportForIdentity(subject.identity, checks);
|
|
438
|
-
});
|
|
439
|
-
export const doctorReleaseConfig = Effect.fn("diagnostics.doctorReleaseConfig")(function* (input = {}) {
|
|
440
|
-
const options = releaseDiagnosticsOptionsFromInput(input);
|
|
441
|
-
const validation = yield* validateReleaseConfigFile(validationOptionsFromDiagnostics(options)).pipe(Effect.match({
|
|
442
|
-
onFailure: (error) => check({
|
|
443
|
-
id: "config:validation",
|
|
444
|
-
status: "fail",
|
|
445
|
-
confidence: "confirmed",
|
|
446
|
-
message: `Config validation failed: ${error.message}`
|
|
447
|
-
}),
|
|
448
|
-
onSuccess: (result) => check({
|
|
449
|
-
id: "config:validation",
|
|
450
|
-
status: "ok",
|
|
451
|
-
confidence: "confirmed",
|
|
452
|
-
message: `Config ${result.path} is valid.`
|
|
453
|
-
})
|
|
454
|
-
}));
|
|
455
|
-
const planned = yield* planReleaseConfig(planOptionsFromDiagnostics(options)).pipe(Effect.match({
|
|
456
|
-
onFailure: (error) => plannedFailure(error.message),
|
|
457
|
-
onSuccess: plannedSuccess
|
|
458
|
-
}));
|
|
459
|
-
if (planned._tag === "Failed") {
|
|
460
|
-
return ReleaseDiagnosticReport.make({
|
|
461
|
-
schemaVersion: "release-diagnostics/v1",
|
|
462
|
-
releaseName: "unknown",
|
|
463
|
-
releaseVersion: "unknown",
|
|
464
|
-
checks: [
|
|
465
|
-
validation,
|
|
466
|
-
check({
|
|
467
|
-
id: "plan:construction",
|
|
468
|
-
status: "fail",
|
|
469
|
-
confidence: "confirmed",
|
|
470
|
-
message: `Plan construction failed: ${planned.message}`
|
|
471
|
-
})
|
|
472
|
-
]
|
|
473
|
-
});
|
|
474
|
-
}
|
|
475
|
-
const authChecks = yield* authChecksForPlan(planned.plan, options.target);
|
|
476
|
-
const workflow = options.workflow ?? defaultWorkflowPath(planned.plan);
|
|
477
|
-
const ciChecks = yield* readWorkflowChecks(planned.plan, ReleaseDiagnosticsOptions.make({
|
|
478
|
-
...releaseConfigFields(options),
|
|
479
|
-
...(workflow === undefined ? {} : { workflow }),
|
|
480
|
-
missingCiIsNotChecked: true
|
|
481
|
-
}));
|
|
482
|
-
return reportForIdentity(planned.plan.identity, [
|
|
483
|
-
validation,
|
|
484
|
-
check({
|
|
485
|
-
id: "plan:construction",
|
|
486
|
-
status: "ok",
|
|
487
|
-
confidence: "confirmed",
|
|
488
|
-
message: "Release plan can be constructed."
|
|
489
|
-
}),
|
|
490
|
-
...authChecks,
|
|
491
|
-
...ciChecks
|
|
492
|
-
]);
|
|
493
|
-
});
|
|
494
|
-
export const renderReleaseDiagnosticsJson = (report) => `${JSON.stringify(report, null, 2)}\n`;
|
|
495
|
-
export const renderReleaseDiagnosticsText = (report) => {
|
|
496
|
-
const lines = [
|
|
497
|
-
`diagnostics: ${report.releaseName}@${report.releaseVersion}`
|
|
498
|
-
];
|
|
499
|
-
for (const item of report.checks) {
|
|
500
|
-
lines.push(`${item.status.padEnd(4)} ${item.confidence.padEnd(11)} ${item.id}: ${item.message}`);
|
|
501
|
-
}
|
|
502
|
-
return `${lines.join("\n")}\n`;
|
|
503
|
-
};
|
|
504
|
-
export const renderReleaseDiagnosticsMarkdown = (report) => {
|
|
505
|
-
const lines = [
|
|
506
|
-
`# Release Diagnostics ${report.releaseName}@${report.releaseVersion}`,
|
|
507
|
-
"",
|
|
508
|
-
"| Status | Confidence | Check | Message |",
|
|
509
|
-
"| --- | --- | --- | --- |"
|
|
510
|
-
];
|
|
511
|
-
for (const item of report.checks) {
|
|
512
|
-
lines.push(`| ${item.status} | ${item.confidence} | ${item.id} | ${item.message.replaceAll("|", "\\|")} |`);
|
|
513
|
-
}
|
|
514
|
-
return `${lines.join("\n")}\n`;
|
|
515
|
-
};
|
|
516
|
-
export const renderReleaseDiagnostics = (report, format = "text") => {
|
|
517
|
-
switch (format) {
|
|
518
|
-
case "json":
|
|
519
|
-
return renderReleaseDiagnosticsJson(report);
|
|
520
|
-
case "markdown":
|
|
521
|
-
return renderReleaseDiagnosticsMarkdown(report);
|
|
522
|
-
case "text":
|
|
523
|
-
return renderReleaseDiagnosticsText(report);
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
export const checkAuth = checkAuthReleaseConfig;
|
|
527
|
-
export const checkCi = checkCiReleaseConfig;
|
|
528
|
-
export const doctor = doctorReleaseConfig;
|
|
529
|
-
export const render = renderReleaseDiagnostics;
|
|
530
|
-
//# sourceMappingURL=diagnostics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../src/workflows/diagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAA;AACnC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,EAAmB,WAAW,EAAe,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChG,OAAO,EAAgB,QAAQ,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,EACL,wBAAwB,EACxB,iBAAiB,EACjB,gCAAgC,EAChC,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,cAAc,CAAA;AAIrB,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAGtF,MAAM,C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AAU;YACb,OAAO,gCAAgC,CAAC,MAAM,CAAC,CAAA;QACjD,KAAK,MAAM;YACT,OAAO,4BAA4B,CAAC,MAAM,CAAC,CAAA;IAC/C,CAAC;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,sBAAsB,CAAA;AAC/C,MAAM,CAAC,MAAM,OAAO,GAAG,oBAAoB,CAAA;AAC3C,MAAM,CAAC,MAAM,MAAM,GAAG,mBAAmB,CAAA;AACzC,MAAM,CAAC,MAAM,MAAM,GAAG,wBAAwB,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as Config from "./config.js";
|
|
2
|
-
export type * from "../types/effect-internal.js";
|
|
3
|
-
export declare const stageArtifacts: (input?: Config.StageArtifactsConfigInput | undefined) => import("effect/Effect").Effect<Config.StagedReleaseArtifactsResult, import("../artifacts/adapter.js").ArtifactRecipeStageError | import("../artifacts/registry.js").MissingArtifactRecipeAdapterError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../artifacts/registry.js").ArtifactRecipeRegistry | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
4
|
-
export declare const renderStageArtifacts: (input?: Config.StageArtifactsConfigInput | undefined) => import("effect/Effect").Effect<string, import("../artifacts/adapter.js").ArtifactRecipeStageError | import("../artifacts/registry.js").MissingArtifactRecipeAdapterError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../artifacts/registry.js").ArtifactRecipeRegistry | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
5
|
-
export declare const renderStagedArtifacts: (result: Config.StagedReleaseArtifactsResult, format?: Config.StageArtifactsFormat) => string;
|
|
6
|
-
export declare const planDistribution: (input?: Config.PlanReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/release.js").ReleasePlan, import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
7
|
-
export declare const renderDistributionPlan: (input?: Config.PlanReleaseConfigInput | undefined) => import("effect/Effect").Effect<string, import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
8
|
-
export declare const renderPlannedDistributionPlan: (input?: Config.PlanReleaseConfigInput | undefined) => import("effect/Effect").Effect<Config.PlannedReleaseConfigPlanResult, import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
9
|
-
export declare const renderDistribution: (input?: Config.RenderReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").WorkspaceWriteError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
10
|
-
export declare const validateDistribution: (input?: Config.ReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
11
|
-
export declare const executeApprovedDistribution: (input?: Config.ReleaseExecutionInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
12
|
-
export declare const runApprovedDistribution: (input?: Config.ReleaseExecutionInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").WorkspaceWriteError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("../host/http.js").ReleaseHttp | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
13
|
-
export declare const verifyDistribution: (input?: Config.ReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("../host/http.js").ReleaseHttp | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
14
|
-
export declare const reconcileDistribution: (input?: Config.ReleaseReconcileConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").RemoteStateInspectionError | import("../planner/errors.js").ReconciliationBlockedError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("../host/http.js").ReleaseHttp | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
15
|
-
export declare const stage: (input?: Config.StageArtifactsConfigInput | undefined) => import("effect/Effect").Effect<Config.StagedReleaseArtifactsResult, import("../artifacts/adapter.js").ArtifactRecipeStageError | import("../artifacts/registry.js").MissingArtifactRecipeAdapterError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../artifacts/registry.js").ArtifactRecipeRegistry | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
16
|
-
export declare const plan: (input?: Config.PlanReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/release.js").ReleasePlan, import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
17
|
-
export declare const renderPlan: (input?: Config.PlanReleaseConfigInput | undefined) => import("effect/Effect").Effect<string, import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
18
|
-
export declare const renderPlannedPlan: (input?: Config.PlanReleaseConfigInput | undefined) => import("effect/Effect").Effect<Config.PlannedReleaseConfigPlanResult, import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
19
|
-
export declare const render: (input?: Config.RenderReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").WorkspaceWriteError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
20
|
-
export declare const validate: (input?: Config.ReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
21
|
-
export declare const execute: (input?: Config.ReleaseExecutionInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
22
|
-
export declare const run: (input?: Config.ReleaseExecutionInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").WorkspaceWriteError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("../host/http.js").ReleaseHttp | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
23
|
-
export declare const verify: (input?: Config.ReleaseConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("../host/http.js").ReleaseHttp | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
24
|
-
export declare const reconcile: (input?: Config.ReleaseReconcileConfigInput | undefined) => import("effect/Effect").Effect<import("../domain/evidence.js").EvidenceBundle, import("../domain/operation.js").ExecutionApprovalError | import("../config/errors.js").ConfigReadError | import("../config/errors.js").ConfigParseError | import("../config/errors.js").ConfigValidationError | import("../host/host.js").CommandRunnerError | import("../planner/errors.js").ReleaseNormalizationError | import("../planner/errors.js").PlanConstructionError | import("../planner/errors.js").RemoteStateInspectionError | import("../planner/errors.js").ReconciliationBlockedError | import("../planner/errors.js").OperationFailedError | import("../targets/registry.js").MissingTargetAdapterError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | import("../host/host.js").ReleaseCommandRunner | import("../host/http.js").ReleaseHttp | import("effect/Crypto").Crypto | import("../targets/registry.js").TargetRegistry>;
|
|
25
|
-
//# sourceMappingURL=distribution.d.ts.map
|