@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
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type CandidateConfig } from "../recipes/config.js";
|
|
2
|
+
import { CapabilityContribution, OutputDeclaration } from "./graph.js";
|
|
3
|
+
import type { VerifiedReleaseContext } from "./context.js";
|
|
4
|
+
export declare const contributeSourceArtifacts: (config: CandidateConfig, _context: VerifiedReleaseContext) => CapabilityContribution;
|
|
5
|
+
export declare const contributePackages: (config: CandidateConfig, artifacts: ReadonlyArray<OutputDeclaration>, _context: VerifiedReleaseContext) => CapabilityContribution;
|
|
6
|
+
export declare const contributeCatalogRendering: (config: CandidateConfig, artifacts: ReadonlyArray<OutputDeclaration>, kind: "homebrew" | "scoop") => CapabilityContribution;
|
|
7
|
+
export declare const contributeCatalogPublications: (config: CandidateConfig, artifacts: ReadonlyArray<OutputDeclaration>) => CapabilityContribution;
|
|
8
|
+
export declare const contributeNpmPublication: (config: CandidateConfig, context: VerifiedReleaseContext) => CapabilityContribution;
|
|
9
|
+
export declare const contributeGitHubPublication: (config: CandidateConfig, artifacts: ReadonlyArray<OutputDeclaration>) => CapabilityContribution;
|
|
10
|
+
export declare const contributePyPiPublication: (config: CandidateConfig, context: VerifiedReleaseContext, artifacts: ReadonlyArray<OutputDeclaration>) => CapabilityContribution;
|
|
11
|
+
export declare const contributeRelease: (config: CandidateConfig, context: VerifiedReleaseContext) => ReadonlyArray<CapabilityContribution>;
|
|
12
|
+
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/release/capabilities.ts"],"names":[],"mappings":"AAkBA,OAAO,EAIL,KAAK,eAAe,EAGrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,sBAAsB,EAEsC,iBAAiB,EAEb,MAAM,YAAY,CAAA;AAC3F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAgB1D,eAAO,MAAM,yBAAyB,GACpC,QAAQ,eAAe,EACvB,UAAU,sBAAsB,KAC/B,sBAoFF,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,eAAe,EACvB,WAAW,aAAa,CAAC,iBAAiB,CAAC,EAC3C,UAAU,sBAAsB,KAC/B,sBA8BF,CAAA;AAkFD,eAAO,MAAM,0BAA0B,GACrC,QAAQ,eAAe,EACvB,WAAW,aAAa,CAAC,iBAAiB,CAAC,EAC3C,MAAM,UAAU,GAAG,OAAO,KACzB,sBAWD,CAAA;AAEF,eAAO,MAAM,6BAA6B,GACxC,QAAQ,eAAe,EACvB,WAAW,aAAa,CAAC,iBAAiB,CAAC,KAC1C,sBAoDF,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,QAAQ,eAAe,EACvB,SAAS,sBAAsB,KAC9B,sBA4BF,CAAA;AAED,eAAO,MAAM,2BAA2B,GACtC,QAAQ,eAAe,EACvB,WAAW,aAAa,CAAC,iBAAiB,CAAC,KAC1C,sBA0BF,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,QAAQ,eAAe,EACvB,SAAS,sBAAsB,EAC/B,WAAW,aAAa,CAAC,iBAAiB,CAAC,KAC1C,sBAuCF,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,QAAQ,eAAe,EAAE,SAAS,sBAAsB,KAAG,aAAa,CAAC,sBAAsB,CAkBhI,CAAA"}
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { basename } from "node:path";
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { ArtifactCardinality, ArtifactCollectionContract, ArtifactCollectionId, ArtifactCollectionSelector } from "../model/artifact-collection.js";
|
|
4
|
+
import { NonEmptyName, OperationId, OutputId, SafeRelativePath } from "../model/primitives.js";
|
|
5
|
+
import { CatalogRenderSource, HomebrewRenderer, ScoopRenderer, GitHubRepositoryCoordinate, canonicalCatalogVersion } from "../model/catalog.js";
|
|
6
|
+
import { bunArtifactTarget } from "../capabilities/bun-targets.js";
|
|
7
|
+
import { NpmAuthentication, PyPiAuthentication, pypiRepositoryEndpoints } from "../recipes/config.js";
|
|
8
|
+
import { CapabilityContribution, GraphArchive, GraphChecksum, GraphCommandArtifact, GraphCommandCollection, GraphLinkError, GraphCommandCheck, GraphGitHubPublication, GraphNpmPackageBuild, GraphNpmPublication, GraphPyPiDistribution, GraphPyPiPublication, GraphCatalogRender, GraphCatalogPublication, OutputDeclaration, makeCatalogPublicationAuthorityIntent, makeGitHubPublicationAuthorityIntent, makeNpmPublicationAuthorityIntent, makePyPiPublicationAuthorityIntent } from "./graph.js";
|
|
9
|
+
const output = (id, location, kind, mediaType) => OutputDeclaration.make({ id: OutputId.make(id.toString()), path: SafeRelativePath.make(location), kind,
|
|
10
|
+
...(mediaType === undefined ? {} : { mediaType }) });
|
|
11
|
+
const compact = (name) => name.replace(/^@/u, "").replaceAll("/", "-").replace(/[^A-Za-z0-9._-]+/gu, "-")
|
|
12
|
+
.replace(/^-+|-+$/gu, "");
|
|
13
|
+
const decodeCardinality = Schema.decodeUnknownSync(ArtifactCardinality, { onExcessProperty: "error" });
|
|
14
|
+
const decodeCollectionSelector = Schema.decodeUnknownSync(ArtifactCollectionSelector, { onExcessProperty: "error" });
|
|
15
|
+
const render = (value, config, target = "", binary = compact(config.project.name)) => {
|
|
16
|
+
const [os = "", arch = ""] = target.split("-");
|
|
17
|
+
return value.replaceAll("{name}", compact(config.project.name)).replaceAll("{version}", config.project.version)
|
|
18
|
+
.replaceAll("{tag}", config.project.tag).replaceAll("{targetTriple}", target).replaceAll("{target}", target)
|
|
19
|
+
.replaceAll("{os}", os).replaceAll("{arch}", arch).replaceAll("{binary}", binary)
|
|
20
|
+
.replaceAll("{ext}", os === "windows" ? ".exe" : "");
|
|
21
|
+
};
|
|
22
|
+
export const contributeSourceArtifacts = (config, _context) => {
|
|
23
|
+
const artifacts = [];
|
|
24
|
+
const preparations = [];
|
|
25
|
+
for (const artifact of config.artifacts ?? []) {
|
|
26
|
+
artifacts.push(output(artifact.id, render(artifact.path, config), artifact.format === "zip" || artifact.format === "tarball" ? "archive" : artifact.format));
|
|
27
|
+
}
|
|
28
|
+
if (config.npmPackage !== undefined) {
|
|
29
|
+
const declaration = output("npm-package", config.npmPackage.path ?? ".", "package");
|
|
30
|
+
artifacts.push(declaration);
|
|
31
|
+
if (config.npmPackage.build !== undefined) {
|
|
32
|
+
const packageRoot = config.npmPackage.path?.toString() ?? ".";
|
|
33
|
+
const rooted = (path) => SafeRelativePath.make(packageRoot === "." ? path.toString() : `${packageRoot}/${path}`);
|
|
34
|
+
preparations.push(GraphNpmPackageBuild.make({
|
|
35
|
+
id: OperationId.make("build:npm-package"),
|
|
36
|
+
argv: config.npmPackage.build.run,
|
|
37
|
+
cwd: SafeRelativePath.make(packageRoot),
|
|
38
|
+
inputs: [],
|
|
39
|
+
outputRoots: config.npmPackage.build.outputRoots.map(rooted)
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
preparations.push(GraphCommandCheck.make({
|
|
43
|
+
id: OperationId.make("declare:npm-package"), argv: ["test", "-d", declaration.path], cwd: SafeRelativePath.make("."),
|
|
44
|
+
inputs: [declaration.id]
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
for (const build of config.builds ?? []) {
|
|
48
|
+
for (const target of build.targets) {
|
|
49
|
+
const binary = build.binary ?? compact(config.project.name);
|
|
50
|
+
const id = `${build.id ?? build.builder}-${target}`;
|
|
51
|
+
const location = render(build.output ?? `.release/artifacts/${binary}-${config.project.version}-${target}${target.startsWith("windows-") ? ".exe" : ""}`, config, target, binary);
|
|
52
|
+
const declaration = output(id, location, "executable");
|
|
53
|
+
if (build.builder === "prebuilt") {
|
|
54
|
+
artifacts.push(declaration);
|
|
55
|
+
preparations.push(GraphCommandCheck.make({
|
|
56
|
+
id: OperationId.make(`build:prebuilt:${id}:exists`), argv: ["test", "-f", location], cwd: SafeRelativePath.make("."),
|
|
57
|
+
inputs: [declaration.id]
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
const argv = build.builder === "command" ? build.run.map((part) => render(part, config, target, binary)) : [
|
|
62
|
+
"bun", "build", render(build.entry, config, target, binary), "--compile", "--target", bunArtifactTarget(target).bunTarget,
|
|
63
|
+
"--outfile", location, ...(build.minify === true ? ["--minify"] : [])
|
|
64
|
+
];
|
|
65
|
+
preparations.push(GraphCommandArtifact.make({
|
|
66
|
+
id: OperationId.make(`build:${build.builder}:${id}`), argv: [argv[0], ...argv.slice(1)], cwd: SafeRelativePath.make("."),
|
|
67
|
+
inputs: [], outputs: [declaration]
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
for (const preparation of config.preparations ?? []) {
|
|
73
|
+
const inputs = preparation.inputs ?? [];
|
|
74
|
+
const cwd = preparation.cwd ?? SafeRelativePath.make(".");
|
|
75
|
+
if (preparation.kind === "check")
|
|
76
|
+
preparations.push(GraphCommandCheck.make({
|
|
77
|
+
id: OperationId.make(`preparation:${preparation.id}`), argv: preparation.run,
|
|
78
|
+
cwd, inputs
|
|
79
|
+
}));
|
|
80
|
+
else {
|
|
81
|
+
const id = OperationId.make(`preparation:${preparation.id}`);
|
|
82
|
+
if ("outputs" in preparation)
|
|
83
|
+
preparations.push(GraphCommandArtifact.make({
|
|
84
|
+
id, argv: preparation.run,
|
|
85
|
+
cwd, inputs,
|
|
86
|
+
outputs: [
|
|
87
|
+
output(preparation.outputs[0].id, preparation.outputs[0].path, preparation.outputs[0].kind ?? "file", preparation.outputs[0].mediaType),
|
|
88
|
+
...preparation.outputs.slice(1).map((item) => output(item.id, item.path, item.kind ?? "file", item.mediaType))
|
|
89
|
+
]
|
|
90
|
+
}));
|
|
91
|
+
else
|
|
92
|
+
preparations.push(GraphCommandCollection.make({
|
|
93
|
+
id, argv: preparation.run, cwd, inputs,
|
|
94
|
+
collection: ArtifactCollectionContract.make({
|
|
95
|
+
id: ArtifactCollectionId.make(preparation.id.toString()),
|
|
96
|
+
producer: id,
|
|
97
|
+
root: preparation.collection.root,
|
|
98
|
+
artifactKind: preparation.collection.artifactKind,
|
|
99
|
+
pathSuffix: preparation.collection.pathSuffix,
|
|
100
|
+
mediaType: preparation.collection.mediaType,
|
|
101
|
+
cardinality: decodeCardinality(preparation.collection.cardinality)
|
|
102
|
+
})
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return CapabilityContribution.make({ artifacts, preparations, publications: [] });
|
|
107
|
+
};
|
|
108
|
+
export const contributePackages = (config, artifacts, _context) => {
|
|
109
|
+
const preparations = [];
|
|
110
|
+
const packageOutputs = [];
|
|
111
|
+
for (const archive of config.archives ?? []) {
|
|
112
|
+
const inputs = archive.ids === undefined
|
|
113
|
+
? artifacts.filter((item) => item.kind !== "package").map((item) => item.id)
|
|
114
|
+
: archive.ids;
|
|
115
|
+
for (const format of archive.formats ?? ["tar.gz"]) {
|
|
116
|
+
const base = render(archive.nameTemplate ?? `${compact(config.project.name)}_{version}`, config);
|
|
117
|
+
const id = `${archive.id ?? "archive"}${(archive.formats ?? ["tar.gz"]).length > 1 ? `-${format.replaceAll(".", "-")}` : ""}`;
|
|
118
|
+
const declaration = output(id, `.release/artifacts/${base}.${format}`, "archive");
|
|
119
|
+
packageOutputs.push(declaration);
|
|
120
|
+
preparations.push(GraphArchive.make({ id: OperationId.make(`archive:${id}`), inputs, output: declaration, format }));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const checksumInputs = [...artifacts, ...packageOutputs].filter((item) => item.kind !== "package" && item.kind !== "digest");
|
|
124
|
+
if (config.checksum !== undefined) {
|
|
125
|
+
const algorithm = config.checksum.algorithm;
|
|
126
|
+
if (checksumInputs.length === 0) {
|
|
127
|
+
throw new GraphLinkError({
|
|
128
|
+
kind: "reference",
|
|
129
|
+
value: "checksum",
|
|
130
|
+
reason: "Checksum configuration requires at least one capturable artifact."
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
preparations.push(GraphChecksum.make({ id: OperationId.make("checksum:digest"), inputs: [checksumInputs[0].id, ...checksumInputs.slice(1).map((item) => item.id)],
|
|
134
|
+
output: output("checksum-digests", `.release/facts/checksum-${algorithm}`, "digest"), algorithm }));
|
|
135
|
+
}
|
|
136
|
+
return CapabilityContribution.make({ artifacts: [], preparations, publications: [] });
|
|
137
|
+
};
|
|
138
|
+
const catalogRows = (config, artifacts, selected = "all") => {
|
|
139
|
+
const repository = config.publish?.github?.repository ?? config.project.repository;
|
|
140
|
+
const rows = [];
|
|
141
|
+
const build = (kind, catalog) => {
|
|
142
|
+
if (repository === undefined || !/^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/u.test(repository)) {
|
|
143
|
+
throw new GraphLinkError({
|
|
144
|
+
kind: "reference", value: `catalogs.${kind}`,
|
|
145
|
+
reason: "Catalog download URLs require one exact GitHub source repository."
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
const sources = catalog.sources.map((source) => {
|
|
149
|
+
const artifact = artifacts.find((candidate) => candidate.id.toString() === source.artifact.toString());
|
|
150
|
+
if (artifact === undefined || artifact.kind !== "archive")
|
|
151
|
+
throw new GraphLinkError({
|
|
152
|
+
kind: "reference", value: source.artifact.toString(),
|
|
153
|
+
reason: `${kind} catalogs require declared archive artifacts.`
|
|
154
|
+
});
|
|
155
|
+
const filename = NonEmptyName.make(basename(artifact.path.toString()));
|
|
156
|
+
return CatalogRenderSource.make({
|
|
157
|
+
artifactId: source.artifact,
|
|
158
|
+
architecture: source.architecture,
|
|
159
|
+
filename,
|
|
160
|
+
url: `https://github.com/${repository}/releases/download/${encodeURIComponent(config.project.tag)}/${encodeURIComponent(filename)}`
|
|
161
|
+
});
|
|
162
|
+
}).sort((left, right) => left.architecture < right.architecture ? -1 : left.architecture > right.architecture ? 1 : 0);
|
|
163
|
+
if (new Set(sources.map((source) => source.architecture)).size !== sources.length)
|
|
164
|
+
throw new GraphLinkError({
|
|
165
|
+
kind: "duplicate", value: catalog.id.toString(), reason: `${kind} catalog repeats one architecture.`
|
|
166
|
+
});
|
|
167
|
+
if (kind === "scoop" && sources.some((source) => !source.filename.toString().endsWith(".zip")))
|
|
168
|
+
throw new GraphLinkError({
|
|
169
|
+
kind: "reference", value: catalog.id.toString(), reason: "Scoop catalogs support ZIP archives only."
|
|
170
|
+
});
|
|
171
|
+
const renderer = kind === "homebrew"
|
|
172
|
+
? HomebrewRenderer.make({
|
|
173
|
+
name: catalog.formulaName,
|
|
174
|
+
description: catalog.description,
|
|
175
|
+
homepage: catalog.homepage,
|
|
176
|
+
...(catalog.license === undefined ? {} : { license: catalog.license }),
|
|
177
|
+
installPath: catalog.installPath
|
|
178
|
+
})
|
|
179
|
+
: ScoopRenderer.make({
|
|
180
|
+
name: catalog.manifestName,
|
|
181
|
+
description: catalog.description,
|
|
182
|
+
homepage: catalog.homepage,
|
|
183
|
+
...(catalog.license === undefined ? {} : { license: catalog.license }),
|
|
184
|
+
bin: catalog.bin
|
|
185
|
+
});
|
|
186
|
+
return {
|
|
187
|
+
id: catalog.id.toString(),
|
|
188
|
+
renderer,
|
|
189
|
+
sources: sources,
|
|
190
|
+
output: output(`catalog-${catalog.id}`, `.release/catalogs/${catalog.id}.${kind === "homebrew" ? "rb" : "json"}`, "file", kind === "homebrew" ? "text/x-ruby" : "application/json")
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
if (selected !== "scoop")
|
|
194
|
+
for (const catalog of config.catalogs?.homebrew ?? [])
|
|
195
|
+
rows.push(build("homebrew", catalog));
|
|
196
|
+
if (selected !== "homebrew")
|
|
197
|
+
for (const catalog of config.catalogs?.scoop ?? [])
|
|
198
|
+
rows.push(build("scoop", catalog));
|
|
199
|
+
if (new Set(rows.map((row) => row.id)).size !== rows.length)
|
|
200
|
+
throw new GraphLinkError({
|
|
201
|
+
kind: "duplicate", value: "catalogs", reason: "Catalog renderer ids must be unique across Homebrew and Scoop."
|
|
202
|
+
});
|
|
203
|
+
if (rows.length > 0)
|
|
204
|
+
canonicalCatalogVersion(config.project.version.toString());
|
|
205
|
+
return rows;
|
|
206
|
+
};
|
|
207
|
+
export const contributeCatalogRendering = (config, artifacts, kind) => CapabilityContribution.make({
|
|
208
|
+
artifacts: [],
|
|
209
|
+
preparations: catalogRows(config, artifacts, kind).map((row) => GraphCatalogRender.make({
|
|
210
|
+
id: OperationId.make(`catalog:render:${row.id}`),
|
|
211
|
+
inputs: row.sources.map((source) => source.artifactId),
|
|
212
|
+
output: row.output,
|
|
213
|
+
version: config.project.version,
|
|
214
|
+
renderer: row.renderer,
|
|
215
|
+
sources: row.sources
|
|
216
|
+
})),
|
|
217
|
+
publications: []
|
|
218
|
+
});
|
|
219
|
+
export const contributeCatalogPublications = (config, artifacts) => {
|
|
220
|
+
const destinations = config.publish?.catalogGit;
|
|
221
|
+
if (destinations === undefined)
|
|
222
|
+
return CapabilityContribution.make({ artifacts: [], preparations: [], publications: [] });
|
|
223
|
+
const rows = catalogRows(config, artifacts);
|
|
224
|
+
const sourceRepository = config.publish?.github?.repository ?? config.project.repository;
|
|
225
|
+
if (config.publish?.github === undefined || sourceRepository === undefined)
|
|
226
|
+
throw new GraphLinkError({
|
|
227
|
+
kind: "reference", value: "publish.catalogGit",
|
|
228
|
+
reason: "Catalog delivery requires an installed GitHub release publication for every referenced download."
|
|
229
|
+
});
|
|
230
|
+
const selectedGithubIds = config.publish.github.ids ?? artifacts.filter((artifact) => ["archive", "executable", "file", "digest"].includes(artifact.kind)).map((artifact) => artifact.id);
|
|
231
|
+
const publications = destinations.map((destination) => {
|
|
232
|
+
const row = rows.find((candidate) => candidate.id === destination.catalog.toString());
|
|
233
|
+
if (row === undefined)
|
|
234
|
+
throw new GraphLinkError({
|
|
235
|
+
kind: "missing", value: destination.catalog.toString(), reason: "Catalog delivery references no typed renderer."
|
|
236
|
+
});
|
|
237
|
+
if (row.sources.some((source) => !selectedGithubIds.some((id) => id.toString() === source.artifactId.toString()))) {
|
|
238
|
+
throw new GraphLinkError({
|
|
239
|
+
kind: "reference", value: destination.catalog.toString(),
|
|
240
|
+
reason: "Catalog delivery is blocked unless every download artifact belongs to the exact GitHub release publication."
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
const targetPath = destination.targetPath.toString();
|
|
244
|
+
const statePath = destination.statePath.toString();
|
|
245
|
+
if (targetPath === statePath || targetPath.startsWith(`${statePath}/`) || statePath.startsWith(`${targetPath}/`)) {
|
|
246
|
+
throw new GraphLinkError({
|
|
247
|
+
kind: "path", value: targetPath, reason: "Catalog target and managed-state paths must be disjoint files."
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
return GraphCatalogPublication.make({
|
|
251
|
+
id: OperationId.make(`zz:catalog-git:${row.id}`),
|
|
252
|
+
catalogId: NonEmptyName.make(row.id),
|
|
253
|
+
targetArtifact: row.output.id,
|
|
254
|
+
repository: destination.repository,
|
|
255
|
+
branch: destination.branch,
|
|
256
|
+
targetPath: destination.targetPath,
|
|
257
|
+
statePath: destination.statePath,
|
|
258
|
+
version: config.project.version,
|
|
259
|
+
sourceRepository: GitHubRepositoryCoordinate.make(sourceRepository),
|
|
260
|
+
sourceTag: config.project.tag,
|
|
261
|
+
renderer: row.renderer,
|
|
262
|
+
sources: row.sources,
|
|
263
|
+
authority: makeCatalogPublicationAuthorityIntent({
|
|
264
|
+
repository: destination.repository,
|
|
265
|
+
branch: destination.branch,
|
|
266
|
+
targetPath: destination.targetPath,
|
|
267
|
+
statePath: destination.statePath,
|
|
268
|
+
tokenEnv: destination.tokenEnv
|
|
269
|
+
})
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
return CapabilityContribution.make({ artifacts: [], preparations: [], publications });
|
|
273
|
+
};
|
|
274
|
+
export const contributeNpmPublication = (config, context) => {
|
|
275
|
+
const intent = config.publish?.npm;
|
|
276
|
+
if (intent === undefined)
|
|
277
|
+
return CapabilityContribution.make({ artifacts: [], preparations: [], publications: [] });
|
|
278
|
+
// Resolution is intentionally plain durable data. Decode the nested variant
|
|
279
|
+
// exactly once as it enters the class-backed graph IR.
|
|
280
|
+
const authentication = Schema.decodeUnknownSync(NpmAuthentication, {
|
|
281
|
+
onExcessProperty: "error"
|
|
282
|
+
})(intent.authentication);
|
|
283
|
+
const publication = GraphNpmPublication.make({
|
|
284
|
+
id: OperationId.make("npm:npm-release"),
|
|
285
|
+
packageArtifact: intent.packageArtifact,
|
|
286
|
+
packageName: intent.packageName,
|
|
287
|
+
version: config.project.version,
|
|
288
|
+
registryUrl: intent.registry,
|
|
289
|
+
distTag: intent.distTag,
|
|
290
|
+
access: intent.access,
|
|
291
|
+
authentication,
|
|
292
|
+
provenance: intent.provenance,
|
|
293
|
+
authority: makeNpmPublicationAuthorityIntent({
|
|
294
|
+
packageName: intent.packageName.toString(),
|
|
295
|
+
version: config.project.version.toString(),
|
|
296
|
+
registryUrl: intent.registry,
|
|
297
|
+
distTag: intent.distTag,
|
|
298
|
+
authentication,
|
|
299
|
+
sourceCommit: context.source.commit.toString()
|
|
300
|
+
})
|
|
301
|
+
});
|
|
302
|
+
return CapabilityContribution.make({ artifacts: [], preparations: [], publications: [publication] });
|
|
303
|
+
};
|
|
304
|
+
export const contributeGitHubPublication = (config, artifacts) => {
|
|
305
|
+
const authored = config.publish?.github;
|
|
306
|
+
const repository = authored?.repository ?? config.project.repository;
|
|
307
|
+
if (authored === undefined || repository === undefined)
|
|
308
|
+
return CapabilityContribution.make({ artifacts: [], preparations: [], publications: [] });
|
|
309
|
+
const publication = GraphGitHubPublication.make({
|
|
310
|
+
id: OperationId.make("github:github-release"),
|
|
311
|
+
repository,
|
|
312
|
+
tag: config.project.tag,
|
|
313
|
+
draft: authored.draft ?? true,
|
|
314
|
+
prerelease: authored.prerelease === "auto"
|
|
315
|
+
? config.project.version.includes("-")
|
|
316
|
+
: authored.prerelease ?? false,
|
|
317
|
+
title: NonEmptyName.make(`${config.project.name} ${config.project.version}`),
|
|
318
|
+
...(authored.bodyArtifact === undefined
|
|
319
|
+
? authored.body === undefined ? {} : { body: authored.body }
|
|
320
|
+
: { bodyArtifact: authored.bodyArtifact }),
|
|
321
|
+
assetIds: authored.ids ?? artifacts.filter((item) => ["archive", "executable", "file", "digest"].includes(item.kind)).map((item) => item.id),
|
|
322
|
+
assetCollections: (authored.collections ?? []).map(decodeCollectionSelector),
|
|
323
|
+
authority: makeGitHubPublicationAuthorityIntent({
|
|
324
|
+
repository,
|
|
325
|
+
tag: config.project.tag.toString(),
|
|
326
|
+
...(authored.tokenEnv === undefined ? {} : { tokenEnv: authored.tokenEnv })
|
|
327
|
+
})
|
|
328
|
+
});
|
|
329
|
+
return CapabilityContribution.make({ artifacts: [], preparations: [], publications: [publication] });
|
|
330
|
+
};
|
|
331
|
+
export const contributePyPiPublication = (config, context, artifacts) => {
|
|
332
|
+
const intent = config.publish?.pypi;
|
|
333
|
+
if (intent === undefined)
|
|
334
|
+
return CapabilityContribution.make({ artifacts: [], preparations: [], publications: [] });
|
|
335
|
+
const authentication = Schema.decodeUnknownSync(PyPiAuthentication, {
|
|
336
|
+
onExcessProperty: "error"
|
|
337
|
+
})(intent.authentication);
|
|
338
|
+
const endpoints = pypiRepositoryEndpoints(intent.repository);
|
|
339
|
+
const files = intent.artifacts.map((id) => {
|
|
340
|
+
const declaration = artifacts.find((artifact) => artifact.id.toString() === id.toString());
|
|
341
|
+
if (declaration === undefined)
|
|
342
|
+
throw new GraphLinkError({
|
|
343
|
+
kind: "missing", value: id.toString(), reason: "PyPI publication references no declared artifact."
|
|
344
|
+
});
|
|
345
|
+
const filename = basename(declaration.path.toString());
|
|
346
|
+
return GraphPyPiDistribution.make({
|
|
347
|
+
artifactId: id,
|
|
348
|
+
filename: NonEmptyName.make(filename),
|
|
349
|
+
authority: makePyPiPublicationAuthorityIntent({
|
|
350
|
+
project: intent.project,
|
|
351
|
+
version: intent.version,
|
|
352
|
+
filename,
|
|
353
|
+
repository: intent.repository,
|
|
354
|
+
authentication,
|
|
355
|
+
sourceCommit: context.source.commit.toString()
|
|
356
|
+
})
|
|
357
|
+
});
|
|
358
|
+
});
|
|
359
|
+
return CapabilityContribution.make({
|
|
360
|
+
artifacts: [], preparations: [], publications: [GraphPyPiPublication.make({
|
|
361
|
+
id: OperationId.make("pypi:pypi-release"),
|
|
362
|
+
project: intent.project,
|
|
363
|
+
version: intent.version,
|
|
364
|
+
repository: intent.repository,
|
|
365
|
+
simpleBaseUrl: endpoints.simpleBaseUrl,
|
|
366
|
+
projectUrl: `${endpoints.simpleBaseUrl}${encodeURIComponent(intent.project)}/`,
|
|
367
|
+
uploadUrl: endpoints.uploadUrl,
|
|
368
|
+
authentication,
|
|
369
|
+
files
|
|
370
|
+
})]
|
|
371
|
+
});
|
|
372
|
+
};
|
|
373
|
+
export const contributeRelease = (config, context) => {
|
|
374
|
+
const build = contributeSourceArtifacts(config, context);
|
|
375
|
+
const buildOutputs = [...build.artifacts, ...build.preparations.flatMap(preparationOutputs)];
|
|
376
|
+
const packaged = contributePackages(config, buildOutputs, context);
|
|
377
|
+
const allArtifacts = [...buildOutputs, ...packaged.preparations.flatMap(preparationOutputs)];
|
|
378
|
+
const homebrew = contributeCatalogRendering(config, allArtifacts, "homebrew");
|
|
379
|
+
const scoop = contributeCatalogRendering(config, allArtifacts, "scoop");
|
|
380
|
+
const renderedArtifacts = [...allArtifacts, ...homebrew.preparations.flatMap(preparationOutputs), ...scoop.preparations.flatMap(preparationOutputs)];
|
|
381
|
+
return [
|
|
382
|
+
build,
|
|
383
|
+
packaged,
|
|
384
|
+
homebrew,
|
|
385
|
+
scoop,
|
|
386
|
+
contributeNpmPublication(config, context),
|
|
387
|
+
contributePyPiPublication(config, context, renderedArtifacts),
|
|
388
|
+
contributeGitHubPublication(config, renderedArtifacts),
|
|
389
|
+
contributeCatalogPublications(config, renderedArtifacts)
|
|
390
|
+
];
|
|
391
|
+
};
|
|
392
|
+
const preparationOutputs = (preparation) => preparation._tag === "GraphCommandArtifact" ? preparation.outputs
|
|
393
|
+
: preparation._tag === "GraphArchive" || preparation._tag === "GraphChecksum" || preparation._tag === "GraphCatalogRender"
|
|
394
|
+
? [preparation.output] : [];
|
|
395
|
+
//# sourceMappingURL=capabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/release/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9F,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,0BAA0B,EAC1B,uBAAuB,EAExB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAClE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EAIxB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,sBAAsB,EAAE,YAAY,EAAE,aAAa,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,cAAc,EACxH,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,qBAAqB,EAC3G,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,iBAAiB,EACpF,qCAAqC,EAAE,oCAAoC,EAC3E,iCAAiC,EAAE,kCAAkC,EAAE,MAAM,YAAY,CAAA;AAG3F,MAAM,MAAM,GAAG,CAAC,EAAqB,EAAE,QAAgB,EAAE,IAA+B,EAAE,SAAkB,EAAE,EAAE,CAC9G,iBAAiB,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,gBA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,IAAI,KAAK,sBAAsB,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO;IAC/D,CAAC,CAAC,WAAW,CAAC,IAAI,KAAK,cAAc,IAAI,WAAW,CAAC,IAAI,KAAK,eAAe,IAAI,WAAW,CAAC,IAAI,KAAK,oBAAoB;QAC1H,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReleaseIntent } from "./config.js";
|
|
2
|
+
import type { VerifiedReleaseContext } from "./context.js";
|
|
3
|
+
import { ReleaseGraph } from "./graph.js";
|
|
4
|
+
export declare const compileReleaseGraph: (intent: ReleaseIntent, context: VerifiedReleaseContext) => ReleaseGraph;
|
|
5
|
+
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","sourceRoot":"","sources":["../../src/release/compiler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAM1D,OAAO,EAAqB,YAAY,EAAE,MAAM,YAAY,CAAA;AAI5D,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,aAAa,EACrB,SAAS,sBAAsB,KAC9B,YAaF,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { preparationCapabilities, publicationCapabilities } from "../capabilities/registry.js";
|
|
2
|
+
import { linkContributions } from "./graph.js";
|
|
3
|
+
// Pure internal IR compiler. It reads only its arguments; the source observer
|
|
4
|
+
// and prepared store are deliberately outside this function.
|
|
5
|
+
export const compileReleaseGraph = (intent, context) => {
|
|
6
|
+
const contributions = [];
|
|
7
|
+
let artifacts = [];
|
|
8
|
+
for (const phase of ["source", "package", "render"]) {
|
|
9
|
+
for (const module of preparationCapabilities.filter((candidate) => candidate.phase === phase)) {
|
|
10
|
+
contributions.push(module.contribute({ config: intent, context, availableArtifacts: artifacts }));
|
|
11
|
+
}
|
|
12
|
+
artifacts = linkContributions(contributions).artifacts;
|
|
13
|
+
}
|
|
14
|
+
for (const module of publicationCapabilities) {
|
|
15
|
+
contributions.push(module.contribute({ config: intent, context, availableArtifacts: artifacts }));
|
|
16
|
+
}
|
|
17
|
+
return linkContributions(contributions);
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=compiler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.js","sourceRoot":"","sources":["../../src/release/compiler.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,iBAAiB,EAAgB,MAAM,YAAY,CAAA;AAE5D,8EAA8E;AAC9E,6DAA6D;AAC7D,MAAM,CAAC,MAAM,mBAAmB,GAAG,CACjC,MAAqB,EACrB,OAA+B,EACjB,EAAE;IAChB,MAAM,aAAa,GAAkC,EAAE,CAAA;IACvD,IAAI,SAAS,GAA8B,EAAE,CAAA;IAC7C,KAAK,MAAM,KAAK,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAU,EAAE,CAAC;QAC7D,KAAK,MAAM,MAAM,IAAI,uBAAuB,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,KAAK,KAAK,CAAC,EAAE,CAAC;YAC9F,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;QACnG,CAAC;QACD,SAAS,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAC,SAAS,CAAA;IACxD,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,uBAAuB,EAAE,CAAC;QAC7C,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;IACnG,CAAC;IACD,OAAO,iBAAiB,CAAC,aAAa,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CandidateConfig } from "../recipes/config.js";
|
|
2
|
+
export declare const ReleaseIntent: typeof CandidateConfig;
|
|
3
|
+
export type ReleaseIntent = typeof CandidateConfig.Type;
|
|
4
|
+
export declare const decodeReleaseIntent: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => CandidateConfig;
|
|
5
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/release/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAKtD,eAAO,MAAM,aAAa,wBAAkB,CAAA;AAC5C,MAAM,MAAM,aAAa,GAAG,OAAO,eAAe,CAAC,IAAI,CAAA;AAEvD,eAAO,MAAM,mBAAmB,wFAE9B,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { CandidateConfig } from "../recipes/config.js";
|
|
3
|
+
// The graph kernel consumes the already-decoded candidate value. Keeping this
|
|
4
|
+
// alias at the new owner makes the migration boundary explicit; public input
|
|
5
|
+
// decoding is cut over by plan 217, while no second semantic schema is added.
|
|
6
|
+
export const ReleaseIntent = CandidateConfig;
|
|
7
|
+
export const decodeReleaseIntent = Schema.decodeUnknownSync(ReleaseIntent, {
|
|
8
|
+
onExcessProperty: "error"
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/release/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEtD,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAA;AAG5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE;IACzE,gBAAgB,EAAE,OAAO;CAC1B,CAAC,CAAA"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import * as Context from "effect/Context";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
import { Sha256Digest } from "../model/digest.js";
|
|
5
|
+
import { NonEmptyName, SafeRelativePath, WorkspaceRoot } from "../model/primitives.js";
|
|
6
|
+
declare const VerifiedSource_base: Schema.Class<VerifiedSource, Schema.Struct<{
|
|
7
|
+
readonly commit: Schema.brand<Schema.NonEmptyString, "NonEmptyName">;
|
|
8
|
+
readonly tree: Schema.brand<Schema.NonEmptyString, "NonEmptyName">;
|
|
9
|
+
readonly clean: Schema.Literal<true>;
|
|
10
|
+
readonly packageManifestPath: Schema.brand<Schema.String, "SafeRelativePath">;
|
|
11
|
+
readonly packageManifestDigest: typeof Sha256Digest;
|
|
12
|
+
readonly repository: Schema.optionalKey<Schema.NonEmptyString>;
|
|
13
|
+
readonly headTags: Schema.$Array<Schema.brand<Schema.NonEmptyString, "NonEmptyName">>;
|
|
14
|
+
}>, {}>;
|
|
15
|
+
export declare class VerifiedSource extends VerifiedSource_base {
|
|
16
|
+
}
|
|
17
|
+
declare const VerifiedPackage_base: Schema.Class<VerifiedPackage, Schema.Struct<{
|
|
18
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "NonEmptyName">;
|
|
19
|
+
readonly version: Schema.brand<Schema.NonEmptyString, "Version">;
|
|
20
|
+
readonly path: Schema.brand<Schema.String, "SafeRelativePath">;
|
|
21
|
+
readonly digest: typeof Sha256Digest;
|
|
22
|
+
readonly repository: Schema.optionalKey<Schema.NonEmptyString>;
|
|
23
|
+
}>, {}>;
|
|
24
|
+
export declare class VerifiedPackage extends VerifiedPackage_base {
|
|
25
|
+
}
|
|
26
|
+
declare const VerifiedReleaseContext_base: Schema.Class<VerifiedReleaseContext, Schema.Struct<{
|
|
27
|
+
readonly workspace: Schema.brand<Schema.String, "WorkspaceRoot">;
|
|
28
|
+
readonly source: typeof VerifiedSource;
|
|
29
|
+
readonly package: typeof VerifiedPackage;
|
|
30
|
+
}>, {}>;
|
|
31
|
+
export declare class VerifiedReleaseContext extends VerifiedReleaseContext_base {
|
|
32
|
+
}
|
|
33
|
+
declare const StagingEntry_base: Schema.Class<StagingEntry, Schema.Struct<{
|
|
34
|
+
readonly path: Schema.brand<Schema.String, "SafeRelativePath">;
|
|
35
|
+
readonly kind: Schema.Literals<readonly ["file", "executable", "directory", "symlink"]>;
|
|
36
|
+
readonly mode: Schema.Number;
|
|
37
|
+
readonly size: Schema.Number;
|
|
38
|
+
readonly digest: typeof Sha256Digest;
|
|
39
|
+
}>, {}>;
|
|
40
|
+
export declare class StagingEntry extends StagingEntry_base {
|
|
41
|
+
}
|
|
42
|
+
declare const StagingSnapshot_base: Schema.Class<StagingSnapshot, Schema.Struct<{
|
|
43
|
+
readonly entries: Schema.$Array<typeof StagingEntry>;
|
|
44
|
+
readonly digest: typeof Sha256Digest;
|
|
45
|
+
}>, {}>;
|
|
46
|
+
/** Canonical path/type/digest manifest of materialized private bytes. */
|
|
47
|
+
export declare class StagingSnapshot extends StagingSnapshot_base {
|
|
48
|
+
}
|
|
49
|
+
declare const ExplicitInputSnapshot_base: Schema.Class<ExplicitInputSnapshot, Schema.Struct<{
|
|
50
|
+
readonly id: Schema.NonEmptyString;
|
|
51
|
+
readonly path: Schema.brand<Schema.String, "SafeRelativePath">;
|
|
52
|
+
readonly kind: Schema.Literals<readonly ["file", "directory"]>;
|
|
53
|
+
readonly size: Schema.Number;
|
|
54
|
+
readonly digest: typeof Sha256Digest;
|
|
55
|
+
/** The closed operation that copied or derived these bytes. */
|
|
56
|
+
readonly materializer: Schema.NonEmptyString;
|
|
57
|
+
/** Exact source/tool digests that governed materialization. */
|
|
58
|
+
readonly materializationBasis: Schema.$Array<typeof Sha256Digest>;
|
|
59
|
+
}>, {}>;
|
|
60
|
+
/** A non-Git input admitted explicitly and copied into private staging. */
|
|
61
|
+
export declare class ExplicitInputSnapshot extends ExplicitInputSnapshot_base {
|
|
62
|
+
}
|
|
63
|
+
declare const SourceMaterializationError_base: Schema.Class<SourceMaterializationError, Schema.TaggedStruct<"SourceMaterializationError", {
|
|
64
|
+
readonly field: Schema.String;
|
|
65
|
+
readonly reason: Schema.String;
|
|
66
|
+
}>, import("effect/Cause").YieldableError>;
|
|
67
|
+
export declare class SourceMaterializationError extends SourceMaterializationError_base {
|
|
68
|
+
}
|
|
69
|
+
declare const ReleaseContextError_base: Schema.Class<ReleaseContextError, Schema.TaggedStruct<"ReleaseContextError", {
|
|
70
|
+
readonly field: Schema.String;
|
|
71
|
+
readonly reason: Schema.String;
|
|
72
|
+
}>, import("effect/Cause").YieldableError>;
|
|
73
|
+
export declare class ReleaseContextError extends ReleaseContextError_base {
|
|
74
|
+
}
|
|
75
|
+
export interface SourceObserverShape {
|
|
76
|
+
readonly observe: (workspace: WorkspaceRoot, packageManifestPath: SafeRelativePath, expectedCommit?: NonEmptyName) => Effect.Effect<VerifiedReleaseContext, ReleaseContextError>;
|
|
77
|
+
/** Writes only blobs/modes/symlinks from the exact verified Git commit. */
|
|
78
|
+
readonly materialize: (workspace: WorkspaceRoot, source: VerifiedSource, destination: WorkspaceRoot) => Effect.Effect<StagingSnapshot, SourceMaterializationError>;
|
|
79
|
+
}
|
|
80
|
+
/** Runtime operations are the only imperative seam. The compiler and linker
|
|
81
|
+
* never receive this service; they consume the verified value it returns. */
|
|
82
|
+
export interface SourceObserverRuntime {
|
|
83
|
+
readonly canonicalRoot: (workspace: WorkspaceRoot) => Effect.Effect<string, unknown>;
|
|
84
|
+
readonly read: (workspace: WorkspaceRoot, path: SafeRelativePath) => Effect.Effect<Uint8Array, unknown>;
|
|
85
|
+
readonly command: (workspace: WorkspaceRoot, argv: ReadonlyArray<string>) => Effect.Effect<string, unknown>;
|
|
86
|
+
readonly digest: (bytes: Uint8Array) => Effect.Effect<Sha256Digest, unknown>;
|
|
87
|
+
readonly materialize: (workspace: WorkspaceRoot, source: VerifiedSource, destination: WorkspaceRoot) => Effect.Effect<StagingSnapshot, unknown>;
|
|
88
|
+
}
|
|
89
|
+
declare const SourceObserver_base: Context.ServiceClass<SourceObserver, "SourceObserver", SourceObserverShape>;
|
|
90
|
+
export declare class SourceObserver extends SourceObserver_base {
|
|
91
|
+
}
|
|
92
|
+
/** Shared Git/package observation used by both host entrypoints. */
|
|
93
|
+
export declare const makeSourceObserver: (runtime: SourceObserverRuntime) => SourceObserverShape;
|
|
94
|
+
export declare const verifySource: (context: VerifiedReleaseContext, expectedCommit?: (string & import("effect/Brand").Brand<"NonEmptyName">) | undefined) => Effect.Effect<VerifiedReleaseContext, ReleaseContextError, never>;
|
|
95
|
+
export {};
|
|
96
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/release/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAW,aAAa,EAAE,MAAM,wBAAwB,CAAA;;;;;;;;;;AAI/F,qBAAa,cAAe,SAAQ,mBAQlC;CAAG;;;;;;;;AAEL,qBAAa,eAAgB,SAAQ,oBAMnC;CAAG;;;;;;A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