@treeseed/sdk 0.11.0 → 0.12.5
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/README.md +9 -4
- package/dist/agent-capacity.d.ts +916 -0
- package/dist/agent-capacity.js +1600 -0
- package/dist/agent-tools.d.ts +37 -0
- package/dist/agent-tools.js +301 -0
- package/dist/api/app.d.ts +1 -1
- package/dist/api/auth/d1-database.d.ts +2 -2
- package/dist/api/auth/d1-provider.d.ts +4 -4
- package/dist/api/auth/d1-store.d.ts +2 -2
- package/dist/api/auth/memory-provider.d.ts +1 -1
- package/dist/api/auth/tokens.d.ts +1 -1
- package/dist/api/config.d.ts +3 -1
- package/dist/api/config.js +34 -10
- package/dist/api/http.d.ts +2 -2
- package/dist/api/index.d.ts +10 -10
- package/dist/api/index.js +4 -2
- package/dist/api/operations-routes.d.ts +3 -3
- package/dist/api/operations.d.ts +1 -1
- package/dist/api/providers.d.ts +1 -1
- package/dist/api/providers.js +21 -4
- package/dist/api/railway.d.ts +3 -2
- package/dist/api/sdk-dispatch.d.ts +4 -4
- package/dist/api/sdk-routes.d.ts +2 -2
- package/dist/api/templates.d.ts +2 -2
- package/dist/api/types.d.ts +3 -2
- package/dist/capacity-provider.d.ts +117 -60
- package/dist/capacity-provider.js +215 -43
- package/dist/capacity.d.ts +2 -2
- package/dist/cli-tools.d.ts +1 -1
- package/dist/content-operations.d.ts +97 -0
- package/dist/content-operations.js +250 -0
- package/dist/content-store.d.ts +4 -4
- package/dist/control-plane-client.d.ts +13 -18
- package/dist/control-plane-client.js +8 -86
- package/dist/control-plane.d.ts +2 -2
- package/dist/copilot.d.ts +3 -0
- package/dist/copilot.js +16 -1
- package/dist/d1-http.d.ts +1 -1
- package/dist/d1-store.d.ts +32 -57
- package/dist/d1-store.js +115 -318
- package/dist/db/d1.d.ts +1 -232
- package/dist/db/index.d.ts +3 -3
- package/dist/db/market-schema.d.ts +49037 -11843
- package/dist/db/market-schema.js +1788 -50
- package/dist/db/node-sqlite.d.ts +1 -232
- package/dist/db/schema.d.ts +0 -462
- package/dist/db/schema.js +2 -22
- package/dist/dispatch.d.ts +1 -1
- package/dist/dispatch.js +0 -11
- package/dist/fixture-support.js +52 -4
- package/dist/governance.d.ts +133 -0
- package/dist/governance.js +285 -0
- package/dist/graph/build.d.ts +2 -2
- package/dist/graph/context-query-contracts.d.ts +1 -1
- package/dist/graph/dsl.d.ts +1 -1
- package/dist/graph/query.d.ts +4 -4
- package/dist/graph/ranking.d.ts +1 -1
- package/dist/graph/schema.d.ts +1 -1
- package/dist/graph.d.ts +11 -11
- package/dist/guarantees/index.d.ts +425 -0
- package/dist/guarantees/index.js +1146 -0
- package/dist/hosting/apps.d.ts +1 -1
- package/dist/hosting/builtins.d.ts +1 -1
- package/dist/hosting/builtins.js +9 -198
- package/dist/hosting/contracts.d.ts +3 -2
- package/dist/hosting/graph.d.ts +24 -21
- package/dist/hosting/graph.js +280 -294
- package/dist/hosting/index.d.ts +4 -4
- package/dist/index.d.ts +88 -74
- package/dist/index.js +81 -10
- package/dist/local-dev/managed-dev.d.ts +85 -0
- package/dist/local-dev/managed-dev.js +368 -0
- package/dist/managed-dependencies.d.ts +9 -0
- package/dist/managed-dependencies.js +10 -8
- package/dist/market-client.d.ts +265 -7
- package/dist/market-client.js +381 -9
- package/dist/model-registry.d.ts +1 -1
- package/dist/model-registry.js +19 -19
- package/dist/operations/agent-tools.d.ts +2 -11
- package/dist/operations/agent-tools.js +2 -14
- package/dist/operations/providers/default.d.ts +1 -1
- package/dist/operations/providers/default.js +20 -37
- package/dist/operations/repository-operations.d.ts +26 -2
- package/dist/operations/repository-operations.js +159 -1
- package/dist/operations/runtime.d.ts +3 -3
- package/dist/operations/services/bootstrap-runner.d.ts +1 -1
- package/dist/operations/services/build-warning-policy.d.ts +34 -0
- package/dist/operations/services/build-warning-policy.js +81 -82
- package/dist/operations/services/commit-message-provider.js +4 -4
- package/dist/operations/services/config-runtime.d.ts +73 -19
- package/dist/operations/services/config-runtime.js +276 -100
- package/dist/operations/services/deploy.d.ts +41 -622
- package/dist/operations/services/deploy.js +181 -213
- package/dist/operations/services/deployment-readiness.d.ts +1 -1
- package/dist/operations/services/deployment-readiness.js +38 -7
- package/dist/operations/services/git-remote-policy.js +12 -4
- package/dist/operations/services/git-runner.d.ts +66 -0
- package/dist/operations/services/git-runner.js +479 -0
- package/dist/operations/services/git-workflow.d.ts +43 -5
- package/dist/operations/services/git-workflow.js +242 -20
- package/dist/operations/services/github-actions-verification.d.ts +3 -1
- package/dist/operations/services/github-actions-verification.js +11 -3
- package/dist/operations/services/github-api.js +21 -5
- package/dist/operations/services/github-automation.d.ts +3 -3
- package/dist/operations/services/github-automation.js +15 -18
- package/dist/operations/services/github-credentials.js +2 -1
- package/dist/operations/services/hosted-service-checks.d.ts +19 -1
- package/dist/operations/services/hosted-service-checks.js +162 -11
- package/dist/operations/services/hosting-audit.d.ts +2 -2
- package/dist/operations/services/hosting-audit.js +7 -7
- package/dist/operations/services/hub-launch.d.ts +1 -1
- package/dist/operations/services/hub-provider-launch.d.ts +5 -5
- package/dist/operations/services/hub-provider-launch.js +19 -14
- package/dist/operations/services/live-hosted-service-checks.d.ts +2 -1
- package/dist/operations/services/live-hosted-service-checks.js +193 -80
- package/dist/operations/services/local-dev.js +0 -1
- package/dist/operations/services/managed-host-security.d.ts +1 -1
- package/dist/operations/services/managed-repositories.d.ts +37 -0
- package/dist/operations/services/managed-repositories.js +177 -0
- package/dist/operations/services/operations-runner-smoke.d.ts +3 -2
- package/dist/operations/services/operations-runner-smoke.js +22 -4
- package/dist/operations/services/package-adapters.d.ts +77 -2
- package/dist/operations/services/package-adapters.js +629 -56
- package/dist/operations/services/package-reference-policy.d.ts +12 -88
- package/dist/operations/services/package-reference-policy.js +81 -213
- package/dist/operations/services/project-host-operations.d.ts +4 -4
- package/dist/operations/services/project-platform.d.ts +19 -193
- package/dist/operations/services/project-platform.js +31 -103
- package/dist/operations/services/project-web-monitor.d.ts +2 -2
- package/dist/operations/services/project-web-monitor.js +97 -2
- package/dist/operations/services/railway-api.d.ts +36 -7
- package/dist/operations/services/railway-api.js +331 -100
- package/dist/operations/services/railway-deploy.d.ts +7 -95
- package/dist/operations/services/railway-deploy.js +334 -742
- package/dist/operations/services/release-history.js +3 -4
- package/dist/operations/services/release-proof-ledger.d.ts +13 -0
- package/dist/operations/services/release-proof-ledger.js +81 -0
- package/dist/operations/services/release-proof-planner.d.ts +48 -0
- package/dist/operations/services/release-proof-planner.js +195 -0
- package/dist/operations/services/release-proof-runner.d.ts +16 -0
- package/dist/operations/services/release-proof-runner.js +169 -0
- package/dist/operations/services/release-proof.d.ts +81 -0
- package/dist/operations/services/release-proof.js +79 -0
- package/dist/operations/services/repository-save-orchestrator.d.ts +6 -7
- package/dist/operations/services/repository-save-orchestrator.js +353 -174
- package/dist/operations/services/runtime-paths.d.ts +1 -3
- package/dist/operations/services/runtime-paths.js +0 -4
- package/dist/operations/services/runtime-tools.d.ts +1 -192
- package/dist/operations/services/runtime-tools.js +4 -444
- package/dist/operations/services/save-deploy-preflight.js +9 -1
- package/dist/operations/services/template-host-bindings.d.ts +2 -2
- package/dist/operations/services/template-host-bindings.js +3 -2
- package/dist/operations/services/template-registry.d.ts +6 -6
- package/dist/operations/services/template-registry.js +33 -14
- package/dist/operations/services/template-secret-sync.d.ts +3 -3
- package/dist/operations/services/workflow-timing.d.ts +25 -0
- package/dist/operations/services/workflow-timing.js +79 -0
- package/dist/operations/services/workspace-dependency-mode.js +41 -4
- package/dist/operations/services/workspace-preflight.js +8 -8
- package/dist/operations/services/workspace-save-script.d.ts +4 -4
- package/dist/operations/services/workspace-save.d.ts +1 -0
- package/dist/operations/services/workspace-save.js +41 -18
- package/dist/operations/services/workspace-tools.js +40 -6
- package/dist/operations-registry.d.ts +1 -1
- package/dist/operations-registry.js +5 -6
- package/dist/operations-types.d.ts +1 -1
- package/dist/operations.d.ts +17 -11
- package/dist/operations.js +57 -3
- package/dist/platform/book-export.js +2 -0
- package/dist/platform/books-data.d.ts +1 -1
- package/dist/platform/config.d.ts +27 -0
- package/dist/platform/config.js +100 -0
- package/dist/platform/content-runtime-source.d.ts +54 -0
- package/dist/platform/content-runtime-source.js +169 -0
- package/dist/platform/contracts.d.ts +6 -1
- package/dist/platform/deploy-config.d.ts +1 -1
- package/dist/platform/deploy-config.js +7 -1
- package/dist/platform/deploy-runtime.d.ts +1 -1
- package/dist/platform/desired-state.d.ts +66 -0
- package/dist/platform/desired-state.js +1052 -0
- package/dist/platform/env.yaml +414 -19
- package/dist/platform/environment.d.ts +2 -2
- package/dist/platform/environment.js +54 -22
- package/dist/platform/local-content-materialization.d.ts +9 -0
- package/dist/platform/local-content-materialization.js +212 -0
- package/dist/platform/plugin.d.ts +5 -5
- package/dist/platform/plugins/runtime.d.ts +3 -3
- package/dist/platform/plugins/runtime.js +62 -1
- package/dist/platform/plugins.d.ts +6 -6
- package/dist/platform/published-content-pipeline.d.ts +3 -3
- package/dist/platform/published-content-pipeline.js +5 -1
- package/dist/platform/published-content.d.ts +4 -3
- package/dist/platform/site-config-schema.d.ts +1 -0
- package/dist/platform/site-config-schema.js +4 -1
- package/dist/platform/tenant/runtime-config.d.ts +152 -2
- package/dist/platform/tenant-config.d.ts +1 -1
- package/dist/platform/utils/site-config-schema.d.ts +154 -0
- package/dist/platform/utils/site-config-schema.js +400 -461
- package/dist/platform-operation-store.d.ts +1 -1
- package/dist/plugin-default.d.ts +1 -1
- package/dist/plugin-default.js +27 -12
- package/dist/project-import.d.ts +91 -0
- package/dist/project-import.js +257 -0
- package/dist/project-workflow.d.ts +1 -1
- package/dist/reconcile/bootstrap-systems.d.ts +2 -2
- package/dist/reconcile/bootstrap-systems.js +3 -3
- package/dist/reconcile/builtin-adapters.d.ts +7 -1
- package/dist/reconcile/builtin-adapters.js +2924 -346
- package/dist/reconcile/contracts.d.ts +15 -2
- package/dist/reconcile/desired-state.d.ts +2 -193
- package/dist/reconcile/desired-state.js +24 -33
- package/dist/reconcile/engine.d.ts +60 -397
- package/dist/reconcile/engine.js +182 -18
- package/dist/reconcile/index.d.ts +10 -10
- package/dist/reconcile/live-acceptance.d.ts +22 -1
- package/dist/reconcile/live-acceptance.js +456 -44
- package/dist/reconcile/providers/docker-private.d.ts +54 -0
- package/dist/reconcile/providers/docker-private.js +101 -0
- package/dist/reconcile/providers/github-private.d.ts +65 -0
- package/dist/reconcile/providers/github-private.js +119 -0
- package/dist/reconcile/providers/local-private.d.ts +28 -0
- package/dist/reconcile/providers/local-private.js +75 -0
- package/dist/reconcile/providers/railway-iac.d.ts +66 -0
- package/dist/reconcile/providers/railway-iac.js +275 -0
- package/dist/reconcile/providers/release-private.d.ts +92 -0
- package/dist/reconcile/providers/release-private.js +152 -0
- package/dist/reconcile/registry.d.ts +2 -2
- package/dist/reconcile/registry.js +16 -1
- package/dist/reconcile/state.d.ts +1 -1
- package/dist/reconcile/state.js +3 -40
- package/dist/reconcile/units.d.ts +1 -1
- package/dist/reconcile/units.js +7 -1
- package/dist/remote.d.ts +6 -6
- package/dist/scenes/artifacts.d.ts +16 -0
- package/dist/scenes/artifacts.js +61 -0
- package/dist/scenes/auth.d.ts +2 -0
- package/dist/scenes/auth.js +28 -0
- package/dist/scenes/base-url.d.ts +12 -0
- package/dist/scenes/base-url.js +123 -0
- package/dist/scenes/builtin-plugins.d.ts +2 -0
- package/dist/scenes/builtin-plugins.js +447 -0
- package/dist/scenes/checkpoints.d.ts +14 -0
- package/dist/scenes/checkpoints.js +33 -0
- package/dist/scenes/device-matrix.d.ts +2 -0
- package/dist/scenes/device-matrix.js +97 -0
- package/dist/scenes/devices.d.ts +11 -0
- package/dist/scenes/devices.js +22 -0
- package/dist/scenes/diagnostics.d.ts +5 -0
- package/dist/scenes/diagnostics.js +22 -0
- package/dist/scenes/diagram-providers.d.ts +2 -0
- package/dist/scenes/diagram-providers.js +181 -0
- package/dist/scenes/diagram-validation.d.ts +22 -0
- package/dist/scenes/diagram-validation.js +74 -0
- package/dist/scenes/environment.d.ts +2 -0
- package/dist/scenes/environment.js +65 -0
- package/dist/scenes/evidence-bundle.d.ts +5 -0
- package/dist/scenes/evidence-bundle.js +42 -0
- package/dist/scenes/evidence-report.d.ts +10 -0
- package/dist/scenes/evidence-report.js +73 -0
- package/dist/scenes/evidence.d.ts +16 -0
- package/dist/scenes/evidence.js +277 -0
- package/dist/scenes/index.d.ts +48 -0
- package/dist/scenes/index.js +312 -0
- package/dist/scenes/inspect.d.ts +9 -0
- package/dist/scenes/inspect.js +64 -0
- package/dist/scenes/loader.d.ts +3 -0
- package/dist/scenes/loader.js +38 -0
- package/dist/scenes/logs.d.ts +2 -0
- package/dist/scenes/logs.js +47 -0
- package/dist/scenes/operations.d.ts +3 -0
- package/dist/scenes/operations.js +128 -0
- package/dist/scenes/phase0.d.ts +9 -0
- package/dist/scenes/phase0.js +637 -0
- package/dist/scenes/planner.d.ts +12 -0
- package/dist/scenes/planner.js +166 -0
- package/dist/scenes/playwright-adapter.d.ts +2 -0
- package/dist/scenes/playwright-adapter.js +63 -0
- package/dist/scenes/plugins.d.ts +5 -0
- package/dist/scenes/plugins.js +115 -0
- package/dist/scenes/progress.d.ts +17 -0
- package/dist/scenes/progress.js +24 -0
- package/dist/scenes/publish-destinations.d.ts +12 -0
- package/dist/scenes/publish-destinations.js +99 -0
- package/dist/scenes/publish-plan-report.d.ts +10 -0
- package/dist/scenes/publish-plan-report.js +70 -0
- package/dist/scenes/publish-plan.d.ts +15 -0
- package/dist/scenes/publish-plan.js +248 -0
- package/dist/scenes/publish-redaction.d.ts +16 -0
- package/dist/scenes/publish-redaction.js +148 -0
- package/dist/scenes/publish-release-record.d.ts +13 -0
- package/dist/scenes/publish-release-record.js +34 -0
- package/dist/scenes/publish-report.d.ts +10 -0
- package/dist/scenes/publish-report.js +67 -0
- package/dist/scenes/publish.d.ts +16 -0
- package/dist/scenes/publish.js +298 -0
- package/dist/scenes/registry.d.ts +12 -0
- package/dist/scenes/registry.js +65 -0
- package/dist/scenes/remotion-adapter.d.ts +3 -0
- package/dist/scenes/remotion-adapter.js +94 -0
- package/dist/scenes/remotion-composition-registry.d.ts +2 -0
- package/dist/scenes/remotion-composition-registry.js +12 -0
- package/dist/scenes/remotion-compositions.d.ts +15 -0
- package/dist/scenes/remotion-compositions.js +464 -0
- package/dist/scenes/remotion-diagrams.d.ts +9 -0
- package/dist/scenes/remotion-diagrams.js +188 -0
- package/dist/scenes/remotion-input.d.ts +13 -0
- package/dist/scenes/remotion-input.js +291 -0
- package/dist/scenes/remotion-visuals.d.ts +29 -0
- package/dist/scenes/remotion-visuals.js +198 -0
- package/dist/scenes/render-media-assets.d.ts +9 -0
- package/dist/scenes/render-media-assets.js +117 -0
- package/dist/scenes/render-report.d.ts +10 -0
- package/dist/scenes/render-report.js +27 -0
- package/dist/scenes/render.d.ts +2 -0
- package/dist/scenes/render.js +218 -0
- package/dist/scenes/reporter.d.ts +3 -0
- package/dist/scenes/reporter.js +101 -0
- package/dist/scenes/resume.d.ts +2 -0
- package/dist/scenes/resume.js +79 -0
- package/dist/scenes/runner.d.ts +2 -0
- package/dist/scenes/runner.js +674 -0
- package/dist/scenes/schema.d.ts +6 -0
- package/dist/scenes/schema.js +994 -0
- package/dist/scenes/seed.d.ts +2 -0
- package/dist/scenes/seed.js +83 -0
- package/dist/scenes/segments.d.ts +15 -0
- package/dist/scenes/segments.js +79 -0
- package/dist/scenes/selectors.d.ts +3 -0
- package/dist/scenes/selectors.js +21 -0
- package/dist/scenes/timeline.d.ts +11 -0
- package/dist/scenes/timeline.js +26 -0
- package/dist/scenes/timeouts.d.ts +6 -0
- package/dist/scenes/timeouts.js +17 -0
- package/dist/scenes/training-captions.d.ts +14 -0
- package/dist/scenes/training-captions.js +98 -0
- package/dist/scenes/training-report.d.ts +10 -0
- package/dist/scenes/training-report.js +78 -0
- package/dist/scenes/training-transcript.d.ts +24 -0
- package/dist/scenes/training-transcript.js +204 -0
- package/dist/scenes/training.d.ts +10 -0
- package/dist/scenes/training.js +134 -0
- package/dist/scenes/types.d.ts +1872 -0
- package/dist/scenes/types.js +8 -0
- package/dist/scenes/visual-audit-contact-sheets.d.ts +6 -0
- package/dist/scenes/visual-audit-contact-sheets.js +119 -0
- package/dist/scenes/visual-audit-fixtures.d.ts +25 -0
- package/dist/scenes/visual-audit-fixtures.js +210 -0
- package/dist/scenes/visual-audit-report.d.ts +11 -0
- package/dist/scenes/visual-audit-report.js +85 -0
- package/dist/scenes/visual-audit-review.d.ts +23 -0
- package/dist/scenes/visual-audit-review.js +829 -0
- package/dist/scenes/visual-audit-routes.d.ts +13 -0
- package/dist/scenes/visual-audit-routes.js +308 -0
- package/dist/scenes/visual-audit.d.ts +3 -0
- package/dist/scenes/visual-audit.js +596 -0
- package/dist/scripts/build-dist.js +154 -40
- package/dist/scripts/check-build-warnings.js +42 -53
- package/dist/scripts/cleanup-markdown.js +1 -1
- package/dist/scripts/cli-test-fixtures.js +24 -28
- package/dist/scripts/migrate-journey-csv-to-guarantees.js +140 -0
- package/dist/scripts/package-tools.js +12 -1
- package/dist/scripts/prepare.js +3 -7
- package/dist/scripts/release-verify.js +2 -5
- package/dist/scripts/run-fixture-astro-command.js +1 -1
- package/dist/scripts/template-catalog.test.js +68 -82
- package/dist/scripts/tenant-dev.js +0 -10
- package/dist/scripts/test-cloudflare-local.js +1 -1
- package/dist/scripts/test-scaffold.js +0 -1
- package/dist/scripts/test-smoke.js +3 -3
- package/dist/scripts/treeseed-build-dist.js +4 -7
- package/dist/scripts/treeseed-release-verify.js +1 -1
- package/dist/scripts/verify-driver.js +30 -21
- package/dist/scripts/workflow-commands.test.js +18 -27
- package/dist/scripts/workspace-command-e2e.js +1 -1
- package/dist/scripts/workspace-lint.js +6 -0
- package/dist/scripts/workspace-release-test.js +90 -1
- package/dist/scripts/workspace-test.js +6 -0
- package/dist/sdk-dispatch.d.ts +1 -1
- package/dist/sdk-dispatch.js +0 -16
- package/dist/sdk-fields.d.ts +1 -1
- package/dist/sdk-filters.d.ts +1 -1
- package/dist/sdk-types.d.ts +1184 -113
- package/dist/sdk-types.js +393 -0
- package/dist/sdk.d.ts +74 -79
- package/dist/sdk.js +27 -36
- package/dist/secrets-capability.d.ts +421 -0
- package/dist/secrets-capability.js +530 -0
- package/dist/seeds/normalize.js +1 -0
- package/dist/seeds/planner.js +38 -0
- package/dist/seeds/schema.js +293 -4
- package/dist/seeds/types.d.ts +60 -0
- package/dist/seeds/types.js +9 -1
- package/dist/service-credentials.d.ts +54 -0
- package/dist/service-credentials.js +112 -0
- package/dist/stores/cursor-store.d.ts +2 -2
- package/dist/stores/envelopes.d.ts +1 -1
- package/dist/stores/helpers.d.ts +1 -1
- package/dist/stores/lease-store.d.ts +2 -2
- package/dist/stores/message-store.d.ts +2 -2
- package/dist/stores/operational-store.d.ts +3 -26
- package/dist/stores/operational-store.js +0 -225
- package/dist/stores/project-workflow-store.d.ts +2 -2
- package/dist/stores/run-store.d.ts +2 -3
- package/dist/stores/run-store.js +0 -98
- package/dist/stores/subscription-store.d.ts +2 -3
- package/dist/stores/subscription-store.js +0 -100
- package/dist/template-catalog.d.ts +1 -1
- package/dist/template-launch-requirements.d.ts +2 -2
- package/dist/template-launch-ui.d.ts +2 -2
- package/dist/treedx/adapters.d.ts +6 -6
- package/dist/treedx/client.d.ts +1 -1
- package/dist/treedx/errors.d.ts +1 -1
- package/dist/treedx/federated-client.d.ts +3 -3
- package/dist/treedx/graph-adapter.d.ts +2 -2
- package/dist/treedx/index.d.ts +14 -14
- package/dist/treedx/market-integration.d.ts +1 -1
- package/dist/treedx/ports.d.ts +30 -30
- package/dist/treedx/query-adapter.d.ts +3 -3
- package/dist/treedx/registry-client.d.ts +2 -2
- package/dist/treedx/repository-adapter.d.ts +4 -4
- package/dist/treedx/repository-adapter.js +14 -3
- package/dist/treedx/sdk-integration.d.ts +3 -3
- package/dist/treedx/types.d.ts +2 -2
- package/dist/treedx/workspace-adapter.d.ts +2 -2
- package/dist/treedx-backends.d.ts +13 -11
- package/dist/treedx-backends.js +52 -50
- package/dist/treedx-client.d.ts +3 -0
- package/dist/treedx-client.js +10 -1
- package/dist/treeseed/services/compose.yml +2 -3
- package/dist/treeseed/template-catalog/catalog.fixture.json +4 -4
- package/dist/types/agents.d.ts +256 -0
- package/dist/types/agents.js +42 -1
- package/dist/verification.d.ts +1 -0
- package/dist/verification.js +143 -14
- package/dist/workflow/operations.d.ts +510 -559
- package/dist/workflow/operations.js +1891 -1342
- package/dist/workflow/policy.js +19 -7
- package/dist/workflow/runs.d.ts +9 -3
- package/dist/workflow/runs.js +66 -26
- package/dist/workflow/session.d.ts +4 -1
- package/dist/workflow/session.js +50 -10
- package/dist/workflow/worktrees.d.ts +6 -2
- package/dist/workflow/worktrees.js +98 -15
- package/dist/workflow-state.d.ts +5 -5
- package/dist/workflow-state.js +27 -17
- package/dist/workflow-support.d.ts +26 -25
- package/dist/workflow-support.js +27 -31
- package/dist/workflow.d.ts +46 -16
- package/dist/workflow.js +19 -7
- package/drizzle/d1/0000_treeseed_d1.sql +0 -18
- package/drizzle/market/0000_market_control_plane.sql +1793 -1499
- package/drizzle/market/0005_agent_capacity_coordination.sql +145 -0
- package/drizzle/market/0006_provider_assignment_lifecycle.sql +9 -0
- package/drizzle/market/0007_agent_architecture_gap_closure.sql +157 -0
- package/drizzle/market/0008_agent_capacity_operational_closure.sql +27 -0
- package/drizzle/market/0009_agent_capacity_runtime_hardening.sql +29 -0
- package/drizzle/market/0010_secrets_capability_persistence.sql +130 -0
- package/drizzle/market/0011_github_app_adapter.sql +47 -0
- package/drizzle/market/0012_workday_test_runs.sql +44 -0
- package/drizzle/market/0013_runtime_task_lifecycle.sql +39 -0
- package/drizzle/market/0014_governance_pipeline.sql +189 -0
- package/package.json +75 -18
- package/scripts/{verify-driver.mjs → verify-driver.ts} +19 -4
- package/templates/github/deploy-web.workflow.yml +12 -8
- package/dist/operations/services/mailpit-runtime.d.ts +0 -20
- package/dist/operations/services/mailpit-runtime.js +0 -67
- package/dist/operations/services/release-candidate.d.ts +0 -60
- package/dist/operations/services/release-candidate.js +0 -953
- package/dist/scripts/ensure-mailpit.js +0 -48
- package/dist/scripts/logs-mailpit.js +0 -2
- package/dist/scripts/run-ts.js +0 -45
- package/dist/scripts/stop-mailpit.js +0 -5
- package/dist/scripts/treeseed-run-ts.js +0 -45
package/dist/workflow-state.js
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
collectTreeseedEnvironmentContext,
|
|
12
12
|
withTreeseedKeyAgentAutopromptDisabled
|
|
13
13
|
} from "./operations/services/config-runtime.js";
|
|
14
|
+
import { resolveTreeseedGitHubToken } from "./service-credentials.js";
|
|
14
15
|
import { resolveWranglerBin } from "./operations/services/runtime-tools.js";
|
|
15
16
|
import { getTreeseedEnvironmentSuggestedValues, validateTreeseedEnvironmentValues } from "./platform/environment.js";
|
|
16
17
|
import { resolveTreeseedWebCachePolicy } from "./platform/deploy-config.js";
|
|
@@ -19,10 +20,11 @@ import {
|
|
|
19
20
|
createPersistentDeployTarget,
|
|
20
21
|
loadDeployState
|
|
21
22
|
} from "./operations/services/deploy.js";
|
|
22
|
-
import {
|
|
23
|
+
import { loadTreeseedPlatformConfig } from "./platform/config.js";
|
|
23
24
|
import { collectCliPreflight } from "./operations/services/workspace-preflight.js";
|
|
24
25
|
import { collectPublicPackageReleaseLineState, currentBranch, gitStatusPorcelain } from "./operations/services/workspace-save.js";
|
|
25
|
-
import { hasCompleteTreeseedPackageCheckout, isWorkspaceRoot
|
|
26
|
+
import { hasCompleteTreeseedPackageCheckout, isWorkspaceRoot } from "./operations/services/workspace-tools.js";
|
|
27
|
+
import { classifyTreeseedGitMode, runTreeseedGitText } from "./operations/services/git-runner.js";
|
|
26
28
|
import { packageAdapterPlanSummary } from "./operations/services/package-adapters.js";
|
|
27
29
|
import { inspectWorkspaceDependencyMode } from "./operations/services/workspace-dependency-mode.js";
|
|
28
30
|
import { inspectDetachedHeadRepair, PRODUCTION_BRANCH, STAGING_BRANCH } from "./operations/services/git-workflow.js";
|
|
@@ -32,6 +34,14 @@ import {
|
|
|
32
34
|
resolveTreeseedWorkflowPaths,
|
|
33
35
|
workflowEnvironmentForBranchRole
|
|
34
36
|
} from "./workflow/policy.js";
|
|
37
|
+
function runGit(args, options) {
|
|
38
|
+
return runTreeseedGitText(args, {
|
|
39
|
+
cwd: options.cwd,
|
|
40
|
+
mode: classifyTreeseedGitMode(args),
|
|
41
|
+
timeoutMs: options.timeoutMs,
|
|
42
|
+
maxBuffer: options.maxBuffer
|
|
43
|
+
});
|
|
44
|
+
}
|
|
35
45
|
function emptyPersistentEnvironments() {
|
|
36
46
|
return {
|
|
37
47
|
local: { initialized: false, phase: "pending", configured: false, provisioned: false, deployable: false, blockers: [], warnings: [], lastValidatedAt: null, lastDeploymentTimestamp: null, lastDeployedUrl: null },
|
|
@@ -142,7 +152,7 @@ function providerProblems(validation, provider) {
|
|
|
142
152
|
const id = problem.id.toUpperCase();
|
|
143
153
|
const group = problem.entry.group;
|
|
144
154
|
if (provider === "github") {
|
|
145
|
-
return id === "
|
|
155
|
+
return id === "TREESEED_GITHUB_TOKEN" || group === "github";
|
|
146
156
|
}
|
|
147
157
|
if (provider === "cloudflare") {
|
|
148
158
|
return id.startsWith("CLOUDFLARE_") || id.includes("TURNSTILE") || group === "cloudflare";
|
|
@@ -208,9 +218,9 @@ function providerLiveCheck(provider, configured, cwd, env) {
|
|
|
208
218
|
}
|
|
209
219
|
function providerStatusForScope(cwd, scope, statusConfig, options) {
|
|
210
220
|
const values = statusConfig.values;
|
|
211
|
-
const githubConfigured =
|
|
212
|
-
const cloudflareConfigured = typeof values.
|
|
213
|
-
const railwayConfigured = typeof values.
|
|
221
|
+
const githubConfigured = Boolean(resolveTreeseedGitHubToken(values));
|
|
222
|
+
const cloudflareConfigured = typeof values.TREESEED_CLOUDFLARE_API_TOKEN === "string" && values.TREESEED_CLOUDFLARE_API_TOKEN.trim().length > 0;
|
|
223
|
+
const railwayConfigured = typeof values.TREESEED_RAILWAY_API_TOKEN === "string" && values.TREESEED_RAILWAY_API_TOKEN.trim().length > 0;
|
|
214
224
|
const localDevelopmentConfigured = providerProblems(statusConfig.validation, "localDevelopment").length === 0;
|
|
215
225
|
const live = options.live === true;
|
|
216
226
|
const env = statusConfig.resolvedValues;
|
|
@@ -244,7 +254,7 @@ function hasStatusConfigValue(statusConfigByScope, key) {
|
|
|
244
254
|
}
|
|
245
255
|
function knownRemoteTrackingBranchExists(repoDir, branchName) {
|
|
246
256
|
try {
|
|
247
|
-
|
|
257
|
+
runGit(["show-ref", "--verify", "--quiet", `refs/remotes/origin/${branchName}`], { cwd: repoDir, capture: true });
|
|
248
258
|
return true;
|
|
249
259
|
} catch {
|
|
250
260
|
return false;
|
|
@@ -252,7 +262,7 @@ function knownRemoteTrackingBranchExists(repoDir, branchName) {
|
|
|
252
262
|
}
|
|
253
263
|
function safeHeadCommit(repoDir) {
|
|
254
264
|
try {
|
|
255
|
-
return
|
|
265
|
+
return runGit(["rev-parse", "HEAD"], { cwd: repoDir, capture: true }).trim();
|
|
256
266
|
} catch {
|
|
257
267
|
return null;
|
|
258
268
|
}
|
|
@@ -268,14 +278,14 @@ function safeReleaseHistory(repoDir) {
|
|
|
268
278
|
};
|
|
269
279
|
}
|
|
270
280
|
try {
|
|
271
|
-
const output =
|
|
281
|
+
const output = runGit(["rev-list", "--left-right", "--count", "staging...main"], { cwd: repoDir, capture: true }).trim();
|
|
272
282
|
const [aheadRaw, behindRaw] = output.split(/\s+/u);
|
|
273
283
|
const stagingAheadMain = Number.parseInt(aheadRaw ?? "", 10);
|
|
274
284
|
const stagingBehindMain = Number.parseInt(behindRaw ?? "", 10);
|
|
275
285
|
if (!Number.isFinite(stagingAheadMain) || !Number.isFinite(stagingBehindMain)) {
|
|
276
286
|
throw new Error("invalid rev-list output");
|
|
277
287
|
}
|
|
278
|
-
const stagingOnlySubjects =
|
|
288
|
+
const stagingOnlySubjects = runGit(["log", "--format=%s", "main..staging"], { cwd: repoDir, capture: true }).split("\n").map((line) => line.trim()).filter(Boolean);
|
|
279
289
|
const unreleasedStagingCommits = stagingOnlySubjects.filter((subject) => subject !== "release: sync package staging heads" && subject !== "release: back-merge main into staging" && !subject.startsWith("release: back-merge main into staging ")).length;
|
|
280
290
|
return {
|
|
281
291
|
stagingAheadMain,
|
|
@@ -352,7 +362,7 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
|
|
|
352
362
|
localBranch = true;
|
|
353
363
|
} else {
|
|
354
364
|
try {
|
|
355
|
-
|
|
365
|
+
runGit(["show-ref", "--verify", "--quiet", `refs/heads/${expectedBranch}`], { cwd: packageDir, capture: true });
|
|
356
366
|
localBranch = true;
|
|
357
367
|
} catch {
|
|
358
368
|
localBranch = false;
|
|
@@ -415,7 +425,7 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
|
|
|
415
425
|
const marketSettings = machineConfig?.settings?.market && typeof machineConfig.settings.market === "object" ? machineConfig.settings.market : null;
|
|
416
426
|
const runnerHostId = typeof marketSettings?.runnerHostId === "string" && marketSettings.runnerHostId.trim() ? marketSettings.runnerHostId.trim() : typeof marketSettings?.projectId === "string" && marketSettings.projectId.trim() ? `operations-runner:${marketSettings.projectId.trim()}` : null;
|
|
417
427
|
const runnerSession = runnerHostId ? safeResolveRemoteSession(effectiveCwd, runnerHostId) : null;
|
|
418
|
-
const workflowLock = inspectWorkflowLock(effectiveCwd);
|
|
428
|
+
const workflowLock = inspectWorkflowLock(effectiveCwd, { scope: "worktree" });
|
|
419
429
|
const workflowRunHeads = {};
|
|
420
430
|
if (root) {
|
|
421
431
|
workflowRunHeads["@treeseed/market"] = safeHeadCommit(root);
|
|
@@ -490,7 +500,7 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
|
|
|
490
500
|
blockers: workflowBlockers
|
|
491
501
|
},
|
|
492
502
|
packageSync: {
|
|
493
|
-
mode: completePackageCheckout ? "recursive-workspace" : "root-only",
|
|
503
|
+
mode: completePackageCheckout || packageSyncRepos.length > 0 ? "recursive-workspace" : "root-only",
|
|
494
504
|
completeCheckout: completePackageCheckout,
|
|
495
505
|
dependencyMode: workspaceDependencyMode.mode,
|
|
496
506
|
workspaceLinks: workspaceDependencyMode,
|
|
@@ -590,7 +600,7 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
|
|
|
590
600
|
};
|
|
591
601
|
if (tenantRoot) {
|
|
592
602
|
try {
|
|
593
|
-
const deployConfig =
|
|
603
|
+
const deployConfig = loadTreeseedPlatformConfig({ tenantRoot: effectiveCwd, environment: workflowEnvironmentForBranchRole(branchRole), env: options.env ?? process.env }).deployConfig;
|
|
594
604
|
const environmentContext = collectTreeseedEnvironmentContext(effectiveCwd);
|
|
595
605
|
const statusConfigByScope = Object.fromEntries(
|
|
596
606
|
["local", "staging", "prod"].map((scope) => [
|
|
@@ -613,9 +623,9 @@ function resolveTreeseedWorkflowState(cwd, options = {}) {
|
|
|
613
623
|
const runtimeSessionReady = Boolean(
|
|
614
624
|
marketSettings?.runnerReady === true || typeof runnerSession?.accessToken === "string" && runnerSession.accessToken.length > 0
|
|
615
625
|
);
|
|
616
|
-
state.auth.gh = state.auth.gh ||
|
|
617
|
-
state.auth.wrangler = state.auth.wrangler || hasStatusConfigValue(statusConfigByScope, "
|
|
618
|
-
state.auth.railway = state.auth.railway || hasStatusConfigValue(statusConfigByScope, "
|
|
626
|
+
state.auth.gh = state.auth.gh || Boolean(resolveTreeseedGitHubToken(statusConfigByScope.local.values)) || Boolean(resolveTreeseedGitHubToken(statusConfigByScope.staging.values)) || Boolean(resolveTreeseedGitHubToken(statusConfigByScope.prod.values));
|
|
627
|
+
state.auth.wrangler = state.auth.wrangler || hasStatusConfigValue(statusConfigByScope, "TREESEED_CLOUDFLARE_API_TOKEN");
|
|
628
|
+
state.auth.railway = state.auth.railway || hasStatusConfigValue(statusConfigByScope, "TREESEED_RAILWAY_API_TOKEN");
|
|
619
629
|
state.auth.copilot = state.auth.copilot || state.auth.gh;
|
|
620
630
|
state.marketConnection.baseUrl = state.marketConnection.baseUrl ?? sharedConfigValues.TREESEED_API_BASE_URL ?? deployConfig.runtime?.marketBaseUrl ?? deployConfig.hosting?.marketBaseUrl ?? null;
|
|
621
631
|
state.marketConnection.teamId = state.marketConnection.teamId ?? sharedConfigValues.TREESEED_HOSTING_TEAM_ID ?? deployConfig.runtime?.teamId ?? deployConfig.hosting?.teamId ?? null;
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
export { applyTreeseedConfigValues, applyTreeseedEnvironmentToProcess, applyTreeseedSafeRepairs, assertTreeseedCommandEnvironment, checkTreeseedProviderConnections, clearTreeseedRemoteSession, collectTreeseedConfigContext, collectTreeseedConfigSeedValues, collectTreeseedPrintEnvReport, createDefaultTreeseedMachineConfig, ensureTreeseedActVerificationTooling, ensureTreeseedSecretSessionForConfig, ensureTreeseedGitignoreEntries, getTreeseedMachineConfigPaths, loadTreeseedMachineConfig, listRelevantTreeseedConfigEntries, finalizeTreeseedConfig, inspectTreeseedKeyAgentTransportDiagnostic, inspectTreeseedPassphraseEnvDiagnostic, listDeprecatedTreeseedLocalEnvFiles, inspectTreeseedKeyAgentStatus, lockTreeseedSecretSession, migrateTreeseedMachineKeyToWrapped, resolveTreeseedMachineEnvironmentValues, resolveTreeseedLaunchEnvironment, resolveTreeseedRemoteConfig, resolveTreeseedRemoteSession, rotateTreeseedMachineKey, rotateTreeseedMachineKeyPassphrase, setTreeseedRemoteSession, TREESEED_MACHINE_KEY_PASSPHRASE_ENV, TreeseedKeyAgentError, updateTreeseedDeployConfigFeatureToggles, unlockTreeseedSecretSessionFromEnv, unlockTreeseedSecretSessionInteractive, unlockTreeseedSecretSessionWithPassphrase, withTreeseedKeyAgentAutopromptDisabled, warnDeprecatedTreeseedLocalEnvFiles, writeTreeseedMachineConfig, } from './operations/services/config-runtime.
|
|
2
|
-
export { exportTreeseedCodebase } from './operations/services/export-runtime.
|
|
3
|
-
export { formatTreeseedHostingAuditReport, resolveTreeseedHostingAuditTarget, runTreeseedHostingAudit, type TreeseedHostingAuditCheck, type TreeseedHostingAuditEnvironment, type TreeseedHostingAuditHostKind, type TreeseedHostingAuditReport, } from './operations/services/hosting-audit.
|
|
4
|
-
export { collectTreeseedHostedServiceChecks, type TreeseedHostedServiceCheck, type TreeseedHostedServiceCheckReport, type TreeseedHostedServiceCheckStatus, type TreeseedHostedServiceType, type TreeseedObservedRailwayServiceState, } from './operations/services/hosted-service-checks.
|
|
5
|
-
export { collectTreeseedDeploymentReadiness, formatTreeseedReadinessReport, type TreeseedDeploymentReadinessCheck, type TreeseedDeploymentReadinessReport, type TreeseedDeploymentReadinessStatus, } from './operations/services/deployment-readiness.
|
|
6
|
-
export { collectTreeseedLiveHostedServiceChecks, type TreeseedLiveHostedServiceCheckOptions, type TreeseedLiveHostedServiceCheckReport, } from './operations/services/live-hosted-service-checks.
|
|
7
|
-
export { runTreeseedOperationsRunnerSmoke, type TreeseedOperationsRunnerSmokeOptions, type TreeseedOperationsRunnerSmokeReport, } from './operations/services/operations-runner-smoke.
|
|
8
|
-
export { readTreeseedVerificationCache, treeseedVerificationCacheKey, writeTreeseedVerificationCache, type TreeseedVerificationCacheEntry, } from './operations/services/verification-cache.
|
|
9
|
-
export { assertDeploymentInitialized, cleanupDestroyedState, createBranchPreviewDeployTarget, createPersistentDeployTarget, deployTargetLabel, destroyCloudflareResources, ensureGeneratedWranglerConfig, finalizeDeploymentState, loadDeployState, printDeploySummary, printDestroySummary, provisionCloudflareResources, runRemoteD1Migrations, syncCloudflareSecrets, validateDeployPrerequisites, validateDestroyPrerequisites, } from './operations/services/deploy.
|
|
10
|
-
export { assertCleanWorktree, assertFeatureBranch, branchExists, checkoutBranch,
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export { discoverTreeseedPackageAdapters, findTreeseedPackageAdapter, packageAdapterPlanSummary, planTreeseedPackageDevelopmentImage, type TreeseedPackageAdapter, type TreeseedPackageDevelopmentImagePlan, } from './operations/services/package-adapters.
|
|
18
|
-
export { runTenantDeployPreflight, runWorkspaceReleasePreflight, runWorkspaceSavePreflight, } from './operations/services/save-deploy-preflight.
|
|
19
|
-
export { collectCliPreflight } from './operations/services/workspace-preflight.
|
|
20
|
-
export { collectTreeseedDependencyStatus, collectTreeseedToolStatus, createTreeseedManagedToolEnv, formatTreeseedDependencyFailureDetails, formatTreeseedDependencyReport, installTreeseedDependencies, resolveTreeseedToolBinary, resolveTreeseedToolCommand, type TreeseedToolStatusResult, } from './managed-dependencies.
|
|
21
|
-
export { runTreeseedCopilotTask, type TreeseedCopilotTaskInput, type TreeseedCopilotTaskResult, } from './copilot.
|
|
22
|
-
export { applyWorkspaceVersionChanges, collectMergeConflictReport, currentBranch, formatMergeConflictReport, gitStatusPorcelain, hasMeaningfulChanges, incrementVersion, originRemoteUrl, planWorkspaceReleaseBump, repoRoot, } from './operations/services/workspace-save.
|
|
23
|
-
export { assertNoWorkspaceLinksInDeploymentLockfiles, collectDeploymentLockfileWorkspaceIssues, discoverWorkspaceLinks, ensureLocalWorkspaceLinks, inspectWorkspaceDependencyMode, unlinkLocalWorkspaceLinks, type DependencyResolutionMode, type DeploymentLockfileWorkspaceIssue, type WorkspaceLinksMode, } from './operations/services/workspace-dependency-mode.
|
|
24
|
-
export { findNearestTreeseedRoot, findNearestTreeseedWorkspaceRoot, isWorkspaceRoot, run, workspaceRoot, } from './operations/services/workspace-tools.
|
|
25
|
-
export {
|
|
1
|
+
export { applyTreeseedConfigValues, applyTreeseedEnvironmentToProcess, applyTreeseedSafeRepairs, assertTreeseedCommandEnvironment, checkTreeseedProviderConnections, clearTreeseedRemoteSession, collectTreeseedConfigContext, collectTreeseedConfigSeedValues, collectTreeseedPrintEnvReport, createDefaultTreeseedMachineConfig, ensureTreeseedActVerificationTooling, ensureTreeseedSecretSessionForConfig, ensureTreeseedGitignoreEntries, getTreeseedMachineConfigPaths, loadTreeseedMachineConfig, listRelevantTreeseedConfigEntries, finalizeTreeseedConfig, inspectTreeseedKeyAgentTransportDiagnostic, inspectTreeseedPassphraseEnvDiagnostic, listDeprecatedTreeseedLocalEnvFiles, inspectTreeseedKeyAgentStatus, lockTreeseedSecretSession, migrateTreeseedMachineKeyToWrapped, resolveTreeseedMachineEnvironmentValues, resolveTreeseedLaunchEnvironment, resolveTreeseedRemoteConfig, resolveTreeseedRemoteSession, rotateTreeseedMachineKey, rotateTreeseedMachineKeyPassphrase, setTreeseedRemoteSession, TREESEED_MACHINE_KEY_PASSPHRASE_ENV, TreeseedKeyAgentError, updateTreeseedDeployConfigFeatureToggles, unlockTreeseedSecretSessionFromEnv, unlockTreeseedSecretSessionInteractive, unlockTreeseedSecretSessionWithPassphrase, withTreeseedKeyAgentAutopromptDisabled, warnDeprecatedTreeseedLocalEnvFiles, writeTreeseedMachineConfig, } from './operations/services/config-runtime.js';
|
|
2
|
+
export { exportTreeseedCodebase } from './operations/services/export-runtime.js';
|
|
3
|
+
export { formatTreeseedHostingAuditReport, resolveTreeseedHostingAuditTarget, runTreeseedHostingAudit, type TreeseedHostingAuditCheck, type TreeseedHostingAuditEnvironment, type TreeseedHostingAuditHostKind, type TreeseedHostingAuditReport, } from './operations/services/hosting-audit.js';
|
|
4
|
+
export { collectTreeseedHostedServiceChecks, type TreeseedHostedServiceCheck, type TreeseedHostedServiceCheckReport, type TreeseedHostedServiceCheckStatus, type TreeseedHostedServiceType, type TreeseedObservedRailwayServiceState, } from './operations/services/hosted-service-checks.js';
|
|
5
|
+
export { collectTreeseedDeploymentReadiness, formatTreeseedReadinessReport, type TreeseedDeploymentReadinessCheck, type TreeseedDeploymentReadinessReport, type TreeseedDeploymentReadinessStatus, } from './operations/services/deployment-readiness.js';
|
|
6
|
+
export { collectTreeseedLiveHostedServiceChecks, type TreeseedLiveHostedServiceCheckOptions, type TreeseedLiveHostedServiceCheckReport, } from './operations/services/live-hosted-service-checks.js';
|
|
7
|
+
export { runTreeseedOperationsRunnerSmoke, type TreeseedOperationsRunnerSmokeOptions, type TreeseedOperationsRunnerSmokeReport, } from './operations/services/operations-runner-smoke.js';
|
|
8
|
+
export { readTreeseedVerificationCache, treeseedVerificationCacheKey, writeTreeseedVerificationCache, type TreeseedVerificationCacheEntry, } from './operations/services/verification-cache.js';
|
|
9
|
+
export { assertDeploymentInitialized, cleanupDestroyedState, createBranchPreviewDeployTarget, createPersistentDeployTarget, deployTargetLabel, destroyCloudflareResources, ensureGeneratedWranglerConfig, finalizeDeploymentState, loadDeployState, printDeploySummary, printDestroySummary, provisionCloudflareResources, runRemoteD1Migrations, syncCloudflareSecrets, validateDeployPrerequisites, validateDestroyPrerequisites, } from './operations/services/deploy.js';
|
|
10
|
+
export { assertCleanWorktree, assertFeatureBranch, branchExists, checkoutBranch, createFeatureBranchFromStaging, currentManagedBranch, deleteLocalBranch, deleteRemoteBranch, ensureLocalBranchTracking, gitWorkflowRoot, listTaskBranches, mergeCurrentBranchIntoStaging, mergeStagingIntoMain, prepareReleaseBranches, PRODUCTION_BRANCH, pushBranch, remoteBranchExists, STAGING_BRANCH, syncBranchWithOrigin, waitForStagingAutomation, } from './operations/services/git-workflow.js';
|
|
11
|
+
export { loadCliDeployConfig, packageScriptPath, resolveWranglerBin, } from './operations/services/runtime-tools.js';
|
|
12
|
+
export { configuredRailwayServices, validateRailwayDeployPrerequisites, } from './operations/services/railway-deploy.js';
|
|
13
|
+
export { getRailwayAuthProfile, listRailwayEnvironments, listRailwayProjects, listRailwayServices, listRailwayVariables, resolveRailwayApiToken, resolveRailwayApiUrl, resolveRailwayWorkspace, resolveRailwayWorkspaceContext, } from './operations/services/railway-api.js';
|
|
14
|
+
export { githubRepositoryCredentialEnvName, resolveGitHubCredentialForRepository, type TreeseedGitHubCredentialResolution, } from './operations/services/github-credentials.js';
|
|
15
|
+
export { createGitHubApiClient, ensureGitHubActionsEnvironment, getLatestGitHubWorkflowRun, listGitHubEnvironmentSecretNames, listGitHubEnvironmentVariableNames, type GitHubWorkflowDispatchResult, type GitHubWorkflowRunSummary, } from './operations/services/github-api.js';
|
|
16
|
+
export { inspectTreeseedGitLocks, inspectTreeseedGitLockSet, inspectTreeseedWorkspaceGitLocks, recoverTreeseedGitLocks, runTreeseedGitBatch, runTreeseedGit, type TreeseedGitLockDiagnostic, type TreeseedGitLockKind, type TreeseedGitLockProcessHint, type TreeseedGitBatchOperation, type TreeseedGitRunnerMode, type TreeseedGitRunnerResult, type TreeseedGitWorkspaceLockDiagnostics, } from './operations/services/git-runner.js';
|
|
17
|
+
export { discoverTreeseedPackageAdapters, findTreeseedPackageAdapter, packageAdapterPlanSummary, planTreeseedPackageDevelopmentImage, runTreeseedPackageImageWorkflow, syncTreeseedPackageWorkflows, validateTreeseedPackageManifests, type TreeseedPackageAdapter, type TreeseedPackageDevelopmentImagePlan, type TreeseedPackageImageWorkflowOptions, type TreeseedPackageManifestValidation, type TreeseedPackageWorkflowSyncResult, type TreeseedPackageWorkflowTemplateKind, } from './operations/services/package-adapters.js';
|
|
18
|
+
export { runTenantDeployPreflight, runWorkspaceReleasePreflight, runWorkspaceSavePreflight, } from './operations/services/save-deploy-preflight.js';
|
|
19
|
+
export { collectCliPreflight } from './operations/services/workspace-preflight.js';
|
|
20
|
+
export { collectTreeseedDependencyStatus, collectTreeseedToolStatus, createTreeseedManagedToolEnv, formatTreeseedDependencyFailureDetails, formatTreeseedDependencyReport, installTreeseedDependencies, resolveTreeseedToolBinary, resolveTreeseedToolCommand, type TreeseedToolStatusResult, } from './managed-dependencies.js';
|
|
21
|
+
export { runTreeseedCopilotTask, type TreeseedCopilotTaskInput, type TreeseedCopilotTaskResult, } from './copilot.js';
|
|
22
|
+
export { applyWorkspaceVersionChanges, collectMergeConflictReport, currentBranch, formatMergeConflictReport, gitStatusPorcelain, hasMeaningfulChanges, incrementVersion, originRemoteUrl, planWorkspaceReleaseBump, repoRoot, } from './operations/services/workspace-save.js';
|
|
23
|
+
export { assertNoWorkspaceLinksInDeploymentLockfiles, collectDeploymentLockfileWorkspaceIssues, discoverWorkspaceLinks, ensureLocalWorkspaceLinks, inspectWorkspaceDependencyMode, unlinkLocalWorkspaceLinks, type DependencyResolutionMode, type DeploymentLockfileWorkspaceIssue, type WorkspaceLinksMode, } from './operations/services/workspace-dependency-mode.js';
|
|
24
|
+
export { findNearestTreeseedRoot, findNearestTreeseedWorkspaceRoot, isWorkspaceRoot, run, workspaceRoot, } from './operations/services/workspace-tools.js';
|
|
25
|
+
export { resolveTreeseedWorkflowPaths, } from './workflow/policy.js';
|
|
26
|
+
export { collectTreeseedReconcileStatus, createTreeseedReconcileRegistry, deriveTreeseedDesiredUnits, destroyTreeseedTargetUnits, planTreeseedReconciliation, refreshTreeseedUnits, reconcileTreeseedTarget, } from './reconcile/index.js';
|
package/dist/workflow-support.js
CHANGED
|
@@ -86,7 +86,6 @@ import {
|
|
|
86
86
|
assertFeatureBranch,
|
|
87
87
|
branchExists,
|
|
88
88
|
checkoutBranch,
|
|
89
|
-
createDeprecatedTaskTag,
|
|
90
89
|
createFeatureBranchFromStaging,
|
|
91
90
|
currentManagedBranch,
|
|
92
91
|
deleteLocalBranch,
|
|
@@ -104,10 +103,6 @@ import {
|
|
|
104
103
|
syncBranchWithOrigin,
|
|
105
104
|
waitForStagingAutomation
|
|
106
105
|
} from "./operations/services/git-workflow.js";
|
|
107
|
-
import {
|
|
108
|
-
dockerIsAvailable,
|
|
109
|
-
stopKnownMailpitContainers
|
|
110
|
-
} from "./operations/services/mailpit-runtime.js";
|
|
111
106
|
import {
|
|
112
107
|
loadCliDeployConfig,
|
|
113
108
|
packageScriptPath,
|
|
@@ -115,25 +110,18 @@ import {
|
|
|
115
110
|
} from "./operations/services/runtime-tools.js";
|
|
116
111
|
import {
|
|
117
112
|
configuredRailwayServices,
|
|
118
|
-
deployRailwayService,
|
|
119
113
|
validateRailwayDeployPrerequisites
|
|
120
114
|
} from "./operations/services/railway-deploy.js";
|
|
121
115
|
import {
|
|
122
|
-
deleteRailwayProject,
|
|
123
|
-
ensureRailwayEnvironment,
|
|
124
|
-
ensureRailwayProject,
|
|
125
|
-
ensureRailwayService,
|
|
126
116
|
getRailwayAuthProfile,
|
|
127
117
|
listRailwayEnvironments,
|
|
128
118
|
listRailwayProjects,
|
|
129
119
|
listRailwayServices,
|
|
130
120
|
listRailwayVariables,
|
|
131
|
-
railwayGraphqlRequest,
|
|
132
121
|
resolveRailwayApiToken,
|
|
133
122
|
resolveRailwayApiUrl,
|
|
134
123
|
resolveRailwayWorkspace,
|
|
135
|
-
resolveRailwayWorkspaceContext
|
|
136
|
-
upsertRailwayVariables
|
|
124
|
+
resolveRailwayWorkspaceContext
|
|
137
125
|
} from "./operations/services/railway-api.js";
|
|
138
126
|
import {
|
|
139
127
|
githubRepositoryCredentialEnvName,
|
|
@@ -141,19 +129,27 @@ import {
|
|
|
141
129
|
} from "./operations/services/github-credentials.js";
|
|
142
130
|
import {
|
|
143
131
|
createGitHubApiClient,
|
|
144
|
-
dispatchGitHubWorkflowRun,
|
|
145
132
|
ensureGitHubActionsEnvironment,
|
|
146
133
|
getLatestGitHubWorkflowRun,
|
|
147
134
|
listGitHubEnvironmentSecretNames,
|
|
148
|
-
listGitHubEnvironmentVariableNames
|
|
149
|
-
upsertGitHubEnvironmentSecret,
|
|
150
|
-
upsertGitHubEnvironmentVariable
|
|
135
|
+
listGitHubEnvironmentVariableNames
|
|
151
136
|
} from "./operations/services/github-api.js";
|
|
137
|
+
import {
|
|
138
|
+
inspectTreeseedGitLocks,
|
|
139
|
+
inspectTreeseedGitLockSet,
|
|
140
|
+
inspectTreeseedWorkspaceGitLocks,
|
|
141
|
+
recoverTreeseedGitLocks,
|
|
142
|
+
runTreeseedGitBatch,
|
|
143
|
+
runTreeseedGit
|
|
144
|
+
} from "./operations/services/git-runner.js";
|
|
152
145
|
import {
|
|
153
146
|
discoverTreeseedPackageAdapters,
|
|
154
147
|
findTreeseedPackageAdapter,
|
|
155
148
|
packageAdapterPlanSummary,
|
|
156
|
-
planTreeseedPackageDevelopmentImage
|
|
149
|
+
planTreeseedPackageDevelopmentImage,
|
|
150
|
+
runTreeseedPackageImageWorkflow,
|
|
151
|
+
syncTreeseedPackageWorkflows,
|
|
152
|
+
validateTreeseedPackageManifests
|
|
157
153
|
} from "./operations/services/package-adapters.js";
|
|
158
154
|
import {
|
|
159
155
|
runTenantDeployPreflight,
|
|
@@ -201,6 +197,9 @@ import {
|
|
|
201
197
|
run,
|
|
202
198
|
workspaceRoot
|
|
203
199
|
} from "./operations/services/workspace-tools.js";
|
|
200
|
+
import {
|
|
201
|
+
resolveTreeseedWorkflowPaths
|
|
202
|
+
} from "./workflow/policy.js";
|
|
204
203
|
import {
|
|
205
204
|
collectTreeseedReconcileStatus,
|
|
206
205
|
createTreeseedReconcileRegistry,
|
|
@@ -244,7 +243,6 @@ export {
|
|
|
244
243
|
configuredRailwayServices,
|
|
245
244
|
createBranchPreviewDeployTarget,
|
|
246
245
|
createDefaultTreeseedMachineConfig,
|
|
247
|
-
createDeprecatedTaskTag,
|
|
248
246
|
createFeatureBranchFromStaging,
|
|
249
247
|
createGitHubApiClient,
|
|
250
248
|
createPersistentDeployTarget,
|
|
@@ -253,24 +251,17 @@ export {
|
|
|
253
251
|
currentBranch,
|
|
254
252
|
currentManagedBranch,
|
|
255
253
|
deleteLocalBranch,
|
|
256
|
-
deleteRailwayProject,
|
|
257
254
|
deleteRemoteBranch,
|
|
258
|
-
deployRailwayService,
|
|
259
255
|
deployTargetLabel,
|
|
260
256
|
deriveTreeseedDesiredUnits,
|
|
261
257
|
destroyCloudflareResources,
|
|
262
258
|
destroyTreeseedTargetUnits,
|
|
263
259
|
discoverTreeseedPackageAdapters,
|
|
264
260
|
discoverWorkspaceLinks,
|
|
265
|
-
dispatchGitHubWorkflowRun,
|
|
266
|
-
dockerIsAvailable,
|
|
267
261
|
ensureGeneratedWranglerConfig,
|
|
268
262
|
ensureGitHubActionsEnvironment,
|
|
269
263
|
ensureLocalBranchTracking,
|
|
270
264
|
ensureLocalWorkspaceLinks,
|
|
271
|
-
ensureRailwayEnvironment,
|
|
272
|
-
ensureRailwayProject,
|
|
273
|
-
ensureRailwayService,
|
|
274
265
|
ensureTreeseedActVerificationTooling,
|
|
275
266
|
ensureTreeseedGitignoreEntries,
|
|
276
267
|
ensureTreeseedSecretSessionForConfig,
|
|
@@ -293,9 +284,12 @@ export {
|
|
|
293
284
|
githubRepositoryCredentialEnvName,
|
|
294
285
|
hasMeaningfulChanges,
|
|
295
286
|
incrementVersion,
|
|
287
|
+
inspectTreeseedGitLockSet,
|
|
288
|
+
inspectTreeseedGitLocks,
|
|
296
289
|
inspectTreeseedKeyAgentStatus,
|
|
297
290
|
inspectTreeseedKeyAgentTransportDiagnostic,
|
|
298
291
|
inspectTreeseedPassphraseEnvDiagnostic,
|
|
292
|
+
inspectTreeseedWorkspaceGitLocks,
|
|
299
293
|
inspectWorkspaceDependencyMode,
|
|
300
294
|
installTreeseedDependencies,
|
|
301
295
|
isWorkspaceRoot,
|
|
@@ -326,9 +320,9 @@ export {
|
|
|
326
320
|
printDestroySummary,
|
|
327
321
|
provisionCloudflareResources,
|
|
328
322
|
pushBranch,
|
|
329
|
-
railwayGraphqlRequest,
|
|
330
323
|
readTreeseedVerificationCache,
|
|
331
324
|
reconcileTreeseedTarget,
|
|
325
|
+
recoverTreeseedGitLocks,
|
|
332
326
|
refreshTreeseedUnits,
|
|
333
327
|
remoteBranchExists,
|
|
334
328
|
repoRoot,
|
|
@@ -344,6 +338,7 @@ export {
|
|
|
344
338
|
resolveTreeseedRemoteSession,
|
|
345
339
|
resolveTreeseedToolBinary,
|
|
346
340
|
resolveTreeseedToolCommand,
|
|
341
|
+
resolveTreeseedWorkflowPaths,
|
|
347
342
|
resolveWranglerBin,
|
|
348
343
|
rotateTreeseedMachineKey,
|
|
349
344
|
rotateTreeseedMachineKeyPassphrase,
|
|
@@ -351,26 +346,27 @@ export {
|
|
|
351
346
|
runRemoteD1Migrations,
|
|
352
347
|
runTenantDeployPreflight,
|
|
353
348
|
runTreeseedCopilotTask,
|
|
349
|
+
runTreeseedGit,
|
|
350
|
+
runTreeseedGitBatch,
|
|
354
351
|
runTreeseedHostingAudit,
|
|
355
352
|
runTreeseedOperationsRunnerSmoke,
|
|
353
|
+
runTreeseedPackageImageWorkflow,
|
|
356
354
|
runWorkspaceReleasePreflight,
|
|
357
355
|
runWorkspaceSavePreflight,
|
|
358
356
|
setTreeseedRemoteSession,
|
|
359
|
-
stopKnownMailpitContainers,
|
|
360
357
|
syncBranchWithOrigin,
|
|
361
358
|
syncCloudflareSecrets,
|
|
359
|
+
syncTreeseedPackageWorkflows,
|
|
362
360
|
treeseedVerificationCacheKey,
|
|
363
361
|
unlinkLocalWorkspaceLinks,
|
|
364
362
|
unlockTreeseedSecretSessionFromEnv,
|
|
365
363
|
unlockTreeseedSecretSessionInteractive,
|
|
366
364
|
unlockTreeseedSecretSessionWithPassphrase,
|
|
367
365
|
updateTreeseedDeployConfigFeatureToggles,
|
|
368
|
-
upsertGitHubEnvironmentSecret,
|
|
369
|
-
upsertGitHubEnvironmentVariable,
|
|
370
|
-
upsertRailwayVariables,
|
|
371
366
|
validateDeployPrerequisites,
|
|
372
367
|
validateDestroyPrerequisites,
|
|
373
368
|
validateRailwayDeployPrerequisites,
|
|
369
|
+
validateTreeseedPackageManifests,
|
|
374
370
|
waitForStagingAutomation,
|
|
375
371
|
warnDeprecatedTreeseedLocalEnvFiles,
|
|
376
372
|
withTreeseedKeyAgentAutopromptDisabled,
|
package/dist/workflow.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { resolveTreeseedWorkflowState, type TreeseedWorkflowStatusOptions } from './workflow-state.
|
|
2
|
-
import { listTaskBranches } from './operations/services/git-workflow.
|
|
3
|
-
import type { GitHubActionsVerificationReport } from './operations/services/github-actions-verification.
|
|
4
|
-
import { TreeseedWorkflowError, type TreeseedWorkflowErrorCode } from './workflow/operations.
|
|
5
|
-
export type TreeseedWorkflowOperationId = 'status' | 'ci' | 'config' | 'tasks' | 'switch' | 'dev' | 'save' | 'close' | 'stage' | 'release' | '
|
|
1
|
+
import { resolveTreeseedWorkflowState, type TreeseedWorkflowStatusOptions } from './workflow-state.js';
|
|
2
|
+
import { listTaskBranches } from './operations/services/git-workflow.js';
|
|
3
|
+
import type { GitHubActionsVerificationReport } from './operations/services/github-actions-verification.js';
|
|
4
|
+
import { TreeseedWorkflowError, type TreeseedWorkflowErrorCode } from './workflow/operations.js';
|
|
5
|
+
export type TreeseedWorkflowOperationId = 'status' | 'ci' | 'config' | 'tasks' | 'switch' | 'dev' | 'save' | 'update' | 'close' | 'stage' | 'release-candidate' | 'proof' | 'release' | 'resume' | 'recover' | 'destroy' | 'export';
|
|
6
6
|
export type TreeseedWorkflowNextStep = {
|
|
7
7
|
operation: string;
|
|
8
8
|
reason?: string;
|
|
@@ -32,6 +32,10 @@ export type TreeseedWorkflowWorktreeMode = 'auto' | 'on' | 'off';
|
|
|
32
32
|
export type TreeseedWorkflowCiMode = 'auto' | 'hosted' | 'off';
|
|
33
33
|
export type TreeseedWorkflowVerifyMode = 'fast' | 'local' | 'hosted' | 'both' | 'skip';
|
|
34
34
|
export type TreeseedReleaseCandidateMode = 'hybrid' | 'strict' | 'skip';
|
|
35
|
+
export type TreeseedReleaseCandidateVerifyDriver = 'auto' | 'local' | 'action';
|
|
36
|
+
export type TreeseedStageVerifyMode = 'action' | 'local' | 'none';
|
|
37
|
+
export type TreeseedStageCiMode = 'off' | 'hosted';
|
|
38
|
+
export type TreeseedStageCleanupMode = 'success' | 'manual';
|
|
35
39
|
export type TreeseedWorkflowContext = {
|
|
36
40
|
cwd?: string;
|
|
37
41
|
env?: NodeJS.ProcessEnv;
|
|
@@ -104,7 +108,7 @@ export type TreeseedSaveInput = {
|
|
|
104
108
|
rebase?: boolean;
|
|
105
109
|
bump?: 'major' | 'minor' | 'patch';
|
|
106
110
|
devVersionStrategy?: 'prerelease';
|
|
107
|
-
devDependencyReferenceMode?: 'git-
|
|
111
|
+
devDependencyReferenceMode?: 'git-commit';
|
|
108
112
|
gitDependencyProtocol?: 'preserve-origin' | 'https' | 'ssh';
|
|
109
113
|
gitRemoteWriteMode?: 'ssh-pushurl' | 'off';
|
|
110
114
|
verifyMode?: 'action-first' | 'local-only' | 'skip' | TreeseedWorkflowVerifyMode;
|
|
@@ -118,6 +122,15 @@ export type TreeseedSaveInput = {
|
|
|
118
122
|
plan?: boolean;
|
|
119
123
|
dryRun?: boolean;
|
|
120
124
|
};
|
|
125
|
+
export type TreeseedUpdateInput = {
|
|
126
|
+
from?: string;
|
|
127
|
+
strategy?: 'merge' | 'ff-only';
|
|
128
|
+
push?: boolean;
|
|
129
|
+
worktreeMode?: TreeseedWorkflowWorktreeMode;
|
|
130
|
+
workspaceLinks?: 'auto' | 'off';
|
|
131
|
+
plan?: boolean;
|
|
132
|
+
dryRun?: boolean;
|
|
133
|
+
};
|
|
121
134
|
export type TreeseedCiInput = {
|
|
122
135
|
failed?: boolean;
|
|
123
136
|
logs?: boolean;
|
|
@@ -150,17 +163,39 @@ export type TreeseedCloseInput = {
|
|
|
150
163
|
};
|
|
151
164
|
export type TreeseedStageInput = {
|
|
152
165
|
message: string;
|
|
166
|
+
updateFrom?: string;
|
|
167
|
+
verifyMode?: TreeseedStageVerifyMode;
|
|
168
|
+
cleanupMode?: TreeseedStageCleanupMode;
|
|
153
169
|
waitForStaging?: boolean;
|
|
154
170
|
deletePreview?: boolean;
|
|
155
171
|
deleteBranch?: boolean;
|
|
156
172
|
autoSave?: boolean;
|
|
157
|
-
ciMode?: TreeseedWorkflowCiMode;
|
|
173
|
+
ciMode?: TreeseedStageCiMode | TreeseedWorkflowCiMode;
|
|
174
|
+
releaseCandidate?: TreeseedReleaseCandidateMode;
|
|
158
175
|
worktreeMode?: TreeseedWorkflowWorktreeMode;
|
|
159
176
|
workspaceLinks?: 'auto' | 'off';
|
|
160
177
|
verifyDeployedResources?: boolean;
|
|
161
178
|
plan?: boolean;
|
|
162
179
|
dryRun?: boolean;
|
|
163
180
|
};
|
|
181
|
+
export type TreeseedReleaseCandidateInput = {
|
|
182
|
+
mode?: TreeseedReleaseCandidateMode;
|
|
183
|
+
verifyDriver?: TreeseedReleaseCandidateVerifyDriver;
|
|
184
|
+
package?: string | string[];
|
|
185
|
+
keepWorkspace?: boolean;
|
|
186
|
+
plan?: boolean;
|
|
187
|
+
dryRun?: boolean;
|
|
188
|
+
};
|
|
189
|
+
export type TreeseedProofInput = {
|
|
190
|
+
action?: 'plan' | 'run' | 'status' | 'failures' | 'explain' | 'clean';
|
|
191
|
+
target?: 'local' | 'staging' | 'prod';
|
|
192
|
+
driver?: 'local' | 'act' | 'github-hosted' | 'railway-live' | 'cloudflare-live' | 'reconcile-live';
|
|
193
|
+
subject?: string | null;
|
|
194
|
+
last?: boolean;
|
|
195
|
+
olderThan?: string | null;
|
|
196
|
+
plan?: boolean;
|
|
197
|
+
dryRun?: boolean;
|
|
198
|
+
};
|
|
164
199
|
export type TreeseedSwitchInput = {
|
|
165
200
|
branch?: string;
|
|
166
201
|
branchName?: string;
|
|
@@ -216,7 +251,6 @@ export type TreeseedReleaseInput = {
|
|
|
216
251
|
bump: 'major' | 'minor' | 'patch';
|
|
217
252
|
repairVersionLine?: boolean;
|
|
218
253
|
targetVersionLine?: string;
|
|
219
|
-
devTagCleanup?: 'safe-after-release' | 'off';
|
|
220
254
|
gitDependencyProtocol?: 'preserve-origin' | 'https' | 'ssh';
|
|
221
255
|
gitRemoteWriteMode?: 'ssh-pushurl' | 'off';
|
|
222
256
|
ciMode?: TreeseedWorkflowCiMode;
|
|
@@ -227,12 +261,6 @@ export type TreeseedReleaseInput = {
|
|
|
227
261
|
plan?: boolean;
|
|
228
262
|
dryRun?: boolean;
|
|
229
263
|
};
|
|
230
|
-
export type TreeseedTagsCleanupInput = {
|
|
231
|
-
includePackages?: string | string[];
|
|
232
|
-
branchScope?: 'staging' | 'preview' | 'all';
|
|
233
|
-
plan?: boolean;
|
|
234
|
-
dryRun?: boolean;
|
|
235
|
-
};
|
|
236
264
|
export type TreeseedResumeInput = {
|
|
237
265
|
runId: string;
|
|
238
266
|
};
|
|
@@ -268,7 +296,7 @@ export declare class TreeseedWorkflowSdk {
|
|
|
268
296
|
private readonly context;
|
|
269
297
|
constructor(context?: TreeseedWorkflowContext);
|
|
270
298
|
private helpers;
|
|
271
|
-
execute(operation: TreeseedWorkflowOperationId, input?: Record<string, unknown>): Promise<TreeseedWorkflowResult<import("./workflow-state.
|
|
299
|
+
execute(operation: TreeseedWorkflowOperationId, input?: Record<string, unknown>): Promise<TreeseedWorkflowResult<import("./workflow-state.js").TreeseedWorkflowState> | TreeseedWorkflowResult<TreeseedCiResult> | TreeseedWorkflowResult<{
|
|
272
300
|
tasks: TreeseedTaskBranchMetadata[];
|
|
273
301
|
workstreams: TreeseedWorkflowWorkstreamSummary[];
|
|
274
302
|
}> | TreeseedWorkflowResult<Record<string, unknown>>>;
|
|
@@ -282,10 +310,12 @@ export declare class TreeseedWorkflowSdk {
|
|
|
282
310
|
switchTask(input: TreeseedSwitchInput): Promise<TreeseedWorkflowResult>;
|
|
283
311
|
dev(input?: TreeseedWorkflowDevInput): Promise<TreeseedWorkflowResult>;
|
|
284
312
|
save(input: TreeseedSaveInput): Promise<TreeseedWorkflowResult>;
|
|
313
|
+
update(input?: TreeseedUpdateInput): Promise<TreeseedWorkflowResult>;
|
|
285
314
|
close(input: TreeseedCloseInput): Promise<TreeseedWorkflowResult>;
|
|
286
315
|
stage(input: TreeseedStageInput): Promise<TreeseedWorkflowResult>;
|
|
316
|
+
releaseCandidate(input?: TreeseedReleaseCandidateInput): Promise<TreeseedWorkflowResult>;
|
|
317
|
+
proof(input?: TreeseedProofInput): Promise<TreeseedWorkflowResult>;
|
|
287
318
|
release(input: TreeseedReleaseInput): Promise<TreeseedWorkflowResult>;
|
|
288
|
-
tagsCleanup(input?: TreeseedTagsCleanupInput): Promise<TreeseedWorkflowResult>;
|
|
289
319
|
resume(input: TreeseedResumeInput): Promise<TreeseedWorkflowResult>;
|
|
290
320
|
recover(input?: TreeseedRecoverInput): Promise<TreeseedWorkflowResult>;
|
|
291
321
|
destroy(input: TreeseedDestroyInput): Promise<TreeseedWorkflowResult>;
|
package/dist/workflow.js
CHANGED
|
@@ -8,14 +8,16 @@ import {
|
|
|
8
8
|
workflowDev,
|
|
9
9
|
workflowExport,
|
|
10
10
|
workflowRecover,
|
|
11
|
+
workflowReleaseCandidate,
|
|
12
|
+
workflowProof,
|
|
11
13
|
workflowRelease,
|
|
12
14
|
workflowResume,
|
|
13
15
|
workflowSave,
|
|
14
16
|
workflowStage,
|
|
15
17
|
workflowStatus,
|
|
16
18
|
workflowSwitch,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
workflowTasks,
|
|
20
|
+
workflowUpdate
|
|
19
21
|
} from "./workflow/operations.js";
|
|
20
22
|
function defaultWrite(output, stream = "stdout") {
|
|
21
23
|
if (!output) return;
|
|
@@ -56,14 +58,18 @@ class TreeseedWorkflowSdk {
|
|
|
56
58
|
return this.dev(input);
|
|
57
59
|
case "save":
|
|
58
60
|
return this.save(input);
|
|
61
|
+
case "update":
|
|
62
|
+
return this.update(input);
|
|
59
63
|
case "close":
|
|
60
64
|
return this.close(input);
|
|
61
65
|
case "stage":
|
|
62
66
|
return this.stage(input);
|
|
67
|
+
case "release-candidate":
|
|
68
|
+
return this.releaseCandidate(input);
|
|
69
|
+
case "proof":
|
|
70
|
+
return this.proof(input);
|
|
63
71
|
case "release":
|
|
64
72
|
return this.release(input);
|
|
65
|
-
case "tags:cleanup":
|
|
66
|
-
return this.tagsCleanup(input);
|
|
67
73
|
case "resume":
|
|
68
74
|
return this.resume(input);
|
|
69
75
|
case "recover":
|
|
@@ -97,18 +103,24 @@ class TreeseedWorkflowSdk {
|
|
|
97
103
|
async save(input) {
|
|
98
104
|
return workflowSave(this.helpers(), input);
|
|
99
105
|
}
|
|
106
|
+
async update(input = {}) {
|
|
107
|
+
return workflowUpdate(this.helpers(), input);
|
|
108
|
+
}
|
|
100
109
|
async close(input) {
|
|
101
110
|
return workflowClose(this.helpers(), input);
|
|
102
111
|
}
|
|
103
112
|
async stage(input) {
|
|
104
113
|
return workflowStage(this.helpers(), input);
|
|
105
114
|
}
|
|
115
|
+
async releaseCandidate(input = {}) {
|
|
116
|
+
return workflowReleaseCandidate(this.helpers(), input);
|
|
117
|
+
}
|
|
118
|
+
async proof(input = {}) {
|
|
119
|
+
return workflowProof(this.helpers(), input);
|
|
120
|
+
}
|
|
106
121
|
async release(input) {
|
|
107
122
|
return workflowRelease(this.helpers(), input);
|
|
108
123
|
}
|
|
109
|
-
async tagsCleanup(input = {}) {
|
|
110
|
-
return workflowTagsCleanup(this.helpers(), input);
|
|
111
|
-
}
|
|
112
124
|
async resume(input) {
|
|
113
125
|
return workflowResume(this.helpers(), input);
|
|
114
126
|
}
|
|
@@ -13,24 +13,6 @@ CREATE TABLE IF NOT EXISTS `contact_submissions` (
|
|
|
13
13
|
|
|
14
14
|
CREATE INDEX IF NOT EXISTS `idx_contact_submissions_created_at` ON `contact_submissions` (`created_at`);
|
|
15
15
|
CREATE INDEX IF NOT EXISTS `idx_contact_submissions_email` ON `contact_submissions` (`email`);
|
|
16
|
-
CREATE TABLE IF NOT EXISTS `runtime_records` (
|
|
17
|
-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
18
|
-
`record_type` text NOT NULL,
|
|
19
|
-
`record_key` text NOT NULL,
|
|
20
|
-
`lookup_key` text,
|
|
21
|
-
`secondary_key` text,
|
|
22
|
-
`status` text NOT NULL,
|
|
23
|
-
`schema_version` integer DEFAULT 1 NOT NULL,
|
|
24
|
-
`created_at` text NOT NULL,
|
|
25
|
-
`updated_at` text NOT NULL,
|
|
26
|
-
`expires_at` text,
|
|
27
|
-
`payload_json` text NOT NULL,
|
|
28
|
-
`meta_json` text NOT NULL
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
CREATE INDEX IF NOT EXISTS `idx_runtime_records_type_lookup_updated` ON `runtime_records` (`record_type`,`lookup_key`,`updated_at`);
|
|
32
|
-
CREATE INDEX IF NOT EXISTS `idx_runtime_records_type_status_updated` ON `runtime_records` (`record_type`,`status`,`updated_at`);
|
|
33
|
-
CREATE UNIQUE INDEX IF NOT EXISTS `idx_runtime_records_type_record_key` ON `runtime_records` (`record_type`,`record_key`);
|
|
34
16
|
CREATE TABLE IF NOT EXISTS `subscribers` (
|
|
35
17
|
`email` text PRIMARY KEY NOT NULL,
|
|
36
18
|
`created_at` text NOT NULL
|