@treeseed/sdk 0.11.0 → 0.12.4
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 +627 -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 +63 -0
- package/dist/platform/desired-state.js +1021 -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
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
import { join } from "node:path";
|
|
2
|
+
const TREESEED_SCENE_PLATFORM_NAME = "central TreeSeed acceptance test harness and demo / educational video generator";
|
|
3
|
+
const PHASE0_COMMAND_SURFACE = [
|
|
4
|
+
"trsd scene",
|
|
5
|
+
"trsd scene status",
|
|
6
|
+
"trsd scene status --json",
|
|
7
|
+
"trsd scene validate <scene.yaml> --json",
|
|
8
|
+
"trsd scene plan <scene.yaml> --json",
|
|
9
|
+
"trsd scene run <scene.yaml> --environment local|staging|prod --record --json",
|
|
10
|
+
"trsd scene inspect <run-id-or-path> --step <step-id> --json",
|
|
11
|
+
"trsd scene resume <run-id-or-path> --from-checkpoint <checkpoint-id> --json",
|
|
12
|
+
"trsd scene render <scene.yaml> --from <run-id-or-path> --renderer remotion --format mp4 --json",
|
|
13
|
+
"trsd scene render <scene.yaml> --from <run-id-or-path> --mode diagram-only --json",
|
|
14
|
+
"trsd scene training <scene.yaml> --from <run-id-or-path> --format json|markdown|vtt|srt --json",
|
|
15
|
+
"trsd scene evidence <scene.yaml> --from <run-id-or-path> --target local|ci|release --bundle metadata-only|sanitized --json",
|
|
16
|
+
"trsd scene publish <scene.yaml> --from <run-id-or-path> --target local|release --redaction-policy <path> --json",
|
|
17
|
+
"trsd scene publish-plan <scene.yaml> --from <run-id-or-path> --target docs,training,release-evidence,artifact-store --json",
|
|
18
|
+
"trsd scene export <scene.yaml> --from <run-id-or-path> --target docs,training,release-evidence,artifact-store --json",
|
|
19
|
+
"trsd scene visual-audit <scene.yaml> --roles anonymous,owner,admin,member --device desktop|tablet|mobile|all --path-root /app,/auth,/market --path /app/projects/** --exclude-path **/delete --json"
|
|
20
|
+
];
|
|
21
|
+
const PHASE0_SDK_EXPORTS = [
|
|
22
|
+
"@treeseed/sdk/scenes",
|
|
23
|
+
"createTreeseedScenePhase0Report",
|
|
24
|
+
"planTreeseedSceneArtifactPaths",
|
|
25
|
+
"generateTreeseedSceneTrainingOutputs",
|
|
26
|
+
"buildTreeseedSceneTrainingOutputs",
|
|
27
|
+
"generateTreeseedSceneEvidence",
|
|
28
|
+
"buildTreeseedSceneEvidenceManifest",
|
|
29
|
+
"writeTreeseedSceneEvidence",
|
|
30
|
+
"publishTreeseedSceneEvidence",
|
|
31
|
+
"buildTreeseedScenePublishManifest",
|
|
32
|
+
"createDefaultTreeseedSceneRedactionPolicy",
|
|
33
|
+
"planTreeseedScenePublication",
|
|
34
|
+
"exportTreeseedScenePublication",
|
|
35
|
+
"buildTreeseedScenePublishPlanManifest",
|
|
36
|
+
"runTreeseedSceneVisualAudit",
|
|
37
|
+
"discoverTreeseedSceneVisualAuditRoutes"
|
|
38
|
+
];
|
|
39
|
+
const FILESYSTEM_SAFE_SCENE_ID = /^[a-z0-9][a-z0-9._-]*$/u;
|
|
40
|
+
function compactTimestamp(date = /* @__PURE__ */ new Date()) {
|
|
41
|
+
return date.toISOString().replace(/[-:]/gu, "").replace(/\.\d{3}Z$/u, "Z");
|
|
42
|
+
}
|
|
43
|
+
function defaultRunId(timestamp) {
|
|
44
|
+
return timestamp.toLowerCase().replace(/[^a-z0-9]/gu, "").slice(0, 12) || "phase0run";
|
|
45
|
+
}
|
|
46
|
+
function createTreeseedScenePhase0Report() {
|
|
47
|
+
return {
|
|
48
|
+
ok: true,
|
|
49
|
+
phase: 0,
|
|
50
|
+
status: "foundation_ready",
|
|
51
|
+
name: TREESEED_SCENE_PLATFORM_NAME,
|
|
52
|
+
commandSurface: [...PHASE0_COMMAND_SURFACE],
|
|
53
|
+
sdkExports: [...PHASE0_SDK_EXPORTS],
|
|
54
|
+
capabilities: [
|
|
55
|
+
{
|
|
56
|
+
id: "scene.sdk-foundation",
|
|
57
|
+
status: "available",
|
|
58
|
+
owner: "@treeseed/sdk",
|
|
59
|
+
summary: "SDK-owned scene foundation types, Phase 0 report, and artifact path planning are available."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: "scene.cli-status",
|
|
63
|
+
status: "available",
|
|
64
|
+
owner: "@treeseed/cli",
|
|
65
|
+
summary: "CLI-owned scene status command can report installed Phase 0 capability without running workflows."
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
id: "scene.manifest-loader",
|
|
69
|
+
status: "available",
|
|
70
|
+
owner: "@treeseed/sdk",
|
|
71
|
+
summary: "YAML scene manifests can be loaded and parsed through the SDK scene module."
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: "scene.schema-validation",
|
|
75
|
+
status: "available",
|
|
76
|
+
owner: "@treeseed/sdk",
|
|
77
|
+
summary: "Scene manifests can be validated and normalized with stable diagnostics."
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "scene.plan-compiler",
|
|
81
|
+
status: "available",
|
|
82
|
+
owner: "@treeseed/sdk",
|
|
83
|
+
summary: "Scene manifests can compile into deterministic non-mutating plan reports."
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
id: "scene.playwright-runner",
|
|
87
|
+
status: "available",
|
|
88
|
+
owner: "@treeseed/sdk",
|
|
89
|
+
summary: "Playwright browser execution is available for browser-safe actions and assertions."
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "scene.environment-integration",
|
|
93
|
+
status: "available",
|
|
94
|
+
owner: "@treeseed/sdk",
|
|
95
|
+
summary: "Scene runs can prepare Treeseed readiness and managed local dev through canonical SDK services."
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: "scene.seed-integration",
|
|
99
|
+
status: "available",
|
|
100
|
+
owner: "@treeseed/sdk",
|
|
101
|
+
summary: "Scene runs can plan and explicitly apply seeds through canonical Treeseed seed services."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
id: "scene.auth-integration",
|
|
105
|
+
status: "available",
|
|
106
|
+
owner: "@treeseed/sdk",
|
|
107
|
+
summary: "Scene runs can resolve market auth profiles and block clearly when required sessions are missing."
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: "scene.operation-polling",
|
|
111
|
+
status: "available",
|
|
112
|
+
owner: "@treeseed/sdk",
|
|
113
|
+
summary: "Scene runs can wait for linked or explicit Treeseed platform operations."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: "scene.log-collection",
|
|
117
|
+
status: "available",
|
|
118
|
+
owner: "@treeseed/sdk",
|
|
119
|
+
summary: "Scene runs collect bounded managed-dev logs into run artifacts when available."
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "scene.plugin-contract",
|
|
123
|
+
status: "available",
|
|
124
|
+
owner: "@treeseed/sdk",
|
|
125
|
+
summary: "Formal SDK plugin contracts and static built-in plugin resolution are available."
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
id: "scene.internal-action-plugins",
|
|
129
|
+
status: "available",
|
|
130
|
+
owner: "@treeseed/sdk",
|
|
131
|
+
summary: "Built-in actions execute through internal action plugin handlers."
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
id: "scene.internal-assertion-plugins",
|
|
135
|
+
status: "available",
|
|
136
|
+
owner: "@treeseed/sdk",
|
|
137
|
+
summary: "Built-in assertions execute through internal assertion plugin handlers."
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
id: "scene.internal-environment-plugin",
|
|
141
|
+
status: "available",
|
|
142
|
+
owner: "@treeseed/sdk",
|
|
143
|
+
summary: "Environment, auth, seed, and base URL setup are exposed through an internal environment plugin."
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "scene.plugin-plan-diagnostics",
|
|
147
|
+
status: "available",
|
|
148
|
+
owner: "@treeseed/sdk",
|
|
149
|
+
summary: "Scene plan reports include plugin summaries, enabled plugin ids, and plugin diagnostics."
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "scene.dynamic-plugin-discovery",
|
|
153
|
+
status: "planned",
|
|
154
|
+
owner: "@treeseed/sdk",
|
|
155
|
+
summary: "Dynamic package-local plugin discovery is planned after static built-in plugins."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: "scene.remotion-renderer",
|
|
159
|
+
status: "available",
|
|
160
|
+
owner: "@treeseed/sdk",
|
|
161
|
+
summary: "Remotion rendering is available through the SDK renderer plugin boundary."
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: "scene.long-workflow-runtime",
|
|
165
|
+
status: "available",
|
|
166
|
+
owner: "@treeseed/sdk",
|
|
167
|
+
summary: "Chapters, segments, checkpoints, resume, inspect, progress events, pauses, and timeout hierarchy are available."
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: "scene.chapter-runtime",
|
|
171
|
+
status: "available",
|
|
172
|
+
owner: "@treeseed/sdk",
|
|
173
|
+
summary: "Scene runs report chapter boundaries and chapter-local status for long workflows."
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
id: "scene.segment-runtime",
|
|
177
|
+
status: "available",
|
|
178
|
+
owner: "@treeseed/sdk",
|
|
179
|
+
summary: "Scene runs write segment metadata for future render-from-partial-artifacts workflows."
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
id: "scene.checkpoints",
|
|
183
|
+
status: "available",
|
|
184
|
+
owner: "@treeseed/sdk",
|
|
185
|
+
summary: "Scene runs write durable checkpoints after successful steps."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: "scene.resume",
|
|
189
|
+
status: "available",
|
|
190
|
+
owner: "@treeseed/sdk",
|
|
191
|
+
summary: "Scene runs can resume from resumable checkpoints using checkpoint replay."
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "scene.inspect",
|
|
195
|
+
status: "available",
|
|
196
|
+
owner: "@treeseed/sdk",
|
|
197
|
+
summary: "Scene run artifacts can be inspected by run id or path."
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
id: "scene.progress-jsonl",
|
|
201
|
+
status: "available",
|
|
202
|
+
owner: "@treeseed/sdk",
|
|
203
|
+
summary: "Long scene runs write progress.jsonl and stream JSONL progress events from the CLI."
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: "scene.pause-action",
|
|
207
|
+
status: "available",
|
|
208
|
+
owner: "@treeseed/sdk",
|
|
209
|
+
summary: "Timed and manual pause actions are available through the control action runtime."
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
id: "scene.timeout-hierarchy",
|
|
213
|
+
status: "available",
|
|
214
|
+
owner: "@treeseed/sdk",
|
|
215
|
+
summary: "Scene runtime supports normalized scene, chapter, and step timeout configuration."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
id: "scene.render-command",
|
|
219
|
+
status: "available",
|
|
220
|
+
owner: "@treeseed/cli",
|
|
221
|
+
summary: "The CLI can render previous scene run artifacts with `trsd scene render`."
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
id: "scene.render-only-from-artifacts",
|
|
225
|
+
status: "available",
|
|
226
|
+
owner: "@treeseed/sdk",
|
|
227
|
+
summary: "Rendering consumes existing scene artifacts without rerunning browser workflows."
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: "scene.remotion-composition-registry",
|
|
231
|
+
status: "available",
|
|
232
|
+
owner: "@treeseed/sdk",
|
|
233
|
+
summary: "Built-in Remotion compositions are registered for demo, training, failure review, and diagram-only videos."
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
id: "scene.video-overlays",
|
|
237
|
+
status: "available",
|
|
238
|
+
owner: "@treeseed/sdk",
|
|
239
|
+
summary: "Render input carries overlay and callout metadata anchored to scene timeline steps."
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
id: "scene.chapter-title-rendering",
|
|
243
|
+
status: "available",
|
|
244
|
+
owner: "@treeseed/sdk",
|
|
245
|
+
summary: "Remotion renders chapter title context from long workflow artifacts."
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
id: "scene.failure-review-rendering",
|
|
249
|
+
status: "available",
|
|
250
|
+
owner: "@treeseed/sdk",
|
|
251
|
+
summary: "Failure review videos can focus failed steps, diagnostics, and evidence artifacts."
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
id: "scene.screenshot-slideshow-rendering",
|
|
255
|
+
status: "available",
|
|
256
|
+
owner: "@treeseed/sdk",
|
|
257
|
+
summary: "Render falls back to screenshot slideshow output when a run has no browser video."
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: "scene.diagram-system",
|
|
261
|
+
status: "available",
|
|
262
|
+
owner: "@treeseed/sdk",
|
|
263
|
+
summary: "Typed animated diagram providers render operation, reconciliation, dev runtime, and scene timeline diagrams."
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
id: "scene.diagram-plugin-provider",
|
|
267
|
+
status: "available",
|
|
268
|
+
owner: "@treeseed/sdk",
|
|
269
|
+
summary: "Built-in diagram provider plugin treeseed.scene.diagrams.remotion is available."
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
id: "scene.diagram-prop-validation",
|
|
273
|
+
status: "available",
|
|
274
|
+
owner: "@treeseed/sdk",
|
|
275
|
+
summary: "Scene validate and plan check typed diagram component props before render."
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
id: "scene.diagram-render-input",
|
|
279
|
+
status: "available",
|
|
280
|
+
owner: "@treeseed/sdk",
|
|
281
|
+
summary: "Render input includes normalized renderDiagrams from provider definitions and run artifacts."
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
id: "scene.diagram-remotion-rendering",
|
|
285
|
+
status: "available",
|
|
286
|
+
owner: "@treeseed/sdk",
|
|
287
|
+
summary: "Remotion compositions render built-in diagrams through the adapter-hosted render path."
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
id: "scene.diagram-only-rendering",
|
|
291
|
+
status: "available",
|
|
292
|
+
owner: "@treeseed/sdk",
|
|
293
|
+
summary: "Diagram-only rendering is available from existing run artifacts."
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
id: "scene.diagram-overlay-rendering",
|
|
297
|
+
status: "available",
|
|
298
|
+
owner: "@treeseed/sdk",
|
|
299
|
+
summary: "Overlay diagrams can render alongside browser evidence in demo and training videos."
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
id: "scene.diagram-interstitial-rendering",
|
|
303
|
+
status: "available",
|
|
304
|
+
owner: "@treeseed/sdk",
|
|
305
|
+
summary: "Interstitial and standalone diagrams can render as full-screen video sequences."
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
id: "scene.training-outputs",
|
|
309
|
+
status: "available",
|
|
310
|
+
owner: "@treeseed/sdk",
|
|
311
|
+
summary: "Deterministic captions, transcripts, narration scripts, glossary output, and chapter clip manifests are available."
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: "scene.caption-generation",
|
|
315
|
+
status: "available",
|
|
316
|
+
owner: "@treeseed/sdk",
|
|
317
|
+
summary: "Scene training outputs include deterministic VTT and SRT captions."
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
id: "scene.caption-rendering",
|
|
321
|
+
status: "available",
|
|
322
|
+
owner: "@treeseed/sdk",
|
|
323
|
+
summary: "Training Remotion renders can display generated captions."
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
id: "scene.transcript-generation",
|
|
327
|
+
status: "available",
|
|
328
|
+
owner: "@treeseed/sdk",
|
|
329
|
+
summary: "Scene training outputs include JSON and Markdown transcripts."
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
id: "scene.narration-scripts",
|
|
333
|
+
status: "available",
|
|
334
|
+
owner: "@treeseed/sdk",
|
|
335
|
+
summary: "Scene training outputs include deterministic narration scripts without AI or TTS."
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
id: "scene.glossary-enrichment",
|
|
339
|
+
status: "available",
|
|
340
|
+
owner: "@treeseed/sdk",
|
|
341
|
+
summary: "Scene training outputs include explicit and built-in Treeseed glossary terms."
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: "scene.chapter-clip-manifests",
|
|
345
|
+
status: "available",
|
|
346
|
+
owner: "@treeseed/sdk",
|
|
347
|
+
summary: "Scene training outputs include chapter clip manifests for future export workflows."
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
id: "scene.training-command",
|
|
351
|
+
status: "available",
|
|
352
|
+
owner: "@treeseed/cli",
|
|
353
|
+
summary: "The CLI can generate deterministic training outputs with `trsd scene training`."
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: "scene.training-artifacts",
|
|
357
|
+
status: "available",
|
|
358
|
+
owner: "@treeseed/sdk",
|
|
359
|
+
summary: "Scene training artifacts are written under the existing run root training directory."
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
id: "scene.evidence-manifest",
|
|
363
|
+
status: "available",
|
|
364
|
+
owner: "@treeseed/sdk",
|
|
365
|
+
summary: "Scene run artifacts can be summarized into deterministic local, CI, and release evidence manifests."
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
id: "scene.evidence-command",
|
|
369
|
+
status: "available",
|
|
370
|
+
owner: "@treeseed/cli",
|
|
371
|
+
summary: "The CLI can generate downstream scene evidence with `trsd scene evidence`."
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
id: "scene.sanitized-evidence-bundle",
|
|
375
|
+
status: "available",
|
|
376
|
+
owner: "@treeseed/sdk",
|
|
377
|
+
summary: "Evidence generation can copy a bounded sanitized bundle while excluding raw traces, videos, network captures, and app logs by default."
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
id: "scene.evidence-recommendations",
|
|
381
|
+
status: "available",
|
|
382
|
+
owner: "@treeseed/sdk",
|
|
383
|
+
summary: "Evidence manifests include deterministic follow-up recommendations for inspect, resume, training, and render workflows."
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
id: "scene.ci-scene-verification",
|
|
387
|
+
status: "available",
|
|
388
|
+
owner: "@treeseed/sdk",
|
|
389
|
+
summary: "Scene evidence reports expose CI-ready summaries, artifact inventory, and hashes without rerunning browser workflows."
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
id: "scene.release-evidence-summary",
|
|
393
|
+
status: "available",
|
|
394
|
+
owner: "@treeseed/sdk",
|
|
395
|
+
summary: "Release-target evidence marks failed workflows as blocking recommendations while staying local until a later publish phase."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
id: "scene.evidence-hashing",
|
|
399
|
+
status: "available",
|
|
400
|
+
owner: "@treeseed/sdk",
|
|
401
|
+
summary: "Included evidence artifacts are hashed with SHA-256 for reproducible proof."
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
id: "scene.ai-narration-provider",
|
|
405
|
+
status: "planned",
|
|
406
|
+
owner: "@treeseed/sdk",
|
|
407
|
+
summary: "Optional AI narration providers are planned after deterministic training outputs."
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
id: "scene.evidence-publishing",
|
|
411
|
+
status: "available",
|
|
412
|
+
owner: "@treeseed/sdk",
|
|
413
|
+
summary: "Scene evidence can be published into local redacted bundles and local release-evidence export records."
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
id: "scene.redaction-policy-engine",
|
|
417
|
+
status: "available",
|
|
418
|
+
owner: "@treeseed/sdk",
|
|
419
|
+
summary: "Deny-by-default redaction policies validate and control published scene evidence artifacts."
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
id: "scene.scene-publish-command",
|
|
423
|
+
status: "available",
|
|
424
|
+
owner: "@treeseed/cli",
|
|
425
|
+
summary: "The CLI can publish local and release-target redacted evidence bundles with `trsd scene publish`."
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
id: "scene.deny-by-default-redaction",
|
|
429
|
+
status: "available",
|
|
430
|
+
owner: "@treeseed/sdk",
|
|
431
|
+
summary: "Evidence publishing excludes artifacts unless an explicit redaction policy rule includes them."
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
id: "scene.local-publish-bundle",
|
|
435
|
+
status: "available",
|
|
436
|
+
owner: "@treeseed/sdk",
|
|
437
|
+
summary: "Selected evidence artifacts are copied into a local publish bundle under the source run root."
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
id: "scene.release-evidence-export",
|
|
441
|
+
status: "available",
|
|
442
|
+
owner: "@treeseed/sdk",
|
|
443
|
+
summary: "Release-target publishing writes a local release-evidence export record without mutating external providers."
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
id: "scene.publish-report",
|
|
447
|
+
status: "available",
|
|
448
|
+
owner: "@treeseed/sdk",
|
|
449
|
+
summary: "Publish manifests and Markdown reports record redaction decisions, hashes, sizes, and bundle paths."
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
id: "scene.publish-plan-command",
|
|
453
|
+
status: "available",
|
|
454
|
+
owner: "@treeseed/cli",
|
|
455
|
+
summary: "The CLI can produce docs, training, release-evidence, and artifact-store publication plans with `trsd scene publish-plan`."
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: "scene.publication-export-command",
|
|
459
|
+
status: "available",
|
|
460
|
+
owner: "@treeseed/cli",
|
|
461
|
+
summary: "The CLI can create local publication export bundles from redacted Phase 10 publish artifacts with `trsd scene export`."
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
id: "scene.docs-publication-plan",
|
|
465
|
+
status: "available",
|
|
466
|
+
owner: "@treeseed/sdk",
|
|
467
|
+
summary: "Documentation publication destinations and selected artifacts are planned without mutating docs stores."
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
id: "scene.training-publication-plan",
|
|
471
|
+
status: "available",
|
|
472
|
+
owner: "@treeseed/sdk",
|
|
473
|
+
summary: "Training publication destinations and selected captions, transcripts, narration, glossary, and clip manifests are planned locally."
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
id: "scene.release-evidence-publication-plan",
|
|
477
|
+
status: "available",
|
|
478
|
+
owner: "@treeseed/sdk",
|
|
479
|
+
summary: "Release-evidence publication plans are generated from redacted publish manifests and block failed workflows."
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
id: "scene.artifact-store-publication-plan",
|
|
483
|
+
status: "available",
|
|
484
|
+
owner: "@treeseed/sdk",
|
|
485
|
+
summary: "Artifact-store publication is represented as plan-only metadata without remote upload."
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
id: "scene.reconciliation-publication-intents",
|
|
489
|
+
status: "available",
|
|
490
|
+
owner: "@treeseed/sdk",
|
|
491
|
+
summary: "Phase 11 manifests include plan-only reconciliation intent records for future canonical apply workflows."
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
id: "scene.local-publication-export",
|
|
495
|
+
status: "available",
|
|
496
|
+
owner: "@treeseed/sdk",
|
|
497
|
+
summary: "Selected redacted publish artifacts can be copied into local docs, training, and release-evidence export folders."
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
id: "scene.visual-audit-command",
|
|
501
|
+
status: "available",
|
|
502
|
+
owner: "@treeseed/cli",
|
|
503
|
+
summary: "The CLI can generate role and device screenshot review matrices with `trsd scene visual-audit`."
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
id: "scene.visual-audit-route-discovery",
|
|
507
|
+
status: "available",
|
|
508
|
+
owner: "@treeseed/sdk",
|
|
509
|
+
summary: "Visual audits discover user-facing core, admin, tenant override, and content-backed routes."
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
id: "scene.visual-audit-role-fixtures",
|
|
513
|
+
status: "available",
|
|
514
|
+
owner: "@treeseed/sdk",
|
|
515
|
+
summary: "Visual audits model anonymous and deterministic local fixture-backed owner, admin, and member roles."
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
id: "scene.visual-audit-device-matrix",
|
|
519
|
+
status: "available",
|
|
520
|
+
owner: "@treeseed/sdk",
|
|
521
|
+
summary: "Visual audits reuse scene device profiles to capture desktop, tablet, and mobile screenshots."
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
id: "scene.visual-audit-screenshot-report",
|
|
525
|
+
status: "available",
|
|
526
|
+
owner: "@treeseed/sdk",
|
|
527
|
+
summary: "Visual audits write grouped viewport screenshots plus JSON and Markdown review reports."
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
id: "scene.visual-audit-review",
|
|
531
|
+
status: "available",
|
|
532
|
+
owner: "@treeseed/sdk",
|
|
533
|
+
summary: "Visual audits generate deterministic functional, client-error, display, and architecture findings by default."
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
id: "scene.visual-audit-client-error-capture",
|
|
537
|
+
status: "available",
|
|
538
|
+
owner: "@treeseed/sdk",
|
|
539
|
+
summary: "Visual audit captures browser console, page, request, and HTTP errors for each reviewed route."
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
id: "scene.visual-audit-functional-findings",
|
|
543
|
+
status: "available",
|
|
544
|
+
owner: "@treeseed/sdk",
|
|
545
|
+
summary: "Visual audit review flags failed captures, auth redirects, protected anonymous access, and seeded fixture visibility issues."
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
id: "scene.visual-audit-display-findings",
|
|
549
|
+
status: "available",
|
|
550
|
+
owner: "@treeseed/sdk",
|
|
551
|
+
summary: "Visual audit review flags default-looking controls, horizontal overflow, visible error text, and low-content captures."
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
id: "scene.visual-audit-agent-brief",
|
|
555
|
+
status: "available",
|
|
556
|
+
owner: "@treeseed/sdk",
|
|
557
|
+
summary: "Visual audit review writes an agent-focused repair brief that prioritizes reusable package architecture."
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
id: "scene.visual-audit-contact-sheets",
|
|
561
|
+
status: "available",
|
|
562
|
+
owner: "@treeseed/sdk",
|
|
563
|
+
summary: "Visual audit review writes local HTML contact sheets grouped by path root and flagged screenshots."
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
id: "scene.remote-publication-apply",
|
|
567
|
+
status: "planned",
|
|
568
|
+
owner: "@treeseed/sdk",
|
|
569
|
+
summary: "Applying Phase 11 publication intents to external providers is deferred to Phase 12."
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
id: "scene.remote-artifact-store-apply",
|
|
573
|
+
status: "planned",
|
|
574
|
+
owner: "@treeseed/sdk",
|
|
575
|
+
summary: "Remote artifact-store upload remains deferred until provider selection and retention policy are finalized."
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
id: "scene.docs-training-publishing",
|
|
579
|
+
status: "planned",
|
|
580
|
+
owner: "@treeseed/sdk",
|
|
581
|
+
summary: "Docs and training-site external publication remains deferred to reconciled remote apply workflows."
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
id: "scene.tts-audio-generation",
|
|
585
|
+
status: "planned",
|
|
586
|
+
owner: "@treeseed/sdk",
|
|
587
|
+
summary: "Optional text-to-speech audio generation is planned after deterministic training outputs."
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
deferredDependencies: [],
|
|
591
|
+
activeOptionalDependencies: ["remotion", "@remotion/renderer", "@remotion/bundler"],
|
|
592
|
+
nextPhase: {
|
|
593
|
+
phase: 12,
|
|
594
|
+
summary: "Remote Publication Apply",
|
|
595
|
+
requiredChanges: [
|
|
596
|
+
"Apply Phase 11 publication intents through canonical reconciliation adapters.",
|
|
597
|
+
"Add provider-backed docs, training, and artifact-store publication once remote retention and redaction policy are finalized."
|
|
598
|
+
]
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
function planTreeseedSceneArtifactPaths(input) {
|
|
603
|
+
const sceneId = input.sceneId.trim();
|
|
604
|
+
if (!FILESYSTEM_SAFE_SCENE_ID.test(sceneId)) {
|
|
605
|
+
throw new Error(`Invalid scene id "${input.sceneId}". Use lowercase letters, numbers, dots, underscores, or hyphens, and start with a letter or number.`);
|
|
606
|
+
}
|
|
607
|
+
const timestamp = input.timestamp ?? compactTimestamp();
|
|
608
|
+
const runId = input.runId ?? defaultRunId(timestamp);
|
|
609
|
+
const runRoot = join(input.workspaceRoot, ".treeseed", "scenes", "runs", sceneId, `${timestamp}-${runId}`);
|
|
610
|
+
return {
|
|
611
|
+
workspaceRoot: input.workspaceRoot,
|
|
612
|
+
sceneId,
|
|
613
|
+
runId,
|
|
614
|
+
runRoot,
|
|
615
|
+
normalizedScenePath: join(runRoot, "scene.normalized.json"),
|
|
616
|
+
planPath: join(runRoot, "scene.plan.json"),
|
|
617
|
+
runPath: join(runRoot, "run.json"),
|
|
618
|
+
timelinePath: join(runRoot, "timeline.json"),
|
|
619
|
+
markdownReportPath: join(runRoot, "report.md"),
|
|
620
|
+
htmlReportPath: join(runRoot, "report.html"),
|
|
621
|
+
playwrightRoot: join(runRoot, "playwright"),
|
|
622
|
+
logsRoot: join(runRoot, "logs"),
|
|
623
|
+
segmentsRoot: join(runRoot, "segments"),
|
|
624
|
+
renderRoot: join(runRoot, "render"),
|
|
625
|
+
trainingRoot: join(runRoot, "training"),
|
|
626
|
+
evidenceRoot: join(runRoot, "evidence"),
|
|
627
|
+
publishRoot: join(runRoot, "publish"),
|
|
628
|
+
publishPlanRoot: join(runRoot, "publish-plan"),
|
|
629
|
+
progressPath: join(runRoot, "progress.jsonl"),
|
|
630
|
+
checkpointsRoot: join(runRoot, "checkpoints")
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
export {
|
|
634
|
+
TREESEED_SCENE_PLATFORM_NAME,
|
|
635
|
+
createTreeseedScenePhase0Report,
|
|
636
|
+
planTreeseedSceneArtifactPaths
|
|
637
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type TreeseedSceneEnvironment, type TreeseedScenePlanReport, type TreeseedSceneValidationReport } from './types.js';
|
|
2
|
+
export declare function validateTreeseedScene(input: {
|
|
3
|
+
projectRoot: string;
|
|
4
|
+
scene: string;
|
|
5
|
+
}): TreeseedSceneValidationReport;
|
|
6
|
+
export declare function planTreeseedScene(input: {
|
|
7
|
+
projectRoot: string;
|
|
8
|
+
scene: string;
|
|
9
|
+
environment?: TreeseedSceneEnvironment;
|
|
10
|
+
runId?: string;
|
|
11
|
+
timestamp?: string;
|
|
12
|
+
}): TreeseedScenePlanReport;
|